utopia-wiki 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (415) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/development.yml +62 -0
  3. data/.gitignore +18 -0
  4. data/.rspec +2 -0
  5. data/.yarnrc +1 -0
  6. data/Gemfile +4 -0
  7. data/README.md +46 -0
  8. data/bake/utopia/wiki.rb +13 -0
  9. data/lib/components/.yarn-integrity +19 -0
  10. data/lib/components/jquery-litebox/README.md +66 -0
  11. data/lib/components/jquery-litebox/bower.json +27 -0
  12. data/lib/components/jquery-litebox/dist/jquery.litebox.css +23 -0
  13. data/lib/components/jquery-litebox/dist/jquery.litebox.gallery.css +48 -0
  14. data/lib/components/jquery-litebox/dist/jquery.litebox.js +30 -0
  15. data/lib/components/jquery-litebox/example/index.html +69 -0
  16. data/lib/components/jquery-litebox/example/jquery.min.js +4 -0
  17. data/lib/components/jquery-litebox/example/sample_images/large/IMG_3340.jpg +0 -0
  18. data/lib/components/jquery-litebox/example/sample_images/large/IMG_3341.jpg +0 -0
  19. data/lib/components/jquery-litebox/example/sample_images/large/IMG_3344.jpg +0 -0
  20. data/lib/components/jquery-litebox/example/sample_images/large/IMG_3351.jpg +0 -0
  21. data/lib/components/jquery-litebox/example/sample_images/medium/IMG_3340.jpg +0 -0
  22. data/lib/components/jquery-litebox/example/sample_images/medium/IMG_3341.jpg +0 -0
  23. data/lib/components/jquery-litebox/example/sample_images/medium/IMG_3344.jpg +0 -0
  24. data/lib/components/jquery-litebox/example/sample_images/medium/IMG_3351.jpg +0 -0
  25. data/lib/components/jquery-litebox/example/sample_images/small/IMG_3340.jpg +0 -0
  26. data/lib/components/jquery-litebox/example/sample_images/small/IMG_3341.jpg +0 -0
  27. data/lib/components/jquery-litebox/example/sample_images/small/IMG_3344.jpg +0 -0
  28. data/lib/components/jquery-litebox/example/sample_images/small/IMG_3351.jpg +0 -0
  29. data/lib/components/jquery-litebox/package.json +29 -0
  30. data/lib/components/jquery-syntax/Gemfile +5 -0
  31. data/lib/components/jquery-syntax/LICENSE.txt +19 -0
  32. data/lib/components/jquery-syntax/NOTES.txt +20 -0
  33. data/lib/components/jquery-syntax/README.md +95 -0
  34. data/lib/components/jquery-syntax/Rakefile +211 -0
  35. data/lib/components/jquery-syntax/bower.json +25 -0
  36. data/lib/components/jquery-syntax/config.ru +4 -0
  37. data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.apache.css +12 -0
  38. data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.applescript.css +5 -0
  39. data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.assembly.css +8 -0
  40. data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.bash-script.css +6 -0
  41. data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.bash.css +4 -0
  42. data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.clang.css +6 -0
  43. data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.css.css +14 -0
  44. data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.diff.css +16 -0
  45. data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.html.css +5 -0
  46. data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.ocaml.css +3 -0
  47. data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.protobuf.css +2 -0
  48. data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.python.css +6 -0
  49. data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.ruby.css +2 -0
  50. data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.xml.css +18 -0
  51. data/lib/components/jquery-syntax/dist/base/jquery.syntax.core.css +58 -0
  52. data/lib/components/jquery-syntax/dist/base/jquery.syntax.editor.css +6 -0
  53. data/lib/components/jquery-syntax/dist/base/theme.js +1 -0
  54. data/lib/components/jquery-syntax/dist/bright/jquery.syntax.core.css +27 -0
  55. data/lib/components/jquery-syntax/dist/bright/theme.js +1 -0
  56. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.apache.js +3 -0
  57. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.applescript.js +5 -0
  58. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.assembly.js +3 -0
  59. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.bash-script.js +4 -0
  60. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.bash.js +2 -0
  61. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.basic.js +5 -0
  62. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.clang.js +5 -0
  63. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.csharp.js +4 -0
  64. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.css.js +5 -0
  65. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.diff.js +2 -0
  66. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.go.js +3 -0
  67. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.haskell.js +3 -0
  68. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.html.js +4 -0
  69. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.io.js +3 -0
  70. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.java.js +4 -0
  71. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.javascript.js +3 -0
  72. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.kai.js +2 -0
  73. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.lisp.js +2 -0
  74. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.lua.js +3 -0
  75. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.nginx.js +2 -0
  76. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.ocaml.js +4 -0
  77. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.ooc.js +4 -0
  78. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.pascal.js +4 -0
  79. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.perl5.js +3 -0
  80. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.php-script.js +4 -0
  81. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.php.js +2 -0
  82. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.plain.js +2 -0
  83. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.protobuf.js +3 -0
  84. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.python.js +5 -0
  85. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.ruby.js +5 -0
  86. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.scala.js +4 -0
  87. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.smalltalk.js +2 -0
  88. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.sql.js +4 -0
  89. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.super-collider.js +3 -0
  90. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.swift.js +3 -0
  91. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.trenni.js +2 -0
  92. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.xml.js +4 -0
  93. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.yaml.js +2 -0
  94. data/lib/components/jquery-syntax/dist/jquery.syntax.cache.js +7 -0
  95. data/lib/components/jquery-syntax/dist/jquery.syntax.core.js +34 -0
  96. data/lib/components/jquery-syntax/dist/jquery.syntax.editor.js +11 -0
  97. data/lib/components/jquery-syntax/dist/jquery.syntax.js +8 -0
  98. data/lib/components/jquery-syntax/dist/jquery.syntax.min.js +13 -0
  99. data/lib/components/jquery-syntax/dist/paper/jquery.syntax.core.css +31 -0
  100. data/lib/components/jquery-syntax/dist/paper/theme.js +1 -0
  101. data/lib/components/jquery-syntax/examples/ex.applescript.html +120 -0
  102. data/lib/components/jquery-syntax/examples/ex.asm.html +43 -0
  103. data/lib/components/jquery-syntax/examples/ex.bash.html +139 -0
  104. data/lib/components/jquery-syntax/examples/ex.clang.html +337 -0
  105. data/lib/components/jquery-syntax/examples/ex.css.html +48 -0
  106. data/lib/components/jquery-syntax/examples/ex.diff.html +1226 -0
  107. data/lib/components/jquery-syntax/examples/ex.editor.html +28 -0
  108. data/lib/components/jquery-syntax/examples/ex.html.html +134 -0
  109. data/lib/components/jquery-syntax/examples/ex.javascript.html +330 -0
  110. data/lib/components/jquery-syntax/examples/ex.ooc.html +119 -0
  111. data/lib/components/jquery-syntax/examples/ex.php.html +54 -0
  112. data/lib/components/jquery-syntax/examples/ex.python.html +1510 -0
  113. data/lib/components/jquery-syntax/examples/ex.ruby.html +358 -0
  114. data/lib/components/jquery-syntax/examples/ex.swift.html +90 -0
  115. data/lib/components/jquery-syntax/examples/index.css +18 -0
  116. data/lib/components/jquery-syntax/examples/jquery-1.6.min.js +16 -0
  117. data/lib/components/jquery-syntax/examples/tests.html +71 -0
  118. data/lib/components/jquery-syntax/examples/wrapping-flex.html +71 -0
  119. data/lib/components/jquery-syntax/examples/wrapping.html +181 -0
  120. data/lib/components/jquery-syntax/ext/closure/COPYING +202 -0
  121. data/lib/components/jquery-syntax/ext/closure/README +292 -0
  122. data/lib/components/jquery-syntax/ext/closure/compiler.jar +0 -0
  123. data/lib/components/jquery-syntax/ext/theme.rb +85 -0
  124. data/lib/components/jquery-syntax/install.yaml +9 -0
  125. data/lib/components/jquery-syntax/jQuery.Syntax.artx/Preview/preview.png +0 -0
  126. data/lib/components/jquery-syntax/jQuery.Syntax.artx/doc.thread +0 -0
  127. data/lib/components/jquery-syntax/package.json +31 -0
  128. data/lib/components/jquery-syntax/source/jquery.syntax.brush.apache.js +41 -0
  129. data/lib/components/jquery-syntax/source/jquery.syntax.brush.applescript.js +57 -0
  130. data/lib/components/jquery-syntax/source/jquery.syntax.brush.assembly.js +37 -0
  131. data/lib/components/jquery-syntax/source/jquery.syntax.brush.bash-script.js +67 -0
  132. data/lib/components/jquery-syntax/source/jquery.syntax.brush.bash.js +33 -0
  133. data/lib/components/jquery-syntax/source/jquery.syntax.brush.basic.js +51 -0
  134. data/lib/components/jquery-syntax/source/jquery.syntax.brush.clang.js +89 -0
  135. data/lib/components/jquery-syntax/source/jquery.syntax.brush.csharp.js +47 -0
  136. data/lib/components/jquery-syntax/source/jquery.syntax.brush.css.js +80 -0
  137. data/lib/components/jquery-syntax/source/jquery.syntax.brush.diff.js +24 -0
  138. data/lib/components/jquery-syntax/source/jquery.syntax.brush.go.js +47 -0
  139. data/lib/components/jquery-syntax/source/jquery.syntax.brush.haskell.js +45 -0
  140. data/lib/components/jquery-syntax/source/jquery.syntax.brush.html.js +66 -0
  141. data/lib/components/jquery-syntax/source/jquery.syntax.brush.io.js +45 -0
  142. data/lib/components/jquery-syntax/source/jquery.syntax.brush.java.js +45 -0
  143. data/lib/components/jquery-syntax/source/jquery.syntax.brush.javascript.js +42 -0
  144. data/lib/components/jquery-syntax/source/jquery.syntax.brush.kai.js +29 -0
  145. data/lib/components/jquery-syntax/source/jquery.syntax.brush.lisp.js +34 -0
  146. data/lib/components/jquery-syntax/source/jquery.syntax.brush.lua.js +44 -0
  147. data/lib/components/jquery-syntax/source/jquery.syntax.brush.nginx.js +30 -0
  148. data/lib/components/jquery-syntax/source/jquery.syntax.brush.ocaml.js +73 -0
  149. data/lib/components/jquery-syntax/source/jquery.syntax.brush.ooc.js +46 -0
  150. data/lib/components/jquery-syntax/source/jquery.syntax.brush.pascal.js +51 -0
  151. data/lib/components/jquery-syntax/source/jquery.syntax.brush.perl5.js +52 -0
  152. data/lib/components/jquery-syntax/source/jquery.syntax.brush.php-script.js +48 -0
  153. data/lib/components/jquery-syntax/source/jquery.syntax.brush.php.js +15 -0
  154. data/lib/components/jquery-syntax/source/jquery.syntax.brush.plain.js +10 -0
  155. data/lib/components/jquery-syntax/source/jquery.syntax.brush.protobuf.js +43 -0
  156. data/lib/components/jquery-syntax/source/jquery.syntax.brush.python.js +44 -0
  157. data/lib/components/jquery-syntax/source/jquery.syntax.brush.ruby.js +77 -0
  158. data/lib/components/jquery-syntax/source/jquery.syntax.brush.scala.js +44 -0
  159. data/lib/components/jquery-syntax/source/jquery.syntax.brush.smalltalk.js +29 -0
  160. data/lib/components/jquery-syntax/source/jquery.syntax.brush.sql.js +31 -0
  161. data/lib/components/jquery-syntax/source/jquery.syntax.brush.super-collider.js +57 -0
  162. data/lib/components/jquery-syntax/source/jquery.syntax.brush.swift.js +55 -0
  163. data/lib/components/jquery-syntax/source/jquery.syntax.brush.trenni.js +35 -0
  164. data/lib/components/jquery-syntax/source/jquery.syntax.brush.xml.js +50 -0
  165. data/lib/components/jquery-syntax/source/jquery.syntax.brush.yaml.js +29 -0
  166. data/lib/components/jquery-syntax/source/jquery.syntax.core.js +1114 -0
  167. data/lib/components/jquery-syntax/source/jquery.syntax.editor.js +291 -0
  168. data/lib/components/jquery-syntax/source/jquery.syntax.js +258 -0
  169. data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.apache.sass +23 -0
  170. data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.applescript.sass +11 -0
  171. data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.assembly.sass +16 -0
  172. data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.bash-script.sass +14 -0
  173. data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.bash.sass +11 -0
  174. data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.clang.sass +12 -0
  175. data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.css.sass +25 -0
  176. data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.diff.sass +25 -0
  177. data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.html.sass +12 -0
  178. data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.ocaml.sass +8 -0
  179. data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.protobuf.sass +7 -0
  180. data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.python.sass +12 -0
  181. data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.ruby.sass +9 -0
  182. data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.xml.sass +30 -0
  183. data/lib/components/jquery-syntax/themes/base/jquery.syntax.core.sass +86 -0
  184. data/lib/components/jquery-syntax/themes/base/jquery.syntax.editor.sass +12 -0
  185. data/lib/components/jquery-syntax/themes/bright/_config.yaml +2 -0
  186. data/lib/components/jquery-syntax/themes/bright/jquery.syntax.core.sass +42 -0
  187. data/lib/components/jquery-syntax/themes/paper/_config.yaml +2 -0
  188. data/lib/components/jquery-syntax/themes/paper/jquery.syntax.core.sass +47 -0
  189. data/lib/components/jquery/AUTHORS.txt +327 -0
  190. data/lib/components/jquery/LICENSE.txt +20 -0
  191. data/lib/components/jquery/README.md +62 -0
  192. data/lib/components/jquery/bower.json +14 -0
  193. data/lib/components/jquery/dist/jquery.js +10872 -0
  194. data/lib/components/jquery/dist/jquery.min.js +2 -0
  195. data/lib/components/jquery/dist/jquery.min.map +1 -0
  196. data/lib/components/jquery/dist/jquery.slim.js +8777 -0
  197. data/lib/components/jquery/dist/jquery.slim.min.js +2 -0
  198. data/lib/components/jquery/dist/jquery.slim.min.map +1 -0
  199. data/lib/components/jquery/external/sizzle/LICENSE.txt +36 -0
  200. data/lib/components/jquery/external/sizzle/dist/sizzle.js +2478 -0
  201. data/lib/components/jquery/external/sizzle/dist/sizzle.min.js +3 -0
  202. data/lib/components/jquery/external/sizzle/dist/sizzle.min.map +1 -0
  203. data/lib/components/jquery/package.json +117 -0
  204. data/lib/components/jquery/src/ajax.js +873 -0
  205. data/lib/components/jquery/src/ajax/jsonp.js +103 -0
  206. data/lib/components/jquery/src/ajax/load.js +77 -0
  207. data/lib/components/jquery/src/ajax/script.js +74 -0
  208. data/lib/components/jquery/src/ajax/var/location.js +5 -0
  209. data/lib/components/jquery/src/ajax/var/nonce.js +5 -0
  210. data/lib/components/jquery/src/ajax/var/rquery.js +5 -0
  211. data/lib/components/jquery/src/ajax/xhr.js +170 -0
  212. data/lib/components/jquery/src/attributes.js +13 -0
  213. data/lib/components/jquery/src/attributes/attr.js +141 -0
  214. data/lib/components/jquery/src/attributes/classes.js +186 -0
  215. data/lib/components/jquery/src/attributes/prop.js +143 -0
  216. data/lib/components/jquery/src/attributes/support.js +33 -0
  217. data/lib/components/jquery/src/attributes/val.js +191 -0
  218. data/lib/components/jquery/src/callbacks.js +236 -0
  219. data/lib/components/jquery/src/core.js +400 -0
  220. data/lib/components/jquery/src/core/DOMEval.js +43 -0
  221. data/lib/components/jquery/src/core/access.js +72 -0
  222. data/lib/components/jquery/src/core/camelCase.js +23 -0
  223. data/lib/components/jquery/src/core/init.js +129 -0
  224. data/lib/components/jquery/src/core/isAttached.js +26 -0
  225. data/lib/components/jquery/src/core/nodeName.js +13 -0
  226. data/lib/components/jquery/src/core/parseHTML.js +65 -0
  227. data/lib/components/jquery/src/core/parseXML.js +30 -0
  228. data/lib/components/jquery/src/core/ready-no-deferred.js +97 -0
  229. data/lib/components/jquery/src/core/ready.js +86 -0
  230. data/lib/components/jquery/src/core/readyException.js +13 -0
  231. data/lib/components/jquery/src/core/stripAndCollapse.js +14 -0
  232. data/lib/components/jquery/src/core/support.js +20 -0
  233. data/lib/components/jquery/src/core/toType.js +20 -0
  234. data/lib/components/jquery/src/core/var/rsingleTag.js +7 -0
  235. data/lib/components/jquery/src/css.js +494 -0
  236. data/lib/components/jquery/src/css/addGetHookIf.js +26 -0
  237. data/lib/components/jquery/src/css/adjustCSS.js +74 -0
  238. data/lib/components/jquery/src/css/curCSS.js +65 -0
  239. data/lib/components/jquery/src/css/finalPropName.js +42 -0
  240. data/lib/components/jquery/src/css/hiddenVisibleSelectors.js +15 -0
  241. data/lib/components/jquery/src/css/showHide.js +105 -0
  242. data/lib/components/jquery/src/css/support.js +133 -0
  243. data/lib/components/jquery/src/css/var/cssExpand.js +5 -0
  244. data/lib/components/jquery/src/css/var/getStyles.js +17 -0
  245. data/lib/components/jquery/src/css/var/isHiddenWithinTree.js +34 -0
  246. data/lib/components/jquery/src/css/var/rboxStyle.js +7 -0
  247. data/lib/components/jquery/src/css/var/rnumnonpx.js +7 -0
  248. data/lib/components/jquery/src/css/var/swap.js +26 -0
  249. data/lib/components/jquery/src/data.js +180 -0
  250. data/lib/components/jquery/src/data/Data.js +162 -0
  251. data/lib/components/jquery/src/data/var/acceptData.js +19 -0
  252. data/lib/components/jquery/src/data/var/dataPriv.js +7 -0
  253. data/lib/components/jquery/src/data/var/dataUser.js +7 -0
  254. data/lib/components/jquery/src/deferred.js +399 -0
  255. data/lib/components/jquery/src/deferred/exceptionHook.js +21 -0
  256. data/lib/components/jquery/src/deprecated.js +87 -0
  257. data/lib/components/jquery/src/deprecated/ajax-event-alias.js +22 -0
  258. data/lib/components/jquery/src/deprecated/event.js +48 -0
  259. data/lib/components/jquery/src/dimensions.js +57 -0
  260. data/lib/components/jquery/src/effects.js +701 -0
  261. data/lib/components/jquery/src/effects/Tween.js +125 -0
  262. data/lib/components/jquery/src/effects/animatedSelector.js +15 -0
  263. data/lib/components/jquery/src/event.js +892 -0
  264. data/lib/components/jquery/src/event/focusin.js +58 -0
  265. data/lib/components/jquery/src/event/support.js +11 -0
  266. data/lib/components/jquery/src/event/trigger.js +201 -0
  267. data/lib/components/jquery/src/exports/amd.js +26 -0
  268. data/lib/components/jquery/src/exports/global.js +34 -0
  269. data/lib/components/jquery/src/jquery.js +41 -0
  270. data/lib/components/jquery/src/manipulation.js +480 -0
  271. data/lib/components/jquery/src/manipulation/_evalUrl.js +32 -0
  272. data/lib/components/jquery/src/manipulation/buildFragment.js +106 -0
  273. data/lib/components/jquery/src/manipulation/getAll.js +32 -0
  274. data/lib/components/jquery/src/manipulation/setGlobalEval.js +22 -0
  275. data/lib/components/jquery/src/manipulation/support.js +41 -0
  276. data/lib/components/jquery/src/manipulation/var/rscriptType.js +5 -0
  277. data/lib/components/jquery/src/manipulation/var/rtagName.js +8 -0
  278. data/lib/components/jquery/src/manipulation/wrapMap.js +30 -0
  279. data/lib/components/jquery/src/offset.js +238 -0
  280. data/lib/components/jquery/src/queue.js +145 -0
  281. data/lib/components/jquery/src/queue/delay.js +24 -0
  282. data/lib/components/jquery/src/selector-native.js +241 -0
  283. data/lib/components/jquery/src/selector-sizzle.js +19 -0
  284. data/lib/components/jquery/src/selector.js +3 -0
  285. data/lib/components/jquery/src/serialize.js +136 -0
  286. data/lib/components/jquery/src/traversing.js +198 -0
  287. data/lib/components/jquery/src/traversing/findFilter.js +97 -0
  288. data/lib/components/jquery/src/traversing/var/dir.js +22 -0
  289. data/lib/components/jquery/src/traversing/var/rneedsContext.js +8 -0
  290. data/lib/components/jquery/src/traversing/var/siblings.js +17 -0
  291. data/lib/components/jquery/src/var/ObjectFunctionString.js +7 -0
  292. data/lib/components/jquery/src/var/arr.js +5 -0
  293. data/lib/components/jquery/src/var/class2type.js +6 -0
  294. data/lib/components/jquery/src/var/document.js +5 -0
  295. data/lib/components/jquery/src/var/documentElement.js +7 -0
  296. data/lib/components/jquery/src/var/flat.js +16 -0
  297. data/lib/components/jquery/src/var/fnToString.js +7 -0
  298. data/lib/components/jquery/src/var/getProto.js +5 -0
  299. data/lib/components/jquery/src/var/hasOwn.js +7 -0
  300. data/lib/components/jquery/src/var/indexOf.js +7 -0
  301. data/lib/components/jquery/src/var/isFunction.js +13 -0
  302. data/lib/components/jquery/src/var/isWindow.js +8 -0
  303. data/lib/components/jquery/src/var/pnum.js +5 -0
  304. data/lib/components/jquery/src/var/push.js +7 -0
  305. data/lib/components/jquery/src/var/rcheckableType.js +5 -0
  306. data/lib/components/jquery/src/var/rcssNum.js +9 -0
  307. data/lib/components/jquery/src/var/rnothtmlwhite.js +8 -0
  308. data/lib/components/jquery/src/var/slice.js +7 -0
  309. data/lib/components/jquery/src/var/support.js +6 -0
  310. data/lib/components/jquery/src/var/toString.js +7 -0
  311. data/lib/components/jquery/src/wrap.js +78 -0
  312. data/lib/utopia/wiki.rb +80 -0
  313. data/lib/utopia/wiki/version.rb +27 -0
  314. data/package.json +6 -0
  315. data/pages/_editor.xnode +21 -0
  316. data/pages/_heading.xnode +2 -0
  317. data/pages/_listing.xnode +23 -0
  318. data/pages/_navigation.xnode +33 -0
  319. data/pages/_page.xnode +32 -0
  320. data/pages/_thumbnail.xnode +8 -0
  321. data/pages/controller.rb +77 -0
  322. data/pages/create.xnode +15 -0
  323. data/pages/edit.xnode +10 -0
  324. data/pages/errors/exception.xnode +5 -0
  325. data/pages/errors/file-not-found.xnode +5 -0
  326. data/pages/links.yaml +2 -0
  327. data/pages/show.xnode +15 -0
  328. data/public/.nojekyll +0 -0
  329. data/public/_components/jquery-litebox/jquery.litebox.css +23 -0
  330. data/public/_components/jquery-litebox/jquery.litebox.gallery.css +48 -0
  331. data/public/_components/jquery-litebox/jquery.litebox.js +30 -0
  332. data/public/_components/jquery-syntax/base/jquery.syntax.brush.apache.css +12 -0
  333. data/public/_components/jquery-syntax/base/jquery.syntax.brush.applescript.css +5 -0
  334. data/public/_components/jquery-syntax/base/jquery.syntax.brush.assembly.css +8 -0
  335. data/public/_components/jquery-syntax/base/jquery.syntax.brush.bash-script.css +6 -0
  336. data/public/_components/jquery-syntax/base/jquery.syntax.brush.bash.css +4 -0
  337. data/public/_components/jquery-syntax/base/jquery.syntax.brush.clang.css +6 -0
  338. data/public/_components/jquery-syntax/base/jquery.syntax.brush.css.css +14 -0
  339. data/public/_components/jquery-syntax/base/jquery.syntax.brush.diff.css +16 -0
  340. data/public/_components/jquery-syntax/base/jquery.syntax.brush.html.css +5 -0
  341. data/public/_components/jquery-syntax/base/jquery.syntax.brush.ocaml.css +3 -0
  342. data/public/_components/jquery-syntax/base/jquery.syntax.brush.protobuf.css +2 -0
  343. data/public/_components/jquery-syntax/base/jquery.syntax.brush.python.css +6 -0
  344. data/public/_components/jquery-syntax/base/jquery.syntax.brush.ruby.css +2 -0
  345. data/public/_components/jquery-syntax/base/jquery.syntax.brush.xml.css +18 -0
  346. data/public/_components/jquery-syntax/base/jquery.syntax.core.css +58 -0
  347. data/public/_components/jquery-syntax/base/jquery.syntax.editor.css +6 -0
  348. data/public/_components/jquery-syntax/base/theme.js +1 -0
  349. data/public/_components/jquery-syntax/bright/jquery.syntax.core.css +27 -0
  350. data/public/_components/jquery-syntax/bright/theme.js +1 -0
  351. data/public/_components/jquery-syntax/jquery.syntax.brush.apache.js +3 -0
  352. data/public/_components/jquery-syntax/jquery.syntax.brush.applescript.js +5 -0
  353. data/public/_components/jquery-syntax/jquery.syntax.brush.assembly.js +3 -0
  354. data/public/_components/jquery-syntax/jquery.syntax.brush.bash-script.js +4 -0
  355. data/public/_components/jquery-syntax/jquery.syntax.brush.bash.js +2 -0
  356. data/public/_components/jquery-syntax/jquery.syntax.brush.basic.js +5 -0
  357. data/public/_components/jquery-syntax/jquery.syntax.brush.clang.js +5 -0
  358. data/public/_components/jquery-syntax/jquery.syntax.brush.csharp.js +4 -0
  359. data/public/_components/jquery-syntax/jquery.syntax.brush.css.js +5 -0
  360. data/public/_components/jquery-syntax/jquery.syntax.brush.diff.js +2 -0
  361. data/public/_components/jquery-syntax/jquery.syntax.brush.go.js +3 -0
  362. data/public/_components/jquery-syntax/jquery.syntax.brush.haskell.js +3 -0
  363. data/public/_components/jquery-syntax/jquery.syntax.brush.html.js +4 -0
  364. data/public/_components/jquery-syntax/jquery.syntax.brush.io.js +3 -0
  365. data/public/_components/jquery-syntax/jquery.syntax.brush.java.js +4 -0
  366. data/public/_components/jquery-syntax/jquery.syntax.brush.javascript.js +3 -0
  367. data/public/_components/jquery-syntax/jquery.syntax.brush.kai.js +2 -0
  368. data/public/_components/jquery-syntax/jquery.syntax.brush.lisp.js +2 -0
  369. data/public/_components/jquery-syntax/jquery.syntax.brush.lua.js +3 -0
  370. data/public/_components/jquery-syntax/jquery.syntax.brush.nginx.js +2 -0
  371. data/public/_components/jquery-syntax/jquery.syntax.brush.ocaml.js +4 -0
  372. data/public/_components/jquery-syntax/jquery.syntax.brush.ooc.js +4 -0
  373. data/public/_components/jquery-syntax/jquery.syntax.brush.pascal.js +4 -0
  374. data/public/_components/jquery-syntax/jquery.syntax.brush.perl5.js +3 -0
  375. data/public/_components/jquery-syntax/jquery.syntax.brush.php-script.js +4 -0
  376. data/public/_components/jquery-syntax/jquery.syntax.brush.php.js +2 -0
  377. data/public/_components/jquery-syntax/jquery.syntax.brush.plain.js +2 -0
  378. data/public/_components/jquery-syntax/jquery.syntax.brush.protobuf.js +3 -0
  379. data/public/_components/jquery-syntax/jquery.syntax.brush.python.js +5 -0
  380. data/public/_components/jquery-syntax/jquery.syntax.brush.ruby.js +5 -0
  381. data/public/_components/jquery-syntax/jquery.syntax.brush.scala.js +4 -0
  382. data/public/_components/jquery-syntax/jquery.syntax.brush.smalltalk.js +2 -0
  383. data/public/_components/jquery-syntax/jquery.syntax.brush.sql.js +4 -0
  384. data/public/_components/jquery-syntax/jquery.syntax.brush.super-collider.js +3 -0
  385. data/public/_components/jquery-syntax/jquery.syntax.brush.swift.js +3 -0
  386. data/public/_components/jquery-syntax/jquery.syntax.brush.trenni.js +2 -0
  387. data/public/_components/jquery-syntax/jquery.syntax.brush.xml.js +4 -0
  388. data/public/_components/jquery-syntax/jquery.syntax.brush.yaml.js +2 -0
  389. data/public/_components/jquery-syntax/jquery.syntax.cache.js +7 -0
  390. data/public/_components/jquery-syntax/jquery.syntax.core.js +34 -0
  391. data/public/_components/jquery-syntax/jquery.syntax.editor.js +11 -0
  392. data/public/_components/jquery-syntax/jquery.syntax.js +8 -0
  393. data/public/_components/jquery-syntax/jquery.syntax.min.js +13 -0
  394. data/public/_components/jquery-syntax/paper/jquery.syntax.core.css +31 -0
  395. data/public/_components/jquery-syntax/paper/theme.js +1 -0
  396. data/public/_components/jquery/jquery.js +10872 -0
  397. data/public/_components/jquery/jquery.min.js +2 -0
  398. data/public/_components/jquery/jquery.min.map +1 -0
  399. data/public/_components/jquery/jquery.slim.js +8777 -0
  400. data/public/_components/jquery/jquery.slim.min.js +2 -0
  401. data/public/_components/jquery/jquery.slim.min.map +1 -0
  402. data/public/_static/icon.png +0 -0
  403. data/public/_static/site.css +191 -0
  404. data/utopia-wiki.gemspec +39 -0
  405. data/wiki/Gemfile +10 -0
  406. data/wiki/config.ru +7 -0
  407. data/wiki/pages/_logos/Async.png +0 -0
  408. data/wiki/pages/_logos/Falcon.png +0 -0
  409. data/wiki/pages/_logos/Utopia.png +0 -0
  410. data/wiki/pages/index.en.md +62 -0
  411. data/wiki/pages/index.md +57 -0
  412. data/wiki/pages/links.yaml +2 -0
  413. data/wiki/pages/usage/merging/index.md +3 -0
  414. data/yarn.lock +22 -0
  415. metadata +675 -0
@@ -0,0 +1,400 @@
1
+ /* global Symbol */
2
+ // Defining this global in .eslintrc.json would create a danger of using the global
3
+ // unguarded in another place, it seems safer to define global only for this module
4
+
5
+ define( [
6
+ "./var/arr",
7
+ "./var/getProto",
8
+ "./var/slice",
9
+ "./var/flat",
10
+ "./var/push",
11
+ "./var/indexOf",
12
+ "./var/class2type",
13
+ "./var/toString",
14
+ "./var/hasOwn",
15
+ "./var/fnToString",
16
+ "./var/ObjectFunctionString",
17
+ "./var/support",
18
+ "./var/isFunction",
19
+ "./var/isWindow",
20
+ "./core/DOMEval",
21
+ "./core/toType"
22
+ ], function( arr, getProto, slice, flat, push, indexOf,
23
+ class2type, toString, hasOwn, fnToString, ObjectFunctionString,
24
+ support, isFunction, isWindow, DOMEval, toType ) {
25
+
26
+ "use strict";
27
+
28
+ var
29
+ version = "3.5.0",
30
+
31
+ // Define a local copy of jQuery
32
+ jQuery = function( selector, context ) {
33
+
34
+ // The jQuery object is actually just the init constructor 'enhanced'
35
+ // Need init if jQuery is called (just allow error to be thrown if not included)
36
+ return new jQuery.fn.init( selector, context );
37
+ };
38
+
39
+ jQuery.fn = jQuery.prototype = {
40
+
41
+ // The current version of jQuery being used
42
+ jquery: version,
43
+
44
+ constructor: jQuery,
45
+
46
+ // The default length of a jQuery object is 0
47
+ length: 0,
48
+
49
+ toArray: function() {
50
+ return slice.call( this );
51
+ },
52
+
53
+ // Get the Nth element in the matched element set OR
54
+ // Get the whole matched element set as a clean array
55
+ get: function( num ) {
56
+
57
+ // Return all the elements in a clean array
58
+ if ( num == null ) {
59
+ return slice.call( this );
60
+ }
61
+
62
+ // Return just the one element from the set
63
+ return num < 0 ? this[ num + this.length ] : this[ num ];
64
+ },
65
+
66
+ // Take an array of elements and push it onto the stack
67
+ // (returning the new matched element set)
68
+ pushStack: function( elems ) {
69
+
70
+ // Build a new jQuery matched element set
71
+ var ret = jQuery.merge( this.constructor(), elems );
72
+
73
+ // Add the old object onto the stack (as a reference)
74
+ ret.prevObject = this;
75
+
76
+ // Return the newly-formed element set
77
+ return ret;
78
+ },
79
+
80
+ // Execute a callback for every element in the matched set.
81
+ each: function( callback ) {
82
+ return jQuery.each( this, callback );
83
+ },
84
+
85
+ map: function( callback ) {
86
+ return this.pushStack( jQuery.map( this, function( elem, i ) {
87
+ return callback.call( elem, i, elem );
88
+ } ) );
89
+ },
90
+
91
+ slice: function() {
92
+ return this.pushStack( slice.apply( this, arguments ) );
93
+ },
94
+
95
+ first: function() {
96
+ return this.eq( 0 );
97
+ },
98
+
99
+ last: function() {
100
+ return this.eq( -1 );
101
+ },
102
+
103
+ even: function() {
104
+ return this.pushStack( jQuery.grep( this, function( _elem, i ) {
105
+ return ( i + 1 ) % 2;
106
+ } ) );
107
+ },
108
+
109
+ odd: function() {
110
+ return this.pushStack( jQuery.grep( this, function( _elem, i ) {
111
+ return i % 2;
112
+ } ) );
113
+ },
114
+
115
+ eq: function( i ) {
116
+ var len = this.length,
117
+ j = +i + ( i < 0 ? len : 0 );
118
+ return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );
119
+ },
120
+
121
+ end: function() {
122
+ return this.prevObject || this.constructor();
123
+ },
124
+
125
+ // For internal use only.
126
+ // Behaves like an Array's method, not like a jQuery method.
127
+ push: push,
128
+ sort: arr.sort,
129
+ splice: arr.splice
130
+ };
131
+
132
+ jQuery.extend = jQuery.fn.extend = function() {
133
+ var options, name, src, copy, copyIsArray, clone,
134
+ target = arguments[ 0 ] || {},
135
+ i = 1,
136
+ length = arguments.length,
137
+ deep = false;
138
+
139
+ // Handle a deep copy situation
140
+ if ( typeof target === "boolean" ) {
141
+ deep = target;
142
+
143
+ // Skip the boolean and the target
144
+ target = arguments[ i ] || {};
145
+ i++;
146
+ }
147
+
148
+ // Handle case when target is a string or something (possible in deep copy)
149
+ if ( typeof target !== "object" && !isFunction( target ) ) {
150
+ target = {};
151
+ }
152
+
153
+ // Extend jQuery itself if only one argument is passed
154
+ if ( i === length ) {
155
+ target = this;
156
+ i--;
157
+ }
158
+
159
+ for ( ; i < length; i++ ) {
160
+
161
+ // Only deal with non-null/undefined values
162
+ if ( ( options = arguments[ i ] ) != null ) {
163
+
164
+ // Extend the base object
165
+ for ( name in options ) {
166
+ copy = options[ name ];
167
+
168
+ // Prevent Object.prototype pollution
169
+ // Prevent never-ending loop
170
+ if ( name === "__proto__" || target === copy ) {
171
+ continue;
172
+ }
173
+
174
+ // Recurse if we're merging plain objects or arrays
175
+ if ( deep && copy && ( jQuery.isPlainObject( copy ) ||
176
+ ( copyIsArray = Array.isArray( copy ) ) ) ) {
177
+ src = target[ name ];
178
+
179
+ // Ensure proper type for the source value
180
+ if ( copyIsArray && !Array.isArray( src ) ) {
181
+ clone = [];
182
+ } else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) {
183
+ clone = {};
184
+ } else {
185
+ clone = src;
186
+ }
187
+ copyIsArray = false;
188
+
189
+ // Never move original objects, clone them
190
+ target[ name ] = jQuery.extend( deep, clone, copy );
191
+
192
+ // Don't bring in undefined values
193
+ } else if ( copy !== undefined ) {
194
+ target[ name ] = copy;
195
+ }
196
+ }
197
+ }
198
+ }
199
+
200
+ // Return the modified object
201
+ return target;
202
+ };
203
+
204
+ jQuery.extend( {
205
+
206
+ // Unique for each copy of jQuery on the page
207
+ expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),
208
+
209
+ // Assume jQuery is ready without the ready module
210
+ isReady: true,
211
+
212
+ error: function( msg ) {
213
+ throw new Error( msg );
214
+ },
215
+
216
+ noop: function() {},
217
+
218
+ isPlainObject: function( obj ) {
219
+ var proto, Ctor;
220
+
221
+ // Detect obvious negatives
222
+ // Use toString instead of jQuery.type to catch host objects
223
+ if ( !obj || toString.call( obj ) !== "[object Object]" ) {
224
+ return false;
225
+ }
226
+
227
+ proto = getProto( obj );
228
+
229
+ // Objects with no prototype (e.g., `Object.create( null )`) are plain
230
+ if ( !proto ) {
231
+ return true;
232
+ }
233
+
234
+ // Objects with prototype are plain iff they were constructed by a global Object function
235
+ Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor;
236
+ return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString;
237
+ },
238
+
239
+ isEmptyObject: function( obj ) {
240
+ var name;
241
+
242
+ for ( name in obj ) {
243
+ return false;
244
+ }
245
+ return true;
246
+ },
247
+
248
+ // Evaluates a script in a provided context; falls back to the global one
249
+ // if not specified.
250
+ globalEval: function( code, options, doc ) {
251
+ DOMEval( code, { nonce: options && options.nonce }, doc );
252
+ },
253
+
254
+ each: function( obj, callback ) {
255
+ var length, i = 0;
256
+
257
+ if ( isArrayLike( obj ) ) {
258
+ length = obj.length;
259
+ for ( ; i < length; i++ ) {
260
+ if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
261
+ break;
262
+ }
263
+ }
264
+ } else {
265
+ for ( i in obj ) {
266
+ if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
267
+ break;
268
+ }
269
+ }
270
+ }
271
+
272
+ return obj;
273
+ },
274
+
275
+ // results is for internal usage only
276
+ makeArray: function( arr, results ) {
277
+ var ret = results || [];
278
+
279
+ if ( arr != null ) {
280
+ if ( isArrayLike( Object( arr ) ) ) {
281
+ jQuery.merge( ret,
282
+ typeof arr === "string" ?
283
+ [ arr ] : arr
284
+ );
285
+ } else {
286
+ push.call( ret, arr );
287
+ }
288
+ }
289
+
290
+ return ret;
291
+ },
292
+
293
+ inArray: function( elem, arr, i ) {
294
+ return arr == null ? -1 : indexOf.call( arr, elem, i );
295
+ },
296
+
297
+ // Support: Android <=4.0 only, PhantomJS 1 only
298
+ // push.apply(_, arraylike) throws on ancient WebKit
299
+ merge: function( first, second ) {
300
+ var len = +second.length,
301
+ j = 0,
302
+ i = first.length;
303
+
304
+ for ( ; j < len; j++ ) {
305
+ first[ i++ ] = second[ j ];
306
+ }
307
+
308
+ first.length = i;
309
+
310
+ return first;
311
+ },
312
+
313
+ grep: function( elems, callback, invert ) {
314
+ var callbackInverse,
315
+ matches = [],
316
+ i = 0,
317
+ length = elems.length,
318
+ callbackExpect = !invert;
319
+
320
+ // Go through the array, only saving the items
321
+ // that pass the validator function
322
+ for ( ; i < length; i++ ) {
323
+ callbackInverse = !callback( elems[ i ], i );
324
+ if ( callbackInverse !== callbackExpect ) {
325
+ matches.push( elems[ i ] );
326
+ }
327
+ }
328
+
329
+ return matches;
330
+ },
331
+
332
+ // arg is for internal usage only
333
+ map: function( elems, callback, arg ) {
334
+ var length, value,
335
+ i = 0,
336
+ ret = [];
337
+
338
+ // Go through the array, translating each of the items to their new values
339
+ if ( isArrayLike( elems ) ) {
340
+ length = elems.length;
341
+ for ( ; i < length; i++ ) {
342
+ value = callback( elems[ i ], i, arg );
343
+
344
+ if ( value != null ) {
345
+ ret.push( value );
346
+ }
347
+ }
348
+
349
+ // Go through every key on the object,
350
+ } else {
351
+ for ( i in elems ) {
352
+ value = callback( elems[ i ], i, arg );
353
+
354
+ if ( value != null ) {
355
+ ret.push( value );
356
+ }
357
+ }
358
+ }
359
+
360
+ // Flatten any nested arrays
361
+ return flat( ret );
362
+ },
363
+
364
+ // A global GUID counter for objects
365
+ guid: 1,
366
+
367
+ // jQuery.support is not used in Core but other projects attach their
368
+ // properties to it so it needs to exist.
369
+ support: support
370
+ } );
371
+
372
+ if ( typeof Symbol === "function" ) {
373
+ jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
374
+ }
375
+
376
+ // Populate the class2type map
377
+ jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
378
+ function( _i, name ) {
379
+ class2type[ "[object " + name + "]" ] = name.toLowerCase();
380
+ } );
381
+
382
+ function isArrayLike( obj ) {
383
+
384
+ // Support: real iOS 8.2 only (not reproducible in simulator)
385
+ // `in` check used to prevent JIT error (gh-2145)
386
+ // hasOwn isn't used here due to false negatives
387
+ // regarding Nodelist length in IE
388
+ var length = !!obj && "length" in obj && obj.length,
389
+ type = toType( obj );
390
+
391
+ if ( isFunction( obj ) || isWindow( obj ) ) {
392
+ return false;
393
+ }
394
+
395
+ return type === "array" || length === 0 ||
396
+ typeof length === "number" && length > 0 && ( length - 1 ) in obj;
397
+ }
398
+
399
+ return jQuery;
400
+ } );
@@ -0,0 +1,43 @@
1
+ define( [
2
+ "../var/document"
3
+ ], function( document ) {
4
+ "use strict";
5
+
6
+ var preservedScriptAttributes = {
7
+ type: true,
8
+ src: true,
9
+ nonce: true,
10
+ noModule: true
11
+ };
12
+
13
+ function DOMEval( code, node, doc ) {
14
+ doc = doc || document;
15
+
16
+ var i, val,
17
+ script = doc.createElement( "script" );
18
+
19
+ script.text = code;
20
+ if ( node ) {
21
+ for ( i in preservedScriptAttributes ) {
22
+
23
+ // Support: Firefox 64+, Edge 18+
24
+ // Some browsers don't support the "nonce" property on scripts.
25
+ // On the other hand, just using `getAttribute` is not enough as
26
+ // the `nonce` attribute is reset to an empty string whenever it
27
+ // becomes browsing-context connected.
28
+ // See https://github.com/whatwg/html/issues/2369
29
+ // See https://html.spec.whatwg.org/#nonce-attributes
30
+ // The `node.getAttribute` check was added for the sake of
31
+ // `jQuery.globalEval` so that it can fake a nonce-containing node
32
+ // via an object.
33
+ val = node[ i ] || node.getAttribute && node.getAttribute( i );
34
+ if ( val ) {
35
+ script.setAttribute( i, val );
36
+ }
37
+ }
38
+ }
39
+ doc.head.appendChild( script ).parentNode.removeChild( script );
40
+ }
41
+
42
+ return DOMEval;
43
+ } );
@@ -0,0 +1,72 @@
1
+ define( [
2
+ "../core",
3
+ "../core/toType",
4
+ "../var/isFunction"
5
+ ], function( jQuery, toType, isFunction ) {
6
+
7
+ "use strict";
8
+
9
+ // Multifunctional method to get and set values of a collection
10
+ // The value/s can optionally be executed if it's a function
11
+ var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
12
+ var i = 0,
13
+ len = elems.length,
14
+ bulk = key == null;
15
+
16
+ // Sets many values
17
+ if ( toType( key ) === "object" ) {
18
+ chainable = true;
19
+ for ( i in key ) {
20
+ access( elems, fn, i, key[ i ], true, emptyGet, raw );
21
+ }
22
+
23
+ // Sets one value
24
+ } else if ( value !== undefined ) {
25
+ chainable = true;
26
+
27
+ if ( !isFunction( value ) ) {
28
+ raw = true;
29
+ }
30
+
31
+ if ( bulk ) {
32
+
33
+ // Bulk operations run against the entire set
34
+ if ( raw ) {
35
+ fn.call( elems, value );
36
+ fn = null;
37
+
38
+ // ...except when executing function values
39
+ } else {
40
+ bulk = fn;
41
+ fn = function( elem, _key, value ) {
42
+ return bulk.call( jQuery( elem ), value );
43
+ };
44
+ }
45
+ }
46
+
47
+ if ( fn ) {
48
+ for ( ; i < len; i++ ) {
49
+ fn(
50
+ elems[ i ], key, raw ?
51
+ value :
52
+ value.call( elems[ i ], i, fn( elems[ i ], key ) )
53
+ );
54
+ }
55
+ }
56
+ }
57
+
58
+ if ( chainable ) {
59
+ return elems;
60
+ }
61
+
62
+ // Gets
63
+ if ( bulk ) {
64
+ return fn.call( elems );
65
+ }
66
+
67
+ return len ? fn( elems[ 0 ], key ) : emptyGet;
68
+ };
69
+
70
+ return access;
71
+
72
+ } );