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,32 @@
1
+ define( [
2
+ "../ajax"
3
+ ], function( jQuery ) {
4
+
5
+ "use strict";
6
+
7
+ jQuery._evalUrl = function( url, options, doc ) {
8
+ return jQuery.ajax( {
9
+ url: url,
10
+
11
+ // Make this explicit, since user can override this through ajaxSetup (#11264)
12
+ type: "GET",
13
+ dataType: "script",
14
+ cache: true,
15
+ async: false,
16
+ global: false,
17
+
18
+ // Only evaluate the response if it is successful (gh-4126)
19
+ // dataFilter is not invoked for failure responses, so using it instead
20
+ // of the default converter is kludgy but it works.
21
+ converters: {
22
+ "text script": function() {}
23
+ },
24
+ dataFilter: function( response ) {
25
+ jQuery.globalEval( response, options, doc );
26
+ }
27
+ } );
28
+ };
29
+
30
+ return jQuery._evalUrl;
31
+
32
+ } );
@@ -0,0 +1,106 @@
1
+ define( [
2
+ "../core",
3
+ "../core/toType",
4
+ "../core/isAttached",
5
+ "./var/rtagName",
6
+ "./var/rscriptType",
7
+ "./wrapMap",
8
+ "./getAll",
9
+ "./setGlobalEval"
10
+ ], function( jQuery, toType, isAttached, rtagName, rscriptType, wrapMap, getAll, setGlobalEval ) {
11
+
12
+ "use strict";
13
+
14
+ var rhtml = /<|&#?\w+;/;
15
+
16
+ function buildFragment( elems, context, scripts, selection, ignored ) {
17
+ var elem, tmp, tag, wrap, attached, j,
18
+ fragment = context.createDocumentFragment(),
19
+ nodes = [],
20
+ i = 0,
21
+ l = elems.length;
22
+
23
+ for ( ; i < l; i++ ) {
24
+ elem = elems[ i ];
25
+
26
+ if ( elem || elem === 0 ) {
27
+
28
+ // Add nodes directly
29
+ if ( toType( elem ) === "object" ) {
30
+
31
+ // Support: Android <=4.0 only, PhantomJS 1 only
32
+ // push.apply(_, arraylike) throws on ancient WebKit
33
+ jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
34
+
35
+ // Convert non-html into a text node
36
+ } else if ( !rhtml.test( elem ) ) {
37
+ nodes.push( context.createTextNode( elem ) );
38
+
39
+ // Convert html into DOM nodes
40
+ } else {
41
+ tmp = tmp || fragment.appendChild( context.createElement( "div" ) );
42
+
43
+ // Deserialize a standard representation
44
+ tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase();
45
+ wrap = wrapMap[ tag ] || wrapMap._default;
46
+ tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];
47
+
48
+ // Descend through wrappers to the right content
49
+ j = wrap[ 0 ];
50
+ while ( j-- ) {
51
+ tmp = tmp.lastChild;
52
+ }
53
+
54
+ // Support: Android <=4.0 only, PhantomJS 1 only
55
+ // push.apply(_, arraylike) throws on ancient WebKit
56
+ jQuery.merge( nodes, tmp.childNodes );
57
+
58
+ // Remember the top-level container
59
+ tmp = fragment.firstChild;
60
+
61
+ // Ensure the created nodes are orphaned (#12392)
62
+ tmp.textContent = "";
63
+ }
64
+ }
65
+ }
66
+
67
+ // Remove wrapper from fragment
68
+ fragment.textContent = "";
69
+
70
+ i = 0;
71
+ while ( ( elem = nodes[ i++ ] ) ) {
72
+
73
+ // Skip elements already in the context collection (trac-4087)
74
+ if ( selection && jQuery.inArray( elem, selection ) > -1 ) {
75
+ if ( ignored ) {
76
+ ignored.push( elem );
77
+ }
78
+ continue;
79
+ }
80
+
81
+ attached = isAttached( elem );
82
+
83
+ // Append to fragment
84
+ tmp = getAll( fragment.appendChild( elem ), "script" );
85
+
86
+ // Preserve script evaluation history
87
+ if ( attached ) {
88
+ setGlobalEval( tmp );
89
+ }
90
+
91
+ // Capture executables
92
+ if ( scripts ) {
93
+ j = 0;
94
+ while ( ( elem = tmp[ j++ ] ) ) {
95
+ if ( rscriptType.test( elem.type || "" ) ) {
96
+ scripts.push( elem );
97
+ }
98
+ }
99
+ }
100
+ }
101
+
102
+ return fragment;
103
+ }
104
+
105
+ return buildFragment;
106
+ } );
@@ -0,0 +1,32 @@
1
+ define( [
2
+ "../core",
3
+ "../core/nodeName"
4
+ ], function( jQuery, nodeName ) {
5
+
6
+ "use strict";
7
+
8
+ function getAll( context, tag ) {
9
+
10
+ // Support: IE <=9 - 11 only
11
+ // Use typeof to avoid zero-argument method invocation on host objects (#15151)
12
+ var ret;
13
+
14
+ if ( typeof context.getElementsByTagName !== "undefined" ) {
15
+ ret = context.getElementsByTagName( tag || "*" );
16
+
17
+ } else if ( typeof context.querySelectorAll !== "undefined" ) {
18
+ ret = context.querySelectorAll( tag || "*" );
19
+
20
+ } else {
21
+ ret = [];
22
+ }
23
+
24
+ if ( tag === undefined || tag && nodeName( context, tag ) ) {
25
+ return jQuery.merge( [ context ], ret );
26
+ }
27
+
28
+ return ret;
29
+ }
30
+
31
+ return getAll;
32
+ } );
@@ -0,0 +1,22 @@
1
+ define( [
2
+ "../data/var/dataPriv"
3
+ ], function( dataPriv ) {
4
+
5
+ "use strict";
6
+
7
+ // Mark scripts as having already been evaluated
8
+ function setGlobalEval( elems, refElements ) {
9
+ var i = 0,
10
+ l = elems.length;
11
+
12
+ for ( ; i < l; i++ ) {
13
+ dataPriv.set(
14
+ elems[ i ],
15
+ "globalEval",
16
+ !refElements || dataPriv.get( refElements[ i ], "globalEval" )
17
+ );
18
+ }
19
+ }
20
+
21
+ return setGlobalEval;
22
+ } );
@@ -0,0 +1,41 @@
1
+ define( [
2
+ "../var/document",
3
+ "../var/support"
4
+ ], function( document, support ) {
5
+
6
+ "use strict";
7
+
8
+ ( function() {
9
+ var fragment = document.createDocumentFragment(),
10
+ div = fragment.appendChild( document.createElement( "div" ) ),
11
+ input = document.createElement( "input" );
12
+
13
+ // Support: Android 4.0 - 4.3 only
14
+ // Check state lost if the name is set (#11217)
15
+ // Support: Windows Web Apps (WWA)
16
+ // `name` and `type` must use .setAttribute for WWA (#14901)
17
+ input.setAttribute( "type", "radio" );
18
+ input.setAttribute( "checked", "checked" );
19
+ input.setAttribute( "name", "t" );
20
+
21
+ div.appendChild( input );
22
+
23
+ // Support: Android <=4.1 only
24
+ // Older WebKit doesn't clone checked state correctly in fragments
25
+ support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
26
+
27
+ // Support: IE <=11 only
28
+ // Make sure textarea (and checkbox) defaultValue is properly cloned
29
+ div.innerHTML = "<textarea>x</textarea>";
30
+ support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
31
+
32
+ // Support: IE <=9 only
33
+ // IE <=9 replaces <option> tags with their contents when inserted outside of
34
+ // the select element.
35
+ div.innerHTML = "<option></option>";
36
+ support.option = !!div.lastChild;
37
+ } )();
38
+
39
+ return support;
40
+
41
+ } );
@@ -0,0 +1,5 @@
1
+ define( function() {
2
+ "use strict";
3
+
4
+ return ( /^$|^module$|\/(?:java|ecma)script/i );
5
+ } );
@@ -0,0 +1,8 @@
1
+ define( function() {
2
+ "use strict";
3
+
4
+ // rtagName captures the name from the first start tag in a string of HTML
5
+ // https://html.spec.whatwg.org/multipage/syntax.html#tag-open-state
6
+ // https://html.spec.whatwg.org/multipage/syntax.html#tag-name-state
7
+ return ( /<([a-z][^\/\0>\x20\t\r\n\f]*)/i );
8
+ } );
@@ -0,0 +1,30 @@
1
+ define( [
2
+ "./support"
3
+ ], function( support ) {
4
+
5
+ "use strict";
6
+
7
+ // We have to close these tags to support XHTML (#13200)
8
+ var wrapMap = {
9
+
10
+ // XHTML parsers do not magically insert elements in the
11
+ // same way that tag soup parsers do. So we cannot shorten
12
+ // this by omitting <tbody> or other required elements.
13
+ thead: [ 1, "<table>", "</table>" ],
14
+ col: [ 2, "<table><colgroup>", "</colgroup></table>" ],
15
+ tr: [ 2, "<table><tbody>", "</tbody></table>" ],
16
+ td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
17
+
18
+ _default: [ 0, "", "" ]
19
+ };
20
+
21
+ wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
22
+ wrapMap.th = wrapMap.td;
23
+
24
+ // Support: IE <=9 only
25
+ if ( !support.option ) {
26
+ wrapMap.optgroup = wrapMap.option = [ 1, "<select multiple='multiple'>", "</select>" ];
27
+ }
28
+
29
+ return wrapMap;
30
+ } );
@@ -0,0 +1,238 @@
1
+ define( [
2
+ "./core",
3
+ "./core/access",
4
+ "./var/documentElement",
5
+ "./var/isFunction",
6
+ "./css/var/rnumnonpx",
7
+ "./css/curCSS",
8
+ "./css/addGetHookIf",
9
+ "./css/support",
10
+ "./var/isWindow",
11
+ "./core/init",
12
+ "./css",
13
+ "./selector" // contains
14
+ ], function( jQuery, access, documentElement, isFunction, rnumnonpx,
15
+ curCSS, addGetHookIf, support, isWindow ) {
16
+
17
+ "use strict";
18
+
19
+ jQuery.offset = {
20
+ setOffset: function( elem, options, i ) {
21
+ var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
22
+ position = jQuery.css( elem, "position" ),
23
+ curElem = jQuery( elem ),
24
+ props = {};
25
+
26
+ // Set position first, in-case top/left are set even on static elem
27
+ if ( position === "static" ) {
28
+ elem.style.position = "relative";
29
+ }
30
+
31
+ curOffset = curElem.offset();
32
+ curCSSTop = jQuery.css( elem, "top" );
33
+ curCSSLeft = jQuery.css( elem, "left" );
34
+ calculatePosition = ( position === "absolute" || position === "fixed" ) &&
35
+ ( curCSSTop + curCSSLeft ).indexOf( "auto" ) > -1;
36
+
37
+ // Need to be able to calculate position if either
38
+ // top or left is auto and position is either absolute or fixed
39
+ if ( calculatePosition ) {
40
+ curPosition = curElem.position();
41
+ curTop = curPosition.top;
42
+ curLeft = curPosition.left;
43
+
44
+ } else {
45
+ curTop = parseFloat( curCSSTop ) || 0;
46
+ curLeft = parseFloat( curCSSLeft ) || 0;
47
+ }
48
+
49
+ if ( isFunction( options ) ) {
50
+
51
+ // Use jQuery.extend here to allow modification of coordinates argument (gh-1848)
52
+ options = options.call( elem, i, jQuery.extend( {}, curOffset ) );
53
+ }
54
+
55
+ if ( options.top != null ) {
56
+ props.top = ( options.top - curOffset.top ) + curTop;
57
+ }
58
+ if ( options.left != null ) {
59
+ props.left = ( options.left - curOffset.left ) + curLeft;
60
+ }
61
+
62
+ if ( "using" in options ) {
63
+ options.using.call( elem, props );
64
+
65
+ } else {
66
+ if ( typeof props.top === "number" ) {
67
+ props.top += "px";
68
+ }
69
+ if ( typeof props.left === "number" ) {
70
+ props.left += "px";
71
+ }
72
+ curElem.css( props );
73
+ }
74
+ }
75
+ };
76
+
77
+ jQuery.fn.extend( {
78
+
79
+ // offset() relates an element's border box to the document origin
80
+ offset: function( options ) {
81
+
82
+ // Preserve chaining for setter
83
+ if ( arguments.length ) {
84
+ return options === undefined ?
85
+ this :
86
+ this.each( function( i ) {
87
+ jQuery.offset.setOffset( this, options, i );
88
+ } );
89
+ }
90
+
91
+ var rect, win,
92
+ elem = this[ 0 ];
93
+
94
+ if ( !elem ) {
95
+ return;
96
+ }
97
+
98
+ // Return zeros for disconnected and hidden (display: none) elements (gh-2310)
99
+ // Support: IE <=11 only
100
+ // Running getBoundingClientRect on a
101
+ // disconnected node in IE throws an error
102
+ if ( !elem.getClientRects().length ) {
103
+ return { top: 0, left: 0 };
104
+ }
105
+
106
+ // Get document-relative position by adding viewport scroll to viewport-relative gBCR
107
+ rect = elem.getBoundingClientRect();
108
+ win = elem.ownerDocument.defaultView;
109
+ return {
110
+ top: rect.top + win.pageYOffset,
111
+ left: rect.left + win.pageXOffset
112
+ };
113
+ },
114
+
115
+ // position() relates an element's margin box to its offset parent's padding box
116
+ // This corresponds to the behavior of CSS absolute positioning
117
+ position: function() {
118
+ if ( !this[ 0 ] ) {
119
+ return;
120
+ }
121
+
122
+ var offsetParent, offset, doc,
123
+ elem = this[ 0 ],
124
+ parentOffset = { top: 0, left: 0 };
125
+
126
+ // position:fixed elements are offset from the viewport, which itself always has zero offset
127
+ if ( jQuery.css( elem, "position" ) === "fixed" ) {
128
+
129
+ // Assume position:fixed implies availability of getBoundingClientRect
130
+ offset = elem.getBoundingClientRect();
131
+
132
+ } else {
133
+ offset = this.offset();
134
+
135
+ // Account for the *real* offset parent, which can be the document or its root element
136
+ // when a statically positioned element is identified
137
+ doc = elem.ownerDocument;
138
+ offsetParent = elem.offsetParent || doc.documentElement;
139
+ while ( offsetParent &&
140
+ ( offsetParent === doc.body || offsetParent === doc.documentElement ) &&
141
+ jQuery.css( offsetParent, "position" ) === "static" ) {
142
+
143
+ offsetParent = offsetParent.parentNode;
144
+ }
145
+ if ( offsetParent && offsetParent !== elem && offsetParent.nodeType === 1 ) {
146
+
147
+ // Incorporate borders into its offset, since they are outside its content origin
148
+ parentOffset = jQuery( offsetParent ).offset();
149
+ parentOffset.top += jQuery.css( offsetParent, "borderTopWidth", true );
150
+ parentOffset.left += jQuery.css( offsetParent, "borderLeftWidth", true );
151
+ }
152
+ }
153
+
154
+ // Subtract parent offsets and element margins
155
+ return {
156
+ top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ),
157
+ left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true )
158
+ };
159
+ },
160
+
161
+ // This method will return documentElement in the following cases:
162
+ // 1) For the element inside the iframe without offsetParent, this method will return
163
+ // documentElement of the parent window
164
+ // 2) For the hidden or detached element
165
+ // 3) For body or html element, i.e. in case of the html node - it will return itself
166
+ //
167
+ // but those exceptions were never presented as a real life use-cases
168
+ // and might be considered as more preferable results.
169
+ //
170
+ // This logic, however, is not guaranteed and can change at any point in the future
171
+ offsetParent: function() {
172
+ return this.map( function() {
173
+ var offsetParent = this.offsetParent;
174
+
175
+ while ( offsetParent && jQuery.css( offsetParent, "position" ) === "static" ) {
176
+ offsetParent = offsetParent.offsetParent;
177
+ }
178
+
179
+ return offsetParent || documentElement;
180
+ } );
181
+ }
182
+ } );
183
+
184
+ // Create scrollLeft and scrollTop methods
185
+ jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) {
186
+ var top = "pageYOffset" === prop;
187
+
188
+ jQuery.fn[ method ] = function( val ) {
189
+ return access( this, function( elem, method, val ) {
190
+
191
+ // Coalesce documents and windows
192
+ var win;
193
+ if ( isWindow( elem ) ) {
194
+ win = elem;
195
+ } else if ( elem.nodeType === 9 ) {
196
+ win = elem.defaultView;
197
+ }
198
+
199
+ if ( val === undefined ) {
200
+ return win ? win[ prop ] : elem[ method ];
201
+ }
202
+
203
+ if ( win ) {
204
+ win.scrollTo(
205
+ !top ? val : win.pageXOffset,
206
+ top ? val : win.pageYOffset
207
+ );
208
+
209
+ } else {
210
+ elem[ method ] = val;
211
+ }
212
+ }, method, val, arguments.length );
213
+ };
214
+ } );
215
+
216
+ // Support: Safari <=7 - 9.1, Chrome <=37 - 49
217
+ // Add the top/left cssHooks using jQuery.fn.position
218
+ // Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
219
+ // Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=589347
220
+ // getComputedStyle returns percent when specified for top/left/bottom/right;
221
+ // rather than make the css module depend on the offset module, just check for it here
222
+ jQuery.each( [ "top", "left" ], function( _i, prop ) {
223
+ jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,
224
+ function( elem, computed ) {
225
+ if ( computed ) {
226
+ computed = curCSS( elem, prop );
227
+
228
+ // If curCSS returns percentage, fallback to offset
229
+ return rnumnonpx.test( computed ) ?
230
+ jQuery( elem ).position()[ prop ] + "px" :
231
+ computed;
232
+ }
233
+ }
234
+ );
235
+ } );
236
+
237
+ return jQuery;
238
+ } );