aloha-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1045) hide show
  1. data/.gitignore +18 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE +22 -0
  4. data/README.md +34 -0
  5. data/Rakefile +9 -0
  6. data/aloha-rails.gemspec +22 -0
  7. data/lib/aloha-rails.rb +13 -0
  8. data/lib/aloha-rails/engine.rb +9 -0
  9. data/lib/aloha-rails/helpers.rb +45 -0
  10. data/lib/aloha-rails/railtie.rb +9 -0
  11. data/lib/aloha-rails/version.rb +5 -0
  12. data/lib/generators/aloha/install/USAGE +9 -0
  13. data/lib/generators/aloha/install/install_generator.rb +25 -0
  14. data/lib/generators/aloha/install/templates/aloha-config.coffee +88 -0
  15. data/lib/generators/aloha/install/templates/aloha-config.js +108 -0
  16. data/lib/generators/aloha/install/templates/aloha.rb +21 -0
  17. data/lib/generators/aloha/install/templates/application.js +16 -0
  18. data/spec/aloha_spec.rb +20 -0
  19. data/spec/helpers/aloha_helpers_spec.rb +69 -0
  20. data/spec/spec_helper.rb +17 -0
  21. data/vendor/assets/javascripts/aloha/css/aloha-core.css +44 -0
  22. data/vendor/assets/javascripts/aloha/css/aloha-sidebar.css +284 -0
  23. data/vendor/assets/javascripts/aloha/css/aloha.css +7774 -0
  24. data/vendor/assets/javascripts/aloha/css/ext-aloha-reset.css +33 -0
  25. data/vendor/assets/javascripts/aloha/css/ext-aloha.css +357 -0
  26. data/vendor/assets/javascripts/aloha/img/arrow-down.png +0 -0
  27. data/vendor/assets/javascripts/aloha/img/arrow-left.png +0 -0
  28. data/vendor/assets/javascripts/aloha/img/arrow.png +0 -0
  29. data/vendor/assets/javascripts/aloha/img/base-big.png +0 -0
  30. data/vendor/assets/javascripts/aloha/img/base-multi.png +0 -0
  31. data/vendor/assets/javascripts/aloha/img/base.png +0 -0
  32. data/vendor/assets/javascripts/aloha/img/bg.png +0 -0
  33. data/vendor/assets/javascripts/aloha/img/breadcrumb-divider.png +0 -0
  34. data/vendor/assets/javascripts/aloha/img/fade-in.png +0 -0
  35. data/vendor/assets/javascripts/aloha/img/fade-out.png +0 -0
  36. data/vendor/assets/javascripts/aloha/img/gentics-logo.png +0 -0
  37. data/vendor/assets/javascripts/aloha/img/grabhandle.png +0 -0
  38. data/vendor/assets/javascripts/aloha/img/maximize.png +0 -0
  39. data/vendor/assets/javascripts/aloha/img/multisplit-base.jpg +0 -0
  40. data/vendor/assets/javascripts/aloha/img/multisplit-close.gif +0 -0
  41. data/vendor/assets/javascripts/aloha/img/multisplit-open.gif +0 -0
  42. data/vendor/assets/javascripts/aloha/img/pin.png +0 -0
  43. data/vendor/assets/javascripts/aloha/img/removeformat.png +0 -0
  44. data/vendor/assets/javascripts/aloha/img/text_indent.png +0 -0
  45. data/vendor/assets/javascripts/aloha/img/text_indent_remove.png +0 -0
  46. data/vendor/assets/javascripts/aloha/lib/aloha-bootstrap.js +27645 -0
  47. data/vendor/assets/javascripts/aloha/lib/aloha.js +88750 -0
  48. data/vendor/assets/javascripts/aloha/lib/aloha/command.js +246 -0
  49. data/vendor/assets/javascripts/aloha/lib/aloha/console.js +330 -0
  50. data/vendor/assets/javascripts/aloha/lib/aloha/contenthandlermanager.js +65 -0
  51. data/vendor/assets/javascripts/aloha/lib/aloha/core.js +560 -0
  52. data/vendor/assets/javascripts/aloha/lib/aloha/ecma5.js +194 -0
  53. data/vendor/assets/javascripts/aloha/lib/aloha/ecma5shims.js +280 -0
  54. data/vendor/assets/javascripts/aloha/lib/aloha/editable.js +854 -0
  55. data/vendor/assets/javascripts/aloha/lib/aloha/engine.js +8306 -0
  56. data/vendor/assets/javascripts/aloha/lib/aloha/ext-alohaproxy.js +86 -0
  57. data/vendor/assets/javascripts/aloha/lib/aloha/ext-alohareader.js +50 -0
  58. data/vendor/assets/javascripts/aloha/lib/aloha/ext-alohatreeloader.js +77 -0
  59. data/vendor/assets/javascripts/aloha/lib/aloha/ext.js +32 -0
  60. data/vendor/assets/javascripts/aloha/lib/aloha/floatingmenu.js +1304 -0
  61. data/vendor/assets/javascripts/aloha/lib/aloha/ierange-m2.js +546 -0
  62. data/vendor/assets/javascripts/aloha/lib/aloha/jquery.aloha.js +324 -0
  63. data/vendor/assets/javascripts/aloha/lib/aloha/jquery.js +24 -0
  64. data/vendor/assets/javascripts/aloha/lib/aloha/jquery.patch.js +115 -0
  65. data/vendor/assets/javascripts/aloha/lib/aloha/markup.js +977 -0
  66. data/vendor/assets/javascripts/aloha/lib/aloha/message.js +115 -0
  67. data/vendor/assets/javascripts/aloha/lib/aloha/nls/de/i18n.js +10 -0
  68. data/vendor/assets/javascripts/aloha/lib/aloha/nls/i18n.js +20 -0
  69. data/vendor/assets/javascripts/aloha/lib/aloha/observable.js +106 -0
  70. data/vendor/assets/javascripts/aloha/lib/aloha/plugin.js +276 -0
  71. data/vendor/assets/javascripts/aloha/lib/aloha/pluginmanager.js +146 -0
  72. data/vendor/assets/javascripts/aloha/lib/aloha/rangy-core.js +3242 -0
  73. data/vendor/assets/javascripts/aloha/lib/aloha/registry.js +59 -0
  74. data/vendor/assets/javascripts/aloha/lib/aloha/repository.js +241 -0
  75. data/vendor/assets/javascripts/aloha/lib/aloha/repositorymanager.js +570 -0
  76. data/vendor/assets/javascripts/aloha/lib/aloha/repositoryobjects.js +146 -0
  77. data/vendor/assets/javascripts/aloha/lib/aloha/selection.js +2083 -0
  78. data/vendor/assets/javascripts/aloha/lib/aloha/sidebar.js +1133 -0
  79. data/vendor/assets/javascripts/aloha/lib/aloha/ui-attributefield.js +530 -0
  80. data/vendor/assets/javascripts/aloha/lib/aloha/ui-browser.js +214 -0
  81. data/vendor/assets/javascripts/aloha/lib/aloha/ui.js +889 -0
  82. data/vendor/assets/javascripts/aloha/lib/css.js +313 -0
  83. data/vendor/assets/javascripts/aloha/lib/i18n.js +153 -0
  84. data/vendor/assets/javascripts/aloha/lib/jquery-plugin.js +46 -0
  85. data/vendor/assets/javascripts/aloha/lib/order.js +140 -0
  86. data/vendor/assets/javascripts/aloha/lib/require.js +2013 -0
  87. data/vendor/assets/javascripts/aloha/lib/text.js +262 -0
  88. data/vendor/assets/javascripts/aloha/lib/util/class.js +80 -0
  89. data/vendor/assets/javascripts/aloha/lib/util/dom.js +1673 -0
  90. data/vendor/assets/javascripts/aloha/lib/util/json2.js +481 -0
  91. data/vendor/assets/javascripts/aloha/lib/util/lang.js +66 -0
  92. data/vendor/assets/javascripts/aloha/lib/util/position.js +158 -0
  93. data/vendor/assets/javascripts/aloha/lib/util/range.js +923 -0
  94. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/adapter/jquery/ext-jquery-adapter-debug.js +2470 -0
  95. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/adapter/jquery/ext-jquery-adapter.js +7 -0
  96. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/ext-all-debug.js +47684 -0
  97. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/ext-all.js +13 -0
  98. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/gpl-3.0.txt +674 -0
  99. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/license.txt +42 -0
  100. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/charts.swf +0 -0
  101. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/css/ext-all.css +5903 -0
  102. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/css/ext-all.less +6795 -0
  103. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/css/xtheme-gray.css +1692 -0
  104. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/expressinstall.swf +0 -0
  105. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/corners-blue.gif +0 -0
  106. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/corners.gif +0 -0
  107. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/l-blue.gif +0 -0
  108. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/l.gif +0 -0
  109. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/r-blue.gif +0 -0
  110. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/r.gif +0 -0
  111. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/tb-blue.gif +0 -0
  112. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/box/tb.gif +0 -0
  113. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/arrow.gif +0 -0
  114. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/btn.gif +0 -0
  115. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/group-cs.gif +0 -0
  116. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/group-lr.gif +0 -0
  117. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/group-tb.gif +0 -0
  118. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/s-arrow-b-noline.gif +0 -0
  119. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/s-arrow-b.gif +0 -0
  120. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/s-arrow-bo.gif +0 -0
  121. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/s-arrow-noline.gif +0 -0
  122. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/s-arrow-o.gif +0 -0
  123. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/button/s-arrow.gif +0 -0
  124. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/dd/drop-add.gif +0 -0
  125. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/dd/drop-no.gif +0 -0
  126. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/dd/drop-yes.gif +0 -0
  127. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/editor/tb-sprite.gif +0 -0
  128. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/checkbox.gif +0 -0
  129. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/clear-trigger.gif +0 -0
  130. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/clear-trigger.psd +0 -0
  131. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/date-trigger.gif +0 -0
  132. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/date-trigger.psd +0 -0
  133. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/error-tip-corners.gif +0 -0
  134. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/exclamation.gif +0 -0
  135. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/radio.gif +0 -0
  136. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/search-trigger.gif +0 -0
  137. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/search-trigger.psd +0 -0
  138. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/text-bg.gif +0 -0
  139. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/trigger-square.gif +0 -0
  140. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/trigger-square.psd +0 -0
  141. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/trigger-tpl.gif +0 -0
  142. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/trigger.gif +0 -0
  143. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/form/trigger.psd +0 -0
  144. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/gradient-bg.gif +0 -0
  145. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/arrow-left-white.gif +0 -0
  146. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/arrow-right-white.gif +0 -0
  147. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/col-move-bottom.gif +0 -0
  148. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/col-move-top.gif +0 -0
  149. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/columns.gif +0 -0
  150. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/dirty.gif +0 -0
  151. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/done.gif +0 -0
  152. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/drop-no.gif +0 -0
  153. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/drop-yes.gif +0 -0
  154. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/footer-bg.gif +0 -0
  155. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid-blue-hd.gif +0 -0
  156. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid-blue-split.gif +0 -0
  157. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid-hrow.gif +0 -0
  158. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid-loading.gif +0 -0
  159. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid-split.gif +0 -0
  160. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid-vista-hd.gif +0 -0
  161. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid3-hd-btn.gif +0 -0
  162. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid3-hrow-over.gif +0 -0
  163. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid3-hrow.gif +0 -0
  164. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid3-special-col-bg.gif +0 -0
  165. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/grid3-special-col-sel-bg.gif +0 -0
  166. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/group-by.gif +0 -0
  167. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/group-collapse.gif +0 -0
  168. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/group-expand-sprite.gif +0 -0
  169. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/group-expand.gif +0 -0
  170. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/hd-pop.gif +0 -0
  171. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/hmenu-asc.gif +0 -0
  172. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/hmenu-desc.gif +0 -0
  173. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/hmenu-lock.gif +0 -0
  174. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/hmenu-lock.png +0 -0
  175. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/hmenu-unlock.gif +0 -0
  176. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/hmenu-unlock.png +0 -0
  177. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/invalid_line.gif +0 -0
  178. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/loading.gif +0 -0
  179. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/mso-hd.gif +0 -0
  180. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/nowait.gif +0 -0
  181. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-first-disabled.gif +0 -0
  182. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-first.gif +0 -0
  183. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-last-disabled.gif +0 -0
  184. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-last.gif +0 -0
  185. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-next-disabled.gif +0 -0
  186. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-next.gif +0 -0
  187. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-prev-disabled.gif +0 -0
  188. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/page-prev.gif +0 -0
  189. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/pick-button.gif +0 -0
  190. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/refresh.gif +0 -0
  191. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/row-check-sprite.gif +0 -0
  192. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/row-expand-sprite.gif +0 -0
  193. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/row-over.gif +0 -0
  194. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/row-sel.gif +0 -0
  195. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/sort-hd.gif +0 -0
  196. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/sort_asc.gif +0 -0
  197. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/sort_desc.gif +0 -0
  198. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/grid/wait.gif +0 -0
  199. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/collapse.gif +0 -0
  200. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/expand.gif +0 -0
  201. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/gradient-bg.gif +0 -0
  202. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/mini-bottom.gif +0 -0
  203. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/mini-left.gif +0 -0
  204. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/mini-right.gif +0 -0
  205. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/mini-top.gif +0 -0
  206. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/ns-collapse.gif +0 -0
  207. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/ns-expand.gif +0 -0
  208. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/panel-close.gif +0 -0
  209. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/panel-title-bg.gif +0 -0
  210. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/panel-title-light-bg.gif +0 -0
  211. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/stick.gif +0 -0
  212. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/stuck.gif +0 -0
  213. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/tab-close-on.gif +0 -0
  214. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/layout/tab-close.gif +0 -0
  215. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/menu/checked.gif +0 -0
  216. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/menu/group-checked.gif +0 -0
  217. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/menu/item-over.gif +0 -0
  218. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/menu/menu-parent.gif +0 -0
  219. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/menu/menu.gif +0 -0
  220. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/menu/unchecked.gif +0 -0
  221. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/corners-sprite.gif +0 -0
  222. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/left-right.gif +0 -0
  223. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/light-hd.gif +0 -0
  224. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/tool-sprite-tpl.gif +0 -0
  225. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/tool-sprites.gif +0 -0
  226. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/tools-sprites-trans.gif +0 -0
  227. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/top-bottom.gif +0 -0
  228. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/top-bottom.png +0 -0
  229. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/white-corners-sprite.gif +0 -0
  230. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/white-left-right.gif +0 -0
  231. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/panel/white-top-bottom.gif +0 -0
  232. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/progress/progress-bg.gif +0 -0
  233. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/qtip/bg.gif +0 -0
  234. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/qtip/close.gif +0 -0
  235. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/qtip/tip-anchor-sprite.gif +0 -0
  236. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/qtip/tip-sprite.gif +0 -0
  237. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/s.gif +0 -0
  238. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shadow-c.png +0 -0
  239. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shadow-lr.png +0 -0
  240. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shadow.png +0 -0
  241. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/blue-loading.gif +0 -0
  242. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/calendar.gif +0 -0
  243. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/glass-bg.gif +0 -0
  244. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/hd-sprite.gif +0 -0
  245. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/large-loading.gif +0 -0
  246. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/left-btn.gif +0 -0
  247. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/loading-balls.gif +0 -0
  248. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/right-btn.gif +0 -0
  249. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/shared/warning.gif +0 -0
  250. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/e-handle-dark.gif +0 -0
  251. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/e-handle.gif +0 -0
  252. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/ne-handle-dark.gif +0 -0
  253. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/ne-handle.gif +0 -0
  254. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/nw-handle-dark.gif +0 -0
  255. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/nw-handle.gif +0 -0
  256. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/s-handle-dark.gif +0 -0
  257. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/s-handle.gif +0 -0
  258. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/se-handle-dark.gif +0 -0
  259. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/se-handle.gif +0 -0
  260. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/square.gif +0 -0
  261. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/sw-handle-dark.gif +0 -0
  262. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/sizer/sw-handle.gif +0 -0
  263. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/slider/slider-bg.png +0 -0
  264. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/slider/slider-thumb.png +0 -0
  265. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/slider/slider-v-bg.png +0 -0
  266. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/slider/slider-v-thumb.png +0 -0
  267. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/scroll-left.gif +0 -0
  268. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/scroll-right.gif +0 -0
  269. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/scroller-bg.gif +0 -0
  270. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-btm-inactive-left-bg.gif +0 -0
  271. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-btm-inactive-right-bg.gif +0 -0
  272. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-btm-left-bg.gif +0 -0
  273. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-btm-over-left-bg.gif +0 -0
  274. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-btm-over-right-bg.gif +0 -0
  275. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-btm-right-bg.gif +0 -0
  276. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-close.gif +0 -0
  277. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-strip-bg.gif +0 -0
  278. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-strip-bg.png +0 -0
  279. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tab-strip-btm-bg.gif +0 -0
  280. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tabs/tabs-sprite.gif +0 -0
  281. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/bg.gif +0 -0
  282. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/btn-arrow-light.gif +0 -0
  283. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/btn-arrow.gif +0 -0
  284. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/btn-over-bg.gif +0 -0
  285. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/gray-bg.gif +0 -0
  286. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/more.gif +0 -0
  287. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/tb-bg.gif +0 -0
  288. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/tb-btn-sprite.gif +0 -0
  289. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/tb-xl-btn-sprite.gif +0 -0
  290. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/toolbar/tb-xl-sep.gif +0 -0
  291. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/arrows.gif +0 -0
  292. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/drop-add.gif +0 -0
  293. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/drop-between.gif +0 -0
  294. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/drop-no.gif +0 -0
  295. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/drop-over.gif +0 -0
  296. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/drop-under.gif +0 -0
  297. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/drop-yes.gif +0 -0
  298. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-end-minus-nl.gif +0 -0
  299. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-end-minus.gif +0 -0
  300. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-end-plus-nl.gif +0 -0
  301. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-end-plus.gif +0 -0
  302. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-end.gif +0 -0
  303. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-line.gif +0 -0
  304. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-minus-nl.gif +0 -0
  305. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-minus.gif +0 -0
  306. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-plus-nl.gif +0 -0
  307. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow-plus.gif +0 -0
  308. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/elbow.gif +0 -0
  309. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/folder-open.gif +0 -0
  310. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/folder.gif +0 -0
  311. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/leaf.gif +0 -0
  312. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/loading.gif +0 -0
  313. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/tree/s.gif +0 -0
  314. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/icon-error.gif +0 -0
  315. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/icon-info.gif +0 -0
  316. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/icon-question.gif +0 -0
  317. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/icon-warning.gif +0 -0
  318. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/left-corners.png +0 -0
  319. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/left-corners.psd +0 -0
  320. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/left-right.png +0 -0
  321. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/left-right.psd +0 -0
  322. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/right-corners.png +0 -0
  323. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/right-corners.psd +0 -0
  324. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/top-bottom.png +0 -0
  325. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/default/window/top-bottom.psd +0 -0
  326. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/button/btn-arrow.gif +0 -0
  327. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/button/btn-sprite.gif +0 -0
  328. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/button/btn.gif +0 -0
  329. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/button/group-cs.gif +0 -0
  330. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/button/group-lr.gif +0 -0
  331. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/button/group-tb.gif +0 -0
  332. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/button/s-arrow-bo.gif +0 -0
  333. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/button/s-arrow-o.gif +0 -0
  334. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/form/clear-trigger.gif +0 -0
  335. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/form/date-trigger.gif +0 -0
  336. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/form/search-trigger.gif +0 -0
  337. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/form/trigger-square.gif +0 -0
  338. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/form/trigger.gif +0 -0
  339. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/gradient-bg.gif +0 -0
  340. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/col-move-bottom.gif +0 -0
  341. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/col-move-top.gif +0 -0
  342. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/grid3-hd-btn.gif +0 -0
  343. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/grid3-hrow-over.gif +0 -0
  344. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/grid3-hrow-over2.gif +0 -0
  345. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/grid3-hrow.gif +0 -0
  346. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/grid3-hrow2.gif +0 -0
  347. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/grid3-special-col-bg.gif +0 -0
  348. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/grid3-special-col-bg2.gif +0 -0
  349. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/grid3-special-col-sel-bg.gif +0 -0
  350. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/group-collapse.gif +0 -0
  351. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/group-expand-sprite.gif +0 -0
  352. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/group-expand.gif +0 -0
  353. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/page-first.gif +0 -0
  354. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/page-last.gif +0 -0
  355. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/page-next.gif +0 -0
  356. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/page-prev.gif +0 -0
  357. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/refresh.gif +0 -0
  358. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/row-expand-sprite.gif +0 -0
  359. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/sort_asc.gif +0 -0
  360. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/grid/sort_desc.gif +0 -0
  361. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/menu/group-checked.gif +0 -0
  362. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/menu/item-over-disabled.gif +0 -0
  363. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/menu/item-over.gif +0 -0
  364. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/menu/menu-parent.gif +0 -0
  365. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/corners-sprite.gif +0 -0
  366. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/left-right.gif +0 -0
  367. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/light-hd.gif +0 -0
  368. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/tool-sprite-tpl.gif +0 -0
  369. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/tool-sprites.gif +0 -0
  370. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/tools-sprites-trans.gif +0 -0
  371. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/top-bottom.gif +0 -0
  372. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/top-bottom.png +0 -0
  373. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/white-corners-sprite.gif +0 -0
  374. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/white-left-right.gif +0 -0
  375. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/panel/white-top-bottom.gif +0 -0
  376. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/progress/progress-bg.gif +0 -0
  377. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/qtip/bg.gif +0 -0
  378. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/qtip/close.gif +0 -0
  379. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/qtip/tip-anchor-sprite.gif +0 -0
  380. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/qtip/tip-sprite.gif +0 -0
  381. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/s.gif +0 -0
  382. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/shared/hd-sprite.gif +0 -0
  383. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/shared/left-btn.gif +0 -0
  384. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/shared/right-btn.gif +0 -0
  385. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/sizer/e-handle.gif +0 -0
  386. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/sizer/ne-handle.gif +0 -0
  387. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/sizer/nw-handle.gif +0 -0
  388. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/sizer/s-handle.gif +0 -0
  389. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/sizer/se-handle.gif +0 -0
  390. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/sizer/square.gif +0 -0
  391. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/sizer/sw-handle.gif +0 -0
  392. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/slider/slider-thumb.png +0 -0
  393. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/slider/slider-v-thumb.png +0 -0
  394. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/scroll-left.gif +0 -0
  395. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/scroll-right.gif +0 -0
  396. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/scroller-bg.gif +0 -0
  397. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-btm-inactive-left-bg.gif +0 -0
  398. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-btm-inactive-right-bg.gif +0 -0
  399. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-btm-left-bg.gif +0 -0
  400. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-btm-over-left-bg.gif +0 -0
  401. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-btm-over-right-bg.gif +0 -0
  402. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-btm-right-bg.gif +0 -0
  403. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-close.gif +0 -0
  404. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-strip-bg.gif +0 -0
  405. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-strip-bg.png +0 -0
  406. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tab-strip-btm-bg.gif +0 -0
  407. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tabs/tabs-sprite.gif +0 -0
  408. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/toolbar/bg.gif +0 -0
  409. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/toolbar/btn-arrow-light.gif +0 -0
  410. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/toolbar/btn-arrow.gif +0 -0
  411. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/toolbar/btn-over-bg.gif +0 -0
  412. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/toolbar/gray-bg.gif +0 -0
  413. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/toolbar/more.gif +0 -0
  414. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/toolbar/tb-bg.gif +0 -0
  415. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/toolbar/tb-btn-sprite.gif +0 -0
  416. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tree/arrows.gif +0 -0
  417. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tree/elbow-end-minus-nl.gif +0 -0
  418. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tree/elbow-end-minus.gif +0 -0
  419. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tree/elbow-end-plus-nl.gif +0 -0
  420. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/tree/elbow-end-plus.gif +0 -0
  421. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/window/icon-error.gif +0 -0
  422. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/window/icon-info.gif +0 -0
  423. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/window/icon-question.gif +0 -0
  424. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/window/icon-warning.gif +0 -0
  425. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/window/left-corners.png +0 -0
  426. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/window/left-corners.pspimage +0 -0
  427. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/window/left-right.png +0 -0
  428. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/window/right-corners.png +0 -0
  429. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/images/gray/window/top-bottom.png +0 -0
  430. data/vendor/assets/javascripts/aloha/lib/vendor/ext-3.2.1/resources/resources.jsb +507 -0
  431. data/vendor/assets/javascripts/aloha/lib/vendor/jquery-1.6.1.js +8936 -0
  432. data/vendor/assets/javascripts/aloha/lib/vendor/jquery.json-2.2.min.js +33 -0
  433. data/vendor/assets/javascripts/aloha/lib/vendor/jquery.store.js +446 -0
  434. data/vendor/assets/javascripts/aloha/lib/vendor/sanitize.js +267 -0
  435. data/vendor/assets/javascripts/aloha/plugins/common/abbr/css/abbr.css +0 -0
  436. data/vendor/assets/javascripts/aloha/plugins/common/abbr/lib/abbr-plugin.js +293 -0
  437. data/vendor/assets/javascripts/aloha/plugins/common/abbr/nls/de/i18n.js +1 -0
  438. data/vendor/assets/javascripts/aloha/plugins/common/abbr/nls/i18n.js +4 -0
  439. data/vendor/assets/javascripts/aloha/plugins/common/abbr/package.json +1 -0
  440. data/vendor/assets/javascripts/aloha/plugins/common/align/LICENSE +166 -0
  441. data/vendor/assets/javascripts/aloha/plugins/common/align/README +12 -0
  442. data/vendor/assets/javascripts/aloha/plugins/common/align/css/align.css +19 -0
  443. data/vendor/assets/javascripts/aloha/plugins/common/align/img/align.png +0 -0
  444. data/vendor/assets/javascripts/aloha/plugins/common/align/lib/align-plugin.js +345 -0
  445. data/vendor/assets/javascripts/aloha/plugins/common/align/nls/en/i18n.js +1 -0
  446. data/vendor/assets/javascripts/aloha/plugins/common/align/nls/fr/i18n.js +1 -0
  447. data/vendor/assets/javascripts/aloha/plugins/common/align/nls/i18n.js +6 -0
  448. data/vendor/assets/javascripts/aloha/plugins/common/align/package.json +2 -0
  449. data/vendor/assets/javascripts/aloha/plugins/common/block/README +0 -0
  450. data/vendor/assets/javascripts/aloha/plugins/common/block/css/block.css +51 -0
  451. data/vendor/assets/javascripts/aloha/plugins/common/block/img/toolbar-draghandle.gif +0 -0
  452. data/vendor/assets/javascripts/aloha/plugins/common/block/lib/block-plugin.js +104 -0
  453. data/vendor/assets/javascripts/aloha/plugins/common/block/lib/block.js +442 -0
  454. data/vendor/assets/javascripts/aloha/plugins/common/block/lib/blockcontenthandler.js +58 -0
  455. data/vendor/assets/javascripts/aloha/plugins/common/block/lib/blockmanager.js +242 -0
  456. data/vendor/assets/javascripts/aloha/plugins/common/block/lib/editor.js +209 -0
  457. data/vendor/assets/javascripts/aloha/plugins/common/block/lib/editormanager.js +34 -0
  458. data/vendor/assets/javascripts/aloha/plugins/common/block/lib/sidebarattributeeditor.js +119 -0
  459. data/vendor/assets/javascripts/aloha/plugins/common/block/package.json +11 -0
  460. data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/css/characterpicker.css +38 -0
  461. data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/img/icon.png +0 -0
  462. data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/lib/characterpicker-plugin.js +227 -0
  463. data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/nls/de/i18n.js +1 -0
  464. data/vendor/assets/javascripts/aloha/plugins/common/characterpicker/nls/i18n.js +4 -0
  465. data/vendor/assets/javascripts/aloha/plugins/common/commands/css/abbr.css +0 -0
  466. data/vendor/assets/javascripts/aloha/plugins/common/commands/lib/commands-plugin.js +15 -0
  467. data/vendor/assets/javascripts/aloha/plugins/common/commands/lib/inserthtml.js +107 -0
  468. data/vendor/assets/javascripts/aloha/plugins/common/commands/package.json +1 -0
  469. data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/README.md +0 -0
  470. data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/lib/contenthandler-plugin.js +54 -0
  471. data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/lib/genericcontenthandler.js +255 -0
  472. data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/lib/oembedcontenthandler.js +276 -0
  473. data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/lib/sanitizecontenthandler.js +136 -0
  474. data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/lib/wordcontenthandler.js +279 -0
  475. data/vendor/assets/javascripts/aloha/plugins/common/contenthandler/package.json +1 -0
  476. data/vendor/assets/javascripts/aloha/plugins/common/format/css/format.css +8 -0
  477. data/vendor/assets/javascripts/aloha/plugins/common/format/img/em.png +0 -0
  478. data/vendor/assets/javascripts/aloha/plugins/common/format/img/strong.png +0 -0
  479. data/vendor/assets/javascripts/aloha/plugins/common/format/lib/format-plugin.js +303 -0
  480. data/vendor/assets/javascripts/aloha/plugins/common/format/nls/de/i18n.js +1 -0
  481. data/vendor/assets/javascripts/aloha/plugins/common/format/nls/eo/i18n.js +1 -0
  482. data/vendor/assets/javascripts/aloha/plugins/common/format/nls/fi/i18n.js +1 -0
  483. data/vendor/assets/javascripts/aloha/plugins/common/format/nls/fr/i18n.js +1 -0
  484. data/vendor/assets/javascripts/aloha/plugins/common/format/nls/i18n.js +10 -0
  485. data/vendor/assets/javascripts/aloha/plugins/common/format/nls/it/i18n.js +1 -0
  486. data/vendor/assets/javascripts/aloha/plugins/common/format/nls/pl/i18n.js +1 -0
  487. data/vendor/assets/javascripts/aloha/plugins/common/format/nls/ru/i18n.js +1 -0
  488. data/vendor/assets/javascripts/aloha/plugins/common/highlighteditables/css/highlighteditables.css +14 -0
  489. data/vendor/assets/javascripts/aloha/plugins/common/highlighteditables/lib/highlighteditables-plugin.js +72 -0
  490. data/vendor/assets/javascripts/aloha/plugins/common/highlighteditables/package.json +1 -0
  491. data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/css/horizontalruler.css +4 -0
  492. data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/img/icon.png +0 -0
  493. data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/lib/horizontalruler-plugin.js +55 -0
  494. data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/nls/de/i18n.js +1 -0
  495. data/vendor/assets/javascripts/aloha/plugins/common/horizontalruler/nls/i18n.js +4 -0
  496. data/vendor/assets/javascripts/aloha/plugins/common/image/AGPL3 +661 -0
  497. data/vendor/assets/javascripts/aloha/plugins/common/image/LICENSE +25 -0
  498. data/vendor/assets/javascripts/aloha/plugins/common/image/README.md +83 -0
  499. data/vendor/assets/javascripts/aloha/plugins/common/image/css/image.css +124 -0
  500. data/vendor/assets/javascripts/aloha/plugins/common/image/demo/crop.html +76 -0
  501. data/vendor/assets/javascripts/aloha/plugins/common/image/demo/crop.php +21 -0
  502. data/vendor/assets/javascripts/aloha/plugins/common/image/demo/cropnresize.jpg +0 -0
  503. data/vendor/assets/javascripts/aloha/plugins/common/image/demo/index.html +120 -0
  504. data/vendor/assets/javascripts/aloha/plugins/common/image/img/blank.jpg +0 -0
  505. data/vendor/assets/javascripts/aloha/plugins/common/image/img/cropnresize.png +0 -0
  506. data/vendor/assets/javascripts/aloha/plugins/common/image/img/handle-sw.png +0 -0
  507. data/vendor/assets/javascripts/aloha/plugins/common/image/img/image-align-left.png +0 -0
  508. data/vendor/assets/javascripts/aloha/plugins/common/image/img/image-align-none.png +0 -0
  509. data/vendor/assets/javascripts/aloha/plugins/common/image/img/image-align-right.png +0 -0
  510. data/vendor/assets/javascripts/aloha/plugins/common/image/img/image-border.png +0 -0
  511. data/vendor/assets/javascripts/aloha/plugins/common/image/img/image-title.png +0 -0
  512. data/vendor/assets/javascripts/aloha/plugins/common/image/img/image.gif +0 -0
  513. data/vendor/assets/javascripts/aloha/plugins/common/image/img/padding-decrease.gif +0 -0
  514. data/vendor/assets/javascripts/aloha/plugins/common/image/img/padding-increase.gif +0 -0
  515. data/vendor/assets/javascripts/aloha/plugins/common/image/img/page.png +0 -0
  516. data/vendor/assets/javascripts/aloha/plugins/common/image/img/size-decrease.gif +0 -0
  517. data/vendor/assets/javascripts/aloha/plugins/common/image/img/size-increase.gif +0 -0
  518. data/vendor/assets/javascripts/aloha/plugins/common/image/lib/image-plugin.js +1615 -0
  519. data/vendor/assets/javascripts/aloha/plugins/common/image/nls/cz/i18n.js +16 -0
  520. data/vendor/assets/javascripts/aloha/plugins/common/image/nls/de/i18n.js +1 -0
  521. data/vendor/assets/javascripts/aloha/plugins/common/image/nls/fr/i18n.js +1 -0
  522. data/vendor/assets/javascripts/aloha/plugins/common/image/nls/i18n.js +7 -0
  523. data/vendor/assets/javascripts/aloha/plugins/common/image/nls/ru/i18n.js +16 -0
  524. data/vendor/assets/javascripts/aloha/plugins/common/image/package.json +1 -0
  525. data/vendor/assets/javascripts/aloha/plugins/common/image/test/test.css +12 -0
  526. data/vendor/assets/javascripts/aloha/plugins/common/image/test/test.html +40 -0
  527. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/jcrop/jcrop.gif +0 -0
  528. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/jcrop/jquery.jcrop.css +35 -0
  529. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/jcrop/jquery.jcrop.min.js +163 -0
  530. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/mousewheel/mousewheel.js +60 -0
  531. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/jquery-ui-1.8.10.custom.min.js +97 -0
  532. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  533. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  534. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
  535. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  536. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  537. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  538. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  539. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  540. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  541. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
  542. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
  543. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
  544. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
  545. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
  546. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/jquery-ui-1.8.10.cropnresize.css +33 -0
  547. data/vendor/assets/javascripts/aloha/plugins/common/image/vendor/ui/ui-lightness/jquery-ui-1.8.10.custom.css +314 -0
  548. data/vendor/assets/javascripts/aloha/plugins/common/link/css/link.css +55 -0
  549. data/vendor/assets/javascripts/aloha/plugins/common/link/demo/background.png +0 -0
  550. data/vendor/assets/javascripts/aloha/plugins/common/link/demo/external-link-ltr-icon.png +0 -0
  551. data/vendor/assets/javascripts/aloha/plugins/common/link/demo/index.css +91 -0
  552. data/vendor/assets/javascripts/aloha/plugins/common/link/demo/index.html +91 -0
  553. data/vendor/assets/javascripts/aloha/plugins/common/link/extra/delicious.js +246 -0
  554. data/vendor/assets/javascripts/aloha/plugins/common/link/extra/linklist.js +227 -0
  555. data/vendor/assets/javascripts/aloha/plugins/common/link/extra/slowlinklist.js +228 -0
  556. data/vendor/assets/javascripts/aloha/plugins/common/link/lib/link-plugin.js +759 -0
  557. data/vendor/assets/javascripts/aloha/plugins/common/link/nls/de/i18n.js +13 -0
  558. data/vendor/assets/javascripts/aloha/plugins/common/link/nls/fr/i18n.js +6 -0
  559. data/vendor/assets/javascripts/aloha/plugins/common/link/nls/i18n.js +9 -0
  560. data/vendor/assets/javascripts/aloha/plugins/common/link/nls/pl/i18n.js +6 -0
  561. data/vendor/assets/javascripts/aloha/plugins/common/link/nls/ru/i18n.js +6 -0
  562. data/vendor/assets/javascripts/aloha/plugins/common/list/lib/list-plugin.js +849 -0
  563. data/vendor/assets/javascripts/aloha/plugins/common/list/nls/de/i18n.js +1 -0
  564. data/vendor/assets/javascripts/aloha/plugins/common/list/nls/eo/i18n.js +1 -0
  565. data/vendor/assets/javascripts/aloha/plugins/common/list/nls/fi/i18n.js +1 -0
  566. data/vendor/assets/javascripts/aloha/plugins/common/list/nls/fr/i18n.js +1 -0
  567. data/vendor/assets/javascripts/aloha/plugins/common/list/nls/i18n.js +9 -0
  568. data/vendor/assets/javascripts/aloha/plugins/common/list/nls/it/i18n.js +1 -0
  569. data/vendor/assets/javascripts/aloha/plugins/common/list/nls/ru/i18n.js +1 -0
  570. data/vendor/assets/javascripts/aloha/plugins/common/list/package.json +1 -0
  571. data/vendor/assets/javascripts/aloha/plugins/common/paste/README.md +3 -0
  572. data/vendor/assets/javascripts/aloha/plugins/common/paste/lib/paste-plugin.js +221 -0
  573. data/vendor/assets/javascripts/aloha/plugins/common/paste/package.json +8 -0
  574. data/vendor/assets/javascripts/aloha/plugins/common/table/css/table.css +160 -0
  575. data/vendor/assets/javascripts/aloha/plugins/common/table/img/down.cur +0 -0
  576. data/vendor/assets/javascripts/aloha/plugins/common/table/img/left.cur +0 -0
  577. data/vendor/assets/javascripts/aloha/plugins/common/table/img/table_layout.png +0 -0
  578. data/vendor/assets/javascripts/aloha/plugins/common/table/img/wai-green.png +0 -0
  579. data/vendor/assets/javascripts/aloha/plugins/common/table/img/wai-red.png +0 -0
  580. data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table-cell.js +463 -0
  581. data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table-create-layer.js +210 -0
  582. data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table-plugin-utils.js +355 -0
  583. data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table-plugin.js +1498 -0
  584. data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table-selection.js +374 -0
  585. data/vendor/assets/javascripts/aloha/plugins/common/table/lib/table.js +1529 -0
  586. data/vendor/assets/javascripts/aloha/plugins/common/table/nls/de/i18n.js +1 -0
  587. data/vendor/assets/javascripts/aloha/plugins/common/table/nls/eo/i18n.js +1 -0
  588. data/vendor/assets/javascripts/aloha/plugins/common/table/nls/fi/i18n.js +1 -0
  589. data/vendor/assets/javascripts/aloha/plugins/common/table/nls/fr/i18n.js +1 -0
  590. data/vendor/assets/javascripts/aloha/plugins/common/table/nls/i18n.js +11 -0
  591. data/vendor/assets/javascripts/aloha/plugins/common/table/nls/it/i18n.js +1 -0
  592. data/vendor/assets/javascripts/aloha/plugins/common/table/nls/pl/i18n.js +1 -0
  593. data/vendor/assets/javascripts/aloha/plugins/common/table/nls/ru/i18n.js +1 -0
  594. data/vendor/assets/javascripts/aloha/plugins/common/table/package.json +1 -0
  595. data/vendor/assets/javascripts/aloha/plugins/common/undo/demo/index.css +49 -0
  596. data/vendor/assets/javascripts/aloha/plugins/common/undo/demo/index.html +85 -0
  597. data/vendor/assets/javascripts/aloha/plugins/common/undo/lib/undo-plugin.js +134 -0
  598. data/vendor/assets/javascripts/aloha/plugins/common/undo/package.json +7 -0
  599. data/vendor/assets/javascripts/aloha/plugins/common/undo/vendor/diff_match_patch_uncompressed.js +2155 -0
  600. data/vendor/assets/javascripts/aloha/plugins/common/undo/vendor/undo.js +119 -0
  601. data/vendor/assets/javascripts/aloha/plugins/extra/attributes/README +0 -0
  602. data/vendor/assets/javascripts/aloha/plugins/extra/attributes/css/attributes.css +12 -0
  603. data/vendor/assets/javascripts/aloha/plugins/extra/attributes/lib/attributes-plugin.js +217 -0
  604. data/vendor/assets/javascripts/aloha/plugins/extra/attributes/nls/de/i18n.js +1 -0
  605. data/vendor/assets/javascripts/aloha/plugins/extra/attributes/nls/en/i18n.js +1 -0
  606. data/vendor/assets/javascripts/aloha/plugins/extra/attributes/nls/i18n.js +5 -0
  607. data/vendor/assets/javascripts/aloha/plugins/extra/browser/README +0 -0
  608. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/browser.css +360 -0
  609. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/browser.jqgrid.css +374 -0
  610. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/browsercombined.css +752 -0
  611. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  612. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  613. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  614. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  615. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  616. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  617. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  618. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  619. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-icons_222222_256x240.png +0 -0
  620. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-icons_2e83ff_256x240.png +0 -0
  621. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-icons_454545_256x240.png +0 -0
  622. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-icons_888888_256x240.png +0 -0
  623. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/images/ui-icons_cd0a0a_256x240.png +0 -0
  624. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/jquery-ui-1.8.13.custom.css +319 -0
  625. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/jstree.css +88 -0
  626. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/throbber.gif +0 -0
  627. data/vendor/assets/javascripts/aloha/plugins/extra/browser/css/ui.jqgrid.css +148 -0
  628. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/arrow-000-medium.png +0 -0
  629. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/arrow-180.png +0 -0
  630. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/arrow-315-medium.png +0 -0
  631. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/arrow-stop-180.png +0 -0
  632. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/arrow-stop.png +0 -0
  633. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/arrow.png +0 -0
  634. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/control-stop-square-small.png +0 -0
  635. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/folder-horizontal-open.png +0 -0
  636. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/folder-open.png +0 -0
  637. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/gcn-icons/gcn-icon-file.gif +0 -0
  638. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/gcn-icons/gcn-icon-image.gif +0 -0
  639. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/gcn-icons/gcn-icon-page.gif +0 -0
  640. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/magnifier-left.png +0 -0
  641. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/page.png +0 -0
  642. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/picture.png +0 -0
  643. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/sort-alphabet-descending.png +0 -0
  644. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/sort-alphabet.png +0 -0
  645. data/vendor/assets/javascripts/aloha/plugins/extra/browser/img/throbber.gif +0 -0
  646. data/vendor/assets/javascripts/aloha/plugins/extra/browser/lib/browser-plugin.js +10 -0
  647. data/vendor/assets/javascripts/aloha/plugins/extra/browser/lib/browser.js +1103 -0
  648. data/vendor/assets/javascripts/aloha/plugins/extra/browser/lib/locale.js +26 -0
  649. data/vendor/assets/javascripts/aloha/plugins/extra/browser/nls/de.json +1 -0
  650. data/vendor/assets/javascripts/aloha/plugins/extra/browser/nls/de/i18n.js +18 -0
  651. data/vendor/assets/javascripts/aloha/plugins/extra/browser/nls/en.json +1 -0
  652. data/vendor/assets/javascripts/aloha/plugins/extra/browser/nls/en/i18n.js +18 -0
  653. data/vendor/assets/javascripts/aloha/plugins/extra/browser/nls/i18n.js +4 -0
  654. data/vendor/assets/javascripts/aloha/plugins/extra/browser/vendor/grid.locale.de.js +134 -0
  655. data/vendor/assets/javascripts/aloha/plugins/extra/browser/vendor/grid.locale.en.js +129 -0
  656. data/vendor/assets/javascripts/aloha/plugins/extra/browser/vendor/jquery.jqGrid.js +467 -0
  657. data/vendor/assets/javascripts/aloha/plugins/extra/browser/vendor/jquery.jstree.js +4544 -0
  658. data/vendor/assets/javascripts/aloha/plugins/extra/browser/vendor/jquery.ui.js +756 -0
  659. data/vendor/assets/javascripts/aloha/plugins/extra/browser/vendor/ui-layout.js +108 -0
  660. data/vendor/assets/javascripts/aloha/plugins/extra/cite/README +0 -0
  661. data/vendor/assets/javascripts/aloha/plugins/extra/cite/css/cite.css +49 -0
  662. data/vendor/assets/javascripts/aloha/plugins/extra/cite/img/blockquote.png +0 -0
  663. data/vendor/assets/javascripts/aloha/plugins/extra/cite/img/icon_cite.png +0 -0
  664. data/vendor/assets/javascripts/aloha/plugins/extra/cite/lib/cite-plugin.js +539 -0
  665. data/vendor/assets/javascripts/aloha/plugins/extra/cite/nls/de/i18n.js +1 -0
  666. data/vendor/assets/javascripts/aloha/plugins/extra/cite/nls/en/i18n.js +1 -0
  667. data/vendor/assets/javascripts/aloha/plugins/extra/cite/nls/i18n.js +4 -0
  668. data/vendor/assets/javascripts/aloha/plugins/extra/cite/package.json +1 -0
  669. data/vendor/assets/javascripts/aloha/plugins/extra/comments/img/add-icon.png +0 -0
  670. data/vendor/assets/javascripts/aloha/plugins/extra/comments/img/add.png +0 -0
  671. data/vendor/assets/javascripts/aloha/plugins/extra/comments/img/comments.png +0 -0
  672. data/vendor/assets/javascripts/aloha/plugins/extra/comments/img/hr.png +0 -0
  673. data/vendor/assets/javascripts/aloha/plugins/extra/comments/img/textbox.png +0 -0
  674. data/vendor/assets/javascripts/aloha/plugins/extra/comments/package.json +1 -0
  675. data/vendor/assets/javascripts/aloha/plugins/extra/comments/src/comments.css +442 -0
  676. data/vendor/assets/javascripts/aloha/plugins/extra/comments/src/comments.js +669 -0
  677. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/AGPL3 +661 -0
  678. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/LICENSE +25 -0
  679. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/README.md +5 -0
  680. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/TODO.md +2 -0
  681. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/demo/index.css +47 -0
  682. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/demo/index.html +101 -0
  683. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/demo/migration/index.css +189 -0
  684. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/demo/migration/index.html +321 -0
  685. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/demo/specs/DragnDropnImage.graphml +677 -0
  686. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/demo/style.css +47 -0
  687. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/demo/upload.php +26 -0
  688. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/i18n/en.json +1 -0
  689. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/i18n/fr.json +1 -0
  690. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/img/cross.png +0 -0
  691. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/img/hourglass.png +0 -0
  692. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/img/loading.gif +0 -0
  693. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/img/page.png +0 -0
  694. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/img/tick.png +0 -0
  695. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/lib/draganddropfiles-plugin.js +4 -0
  696. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/lib/dragndropfiles.css +110 -0
  697. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/lib/dragndropfiles.js +349 -0
  698. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/lib/dropfilesrepository.js +365 -0
  699. data/vendor/assets/javascripts/aloha/plugins/extra/draganddropfiles/package.json +1 -0
  700. data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/README.md +3 -0
  701. data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/css/formatless.css +7 -0
  702. data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/img/button.png +0 -0
  703. data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/lib/formatlesshandler.js +67 -0
  704. data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/lib/formatlesspaste-plugin.js +103 -0
  705. data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/nls/de/i18n.js +1 -0
  706. data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/nls/i18n.js +7 -0
  707. data/vendor/assets/javascripts/aloha/plugins/extra/formatlesspaste/package.json +8 -0
  708. data/vendor/assets/javascripts/aloha/plugins/extra/headerids/README +0 -0
  709. data/vendor/assets/javascripts/aloha/plugins/extra/headerids/css/headerids.css +8 -0
  710. data/vendor/assets/javascripts/aloha/plugins/extra/headerids/lib/headerids-plugin.js +127 -0
  711. data/vendor/assets/javascripts/aloha/plugins/extra/headerids/nls/de/i18n.js +1 -0
  712. data/vendor/assets/javascripts/aloha/plugins/extra/headerids/nls/en/i18n.js +1 -0
  713. data/vendor/assets/javascripts/aloha/plugins/extra/headerids/nls/i18n.js +5 -0
  714. data/vendor/assets/javascripts/aloha/plugins/extra/hints/dep/jquery.poshytip.js +470 -0
  715. data/vendor/assets/javascripts/aloha/plugins/extra/hints/i18n/de.json +1 -0
  716. data/vendor/assets/javascripts/aloha/plugins/extra/hints/i18n/en.json +1 -0
  717. data/vendor/assets/javascripts/aloha/plugins/extra/hints/img/tip-twitter_arrows.gif +0 -0
  718. data/vendor/assets/javascripts/aloha/plugins/extra/hints/package.json +9 -0
  719. data/vendor/assets/javascripts/aloha/plugins/extra/hints/src/hints.css +61 -0
  720. data/vendor/assets/javascripts/aloha/plugins/extra/hints/src/hints.js +49 -0
  721. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/README +0 -0
  722. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ad.png +0 -0
  723. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ae.png +0 -0
  724. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/af.png +0 -0
  725. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ag.png +0 -0
  726. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ai.png +0 -0
  727. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/al.png +0 -0
  728. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/am.png +0 -0
  729. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/an.png +0 -0
  730. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ao.png +0 -0
  731. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ar.png +0 -0
  732. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/as.png +0 -0
  733. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/at.png +0 -0
  734. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/au.png +0 -0
  735. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/aw.png +0 -0
  736. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ax.png +0 -0
  737. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/az.png +0 -0
  738. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ba.png +0 -0
  739. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bb.png +0 -0
  740. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bd.png +0 -0
  741. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/be.png +0 -0
  742. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bf.png +0 -0
  743. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bg.png +0 -0
  744. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bh.png +0 -0
  745. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bi.png +0 -0
  746. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bj.png +0 -0
  747. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bm.png +0 -0
  748. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bn.png +0 -0
  749. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bo.png +0 -0
  750. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/br.png +0 -0
  751. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bs.png +0 -0
  752. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bt.png +0 -0
  753. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bv.png +0 -0
  754. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bw.png +0 -0
  755. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/by.png +0 -0
  756. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/bz.png +0 -0
  757. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ca.png +0 -0
  758. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/catalonia.png +0 -0
  759. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cc.png +0 -0
  760. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cd.png +0 -0
  761. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cf.png +0 -0
  762. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cg.png +0 -0
  763. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ch.png +0 -0
  764. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ci.png +0 -0
  765. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ck.png +0 -0
  766. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cl.png +0 -0
  767. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cm.png +0 -0
  768. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cn.png +0 -0
  769. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/co.png +0 -0
  770. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cr.png +0 -0
  771. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cs.png +0 -0
  772. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cu.png +0 -0
  773. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cv.png +0 -0
  774. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cx.png +0 -0
  775. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cy.png +0 -0
  776. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/cz.png +0 -0
  777. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/de.png +0 -0
  778. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/dj.png +0 -0
  779. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/dk.png +0 -0
  780. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/dm.png +0 -0
  781. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/do.png +0 -0
  782. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/dz.png +0 -0
  783. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ec.png +0 -0
  784. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ee.png +0 -0
  785. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/eg.png +0 -0
  786. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/eh.png +0 -0
  787. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/en.png +0 -0
  788. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/er.png +0 -0
  789. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/es.png +0 -0
  790. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/et.png +0 -0
  791. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/europeanunion.png +0 -0
  792. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/fam.png +0 -0
  793. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/fi.png +0 -0
  794. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/fj.png +0 -0
  795. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/fk.png +0 -0
  796. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/fm.png +0 -0
  797. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/fo.png +0 -0
  798. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/fr.png +0 -0
  799. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ga.png +0 -0
  800. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gb.png +0 -0
  801. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gd.png +0 -0
  802. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ge.png +0 -0
  803. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gf.png +0 -0
  804. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gh.png +0 -0
  805. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gi.png +0 -0
  806. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gl.png +0 -0
  807. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gm.png +0 -0
  808. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gn.png +0 -0
  809. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gp.png +0 -0
  810. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gq.png +0 -0
  811. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gr.png +0 -0
  812. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gs.png +0 -0
  813. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gt.png +0 -0
  814. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gu.png +0 -0
  815. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gw.png +0 -0
  816. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/gy.png +0 -0
  817. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/hk.png +0 -0
  818. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/hm.png +0 -0
  819. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/hn.png +0 -0
  820. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/hr.png +0 -0
  821. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ht.png +0 -0
  822. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/hu.png +0 -0
  823. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/id.png +0 -0
  824. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ie.png +0 -0
  825. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/il.png +0 -0
  826. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/in.png +0 -0
  827. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/io.png +0 -0
  828. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/iq.png +0 -0
  829. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ir.png +0 -0
  830. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/is.png +0 -0
  831. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/it.png +0 -0
  832. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/jm.png +0 -0
  833. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/jo.png +0 -0
  834. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/jp.png +0 -0
  835. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ke.png +0 -0
  836. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/kg.png +0 -0
  837. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/kh.png +0 -0
  838. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ki.png +0 -0
  839. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/km.png +0 -0
  840. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/kn.png +0 -0
  841. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/kp.png +0 -0
  842. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/kr.png +0 -0
  843. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/kw.png +0 -0
  844. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ky.png +0 -0
  845. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/kz.png +0 -0
  846. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/la.png +0 -0
  847. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/lb.png +0 -0
  848. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/lc.png +0 -0
  849. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/li.png +0 -0
  850. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/lk.png +0 -0
  851. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/lr.png +0 -0
  852. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ls.png +0 -0
  853. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/lt.png +0 -0
  854. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/lu.png +0 -0
  855. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/lv.png +0 -0
  856. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ly.png +0 -0
  857. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ma.png +0 -0
  858. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mc.png +0 -0
  859. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/md.png +0 -0
  860. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/me.png +0 -0
  861. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mg.png +0 -0
  862. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mh.png +0 -0
  863. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mk.png +0 -0
  864. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ml.png +0 -0
  865. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mm.png +0 -0
  866. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mn.png +0 -0
  867. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mo.png +0 -0
  868. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mp.png +0 -0
  869. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mq.png +0 -0
  870. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mr.png +0 -0
  871. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ms.png +0 -0
  872. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mt.png +0 -0
  873. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mu.png +0 -0
  874. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mv.png +0 -0
  875. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mw.png +0 -0
  876. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mx.png +0 -0
  877. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/my.png +0 -0
  878. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/mz.png +0 -0
  879. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/na.png +0 -0
  880. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/nc.png +0 -0
  881. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ne.png +0 -0
  882. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/nf.png +0 -0
  883. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ng.png +0 -0
  884. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ni.png +0 -0
  885. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/nl.png +0 -0
  886. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/no.png +0 -0
  887. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/np.png +0 -0
  888. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/nr.png +0 -0
  889. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/nu.png +0 -0
  890. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/nz.png +0 -0
  891. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/om.png +0 -0
  892. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pa.png +0 -0
  893. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pe.png +0 -0
  894. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pf.png +0 -0
  895. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pg.png +0 -0
  896. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ph.png +0 -0
  897. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pk.png +0 -0
  898. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pl.png +0 -0
  899. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pm.png +0 -0
  900. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pn.png +0 -0
  901. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pr.png +0 -0
  902. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ps.png +0 -0
  903. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pt.png +0 -0
  904. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/pw.png +0 -0
  905. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/py.png +0 -0
  906. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/qa.png +0 -0
  907. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/re.png +0 -0
  908. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ro.png +0 -0
  909. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/rs.png +0 -0
  910. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ru.png +0 -0
  911. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/rw.png +0 -0
  912. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sa.png +0 -0
  913. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sb.png +0 -0
  914. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sc.png +0 -0
  915. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/scotland.png +0 -0
  916. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sd.png +0 -0
  917. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/se.png +0 -0
  918. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sg.png +0 -0
  919. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sh.png +0 -0
  920. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/si.png +0 -0
  921. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sj.png +0 -0
  922. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sk.png +0 -0
  923. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sl.png +0 -0
  924. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sm.png +0 -0
  925. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sn.png +0 -0
  926. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/so.png +0 -0
  927. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sr.png +0 -0
  928. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/st.png +0 -0
  929. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sv.png +0 -0
  930. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sy.png +0 -0
  931. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/sz.png +0 -0
  932. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tc.png +0 -0
  933. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/td.png +0 -0
  934. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tf.png +0 -0
  935. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tg.png +0 -0
  936. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/th.png +0 -0
  937. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tj.png +0 -0
  938. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tk.png +0 -0
  939. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tl.png +0 -0
  940. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tm.png +0 -0
  941. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tn.png +0 -0
  942. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/to.png +0 -0
  943. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tr.png +0 -0
  944. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tt.png +0 -0
  945. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tv.png +0 -0
  946. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tw.png +0 -0
  947. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/tz.png +0 -0
  948. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ua.png +0 -0
  949. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ug.png +0 -0
  950. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/um.png +0 -0
  951. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/us.png +0 -0
  952. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/uy.png +0 -0
  953. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/uz.png +0 -0
  954. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/va.png +0 -0
  955. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/vc.png +0 -0
  956. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ve.png +0 -0
  957. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/vg.png +0 -0
  958. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/vi.png +0 -0
  959. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/vn.png +0 -0
  960. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/vu.png +0 -0
  961. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/wales.png +0 -0
  962. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/wf.png +0 -0
  963. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ws.png +0 -0
  964. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/ye.png +0 -0
  965. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/yt.png +0 -0
  966. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/za.png +0 -0
  967. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/zm.png +0 -0
  968. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/img/flags/zw.png +0 -0
  969. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/lib/linkbrowser-plugin.js +153 -0
  970. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/de/i18n.js +1 -0
  971. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/fr/i18n.js +1 -0
  972. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/i18n.js +7 -0
  973. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/pl/i18n.js +1 -0
  974. data/vendor/assets/javascripts/aloha/plugins/extra/linkbrowser/nls/ru/i18n.js +1 -0
  975. data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/demo/index.css +49 -0
  976. data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/demo/index.html +82 -0
  977. data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/i18n/en.json +1 -0
  978. data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/package.json +1 -0
  979. data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/proxy.php +244 -0
  980. data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/src/linkchecker.css +14 -0
  981. data/vendor/assets/javascripts/aloha/plugins/extra/linkchecker/src/linkchecker.js +256 -0
  982. data/vendor/assets/javascripts/aloha/plugins/extra/listenforcer/lib/listenforcer-plugin.js +165 -0
  983. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/README +0 -0
  984. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/css/metaview.css +86 -0
  985. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/anchor.png +0 -0
  986. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/blockquote.png +0 -0
  987. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/button.png +0 -0
  988. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/caption.png +0 -0
  989. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/cite.png +0 -0
  990. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/dd.png +0 -0
  991. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/div.png +0 -0
  992. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/dl.png +0 -0
  993. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/dt.png +0 -0
  994. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/h1.png +0 -0
  995. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/h2.png +0 -0
  996. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/h3.png +0 -0
  997. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/h4.png +0 -0
  998. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/h5.png +0 -0
  999. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/h6.png +0 -0
  1000. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/icon_cite.png +0 -0
  1001. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/p.png +0 -0
  1002. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/pre.png +0 -0
  1003. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/table.png +0 -0
  1004. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/td.png +0 -0
  1005. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/img/th.png +0 -0
  1006. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/lib/metaview-plugin.js +82 -0
  1007. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/de.json +1 -0
  1008. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/de/i18n.js +1 -0
  1009. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/en.json +1 -0
  1010. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/en/i18n.js +1 -0
  1011. data/vendor/assets/javascripts/aloha/plugins/extra/metaview/nls/i18n.js +5 -0
  1012. data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/README +0 -0
  1013. data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/css/numerated-headers.css +7 -0
  1014. data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/demo/index.css +189 -0
  1015. data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/demo/index.html +139 -0
  1016. data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/demo/js/aloha-config.js +115 -0
  1017. data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/img/headers.png +0 -0
  1018. data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/lib/numerated-headers-plugin.js +233 -0
  1019. data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/nls/de/i18n.js +1 -0
  1020. data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/nls/en/i18n.js +1 -0
  1021. data/vendor/assets/javascripts/aloha/plugins/extra/numerated-headers/nls/i18n.js +5 -0
  1022. data/vendor/assets/javascripts/aloha/plugins/extra/profiler/css/profiler.css +34 -0
  1023. data/vendor/assets/javascripts/aloha/plugins/extra/profiler/lib/profiler-plugin.js +285 -0
  1024. data/vendor/assets/javascripts/aloha/plugins/extra/ribbon/LICENSE.md +662 -0
  1025. data/vendor/assets/javascripts/aloha/plugins/extra/ribbon/README.md +8 -0
  1026. data/vendor/assets/javascripts/aloha/plugins/extra/ribbon/css/ribbon.css +10 -0
  1027. data/vendor/assets/javascripts/aloha/plugins/extra/ribbon/lib/ribbon-plugin.js +186 -0
  1028. data/vendor/assets/javascripts/aloha/plugins/extra/ribbon/package.json +1 -0
  1029. data/vendor/assets/javascripts/aloha/plugins/extra/toc/i18n/de.json +1 -0
  1030. data/vendor/assets/javascripts/aloha/plugins/extra/toc/i18n/en.json +1 -0
  1031. data/vendor/assets/javascripts/aloha/plugins/extra/toc/package.json +1 -0
  1032. data/vendor/assets/javascripts/aloha/plugins/extra/toc/src/toc.js +350 -0
  1033. data/vendor/assets/javascripts/aloha/plugins/extra/vie/LICENSE +22 -0
  1034. data/vendor/assets/javascripts/aloha/plugins/extra/vie/README.markdown +65 -0
  1035. data/vendor/assets/javascripts/aloha/plugins/extra/vie/demo/index.html +93 -0
  1036. data/vendor/assets/javascripts/aloha/plugins/extra/vie/img/cms-decoupled-communications.png +0 -0
  1037. data/vendor/assets/javascripts/aloha/plugins/extra/vie/package.json +1 -0
  1038. data/vendor/assets/javascripts/aloha/plugins/extra/vie/src/backbone-min.js +27 -0
  1039. data/vendor/assets/javascripts/aloha/plugins/extra/vie/src/underscore-min.js +25 -0
  1040. data/vendor/assets/javascripts/aloha/plugins/extra/vie/src/vie-aloha.js +74 -0
  1041. data/vendor/assets/javascripts/aloha/plugins/extra/vie/src/vie-collectionmanager.js +70 -0
  1042. data/vendor/assets/javascripts/aloha/plugins/extra/vie/src/vie-containermanager.js +263 -0
  1043. data/vendor/assets/javascripts/aloha/plugins/extra/vie/src/vie.js +20 -0
  1044. data/vendor/assets/stylesheets/aloha.css +1 -0
  1045. metadata +1133 -0
@@ -0,0 +1,46 @@
1
+ /*!
2
+ * This file is part of Aloha Editor Project http://aloha-editor.org
3
+ * Copyright © 2010-2011 Gentics Software GmbH, aloha@gentics.com
4
+ * Contributors http://aloha-editor.org/contribution.php
5
+ * Licensed unter the terms of http://www.aloha-editor.org/license.html
6
+ *//*
7
+ * Aloha Editor is free software: you can redistribute it and/or modify
8
+ * it under the terms of the GNU Affero General Public License as published by
9
+ * the Free Software Foundation, either version 3 of the License, or
10
+ * (at your option) any later version.*
11
+ *
12
+ * Aloha Editor is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ * GNU Affero General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Affero General Public License
18
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
19
+ */
20
+
21
+ (function () {
22
+ /**
23
+ * This requirejs module loader loads jquery plugins and wraps them
24
+ */
25
+ define({
26
+ load: function (name, require, load, config) {
27
+ var url = require.toUrl(name + '.js');
28
+
29
+ require(['aloha/jquery'], function(value) {
30
+ var $ = value;
31
+ $.ajax({
32
+ type: 'GET',
33
+ url: url,
34
+ cache: true,
35
+ dataType: 'text',
36
+ success: function(plugin) {
37
+ // plugin = '(function(jQuery) { var $ = jQuery;\n' + plugin + '}(window.alohaQuery));';
38
+ plugin = 'define([\'aloha/jquery\'], function(jQuery) { var $ = jQuery;\n' + plugin + '});'
39
+ load.fromText(name, plugin);
40
+ load(null);
41
+ }
42
+ });
43
+ });
44
+ }
45
+ });
46
+ }());
@@ -0,0 +1,140 @@
1
+ /**
2
+ * @license RequireJS order 0.26.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
3
+ * Available via the MIT or new BSD license.
4
+ * see: http://github.com/jrburke/requirejs for details
5
+ */
6
+ /*jslint nomen: false, plusplus: false, strict: false */
7
+ /*global require: false, define: false, window: false, document: false,
8
+ setTimeout: false */
9
+
10
+ (function () {
11
+ //Sadly necessary browser inference due to differences in the way
12
+ //that browsers load and execute dynamically inserted javascript
13
+ //and whether the script/cache method works.
14
+ //Currently, Gecko and Opera do not load/fire onload for scripts with
15
+ //type="script/cache" but they execute injected scripts in order
16
+ //unless the 'async' flag is present.
17
+ //However, this is all changing in latest browsers implementing HTML5
18
+ //spec. Firefox nightly supports using the .async true by default, and
19
+ //if false, then it will execute in order. Favor that test first for forward
20
+ //compatibility. However, it is unclear if webkit/IE will follow suit.
21
+ //Latest webkit breaks the script/cache trick.
22
+ //Test for document and window so that this file can be loaded in
23
+ //a web worker/non-browser env. It will not make sense to use this
24
+ //plugin in a non-browser env, but the file should not error out if included
25
+ //in a file, then loaded in a non-browser env.
26
+ var supportsInOrderExecution = typeof document !== "undefined" &&
27
+ typeof window !== "undefined" &&
28
+ (document.createElement("script").async ||
29
+ (window.opera && Object.prototype.toString.call(window.opera) === "[object Opera]") ||
30
+ //If Firefox 2 does not have to be supported, then
31
+ //a better check may be:
32
+ //('mozIsLocallyAvailable' in window.navigator)
33
+ ("MozAppearance" in document.documentElement.style)),
34
+ readyRegExp = /^(complete|loaded)$/,
35
+ waiting = [],
36
+ cached = {};
37
+
38
+ function loadResource(name, req, onLoad) {
39
+ req([name], function (value) {
40
+ //The value may be a real defined module. Wrap
41
+ //it in a function call, because this function is used
42
+ //as the factory function for this ordered dependency.
43
+ onLoad(function () {
44
+ return value;
45
+ });
46
+ });
47
+ }
48
+
49
+ //Callback used by the type="script/cache" callback that indicates a script
50
+ //has finished downloading.
51
+ function scriptCacheCallback(evt) {
52
+ var node = evt.currentTarget || evt.srcElement, i,
53
+ moduleName, resource;
54
+
55
+ if (evt.type === "load" || readyRegExp.test(node.readyState)) {
56
+ //Pull out the name of the module and the context.
57
+ moduleName = node.getAttribute("data-requiremodule");
58
+
59
+ //Mark this cache request as loaded
60
+ cached[moduleName] = true;
61
+
62
+ //Find out how many ordered modules have loaded
63
+ for (i = 0; (resource = waiting[i]); i++) {
64
+ if (cached[resource.name]) {
65
+ loadResource(resource.name, resource.req, resource.onLoad);
66
+ } else {
67
+ //Something in the ordered list is not loaded,
68
+ //so wait.
69
+ break;
70
+ }
71
+ }
72
+
73
+ //If just loaded some items, remove them from waiting.
74
+ if (i > 0) {
75
+ waiting.splice(0, i);
76
+ }
77
+
78
+ //Remove this script tag from the DOM
79
+ //Use a setTimeout for cleanup because some older IE versions vomit
80
+ //if removing a script node while it is being evaluated.
81
+ setTimeout(function () {
82
+ node.parentNode.removeChild(node);
83
+ }, 15);
84
+ }
85
+ }
86
+
87
+ define({
88
+ version: '0.26.0',
89
+
90
+ load: function (name, req, onLoad, config) {
91
+ var url = req.nameToUrl(name, null);
92
+
93
+ //If a build, just load the module as usual.
94
+ if (config.isBuild) {
95
+ loadResource(name, req, onLoad);
96
+ return;
97
+ }
98
+
99
+ //Make sure the async attribute is not set for any pathway involving
100
+ //this script.
101
+ require.s.skipAsync[url] = true;
102
+ if (supportsInOrderExecution) {
103
+ //Just a normal script tag append, but without async attribute
104
+ //on the script.
105
+ req([name], function (value) {
106
+ //The value may be a real defined module. Wrap
107
+ //it in a function call, because this function is used
108
+ //as the factory function for this ordered dependency.
109
+ onLoad(function () {
110
+ return value;
111
+ });
112
+ });
113
+ } else {
114
+ //Credit to LABjs author Kyle Simpson for finding that scripts
115
+ //with type="script/cache" allow scripts to be downloaded into
116
+ //browser cache but not executed. Use that
117
+ //so that subsequent addition of a real type="text/javascript"
118
+ //tag will cause the scripts to be executed immediately in the
119
+ //correct order.
120
+ if (req.specified(name)) {
121
+ req([name], function (value) {
122
+ //The value may be a real defined module. Wrap
123
+ //it in a function call, because this function is used
124
+ //as the factory function for this ordered dependency.
125
+ onLoad(function () {
126
+ return value;
127
+ });
128
+ });
129
+ } else {
130
+ waiting.push({
131
+ name: name,
132
+ req: req,
133
+ onLoad: onLoad
134
+ });
135
+ require.attach(url, null, name, scriptCacheCallback, "script/cache");
136
+ }
137
+ }
138
+ }
139
+ });
140
+ }());
@@ -0,0 +1,2013 @@
1
+ /** vim: et:ts=4:sw=4:sts=4
2
+ * @license RequireJS 0.26.0+ Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
3
+ * Available via the MIT or new BSD license.
4
+ * see: http://github.com/jrburke/requirejs for details
5
+ */
6
+ /*jslint strict: false, plusplus: false */
7
+ /*global window: false, navigator: false, document: false, importScripts: false,
8
+ jQuery: false, clearInterval: false, setInterval: false, self: false,
9
+ setTimeout: false, opera: false */
10
+
11
+ var requirejs, require, define;
12
+ (function () {
13
+ //Change this version number for each release.
14
+ var version = "0.26.0+",
15
+ commentRegExp = /(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,
16
+ cjsRequireRegExp = /require\(\s*["']([^'"\s]+)["']\s*\)/g,
17
+ currDirRegExp = /^\.\//,
18
+ jsSuffixRegExp = /\.js$/,
19
+ ostring = Object.prototype.toString,
20
+ ap = Array.prototype,
21
+ aps = ap.slice,
22
+ apsp = ap.splice,
23
+ isBrowser = !!(typeof window !== "undefined" && navigator && document),
24
+ isWebWorker = !isBrowser && typeof importScripts !== "undefined",
25
+ //PS3 indicates loaded and complete, but need to wait for complete
26
+ //specifically. Sequence is "loading", "loaded", execution,
27
+ // then "complete". The UA check is unfortunate, but not sure how
28
+ //to feature test w/o causing perf issues.
29
+ readyRegExp = isBrowser && navigator.platform === 'PLAYSTATION 3' ?
30
+ /^complete$/ : /^(complete|loaded)$/,
31
+ defContextName = "_",
32
+ //Oh the tragedy, detecting opera. See the usage of isOpera for reason.
33
+ isOpera = typeof opera !== "undefined" && opera.toString() === "[object Opera]",
34
+ reqWaitIdPrefix = "_r@@",
35
+ empty = {},
36
+ contexts = {},
37
+ globalDefQueue = [],
38
+ interactiveScript = null,
39
+ isDone = false,
40
+ checkLoadedDepth = 0,
41
+ useInteractive = false,
42
+ req, cfg = {}, currentlyAddingScript, s, head, baseElement, scripts, script,
43
+ src, subPath, mainScript, dataMain, i, scrollIntervalId, setReadyState, ctx,
44
+ jQueryCheck, checkLoadedTimeoutId;
45
+
46
+ function isFunction(it) {
47
+ return ostring.call(it) === "[object Function]";
48
+ }
49
+
50
+ function isArray(it) {
51
+ return ostring.call(it) === "[object Array]";
52
+ }
53
+
54
+ /**
55
+ * Simple function to mix in properties from source into target,
56
+ * but only if target does not already have a property of the same name.
57
+ * This is not robust in IE for transferring methods that match
58
+ * Object.prototype names, but the uses of mixin here seem unlikely to
59
+ * trigger a problem related to that.
60
+ */
61
+ function mixin(target, source, force) {
62
+ for (var prop in source) {
63
+ if (!(prop in empty) && (!(prop in target) || force)) {
64
+ target[prop] = source[prop];
65
+ }
66
+ }
67
+ return req;
68
+ }
69
+
70
+ /**
71
+ * Constructs an error with a pointer to an URL with more information.
72
+ * @param {String} id the error ID that maps to an ID on a web page.
73
+ * @param {String} message human readable error.
74
+ * @param {Error} [err] the original error, if there is one.
75
+ *
76
+ * @returns {Error}
77
+ */
78
+ function makeError(id, msg, err) {
79
+ var e = new Error(msg + '\nhttp://requirejs.org/docs/errors.html#' + id);
80
+ if (err) {
81
+ e.originalError = err;
82
+ }
83
+ return e;
84
+ }
85
+
86
+ /**
87
+ * Used to set up package paths from a packagePaths or packages config object.
88
+ * @param {Object} pkgs the object to store the new package config
89
+ * @param {Array} currentPackages an array of packages to configure
90
+ * @param {String} [dir] a prefix dir to use.
91
+ */
92
+ function configurePackageDir(pkgs, currentPackages, dir) {
93
+ var i, location, pkgObj;
94
+
95
+ for (i = 0; (pkgObj = currentPackages[i]); i++) {
96
+ pkgObj = typeof pkgObj === "string" ? { name: pkgObj } : pkgObj;
97
+ location = pkgObj.location;
98
+
99
+ //Add dir to the path, but avoid paths that start with a slash
100
+ //or have a colon (indicates a protocol)
101
+ if (dir && (!location || (location.indexOf("/") !== 0 && location.indexOf(":") === -1))) {
102
+ location = dir + "/" + (location || pkgObj.name);
103
+ }
104
+
105
+ //Create a brand new object on pkgs, since currentPackages can
106
+ //be passed in again, and config.pkgs is the internal transformed
107
+ //state for all package configs.
108
+ pkgs[pkgObj.name] = {
109
+ name: pkgObj.name,
110
+ location: location || pkgObj.name,
111
+ //Remove leading dot in main, so main paths are normalized,
112
+ //and remove any trailing .js, since different package
113
+ //envs have different conventions: some use a module name,
114
+ //some use a file name.
115
+ main: (pkgObj.main || "main")
116
+ .replace(currDirRegExp, '')
117
+ .replace(jsSuffixRegExp, '')
118
+ };
119
+ }
120
+ }
121
+
122
+ /**
123
+ * jQuery 1.4.3-1.5.x use a readyWait/ready() pairing to hold DOM
124
+ * ready callbacks, but jQuery 1.6 supports a holdReady() API instead.
125
+ * At some point remove the readyWait/ready() support and just stick
126
+ * with using holdReady.
127
+ */
128
+ function jQueryHoldReady($, shouldHold) {
129
+ if ($.holdReady) {
130
+ $.holdReady(shouldHold);
131
+ } else if (shouldHold) {
132
+ $.readyWait += 1;
133
+ } else {
134
+ $.ready(true);
135
+ }
136
+ }
137
+
138
+ if (typeof define !== "undefined") {
139
+ //If a define is already in play via another AMD loader,
140
+ //do not overwrite.
141
+ return;
142
+ }
143
+
144
+ if (typeof requirejs !== "undefined") {
145
+ if (isFunction(requirejs)) {
146
+ //Do not overwrite and existing requirejs instance.
147
+ return;
148
+ } else {
149
+ cfg = requirejs;
150
+ requirejs = undefined;
151
+ }
152
+ }
153
+
154
+ //Allow for a require config object
155
+ if (typeof require !== "undefined" && !isFunction(require)) {
156
+ //assume it is a config object.
157
+ cfg = require;
158
+ require = undefined;
159
+ }
160
+
161
+ /**
162
+ * Creates a new context for use in require and define calls.
163
+ * Handle most of the heavy lifting. Do not want to use an object
164
+ * with prototype here to avoid using "this" in require, in case it
165
+ * needs to be used in more super secure envs that do not want this.
166
+ * Also there should not be that many contexts in the page. Usually just
167
+ * one for the default context, but could be extra for multiversion cases
168
+ * or if a package needs a special context for a dependency that conflicts
169
+ * with the standard context.
170
+ */
171
+ function newContext(contextName) {
172
+ var context, resume,
173
+ config = {
174
+ waitSeconds: 7,
175
+ baseUrl: s.baseUrl || "./",
176
+ paths: {},
177
+ pkgs: {},
178
+ catchError: {}
179
+ },
180
+ defQueue = [],
181
+ specified = {
182
+ "require": true,
183
+ "exports": true,
184
+ "module": true
185
+ },
186
+ urlMap = {},
187
+ defined = {},
188
+ loaded = {},
189
+ waiting = {},
190
+ waitAry = [],
191
+ waitIdCounter = 0,
192
+ managerCallbacks = {},
193
+ plugins = {},
194
+ pluginsQueue = {},
195
+ resumeDepth = 0,
196
+ normalizedWaiting = {};
197
+
198
+ /**
199
+ * Trims the . and .. from an array of path segments.
200
+ * It will keep a leading path segment if a .. will become
201
+ * the first path segment, to help with module name lookups,
202
+ * which act like paths, but can be remapped. But the end result,
203
+ * all paths that use this function should look normalized.
204
+ * NOTE: this method MODIFIES the input array.
205
+ * @param {Array} ary the array of path segments.
206
+ */
207
+ function trimDots(ary) {
208
+ var i, part;
209
+ for (i = 0; (part = ary[i]); i++) {
210
+ if (part === ".") {
211
+ ary.splice(i, 1);
212
+ i -= 1;
213
+ } else if (part === "..") {
214
+ if (i === 1 && (ary[2] === '..' || ary[0] === '..')) {
215
+ //End of the line. Keep at least one non-dot
216
+ //path segment at the front so it can be mapped
217
+ //correctly to disk. Otherwise, there is likely
218
+ //no path mapping for a path starting with '..'.
219
+ //This can still fail, but catches the most reasonable
220
+ //uses of ..
221
+ break;
222
+ } else if (i > 0) {
223
+ ary.splice(i - 1, 2);
224
+ i -= 2;
225
+ }
226
+ }
227
+ }
228
+ }
229
+
230
+ /**
231
+ * Given a relative module name, like ./something, normalize it to
232
+ * a real name that can be mapped to a path.
233
+ * @param {String} name the relative name
234
+ * @param {String} baseName a real name that the name arg is relative
235
+ * to.
236
+ * @returns {String} normalized name
237
+ */
238
+ function normalize(name, baseName) {
239
+ var pkgName, pkgConfig;
240
+
241
+ //Adjust any relative paths.
242
+ if (name && name.charAt(0) === ".") {
243
+ //If have a base name, try to normalize against it,
244
+ //otherwise, assume it is a top-level require that will
245
+ //be relative to baseUrl in the end.
246
+ if (baseName) {
247
+ if (config.pkgs[baseName]) {
248
+ //If the baseName is a package name, then just treat it as one
249
+ //name to concat the name with.
250
+ baseName = [baseName];
251
+ } else {
252
+ //Convert baseName to array, and lop off the last part,
253
+ //so that . matches that "directory" and not name of the baseName's
254
+ //module. For instance, baseName of "one/two/three", maps to
255
+ //"one/two/three.js", but we want the directory, "one/two" for
256
+ //this normalization.
257
+ baseName = baseName.split("/");
258
+ baseName = baseName.slice(0, baseName.length - 1);
259
+ }
260
+
261
+ name = baseName.concat(name.split("/"));
262
+ trimDots(name);
263
+
264
+ //Some use of packages may use a . path to reference the
265
+ //"main" module name, so normalize for that.
266
+ pkgConfig = config.pkgs[(pkgName = name[0])];
267
+ name = name.join("/");
268
+ if (pkgConfig && name === pkgName + '/' + pkgConfig.main) {
269
+ name = pkgName;
270
+ }
271
+ }
272
+ }
273
+ return name;
274
+ }
275
+
276
+ /**
277
+ * Creates a module mapping that includes plugin prefix, module
278
+ * name, and path. If parentModuleMap is provided it will
279
+ * also normalize the name via require.normalize()
280
+ *
281
+ * @param {String} name the module name
282
+ * @param {String} [parentModuleMap] parent module map
283
+ * for the module name, used to resolve relative names.
284
+ *
285
+ * @returns {Object}
286
+ */
287
+ function makeModuleMap(name, parentModuleMap) {
288
+ var index = name ? name.indexOf("!") : -1,
289
+ prefix = null,
290
+ parentName = parentModuleMap ? parentModuleMap.name : null,
291
+ originalName = name,
292
+ normalizedName, url, pluginModule;
293
+
294
+ if (index !== -1) {
295
+ prefix = name.substring(0, index);
296
+ name = name.substring(index + 1, name.length);
297
+ }
298
+
299
+ if (prefix) {
300
+ prefix = normalize(prefix, parentName);
301
+ }
302
+
303
+ //Account for relative paths if there is a base name.
304
+ if (name) {
305
+ if (prefix) {
306
+ pluginModule = defined[prefix];
307
+ if (pluginModule) {
308
+ //Plugin is loaded, use its normalize method, otherwise,
309
+ //normalize name as usual.
310
+ if (pluginModule.normalize) {
311
+ normalizedName = pluginModule.normalize(name, function (name) {
312
+ return normalize(name, parentName);
313
+ });
314
+ } else {
315
+ normalizedName = normalize(name, parentName);
316
+ }
317
+ } else {
318
+ //Plugin is not loaded yet, so do not normalize
319
+ //the name, wait for plugin to load to see if
320
+ //it has a normalize method. To avoid possible
321
+ //ambiguity with relative names loaded from another
322
+ //plugin, use the parent's name as part of this name.
323
+ normalizedName = '__$p' + parentName + '@' + (name || '');
324
+ }
325
+ } else {
326
+ normalizedName = normalize(name, parentName);
327
+ }
328
+
329
+ url = urlMap[normalizedName];
330
+ if (!url) {
331
+ //Calculate url for the module, if it has a name.
332
+ if (req.toModuleUrl) {
333
+ //Special logic required for a particular engine,
334
+ //like Node.
335
+ url = req.toModuleUrl(context, normalizedName, parentModuleMap);
336
+ } else {
337
+ url = context.nameToUrl(normalizedName, null, parentModuleMap);
338
+ }
339
+
340
+ //Store the URL mapping for later.
341
+ urlMap[normalizedName] = url;
342
+ }
343
+ }
344
+
345
+ return {
346
+ prefix: prefix,
347
+ name: normalizedName,
348
+ parentMap: parentModuleMap,
349
+ url: url,
350
+ originalName: originalName,
351
+ fullName: prefix ? prefix + "!" + (normalizedName || '') : normalizedName
352
+ };
353
+ }
354
+
355
+ /**
356
+ * Determine if priority loading is done. If so clear the priorityWait
357
+ */
358
+ function isPriorityDone() {
359
+ var priorityDone = true,
360
+ priorityWait = config.priorityWait,
361
+ priorityName, i;
362
+ if (priorityWait) {
363
+ for (i = 0; (priorityName = priorityWait[i]); i++) {
364
+ if (!loaded[priorityName]) {
365
+ priorityDone = false;
366
+ break;
367
+ }
368
+ }
369
+ if (priorityDone) {
370
+ delete config.priorityWait;
371
+ }
372
+ }
373
+ return priorityDone;
374
+ }
375
+
376
+ /**
377
+ * Helper function that creates a setExports function for a "module"
378
+ * CommonJS dependency. Do this here to avoid creating a closure that
379
+ * is part of a loop.
380
+ */
381
+ function makeSetExports(moduleObj) {
382
+ return function (exports) {
383
+ moduleObj.exports = exports;
384
+ };
385
+ }
386
+
387
+ function makeContextModuleFunc(func, relModuleMap, enableBuildCallback) {
388
+ return function () {
389
+ //A version of a require function that passes a moduleName
390
+ //value for items that may need to
391
+ //look up paths relative to the moduleName
392
+ var args = [].concat(aps.call(arguments, 0)), lastArg;
393
+ if (enableBuildCallback &&
394
+ isFunction((lastArg = args[args.length - 1]))) {
395
+ lastArg.__requireJsBuild = true;
396
+ }
397
+ args.push(relModuleMap);
398
+ return func.apply(null, args);
399
+ };
400
+ }
401
+
402
+ /**
403
+ * Helper function that creates a require function object to give to
404
+ * modules that ask for it as a dependency. It needs to be specific
405
+ * per module because of the implication of path mappings that may
406
+ * need to be relative to the module name.
407
+ */
408
+ function makeRequire(relModuleMap, enableBuildCallback) {
409
+ var modRequire = makeContextModuleFunc(context.require, relModuleMap, enableBuildCallback);
410
+
411
+ mixin(modRequire, {
412
+ nameToUrl: makeContextModuleFunc(context.nameToUrl, relModuleMap),
413
+ toUrl: makeContextModuleFunc(context.toUrl, relModuleMap),
414
+ defined: makeContextModuleFunc(context.requireDefined, relModuleMap),
415
+ specified: makeContextModuleFunc(context.requireSpecified, relModuleMap),
416
+ ready: req.ready,
417
+ isBrowser: req.isBrowser
418
+ });
419
+ //Something used by node.
420
+ if (req.paths) {
421
+ modRequire.paths = req.paths;
422
+ }
423
+ return modRequire;
424
+ }
425
+
426
+ /**
427
+ * Used to update the normalized name for plugin-based dependencies
428
+ * after a plugin loads, since it can have its own normalization structure.
429
+ * @param {String} pluginName the normalized plugin module name.
430
+ */
431
+ function updateNormalizedNames(pluginName) {
432
+
433
+ var oldFullName, oldModuleMap, moduleMap, fullName, callbacks,
434
+ i, j, k, depArray, existingCallbacks,
435
+ maps = normalizedWaiting[pluginName];
436
+
437
+ if (maps) {
438
+ for (i = 0; (oldModuleMap = maps[i]); i++) {
439
+ oldFullName = oldModuleMap.fullName;
440
+ moduleMap = makeModuleMap(oldModuleMap.originalName, oldModuleMap.parentMap);
441
+ fullName = moduleMap.fullName;
442
+ //Callbacks could be undefined if the same plugin!name was
443
+ //required twice in a row, so use empty array in that case.
444
+ callbacks = managerCallbacks[oldFullName] || [];
445
+ existingCallbacks = managerCallbacks[fullName];
446
+
447
+ if (fullName !== oldFullName) {
448
+ //Update the specified object, but only if it is already
449
+ //in there. In sync environments, it may not be yet.
450
+ if (oldFullName in specified) {
451
+ delete specified[oldFullName];
452
+ specified[fullName] = true;
453
+ }
454
+
455
+ //Update managerCallbacks to use the correct normalized name.
456
+ //If there are already callbacks for the normalized name,
457
+ //just add to them.
458
+ if (existingCallbacks) {
459
+ managerCallbacks[fullName] = existingCallbacks.concat(callbacks);
460
+ } else {
461
+ managerCallbacks[fullName] = callbacks;
462
+ }
463
+ delete managerCallbacks[oldFullName];
464
+
465
+ //In each manager callback, update the normalized name in the depArray.
466
+ for (j = 0; j < callbacks.length; j++) {
467
+ depArray = callbacks[j].depArray;
468
+ for (k = 0; k < depArray.length; k++) {
469
+ if (depArray[k] === oldFullName) {
470
+ depArray[k] = fullName;
471
+ }
472
+ }
473
+ }
474
+ }
475
+ }
476
+ }
477
+
478
+ delete normalizedWaiting[pluginName];
479
+ }
480
+
481
+ /*
482
+ * Queues a dependency for checking after the loader is out of a
483
+ * "paused" state, for example while a script file is being loaded
484
+ * in the browser, where it may have many modules defined in it.
485
+ *
486
+ * depName will be fully qualified, no relative . or .. path.
487
+ */
488
+ function queueDependency(dep) {
489
+ //Make sure to load any plugin and associate the dependency
490
+ //with that plugin.
491
+ var prefix = dep.prefix,
492
+ fullName = dep.fullName;
493
+
494
+ //Do not bother if the depName is already in transit
495
+ if (specified[fullName] || fullName in defined) {
496
+ return;
497
+ }
498
+
499
+ if (prefix && !plugins[prefix]) {
500
+ //Queue up loading of the dependency, track it
501
+ //via context.plugins. Mark it as a plugin so
502
+ //that the build system will know to treat it
503
+ //special.
504
+ plugins[prefix] = undefined;
505
+
506
+ //Remember this dep that needs to have normaliztion done
507
+ //after the plugin loads.
508
+ (normalizedWaiting[prefix] || (normalizedWaiting[prefix] = []))
509
+ .push(dep);
510
+
511
+ //Register an action to do once the plugin loads, to update
512
+ //all managerCallbacks to use a properly normalized module
513
+ //name.
514
+ (managerCallbacks[prefix] ||
515
+ (managerCallbacks[prefix] = [])).push({
516
+ onDep: function (name, value) {
517
+ if (name === prefix) {
518
+ updateNormalizedNames(prefix);
519
+ }
520
+ }
521
+ });
522
+
523
+ queueDependency(makeModuleMap(prefix));
524
+ }
525
+
526
+ context.paused.push(dep);
527
+ }
528
+
529
+ function execManager(manager) {
530
+ var i, ret, waitingCallbacks, err, errFile, errModuleTree,
531
+ cb = manager.callback,
532
+ fullName = manager.fullName,
533
+ args = [],
534
+ ary = manager.depArray;
535
+
536
+ //Call the callback to define the module, if necessary.
537
+ if (cb && isFunction(cb)) {
538
+ //Pull out the defined dependencies and pass the ordered
539
+ //values to the callback.
540
+ if (ary) {
541
+ for (i = 0; i < ary.length; i++) {
542
+ args.push(manager.deps[ary[i]]);
543
+ }
544
+ }
545
+
546
+ if (config.catchError.define) {
547
+ try {
548
+ ret = req.execCb(fullName, manager.callback, args, defined[fullName]);
549
+ } catch (e) {
550
+ err = e;
551
+ }
552
+ } else {
553
+ ret = req.execCb(fullName, manager.callback, args, defined[fullName]);
554
+ }
555
+
556
+ if (fullName) {
557
+ //If setting exports via "module" is in play,
558
+ //favor that over return value and exports. After that,
559
+ //favor a non-undefined return value over exports use.
560
+ if (manager.cjsModule && manager.cjsModule.exports !== undefined) {
561
+ ret = defined[fullName] = manager.cjsModule.exports;
562
+ } else if (ret === undefined && manager.usingExports) {
563
+ //exports already set the defined value.
564
+ ret = defined[fullName];
565
+ } else {
566
+ //Use the return value from the function.
567
+ defined[fullName] = ret;
568
+ }
569
+ }
570
+ } else if (fullName) {
571
+ //May just be an object definition for the module. Only
572
+ //worry about defining if have a module name.
573
+ ret = defined[fullName] = cb;
574
+ }
575
+
576
+ //Clean up waiting. Do this before error calls, and before
577
+ //calling back waitingCallbacks, so that bookkeeping is correct
578
+ //in the event of an error and error is reported in correct order,
579
+ //since the waitingCallbacks will likely have errors if the
580
+ //onError function does not throw.
581
+ if (waiting[manager.waitId]) {
582
+ delete waiting[manager.waitId];
583
+ manager.isDone = true;
584
+ context.waitCount -= 1;
585
+ if (context.waitCount === 0) {
586
+ //Clear the wait array used for cycles.
587
+ waitAry = [];
588
+ }
589
+ }
590
+
591
+ if (err) {
592
+ errFile = (fullName ? makeModuleMap(fullName).url : '') ||
593
+ err.fileName || err.sourceURL;
594
+ errModuleTree = err.moduleTree;
595
+ err = makeError('defineerror', 'Error evaluating ' +
596
+ 'module "' + fullName + '" at location "' +
597
+ errFile + '":\n' +
598
+ err + '\nfileName:' + errFile +
599
+ '\nlineNumber: ' + (err.lineNumber || err.line), err);
600
+ err.moduleName = fullName;
601
+ err.moduleTree = errModuleTree;
602
+ return req.onError(err);
603
+ }
604
+
605
+ if (fullName) {
606
+ //If anything was waiting for this module to be defined,
607
+ //notify them now.
608
+ waitingCallbacks = managerCallbacks[fullName];
609
+ if (waitingCallbacks) {
610
+ for (i = 0; i < waitingCallbacks.length; i++) {
611
+ waitingCallbacks[i].onDep(fullName, ret);
612
+ }
613
+ delete managerCallbacks[fullName];
614
+ }
615
+ }
616
+
617
+ return undefined;
618
+ }
619
+
620
+ function main(inName, depArray, callback, relModuleMap) {
621
+ var moduleMap = makeModuleMap(inName, relModuleMap),
622
+ name = moduleMap.name,
623
+ fullName = moduleMap.fullName,
624
+ uniques = {},
625
+ manager = {
626
+ //Use a wait ID because some entries are anon
627
+ //async require calls.
628
+ waitId: name || reqWaitIdPrefix + (waitIdCounter++),
629
+ depCount: 0,
630
+ depMax: 0,
631
+ prefix: moduleMap.prefix,
632
+ name: name,
633
+ fullName: fullName,
634
+ deps: {},
635
+ depArray: depArray,
636
+ callback: callback,
637
+ onDep: function (depName, value) {
638
+ if (!(depName in manager.deps)) {
639
+ manager.deps[depName] = value;
640
+ manager.depCount += 1;
641
+ if (manager.depCount === manager.depMax) {
642
+ //All done, execute!
643
+ execManager(manager);
644
+ }
645
+ }
646
+ }
647
+ },
648
+ i, depArg, depName, cjsMod;
649
+
650
+ if (fullName) {
651
+ //If module already defined for context, or already loaded,
652
+ //then leave. Also leave if jQuery is registering but it does
653
+ //not match the desired version number in the config.
654
+ if (fullName in defined || loaded[fullName] === true ||
655
+ (fullName === "jquery" && config.jQuery &&
656
+ config.jQuery !== callback().fn.jquery)) {
657
+ return;
658
+ }
659
+
660
+ //Set specified/loaded here for modules that are also loaded
661
+ //as part of a layer, where onScriptLoad is not fired
662
+ //for those cases. Do this after the inline define and
663
+ //dependency tracing is done.
664
+ specified[fullName] = true;
665
+ loaded[fullName] = true;
666
+
667
+ //If module is jQuery set up delaying its dom ready listeners.
668
+ if (fullName === "jquery" && callback) {
669
+ jQueryCheck(callback());
670
+ }
671
+ }
672
+
673
+ //Add the dependencies to the deps field, and register for callbacks
674
+ //on the dependencies.
675
+ for (i = 0; i < depArray.length; i++) {
676
+ depArg = depArray[i];
677
+ //There could be cases like in IE, where a trailing comma will
678
+ //introduce a null dependency, so only treat a real dependency
679
+ //value as a dependency.
680
+ if (depArg) {
681
+ //Split the dependency name into plugin and name parts
682
+ depArg = makeModuleMap(depArg, (name ? moduleMap : relModuleMap));
683
+ depName = depArg.fullName;
684
+
685
+ //Fix the name in depArray to be just the name, since
686
+ //that is how it will be called back later.
687
+ depArray[i] = depName;
688
+
689
+ //Fast path CommonJS standard dependencies.
690
+ if (depName === "require") {
691
+ manager.deps[depName] = makeRequire(moduleMap);
692
+ } else if (depName === "exports") {
693
+ //CommonJS module spec 1.1
694
+ manager.deps[depName] = defined[fullName] = {};
695
+ manager.usingExports = true;
696
+ } else if (depName === "module") {
697
+ //CommonJS module spec 1.1
698
+ manager.cjsModule = cjsMod = manager.deps[depName] = {
699
+ id: name,
700
+ uri: name ? context.nameToUrl(name, null, relModuleMap) : undefined,
701
+ exports: defined[fullName]
702
+ };
703
+ cjsMod.setExports = makeSetExports(cjsMod);
704
+ } else if (depName in defined && !(depName in waiting)) {
705
+ //Module already defined, no need to wait for it.
706
+ manager.deps[depName] = defined[depName];
707
+ } else if (!uniques[depName]) {
708
+
709
+ //A dynamic dependency.
710
+ manager.depMax += 1;
711
+
712
+ queueDependency(depArg);
713
+
714
+ //Register to get notification when dependency loads.
715
+ (managerCallbacks[depName] ||
716
+ (managerCallbacks[depName] = [])).push(manager);
717
+
718
+ uniques[depName] = true;
719
+ }
720
+ }
721
+ }
722
+
723
+ //Do not bother tracking the manager if it is all done.
724
+ if (manager.depCount === manager.depMax) {
725
+ //All done, execute!
726
+ execManager(manager);
727
+ } else {
728
+ waiting[manager.waitId] = manager;
729
+ waitAry.push(manager);
730
+ context.waitCount += 1;
731
+ }
732
+ }
733
+
734
+ /**
735
+ * Convenience method to call main for a define call that was put on
736
+ * hold in the defQueue.
737
+ */
738
+ function callDefMain(args) {
739
+ main.apply(null, args);
740
+ //Mark the module loaded. Must do it here in addition
741
+ //to doing it in define in case a script does
742
+ //not call define
743
+ loaded[args[0]] = true;
744
+ }
745
+
746
+ /**
747
+ * jQuery 1.4.3+ supports ways to hold off calling
748
+ * calling jQuery ready callbacks until all scripts are loaded. Be sure
749
+ * to track it if the capability exists.. Also, since jQuery 1.4.3 does
750
+ * not register as a module, need to do some global inference checking.
751
+ * Even if it does register as a module, not guaranteed to be the precise
752
+ * name of the global. If a jQuery is tracked for this context, then go
753
+ * ahead and register it as a module too, if not already in process.
754
+ */
755
+ jQueryCheck = function (jqCandidate) {
756
+ if (!context.jQuery) {
757
+ var $ = jqCandidate || (typeof jQuery !== "undefined" ? jQuery : null);
758
+
759
+ if ($) {
760
+ //If a specific version of jQuery is wanted, make sure to only
761
+ //use this jQuery if it matches.
762
+ if (config.jQuery && $.fn.jquery !== config.jQuery) {
763
+ return;
764
+ }
765
+
766
+ if ("holdReady" in $ || "readyWait" in $) {
767
+ context.jQuery = $;
768
+
769
+ //Manually create a "jquery" module entry if not one already
770
+ //or in process. Note this could trigger an attempt at
771
+ //a second jQuery registration, but does no harm since
772
+ //the first one wins, and it is the same value anyway.
773
+ callDefMain(["jquery", [], function () {
774
+ return jQuery;
775
+ }]);
776
+
777
+ //Ask jQuery to hold DOM ready callbacks.
778
+ if (context.scriptCount) {
779
+ jQueryHoldReady($, true);
780
+ context.jQueryIncremented = true;
781
+ }
782
+ }
783
+ }
784
+ }
785
+ };
786
+
787
+ function forceExec(manager, traced) {
788
+ if (manager.isDone) {
789
+ return undefined;
790
+ }
791
+
792
+ var fullName = manager.fullName,
793
+ depArray = manager.depArray,
794
+ depName, i;
795
+ if (fullName) {
796
+ if (traced[fullName]) {
797
+ return defined[fullName];
798
+ }
799
+
800
+ traced[fullName] = true;
801
+ }
802
+
803
+ //forceExec all of its dependencies.
804
+ for (i = 0; i < depArray.length; i++) {
805
+ //Some array members may be null, like if a trailing comma
806
+ //IE, so do the explicit [i] access and check if it has a value.
807
+ depName = depArray[i];
808
+ if (depName) {
809
+ if (!manager.deps[depName] && waiting[depName]) {
810
+ manager.onDep(depName, forceExec(waiting[depName], traced));
811
+ }
812
+ }
813
+ }
814
+
815
+ return fullName ? defined[fullName] : undefined;
816
+ }
817
+
818
+ /**
819
+ * Checks if all modules for a context are loaded, and if so, evaluates the
820
+ * new ones in right dependency order.
821
+ *
822
+ * @private
823
+ */
824
+ function checkLoaded() {
825
+ var waitInterval = config.waitSeconds * 1000,
826
+ //It is possible to disable the wait interval by using waitSeconds of 0.
827
+ expired = waitInterval && (context.startTime + waitInterval) < new Date().getTime(),
828
+ noLoads = "", hasLoadedProp = false, stillLoading = false, prop,
829
+ err, manager;
830
+
831
+ //If there are items still in the paused queue processing wait.
832
+ //This is particularly important in the sync case where each paused
833
+ //item is processed right away but there may be more waiting.
834
+ if (context.pausedCount > 0) {
835
+ return undefined;
836
+ }
837
+
838
+ //Determine if priority loading is done. If so clear the priority. If
839
+ //not, then do not check
840
+ if (config.priorityWait) {
841
+ if (isPriorityDone()) {
842
+ //Call resume, since it could have
843
+ //some waiting dependencies to trace.
844
+ resume();
845
+ } else {
846
+ return undefined;
847
+ }
848
+ }
849
+
850
+ //See if anything is still in flight.
851
+ for (prop in loaded) {
852
+ if (!(prop in empty)) {
853
+ hasLoadedProp = true;
854
+ if (!loaded[prop]) {
855
+ if (expired) {
856
+ noLoads += prop + " ";
857
+ } else {
858
+ stillLoading = true;
859
+ break;
860
+ }
861
+ }
862
+ }
863
+ }
864
+
865
+ //Check for exit conditions.
866
+ if (!hasLoadedProp && !context.waitCount) {
867
+ //If the loaded object had no items, then the rest of
868
+ //the work below does not need to be done.
869
+ return undefined;
870
+ }
871
+ if (expired && noLoads) {
872
+ //If wait time expired, throw error of unloaded modules.
873
+ err = makeError("timeout", "Load timeout for modules: " + noLoads);
874
+ err.requireType = "timeout";
875
+ err.requireModules = noLoads;
876
+ return req.onError(err);
877
+ }
878
+ if (stillLoading || context.scriptCount) {
879
+ //Something is still waiting to load. Wait for it, but only
880
+ //if a timeout is not already in effect.
881
+ if ((isBrowser || isWebWorker) && !checkLoadedTimeoutId) {
882
+ checkLoadedTimeoutId = setTimeout(function () {
883
+ checkLoadedTimeoutId = 0;
884
+ checkLoaded();
885
+ }, 50);
886
+ }
887
+ return undefined;
888
+ }
889
+
890
+ //If still have items in the waiting cue, but all modules have
891
+ //been loaded, then it means there are some circular dependencies
892
+ //that need to be broken.
893
+ //However, as a waiting thing is fired, then it can add items to
894
+ //the waiting cue, and those items should not be fired yet, so
895
+ //make sure to redo the checkLoaded call after breaking a single
896
+ //cycle, if nothing else loaded then this logic will pick it up
897
+ //again.
898
+ if (context.waitCount) {
899
+ //Cycle through the waitAry, and call items in sequence.
900
+ for (i = 0; (manager = waitAry[i]); i++) {
901
+ forceExec(manager, {});
902
+ }
903
+
904
+ //Only allow this recursion to a certain depth. Only
905
+ //triggered by errors in calling a module in which its
906
+ //modules waiting on it cannot finish loading, or some circular
907
+ //dependencies that then may add more dependencies.
908
+ //The value of 5 is a bit arbitrary. Hopefully just one extra
909
+ //pass, or two for the case of circular dependencies generating
910
+ //more work that gets resolved in the sync node case.
911
+ if (checkLoadedDepth < 5) {
912
+ checkLoadedDepth += 1;
913
+ checkLoaded();
914
+ }
915
+ }
916
+
917
+ checkLoadedDepth = 0;
918
+
919
+ //Check for DOM ready, and nothing is waiting across contexts.
920
+ req.checkReadyState();
921
+
922
+ return undefined;
923
+ }
924
+
925
+ function callPlugin(pluginName, dep) {
926
+ var name = dep.name,
927
+ fullName = dep.fullName,
928
+ load;
929
+
930
+ //Do not bother if plugin is already defined or being loaded.
931
+ if (fullName in defined || fullName in loaded) {
932
+ return;
933
+ }
934
+
935
+ if (!plugins[pluginName]) {
936
+ plugins[pluginName] = defined[pluginName];
937
+ }
938
+
939
+ //Only set loaded to false for tracking if it has not already been set.
940
+ if (!loaded[fullName]) {
941
+ loaded[fullName] = false;
942
+ }
943
+
944
+ load = function (ret) {
945
+ //Allow the build process to register plugin-loaded dependencies.
946
+ if (req.onPluginLoad) {
947
+ req.onPluginLoad(context, pluginName, name, ret);
948
+ }
949
+
950
+ execManager({
951
+ prefix: dep.prefix,
952
+ name: dep.name,
953
+ fullName: dep.fullName,
954
+ callback: function () {
955
+ return ret;
956
+ }
957
+ });
958
+ loaded[fullName] = true;
959
+ };
960
+
961
+ //Allow plugins to load other code without having to know the
962
+ //context or how to "complete" the load.
963
+ load.fromText = function (moduleName, text) {
964
+ /*jslint evil: true */
965
+ var hasInteractive = useInteractive;
966
+
967
+ //Indicate a the module is in process of loading.
968
+ context.loaded[moduleName] = false;
969
+ context.scriptCount += 1;
970
+
971
+ //Turn off interactive script matching for IE for any define
972
+ //calls in the text, then turn it back on at the end.
973
+ if (hasInteractive) {
974
+ useInteractive = false;
975
+ }
976
+
977
+ req.exec(text);
978
+
979
+ if (hasInteractive) {
980
+ useInteractive = true;
981
+ }
982
+
983
+ //Support anonymous modules.
984
+ context.completeLoad(moduleName);
985
+ };
986
+
987
+ //Use parentName here since the plugin's name is not reliable,
988
+ //could be some weird string with no path that actually wants to
989
+ //reference the parentName's path.
990
+ plugins[pluginName].load(name, makeRequire(dep.parentMap, true), load, config);
991
+ }
992
+
993
+ function loadPaused(dep) {
994
+ //Renormalize dependency if its name was waiting on a plugin
995
+ //to load, which as since loaded.
996
+ if (dep.prefix && dep.name && dep.name.indexOf('__$p') === 0 && defined[dep.prefix]) {
997
+ dep = makeModuleMap(dep.originalName, dep.parentMap);
998
+ }
999
+
1000
+ var pluginName = dep.prefix,
1001
+ fullName = dep.fullName,
1002
+ urlFetched = context.urlFetched;
1003
+
1004
+ //Do not bother if the dependency has already been specified.
1005
+ if (specified[fullName] || loaded[fullName]) {
1006
+ return;
1007
+ } else {
1008
+ specified[fullName] = true;
1009
+ }
1010
+
1011
+ if (pluginName) {
1012
+ //If plugin not loaded, wait for it.
1013
+ //set up callback list. if no list, then register
1014
+ //managerCallback for that plugin.
1015
+ if (defined[pluginName]) {
1016
+ callPlugin(pluginName, dep);
1017
+ } else {
1018
+ if (!pluginsQueue[pluginName]) {
1019
+ pluginsQueue[pluginName] = [];
1020
+ (managerCallbacks[pluginName] ||
1021
+ (managerCallbacks[pluginName] = [])).push({
1022
+ onDep: function (name, value) {
1023
+ if (name === pluginName) {
1024
+ var i, oldModuleMap, ary = pluginsQueue[pluginName];
1025
+
1026
+ //Now update all queued plugin actions.
1027
+ for (i = 0; i < ary.length; i++) {
1028
+ oldModuleMap = ary[i];
1029
+ //Update the moduleMap since the
1030
+ //module name may be normalized
1031
+ //differently now.
1032
+ callPlugin(pluginName,
1033
+ makeModuleMap(oldModuleMap.originalName, oldModuleMap.parentMap));
1034
+ }
1035
+ delete pluginsQueue[pluginName];
1036
+ }
1037
+ }
1038
+ });
1039
+ }
1040
+ pluginsQueue[pluginName].push(dep);
1041
+ }
1042
+ } else {
1043
+ if (!urlFetched[dep.url]) {
1044
+ req.load(context, fullName, dep.url);
1045
+ urlFetched[dep.url] = true;
1046
+ }
1047
+ }
1048
+ }
1049
+
1050
+ /**
1051
+ * Resumes tracing of dependencies and then checks if everything is loaded.
1052
+ */
1053
+ resume = function () {
1054
+ var args, i, p;
1055
+
1056
+ resumeDepth += 1;
1057
+
1058
+ if (context.scriptCount <= 0) {
1059
+ //Synchronous envs will push the number below zero with the
1060
+ //decrement above, be sure to set it back to zero for good measure.
1061
+ //require() calls that also do not end up loading scripts could
1062
+ //push the number negative too.
1063
+ context.scriptCount = 0;
1064
+ }
1065
+
1066
+ //Make sure any remaining defQueue items get properly processed.
1067
+ while (defQueue.length) {
1068
+ args = defQueue.shift();
1069
+ if (args[0] === null) {
1070
+ return req.onError(makeError('mismatch', 'Mismatched anonymous define() module: ' + args[args.length - 1]));
1071
+ } else {
1072
+ callDefMain(args);
1073
+ }
1074
+ }
1075
+
1076
+ //Skip the resume of paused dependencies
1077
+ //if current context is in priority wait.
1078
+ if (!config.priorityWait || isPriorityDone()) {
1079
+ while (context.paused.length) {
1080
+ p = context.paused;
1081
+ context.pausedCount += p.length;
1082
+ //Reset paused list
1083
+ context.paused = [];
1084
+
1085
+ for (i = 0; (args = p[i]); i++) {
1086
+ loadPaused(args);
1087
+ }
1088
+ //Move the start time for timeout forward.
1089
+ context.startTime = (new Date()).getTime();
1090
+ context.pausedCount -= p.length;
1091
+ }
1092
+ }
1093
+
1094
+ //Only check if loaded when resume depth is 1. It is likely that
1095
+ //it is only greater than 1 in sync environments where a factory
1096
+ //function also then calls the callback-style require. In those
1097
+ //cases, the checkLoaded should not occur until the resume
1098
+ //depth is back at the top level.
1099
+ if (resumeDepth === 1) {
1100
+ checkLoaded();
1101
+ }
1102
+
1103
+ resumeDepth -= 1;
1104
+
1105
+ return undefined;
1106
+ };
1107
+
1108
+ //Define the context object. Many of these fields are on here
1109
+ //just to make debugging easier.
1110
+ context = {
1111
+ contextName: contextName,
1112
+ config: config,
1113
+ defQueue: defQueue,
1114
+ waiting: waiting,
1115
+ waitCount: 0,
1116
+ specified: specified,
1117
+ loaded: loaded,
1118
+ urlMap: urlMap,
1119
+ scriptCount: 0,
1120
+ urlFetched: {},
1121
+ defined: defined,
1122
+ paused: [],
1123
+ pausedCount: 0,
1124
+ plugins: plugins,
1125
+ managerCallbacks: managerCallbacks,
1126
+ makeModuleMap: makeModuleMap,
1127
+ normalize: normalize,
1128
+ /**
1129
+ * Set a configuration for the context.
1130
+ * @param {Object} cfg config object to integrate.
1131
+ */
1132
+ configure: function (cfg) {
1133
+ var paths, prop, packages, pkgs, packagePaths, requireWait;
1134
+
1135
+ //Make sure the baseUrl ends in a slash.
1136
+ if (cfg.baseUrl) {
1137
+ if (cfg.baseUrl.charAt(cfg.baseUrl.length - 1) !== "/") {
1138
+ cfg.baseUrl += "/";
1139
+ }
1140
+ }
1141
+
1142
+ //Save off the paths and packages since they require special processing,
1143
+ //they are additive.
1144
+ paths = config.paths;
1145
+ packages = config.packages;
1146
+ pkgs = config.pkgs;
1147
+
1148
+ //Mix in the config values, favoring the new values over
1149
+ //existing ones in context.config.
1150
+ mixin(config, cfg, true);
1151
+
1152
+ //Adjust paths if necessary.
1153
+ if (cfg.paths) {
1154
+ for (prop in cfg.paths) {
1155
+ if (!(prop in empty)) {
1156
+ paths[prop] = cfg.paths[prop];
1157
+ }
1158
+ }
1159
+ config.paths = paths;
1160
+ }
1161
+
1162
+ packagePaths = cfg.packagePaths;
1163
+ if (packagePaths || cfg.packages) {
1164
+ //Convert packagePaths into a packages config.
1165
+ if (packagePaths) {
1166
+ for (prop in packagePaths) {
1167
+ if (!(prop in empty)) {
1168
+ configurePackageDir(pkgs, packagePaths[prop], prop);
1169
+ }
1170
+ }
1171
+ }
1172
+
1173
+ //Adjust packages if necessary.
1174
+ if (cfg.packages) {
1175
+ configurePackageDir(pkgs, cfg.packages);
1176
+ }
1177
+
1178
+ //Done with modifications, assing packages back to context config
1179
+ config.pkgs = pkgs;
1180
+ }
1181
+
1182
+ //If priority loading is in effect, trigger the loads now
1183
+ if (cfg.priority) {
1184
+ //Hold on to requireWait value, and reset it after done
1185
+ requireWait = context.requireWait;
1186
+
1187
+ //Allow tracing some require calls to allow the fetching
1188
+ //of the priority config.
1189
+ context.requireWait = false;
1190
+ //But first, call resume to register any defined modules that may
1191
+ //be in a data-main built file before the priority config
1192
+ //call. Also grab any waiting define calls for this context.
1193
+ context.takeGlobalQueue();
1194
+ resume();
1195
+
1196
+ context.require(cfg.priority);
1197
+
1198
+ //Trigger a resume right away, for the case when
1199
+ //the script with the priority load is done as part
1200
+ //of a data-main call. In that case the normal resume
1201
+ //call will not happen because the scriptCount will be
1202
+ //at 1, since the script for data-main is being processed.
1203
+ resume();
1204
+
1205
+ //Restore previous state.
1206
+ context.requireWait = requireWait;
1207
+ config.priorityWait = cfg.priority;
1208
+ }
1209
+
1210
+ //If a deps array or a config callback is specified, then call
1211
+ //require with those args. This is useful when require is defined as a
1212
+ //config object before require.js is loaded.
1213
+ if (cfg.deps || cfg.callback) {
1214
+ context.require(cfg.deps || [], cfg.callback);
1215
+ }
1216
+
1217
+ //Set up ready callback, if asked. Useful when require is defined as a
1218
+ //config object before require.js is loaded.
1219
+ if (cfg.ready) {
1220
+ req.ready(cfg.ready);
1221
+ }
1222
+ },
1223
+
1224
+ requireDefined: function (moduleName, relModuleMap) {
1225
+ return makeModuleMap(moduleName, relModuleMap).fullName in defined;
1226
+ },
1227
+
1228
+ requireSpecified: function (moduleName, relModuleMap) {
1229
+ return makeModuleMap(moduleName, relModuleMap).fullName in specified;
1230
+ },
1231
+
1232
+ require: function (deps, callback, relModuleMap) {
1233
+ var moduleName, fullName, moduleMap;
1234
+ if (typeof deps === "string") {
1235
+ //Synchronous access to one module. If require.get is
1236
+ //available (as in the Node adapter), prefer that.
1237
+ //In this case deps is the moduleName and callback is
1238
+ //the relModuleMap
1239
+ if (req.get) {
1240
+ return req.get(context, deps, callback);
1241
+ }
1242
+
1243
+ //Just return the module wanted. In this scenario, the
1244
+ //second arg (if passed) is just the relModuleMap.
1245
+ moduleName = deps;
1246
+ relModuleMap = callback;
1247
+
1248
+ //Normalize module name, if it contains . or ..
1249
+ moduleMap = makeModuleMap(moduleName, relModuleMap);
1250
+ fullName = moduleMap.fullName;
1251
+
1252
+ if (!(fullName in defined)) {
1253
+ return req.onError(makeError("notloaded", "Module name '" +
1254
+ moduleMap.fullName +
1255
+ "' has not been loaded yet for context: " +
1256
+ contextName));
1257
+ }
1258
+ return defined[fullName];
1259
+ }
1260
+
1261
+ main(null, deps, callback, relModuleMap);
1262
+
1263
+ //If the require call does not trigger anything new to load,
1264
+ //then resume the dependency processing.
1265
+ if (!context.requireWait) {
1266
+ while (!context.scriptCount && context.paused.length) {
1267
+ //For built layers, there can be some defined
1268
+ //modules waiting for intake into the context,
1269
+ //in particular module plugins. Take them.
1270
+ context.takeGlobalQueue();
1271
+ resume();
1272
+ }
1273
+ }
1274
+ return context.require;
1275
+ },
1276
+
1277
+ /**
1278
+ * Internal method to transfer globalQueue items to this context's
1279
+ * defQueue.
1280
+ */
1281
+ takeGlobalQueue: function () {
1282
+ //Push all the globalDefQueue items into the context's defQueue
1283
+ if (globalDefQueue.length) {
1284
+ //Array splice in the values since the context code has a
1285
+ //local var ref to defQueue, so cannot just reassign the one
1286
+ //on context.
1287
+ apsp.apply(context.defQueue,
1288
+ [context.defQueue.length - 1, 0].concat(globalDefQueue));
1289
+ globalDefQueue = [];
1290
+ }
1291
+ },
1292
+
1293
+ /**
1294
+ * Internal method used by environment adapters to complete a load event.
1295
+ * A load event could be a script load or just a load pass from a synchronous
1296
+ * load call.
1297
+ * @param {String} moduleName the name of the module to potentially complete.
1298
+ */
1299
+ completeLoad: function (moduleName) {
1300
+ var args;
1301
+
1302
+ context.takeGlobalQueue();
1303
+
1304
+ while (defQueue.length) {
1305
+ args = defQueue.shift();
1306
+
1307
+ if (args[0] === null) {
1308
+ args[0] = moduleName;
1309
+ break;
1310
+ } else if (args[0] === moduleName) {
1311
+ //Found matching define call for this script!
1312
+ break;
1313
+ } else {
1314
+ //Some other named define call, most likely the result
1315
+ //of a build layer that included many define calls.
1316
+ callDefMain(args);
1317
+ args = null;
1318
+ }
1319
+ }
1320
+ if (args) {
1321
+ callDefMain(args);
1322
+ } else {
1323
+ //A script that does not call define(), so just simulate
1324
+ //the call for it. Special exception for jQuery dynamic load.
1325
+ callDefMain([moduleName, [],
1326
+ moduleName === "jquery" && typeof jQuery !== "undefined" ?
1327
+ function () {
1328
+ return jQuery;
1329
+ } : null]);
1330
+ }
1331
+
1332
+ //Mark the script as loaded. Note that this can be different from a
1333
+ //moduleName that maps to a define call. This line is important
1334
+ //for traditional browser scripts.
1335
+ loaded[moduleName] = true;
1336
+
1337
+ //If a global jQuery is defined, check for it. Need to do it here
1338
+ //instead of main() since stock jQuery does not register as
1339
+ //a module via define.
1340
+ jQueryCheck();
1341
+
1342
+ //Doing this scriptCount decrement branching because sync envs
1343
+ //need to decrement after resume, otherwise it looks like
1344
+ //loading is complete after the first dependency is fetched.
1345
+ //For browsers, it works fine to decrement after, but it means
1346
+ //the checkLoaded setTimeout 50 ms cost is taken. To avoid
1347
+ //that cost, decrement beforehand.
1348
+ if (req.isAsync) {
1349
+ context.scriptCount -= 1;
1350
+ }
1351
+ resume();
1352
+ if (!req.isAsync) {
1353
+ context.scriptCount -= 1;
1354
+ }
1355
+ },
1356
+
1357
+ /**
1358
+ * Converts a module name + .extension into an URL path.
1359
+ * *Requires* the use of a module name. It does not support using
1360
+ * plain URLs like nameToUrl.
1361
+ */
1362
+ toUrl: function (moduleNamePlusExt, relModuleMap) {
1363
+ var index = moduleNamePlusExt.lastIndexOf("."),
1364
+ ext = null;
1365
+
1366
+ if (index !== -1) {
1367
+ ext = moduleNamePlusExt.substring(index, moduleNamePlusExt.length);
1368
+ moduleNamePlusExt = moduleNamePlusExt.substring(0, index);
1369
+ }
1370
+
1371
+ return context.nameToUrl(moduleNamePlusExt, ext, relModuleMap);
1372
+ },
1373
+
1374
+ /**
1375
+ * Converts a module name to a file path. Supports cases where
1376
+ * moduleName may actually be just an URL.
1377
+ */
1378
+ nameToUrl: function (moduleName, ext, relModuleMap) {
1379
+ var paths, pkgs, pkg, pkgPath, syms, i, parentModule, url,
1380
+ config = context.config;
1381
+
1382
+ //Normalize module name if have a base relative module name to work from.
1383
+ moduleName = normalize(moduleName, relModuleMap && relModuleMap.fullName);
1384
+
1385
+ //If a colon is in the URL, it indicates a protocol is used and it is just
1386
+ //an URL to a file, or if it starts with a slash or ends with .js, it is just a plain file.
1387
+ //The slash is important for protocol-less URLs as well as full paths.
1388
+ if (req.jsExtRegExp.test(moduleName)) {
1389
+ //Just a plain path, not module name lookup, so just return it.
1390
+ //Add extension if it is included. This is a bit wonky, only non-.js things pass
1391
+ //an extension, this method probably needs to be reworked.
1392
+ url = moduleName + (ext ? ext : "");
1393
+ } else {
1394
+ //A module that needs to be converted to a path.
1395
+ paths = config.paths;
1396
+ pkgs = config.pkgs;
1397
+
1398
+ syms = moduleName.split("/");
1399
+ //For each module name segment, see if there is a path
1400
+ //registered for it. Start with most specific name
1401
+ //and work up from it.
1402
+ for (i = syms.length; i > 0; i--) {
1403
+ parentModule = syms.slice(0, i).join("/");
1404
+ if (paths[parentModule]) {
1405
+ syms.splice(0, i, paths[parentModule]);
1406
+ break;
1407
+ } else if ((pkg = pkgs[parentModule])) {
1408
+ //If module name is just the package name, then looking
1409
+ //for the main module.
1410
+ if (moduleName === pkg.name) {
1411
+ pkgPath = pkg.location + '/' + pkg.main;
1412
+ } else {
1413
+ pkgPath = pkg.location;
1414
+ }
1415
+ syms.splice(0, i, pkgPath);
1416
+ break;
1417
+ }
1418
+ }
1419
+
1420
+ //Join the path parts together, then figure out if baseUrl is needed.
1421
+ url = syms.join("/") + (ext || ".js");
1422
+ url = (url.charAt(0) === '/' || url.match(/^\w+:/) ? "" : config.baseUrl) + url;
1423
+ }
1424
+
1425
+ return config.urlArgs ? url +
1426
+ ((url.indexOf('?') === -1 ? '?' : '&') +
1427
+ config.urlArgs) : url;
1428
+ }
1429
+ };
1430
+
1431
+ //Make these visible on the context so can be called at the very
1432
+ //end of the file to bootstrap
1433
+ context.jQueryCheck = jQueryCheck;
1434
+ context.resume = resume;
1435
+
1436
+ return context;
1437
+ }
1438
+
1439
+ /**
1440
+ * Main entry point.
1441
+ *
1442
+ * If the only argument to require is a string, then the module that
1443
+ * is represented by that string is fetched for the appropriate context.
1444
+ *
1445
+ * If the first argument is an array, then it will be treated as an array
1446
+ * of dependency string names to fetch. An optional function callback can
1447
+ * be specified to execute when all of those dependencies are available.
1448
+ *
1449
+ * Make a local req variable to help Caja compliance (it assumes things
1450
+ * on a require that are not standardized), and to give a short
1451
+ * name for minification/local scope use.
1452
+ */
1453
+ req = requirejs = function (deps, callback) {
1454
+
1455
+ //Find the right context, use default
1456
+ var contextName = defContextName,
1457
+ context, config;
1458
+
1459
+ // Determine if have config object in the call.
1460
+ if (!isArray(deps) && typeof deps !== "string") {
1461
+ // deps is a config object
1462
+ config = deps;
1463
+ if (isArray(callback)) {
1464
+ // Adjust args if there are dependencies
1465
+ deps = callback;
1466
+ callback = arguments[2];
1467
+ } else {
1468
+ deps = [];
1469
+ }
1470
+ }
1471
+
1472
+ if (config && config.context) {
1473
+ contextName = config.context;
1474
+ }
1475
+
1476
+ context = contexts[contextName] ||
1477
+ (contexts[contextName] = newContext(contextName));
1478
+
1479
+ if (config) {
1480
+ context.configure(config);
1481
+ }
1482
+
1483
+ return context.require(deps, callback);
1484
+ };
1485
+
1486
+ /**
1487
+ * Support require.config() to make it easier to cooperate with other
1488
+ * AMD loaders on globally agreed names.
1489
+ */
1490
+ req.config = function (config) {
1491
+ return req(config);
1492
+ };
1493
+
1494
+ /**
1495
+ * Export require as a global, but only if it does not already exist.
1496
+ */
1497
+ if (typeof require === "undefined") {
1498
+ require = req;
1499
+ }
1500
+
1501
+ /**
1502
+ * Global require.toUrl(), to match global require, mostly useful
1503
+ * for debugging/work in the global space.
1504
+ */
1505
+ req.toUrl = function (moduleNamePlusExt) {
1506
+ return contexts[defContextName].toUrl(moduleNamePlusExt);
1507
+ };
1508
+
1509
+ req.version = version;
1510
+ req.isArray = isArray;
1511
+ req.isFunction = isFunction;
1512
+ req.mixin = mixin;
1513
+ //Used to filter out dependencies that are already paths.
1514
+ req.jsExtRegExp = /^\/|:|\?|\.js$/;
1515
+ s = req.s = {
1516
+ contexts: contexts,
1517
+ //Stores a list of URLs that should not get async script tag treatment.
1518
+ skipAsync: {},
1519
+ isPageLoaded: !isBrowser,
1520
+ readyCalls: []
1521
+ };
1522
+
1523
+ req.isAsync = req.isBrowser = isBrowser;
1524
+ if (isBrowser) {
1525
+ head = s.head = document.getElementsByTagName("head")[0];
1526
+ //If BASE tag is in play, using appendChild is a problem for IE6.
1527
+ //When that browser dies, this can be removed. Details in this jQuery bug:
1528
+ //http://dev.jquery.com/ticket/2709
1529
+ baseElement = document.getElementsByTagName("base")[0];
1530
+ if (baseElement) {
1531
+ head = s.head = baseElement.parentNode;
1532
+ }
1533
+ }
1534
+
1535
+ /**
1536
+ * Any errors that require explicitly generates will be passed to this
1537
+ * function. Intercept/override it if you want custom error handling.
1538
+ * @param {Error} err the error object.
1539
+ */
1540
+ req.onError = function (err) {
1541
+ throw err;
1542
+ };
1543
+
1544
+ /**
1545
+ * Does the request to load a module for the browser case.
1546
+ * Make this a separate function to allow other environments
1547
+ * to override it.
1548
+ *
1549
+ * @param {Object} context the require context to find state.
1550
+ * @param {String} moduleName the name of the module.
1551
+ * @param {Object} url the URL to the module.
1552
+ */
1553
+ req.load = function (context, moduleName, url) {
1554
+ var loaded = context.loaded;
1555
+
1556
+ isDone = false;
1557
+
1558
+ //Only set loaded to false for tracking if it has not already been set.
1559
+ if (!loaded[moduleName]) {
1560
+ loaded[moduleName] = false;
1561
+ }
1562
+
1563
+ context.scriptCount += 1;
1564
+ req.attach(url, context, moduleName);
1565
+
1566
+ //If tracking a jQuery, then make sure its ready callbacks
1567
+ //are put on hold to prevent its ready callbacks from
1568
+ //triggering too soon.
1569
+ if (context.jQuery && !context.jQueryIncremented) {
1570
+ jQueryHoldReady(context.jQuery, true);
1571
+ context.jQueryIncremented = true;
1572
+ }
1573
+ };
1574
+
1575
+ function getInteractiveScript() {
1576
+ var scripts, i, script;
1577
+ if (interactiveScript && interactiveScript.readyState === 'interactive') {
1578
+ return interactiveScript;
1579
+ }
1580
+
1581
+ scripts = document.getElementsByTagName('script');
1582
+ for (i = scripts.length - 1; i > -1 && (script = scripts[i]); i--) {
1583
+ if (script.readyState === 'interactive') {
1584
+ return (interactiveScript = script);
1585
+ }
1586
+ }
1587
+
1588
+ return null;
1589
+ }
1590
+
1591
+ /**
1592
+ * The function that handles definitions of modules. Differs from
1593
+ * require() in that a string for the module should be the first argument,
1594
+ * and the function to execute after dependencies are loaded should
1595
+ * return a value to define the module corresponding to the first argument's
1596
+ * name.
1597
+ */
1598
+ define = req.def = function (name, deps, callback) {
1599
+ var node, context;
1600
+
1601
+ //Allow for anonymous functions
1602
+ if (typeof name !== 'string') {
1603
+ //Adjust args appropriately
1604
+ callback = deps;
1605
+ deps = name;
1606
+ name = null;
1607
+ }
1608
+
1609
+ //This module may not have dependencies
1610
+ if (!req.isArray(deps)) {
1611
+ callback = deps;
1612
+ deps = [];
1613
+ }
1614
+
1615
+ //If no name, and callback is a function, then figure out if it a
1616
+ //CommonJS thing with dependencies.
1617
+ if (!name && !deps.length && req.isFunction(callback)) {
1618
+ //Remove comments from the callback string,
1619
+ //look for require calls, and pull them into the dependencies,
1620
+ //but only if there are function args.
1621
+ if (callback.length) {
1622
+ callback
1623
+ .toString()
1624
+ .replace(commentRegExp, "")
1625
+ .replace(cjsRequireRegExp, function (match, dep) {
1626
+ deps.push(dep);
1627
+ });
1628
+
1629
+ //May be a CommonJS thing even without require calls, but still
1630
+ //could use exports, and module. Avoid doing exports and module
1631
+ //work though if it just needs require.
1632
+ //REQUIRES the function to expect the CommonJS variables in the
1633
+ //order listed below.
1634
+ deps = (callback.length === 1 ? ["require"] : ["require", "exports", "module"]).concat(deps);
1635
+ }
1636
+ }
1637
+
1638
+ //If in IE 6-8 and hit an anonymous define() call, do the interactive
1639
+ //work.
1640
+ if (useInteractive) {
1641
+ node = currentlyAddingScript || getInteractiveScript();
1642
+ if (node) {
1643
+ if (!name) {
1644
+ name = node.getAttribute("data-requiremodule");
1645
+ }
1646
+ context = contexts[node.getAttribute("data-requirecontext")];
1647
+ }
1648
+ }
1649
+
1650
+ //Always save off evaluating the def call until the script onload handler.
1651
+ //This allows multiple modules to be in a file without prematurely
1652
+ //tracing dependencies, and allows for anonymous module support,
1653
+ //where the module name is not known until the script onload event
1654
+ //occurs. If no context, use the global queue, and get it processed
1655
+ //in the onscript load callback.
1656
+ (context ? context.defQueue : globalDefQueue).push([name, deps, callback]);
1657
+
1658
+ return undefined;
1659
+ };
1660
+
1661
+ define.amd = {
1662
+ multiversion: true,
1663
+ plugins: true,
1664
+ jQuery: true
1665
+ };
1666
+
1667
+ /**
1668
+ * Executes the text. Normally just uses eval, but can be modified
1669
+ * to use a more environment specific call.
1670
+ * @param {String} text the text to execute/evaluate.
1671
+ */
1672
+ req.exec = function (text) {
1673
+ return eval(text);
1674
+ };
1675
+
1676
+ /**
1677
+ * Executes a module callack function. Broken out as a separate function
1678
+ * solely to allow the build system to sequence the files in the built
1679
+ * layer in the right sequence.
1680
+ *
1681
+ * @private
1682
+ */
1683
+ req.execCb = function (name, callback, args, exports) {
1684
+ return callback.apply(exports, args);
1685
+ };
1686
+
1687
+ /**
1688
+ * callback for script loads, used to check status of loading.
1689
+ *
1690
+ * @param {Event} evt the event from the browser for the script
1691
+ * that was loaded.
1692
+ *
1693
+ * @private
1694
+ */
1695
+ req.onScriptLoad = function (evt) {
1696
+ //Using currentTarget instead of target for Firefox 2.0's sake. Not
1697
+ //all old browsers will be supported, but this one was easy enough
1698
+ //to support and still makes sense.
1699
+ var node = evt.currentTarget || evt.srcElement || currentlyAddingScript, contextName, moduleName,
1700
+ context;
1701
+
1702
+ if (evt.type === "load" || readyRegExp.test(node.readyState)) {
1703
+ //Reset interactive script so a script node is not held onto for
1704
+ //to long.
1705
+ interactiveScript = null;
1706
+
1707
+ //Pull out the name of the module and the context.
1708
+ contextName = node.getAttribute("data-requirecontext");
1709
+ moduleName = node.getAttribute("data-requiremodule");
1710
+ context = contexts[contextName];
1711
+
1712
+ contexts[contextName].completeLoad(moduleName);
1713
+
1714
+ //Clean up script binding. Favor detachEvent because of IE9
1715
+ //issue, see attachEvent/addEventListener comment elsewhere
1716
+ //in this file.
1717
+ if (node.detachEvent && !isOpera) {
1718
+ //Probably IE. If not it will throw an error, which will be
1719
+ //useful to know.
1720
+ node.detachEvent("onreadystatechange", req.onScriptLoad);
1721
+ } else {
1722
+ node.removeEventListener("load", req.onScriptLoad, false);
1723
+ }
1724
+ }
1725
+ };
1726
+
1727
+ /**
1728
+ * Attaches the script represented by the URL to the current
1729
+ * environment. Right now only supports browser loading,
1730
+ * but can be redefined in other environments to do the right thing.
1731
+ * @param {String} url the url of the script to attach.
1732
+ * @param {Object} context the context that wants the script.
1733
+ * @param {moduleName} the name of the module that is associated with the script.
1734
+ * @param {Function} [callback] optional callback, defaults to require.onScriptLoad
1735
+ * @param {String} [type] optional type, defaults to text/javascript
1736
+ */
1737
+ req.attach = function (url, context, moduleName, callback, type) {
1738
+ var node, loaded;
1739
+ if (isBrowser) {
1740
+ //In the browser so use a script tag
1741
+ callback = callback || req.onScriptLoad;
1742
+ node = context && context.config && context.config.xhtml ?
1743
+ document.createElementNS("http://www.w3.org/1999/xhtml", "html:script") :
1744
+ document.createElement("script");
1745
+ node.type = type || "text/javascript";
1746
+ node.charset = "utf-8";
1747
+ //Use async so Gecko does not block on executing the script if something
1748
+ //like a long-polling comet tag is being run first. Gecko likes
1749
+ //to evaluate scripts in DOM order, even for dynamic scripts.
1750
+ //It will fetch them async, but only evaluate the contents in DOM
1751
+ //order, so a long-polling script tag can delay execution of scripts
1752
+ //after it. But telling Gecko we expect async gets us the behavior
1753
+ //we want -- execute it whenever it is finished downloading. Only
1754
+ //Helps Firefox 3.6+
1755
+ //Allow some URLs to not be fetched async. Mostly helps the order!
1756
+ //plugin
1757
+ node.async = !s.skipAsync[url];
1758
+
1759
+ if (context) {
1760
+ node.setAttribute("data-requirecontext", context.contextName);
1761
+ }
1762
+ node.setAttribute("data-requiremodule", moduleName);
1763
+
1764
+ //Set up load listener. Test attachEvent first because IE9 has
1765
+ //a subtle issue in its addEventListener and script onload firings
1766
+ //that do not match the behavior of all other browsers with
1767
+ //addEventListener support, which fire the onload event for a
1768
+ //script right after the script execution. See:
1769
+ //https://connect.microsoft.com/IE/feedback/details/648057/script-onload-event-is-not-fired-immediately-after-script-execution
1770
+ //UNFORTUNATELY Opera implements attachEvent but does not follow the script
1771
+ //script execution mode.
1772
+ if (node.attachEvent && !isOpera) {
1773
+ //Probably IE. IE (at least 6-8) do not fire
1774
+ //script onload right after executing the script, so
1775
+ //we cannot tie the anonymous define call to a name.
1776
+ //However, IE reports the script as being in "interactive"
1777
+ //readyState at the time of the define call.
1778
+ useInteractive = true;
1779
+ node.attachEvent("onreadystatechange", callback);
1780
+ } else {
1781
+ node.addEventListener("load", callback, false);
1782
+ }
1783
+ node.src = url;
1784
+
1785
+ //For some cache cases in IE 6-8, the script executes before the end
1786
+ //of the appendChild execution, so to tie an anonymous define
1787
+ //call to the module name (which is stored on the node), hold on
1788
+ //to a reference to this node, but clear after the DOM insertion.
1789
+ currentlyAddingScript = node;
1790
+ if (baseElement) {
1791
+ head.insertBefore(node, baseElement);
1792
+ } else {
1793
+ head.appendChild(node);
1794
+ }
1795
+ currentlyAddingScript = null;
1796
+ return node;
1797
+ } else if (isWebWorker) {
1798
+ //In a web worker, use importScripts. This is not a very
1799
+ //efficient use of importScripts, importScripts will block until
1800
+ //its script is downloaded and evaluated. However, if web workers
1801
+ //are in play, the expectation that a build has been done so that
1802
+ //only one script needs to be loaded anyway. This may need to be
1803
+ //reevaluated if other use cases become common.
1804
+ loaded = context.loaded;
1805
+ loaded[moduleName] = false;
1806
+
1807
+ importScripts(url);
1808
+
1809
+ //Account for anonymous modules
1810
+ context.completeLoad(moduleName);
1811
+ }
1812
+ return null;
1813
+ };
1814
+
1815
+ //Look for a data-main script attribute, which could also adjust the baseUrl.
1816
+ if (isBrowser) {
1817
+ //Figure out baseUrl. Get it from the script tag with require.js in it.
1818
+ scripts = document.getElementsByTagName("script");
1819
+
1820
+ for (i = scripts.length - 1; i > -1 && (script = scripts[i]); i--) {
1821
+ //Set the "head" where we can append children by
1822
+ //using the script's parent.
1823
+ if (!head) {
1824
+ head = script.parentNode;
1825
+ }
1826
+
1827
+ //Look for a data-main attribute to set main script for the page
1828
+ //to load. If it is there, the path to data main becomes the
1829
+ //baseUrl, if it is not already set.
1830
+ if ((dataMain = script.getAttribute('data-main'))) {
1831
+ if (!cfg.baseUrl) {
1832
+ //Pull off the directory of data-main for use as the
1833
+ //baseUrl.
1834
+ src = dataMain.split('/');
1835
+ mainScript = src.pop();
1836
+ subPath = src.length ? src.join('/') + '/' : './';
1837
+
1838
+ //Set final config.
1839
+ cfg.baseUrl = subPath;
1840
+ //Strip off any trailing .js since dataMain is now
1841
+ //like a module name.
1842
+ dataMain = mainScript.replace(jsSuffixRegExp, '');
1843
+ }
1844
+
1845
+ //Put the data-main script in the files to load.
1846
+ cfg.deps = cfg.deps ? cfg.deps.concat(dataMain) : [dataMain];
1847
+
1848
+ break;
1849
+ }
1850
+ }
1851
+ }
1852
+
1853
+ //Set baseUrl based on config.
1854
+ s.baseUrl = cfg.baseUrl;
1855
+
1856
+ //****** START page load functionality ****************
1857
+ /**
1858
+ * Sets the page as loaded and triggers check for all modules loaded.
1859
+ */
1860
+ req.pageLoaded = function () {
1861
+ if (!s.isPageLoaded) {
1862
+ s.isPageLoaded = true;
1863
+ if (scrollIntervalId) {
1864
+ clearInterval(scrollIntervalId);
1865
+ }
1866
+
1867
+ //Part of a fix for FF < 3.6 where readyState was not set to
1868
+ //complete so libraries like jQuery that check for readyState
1869
+ //after page load where not getting initialized correctly.
1870
+ //Original approach suggested by Andrea Giammarchi:
1871
+ //http://webreflection.blogspot.com/2009/11/195-chars-to-help-lazy-loading.html
1872
+ //see other setReadyState reference for the rest of the fix.
1873
+ if (setReadyState) {
1874
+ document.readyState = "complete";
1875
+ }
1876
+
1877
+ req.callReady();
1878
+ }
1879
+ };
1880
+
1881
+ //See if there is nothing waiting across contexts, and if not, trigger
1882
+ //callReady.
1883
+ req.checkReadyState = function () {
1884
+ var contexts = s.contexts, prop;
1885
+ for (prop in contexts) {
1886
+ if (!(prop in empty)) {
1887
+ if (contexts[prop].waitCount) {
1888
+ return;
1889
+ }
1890
+ }
1891
+ }
1892
+ s.isDone = true;
1893
+ req.callReady();
1894
+ };
1895
+
1896
+ /**
1897
+ * Internal function that calls back any ready functions. If you are
1898
+ * integrating RequireJS with another library without require.ready support,
1899
+ * you can define this method to call your page ready code instead.
1900
+ */
1901
+ req.callReady = function () {
1902
+ var callbacks = s.readyCalls, i, callback, contexts, context, prop;
1903
+
1904
+ if (s.isPageLoaded && s.isDone) {
1905
+ if (callbacks.length) {
1906
+ s.readyCalls = [];
1907
+ for (i = 0; (callback = callbacks[i]); i++) {
1908
+ callback();
1909
+ }
1910
+ }
1911
+
1912
+ //If jQuery with DOM ready delayed, release it now.
1913
+ contexts = s.contexts;
1914
+ for (prop in contexts) {
1915
+ if (!(prop in empty)) {
1916
+ context = contexts[prop];
1917
+ if (context.jQueryIncremented) {
1918
+ jQueryHoldReady(context.jQuery, false);
1919
+ context.jQueryIncremented = false;
1920
+ }
1921
+ }
1922
+ }
1923
+ }
1924
+ };
1925
+
1926
+ /**
1927
+ * Registers functions to call when the page is loaded
1928
+ */
1929
+ req.ready = function (callback) {
1930
+ if (s.isPageLoaded && s.isDone) {
1931
+ callback();
1932
+ } else {
1933
+ s.readyCalls.push(callback);
1934
+ }
1935
+ return req;
1936
+ };
1937
+
1938
+ if (isBrowser) {
1939
+ if (document.addEventListener) {
1940
+ //Standards. Hooray! Assumption here that if standards based,
1941
+ //it knows about DOMContentLoaded.
1942
+ document.addEventListener("DOMContentLoaded", req.pageLoaded, false);
1943
+ window.addEventListener("load", req.pageLoaded, false);
1944
+ //Part of FF < 3.6 readystate fix (see setReadyState refs for more info)
1945
+ if (!document.readyState) {
1946
+ setReadyState = true;
1947
+ document.readyState = "loading";
1948
+ }
1949
+ } else if (window.attachEvent) {
1950
+ window.attachEvent("onload", req.pageLoaded);
1951
+
1952
+ //DOMContentLoaded approximation, as found by Diego Perini:
1953
+ //http://javascript.nwbox.com/IEContentLoaded/
1954
+ if (self === self.top) {
1955
+ scrollIntervalId = setInterval(function () {
1956
+ try {
1957
+ //From this ticket:
1958
+ //http://bugs.dojotoolkit.org/ticket/11106,
1959
+ //In IE HTML Application (HTA), such as in a selenium test,
1960
+ //javascript in the iframe can't see anything outside
1961
+ //of it, so self===self.top is true, but the iframe is
1962
+ //not the top window and doScroll will be available
1963
+ //before document.body is set. Test document.body
1964
+ //before trying the doScroll trick.
1965
+ if (document.body) {
1966
+ document.documentElement.doScroll("left");
1967
+ req.pageLoaded();
1968
+ }
1969
+ } catch (e) {}
1970
+ }, 30);
1971
+ }
1972
+ }
1973
+
1974
+ //Check if document already complete, and if so, just trigger page load
1975
+ //listeners. NOTE: does not work with Firefox before 3.6. To support
1976
+ //those browsers, manually call require.pageLoaded().
1977
+ if (document.readyState === "complete") {
1978
+ req.pageLoaded();
1979
+ }
1980
+ }
1981
+ //****** END page load functionality ****************
1982
+
1983
+ //Set up default context. If require was a configuration object, use that as base config.
1984
+ req(cfg);
1985
+
1986
+ //If modules are built into require.js, then need to make sure dependencies are
1987
+ //traced. Use a setTimeout in the browser world, to allow all the modules to register
1988
+ //themselves. In a non-browser env, assume that modules are not built into require.js,
1989
+ //which seems odd to do on the server.
1990
+ if (req.isAsync && typeof setTimeout !== "undefined") {
1991
+ ctx = s.contexts[(cfg.context || defContextName)];
1992
+ //Indicate that the script that includes require() is still loading,
1993
+ //so that require()'d dependencies are not traced until the end of the
1994
+ //file is parsed (approximated via the setTimeout call).
1995
+ ctx.requireWait = true;
1996
+ setTimeout(function () {
1997
+ ctx.requireWait = false;
1998
+
1999
+ //Any modules included with the require.js file will be in the
2000
+ //global queue, assign them to this context.
2001
+ ctx.takeGlobalQueue();
2002
+
2003
+ //Allow for jQuery to be loaded/already in the page, and if jQuery 1.4.3,
2004
+ //make sure to hold onto it for readyWait triggering.
2005
+ ctx.jQueryCheck();
2006
+
2007
+ if (!ctx.scriptCount) {
2008
+ ctx.resume();
2009
+ }
2010
+ req.checkReadyState();
2011
+ }, 0);
2012
+ }
2013
+ }());