fomantic-ui 2.9.3-beta.9 → 2.9.4-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) hide show
  1. package/.all-contributorsrc +2 -2
  2. package/.github/FUNDING.yml +1 -1
  3. package/.github/auto_assign.yml +1 -1
  4. package/.github/workflows/ci.yml +5 -5
  5. package/.github/workflows/nightly.yml +1 -1
  6. package/.github/workflows/release.yml +1 -1
  7. package/CHANGELOG.md +131 -0
  8. package/CONTRIBUTORS.md +1 -1
  9. package/README.md +5 -2
  10. package/SECURITY.md +2 -1
  11. package/dist/components/accordion.css +1 -1
  12. package/dist/components/accordion.js +2 -2
  13. package/dist/components/accordion.min.css +1 -1
  14. package/dist/components/accordion.min.js +2 -2
  15. package/dist/components/ad.css +1 -1
  16. package/dist/components/ad.min.css +1 -1
  17. package/dist/components/api.js +10 -9
  18. package/dist/components/api.min.js +2 -2
  19. package/dist/components/breadcrumb.css +1 -1
  20. package/dist/components/breadcrumb.min.css +1 -1
  21. package/dist/components/button.css +2 -2
  22. package/dist/components/button.min.css +2 -2
  23. package/dist/components/calendar.css +140 -3
  24. package/dist/components/calendar.js +2 -2
  25. package/dist/components/calendar.min.css +2 -2
  26. package/dist/components/calendar.min.js +2 -2
  27. package/dist/components/card.css +1 -1
  28. package/dist/components/card.min.css +1 -1
  29. package/dist/components/checkbox.css +50 -6
  30. package/dist/components/checkbox.js +5 -3
  31. package/dist/components/checkbox.min.css +2 -2
  32. package/dist/components/checkbox.min.js +2 -2
  33. package/dist/components/comment.css +6 -1
  34. package/dist/components/comment.min.css +2 -2
  35. package/dist/components/container.css +62 -1
  36. package/dist/components/container.min.css +2 -2
  37. package/dist/components/dimmer.css +3 -3
  38. package/dist/components/dimmer.js +2 -2
  39. package/dist/components/dimmer.min.css +2 -2
  40. package/dist/components/dimmer.min.js +2 -2
  41. package/dist/components/divider.css +1 -1
  42. package/dist/components/divider.min.css +1 -1
  43. package/dist/components/dropdown.css +101 -25
  44. package/dist/components/dropdown.js +29 -21
  45. package/dist/components/dropdown.min.css +2 -2
  46. package/dist/components/dropdown.min.js +2 -2
  47. package/dist/components/embed.css +1 -1
  48. package/dist/components/embed.js +2 -2
  49. package/dist/components/embed.min.css +1 -1
  50. package/dist/components/embed.min.js +2 -2
  51. package/dist/components/emoji.css +697 -249
  52. package/dist/components/emoji.min.css +2 -2
  53. package/dist/components/feed.css +486 -5
  54. package/dist/components/feed.min.css +2 -2
  55. package/dist/components/flag.css +3 -2
  56. package/dist/components/flag.min.css +2 -2
  57. package/dist/components/flyout.css +1 -1
  58. package/dist/components/flyout.js +2 -33
  59. package/dist/components/flyout.min.css +1 -1
  60. package/dist/components/flyout.min.js +2 -2
  61. package/dist/components/form.css +34 -32
  62. package/dist/components/form.js +72 -31
  63. package/dist/components/form.min.css +2 -2
  64. package/dist/components/form.min.js +2 -2
  65. package/dist/components/grid.css +107 -107
  66. package/dist/components/grid.min.css +2 -2
  67. package/dist/components/header.css +1 -1
  68. package/dist/components/header.min.css +1 -1
  69. package/dist/components/icon.css +62 -62
  70. package/dist/components/icon.min.css +2 -2
  71. package/dist/components/image.css +1 -1
  72. package/dist/components/image.min.css +1 -1
  73. package/dist/components/input.css +3 -27
  74. package/dist/components/input.min.css +2 -2
  75. package/dist/components/item.css +6 -1
  76. package/dist/components/item.min.css +2 -2
  77. package/dist/components/label.css +21 -2
  78. package/dist/components/label.min.css +2 -2
  79. package/dist/components/list.css +13 -13
  80. package/dist/components/list.min.css +2 -2
  81. package/dist/components/loader.css +282 -282
  82. package/dist/components/loader.min.css +2 -2
  83. package/dist/components/menu.css +13 -7
  84. package/dist/components/menu.min.css +2 -2
  85. package/dist/components/message.css +1 -1
  86. package/dist/components/message.min.css +1 -1
  87. package/dist/components/modal.css +5 -1
  88. package/dist/components/modal.js +3 -3
  89. package/dist/components/modal.min.css +2 -2
  90. package/dist/components/modal.min.js +2 -2
  91. package/dist/components/nag.css +1 -1
  92. package/dist/components/nag.js +3 -3
  93. package/dist/components/nag.min.css +1 -1
  94. package/dist/components/nag.min.js +2 -2
  95. package/dist/components/placeholder.css +1 -1
  96. package/dist/components/placeholder.min.css +1 -1
  97. package/dist/components/popup.css +3 -3
  98. package/dist/components/popup.js +11 -9
  99. package/dist/components/popup.min.css +2 -2
  100. package/dist/components/popup.min.js +2 -2
  101. package/dist/components/progress.css +1 -1
  102. package/dist/components/progress.js +2 -2
  103. package/dist/components/progress.min.css +1 -1
  104. package/dist/components/progress.min.js +2 -2
  105. package/dist/components/rail.css +1 -1
  106. package/dist/components/rail.min.css +1 -1
  107. package/dist/components/rating.css +1 -1
  108. package/dist/components/rating.js +2 -2
  109. package/dist/components/rating.min.css +1 -1
  110. package/dist/components/rating.min.js +2 -2
  111. package/dist/components/reset.css +1 -1
  112. package/dist/components/reset.min.css +1 -1
  113. package/dist/components/reveal.css +1 -1
  114. package/dist/components/reveal.min.css +1 -1
  115. package/dist/components/search.css +26 -1
  116. package/dist/components/search.js +5 -4
  117. package/dist/components/search.min.css +2 -2
  118. package/dist/components/search.min.js +2 -2
  119. package/dist/components/segment.css +159 -33
  120. package/dist/components/segment.min.css +2 -2
  121. package/dist/components/shape.css +1 -1
  122. package/dist/components/shape.js +2 -2
  123. package/dist/components/shape.min.css +1 -1
  124. package/dist/components/shape.min.js +2 -2
  125. package/dist/components/sidebar.css +1 -1
  126. package/dist/components/sidebar.js +2 -32
  127. package/dist/components/sidebar.min.css +1 -1
  128. package/dist/components/sidebar.min.js +2 -2
  129. package/dist/components/site.css +1 -1
  130. package/dist/components/site.js +2 -2
  131. package/dist/components/site.min.css +1 -1
  132. package/dist/components/site.min.js +2 -2
  133. package/dist/components/slider.css +1 -1
  134. package/dist/components/slider.js +126 -26
  135. package/dist/components/slider.min.css +1 -1
  136. package/dist/components/slider.min.js +2 -2
  137. package/dist/components/state.js +2 -2
  138. package/dist/components/state.min.js +2 -2
  139. package/dist/components/statistic.css +1 -1
  140. package/dist/components/statistic.min.css +1 -1
  141. package/dist/components/step.css +1 -1
  142. package/dist/components/step.min.css +1 -1
  143. package/dist/components/sticky.css +1 -1
  144. package/dist/components/sticky.js +2 -2
  145. package/dist/components/sticky.min.css +1 -1
  146. package/dist/components/sticky.min.js +2 -2
  147. package/dist/components/tab.css +1 -1
  148. package/dist/components/tab.js +6 -4
  149. package/dist/components/tab.min.css +1 -1
  150. package/dist/components/tab.min.js +2 -2
  151. package/dist/components/table.css +65 -1
  152. package/dist/components/table.min.css +2 -2
  153. package/dist/components/text.css +1 -1
  154. package/dist/components/text.min.css +1 -1
  155. package/dist/components/toast.css +6 -1
  156. package/dist/components/toast.js +2 -2
  157. package/dist/components/toast.min.css +2 -2
  158. package/dist/components/toast.min.js +2 -2
  159. package/dist/components/transition.css +1 -1
  160. package/dist/components/transition.js +3 -3
  161. package/dist/components/transition.min.css +1 -1
  162. package/dist/components/transition.min.js +2 -2
  163. package/dist/components/visibility.js +2 -2
  164. package/dist/components/visibility.min.js +2 -2
  165. package/dist/semantic.css +2822 -954
  166. package/dist/semantic.js +302 -206
  167. package/dist/semantic.min.css +2 -2
  168. package/dist/semantic.min.js +2 -2
  169. package/package.json +4 -3
  170. package/scripts/nightly-version.js +2 -2
  171. package/src/definitions/behaviors/api.js +9 -8
  172. package/src/definitions/behaviors/form.js +71 -30
  173. package/src/definitions/behaviors/state.js +1 -1
  174. package/src/definitions/behaviors/visibility.js +1 -1
  175. package/src/definitions/collections/form.less +9 -14
  176. package/src/definitions/collections/grid.less +106 -106
  177. package/src/definitions/collections/menu.less +29 -22
  178. package/src/definitions/collections/table.less +66 -0
  179. package/src/definitions/elements/button.less +1 -1
  180. package/src/definitions/elements/container.less +63 -0
  181. package/src/definitions/elements/icon.less +5 -5
  182. package/src/definitions/elements/input.less +2 -2
  183. package/src/definitions/elements/label.less +21 -1
  184. package/src/definitions/elements/list.less +13 -13
  185. package/src/definitions/elements/loader.less +71 -71
  186. package/src/definitions/elements/segment.less +110 -13
  187. package/src/definitions/globals/site.js +1 -1
  188. package/src/definitions/modules/accordion.js +1 -1
  189. package/src/definitions/modules/calendar.js +1 -1
  190. package/src/definitions/modules/calendar.less +40 -11
  191. package/src/definitions/modules/checkbox.js +4 -2
  192. package/src/definitions/modules/checkbox.less +61 -5
  193. package/src/definitions/modules/dimmer.js +1 -1
  194. package/src/definitions/modules/dimmer.less +2 -2
  195. package/src/definitions/modules/dropdown.js +28 -20
  196. package/src/definitions/modules/dropdown.less +124 -21
  197. package/src/definitions/modules/embed.js +1 -1
  198. package/src/definitions/modules/flyout.js +1 -32
  199. package/src/definitions/modules/modal.js +2 -2
  200. package/src/definitions/modules/modal.less +6 -0
  201. package/src/definitions/modules/nag.js +2 -2
  202. package/src/definitions/modules/popup.js +10 -8
  203. package/src/definitions/modules/popup.less +4 -4
  204. package/src/definitions/modules/progress.js +1 -1
  205. package/src/definitions/modules/rating.js +1 -1
  206. package/src/definitions/modules/search.js +4 -3
  207. package/src/definitions/modules/search.less +31 -0
  208. package/src/definitions/modules/shape.js +1 -1
  209. package/src/definitions/modules/sidebar.js +1 -31
  210. package/src/definitions/modules/slider.js +125 -25
  211. package/src/definitions/modules/sticky.js +1 -1
  212. package/src/definitions/modules/tab.js +5 -3
  213. package/src/definitions/modules/toast.js +1 -1
  214. package/src/definitions/modules/toast.less +7 -0
  215. package/src/definitions/modules/transition.js +2 -2
  216. package/src/definitions/views/comment.less +7 -0
  217. package/src/definitions/views/feed.less +238 -32
  218. package/src/definitions/views/item.less +7 -0
  219. package/src/theme.less +1 -1
  220. package/src/themes/amazon/elements/button.variables +5 -1
  221. package/src/themes/bootstrap3/elements/button.variables +5 -1
  222. package/src/themes/chubby/elements/header.variables +6 -1
  223. package/src/themes/default/collections/message.variables +3 -9
  224. package/src/themes/default/collections/table.variables +11 -8
  225. package/src/themes/default/elements/button.variables +8 -10
  226. package/src/themes/default/elements/container.variables +3 -0
  227. package/src/themes/default/elements/emoji.variables +179 -67
  228. package/src/themes/default/elements/flag.variables +1 -1
  229. package/src/themes/default/elements/label.variables +6 -1
  230. package/src/themes/default/elements/segment.variables +8 -0
  231. package/src/themes/default/globals/site.variables +362 -341
  232. package/src/themes/default/globals/variation.variables +24 -1
  233. package/src/themes/default/modules/calendar.variables +11 -0
  234. package/src/themes/default/modules/checkbox.variables +12 -0
  235. package/src/themes/default/modules/dropdown.variables +10 -4
  236. package/src/themes/default/modules/modal.variables +3 -0
  237. package/src/themes/default/modules/popup.variables +1 -1
  238. package/src/themes/default/modules/search.variables +3 -0
  239. package/src/themes/default/modules/toast.variables +6 -5
  240. package/src/themes/default/views/card.variables +4 -12
  241. package/src/themes/default/views/feed.variables +55 -1
  242. package/src/themes/default/views/item.variables +5 -5
  243. package/src/themes/flat/collections/form.variables +4 -4
  244. package/src/themes/flat/globals/site.variables +1 -1
  245. package/src/themes/github/elements/button.variables +5 -1
  246. package/src/themes/joypixels/elements/emoji.variables +182 -70
  247. package/src/themes/material/globals/site.variables +1 -1
  248. package/src/themes/twitter/elements/button.variables +5 -1
  249. package/src/themes/twitter/elements/emoji.variables +178 -66
  250. package/tasks/admin/components/create.js +1 -2
  251. package/tasks/admin/components/init.js +3 -4
  252. package/tasks/admin/components/update.js +2 -3
  253. package/tasks/admin/distributions/create.js +9 -5
  254. package/tasks/admin/distributions/init.js +3 -4
  255. package/tasks/admin/distributions/update.js +2 -3
  256. package/tasks/config/project/install.js +3 -0
  257. package/tasks/config/tasks.js +1 -8
  258. package/tasks/config/user.js +1 -1
  259. package/tasks/docs/build.js +2 -2
  260. package/tasks/docs/metadata.js +1 -1
  261. package/tasks/docs/serve.js +1 -1
  262. package/tasks/install.js +19 -10
  263. package/tasks/watch.js +1 -2
  264. package/types/fomantic-ui-accordion.d.ts +244 -0
  265. package/types/fomantic-ui-api.d.ts +555 -0
  266. package/types/fomantic-ui-calendar.d.ts +766 -0
  267. package/types/fomantic-ui-checkbox.d.ts +332 -0
  268. package/types/fomantic-ui-dimmer.d.ts +408 -0
  269. package/types/fomantic-ui-dropdown.d.ts +1183 -0
  270. package/types/fomantic-ui-embed.d.ts +326 -0
  271. package/types/fomantic-ui-flyout.d.ts +525 -0
  272. package/types/fomantic-ui-form.d.ts +651 -0
  273. package/types/fomantic-ui-modal.d.ts +471 -0
  274. package/types/fomantic-ui-nag.d.ts +270 -0
  275. package/types/fomantic-ui-popup.d.ts +523 -0
  276. package/types/fomantic-ui-progress.d.ts +459 -0
  277. package/types/fomantic-ui-rating.d.ts +187 -0
  278. package/types/fomantic-ui-search.d.ts +496 -0
  279. package/types/fomantic-ui-shape.d.ts +274 -0
  280. package/types/fomantic-ui-sidebar.d.ts +402 -0
  281. package/types/fomantic-ui-slider.d.ts +316 -0
  282. package/types/fomantic-ui-sticky.d.ts +215 -0
  283. package/types/fomantic-ui-tab.d.ts +361 -0
  284. package/types/fomantic-ui-tests.ts +25 -0
  285. package/types/fomantic-ui-toast.d.ts +514 -0
  286. package/types/fomantic-ui-transition.d.ts +355 -0
  287. package/types/fomantic-ui-visibility.d.ts +355 -0
  288. package/types/index.d.ts +63 -0
  289. package/types/tsconfig.json +23 -0
  290. package/types/tslint.json +1 -0
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.3-beta.9+e2d4cc1 - Sidebar
2
+ * # Fomantic-UI 2.9.4-beta.0+09d83ec - Sidebar
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.3-beta.9+e2d4cc1
2
+ * # Fomantic UI - 2.9.4-beta.0+09d83ec
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -8,4 +8,4 @@
8
8
  * https://opensource.org/licenses/MIT
9
9
  *
10
10
  */
11
- !function(D,R,I){"use strict";function V(e){return"function"==typeof e&&"number"!=typeof e.nodeType}R=void 0!==R&&R.Math===Math?R:globalThis,D.fn.sidebar=function(T){var k,e=D(this),w=D(R),A=D(I),F=D("body"),P=D("html"),E=D("head"),O=Date.now(),B=[],H=T,M="string"==typeof H,L=[].slice.call(arguments,1),j=function(e,i){var n;return 0<=[R,I].indexOf(e)?n=F:0===(n=D(i.document).find(e)).length&&(n=i.frameElement?j(e,i.parent):F),n};return e.each(function(){var o,r,e,s,a=D.isPlainObject(T)?D.extend(!0,{},D.fn.sidebar.settings,T):D.extend({},D.fn.sidebar.settings),i=a.selector,l=a.className,n=a.namespace,t=a.regExp,c=a.error,d="."+n,u="module-"+n,f=D(this),h=j(a.context,R),b=h[0]===F[0],g=f.children(i.sidebar),m=(h.children(i.fixed),h.children(i.pusher)),v=this,p=f.data(u),y="",S="",C=!1,x={initialize:function(){x.debug("Initializing sidebar",T),x.create.id(),a.delaySetup?requestAnimationFrame(x.setup.layout):x.setup.layout(),requestAnimationFrame(function(){x.setup.cache()}),x.instantiate()},instantiate:function(){x.verbose("Storing instance of module",x),p=x,f.data(u,x)},create:{id:function(){e=(Math.random().toString(16)+"000000000").slice(2,10),r="."+e,x.verbose("Creating unique id for element",e)}},destroy:function(){x.verbose("Destroying previous module for",f),f.off(d).removeData(u),x.is.ios()&&x.remove.ios(),h.off(r),w.off(r),A.off(r)},event:{clickaway:function(e){var i;a.closable&&(i=0<m.find(e.target).length||m.is(e.target),e=h.is(e.target),i&&(x.verbose("User clicked on dimmed page"),x.hide()),e&&(x.verbose("User clicked on dimmable context (scaled out page)"),x.hide()))},touch:function(e){},containScroll:function(e){v.scrollTop<=0&&(v.scrollTop=1),v.scrollTop+v.offsetHeight>=v.scrollHeight&&(v.scrollTop=v.scrollHeight-v.offsetHeight-1)},scroll:function(e){0===D(e.target).closest(i.sidebar).length&&e.preventDefault()}},bind:{clickaway:function(){x.verbose("Adding clickaway events to context",h),h.on("click"+r,x.event.clickaway).on("touchend"+r,x.event.clickaway)},scrollLock:function(){a.scrollLock&&(x.debug("Disabling page scroll"),(C=x.has.scrollbar())&&(x.save.bodyMargin(),x.set.bodyMargin()),h.addClass(l.locked)),x.verbose("Adding events to contain sidebar scroll"),A.on("touchmove"+r,x.event.touch),f.on("scroll"+d,x.event.containScroll)}},unbind:{clickaway:function(){x.verbose("Removing clickaway events from context",h),h.off(r)},scrollLock:function(){x.verbose("Removing scroll lock from page"),C&&x.restore.bodyMargin(),h.removeClass(l.locked),A.off(r),f.off("scroll"+d)}},add:{inlineCSS:function(){var e=x.cache.width||f.outerWidth(),i=x.cache.height||f.outerHeight(),n=x.is.rtl(),t=x.get.direction(),i={left:e,right:-e,top:i,bottom:-i};n&&(x.verbose("RTL detected, flipping widths"),i.left=-e,i.right=e),n="<style>","left"===t||"right"===t?(x.debug("Adding CSS rules for animation distance",e),n+=" .ui.visible."+t+".sidebar ~ .fixed, .ui.visible."+t+".sidebar ~ .pusher { transform: translate3d("+i[t]+"px, 0, 0); }"):"top"!==t&&"bottom"!==t||(n+=" .ui.visible."+t+".sidebar ~ .fixed, .ui.visible."+t+".sidebar ~ .pusher { transform: translate3d(0, "+i[t]+"px, 0); }"),x.is.ie()&&("left"===t||"right"===t?(x.debug("Adding CSS rules for animation distance",e),n+=" body.pushable > .ui.visible."+t+".sidebar ~ .pusher::after { transform: translate3d("+i[t]+"px, 0, 0); }"):"top"!==t&&"bottom"!==t||(n+=" body.pushable > .ui.visible."+t+".sidebar ~ .pusher::after { transform: translate3d(0, "+i[t]+"px, 0); }"),n+=" body.pushable > .ui.visible.left.sidebar ~ .ui.visible.right.sidebar ~ .pusher::after, body.pushable > .ui.visible.right.sidebar ~ .ui.visible.left.sidebar ~ .pusher::after { transform: translate3d(0, 0, 0); }"),o=D(n+="</style>").appendTo(E),x.debug("Adding sizing css to head",o)}},refresh:function(){x.verbose("Refreshing selector cache"),h=j(a.context,R),x.refreshSidebars(),m=h.children(i.pusher),h.children(i.fixed),x.clear.cache()},refreshSidebars:function(){x.verbose("Refreshing other sidebars"),g=h.children(i.sidebar)},repaint:function(){x.verbose("Forcing repaint event"),v.style.display="none";v.offsetHeight;v.scrollTop=v.scrollTop,v.style.display=""},setup:{cache:function(){x.cache={width:f.outerWidth(),height:f.outerHeight()}},layout:function(){0===h.children(i.pusher).length&&(x.debug("Adding wrapper element for sidebar"),x.error(c.pusher),m=D('<div class="pusher" />'),h.children().not(i.omitted).not(g).wrapAll(m),x.refresh()),0!==f.nextAll(i.pusher).length&&f.nextAll(i.pusher)[0]===m[0]||(x.debug("Moved sidebar to correct parent element"),x.error(c.movedSidebar,v),f.detach().prependTo(h),x.refresh()),x.clear.cache(),x.set.pushable(),x.set.direction()}},attachEvents:function(e,i){var n=D(e);i=V(x[i])?x[i]:x.toggle,0<n.length?(x.debug("Attaching sidebar events to element",e,i),n.on("click"+d,i)):x.error(c.notFound,e)},can:{leftBodyScrollbar:function(){return void 0===x.cache.leftBodyScrollbar&&(x.cache.leftBodyScrollbar=x.is.rtl()&&(x.is.iframe&&!x.is.firefox()||x.is.safari()||x.is.edge()||x.is.ie())),x.cache.leftBodyScrollbar}},save:{bodyMargin:function(){y=h.css((b?"margin-":"padding-")+(x.can.leftBodyScrollbar()?"left":"right"));var e=parseInt(y.replace(/[^\d.]/g,""),10),i=b?R.innerWidth-I.documentElement.clientWidth:h[0].offsetWidth-h[0].clientWidth;S=e+i}},show:function(e){if(e=V(e)?e:function(){},x.is.hidden())if(!1===a.onShow.call(v))x.verbose("Show callback returned false cancelling show");else{if(a.overlay&&(x.error(c.overlay),a.transition="overlay"),x.refresh(),x.othersActive())if(x.debug("Other sidebars currently visible"),a.exclusive){if("overlay"!==a.transition)return void x.hideOthers(x.show);x.hideOthers()}else a.transition="overlay";x.set.dimmerStyles(),x.pushPage(function(){e.call(v),a.onVisible.call(v)}),a.onChange.call(v)}else x.debug("Sidebar is already visible")},hide:function(e){e=V(e)?e:function(){},(x.is.visible()||x.is.animating())&&!1!==a.onHide.call(v)&&(x.debug("Hiding sidebar",e),x.refreshSidebars(),x.pullPage(function(){e.call(v),a.onHidden.call(v)}),a.onChange.call(v))},othersAnimating:function(){return 0<g.not(f).filter("."+l.animating).length},othersVisible:function(){return 0<g.not(f).filter("."+l.visible).length},othersActive:function(){return x.othersVisible()||x.othersAnimating()},hideOthers:function(e){var i=g.not(f).filter("."+l.visible),n=i.length,t=0;e=e||function(){},i.sidebar("hide",function(){++t===n&&e()})},toggle:function(){x.verbose("Determining toggled direction"),x.is.hidden()?x.show():x.hide()},pushPage:function(i){var e,n,t=x.get.transition(),o="overlay"===t||x.othersActive()?f:m;i=V(i)?i:function(){},a.returnScroll&&(s=(b?w:h).scrollTop()),"scale down"===a.transition&&x.scrollToTop(),x.bind.scrollLock(),x.set.transition(t),x.repaint(),t=function(){x.bind.clickaway(),x.add.inlineCSS(),x.set.animating(),x.set.visible()},e=function(){x.set.dimmed()},n=function(e){e.target===o[0]&&(o.off("transitionend"+r,n),x.remove.animating(),i.call(v))},o.off("transitionend"+r),o.on("transitionend"+r,n),requestAnimationFrame(t),a.dimPage&&!x.othersVisible()&&requestAnimationFrame(e)},pullPage:function(i){var e,n,t=x.get.transition(),o="overlay"===t||x.othersActive()?f:m;i=V(i)?i:function(){},x.verbose("Removing context push state",x.get.direction()),x.unbind.clickaway(),x.unbind.scrollLock(),e=function(){x.set.transition(t),x.set.animating(),a.dimPage&&!x.othersVisible()&&x.set.closing(),x.remove.visible()},n=function(e){e.target===o[0]&&(o.off("transitionend"+r,n),x.remove.animating(),x.remove.closing(),x.remove.transition(),x.remove.inlineCSS(),"scale down"!==t&&!a.returnScroll||x.scrollBack(),a.dimPage&&!x.othersVisible()&&m.removeClass(l.dimmed),i.call(v))},o.off("transitionend"+r),o.on("transitionend"+r,n),requestAnimationFrame(e)},scrollToTop:function(){x.verbose("Scrolling to top of page to avoid animation issues"),f.scrollTop(0),(b?w:h)[0].scrollTo(0,0)},scrollBack:function(){x.verbose("Scrolling back to original page position"),(b?w:h)[0].scrollTo(0,s)},clear:{cache:function(){x.verbose("Clearing cached dimensions"),x.cache={}}},set:{bodyMargin:function(){var n=x.can.leftBodyScrollbar()?"left":"right";h.css((b?"margin-":"padding-")+n,S+"px"),h.find(i.bodyFixed.replace("right",n)).each(function(){var e=D(this),i="fixed"===e.css("position")?"padding-"+n:n;e.css(i,"calc("+e.css(i)+" + "+S+"px)")})},dimmerStyles:function(){a.blurring?m.addClass(l.blurring):m.removeClass(l.blurring)},ios:function(){P.addClass(l.ios)},pushed:function(){h.addClass(l.pushed)},pushable:function(){h.addClass(l.pushable)},dimmed:function(){m.addClass(l.dimmed)},active:function(){f.addClass(l.active)},animating:function(){f.addClass(l.animating)},closing:function(){m.addClass(l.closing)},transition:function(e){e=e||x.get.transition(),f.addClass(e)},direction:function(e){e=e||x.get.direction(),f.addClass(l[e])},visible:function(){f.addClass(l.visible)},overlay:function(){f.addClass(l.overlay)}},remove:{inlineCSS:function(){x.debug("Removing inline css styles",o),o&&0<o.length&&o.remove()},ios:function(){P.removeClass(l.ios)},pushed:function(){h.removeClass(l.pushed)},pushable:function(){h.removeClass(l.pushable)},active:function(){f.removeClass(l.active)},animating:function(){f.removeClass(l.animating)},closing:function(){m.removeClass(l.closing)},transition:function(e){e=e||x.get.transition(),f.removeClass(e)},direction:function(e){e=e||x.get.direction(),f.removeClass(l[e])},visible:function(){f.removeClass(l.visible)},overlay:function(){f.removeClass(l.overlay)}},restore:{bodyMargin:function(){var n=x.can.leftBodyScrollbar()?"left":"right";h.css((b?"margin-":"padding-")+n,y),h.find(i.bodyFixed.replace("right",n)).each(function(){var e=D(this),i="fixed"===e.css("position")?"padding-"+n:n;e.css(i,"")})}},get:{direction:function(){return f.hasClass(l.top)?l.top:f.hasClass(l.right)?l.right:f.hasClass(l.bottom)?l.bottom:l.left},transition:function(){var e=x.get.direction(),e=x.is.mobile()?"auto"===a.mobileTransition?a.defaultTransition.mobile[e]:a.mobileTransition:"auto"===a.transition?a.defaultTransition.computer[e]:a.transition;return x.verbose("Determined transition",e),e}},has:{scrollbar:function(){return b||"hidden"!==h.css("overflow-y")}},is:{safari:function(){return void 0===x.cache.isSafari&&(x.cache.isSafari=/constructor/i.test(R.HTMLElement)||!!R.ApplePaySession),x.cache.isSafari},edge:function(){return void 0===x.cache.isEdge&&(x.cache.isEdge=!!R.setImmediate&&!x.is.ie()),x.cache.isEdge},firefox:function(){return void 0===x.cache.isFirefox&&(x.cache.isFirefox=!!R.InstallTrigger),x.cache.isFirefox},iframe:function(){return!(self===top)},ie:function(){var e,i;return void 0===x.cache.isIE&&(e=!R.ActiveXObject&&"ActiveXObject"in R,i="ActiveXObject"in R,x.cache.isIE=e||i),x.cache.isIE},ios:function(){var e=navigator.userAgent,i=e.match(t.ios),n=e.match(t.mobileChrome);return!(!i||n)&&(x.verbose("Browser was found to be iOS",e),!0)},mobile:function(){var e=navigator.userAgent;return e.match(t.mobile)?(x.verbose("Browser was found to be mobile",e),!0):(x.verbose("Browser is not mobile, using regular transition",e),!1)},hidden:function(){return!x.is.visible()},visible:function(){return f.hasClass(l.visible)},open:function(){return x.is.visible()},closed:function(){return x.is.hidden()},vertical:function(){return f.hasClass(l.top)},animating:function(){return h.hasClass(l.animating)},rtl:function(){return void 0===x.cache.isRTL&&(x.cache.isRTL="rtl"===f.attr("dir")||"rtl"===f.css("direction")||"rtl"===F.attr("dir")||"rtl"===F.css("direction")||"rtl"===h.attr("dir")||"rtl"===h.css("direction")),x.cache.isRTL}},setting:function(e,i){if(x.debug("Changing setting",e,i),D.isPlainObject(e))D.extend(!0,a,e);else{if(void 0===i)return a[e];D.isPlainObject(a[e])?D.extend(!0,a[e],i):a[e]=i}},internal:function(e,i){if(D.isPlainObject(e))D.extend(!0,x,e);else{if(void 0===i)return x[e];x[e]=i}},debug:function(){!a.silent&&a.debug&&(a.performance?x.performance.log(arguments):(x.debug=Function.prototype.bind.call(console.info,console,a.name+":"),x.debug.apply(console,arguments)))},verbose:function(){!a.silent&&a.verbose&&a.debug&&(a.performance?x.performance.log(arguments):(x.verbose=Function.prototype.bind.call(console.info,console,a.name+":"),x.verbose.apply(console,arguments)))},error:function(){a.silent||(x.error=Function.prototype.bind.call(console.error,console,a.name+":"),x.error.apply(console,arguments))},performance:{log:function(e){var i,n;a.performance&&(n=(i=Date.now())-(O||i),O=i,B.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:v,"Execution Time":n})),clearTimeout(x.performance.timer),x.performance.timer=setTimeout(x.performance.display,500)},display:function(){var e=a.name+":",n=0;O=!1,clearTimeout(x.performance.timer),D.each(B,function(e,i){n+=i["Execution Time"]}),e+=" "+n+"ms",0<B.length&&(console.groupCollapsed(e),console.table?console.table(B):D.each(B,function(e,i){console.log(i.Name+": "+i["Execution Time"]+"ms")}),console.groupEnd()),B=[]}},invoke:function(t,e,i){var o,r,n,s=p;return e=e||L,i=i||v,"string"==typeof t&&void 0!==s&&(t=t.split(/[ .]/),o=t.length-1,D.each(t,function(e,i){var n=e!==o?i+t[e+1].charAt(0).toUpperCase()+t[e+1].slice(1):t;if(D.isPlainObject(s[n])&&e!==o)s=s[n];else{if(void 0!==s[n])return r=s[n],!1;{if(!D.isPlainObject(s[i])||e===o)return void 0!==s[i]?r=s[i]:x.error(c.method,t),!1;s=s[i]}}})),V(r)?n=r.apply(i,e):void 0!==r&&(n=r),Array.isArray(k)?k.push(n):void 0!==k?k=[k,n]:void 0!==n&&(k=n),r}};M?(void 0===p&&x.initialize(),x.invoke(H)):(void 0!==p&&x.invoke("destroy"),x.initialize())}),void 0!==k?k:this},D.fn.sidebar.settings={name:"Sidebar",namespace:"sidebar",silent:!1,debug:!1,verbose:!1,performance:!0,transition:"auto",mobileTransition:"auto",defaultTransition:{computer:{left:"uncover",right:"uncover",top:"overlay",bottom:"overlay"},mobile:{left:"uncover",right:"uncover",top:"overlay",bottom:"overlay"}},context:"body",exclusive:!1,closable:!0,dimPage:!0,scrollLock:!1,returnScroll:!1,delaySetup:!1,onChange:function(){},onShow:function(){},onHide:function(){},onHidden:function(){},onVisible:function(){},className:{active:"active",animating:"animating",blurring:"blurring",closing:"closing",dimmed:"dimmed",ios:"ios",locked:"locked",pushable:"pushable",pushed:"pushed",right:"right",top:"top",left:"left",bottom:"bottom",visible:"visible"},selector:{bodyFixed:"> .ui.fixed.menu, > .ui.right.toast-container, > .ui.right.sidebar, > .ui.fixed.nag, > .ui.fixed.nag > .close",fixed:".fixed",omitted:"script, link, style, .ui.modal, .ui.dimmer, .ui.nag, .ui.fixed",pusher:".pusher",sidebar:".ui.sidebar"},regExp:{ios:/(iPad|iPhone|iPod)/g,mobileChrome:/(CriOS)/g,mobile:/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/g},error:{method:"The method you called is not defined.",pusher:"Had to add pusher element. For optimal performance make sure body content is inside a pusher element",movedSidebar:"Had to move sidebar. For optimal performance make sure sidebar and pusher are direct children of your body tag",overlay:"The overlay setting is no longer supported, use animation: overlay",notFound:"There were no elements that matched the specified selector"}}}(jQuery,window,document);
11
+ !function(j,D,R){"use strict";function I(e){return"function"==typeof e&&"number"!=typeof e.nodeType}D=void 0!==D&&D.Math===Math?D:globalThis,j.fn.sidebar=function(T){var k,e=j(this),w=j(D),A=j(R),F=j("body"),E=(j("html"),j("head")),O=Date.now(),P=[],H=T,M="string"==typeof H,B=[].slice.call(arguments,1),L=function(e,i){var n;return 0<=[D,R].indexOf(e)?n=F:0===(n=j(i.document).find(e)).length&&(n=i.frameElement?L(e,i.parent):F),n};return e.each(function(){var o,r,e,s,a=j.isPlainObject(T)?j.extend(!0,{},j.fn.sidebar.settings,T):j.extend({},j.fn.sidebar.settings),i=a.selector,l=a.className,n=a.namespace,t=a.regExp,c=a.error,d="."+n,u="module-"+n,f=j(this),h=L(a.context,D),b=h[0]===F[0],g=f.children(i.sidebar),m=(h.children(i.fixed),h.children(i.pusher)),v=this,p=f.data(u),y="",S="",x=!1,C={initialize:function(){C.debug("Initializing sidebar",T),C.create.id(),a.delaySetup?requestAnimationFrame(C.setup.layout):C.setup.layout(),requestAnimationFrame(function(){C.setup.cache()}),C.instantiate()},instantiate:function(){C.verbose("Storing instance of module",C),p=C,f.data(u,C)},create:{id:function(){e=(Math.random().toString(16)+"000000000").slice(2,10),r="."+e,C.verbose("Creating unique id for element",e)}},destroy:function(){C.verbose("Destroying previous module for",f),f.off(d).removeData(u),h.off(r),w.off(r),A.off(r)},event:{clickaway:function(e){var i;a.closable&&(i=0<m.find(e.target).length||m.is(e.target),e=h.is(e.target),i&&(C.verbose("User clicked on dimmed page"),C.hide()),e&&(C.verbose("User clicked on dimmable context (scaled out page)"),C.hide()))},touch:function(e){},containScroll:function(e){v.scrollTop<=0&&(v.scrollTop=1),v.scrollTop+v.offsetHeight>=v.scrollHeight&&(v.scrollTop=v.scrollHeight-v.offsetHeight-1)},scroll:function(e){0===j(e.target).closest(i.sidebar).length&&e.preventDefault()}},bind:{clickaway:function(){C.verbose("Adding clickaway events to context",h),h.on("click"+r,C.event.clickaway).on("touchend"+r,C.event.clickaway)},scrollLock:function(){a.scrollLock&&(C.debug("Disabling page scroll"),(x=C.has.scrollbar())&&(C.save.bodyMargin(),C.set.bodyMargin()),h.addClass(l.locked)),C.verbose("Adding events to contain sidebar scroll"),A.on("touchmove"+r,C.event.touch),f.on("scroll"+d,C.event.containScroll)}},unbind:{clickaway:function(){C.verbose("Removing clickaway events from context",h),h.off(r)},scrollLock:function(){C.verbose("Removing scroll lock from page"),x&&C.restore.bodyMargin(),h.removeClass(l.locked),A.off(r),f.off("scroll"+d)}},add:{inlineCSS:function(){var e=C.cache.width||f.outerWidth(),i=C.cache.height||f.outerHeight(),n=C.is.rtl(),t=C.get.direction(),i={left:e,right:-e,top:i,bottom:-i};n&&(C.verbose("RTL detected, flipping widths"),i.left=-e,i.right=e),n="<style>","left"===t||"right"===t?(C.debug("Adding CSS rules for animation distance",e),n+=" .ui.visible."+t+".sidebar ~ .fixed, .ui.visible."+t+".sidebar ~ .pusher { transform: translate3d("+i[t]+"px, 0, 0); }"):"top"!==t&&"bottom"!==t||(n+=" .ui.visible."+t+".sidebar ~ .fixed, .ui.visible."+t+".sidebar ~ .pusher { transform: translate3d(0, "+i[t]+"px, 0); }"),C.is.ie()&&("left"===t||"right"===t?(C.debug("Adding CSS rules for animation distance",e),n+=" body.pushable > .ui.visible."+t+".sidebar ~ .pusher::after { transform: translate3d("+i[t]+"px, 0, 0); }"):"top"!==t&&"bottom"!==t||(n+=" body.pushable > .ui.visible."+t+".sidebar ~ .pusher::after { transform: translate3d(0, "+i[t]+"px, 0); }"),n+=" body.pushable > .ui.visible.left.sidebar ~ .ui.visible.right.sidebar ~ .pusher::after, body.pushable > .ui.visible.right.sidebar ~ .ui.visible.left.sidebar ~ .pusher::after { transform: translate3d(0, 0, 0); }"),o=j(n+="</style>").appendTo(E),C.debug("Adding sizing css to head",o)}},refresh:function(){C.verbose("Refreshing selector cache"),h=L(a.context,D),C.refreshSidebars(),m=h.children(i.pusher),h.children(i.fixed),C.clear.cache()},refreshSidebars:function(){C.verbose("Refreshing other sidebars"),g=h.children(i.sidebar)},repaint:function(){C.verbose("Forcing repaint event"),v.style.display="none";v.offsetHeight;v.scrollTop=v.scrollTop,v.style.display=""},setup:{cache:function(){C.cache={width:f.outerWidth(),height:f.outerHeight()}},layout:function(){0===h.children(i.pusher).length&&(C.debug("Adding wrapper element for sidebar"),C.error(c.pusher),m=j('<div class="pusher" />'),h.children().not(i.omitted).not(g).wrapAll(m),C.refresh()),0!==f.nextAll(i.pusher).length&&f.nextAll(i.pusher)[0]===m[0]||(C.debug("Moved sidebar to correct parent element"),C.error(c.movedSidebar,v),f.detach().prependTo(h),C.refresh()),C.clear.cache(),C.set.pushable(),C.set.direction()}},attachEvents:function(e,i){var n=j(e);i=I(C[i])?C[i]:C.toggle,0<n.length?(C.debug("Attaching sidebar events to element",e,i),n.on("click"+d,i)):C.error(c.notFound,e)},can:{leftBodyScrollbar:function(){return void 0===C.cache.leftBodyScrollbar&&(C.cache.leftBodyScrollbar=C.is.rtl()&&(C.is.iframe&&!C.is.firefox()||C.is.safari()||C.is.edge()||C.is.ie())),C.cache.leftBodyScrollbar}},save:{bodyMargin:function(){y=h.css((b?"margin-":"padding-")+(C.can.leftBodyScrollbar()?"left":"right"));var e=parseInt(y.replace(/[^\d.]/g,""),10),i=b?D.innerWidth-R.documentElement.clientWidth:h[0].offsetWidth-h[0].clientWidth;S=e+i}},show:function(e){if(e=I(e)?e:function(){},C.is.hidden())if(!1===a.onShow.call(v))C.verbose("Show callback returned false cancelling show");else{if(a.overlay&&(C.error(c.overlay),a.transition="overlay"),C.refresh(),C.othersActive())if(C.debug("Other sidebars currently visible"),a.exclusive){if("overlay"!==a.transition)return void C.hideOthers(C.show);C.hideOthers()}else a.transition="overlay";C.set.dimmerStyles(),C.pushPage(function(){e.call(v),a.onVisible.call(v)}),a.onChange.call(v)}else C.debug("Sidebar is already visible")},hide:function(e){e=I(e)?e:function(){},(C.is.visible()||C.is.animating())&&!1!==a.onHide.call(v)&&(C.debug("Hiding sidebar",e),C.refreshSidebars(),C.pullPage(function(){e.call(v),a.onHidden.call(v)}),a.onChange.call(v))},othersAnimating:function(){return 0<g.not(f).filter("."+l.animating).length},othersVisible:function(){return 0<g.not(f).filter("."+l.visible).length},othersActive:function(){return C.othersVisible()||C.othersAnimating()},hideOthers:function(e){var i=g.not(f).filter("."+l.visible),n=i.length,t=0;e=e||function(){},i.sidebar("hide",function(){++t===n&&e()})},toggle:function(){C.verbose("Determining toggled direction"),C.is.hidden()?C.show():C.hide()},pushPage:function(i){var e,n,t=C.get.transition(),o="overlay"===t||C.othersActive()?f:m;i=I(i)?i:function(){},a.returnScroll&&(s=(b?w:h).scrollTop()),"scale down"===a.transition&&C.scrollToTop(),C.bind.scrollLock(),C.set.transition(t),C.repaint(),t=function(){C.bind.clickaway(),C.add.inlineCSS(),C.set.animating(),C.set.visible()},e=function(){C.set.dimmed()},n=function(e){e.target===o[0]&&(o.off("transitionend"+r,n),C.remove.animating(),i.call(v))},o.off("transitionend"+r),o.on("transitionend"+r,n),requestAnimationFrame(t),a.dimPage&&!C.othersVisible()&&requestAnimationFrame(e)},pullPage:function(i){var e,n,t=C.get.transition(),o="overlay"===t||C.othersActive()?f:m;i=I(i)?i:function(){},C.verbose("Removing context push state",C.get.direction()),C.unbind.clickaway(),C.unbind.scrollLock(),e=function(){C.set.transition(t),C.set.animating(),a.dimPage&&!C.othersVisible()&&C.set.closing(),C.remove.visible()},n=function(e){e.target===o[0]&&(o.off("transitionend"+r,n),C.remove.animating(),C.remove.closing(),C.remove.transition(),C.remove.inlineCSS(),"scale down"!==t&&!a.returnScroll||C.scrollBack(),a.dimPage&&!C.othersVisible()&&m.removeClass(l.dimmed),i.call(v))},o.off("transitionend"+r),o.on("transitionend"+r,n),requestAnimationFrame(e)},scrollToTop:function(){C.verbose("Scrolling to top of page to avoid animation issues"),f.scrollTop(0),(b?w:h)[0].scrollTo(0,0)},scrollBack:function(){C.verbose("Scrolling back to original page position"),(b?w:h)[0].scrollTo(0,s)},clear:{cache:function(){C.verbose("Clearing cached dimensions"),C.cache={}}},set:{bodyMargin:function(){var n=C.can.leftBodyScrollbar()?"left":"right";h.css((b?"margin-":"padding-")+n,S+"px"),h.find(i.bodyFixed.replace("right",n)).each(function(){var e=j(this),i="fixed"===e.css("position")?"padding-"+n:n;e.css(i,"calc("+e.css(i)+" + "+S+"px)")})},dimmerStyles:function(){a.blurring?m.addClass(l.blurring):m.removeClass(l.blurring)},pushed:function(){h.addClass(l.pushed)},pushable:function(){h.addClass(l.pushable)},dimmed:function(){m.addClass(l.dimmed)},active:function(){f.addClass(l.active)},animating:function(){f.addClass(l.animating)},closing:function(){m.addClass(l.closing)},transition:function(e){e=e||C.get.transition(),f.addClass(e)},direction:function(e){e=e||C.get.direction(),f.addClass(l[e])},visible:function(){f.addClass(l.visible)},overlay:function(){f.addClass(l.overlay)}},remove:{inlineCSS:function(){C.debug("Removing inline css styles",o),o&&0<o.length&&o.remove()},pushed:function(){h.removeClass(l.pushed)},pushable:function(){h.removeClass(l.pushable)},active:function(){f.removeClass(l.active)},animating:function(){f.removeClass(l.animating)},closing:function(){m.removeClass(l.closing)},transition:function(e){e=e||C.get.transition(),f.removeClass(e)},direction:function(e){e=e||C.get.direction(),f.removeClass(l[e])},visible:function(){f.removeClass(l.visible)},overlay:function(){f.removeClass(l.overlay)}},restore:{bodyMargin:function(){var n=C.can.leftBodyScrollbar()?"left":"right";h.css((b?"margin-":"padding-")+n,y),h.find(i.bodyFixed.replace("right",n)).each(function(){var e=j(this),i="fixed"===e.css("position")?"padding-"+n:n;e.css(i,"")})}},get:{direction:function(){return f.hasClass(l.top)?l.top:f.hasClass(l.right)?l.right:f.hasClass(l.bottom)?l.bottom:l.left},transition:function(){var e=C.get.direction(),e=C.is.mobile()?"auto"===a.mobileTransition?a.defaultTransition.mobile[e]:a.mobileTransition:"auto"===a.transition?a.defaultTransition.computer[e]:a.transition;return C.verbose("Determined transition",e),e}},has:{scrollbar:function(){return b||"hidden"!==h.css("overflow-y")}},is:{safari:function(){return void 0===C.cache.isSafari&&(C.cache.isSafari=/constructor/i.test(D.HTMLElement)||!!D.ApplePaySession),C.cache.isSafari},edge:function(){return void 0===C.cache.isEdge&&(C.cache.isEdge=!!D.setImmediate&&!C.is.ie()),C.cache.isEdge},firefox:function(){return void 0===C.cache.isFirefox&&(C.cache.isFirefox=!!D.InstallTrigger),C.cache.isFirefox},iframe:function(){return!(self===top)},ie:function(){var e,i;return void 0===C.cache.isIE&&(e=!D.ActiveXObject&&"ActiveXObject"in D,i="ActiveXObject"in D,C.cache.isIE=e||i),C.cache.isIE},mobile:function(){var e=navigator.userAgent;return e.match(t.mobile)?(C.verbose("Browser was found to be mobile",e),!0):(C.verbose("Browser is not mobile, using regular transition",e),!1)},hidden:function(){return!C.is.visible()},visible:function(){return f.hasClass(l.visible)},open:function(){return C.is.visible()},closed:function(){return C.is.hidden()},vertical:function(){return f.hasClass(l.top)},animating:function(){return h.hasClass(l.animating)},rtl:function(){return void 0===C.cache.isRTL&&(C.cache.isRTL="rtl"===f.attr("dir")||"rtl"===f.css("direction")||"rtl"===F.attr("dir")||"rtl"===F.css("direction")||"rtl"===h.attr("dir")||"rtl"===h.css("direction")),C.cache.isRTL}},setting:function(e,i){if(C.debug("Changing setting",e,i),j.isPlainObject(e))j.extend(!0,a,e);else{if(void 0===i)return a[e];j.isPlainObject(a[e])?j.extend(!0,a[e],i):a[e]=i}},internal:function(e,i){if(j.isPlainObject(e))j.extend(!0,C,e);else{if(void 0===i)return C[e];C[e]=i}},debug:function(){!a.silent&&a.debug&&(a.performance?C.performance.log(arguments):(C.debug=Function.prototype.bind.call(console.info,console,a.name+":"),C.debug.apply(console,arguments)))},verbose:function(){!a.silent&&a.verbose&&a.debug&&(a.performance?C.performance.log(arguments):(C.verbose=Function.prototype.bind.call(console.info,console,a.name+":"),C.verbose.apply(console,arguments)))},error:function(){a.silent||(C.error=Function.prototype.bind.call(console.error,console,a.name+":"),C.error.apply(console,arguments))},performance:{log:function(e){var i,n;a.performance&&(n=(i=Date.now())-(O||i),O=i,P.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:v,"Execution Time":n})),clearTimeout(C.performance.timer),C.performance.timer=setTimeout(function(){C.performance.display()},500)},display:function(){var e=a.name+":",n=0;O=!1,clearTimeout(C.performance.timer),j.each(P,function(e,i){n+=i["Execution Time"]}),e+=" "+n+"ms",0<P.length&&(console.groupCollapsed(e),console.table?console.table(P):j.each(P,function(e,i){console.log(i.Name+": "+i["Execution Time"]+"ms")}),console.groupEnd()),P=[]}},invoke:function(t,e,i){var o,r,n,s=p;return e=e||B,i=i||v,"string"==typeof t&&void 0!==s&&(t=t.split(/[ .]/),o=t.length-1,j.each(t,function(e,i){var n=e!==o?i+t[e+1].charAt(0).toUpperCase()+t[e+1].slice(1):t;if(j.isPlainObject(s[n])&&e!==o)s=s[n];else{if(void 0!==s[n])return r=s[n],!1;{if(!j.isPlainObject(s[i])||e===o)return void 0!==s[i]?r=s[i]:C.error(c.method,t),!1;s=s[i]}}})),I(r)?n=r.apply(i,e):void 0!==r&&(n=r),Array.isArray(k)?k.push(n):void 0!==k?k=[k,n]:void 0!==n&&(k=n),r}};M?(void 0===p&&C.initialize(),C.invoke(H)):(void 0!==p&&C.invoke("destroy"),C.initialize())}),void 0!==k?k:this},j.fn.sidebar.settings={name:"Sidebar",namespace:"sidebar",silent:!1,debug:!1,verbose:!1,performance:!0,transition:"auto",mobileTransition:"auto",defaultTransition:{computer:{left:"uncover",right:"uncover",top:"overlay",bottom:"overlay"},mobile:{left:"uncover",right:"uncover",top:"overlay",bottom:"overlay"}},context:"body",exclusive:!1,closable:!0,dimPage:!0,scrollLock:!1,returnScroll:!1,delaySetup:!1,onChange:function(){},onShow:function(){},onHide:function(){},onHidden:function(){},onVisible:function(){},className:{active:"active",animating:"animating",blurring:"blurring",closing:"closing",dimmed:"dimmed",locked:"locked",pushable:"pushable",pushed:"pushed",right:"right",top:"top",left:"left",bottom:"bottom",visible:"visible"},selector:{bodyFixed:"> .ui.fixed.menu, > .ui.right.toast-container, > .ui.right.sidebar, > .ui.fixed.nag, > .ui.fixed.nag > .close",fixed:".fixed",omitted:"script, link, style, .ui.modal, .ui.dimmer, .ui.nag, .ui.fixed",pusher:".pusher",sidebar:".ui.sidebar"},regExp:{mobile:/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/g},error:{method:"The method you called is not defined.",pusher:"Had to add pusher element. For optimal performance make sure body content is inside a pusher element",movedSidebar:"Had to move sidebar. For optimal performance make sure sidebar and pusher are direct children of your body tag",overlay:"The overlay setting is no longer supported, use animation: overlay",notFound:"There were no elements that matched the specified selector"}}}(jQuery,window,document);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.3-beta.9+e2d4cc1 - Site
2
+ * # Fomantic-UI 2.9.4-beta.0+09d83ec - Site
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.3-beta.9+e2d4cc1 - Site
2
+ * # Fomantic-UI 2.9.4-beta.0+09d83ec - Site
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -292,7 +292,7 @@
292
292
  });
293
293
  }
294
294
  clearTimeout(module.performance.timer);
295
- module.performance.timer = setTimeout(module.performance.display, 500);
295
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
296
296
  },
297
297
  display: function () {
298
298
  var
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.3-beta.9+e2d4cc1 - Site
2
+ * # Fomantic-UI 2.9.4-beta.0+09d83ec - Site
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.3-beta.9+e2d4cc1
2
+ * # Fomantic UI - 2.9.4-beta.0+09d83ec
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -8,4 +8,4 @@
8
8
  * https://opensource.org/licenses/MIT
9
9
  *
10
10
  */
11
- !function(b,p,v){"use strict";p=void 0!==p&&p.Math===Math?p:globalThis,b.fn.site=function(e){var a,t=Date.now(),i=[],n=e,o="string"==typeof n,l=[].slice.call(arguments,1),r=b.isPlainObject(e)?b.extend(!0,{},b.site.settings,e):b.extend({},b.site.settings),s=r.namespace,u=r.error,c="module-"+s,d=b(v),f=this,g=d.data(c),m={initialize:function(){m.instantiate()},instantiate:function(){m.verbose("Storing instance of site",m),g=m,d.data(c,m)},normalize:function(){},fix:{consoleClear:function(){m.debug("Disabling programmatic console clearing"),p.console.clear=function(){}}},moduleExists:function(e){return void 0!==b.fn[e]&&void 0!==b.fn[e].settings},enabled:{modules:function(e){var o=[];return e=e||r.modules,b.each(e,function(e,n){m.moduleExists(n)&&o.push(n)}),o}},disabled:{modules:function(e){var o=[];return e=e||r.modules,b.each(e,function(e,n){m.moduleExists(n)||o.push(n)}),o}},change:{setting:function(t,i,e,s){e="string"==typeof e?"all"===e?r.modules:[e]:e||r.modules,s=void 0===s||s,b.each(e,function(e,n){var o=!m.moduleExists(n)||(b.fn[n].settings.namespace||!1);m.moduleExists(n)&&(m.verbose("Changing default setting",t,i,n),b.fn[n].settings[t]=i,s&&o&&0<(o=b(":data(module-"+o+")")).length&&(m.verbose("Modifying existing settings",o),o[n]("setting",t,i)))})},settings:function(t,e,i){e="string"==typeof e?[e]:e||r.modules,i=void 0===i||i,b.each(e,function(e,n){var o;m.moduleExists(n)&&(m.verbose("Changing default setting",t,n),b.extend(!0,b.fn[n].settings,t),i&&s&&0<(o=b(":data(module-"+s+")")).length&&(m.verbose("Modifying existing settings",o),o[n]("setting",t)))})}},enable:{console:function(){m.console(!0)},debug:function(e,n){e=e||r.modules,m.debug("Enabling debug for modules",e),m.change.setting("debug",!0,e,n)},verbose:function(e,n){e=e||r.modules,m.debug("Enabling verbose debug for modules",e),m.change.setting("verbose",!0,e,n)}},disable:{console:function(){m.console(!1)},debug:function(e,n){e=e||r.modules,m.debug("Disabling debug for modules",e),m.change.setting("debug",!1,e,n)},verbose:function(e,n){e=e||r.modules,m.debug("Disabling verbose debug for modules",e),m.change.setting("verbose",!1,e,n)}},console:function(e){e?void 0===g.cache.console?m.error(u.console):(m.debug("Restoring console function"),p.console=g.cache.console):(m.debug("Disabling console function"),g.cache.console=p.console,p.console={clear:function(){},error:function(){},group:function(){},groupCollapsed:function(){},groupEnd:function(){},info:function(){},log:function(){},table:function(){},warn:function(){}})},destroy:function(){m.verbose("Destroying previous site for",d),d.removeData(c)},cache:{},setting:function(e,n){if(b.isPlainObject(e))b.extend(!0,r,e);else{if(void 0===n)return r[e];r[e]=n}},internal:function(e,n){if(b.isPlainObject(e))b.extend(!0,m,e);else{if(void 0===n)return m[e];m[e]=n}},debug:function(){r.debug&&(r.performance?m.performance.log(arguments):(m.debug=Function.prototype.bind.call(console.info,console,r.name+":"),m.debug.apply(console,arguments)))},verbose:function(){r.verbose&&r.debug&&(r.performance?m.performance.log(arguments):(m.verbose=Function.prototype.bind.call(console.info,console,r.name+":"),m.verbose.apply(console,arguments)))},error:function(){m.error=Function.prototype.bind.call(console.error,console,r.name+":"),m.error.apply(console,arguments)},performance:{log:function(e){var n,o;r.performance&&(o=(n=Date.now())-(t||n),t=n,i.push({Element:f,Name:e[0],Arguments:[].slice.call(e,1)||"","Execution Time":o})),clearTimeout(m.performance.timer),m.performance.timer=setTimeout(m.performance.display,500)},display:function(){var e=r.name+":",o=0;t=!1,clearTimeout(m.performance.timer),b.each(i,function(e,n){o+=n["Execution Time"]}),e+=" "+o+"ms",0<i.length&&(console.groupCollapsed(e),console.table?console.table(i):b.each(i,function(e,n){console.log(n.Name+": "+n["Execution Time"]+"ms")}),console.groupEnd()),i=[]}},invoke:function(t,e,n){var i,s,o,r,c=g;return e=e||l,n=n||f,"string"==typeof t&&void 0!==c&&(t=t.split(/[ .]/),i=t.length-1,b.each(t,function(e,n){var o=e!==i?n+t[e+1].charAt(0).toUpperCase()+t[e+1].slice(1):t;if(b.isPlainObject(c[o])&&e!==i)c=c[o];else{if(void 0!==c[o])return s=c[o],!1;{if(!b.isPlainObject(c[n])||e===i)return void 0!==c[n]?s=c[n]:m.error(u.method,t),!1;c=c[n]}}})),"function"==typeof(r=s)&&"number"!=typeof r.nodeType?o=s.apply(n,e):void 0!==s&&(o=s),Array.isArray(a)?a.push(o):void 0!==a?a=[a,o]:void 0!==o&&(a=o),s}};return o?(void 0===g&&m.initialize(),m.invoke(n)):(void 0!==g&&m.destroy(),m.initialize()),void 0!==a?a:this},b.site=b.fn.site,b.site.settings={name:"Site",namespace:"site",error:{console:"Console cannot be restored, most likely it was overwritten outside of module",method:"The method you called is not defined."},debug:!1,verbose:!1,performance:!0,modules:["accordion","api","calendar","checkbox","dimmer","dropdown","embed","flyout","form","modal","nag","popup","progress","rating","search","shape","sidebar","slider","state","sticky","tab","toast","transition","visibility"],siteNamespace:"site",namespaceStub:{cache:{},config:{},sections:{},section:{},utilities:{}}},b.extend(b.expr.pseudos,{data:b.expr.createPseudo(function(n){return function(e){return!!b.data(e,n)}})})}(jQuery,window,document);
11
+ !function(b,p,v){"use strict";p=void 0!==p&&p.Math===Math?p:globalThis,b.fn.site=function(e){var a,t=Date.now(),i=[],n=e,o="string"==typeof n,u=[].slice.call(arguments,1),r=b.isPlainObject(e)?b.extend(!0,{},b.site.settings,e):b.extend({},b.site.settings),s=r.namespace,l=r.error,c="module-"+s,d=b(v),f=this,g=d.data(c),m={initialize:function(){m.instantiate()},instantiate:function(){m.verbose("Storing instance of site",m),g=m,d.data(c,m)},normalize:function(){},fix:{consoleClear:function(){m.debug("Disabling programmatic console clearing"),p.console.clear=function(){}}},moduleExists:function(e){return void 0!==b.fn[e]&&void 0!==b.fn[e].settings},enabled:{modules:function(e){var o=[];return e=e||r.modules,b.each(e,function(e,n){m.moduleExists(n)&&o.push(n)}),o}},disabled:{modules:function(e){var o=[];return e=e||r.modules,b.each(e,function(e,n){m.moduleExists(n)||o.push(n)}),o}},change:{setting:function(t,i,e,s){e="string"==typeof e?"all"===e?r.modules:[e]:e||r.modules,s=void 0===s||s,b.each(e,function(e,n){var o=!m.moduleExists(n)||(b.fn[n].settings.namespace||!1);m.moduleExists(n)&&(m.verbose("Changing default setting",t,i,n),b.fn[n].settings[t]=i,s&&o&&0<(o=b(":data(module-"+o+")")).length&&(m.verbose("Modifying existing settings",o),o[n]("setting",t,i)))})},settings:function(t,e,i){e="string"==typeof e?[e]:e||r.modules,i=void 0===i||i,b.each(e,function(e,n){var o;m.moduleExists(n)&&(m.verbose("Changing default setting",t,n),b.extend(!0,b.fn[n].settings,t),i&&s&&0<(o=b(":data(module-"+s+")")).length&&(m.verbose("Modifying existing settings",o),o[n]("setting",t)))})}},enable:{console:function(){m.console(!0)},debug:function(e,n){e=e||r.modules,m.debug("Enabling debug for modules",e),m.change.setting("debug",!0,e,n)},verbose:function(e,n){e=e||r.modules,m.debug("Enabling verbose debug for modules",e),m.change.setting("verbose",!0,e,n)}},disable:{console:function(){m.console(!1)},debug:function(e,n){e=e||r.modules,m.debug("Disabling debug for modules",e),m.change.setting("debug",!1,e,n)},verbose:function(e,n){e=e||r.modules,m.debug("Disabling verbose debug for modules",e),m.change.setting("verbose",!1,e,n)}},console:function(e){e?void 0===g.cache.console?m.error(l.console):(m.debug("Restoring console function"),p.console=g.cache.console):(m.debug("Disabling console function"),g.cache.console=p.console,p.console={clear:function(){},error:function(){},group:function(){},groupCollapsed:function(){},groupEnd:function(){},info:function(){},log:function(){},table:function(){},warn:function(){}})},destroy:function(){m.verbose("Destroying previous site for",d),d.removeData(c)},cache:{},setting:function(e,n){if(b.isPlainObject(e))b.extend(!0,r,e);else{if(void 0===n)return r[e];r[e]=n}},internal:function(e,n){if(b.isPlainObject(e))b.extend(!0,m,e);else{if(void 0===n)return m[e];m[e]=n}},debug:function(){r.debug&&(r.performance?m.performance.log(arguments):(m.debug=Function.prototype.bind.call(console.info,console,r.name+":"),m.debug.apply(console,arguments)))},verbose:function(){r.verbose&&r.debug&&(r.performance?m.performance.log(arguments):(m.verbose=Function.prototype.bind.call(console.info,console,r.name+":"),m.verbose.apply(console,arguments)))},error:function(){m.error=Function.prototype.bind.call(console.error,console,r.name+":"),m.error.apply(console,arguments)},performance:{log:function(e){var n,o;r.performance&&(o=(n=Date.now())-(t||n),t=n,i.push({Element:f,Name:e[0],Arguments:[].slice.call(e,1)||"","Execution Time":o})),clearTimeout(m.performance.timer),m.performance.timer=setTimeout(function(){m.performance.display()},500)},display:function(){var e=r.name+":",o=0;t=!1,clearTimeout(m.performance.timer),b.each(i,function(e,n){o+=n["Execution Time"]}),e+=" "+o+"ms",0<i.length&&(console.groupCollapsed(e),console.table?console.table(i):b.each(i,function(e,n){console.log(n.Name+": "+n["Execution Time"]+"ms")}),console.groupEnd()),i=[]}},invoke:function(t,e,n){var i,s,o,r,c=g;return e=e||u,n=n||f,"string"==typeof t&&void 0!==c&&(t=t.split(/[ .]/),i=t.length-1,b.each(t,function(e,n){var o=e!==i?n+t[e+1].charAt(0).toUpperCase()+t[e+1].slice(1):t;if(b.isPlainObject(c[o])&&e!==i)c=c[o];else{if(void 0!==c[o])return s=c[o],!1;{if(!b.isPlainObject(c[n])||e===i)return void 0!==c[n]?s=c[n]:m.error(l.method,t),!1;c=c[n]}}})),"function"==typeof(r=s)&&"number"!=typeof r.nodeType?o=s.apply(n,e):void 0!==s&&(o=s),Array.isArray(a)?a.push(o):void 0!==a?a=[a,o]:void 0!==o&&(a=o),s}};return o?(void 0===g&&m.initialize(),m.invoke(n)):(void 0!==g&&m.destroy(),m.initialize()),void 0!==a?a:this},b.site=b.fn.site,b.site.settings={name:"Site",namespace:"site",error:{console:"Console cannot be restored, most likely it was overwritten outside of module",method:"The method you called is not defined."},debug:!1,verbose:!1,performance:!0,modules:["accordion","api","calendar","checkbox","dimmer","dropdown","embed","flyout","form","modal","nag","popup","progress","rating","search","shape","sidebar","slider","state","sticky","tab","toast","transition","visibility"],siteNamespace:"site",namespaceStub:{cache:{},config:{},sections:{},section:{},utilities:{}}},b.extend(b.expr.pseudos,{data:b.expr.createPseudo(function(n){return function(e){return!!b.data(e,n)}})})}(jQuery,window,document);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.3-beta.9+e2d4cc1 - Slider
2
+ * # Fomantic-UI 2.9.4-beta.0+09d83ec - Slider
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.3-beta.9+e2d4cc1 - Slider
2
+ * # Fomantic-UI 2.9.4-beta.0+09d83ec - Slider
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -135,20 +135,32 @@
135
135
  $module.attr('tabindex', 0);
136
136
  }
137
137
  if ($module.find('.inner').length === 0) {
138
- $module.append("<div class='inner'>"
139
- + "<div class='track'></div>"
140
- + "<div class='track-fill'></div>"
141
- + "<div class='thumb'></div>"
138
+ $module.append('<div class="inner">'
139
+ + '<div class="track"></div>'
140
+ + '<div class="track-fill"></div>'
141
+ + '<div class="thumb"></div>'
142
142
  + '</div>');
143
143
  }
144
144
  precision = module.get.precision();
145
145
  $thumb = $module.find('.thumb:not(.second)');
146
+ if (settings.showThumbTooltip) {
147
+ $thumb
148
+ .attr('data-position', settings.tooltipConfig.position)
149
+ .attr('data-variation', settings.tooltipConfig.variation)
150
+ ;
151
+ }
146
152
  $currThumb = $thumb;
147
153
  if (module.is.range()) {
148
154
  if ($module.find('.thumb.second').length === 0) {
149
- $module.find('.inner').append("<div class='thumb second'></div>");
155
+ $module.find('.inner').append('<div class="thumb second"></div>');
150
156
  }
151
157
  $secondThumb = $module.find('.thumb.second');
158
+ if (settings.showThumbTooltip) {
159
+ $secondThumb
160
+ .attr('data-position', settings.tooltipConfig.position)
161
+ .attr('data-variation', settings.tooltipConfig.variation)
162
+ ;
163
+ }
152
164
  }
153
165
  $track = $module.find('.track');
154
166
  $trackFill = $module.find('.track-fill');
@@ -202,9 +214,10 @@
202
214
  for (var i = 0, len = module.get.numLabels(); i <= len; i++) {
203
215
  var
204
216
  labelText = module.get.label(i),
205
- $label = labelText !== ''
217
+ showLabel = settings.restrictedLabels.length === 0 || settings.restrictedLabels.indexOf(labelText) >= 0,
218
+ $label = labelText !== '' && (showLabel || settings.showLabelTicks === 'always')
206
219
  ? (!(i % module.get.gapRatio())
207
- ? $('<li class="label">' + labelText + '</li>')
220
+ ? $('<li class="label">' + (showLabel ? labelText : '') + '</li>')
208
221
  : $('<li class="halftick label"></li>'))
209
222
  : null,
210
223
  ratio = i / len
@@ -348,6 +361,18 @@
348
361
  ;
349
362
  $currThumb = initialPosition > newPos ? $thumb : $secondThumb;
350
363
  }
364
+ if (module.is.range() && (settings.minRange || settings.maxRange)) {
365
+ var currentRangeDiff = module.get.currentRangeDiff(value),
366
+ isSecondThumb = $currThumb.hasClass('second')
367
+ ;
368
+ if ((settings.minRange && currentRangeDiff < settings.minRange)
369
+ || (settings.maxRange && currentRangeDiff > settings.maxRange)
370
+ || (settings.preventCrossover && !isSecondThumb && value > module.secondThumbVal)
371
+ || (settings.preventCrossover && isSecondThumb && value < module.thumbVal)
372
+ ) {
373
+ return;
374
+ }
375
+ }
351
376
  if (module.get.step() === 0 || module.is.smooth()) {
352
377
  var
353
378
  thumbVal = module.thumbVal,
@@ -383,6 +408,17 @@
383
408
  return;
384
409
  }
385
410
  var value = module.determine.valueFromEvent(event);
411
+ if (module.is.range() && (settings.minRange || settings.maxRange)) {
412
+ if ($currThumb === undefined) {
413
+ $currThumb = value <= module.get.currentThumbValue() ? $thumb : $secondThumb;
414
+ }
415
+ var currentRangeDiff = module.get.currentRangeDiff(value);
416
+ if (settings.minRange && currentRangeDiff < settings.minRange) {
417
+ value = module.get.edgeValue(value, settings.minRange);
418
+ } else if (settings.maxRange && currentRangeDiff > settings.maxRange) {
419
+ value = module.get.edgeValue(value, settings.maxRange);
420
+ }
421
+ }
386
422
  module.set.value(value);
387
423
  module.unbind.slidingEvents();
388
424
  touchIdentifier = undefined;
@@ -503,7 +539,13 @@
503
539
 
504
540
  is: {
505
541
  range: function () {
506
- return $module.hasClass(settings.className.range);
542
+ var isRange = $module.hasClass(className.range);
543
+ if (!isRange && (settings.minRange || settings.maxRange)) {
544
+ $module.addClass(className.range);
545
+ isRange = true;
546
+ }
547
+
548
+ return isRange;
507
549
  },
508
550
  hover: function () {
509
551
  return isHover;
@@ -512,23 +554,56 @@
512
554
  return $module.is(':focus');
513
555
  },
514
556
  disabled: function () {
515
- return $module.hasClass(settings.className.disabled);
557
+ return $module.hasClass(className.disabled);
516
558
  },
517
559
  labeled: function () {
518
- return $module.hasClass(settings.className.labeled);
560
+ var isLabeled = $module.hasClass(className.labeled);
561
+ if (!isLabeled && (settings.restrictedLabels.length > 0 || settings.showLabelTicks !== false)) {
562
+ $module.addClass(className.labeled);
563
+ isLabeled = true;
564
+ }
565
+
566
+ return isLabeled;
519
567
  },
520
568
  reversed: function () {
521
- return $module.hasClass(settings.className.reversed);
569
+ return $module.hasClass(className.reversed);
522
570
  },
523
571
  vertical: function () {
524
- return $module.hasClass(settings.className.vertical);
572
+ return $module.hasClass(className.vertical);
525
573
  },
526
574
  smooth: function () {
527
- return settings.smooth || $module.hasClass(settings.className.smooth);
575
+ return settings.smooth || $module.hasClass(className.smooth);
528
576
  },
529
577
  },
530
578
 
531
579
  get: {
580
+ currentRangeDiff: function (value) {
581
+ var currentRangeDiff;
582
+ if ($currThumb.hasClass('second')) {
583
+ currentRangeDiff = module.thumbVal < value
584
+ ? value - module.thumbVal
585
+ : module.thumbVal - value;
586
+ } else {
587
+ currentRangeDiff = module.secondThumbVal > value
588
+ ? module.secondThumbVal - value
589
+ : value - module.secondThumbVal;
590
+ }
591
+
592
+ return currentRangeDiff;
593
+ },
594
+ edgeValue: function (value, edgeValue) {
595
+ if ($currThumb.hasClass('second')) {
596
+ value = module.thumbVal < value
597
+ ? module.thumbVal + edgeValue
598
+ : module.thumbVal - edgeValue;
599
+ } else {
600
+ value = module.secondThumbVal < value
601
+ ? module.secondThumbVal + edgeValue
602
+ : module.secondThumbVal - edgeValue;
603
+ }
604
+
605
+ return value;
606
+ },
532
607
  trackOffset: function () {
533
608
  if (module.is.vertical()) {
534
609
  return $track.offset().top;
@@ -599,7 +674,8 @@
599
674
  var
600
675
  step = module.get.step(),
601
676
  min = module.get.min(),
602
- quotient = step === 0 ? 0 : Math.floor((settings.max - min) / step),
677
+ precision = module.get.precision(),
678
+ quotient = step === 0 ? 0 : Math.floor(Math.round(((settings.max - min) / step) * precision) / precision),
603
679
  remainder = step === 0 ? 0 : (settings.max - min) % step
604
680
  ;
605
681
 
@@ -609,7 +685,9 @@
609
685
  return settings.step;
610
686
  },
611
687
  numLabels: function () {
612
- var value = Math.round((module.get.max() - module.get.min()) / (module.get.step() === 0 ? 1 : module.get.step()));
688
+ var step = module.get.step(),
689
+ precision = module.get.precision(),
690
+ value = Math.round(((module.get.max() - module.get.min()) / (step === 0 ? 1 : step)) * precision) / precision;
613
691
  module.debug('Determined that there should be ' + value + ' labels');
614
692
 
615
693
  return value;
@@ -624,7 +702,9 @@
624
702
 
625
703
  switch (settings.labelType) {
626
704
  case settings.labelTypes.number: {
627
- return Math.round(((value * (module.get.step() === 0 ? 1 : module.get.step())) + module.get.min()) * precision) / precision;
705
+ var step = module.get.step();
706
+
707
+ return Math.round(((value * (step === 0 ? 1 : step)) + module.get.min()) * precision) / precision;
628
708
  }
629
709
  case settings.labelTypes.letter: {
630
710
  return alphabet[value % 26];
@@ -732,13 +812,10 @@
732
812
  return thumbDelta <= secondThumbDelta ? thumbPos : secondThumbPos;
733
813
  },
734
814
  thumbPos: function ($element) {
735
- var
736
- pos = module.is.vertical()
737
- ? (module.is.reversed() ? $element.css('bottom') : $element.css('top'))
738
- : (module.is.reversed() ? $element.css('right') : $element.css('left'))
815
+ return module.is.vertical()
816
+ ? (module.is.reversed() ? $element.css('bottom') : $element.css('top'))
817
+ : (module.is.reversed() ? $element.css('right') : $element.css('left'))
739
818
  ;
740
-
741
- return pos;
742
819
  },
743
820
  positionFromValue: function (val) {
744
821
  var
@@ -762,6 +839,7 @@
762
839
  position = Math.round(ratio * trackLength),
763
840
  adjustedPos = step === 0 ? position : Math.round(position / step) * step
764
841
  ;
842
+ module.verbose('Determined position: ' + position + ' from ratio: ' + ratio);
765
843
 
766
844
  return adjustedPos;
767
845
  },
@@ -985,12 +1063,12 @@
985
1063
  }
986
1064
  if (!$currThumb.hasClass('second')) {
987
1065
  if (settings.preventCrossover && module.is.range()) {
988
- newValue = Math.min(module.secondThumbVal, newValue);
1066
+ newValue = Math.min(module.secondThumbVal - (settings.minRange || 0), newValue);
989
1067
  }
990
1068
  module.thumbVal = newValue;
991
1069
  } else {
992
1070
  if (settings.preventCrossover && module.is.range()) {
993
- newValue = Math.max(module.thumbVal, newValue);
1071
+ newValue = Math.max(module.thumbVal + (settings.minRange || 0), newValue);
994
1072
  }
995
1073
  module.secondThumbVal = newValue;
996
1074
  }
@@ -1009,6 +1087,10 @@
1009
1087
  thumbVal = module.thumbVal || module.get.min(),
1010
1088
  secondThumbVal = module.secondThumbVal || module.get.min()
1011
1089
  ;
1090
+ if (settings.showThumbTooltip) {
1091
+ var precision = module.get.precision();
1092
+ $targetThumb.attr('data-tooltip', Math.round(newValue * precision) / precision);
1093
+ }
1012
1094
  if (module.is.range()) {
1013
1095
  if (!$targetThumb.hasClass('second')) {
1014
1096
  position = newPos;
@@ -1097,6 +1179,14 @@
1097
1179
  settings: function () {
1098
1180
  if (settings.start !== false) {
1099
1181
  if (module.is.range()) {
1182
+ var rangeDiff = settings.end - settings.start;
1183
+ if (rangeDiff < 0
1184
+ || (settings.minRange && rangeDiff < settings.minRange)
1185
+ || (settings.maxRange && rangeDiff > settings.maxRange)
1186
+ || (settings.minRange && settings.maxRange && settings.minRange > settings.maxRange)
1187
+ ) {
1188
+ module.error(error.invalidRanges, settings.start, settings.end, settings.minRange, settings.maxRange);
1189
+ }
1100
1190
  module.debug('Start position set from settings', settings.start, settings.end);
1101
1191
  module.set.rangeValue(settings.start, settings.end);
1102
1192
  } else {
@@ -1177,7 +1267,7 @@
1177
1267
  });
1178
1268
  }
1179
1269
  clearTimeout(module.performance.timer);
1180
- module.performance.timer = setTimeout(module.performance.display, 500);
1270
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
1181
1271
  },
1182
1272
  display: function () {
1183
1273
  var
@@ -1289,6 +1379,7 @@
1289
1379
  error: {
1290
1380
  method: 'The method you called is not defined.',
1291
1381
  notrange: 'This slider is not a range slider',
1382
+ invalidRanges: 'Invalid range settings (start/end/minRange/maxRange)',
1292
1383
  },
1293
1384
 
1294
1385
  metadata: {
@@ -1301,6 +1392,8 @@
1301
1392
  step: 1,
1302
1393
  start: 0,
1303
1394
  end: 20,
1395
+ minRange: false,
1396
+ maxRange: false,
1304
1397
  labelType: 'number',
1305
1398
  showLabelTicks: false,
1306
1399
  smooth: false,
@@ -1337,6 +1430,13 @@
1337
1430
  downArrow: 40,
1338
1431
  },
1339
1432
 
1433
+ restrictedLabels: [],
1434
+ showThumbTooltip: false,
1435
+ tooltipConfig: {
1436
+ position: 'top center',
1437
+ variation: 'tiny black',
1438
+ },
1439
+
1340
1440
  labelTypes: {
1341
1441
  number: 'number',
1342
1442
  letter: 'letter',
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.3-beta.9+e2d4cc1 - Slider
2
+ * # Fomantic-UI 2.9.4-beta.0+09d83ec - Slider
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.3-beta.9+e2d4cc1
2
+ * # Fomantic UI - 2.9.4-beta.0+09d83ec
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -8,4 +8,4 @@
8
8
  * https://opensource.org/licenses/MIT
9
9
  *
10
10
  */
11
- !function(X,t,n){"use strict";t=void 0!==t&&t.Math===Math?t:globalThis,X.fn.slider=function(S){var A,e=X(this),F=X(n),O=X(t),N=Date.now(),j=[],z=S,I="string"==typeof z,R=[].slice.call(arguments,1),B=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],U=0;return e.each(function(){var l,r,s,u,e,c,d,t,m,v,f,g,o,b,i,h,p=X.isPlainObject(S)?X.extend(!0,{},X.fn.slider.settings,S):X.extend({},X.fn.slider.settings),n=p.className,a=p.metadata,k=p.namespace,V=p.error,T=p.keys,y=p.interpretLabel,w=!1,M="."+k,x="module-"+k,P=X(this),E=this,C=P.data(x),L=1,D={initialize:function(){D.debug("Initializing slider",p),h=!0,t=U+=1,D.setup.layout(),D.setup.labels(),D.bind.events(),D.read.metadata(),D.read.settings(),h=!1,D.instantiate()},instantiate:function(){D.verbose("Storing instance of slider",D),C=D,P.data(x,D)},destroy:function(){D.verbose("Destroying previous slider for",P),clearInterval(C.interval),D.unbind.events(),D.unbind.slidingEvents(),P.removeData(x),C=void 0},setup:{layout:function(){void 0===P.attr("tabindex")&&P.attr("tabindex",0),0===P.find(".inner").length&&P.append("<div class='inner'><div class='track'></div><div class='track-fill'></div><div class='thumb'></div></div>"),o=D.get.precision(),s=P.find(".thumb:not(.second)"),l=s,D.is.range()&&(0===P.find(".thumb.second").length&&P.find(".inner").append("<div class='thumb second'></div>"),u=P.find(".thumb.second")),e=P.find(".track"),c=P.find(".track-fill"),g=s.width()/2},labels:function(){D.is.labeled()&&(0<(d=P.find(".labels:not(.auto)")).length?D.setup.customLabel():D.setup.autoLabel(),p.showLabelTicks&&P.addClass(n.ticked))},customLabel:function(){var n,e=d.find(".label"),a=e.length,o=D.get.min(),i=D.get.max();e.each(function(e){var t=X(this).attr("data-value");n=t?((t=i<t?i:t<o?o:t)-o)/(i-o):(e+1)/(a+1),D.update.labelPosition(n,X(this))})},autoLabel:function(){0<(d=P.find(".labels")).length?d.empty():d=P.append('<ul class="auto labels"></ul>').find(".labels");for(var e=0,t=D.get.numLabels();e<=t;e++){var n=D.get.label(e),n=""!==n?e%D.get.gapRatio()?X('<li class="halftick label"></li>'):X('<li class="label">'+n+"</li>"):null;n&&(D.update.labelPosition(e/t,n),d.append(n))}}},bind:{events:function(){D.bind.globalKeyboardEvents(),D.bind.keyboardEvents(),D.bind.mouseEvents(),p.autoAdjustLabels&&D.bind.windowEvents()},keyboardEvents:function(){D.verbose("Binding keyboard events"),P.on("keydown"+M,D.event.keydown)},globalKeyboardEvents:function(){F.on("keydown"+M+t,D.event.activateFocus)},mouseEvents:function(){D.verbose("Binding mouse and touch events"),P.find(".track, .thumb, .inner").on("mousedown"+M,function(e){e.stopImmediatePropagation(),e.preventDefault(),D.event.down(e)}),P.on("mousedown"+M,D.event.down),P.on("mouseenter"+M,function(e){w=!0}),P.on("mouseleave"+M,function(e){w=!1}),P.find(".thumb").on("touchstart"+M,D.event.touchDown).on("touchmove"+M,D.event.move).on("touchend"+M,D.event.up).on("touchcancel"+M,D.event.touchCancel)},slidingEvents:function(){D.verbose("Binding page wide events while handle is being draged"),F.on("mousemove"+M,D.event.move),F.on("mouseup"+M,D.event.up)},windowEvents:function(){O.on("resize"+M,D.event.resize)}},unbind:{events:function(){P.find(".track, .thumb, .inner").off("mousedown"+M),P.off("mousedown"+M),P.off("mouseenter"+M),P.off("mouseleave"+M),P.find(".thumb").off("touchstart"+M).off("touchmove"+M).off("touchend"+M).off("touchcancel"+M),P.off("keydown"+M),P.off("focusout"+M),F.off("keydown"+M+t,D.event.activateFocus),O.off("resize"+M)},slidingEvents:function(){F.off("mousemove"+M),F.off("mouseup"+M)}},event:{down:function(e){e.preventDefault(),D.is.range()?(e=D.determine.eventPos(e),e=D.determine.pos(e),l=p.preventCrossover&&D.is.range()&&D.thumbVal===D.secondThumbVal?void(i=e):D.determine.closestThumb(e),void 0===b&&(b=D.get.currentThumbValue())):void 0===b&&(b=D.get.value()),D.is.disabled()||D.bind.slidingEvents()},touchDown:function(e){e.preventDefault(),e.stopImmediatePropagation(),void 0===r&&(l=X(e.target),e=e.touches?e:e.originalEvent,r=e.targetTouches[0].identifier,void 0===b&&(b=D.get.currentThumbValue()))},move:function(e){var t,n,a;"mousemove"===e.type&&e.preventDefault(),D.is.disabled()||(t=D.determine.valueFromEvent(e),"mousemove"===e.type&&void 0===l&&(n=D.determine.eventPos(e),n=D.determine.pos(n),l=n<i?s:u),0===D.get.step()||D.is.smooth()?(n=D.thumbVal,a=D.secondThumbVal,e=D.determine.smoothValueFromEvent(e),l.hasClass("second")?(p.preventCrossover&&D.is.range()&&(t=Math.max(n,t),e=Math.max(n,e)),a=t):(p.preventCrossover&&D.is.range()&&(t=Math.min(a,t),e=Math.min(a,e)),n=t),t=Math.abs(n-(a||0)),D.update.position(e),p.onMove.call(E,t,n,a)):D.update.value(t,function(e,t,n){p.onMove.call(E,e,t,n)}))},up:function(e){e.preventDefault(),D.is.disabled()||(e=D.determine.valueFromEvent(e),D.set.value(e),D.unbind.slidingEvents(),(r=void 0)!==b&&(b=void 0))},touchCancel:function(e){e.preventDefault(),(r=void 0)!==b&&(D.update.value(b),b=void 0)},keydown:function(e,t){if(!D.is.disabled()&&(p.preventCrossover&&D.is.range()&&D.thumbVal===D.secondThumbVal&&(l=void 0),D.is.focused()&&F.trigger(e),t||D.is.focused())){t=D.determine.keyMovement(e);if(0!==t)switch(e.preventDefault(),t){case 1:D.takeStep();break;case 2:D.takeStep(D.get.multiplier());break;case-1:D.backStep();break;case-2:D.backStep(D.get.multiplier())}}},activateFocus:function(e){D.is.disabled()||D.is.focused()||!D.is.hover()||0===D.determine.keyMovement(e)||(e.preventDefault(),D.event.keydown(e,!0),P.trigger("focus"))},resize:function(e){L!==D.get.gapRatio()&&(D.setup.labels(),L=D.get.gapRatio())}},resync:function(){D.verbose("Resyncing thumb position based on value"),D.is.range()&&D.update.position(D.secondThumbVal,u),D.update.position(D.thumbVal,s),D.setup.labels()},takeStep:function(e){e=e||1;var t=D.get.step(),n=D.get.currentThumbValue();D.verbose("Taking a step"),0<t?D.set.value(n+t*e):0===t&&(t=D.get.precision(),D.set.value(Math.round((n+e/t)*t)/t))},backStep:function(e){e=e||1;var t=D.get.step(),n=D.get.currentThumbValue();D.verbose("Going back a step"),0<t?D.set.value(n-t*e):0===t&&(t=D.get.precision(),D.set.value(Math.round((n-e/t)*t)/t))},is:{range:function(){return P.hasClass(p.className.range)},hover:function(){return w},focused:function(){return P.is(":focus")},disabled:function(){return P.hasClass(p.className.disabled)},labeled:function(){return P.hasClass(p.className.labeled)},reversed:function(){return P.hasClass(p.className.reversed)},vertical:function(){return P.hasClass(p.className.vertical)},smooth:function(){return p.smooth||P.hasClass(p.className.smooth)}},get:{trackOffset:function(){return D.is.vertical()?e.offset().top:e.offset().left},trackLength:function(){return D.is.vertical()?e.height():e.width()},trackLeft:function(){return D.is.vertical()?e.position().top:e.position().left},trackStartPos:function(){return D.is.reversed()?D.get.trackLeft()+D.get.trackLength():D.get.trackLeft()},trackEndPos:function(){return D.is.reversed()?D.get.trackLeft():D.get.trackLeft()+D.get.trackLength()},trackStartMargin:function(){var e=D.is.vertical()?D.is.reversed()?P.css("padding-bottom"):P.css("padding-top"):D.is.reversed()?P.css("padding-right"):P.css("padding-left");return e||"0px"},trackEndMargin:function(){var e=D.is.vertical()?D.is.reversed()?P.css("padding-top"):P.css("padding-bottom"):D.is.reversed()?P.css("padding-left"):P.css("padding-right");return e||"0px"},precision:function(){var e=D.get.step(),e=(e=0!==e?2===(e=String(e).split(".")).length?e[1].length:0:p.decimalPlaces,Math.pow(10,e));return D.debug("Precision determined",e),e},min:function(){return p.min},max:function(){var e=D.get.step(),t=D.get.min(),n=0===e?0:Math.floor((p.max-t)/e);return 0==(0===e?0:(p.max-t)%e)?p.max:t+n*e},step:function(){return p.step},numLabels:function(){var e=Math.round((D.get.max()-D.get.min())/(0===D.get.step()?1:D.get.step()));return D.debug("Determined that there should be "+e+" labels"),e},labelType:function(){return p.labelType},label:function(e){if(y)return y(e);switch(p.labelType){case p.labelTypes.number:return Math.round((e*(0===D.get.step()?1:D.get.step())+D.get.min())*o)/o;case p.labelTypes.letter:return B[e%26];default:return e}},value:function(){return m},currentThumbValue:function(){return void 0!==l&&l.hasClass("second")?D.secondThumbVal:D.thumbVal},thumbValue:function(e){return"second"!==e?D.thumbVal:D.is.range()?D.secondThumbVal:void D.error(V.notrange)},multiplier:function(){return p.pageMultiplier},thumbPosition:function(e){return"second"!==e?v:D.is.range()?f:void D.error(V.notrange)},gapRatio:function(){var e=1;if(p.autoAdjustLabels){var t=D.get.numLabels(),n=D.get.trackLength(),a=1;if(0<n)for(;n/t*a<p.labelDistance;)t%a||(e=a),a+=1}return e}},determine:{pos:function(e){return D.is.reversed()?D.get.trackStartPos()-e+D.get.trackOffset():e-D.get.trackOffset()-D.get.trackStartPos()},closestThumb:function(e){var t=parseFloat(D.determine.thumbPos(s)),t=Math.abs(e-t),n=parseFloat(D.determine.thumbPos(u)),e=Math.abs(e-n);return(t!==e||D.get.thumbValue()!==D.get.min())&&t<=e?s:u},closestThumbPos:function(e){var t=parseFloat(D.determine.thumbPos(s)),n=Math.abs(e-t),a=parseFloat(D.determine.thumbPos(u));return n<=Math.abs(e-a)?t:a},thumbPos:function(e){return D.is.vertical()?D.is.reversed()?e.css("bottom"):e.css("top"):D.is.reversed()?e.css("right"):e.css("left")},positionFromValue:function(e){var t=D.get.min(),n=D.get.max(),e=n<e?n:e<t?t:e,a=D.get.trackLength(),n=Math.round((e-t)/(n-t)*a);return D.verbose("Determined position: "+n+" from value: "+e),n},positionFromRatio:function(e){var t=D.get.trackLength(),n=D.get.step(),e=Math.round(e*t);return 0===n?e:Math.round(e/n)*n},valueFromEvent:function(e){var e=D.determine.eventPos(e),t=D.determine.pos(e),e=e<D.get.trackOffset()?D.is.reversed()?D.get.max():D.get.min():e>D.get.trackOffset()+D.get.trackLength()?D.is.reversed()?D.get.min():D.get.max():D.determine.value(t);return e},smoothValueFromEvent:function(e){var t=D.get.min(),n=D.get.max(),a=D.get.trackLength(),e=D.determine.eventPos(e)-D.get.trackOffset(),e=(e=e<0?0:a<e?a:e)/a;return(e=D.is.reversed()?1-e:e)*(n-t)+t},eventPos:function(e){if("touchmove"===e.type||"touchend"===e.type){for(var t=e.touches?e:e.originalEvent,n=t.changedTouches[0],a=0;a<t.touches.length;a++)if(t.touches[a].identifier===r){n=t.touches[a];break}var o=n.pageY,i=n.pageX;return D.is.vertical()?o:i}o=e.pageY||e.originalEvent.pageY,i=e.pageX||e.originalEvent.pageX;return D.is.vertical()?o:i},value:function(e){var t=D.is.reversed()?D.get.trackEndPos():D.get.trackStartPos(),t=(e-t)/((D.is.reversed()?D.get.trackStartPos():D.get.trackEndPos())-t),n=D.get.max()-D.get.min(),a=D.get.step(),t=t*n,n=0===a?t:Math.round(t/a)*a;return D.verbose("Determined value based upon position: "+e+" as: "+t),t!=n&&D.verbose("Rounding value to closest step: "+n),D.verbose("Cutting off additional decimal places"),Math.round((n+D.get.min())*o)/o},keyMovement:function(e){var e=e.which,t=!D.is.vertical()||D.is.reversed()?T.downArrow:T.upArrow,n=!D.is.vertical()||D.is.reversed()?T.upArrow:T.downArrow,a=!D.is.vertical()&&D.is.reversed()?T.rightArrow:T.leftArrow,o=!D.is.vertical()&&D.is.reversed()?T.leftArrow:T.rightArrow;return e===t||e===a?-1:e===n||e===o?1:e===T.pageDown?-2:e===T.pageUp?2:0}},handleNewValuePosition:function(e){var t=D.get.min(),n=D.get.max();return e<=t?e=t:n<=e&&(e=n),D.determine.positionFromValue(e)},set:{value:function(a,o){o=!1!==o;var i=void 0===b;b=void 0===b?D.get.value():b,D.update.value(a,function(e,t,n){h&&!p.fireOnInit||!o||(a!==b&&p.onChange.call(E,e,t,n),p.onMove.call(E,e,t,n)),i&&(b=void 0)})},rangeValue:function(e,t,n){var a,o,i;n=!1!==n,D.is.range()?(a=D.get.min(),o=D.get.max(),b=(i=void 0===b)?D.get.value():b,e<=a?e=a:o<=e&&(e=o),t<=a?t=a:o<=t&&(t=o),D.thumbVal=e,D.secondThumbVal=t,m=Math.abs(D.thumbVal-D.secondThumbVal),D.update.position(D.thumbVal,s),D.update.position(D.secondThumbVal,u),h&&!p.fireOnInit||!n||(m!==b&&p.onChange.call(E,m,D.thumbVal,D.secondThumbVal),p.onMove.call(E,m,D.thumbVal,D.secondThumbVal)),i&&(b=void 0)):D.error(V.notrange)},position:function(e,t){e=D.determine.value(e);"second"===t?(D.secondThumbVal=e,D.update.position(e,u)):(D.thumbVal=e,D.update.position(e,s)),m=Math.abs(D.thumbVal-(D.secondThumbVal||0)),D.set.value(m)}},update:{value:function(e,t){var n=D.get.min(),a=D.get.max();e<=n?e=n:a<=e&&(e=a),D.is.range()?((l=void 0===l?e<=D.get.currentThumbValue()?s:u:l).hasClass("second")?(p.preventCrossover&&D.is.range()&&(e=Math.max(D.thumbVal,e)),D.secondThumbVal=e):(p.preventCrossover&&D.is.range()&&(e=Math.min(D.secondThumbVal,e)),D.thumbVal=e),m=Math.abs(D.thumbVal-D.secondThumbVal)):(m=e,D.thumbVal=m),D.update.position(e),D.debug("Setting slider value to "+m),"function"==typeof t&&t(m,D.thumbVal,D.secondThumbVal)},position:function(e,t){var n=D.handleNewValuePosition(e),t=t||l,a=D.thumbVal||D.get.min(),o=D.secondThumbVal||D.get.min();D.is.range()&&t.hasClass("second")?(f=n,o=e):(v=n,a=e);var i,r=D.get.min(),s=D.get.max(),e=(e-r)/(s-r)*100,u=(Math.min(a,o)-r)/(s-r)*100,a=100*(1-(Math.max(a,o)-r)/(s-r)),o=D.is.vertical()?D.is.reversed()?(i={bottom:"calc("+e+"% - "+g+"px)",top:"auto"},{bottom:u+"%",top:a+"%"}):(i={top:"calc("+e+"% - "+g+"px)",bottom:"auto"},{top:u+"%",bottom:a+"%"}):D.is.reversed()?(i={right:"calc("+e+"% - "+g+"px)",left:"auto"},{right:u+"%",left:a+"%"}):(i={left:"calc("+e+"% - "+g+"px)",right:"auto"},{left:u+"%",right:a+"%"});t.css(i),c.css(o),D.debug("Setting slider position to "+n)},labelPosition:function(e,t){var n=D.get.trackStartMargin(),a=D.get.trackEndMargin(),o=D.is.vertical()?D.is.reversed()?"bottom":"top":D.is.reversed()?"right":"left",i=D.is.reversed()&&!D.is.vertical()?" - ":" + ";t.css(o,"calc("+("(100% - "+n+" - "+a+") * "+e)+i+n+")")}},goto:{max:function(){D.set.value(D.get.max())},min:function(){D.set.value(D.get.min())}},read:{metadata:function(){var e={thumbVal:P.data(a.thumbVal),secondThumbVal:P.data(a.secondThumbVal)};e.thumbVal&&(D.is.range()&&e.secondThumbVal?(D.debug("Current value set from metadata",e.thumbVal,e.secondThumbVal),D.set.rangeValue(e.thumbVal,e.secondThumbVal)):(D.debug("Current value set from metadata",e.thumbVal),D.set.value(e.thumbVal)))},settings:function(){!1!==p.start&&(D.is.range()?(D.debug("Start position set from settings",p.start,p.end),D.set.rangeValue(p.start,p.end)):(D.debug("Start position set from settings",p.start),D.set.value(p.start)))}},setting:function(e,t){if(D.debug("Changing setting",e,t),X.isPlainObject(e))X.extend(!0,p,e);else{if(void 0===t)return p[e];X.isPlainObject(p[e])?X.extend(!0,p[e],t):p[e]=t}},internal:function(e,t){if(X.isPlainObject(e))X.extend(!0,D,e);else{if(void 0===t)return D[e];D[e]=t}},debug:function(){!p.silent&&p.debug&&(p.performance?D.performance.log(arguments):(D.debug=Function.prototype.bind.call(console.info,console,p.name+":"),D.debug.apply(console,arguments)))},verbose:function(){!p.silent&&p.verbose&&p.debug&&(p.performance?D.performance.log(arguments):(D.verbose=Function.prototype.bind.call(console.info,console,p.name+":"),D.verbose.apply(console,arguments)))},error:function(){p.silent||(D.error=Function.prototype.bind.call(console.error,console,p.name+":"),D.error.apply(console,arguments))},performance:{log:function(e){var t,n;p.performance&&(n=(t=Date.now())-(N||t),N=t,j.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:E,"Execution Time":n})),clearTimeout(D.performance.timer),D.performance.timer=setTimeout(D.performance.display,500)},display:function(){var e=p.name+":",n=0;N=!1,clearTimeout(D.performance.timer),X.each(j,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",0<j.length&&(console.groupCollapsed(e),console.table?console.table(j):X.each(j,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),j=[]}},invoke:function(a,e,t){var o,i,n,r,s=C;return e=e||R,t=t||E,"string"==typeof a&&void 0!==s&&(a=a.split(/[ .]/),o=a.length-1,X.each(a,function(e,t){var n=e!==o?t+a[e+1].charAt(0).toUpperCase()+a[e+1].slice(1):a;if(X.isPlainObject(s[n])&&e!==o)s=s[n];else{if(void 0!==s[n])return i=s[n],!1;{if(!X.isPlainObject(s[t])||e===o)return void 0!==s[t]?i=s[t]:D.error(V.method,a),!1;s=s[t]}}})),"function"==typeof(r=i)&&"number"!=typeof r.nodeType?n=i.apply(t,e):void 0!==i&&(n=i),Array.isArray(A)?A.push(n):void 0!==A?A=[A,n]:void 0!==n&&(A=n),i}};I?(void 0===C&&D.initialize(),D.invoke(z)):(void 0!==C&&C.invoke("destroy"),D.initialize())}),void 0!==A?A:this},X.fn.slider.settings={silent:!1,debug:!1,verbose:!1,performance:!0,name:"Slider",namespace:"slider",error:{method:"The method you called is not defined.",notrange:"This slider is not a range slider"},metadata:{thumbVal:"thumbVal",secondThumbVal:"secondThumbVal"},min:0,max:20,step:1,start:0,end:20,labelType:"number",showLabelTicks:!1,smooth:!1,autoAdjustLabels:!0,labelDistance:100,preventCrossover:!0,fireOnInit:!1,interpretLabel:!1,decimalPlaces:2,pageMultiplier:2,selector:{},className:{reversed:"reversed",disabled:"disabled",labeled:"labeled",ticked:"ticked",vertical:"vertical",range:"range",smooth:"smooth"},keys:{pageUp:33,pageDown:34,leftArrow:37,upArrow:38,rightArrow:39,downArrow:40},labelTypes:{number:"number",letter:"letter"},onChange:function(e,t,n){},onMove:function(e,t,n){}}}(jQuery,window,document);
11
+ !function(X,t,n){"use strict";t=void 0!==t&&t.Math===Math?t:globalThis,X.fn.slider=function(D){var S,e=X(this),A=X(n),F=X(t),O=Date.now(),j=[],I=D,z="string"==typeof I,N=[].slice.call(arguments,1),B=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],U=0;return e.each(function(){var l,r,s,u,e,d,c,t,m,g,v,f,o,b,i,h,p=X.isPlainObject(D)?X.extend(!0,{},X.fn.slider.settings,D):X.extend({},X.fn.slider.settings),n=p.className,a=p.metadata,V=p.namespace,k=p.error,T=p.keys,w=p.interpretLabel,y=!1,x="."+V,M="module-"+V,R=X(this),C=this,P=R.data(M),L=1,E={initialize:function(){E.debug("Initializing slider",p),h=!0,t=U+=1,E.setup.layout(),E.setup.labels(),E.bind.events(),E.read.metadata(),E.read.settings(),h=!1,E.instantiate()},instantiate:function(){E.verbose("Storing instance of slider",E),P=E,R.data(M,E)},destroy:function(){E.verbose("Destroying previous slider for",R),clearInterval(P.interval),E.unbind.events(),E.unbind.slidingEvents(),R.removeData(M),P=void 0},setup:{layout:function(){void 0===R.attr("tabindex")&&R.attr("tabindex",0),0===R.find(".inner").length&&R.append('<div class="inner"><div class="track"></div><div class="track-fill"></div><div class="thumb"></div></div>'),o=E.get.precision(),s=R.find(".thumb:not(.second)"),p.showThumbTooltip&&s.attr("data-position",p.tooltipConfig.position).attr("data-variation",p.tooltipConfig.variation),l=s,E.is.range()&&(0===R.find(".thumb.second").length&&R.find(".inner").append('<div class="thumb second"></div>'),u=R.find(".thumb.second"),p.showThumbTooltip&&u.attr("data-position",p.tooltipConfig.position).attr("data-variation",p.tooltipConfig.variation)),e=R.find(".track"),d=R.find(".track-fill"),f=s.width()/2},labels:function(){E.is.labeled()&&(0<(c=R.find(".labels:not(.auto)")).length?E.setup.customLabel():E.setup.autoLabel(),p.showLabelTicks&&R.addClass(n.ticked))},customLabel:function(){var n,e=c.find(".label"),a=e.length,o=E.get.min(),i=E.get.max();e.each(function(e){var t=X(this).attr("data-value");n=t?((t=i<t?i:t<o?o:t)-o)/(i-o):(e+1)/(a+1),E.update.labelPosition(n,X(this))})},autoLabel:function(){0<(c=R.find(".labels")).length?c.empty():c=R.append('<ul class="auto labels"></ul>').find(".labels");for(var e=0,t=E.get.numLabels();e<=t;e++){var n=E.get.label(e),a=0===p.restrictedLabels.length||0<=p.restrictedLabels.indexOf(n),a=""===n||!a&&"always"!==p.showLabelTicks?null:e%E.get.gapRatio()?X('<li class="halftick label"></li>'):X('<li class="label">'+(a?n:"")+"</li>");a&&(E.update.labelPosition(e/t,a),c.append(a))}}},bind:{events:function(){E.bind.globalKeyboardEvents(),E.bind.keyboardEvents(),E.bind.mouseEvents(),p.autoAdjustLabels&&E.bind.windowEvents()},keyboardEvents:function(){E.verbose("Binding keyboard events"),R.on("keydown"+x,E.event.keydown)},globalKeyboardEvents:function(){A.on("keydown"+x+t,E.event.activateFocus)},mouseEvents:function(){E.verbose("Binding mouse and touch events"),R.find(".track, .thumb, .inner").on("mousedown"+x,function(e){e.stopImmediatePropagation(),e.preventDefault(),E.event.down(e)}),R.on("mousedown"+x,E.event.down),R.on("mouseenter"+x,function(e){y=!0}),R.on("mouseleave"+x,function(e){y=!1}),R.find(".thumb").on("touchstart"+x,E.event.touchDown).on("touchmove"+x,E.event.move).on("touchend"+x,E.event.up).on("touchcancel"+x,E.event.touchCancel)},slidingEvents:function(){E.verbose("Binding page wide events while handle is being draged"),A.on("mousemove"+x,E.event.move),A.on("mouseup"+x,E.event.up)},windowEvents:function(){F.on("resize"+x,E.event.resize)}},unbind:{events:function(){R.find(".track, .thumb, .inner").off("mousedown"+x),R.off("mousedown"+x),R.off("mouseenter"+x),R.off("mouseleave"+x),R.find(".thumb").off("touchstart"+x).off("touchmove"+x).off("touchend"+x).off("touchcancel"+x),R.off("keydown"+x),R.off("focusout"+x),A.off("keydown"+x+t,E.event.activateFocus),F.off("resize"+x)},slidingEvents:function(){A.off("mousemove"+x),A.off("mouseup"+x)}},event:{down:function(e){e.preventDefault(),E.is.range()?(e=E.determine.eventPos(e),e=E.determine.pos(e),l=p.preventCrossover&&E.is.range()&&E.thumbVal===E.secondThumbVal?void(i=e):E.determine.closestThumb(e),void 0===b&&(b=E.get.currentThumbValue())):void 0===b&&(b=E.get.value()),E.is.disabled()||E.bind.slidingEvents()},touchDown:function(e){e.preventDefault(),e.stopImmediatePropagation(),void 0===r&&(l=X(e.target),e=e.touches?e:e.originalEvent,r=e.targetTouches[0].identifier,void 0===b&&(b=E.get.currentThumbValue()))},move:function(e){if("mousemove"===e.type&&e.preventDefault(),!E.is.disabled()){var t=E.determine.valueFromEvent(e);if("mousemove"===e.type&&void 0===l&&(n=E.determine.eventPos(e),n=E.determine.pos(n),l=n<i?s:u),E.is.range()&&(p.minRange||p.maxRange)){var n=E.get.currentRangeDiff(t),a=l.hasClass("second");if(p.minRange&&n<p.minRange||p.maxRange&&n>p.maxRange||p.preventCrossover&&!a&&t>E.secondThumbVal||p.preventCrossover&&a&&t<E.thumbVal)return}0===E.get.step()||E.is.smooth()?(n=E.thumbVal,a=E.secondThumbVal,e=E.determine.smoothValueFromEvent(e),l.hasClass("second")?(p.preventCrossover&&E.is.range()&&(t=Math.max(n,t),e=Math.max(n,e)),a=t):(p.preventCrossover&&E.is.range()&&(t=Math.min(a,t),e=Math.min(a,e)),n=t),t=Math.abs(n-(a||0)),E.update.position(e),p.onMove.call(C,t,n,a)):E.update.value(t,function(e,t,n){p.onMove.call(C,e,t,n)})}},up:function(e){var t;e.preventDefault(),E.is.disabled()||(e=E.determine.valueFromEvent(e),E.is.range()&&(p.minRange||p.maxRange)&&(void 0===l&&(l=e<=E.get.currentThumbValue()?s:u),t=E.get.currentRangeDiff(e),p.minRange&&t<p.minRange?e=E.get.edgeValue(e,p.minRange):p.maxRange&&t>p.maxRange&&(e=E.get.edgeValue(e,p.maxRange))),E.set.value(e),E.unbind.slidingEvents(),(r=void 0)!==b&&(b=void 0))},touchCancel:function(e){e.preventDefault(),(r=void 0)!==b&&(E.update.value(b),b=void 0)},keydown:function(e,t){if(!E.is.disabled()&&(p.preventCrossover&&E.is.range()&&E.thumbVal===E.secondThumbVal&&(l=void 0),E.is.focused()&&A.trigger(e),t||E.is.focused())){t=E.determine.keyMovement(e);if(0!==t)switch(e.preventDefault(),t){case 1:E.takeStep();break;case 2:E.takeStep(E.get.multiplier());break;case-1:E.backStep();break;case-2:E.backStep(E.get.multiplier())}}},activateFocus:function(e){E.is.disabled()||E.is.focused()||!E.is.hover()||0===E.determine.keyMovement(e)||(e.preventDefault(),E.event.keydown(e,!0),R.trigger("focus"))},resize:function(e){L!==E.get.gapRatio()&&(E.setup.labels(),L=E.get.gapRatio())}},resync:function(){E.verbose("Resyncing thumb position based on value"),E.is.range()&&E.update.position(E.secondThumbVal,u),E.update.position(E.thumbVal,s),E.setup.labels()},takeStep:function(e){e=e||1;var t=E.get.step(),n=E.get.currentThumbValue();E.verbose("Taking a step"),0<t?E.set.value(n+t*e):0===t&&(t=E.get.precision(),E.set.value(Math.round((n+e/t)*t)/t))},backStep:function(e){e=e||1;var t=E.get.step(),n=E.get.currentThumbValue();E.verbose("Going back a step"),0<t?E.set.value(n-t*e):0===t&&(t=E.get.precision(),E.set.value(Math.round((n-e/t)*t)/t))},is:{range:function(){var e=R.hasClass(n.range);return e||!p.minRange&&!p.maxRange||(R.addClass(n.range),e=!0),e},hover:function(){return y},focused:function(){return R.is(":focus")},disabled:function(){return R.hasClass(n.disabled)},labeled:function(){var e=R.hasClass(n.labeled);return!e&&(0<p.restrictedLabels.length||!1!==p.showLabelTicks)&&(R.addClass(n.labeled),e=!0),e},reversed:function(){return R.hasClass(n.reversed)},vertical:function(){return R.hasClass(n.vertical)},smooth:function(){return p.smooth||R.hasClass(n.smooth)}},get:{currentRangeDiff:function(e){e=l.hasClass("second")?E.thumbVal<e?e-E.thumbVal:E.thumbVal-e:E.secondThumbVal>e?E.secondThumbVal-e:e-E.secondThumbVal;return e},edgeValue:function(e,t){return e=l.hasClass("second")?E.thumbVal<e?E.thumbVal+t:E.thumbVal-t:E.secondThumbVal<e?E.secondThumbVal+t:E.secondThumbVal-t},trackOffset:function(){return E.is.vertical()?e.offset().top:e.offset().left},trackLength:function(){return E.is.vertical()?e.height():e.width()},trackLeft:function(){return E.is.vertical()?e.position().top:e.position().left},trackStartPos:function(){return E.is.reversed()?E.get.trackLeft()+E.get.trackLength():E.get.trackLeft()},trackEndPos:function(){return E.is.reversed()?E.get.trackLeft():E.get.trackLeft()+E.get.trackLength()},trackStartMargin:function(){var e=E.is.vertical()?E.is.reversed()?R.css("padding-bottom"):R.css("padding-top"):E.is.reversed()?R.css("padding-right"):R.css("padding-left");return e||"0px"},trackEndMargin:function(){var e=E.is.vertical()?E.is.reversed()?R.css("padding-top"):R.css("padding-bottom"):E.is.reversed()?R.css("padding-left"):R.css("padding-right");return e||"0px"},precision:function(){var e=E.get.step(),e=(e=0!==e?2===(e=String(e).split(".")).length?e[1].length:0:p.decimalPlaces,Math.pow(10,e));return E.debug("Precision determined",e),e},min:function(){return p.min},max:function(){var e=E.get.step(),t=E.get.min(),n=E.get.precision(),n=0===e?0:Math.floor(Math.round((p.max-t)/e*n)/n);return 0==(0===e?0:(p.max-t)%e)?p.max:t+n*e},step:function(){return p.step},numLabels:function(){var e=E.get.step(),t=E.get.precision(),e=Math.round((E.get.max()-E.get.min())/(0===e?1:e)*t)/t;return E.debug("Determined that there should be "+e+" labels"),e},labelType:function(){return p.labelType},label:function(e){if(w)return w(e);switch(p.labelType){case p.labelTypes.number:var t=E.get.step();return Math.round((e*(0===t?1:t)+E.get.min())*o)/o;case p.labelTypes.letter:return B[e%26];default:return e}},value:function(){return m},currentThumbValue:function(){return void 0!==l&&l.hasClass("second")?E.secondThumbVal:E.thumbVal},thumbValue:function(e){return"second"!==e?E.thumbVal:E.is.range()?E.secondThumbVal:void E.error(k.notrange)},multiplier:function(){return p.pageMultiplier},thumbPosition:function(e){return"second"!==e?g:E.is.range()?v:void E.error(k.notrange)},gapRatio:function(){var e=1;if(p.autoAdjustLabels){var t=E.get.numLabels(),n=E.get.trackLength(),a=1;if(0<n)for(;n/t*a<p.labelDistance;)t%a||(e=a),a+=1}return e}},determine:{pos:function(e){return E.is.reversed()?E.get.trackStartPos()-e+E.get.trackOffset():e-E.get.trackOffset()-E.get.trackStartPos()},closestThumb:function(e){var t=parseFloat(E.determine.thumbPos(s)),t=Math.abs(e-t),n=parseFloat(E.determine.thumbPos(u)),e=Math.abs(e-n);return(t!==e||E.get.thumbValue()!==E.get.min())&&t<=e?s:u},closestThumbPos:function(e){var t=parseFloat(E.determine.thumbPos(s)),n=Math.abs(e-t),a=parseFloat(E.determine.thumbPos(u));return n<=Math.abs(e-a)?t:a},thumbPos:function(e){return E.is.vertical()?E.is.reversed()?e.css("bottom"):e.css("top"):E.is.reversed()?e.css("right"):e.css("left")},positionFromValue:function(e){var t=E.get.min(),n=E.get.max(),e=n<e?n:e<t?t:e,a=E.get.trackLength(),n=Math.round((e-t)/(n-t)*a);return E.verbose("Determined position: "+n+" from value: "+e),n},positionFromRatio:function(e){var t=E.get.trackLength(),n=E.get.step(),t=Math.round(e*t),n=0===n?t:Math.round(t/n)*n;return E.verbose("Determined position: "+t+" from ratio: "+e),n},valueFromEvent:function(e){var e=E.determine.eventPos(e),t=E.determine.pos(e),e=e<E.get.trackOffset()?E.is.reversed()?E.get.max():E.get.min():e>E.get.trackOffset()+E.get.trackLength()?E.is.reversed()?E.get.min():E.get.max():E.determine.value(t);return e},smoothValueFromEvent:function(e){var t=E.get.min(),n=E.get.max(),a=E.get.trackLength(),e=E.determine.eventPos(e)-E.get.trackOffset(),e=(e=e<0?0:a<e?a:e)/a;return(e=E.is.reversed()?1-e:e)*(n-t)+t},eventPos:function(e){if("touchmove"===e.type||"touchend"===e.type){for(var t=e.touches?e:e.originalEvent,n=t.changedTouches[0],a=0;a<t.touches.length;a++)if(t.touches[a].identifier===r){n=t.touches[a];break}var o=n.pageY,i=n.pageX;return E.is.vertical()?o:i}o=e.pageY||e.originalEvent.pageY,i=e.pageX||e.originalEvent.pageX;return E.is.vertical()?o:i},value:function(e){var t=E.is.reversed()?E.get.trackEndPos():E.get.trackStartPos(),t=(e-t)/((E.is.reversed()?E.get.trackStartPos():E.get.trackEndPos())-t),n=E.get.max()-E.get.min(),a=E.get.step(),t=t*n,n=0===a?t:Math.round(t/a)*a;return E.verbose("Determined value based upon position: "+e+" as: "+t),t!=n&&E.verbose("Rounding value to closest step: "+n),E.verbose("Cutting off additional decimal places"),Math.round((n+E.get.min())*o)/o},keyMovement:function(e){var e=e.which,t=!E.is.vertical()||E.is.reversed()?T.downArrow:T.upArrow,n=!E.is.vertical()||E.is.reversed()?T.upArrow:T.downArrow,a=!E.is.vertical()&&E.is.reversed()?T.rightArrow:T.leftArrow,o=!E.is.vertical()&&E.is.reversed()?T.leftArrow:T.rightArrow;return e===t||e===a?-1:e===n||e===o?1:e===T.pageDown?-2:e===T.pageUp?2:0}},handleNewValuePosition:function(e){var t=E.get.min(),n=E.get.max();return e<=t?e=t:n<=e&&(e=n),E.determine.positionFromValue(e)},set:{value:function(a,o){o=!1!==o;var i=void 0===b;b=void 0===b?E.get.value():b,E.update.value(a,function(e,t,n){h&&!p.fireOnInit||!o||(a!==b&&p.onChange.call(C,e,t,n),p.onMove.call(C,e,t,n)),i&&(b=void 0)})},rangeValue:function(e,t,n){var a,o,i;n=!1!==n,E.is.range()?(a=E.get.min(),o=E.get.max(),b=(i=void 0===b)?E.get.value():b,e<=a?e=a:o<=e&&(e=o),t<=a?t=a:o<=t&&(t=o),E.thumbVal=e,E.secondThumbVal=t,m=Math.abs(E.thumbVal-E.secondThumbVal),E.update.position(E.thumbVal,s),E.update.position(E.secondThumbVal,u),h&&!p.fireOnInit||!n||(m!==b&&p.onChange.call(C,m,E.thumbVal,E.secondThumbVal),p.onMove.call(C,m,E.thumbVal,E.secondThumbVal)),i&&(b=void 0)):E.error(k.notrange)},position:function(e,t){e=E.determine.value(e);"second"===t?(E.secondThumbVal=e,E.update.position(e,u)):(E.thumbVal=e,E.update.position(e,s)),m=Math.abs(E.thumbVal-(E.secondThumbVal||0)),E.set.value(m)}},update:{value:function(e,t){var n=E.get.min(),a=E.get.max();e<=n?e=n:a<=e&&(e=a),E.is.range()?((l=void 0===l?e<=E.get.currentThumbValue()?s:u:l).hasClass("second")?(p.preventCrossover&&E.is.range()&&(e=Math.max(E.thumbVal+(p.minRange||0),e)),E.secondThumbVal=e):(p.preventCrossover&&E.is.range()&&(e=Math.min(E.secondThumbVal-(p.minRange||0),e)),E.thumbVal=e),m=Math.abs(E.thumbVal-E.secondThumbVal)):(m=e,E.thumbVal=m),E.update.position(e),E.debug("Setting slider value to "+m),"function"==typeof t&&t(m,E.thumbVal,E.secondThumbVal)},position:function(e,t){var n=E.handleNewValuePosition(e),t=t||l,a=E.thumbVal||E.get.min(),o=E.secondThumbVal||E.get.min();p.showThumbTooltip&&(r=E.get.precision(),t.attr("data-tooltip",Math.round(e*r)/r)),E.is.range()&&t.hasClass("second")?(v=n,o=e):(g=n,a=e);var i,r=E.get.min(),s=E.get.max(),e=(e-r)/(s-r)*100,u=(Math.min(a,o)-r)/(s-r)*100,a=100*(1-(Math.max(a,o)-r)/(s-r)),o=E.is.vertical()?E.is.reversed()?(i={bottom:"calc("+e+"% - "+f+"px)",top:"auto"},{bottom:u+"%",top:a+"%"}):(i={top:"calc("+e+"% - "+f+"px)",bottom:"auto"},{top:u+"%",bottom:a+"%"}):E.is.reversed()?(i={right:"calc("+e+"% - "+f+"px)",left:"auto"},{right:u+"%",left:a+"%"}):(i={left:"calc("+e+"% - "+f+"px)",right:"auto"},{left:u+"%",right:a+"%"});t.css(i),d.css(o),E.debug("Setting slider position to "+n)},labelPosition:function(e,t){var n=E.get.trackStartMargin(),a=E.get.trackEndMargin(),o=E.is.vertical()?E.is.reversed()?"bottom":"top":E.is.reversed()?"right":"left",i=E.is.reversed()&&!E.is.vertical()?" - ":" + ";t.css(o,"calc("+("(100% - "+n+" - "+a+") * "+e)+i+n+")")}},goto:{max:function(){E.set.value(E.get.max())},min:function(){E.set.value(E.get.min())}},read:{metadata:function(){var e={thumbVal:R.data(a.thumbVal),secondThumbVal:R.data(a.secondThumbVal)};e.thumbVal&&(E.is.range()&&e.secondThumbVal?(E.debug("Current value set from metadata",e.thumbVal,e.secondThumbVal),E.set.rangeValue(e.thumbVal,e.secondThumbVal)):(E.debug("Current value set from metadata",e.thumbVal),E.set.value(e.thumbVal)))},settings:function(){var e;!1!==p.start&&(E.is.range()?(((e=p.end-p.start)<0||p.minRange&&e<p.minRange||p.maxRange&&e>p.maxRange||p.minRange&&p.maxRange&&p.minRange>p.maxRange)&&E.error(k.invalidRanges,p.start,p.end,p.minRange,p.maxRange),E.debug("Start position set from settings",p.start,p.end),E.set.rangeValue(p.start,p.end)):(E.debug("Start position set from settings",p.start),E.set.value(p.start)))}},setting:function(e,t){if(E.debug("Changing setting",e,t),X.isPlainObject(e))X.extend(!0,p,e);else{if(void 0===t)return p[e];X.isPlainObject(p[e])?X.extend(!0,p[e],t):p[e]=t}},internal:function(e,t){if(X.isPlainObject(e))X.extend(!0,E,e);else{if(void 0===t)return E[e];E[e]=t}},debug:function(){!p.silent&&p.debug&&(p.performance?E.performance.log(arguments):(E.debug=Function.prototype.bind.call(console.info,console,p.name+":"),E.debug.apply(console,arguments)))},verbose:function(){!p.silent&&p.verbose&&p.debug&&(p.performance?E.performance.log(arguments):(E.verbose=Function.prototype.bind.call(console.info,console,p.name+":"),E.verbose.apply(console,arguments)))},error:function(){p.silent||(E.error=Function.prototype.bind.call(console.error,console,p.name+":"),E.error.apply(console,arguments))},performance:{log:function(e){var t,n;p.performance&&(n=(t=Date.now())-(O||t),O=t,j.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:C,"Execution Time":n})),clearTimeout(E.performance.timer),E.performance.timer=setTimeout(function(){E.performance.display()},500)},display:function(){var e=p.name+":",n=0;O=!1,clearTimeout(E.performance.timer),X.each(j,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",0<j.length&&(console.groupCollapsed(e),console.table?console.table(j):X.each(j,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),j=[]}},invoke:function(a,e,t){var o,i,n,r,s=P;return e=e||N,t=t||C,"string"==typeof a&&void 0!==s&&(a=a.split(/[ .]/),o=a.length-1,X.each(a,function(e,t){var n=e!==o?t+a[e+1].charAt(0).toUpperCase()+a[e+1].slice(1):a;if(X.isPlainObject(s[n])&&e!==o)s=s[n];else{if(void 0!==s[n])return i=s[n],!1;{if(!X.isPlainObject(s[t])||e===o)return void 0!==s[t]?i=s[t]:E.error(k.method,a),!1;s=s[t]}}})),"function"==typeof(r=i)&&"number"!=typeof r.nodeType?n=i.apply(t,e):void 0!==i&&(n=i),Array.isArray(S)?S.push(n):void 0!==S?S=[S,n]:void 0!==n&&(S=n),i}};z?(void 0===P&&E.initialize(),E.invoke(I)):(void 0!==P&&P.invoke("destroy"),E.initialize())}),void 0!==S?S:this},X.fn.slider.settings={silent:!1,debug:!1,verbose:!1,performance:!0,name:"Slider",namespace:"slider",error:{method:"The method you called is not defined.",notrange:"This slider is not a range slider",invalidRanges:"Invalid range settings (start/end/minRange/maxRange)"},metadata:{thumbVal:"thumbVal",secondThumbVal:"secondThumbVal"},min:0,max:20,step:1,start:0,end:20,minRange:!1,maxRange:!1,labelType:"number",showLabelTicks:!1,smooth:!1,autoAdjustLabels:!0,labelDistance:100,preventCrossover:!0,fireOnInit:!1,interpretLabel:!1,decimalPlaces:2,pageMultiplier:2,selector:{},className:{reversed:"reversed",disabled:"disabled",labeled:"labeled",ticked:"ticked",vertical:"vertical",range:"range",smooth:"smooth"},keys:{pageUp:33,pageDown:34,leftArrow:37,upArrow:38,rightArrow:39,downArrow:40},restrictedLabels:[],showThumbTooltip:!1,tooltipConfig:{position:"top center",variation:"tiny black"},labelTypes:{number:"number",letter:"letter"},onChange:function(e,t,n){},onMove:function(e,t,n){}}}(jQuery,window,document);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.3-beta.9+e2d4cc1 - State
2
+ * # Fomantic-UI 2.9.4-beta.0+09d83ec - State
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -482,7 +482,7 @@
482
482
  });
483
483
  }
484
484
  clearTimeout(module.performance.timer);
485
- module.performance.timer = setTimeout(module.performance.display, 500);
485
+ module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
486
486
  },
487
487
  display: function () {
488
488
  var