fomantic-ui 2.10.0-beta.64 → 2.10.0-beta.66

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 (245) hide show
  1. package/.eslintrc.js +0 -3
  2. package/.stylelintrc.js +1 -13
  3. package/dist/components/accordion.css +1 -1
  4. package/dist/components/accordion.js +1 -1
  5. package/dist/components/accordion.min.css +1 -1
  6. package/dist/components/accordion.min.js +1 -1
  7. package/dist/components/ad.css +1 -1
  8. package/dist/components/ad.min.css +1 -1
  9. package/dist/components/api.js +2 -2
  10. package/dist/components/api.min.js +2 -2
  11. package/dist/components/breadcrumb.css +1 -1
  12. package/dist/components/breadcrumb.min.css +1 -1
  13. package/dist/components/button.css +1 -1
  14. package/dist/components/button.min.css +1 -1
  15. package/dist/components/calendar.css +1 -1
  16. package/dist/components/calendar.js +21 -21
  17. package/dist/components/calendar.min.css +1 -1
  18. package/dist/components/calendar.min.js +2 -2
  19. package/dist/components/card.css +1 -1
  20. package/dist/components/card.min.css +1 -1
  21. package/dist/components/checkbox.css +1 -1
  22. package/dist/components/checkbox.js +1 -10
  23. package/dist/components/checkbox.min.css +1 -1
  24. package/dist/components/checkbox.min.js +2 -2
  25. package/dist/components/comment.css +1 -1
  26. package/dist/components/comment.min.css +1 -1
  27. package/dist/components/container.css +1 -1
  28. package/dist/components/container.min.css +1 -1
  29. package/dist/components/dimmer.css +1 -1
  30. package/dist/components/dimmer.js +1 -1
  31. package/dist/components/dimmer.min.css +1 -1
  32. package/dist/components/dimmer.min.js +1 -1
  33. package/dist/components/divider.css +1 -1
  34. package/dist/components/divider.min.css +1 -1
  35. package/dist/components/dropdown.css +9 -25
  36. package/dist/components/dropdown.js +6 -12
  37. package/dist/components/dropdown.min.css +2 -2
  38. package/dist/components/dropdown.min.js +2 -2
  39. package/dist/components/embed.css +1 -1
  40. package/dist/components/embed.js +1 -1
  41. package/dist/components/embed.min.css +1 -1
  42. package/dist/components/embed.min.js +1 -1
  43. package/dist/components/emoji.css +1 -1
  44. package/dist/components/emoji.min.css +1 -1
  45. package/dist/components/feed.css +1 -1
  46. package/dist/components/feed.min.css +1 -1
  47. package/dist/components/flag.css +1 -1
  48. package/dist/components/flag.min.css +1 -1
  49. package/dist/components/flyout.css +1 -1
  50. package/dist/components/flyout.js +8 -6
  51. package/dist/components/flyout.min.css +1 -1
  52. package/dist/components/flyout.min.js +2 -2
  53. package/dist/components/form.css +3 -5
  54. package/dist/components/form.js +2 -2
  55. package/dist/components/form.min.css +2 -2
  56. package/dist/components/form.min.js +2 -2
  57. package/dist/components/grid.css +1 -1
  58. package/dist/components/grid.min.css +1 -1
  59. package/dist/components/header.css +1 -1
  60. package/dist/components/header.min.css +1 -1
  61. package/dist/components/icon.css +10 -37
  62. package/dist/components/icon.min.css +2 -2
  63. package/dist/components/image.css +1 -1
  64. package/dist/components/image.min.css +1 -1
  65. package/dist/components/input.css +1 -3
  66. package/dist/components/input.min.css +2 -2
  67. package/dist/components/item.css +1 -1
  68. package/dist/components/item.min.css +1 -1
  69. package/dist/components/label.css +4 -13
  70. package/dist/components/label.min.css +2 -2
  71. package/dist/components/list.css +1 -1
  72. package/dist/components/list.min.css +1 -1
  73. package/dist/components/loader.css +1 -1
  74. package/dist/components/loader.min.css +1 -1
  75. package/dist/components/menu.css +6 -21
  76. package/dist/components/menu.min.css +2 -2
  77. package/dist/components/message.css +1 -1
  78. package/dist/components/message.min.css +1 -1
  79. package/dist/components/modal.css +1 -1
  80. package/dist/components/modal.js +8 -6
  81. package/dist/components/modal.min.css +1 -1
  82. package/dist/components/modal.min.js +2 -2
  83. package/dist/components/nag.css +1 -1
  84. package/dist/components/nag.js +1 -1
  85. package/dist/components/nag.min.css +1 -1
  86. package/dist/components/nag.min.js +1 -1
  87. package/dist/components/placeholder.css +1 -1
  88. package/dist/components/placeholder.min.css +1 -1
  89. package/dist/components/popup.css +19 -73
  90. package/dist/components/popup.js +11 -13
  91. package/dist/components/popup.min.css +2 -2
  92. package/dist/components/popup.min.js +2 -2
  93. package/dist/components/progress.css +4 -13
  94. package/dist/components/progress.js +6 -6
  95. package/dist/components/progress.min.css +2 -2
  96. package/dist/components/progress.min.js +2 -2
  97. package/dist/components/rail.css +1 -1
  98. package/dist/components/rail.min.css +1 -1
  99. package/dist/components/rating.css +1 -1
  100. package/dist/components/rating.js +1 -1
  101. package/dist/components/rating.min.css +1 -1
  102. package/dist/components/rating.min.js +1 -1
  103. package/dist/components/reset.css +47 -208
  104. package/dist/components/reset.min.css +2 -2
  105. package/dist/components/reveal.css +2 -5
  106. package/dist/components/reveal.min.css +2 -2
  107. package/dist/components/search.css +2 -3
  108. package/dist/components/search.js +1 -1
  109. package/dist/components/search.min.css +2 -2
  110. package/dist/components/search.min.js +1 -1
  111. package/dist/components/segment.css +1 -1
  112. package/dist/components/segment.min.css +1 -1
  113. package/dist/components/shape.css +1 -1
  114. package/dist/components/shape.js +1 -1
  115. package/dist/components/shape.min.css +1 -1
  116. package/dist/components/shape.min.js +1 -1
  117. package/dist/components/sidebar.css +1 -1
  118. package/dist/components/sidebar.js +3 -3
  119. package/dist/components/sidebar.min.css +1 -1
  120. package/dist/components/sidebar.min.js +2 -2
  121. package/dist/components/site.css +1 -1
  122. package/dist/components/site.js +1 -1
  123. package/dist/components/site.min.css +1 -1
  124. package/dist/components/site.min.js +1 -1
  125. package/dist/components/slider.css +1 -1
  126. package/dist/components/slider.js +6 -6
  127. package/dist/components/slider.min.css +1 -1
  128. package/dist/components/slider.min.js +2 -2
  129. package/dist/components/state.js +1 -1
  130. package/dist/components/state.min.js +1 -1
  131. package/dist/components/statistic.css +1 -1
  132. package/dist/components/statistic.min.css +1 -1
  133. package/dist/components/step.css +1 -1
  134. package/dist/components/step.min.css +1 -1
  135. package/dist/components/sticky.css +1 -1
  136. package/dist/components/sticky.js +12 -14
  137. package/dist/components/sticky.min.css +1 -1
  138. package/dist/components/sticky.min.js +2 -2
  139. package/dist/components/tab.css +1 -1
  140. package/dist/components/tab.js +1 -1
  141. package/dist/components/tab.min.css +1 -1
  142. package/dist/components/tab.min.js +1 -1
  143. package/dist/components/table.css +1 -1
  144. package/dist/components/table.min.css +1 -1
  145. package/dist/components/text.css +1 -1
  146. package/dist/components/text.min.css +1 -1
  147. package/dist/components/toast.css +1 -1
  148. package/dist/components/toast.js +8 -6
  149. package/dist/components/toast.min.css +1 -1
  150. package/dist/components/toast.min.js +2 -2
  151. package/dist/components/transition.css +1 -1
  152. package/dist/components/transition.js +3 -3
  153. package/dist/components/transition.min.css +1 -1
  154. package/dist/components/transition.min.js +2 -2
  155. package/dist/components/visibility.js +12 -14
  156. package/dist/components/visibility.min.js +2 -2
  157. package/dist/semantic.css +148 -457
  158. package/dist/semantic.js +120 -135
  159. package/dist/semantic.min.css +2 -2
  160. package/dist/semantic.min.js +2 -2
  161. package/package.json +3 -3
  162. package/src/definitions/behaviors/api.js +1 -1
  163. package/src/definitions/behaviors/form.js +1 -1
  164. package/src/definitions/behaviors/visibility.js +11 -13
  165. package/src/definitions/collections/breadcrumb.less +0 -1
  166. package/src/definitions/collections/form.less +1 -7
  167. package/src/definitions/collections/grid.less +0 -1
  168. package/src/definitions/collections/menu.less +5 -21
  169. package/src/definitions/collections/message.less +0 -1
  170. package/src/definitions/collections/table.less +0 -1
  171. package/src/definitions/elements/button.less +0 -1
  172. package/src/definitions/elements/container.less +0 -1
  173. package/src/definitions/elements/divider.less +0 -1
  174. package/src/definitions/elements/emoji.less +1 -1
  175. package/src/definitions/elements/flag.less +1 -1
  176. package/src/definitions/elements/header.less +0 -1
  177. package/src/definitions/elements/icon.less +10 -37
  178. package/src/definitions/elements/image.less +0 -1
  179. package/src/definitions/elements/input.less +0 -3
  180. package/src/definitions/elements/label.less +3 -13
  181. package/src/definitions/elements/list.less +0 -1
  182. package/src/definitions/elements/loader.less +0 -1
  183. package/src/definitions/elements/placeholder.less +0 -1
  184. package/src/definitions/elements/rail.less +0 -1
  185. package/src/definitions/elements/reveal.less +1 -5
  186. package/src/definitions/elements/segment.less +0 -1
  187. package/src/definitions/elements/step.less +0 -1
  188. package/src/definitions/elements/text.less +0 -1
  189. package/src/definitions/globals/reset.less +0 -1
  190. package/src/definitions/globals/site.less +0 -1
  191. package/src/definitions/modules/accordion.less +0 -1
  192. package/src/definitions/modules/calendar.js +20 -20
  193. package/src/definitions/modules/calendar.less +0 -1
  194. package/src/definitions/modules/checkbox.js +0 -9
  195. package/src/definitions/modules/checkbox.less +0 -1
  196. package/src/definitions/modules/dimmer.less +0 -1
  197. package/src/definitions/modules/dropdown.js +5 -11
  198. package/src/definitions/modules/dropdown.less +8 -25
  199. package/src/definitions/modules/embed.less +0 -1
  200. package/src/definitions/modules/flyout.js +7 -5
  201. package/src/definitions/modules/flyout.less +0 -1
  202. package/src/definitions/modules/modal.js +7 -5
  203. package/src/definitions/modules/modal.less +0 -1
  204. package/src/definitions/modules/nag.less +0 -1
  205. package/src/definitions/modules/popup.js +10 -12
  206. package/src/definitions/modules/popup.less +18 -73
  207. package/src/definitions/modules/progress.js +5 -5
  208. package/src/definitions/modules/progress.less +3 -13
  209. package/src/definitions/modules/rating.less +0 -1
  210. package/src/definitions/modules/search.less +1 -3
  211. package/src/definitions/modules/shape.less +0 -1
  212. package/src/definitions/modules/sidebar.js +2 -2
  213. package/src/definitions/modules/sidebar.less +0 -1
  214. package/src/definitions/modules/slider.js +5 -5
  215. package/src/definitions/modules/slider.less +0 -1
  216. package/src/definitions/modules/sticky.js +11 -13
  217. package/src/definitions/modules/sticky.less +0 -1
  218. package/src/definitions/modules/tab.less +0 -1
  219. package/src/definitions/modules/toast.js +7 -5
  220. package/src/definitions/modules/toast.less +0 -1
  221. package/src/definitions/modules/transition.js +2 -2
  222. package/src/definitions/modules/transition.less +0 -1
  223. package/src/definitions/views/ad.less +0 -1
  224. package/src/definitions/views/card.less +0 -1
  225. package/src/definitions/views/comment.less +0 -1
  226. package/src/definitions/views/feed.less +0 -1
  227. package/src/definitions/views/item.less +0 -1
  228. package/src/definitions/views/statistic.less +0 -1
  229. package/src/semantic.less +1 -1
  230. package/src/themes/amazon/elements/button.variables +0 -1
  231. package/src/themes/amazon/globals/site.variables +0 -1
  232. package/src/themes/bootstrap3/elements/button.variables +0 -1
  233. package/src/themes/default/collections/form.variables +0 -1
  234. package/src/themes/default/elements/button.variables +0 -1
  235. package/src/themes/default/globals/reset.overrides +45 -201
  236. package/src/themes/default/modules/accordion.variables +0 -1
  237. package/src/themes/default/views/card.variables +0 -1
  238. package/src/themes/default/views/item.variables +0 -1
  239. package/src/themes/github/modules/dropdown.variables +0 -2
  240. package/src/themes/twitter/elements/button.variables +0 -1
  241. package/tasks/admin/distributions/create.js +2 -2
  242. package/tasks/config/project/config.js +1 -1
  243. package/tasks/install.js +3 -1
  244. package/test/meteor/assets.js +2 -2
  245. package/test/meteor/fonts.js +10 -11
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.64+bcb9c73
2
+ * # Fomantic UI - 2.10.0-beta.66+beed92a
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(k,z,T){"use strict";z=void 0!==z&&z.Math===Math?z:globalThis,k.fn.sticky=function(...e){const t=k(this);k(T);let p=Date.now(),b=[];const v=e[0],x="string"==typeof v,C=e.slice(1),S=function(e,t){let o;return[z,T].includes(e)?o=k(e):0===(o=k(t.document).find(e)).length&&(o=t.frameElement?S(e,t.parent):z),o};let y;return t.each(function(){const c=k.isPlainObject(v)?k.extend(!0,{},k.fn.sticky.settings,v):k.extend({},k.fn.sticky.settings),t=c.className;var e=c.namespace;const l=c.error,o="."+e,n="module-"+e,i=k(this),s=k(z),a=S(c.scrollContext,z);let r,f,m=i.data(n);const d=this;let u,h;const g={initialize:function(){g.determineContainer(),g.determineContext(),g.verbose("Initializing sticky",c,r),g.save.positions(),g.checkErrors(),g.bind.events(),c.observeChanges&&g.observeChanges(),g.instantiate()},instantiate:function(){g.verbose("Storing instance of module",g),m=g,i.data(n,g)},destroy:function(){g.verbose("Destroying previous instance"),g.reset(),u&&u.disconnect(),h&&h.disconnect(),s.off("load"+o,g.event.load).off("resize"+o,g.event.resize),a.off("scrollchange"+o,g.event.scrollchange),i.removeData(n)},observeChanges:function(){u=new MutationObserver(g.event.documentChanged),h=new MutationObserver(g.event.changed),u.observe(T,{childList:!0,subtree:!0}),h.observe(d,{childList:!0,subtree:!0}),h.observe(f[0],{childList:!0,subtree:!0}),g.debug("Setting up mutation observer",h)},determineContainer:function(){r=c.container?S(c.container,z):i.offsetParent()},determineContext:function(){0===(f=c.context?S(c.context,z):r).length&&g.error(l.invalidContext,c.context,i)},checkErrors:function(){g.is.hidden()&&g.error(l.visible,i),g.cache.element.height>g.cache.context.height&&(g.reset(),g.error(l.elementSize,i))},bind:{events:function(){s.on("load"+o,g.event.load).on("resize"+o,g.event.resize),a.off("scroll"+o).on("scroll"+o,g.event.scroll).on("scrollchange"+o,g.event.scrollchange)}},event:{changed:function(e){clearTimeout(g.timer),g.timer=setTimeout(function(){g.verbose("DOM tree modified, updating sticky menu",e),g.refresh()},100)},documentChanged:function(e){Array.prototype.forEach.call(e,function(e){e.removedNodes&&Array.prototype.forEach.call(e.removedNodes,function(e){(e===d||0<k(e).find(d).length)&&(g.debug("Element removed from DOM, tearing down events"),g.destroy())})})},load:function(){g.verbose("Page contents finished loading"),requestAnimationFrame(g.refresh)},resize:function(){g.verbose("Window resized"),requestAnimationFrame(g.refresh)},scroll:function(){requestAnimationFrame(function(){a.triggerHandler("scrollchange"+o,a.scrollTop())})},scrollchange:function(e,t){g.stick(t),c.onScroll.call(d)}},refresh:function(e){g.reset(),c.context||g.determineContext(),e&&g.determineContainer(),g.save.positions(),g.stick(),c.onReposition.call(d)},supports:{sticky:function(){const e=k("<div/>");return e.addClass(t.supported),e.css("position").match("sticky")}},save:{lastScroll:function(e){g.lastScroll=e},elementScroll:function(e){g.elementScroll=e},positions:function(){const e={height:a.height()},t={margin:{top:parseInt(i.css("margin-top"),10),bottom:parseInt(i.css("margin-bottom"),10)},offset:i.offset(),width:i.outerWidth(),height:i.outerHeight()},o={offset:f.offset(),height:f.outerHeight()};g.is.standardScroll()||(g.debug("Non-standard scroll. Removing scroll offset from element offset"),e.top=a.scrollTop(),e.left=a.scrollLeft(),t.offset.top+=e.top,o.offset.top+=e.top,t.offset.left+=e.left,o.offset.left+=e.left),g.cache={fits:t.height+c.offset<=e.height,sameHeight:t.height===o.height,scrollContext:{height:e.height},element:{margin:t.margin,top:t.offset.top-t.margin.top,left:t.offset.left,width:t.width,height:t.height,bottom:t.offset.top+t.height},context:{top:o.offset.top,height:o.height,bottom:o.offset.top+o.height}},g.set.containerSize(),g.stick(),g.debug("Caching element positions",g.cache)}},get:{direction:function(e=a.scrollTop()){let t="down";return t=g.lastScroll&&g.lastScroll>e?"up":t},scrollChange:function(e=a.scrollTop()){return g.lastScroll?e-g.lastScroll:0},currentElementScroll:function(){return g.elementScroll||(g.is.top()?Math.abs(parseInt(i.css("top"),10))||0:Math.abs(parseInt(i.css("bottom"),10))||0)},elementScroll:function(e=a.scrollTop()){var t=g.cache.element,o=g.cache.scrollContext,e=g.get.scrollChange(e),t=t.height-o.height+c.offset;let n=g.get.currentElementScroll();o=n+e;return n=g.cache.fits||o<0?0:t<o?t:o}},remove:{lastScroll:function(){delete g.lastScroll},elementScroll:function(){delete g.elementScroll},minimumSize:function(){r.css("min-height","")},offset:function(){i.css("margin-top","")}},set:{offset:function(){g.verbose("Setting offset on element",c.offset),i.css("margin-top",c.offset)},containerSize:function(){var e=r[0].tagName;"HTML"===e||"body"===e?g.determineContainer():((e=Math.max(g.cache.context.height,g.cache.element.height))-r.outerHeight()>c.jitter?(g.debug("Context is taller than container. Specifying exact height for container",g.cache.context.height),r.css({height:e})):r.css({height:""}),Math.abs(r.outerHeight()-g.cache.context.height)>c.jitter&&(g.debug("Context has padding, specifying exact height for container",g.cache.context.height),r.css({height:g.cache.context.height})))},minimumSize:function(){var e=g.cache.element;r.css("min-height",e.height)},scroll:function(e){g.debug("Setting scroll on element",e),g.elementScroll!==e&&(g.is.top()&&i.css("bottom","").css("top",-e+"px"),g.is.bottom()&&i.css("top","").css("bottom",e+"px"))},size:function(){0!==g.cache.element.height&&0!==g.cache.element.width&&(d.style.setProperty("width",g.cache.element.width+"px","important"),d.style.setProperty("height",g.cache.element.height+"px","important"))}},is:{standardScroll:function(){return a[0]===z},top:function(){return i.hasClass(t.top)},bottom:function(){return i.hasClass(t.bottom)},initialPosition:function(){return!g.is.fixed()&&!g.is.bound()},hidden:function(){return!i.is(":visible")},bound:function(){return i.hasClass(t.bound)},fixed:function(){return i.hasClass(t.fixed)}},stick:function(e=a.scrollTop()){var t=g.cache,o=t.fits,n=t.sameHeight,i=t.element,s=t.scrollContext,t=t.context,r=g.is.bottom()&&c.pushing?c.bottomOffset:c.offset,e={top:e+r,bottom:e+r+s.height},r=o?0:g.get.elementScroll(e.top),s=!o;0===i.height||n||(g.is.initialPosition()?e.top>=t.bottom?(g.debug("Initial element position is bottom of container"),g.bindBottom()):e.top>i.top&&(i.height+e.top-r>=t.bottom&&i.height<t.height?(g.debug("Initial element position is bottom of container"),g.bindBottom()):(g.debug("Initial element position is fixed"),g.fixTop())):g.is.fixed()?g.is.top()?e.top<=i.top?(g.debug("Fixed element reached top of container"),g.setInitialPosition()):i.height+e.top-r>=t.bottom?(g.debug("Fixed element reached bottom of container"),g.bindBottom()):s&&(g.set.scroll(r),g.save.lastScroll(e.top),g.save.elementScroll(r)):g.is.bottom()&&(e.bottom-i.height<=i.top?(g.debug("Bottom fixed rail has reached top of container"),g.setInitialPosition()):e.bottom>=t.bottom?(g.debug("Bottom fixed rail has reached bottom of container"),g.bindBottom()):s&&(g.set.scroll(r),g.save.lastScroll(e.top),g.save.elementScroll(r))):g.is.bottom()&&(e.top<=i.top?(g.debug("Jumped from bottom fixed to top fixed, most likely used home/end button"),g.setInitialPosition()):c.pushing?g.is.bound()&&e.bottom<=t.bottom&&(g.debug("Fixing bottom attached element to bottom of browser."),g.fixBottom()):g.is.bound()&&e.top<=t.bottom-i.height&&(g.debug("Fixing bottom attached element to top of browser."),g.fixTop())))},bindTop:function(){g.debug("Binding element to top of parent container"),g.remove.offset(),c.setSize&&g.set.size(),i.css({left:"",top:"",marginBottom:""}).removeClass(t.fixed).removeClass(t.bottom).addClass(t.bound).addClass(t.top),c.onTop.call(d),c.onUnstick.call(d)},bindBottom:function(){g.debug("Binding element to bottom of parent container"),g.remove.offset(),c.setSize&&g.set.size(),i.css({left:"",top:""}).removeClass(t.fixed).removeClass(t.top).addClass(t.bound).addClass(t.bottom),c.onBottom.call(d),c.onUnstick.call(d)},setInitialPosition:function(){g.debug("Returning to initial position"),g.unfix(),g.unbind()},fixTop:function(){g.debug("Fixing element to top of page"),c.setSize&&g.set.size(),g.set.minimumSize(),g.set.offset(),i.css({left:g.cache.element.left,bottom:"",marginBottom:""}).removeClass(t.bound).removeClass(t.bottom).addClass(t.fixed).addClass(t.top),c.onStick.call(d)},fixBottom:function(){g.debug("Sticking element to bottom of page"),c.setSize&&g.set.size(),g.set.minimumSize(),g.set.offset(),i.css({left:g.cache.element.left,bottom:"",marginBottom:""}).removeClass(t.bound).removeClass(t.top).addClass(t.fixed).addClass(t.bottom),c.onStick.call(d)},unbind:function(){g.is.bound()&&(g.debug("Removing container bound position on element"),g.remove.offset(),i.removeClass(t.bound).removeClass(t.top).removeClass(t.bottom))},unfix:function(){g.is.fixed()&&(g.debug("Removing fixed position on element"),g.remove.minimumSize(),g.remove.offset(),i.removeClass(t.fixed).removeClass(t.top).removeClass(t.bottom),c.onUnstick.call(d))},reset:function(){g.debug("Resetting elements position"),g.unbind(),g.unfix(),g.resetCSS(),g.remove.offset(),g.remove.lastScroll()},resetCSS:function(){i.css({width:"",height:""}),r.css({height:""})},setting:function(e,t){if(k.isPlainObject(e))k.extend(!0,c,e);else{if(void 0===t)return c[e];c[e]=t}},internal:function(e,t){if(k.isPlainObject(e))k.extend(!0,g,e);else{if(void 0===t)return g[e];g[e]=t}},debug:function(...e){!c.silent&&c.debug&&(c.performance?g.performance.log(e):(g.debug=Function.prototype.bind.call(console.info,console,c.name+":"),g.debug.apply(console,e)))},verbose:function(...e){!c.silent&&c.verbose&&c.debug&&(c.performance?g.performance.log(e):(g.verbose=Function.prototype.bind.call(console.info,console,c.name+":"),g.verbose.apply(console,e)))},error:function(...e){c.silent||(g.error=Function.prototype.bind.call(console.error,console,c.name+":"),g.error.apply(console,e))},performance:{log:function(e){var t,o;c.performance&&(o=(t=Date.now())-(p||t),p=t,b.push({Name:e[0],Arguments:e.slice(1),Element:d,"Execution Time":o})),clearTimeout(g.performance.timer),g.performance.timer=setTimeout(function(){g.performance.display()},0)},display:function(){var e=c.name+":";let o=0;p=!1,clearTimeout(g.performance.timer),k.each(b,function(e,t){o+=t["Execution Time"]}),e+=" "+o+"ms",0<b.length&&(console.groupCollapsed(e),console.table(b),console.groupEnd()),b=[]}},invoke:function(n,e=C,t=d){let i=m,s,r,o;var c;return"string"==typeof n&&void 0!==i&&(n=n.split(/[ .]/),s=n.length-1,k.each(n,function(e,t){var o=e!==s?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;if(k.isPlainObject(i[o])&&e!==s)i=i[o];else{if(void 0!==i[o])return r=i[o],!1;{if(!k.isPlainObject(i[t])||e===s)return void 0!==i[t]?r=i[t]:g.error(l.method,n),!1;i=i[t]}}})),"function"==typeof(c=r)&&"number"!=typeof c.nodeType?o=r.apply(t,e):void 0!==r&&(o=r),Array.isArray(y)?y.push(o):void 0!==y?y=[y,o]:void 0!==o&&(y=o),r}};x?(void 0===m&&g.initialize(),g.invoke(v)):(void 0!==m&&m.invoke("destroy"),g.initialize())}),void 0!==y?y:this},k.fn.sticky.settings={name:"Sticky",namespace:"sticky",silent:!1,debug:!1,verbose:!0,performance:!0,pushing:!1,context:!1,container:!1,scrollContext:z,offset:0,bottomOffset:0,jitter:5,setSize:!0,observeChanges:!1,onReposition:function(){},onScroll:function(){},onStick:function(){},onUnstick:function(){},onTop:function(){},onBottom:function(){},error:{visible:"Element is hidden, you must call refresh after element becomes visible. Use silent setting to suppress this warning in production.",method:"The method you called is not defined.",invalidContext:"Context specified does not exist",elementSize:"Sticky element is larger than its container, cannot create sticky."},className:{bound:"bound",fixed:"fixed",supported:"native",top:"top",bottom:"bottom"}}}(jQuery,window,document);
11
+ !function(k,z,T){"use strict";z=void 0!==z&&z.Math===Math?z:globalThis,k.fn.sticky=function(...e){const t=k(this);k(T);let p=Date.now(),b=[];const v=e[0],x="string"==typeof v,C=e.slice(1),S=function(e,t){let o;return[z,T].includes(e)?o=k(e):0===(o=k(t.document).find(e)).length&&(o=t.frameElement?S(e,t.parent):z),o};let y;return t.each(function(){const c=k.isPlainObject(v)?k.extend(!0,{},k.fn.sticky.settings,v):k.extend({},k.fn.sticky.settings),t=c.className;var e=c.namespace;const l=c.error,o="."+e,n="module-"+e,i=k(this),s=k(z),a=S(c.scrollContext,z);let r,f,m=i.data(n);const d=this;let u,h;const g={initialize:function(){g.determineContainer(),g.determineContext(),g.verbose("Initializing sticky",c,r),g.save.positions(),g.checkErrors(),g.bind.events(),c.observeChanges&&g.observeChanges(),g.instantiate()},instantiate:function(){g.verbose("Storing instance of module",g),m=g,i.data(n,g)},destroy:function(){g.verbose("Destroying previous instance"),g.reset(),u&&u.disconnect(),h&&h.disconnect(),s.off("load"+o,g.event.load).off("resize"+o,g.event.resize),a.off("scrollchange"+o,g.event.scrollchange),i.removeData(n)},observeChanges:function(){u=new MutationObserver(g.event.documentChanged),h=new MutationObserver(g.event.changed),u.observe(T,{childList:!0,subtree:!0}),h.observe(d,{childList:!0,subtree:!0}),h.observe(f[0],{childList:!0,subtree:!0}),g.debug("Setting up mutation observer",h)},determineContainer:function(){r=c.container?S(c.container,z):i.offsetParent()},determineContext:function(){0===(f=c.context?S(c.context,z):r).length&&g.error(l.invalidContext,c.context,i)},checkErrors:function(){g.is.hidden()&&g.error(l.visible,i),g.cache.element.height>g.cache.context.height&&(g.reset(),g.error(l.elementSize,i))},bind:{events:function(){s.on("load"+o,g.event.load).on("resize"+o,g.event.resize),a.off("scroll"+o).on("scroll"+o,g.event.scroll).on("scrollchange"+o,g.event.scrollchange)}},event:{changed:function(e){clearTimeout(g.timer),g.timer=setTimeout(function(){g.verbose("DOM tree modified, updating sticky menu",e),g.refresh()},100)},documentChanged:function(e){for(const t of e)for(const o of t.removedNodes)(o===d||0<k(o).find(d).length)&&(g.debug("Element removed from DOM, tearing down events"),g.destroy())},load:function(){g.verbose("Page contents finished loading"),requestAnimationFrame(g.refresh)},resize:function(){g.verbose("Window resized"),requestAnimationFrame(g.refresh)},scroll:function(){requestAnimationFrame(function(){a.triggerHandler("scrollchange"+o,a.scrollTop())})},scrollchange:function(e,t){g.stick(t),c.onScroll.call(d)}},refresh:function(e){g.reset(),c.context||g.determineContext(),e&&g.determineContainer(),g.save.positions(),g.stick(),c.onReposition.call(d)},supports:{sticky:function(){const e=k("<div/>");return e.addClass(t.supported),e.css("position").match("sticky")}},save:{lastScroll:function(e){g.lastScroll=e},elementScroll:function(e){g.elementScroll=e},positions:function(){const e={height:a.height()},t={margin:{top:Number.parseInt(i.css("margin-top"),10),bottom:Number.parseInt(i.css("margin-bottom"),10)},offset:i.offset(),width:i.outerWidth(),height:i.outerHeight()},o={offset:f.offset(),height:f.outerHeight()};g.is.standardScroll()||(g.debug("Non-standard scroll. Removing scroll offset from element offset"),e.top=a.scrollTop(),e.left=a.scrollLeft(),t.offset.top+=e.top,o.offset.top+=e.top,t.offset.left+=e.left,o.offset.left+=e.left),g.cache={fits:t.height+c.offset<=e.height,sameHeight:t.height===o.height,scrollContext:{height:e.height},element:{margin:t.margin,top:t.offset.top-t.margin.top,left:t.offset.left,width:t.width,height:t.height,bottom:t.offset.top+t.height},context:{top:o.offset.top,height:o.height,bottom:o.offset.top+o.height}},g.set.containerSize(),g.stick(),g.debug("Caching element positions",g.cache)}},get:{direction:function(e=a.scrollTop()){let t="down";return t=g.lastScroll&&g.lastScroll>e?"up":t},scrollChange:function(e=a.scrollTop()){return g.lastScroll?e-g.lastScroll:0},currentElementScroll:function(){return g.elementScroll||(g.is.top()?Math.abs(Number.parseInt(i.css("top"),10))||0:Math.abs(Number.parseInt(i.css("bottom"),10))||0)},elementScroll:function(e=a.scrollTop()){var t=g.cache.element,o=g.cache.scrollContext,e=g.get.scrollChange(e),t=t.height-o.height+c.offset;let n=g.get.currentElementScroll();o=n+e;return n=g.cache.fits||o<0?0:t<o?t:o}},remove:{lastScroll:function(){delete g.lastScroll},elementScroll:function(){delete g.elementScroll},minimumSize:function(){r.css("min-height","")},offset:function(){i.css("margin-top","")}},set:{offset:function(){g.verbose("Setting offset on element",c.offset),i.css("margin-top",c.offset)},containerSize:function(){var e=r[0].tagName;"HTML"===e||"body"===e?g.determineContainer():((e=Math.max(g.cache.context.height,g.cache.element.height))-r.outerHeight()>c.jitter?(g.debug("Context is taller than container. Specifying exact height for container",g.cache.context.height),r.css({height:e})):r.css({height:""}),Math.abs(r.outerHeight()-g.cache.context.height)>c.jitter&&(g.debug("Context has padding, specifying exact height for container",g.cache.context.height),r.css({height:g.cache.context.height})))},minimumSize:function(){var e=g.cache.element;r.css("min-height",e.height)},scroll:function(e){g.debug("Setting scroll on element",e),g.elementScroll!==e&&(g.is.top()&&i.css("bottom","").css("top",-e+"px"),g.is.bottom()&&i.css("top","").css("bottom",e+"px"))},size:function(){0!==g.cache.element.height&&0!==g.cache.element.width&&(d.style.setProperty("width",g.cache.element.width+"px","important"),d.style.setProperty("height",g.cache.element.height+"px","important"))}},is:{standardScroll:function(){return a[0]===z},top:function(){return i.hasClass(t.top)},bottom:function(){return i.hasClass(t.bottom)},initialPosition:function(){return!g.is.fixed()&&!g.is.bound()},hidden:function(){return!i.is(":visible")},bound:function(){return i.hasClass(t.bound)},fixed:function(){return i.hasClass(t.fixed)}},stick:function(e=a.scrollTop()){var t=g.cache,o=t.fits,n=t.sameHeight,i=t.element,s=t.scrollContext,t=t.context,r=g.is.bottom()&&c.pushing?c.bottomOffset:c.offset,e={top:e+r,bottom:e+r+s.height},r=o?0:g.get.elementScroll(e.top),s=!o;0===i.height||n||(g.is.initialPosition()?e.top>=t.bottom?(g.debug("Initial element position is bottom of container"),g.bindBottom()):e.top>i.top&&(i.height+e.top-r>=t.bottom&&i.height<t.height?(g.debug("Initial element position is bottom of container"),g.bindBottom()):(g.debug("Initial element position is fixed"),g.fixTop())):g.is.fixed()?g.is.top()?e.top<=i.top?(g.debug("Fixed element reached top of container"),g.setInitialPosition()):i.height+e.top-r>=t.bottom?(g.debug("Fixed element reached bottom of container"),g.bindBottom()):s&&(g.set.scroll(r),g.save.lastScroll(e.top),g.save.elementScroll(r)):g.is.bottom()&&(e.bottom-i.height<=i.top?(g.debug("Bottom fixed rail has reached top of container"),g.setInitialPosition()):e.bottom>=t.bottom?(g.debug("Bottom fixed rail has reached bottom of container"),g.bindBottom()):s&&(g.set.scroll(r),g.save.lastScroll(e.top),g.save.elementScroll(r))):g.is.bottom()&&(e.top<=i.top?(g.debug("Jumped from bottom fixed to top fixed, most likely used home/end button"),g.setInitialPosition()):c.pushing?g.is.bound()&&e.bottom<=t.bottom&&(g.debug("Fixing bottom attached element to bottom of browser."),g.fixBottom()):g.is.bound()&&e.top<=t.bottom-i.height&&(g.debug("Fixing bottom attached element to top of browser."),g.fixTop())))},bindTop:function(){g.debug("Binding element to top of parent container"),g.remove.offset(),c.setSize&&g.set.size(),i.css({left:"",top:"",marginBottom:""}).removeClass(t.fixed).removeClass(t.bottom).addClass(t.bound).addClass(t.top),c.onTop.call(d),c.onUnstick.call(d)},bindBottom:function(){g.debug("Binding element to bottom of parent container"),g.remove.offset(),c.setSize&&g.set.size(),i.css({left:"",top:""}).removeClass(t.fixed).removeClass(t.top).addClass(t.bound).addClass(t.bottom),c.onBottom.call(d),c.onUnstick.call(d)},setInitialPosition:function(){g.debug("Returning to initial position"),g.unfix(),g.unbind()},fixTop:function(){g.debug("Fixing element to top of page"),c.setSize&&g.set.size(),g.set.minimumSize(),g.set.offset(),i.css({left:g.cache.element.left,bottom:"",marginBottom:""}).removeClass(t.bound).removeClass(t.bottom).addClass(t.fixed).addClass(t.top),c.onStick.call(d)},fixBottom:function(){g.debug("Sticking element to bottom of page"),c.setSize&&g.set.size(),g.set.minimumSize(),g.set.offset(),i.css({left:g.cache.element.left,bottom:"",marginBottom:""}).removeClass(t.bound).removeClass(t.top).addClass(t.fixed).addClass(t.bottom),c.onStick.call(d)},unbind:function(){g.is.bound()&&(g.debug("Removing container bound position on element"),g.remove.offset(),i.removeClass(t.bound).removeClass(t.top).removeClass(t.bottom))},unfix:function(){g.is.fixed()&&(g.debug("Removing fixed position on element"),g.remove.minimumSize(),g.remove.offset(),i.removeClass(t.fixed).removeClass(t.top).removeClass(t.bottom),c.onUnstick.call(d))},reset:function(){g.debug("Resetting elements position"),g.unbind(),g.unfix(),g.resetCSS(),g.remove.offset(),g.remove.lastScroll()},resetCSS:function(){i.css({width:"",height:""}),r.css({height:""})},setting:function(e,t){if(k.isPlainObject(e))k.extend(!0,c,e);else{if(void 0===t)return c[e];c[e]=t}},internal:function(e,t){if(k.isPlainObject(e))k.extend(!0,g,e);else{if(void 0===t)return g[e];g[e]=t}},debug:function(...e){!c.silent&&c.debug&&(c.performance?g.performance.log(e):(g.debug=Function.prototype.bind.call(console.info,console,c.name+":"),g.debug.apply(console,e)))},verbose:function(...e){!c.silent&&c.verbose&&c.debug&&(c.performance?g.performance.log(e):(g.verbose=Function.prototype.bind.call(console.info,console,c.name+":"),g.verbose.apply(console,e)))},error:function(...e){c.silent||(g.error=Function.prototype.bind.call(console.error,console,c.name+":"),g.error.apply(console,e))},performance:{log:function(e){var t,o;c.performance&&(o=(t=Date.now())-(p||t),p=t,b.push({Name:e[0],Arguments:e.slice(1),Element:d,"Execution Time":o})),clearTimeout(g.performance.timer),g.performance.timer=setTimeout(function(){g.performance.display()},0)},display:function(){var e=c.name+":";let o=0;p=!1,clearTimeout(g.performance.timer),k.each(b,function(e,t){o+=t["Execution Time"]}),e+=" "+o+"ms",0<b.length&&(console.groupCollapsed(e),console.table(b),console.groupEnd()),b=[]}},invoke:function(n,e=C,t=d){let i=m,s,r,o;var c;return"string"==typeof n&&void 0!==i&&(n=n.split(/[ .]/),s=n.length-1,k.each(n,function(e,t){var o=e!==s?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;if(k.isPlainObject(i[o])&&e!==s)i=i[o];else{if(void 0!==i[o])return r=i[o],!1;{if(!k.isPlainObject(i[t])||e===s)return void 0!==i[t]?r=i[t]:g.error(l.method,n),!1;i=i[t]}}})),"function"==typeof(c=r)&&"number"!=typeof c.nodeType?o=r.apply(t,e):void 0!==r&&(o=r),Array.isArray(y)?y.push(o):void 0!==y?y=[y,o]:void 0!==o&&(y=o),r}};x?(void 0===m&&g.initialize(),g.invoke(v)):(void 0!==m&&m.invoke("destroy"),g.initialize())}),void 0!==y?y:this},k.fn.sticky.settings={name:"Sticky",namespace:"sticky",silent:!1,debug:!1,verbose:!0,performance:!0,pushing:!1,context:!1,container:!1,scrollContext:z,offset:0,bottomOffset:0,jitter:5,setSize:!0,observeChanges:!1,onReposition:function(){},onScroll:function(){},onStick:function(){},onUnstick:function(){},onTop:function(){},onBottom:function(){},error:{visible:"Element is hidden, you must call refresh after element becomes visible. Use silent setting to suppress this warning in production.",method:"The method you called is not defined.",invalidContext:"Context specified does not exist",elementSize:"Sticky element is larger than its container, cannot create sticky."},className:{bound:"bound",fixed:"fixed",supported:"native",top:"top",bottom:"bottom"}}}(jQuery,window,document);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Tab
2
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Tab
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Tab
2
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Tab
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Tab
2
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Tab
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.64+bcb9c73
2
+ * # Fomantic UI - 2.10.0-beta.66+beed92a
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Table
2
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Table
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Table
2
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Table
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Text
2
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Text
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Text
2
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Text
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Toast
2
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Toast
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Toast
2
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Toast
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -246,7 +246,7 @@
246
246
  module.error(error.verticalCard);
247
247
  }
248
248
  }
249
- settings.actions.forEach(function (el) {
249
+ for (const el of settings.actions) {
250
250
  const icon = el[fields.icon]
251
251
  ? '<i ' + (el[fields.text] ? 'aria-hidden="true"' : '')
252
252
  + ' class="' + module.helpers.escape(el[fields.icon]) + ' icon"></i>'
@@ -256,6 +256,8 @@
256
256
  const click = el[fields.click] && isFunction(el[fields.click])
257
257
  ? el[fields.click]
258
258
  : function () {};
259
+ const elementRef = element;
260
+ const $moduleRef = $module;
259
261
  $actions.append($('<button/>', {
260
262
  html: icon + text,
261
263
  'aria-label': (el[fields.text] || el[fields.icon] || '').replace(/<[^>]+(>|$)/g, ''),
@@ -263,14 +265,14 @@
263
265
  on: {
264
266
  click: function () {
265
267
  const $button = $(this);
266
- if ($button.is(selector.approve) || $button.is(selector.deny) || click.call(element, $module) === false) {
268
+ if ($button.is(selector.approve) || $button.is(selector.deny) || click.call(elementRef, $moduleRef) === false) {
267
269
  return;
268
270
  }
269
271
  module.close();
270
272
  },
271
273
  },
272
274
  }));
273
- });
275
+ }
274
276
  }
275
277
  if ($actions && $actions.hasClass(className.vertical)) {
276
278
  $toast.addClass(className.vertical);
@@ -565,9 +567,9 @@
565
567
  const classes = selector.trim().split(/\s+/);
566
568
  let result = '';
567
569
 
568
- classes.forEach(function (element) {
570
+ for (const element of classes) {
569
571
  result += '.' + element;
570
- });
572
+ }
571
573
 
572
574
  return result;
573
575
  },
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Toast
2
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Toast
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.64+bcb9c73
2
+ * # Fomantic UI - 2.10.0-beta.66+beed92a
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(E,M,o){"use strict";function z(e){return"function"==typeof e&&"number"!=typeof e.nodeType}M=void 0!==M&&M.Math===Math?M:globalThis,E.fn.toast=function(...e){const t=E(this),k=E("body");let x=Date.now(),T=[];const I=e[0],P="string"==typeof I,O=e.slice(1),A=function(e,t){let n;return[M,o].includes(e)?n=E(e):0===(n=E(t.document).find(e)).length&&(n=t.frameElement?A(e,t.parent):k),n};let D;return t.each(function(){const a=E.isPlainObject(I)?E.extend(!0,{},E.fn.toast.settings,I):E.extend({},E.fn.toast.settings),i=a.className,c=a.selector,l=a.error;var e=a.namespace;const r=a.fields,t="."+e,n=e+"-module";let d=E(this),o,s,u,p,f,g,m;const h=a.context?A(a.context,M):k,v=d.hasClass("toast")||d.hasClass("message")||d.hasClass("card");let b=this,C=v?d.data(n):void 0,y;const w={initialize:function(){w.verbose("Initializing element"),w.create.id(),w.has.container()||w.create.container(),(v||""!==a.message||""!==a.title||""!==w.get.iconClass()||a.showImage||w.has.configActions())&&("string"==typeof a.showProgress&&[i.top,i.bottom].includes(a.showProgress)||(a.showProgress=!1),w.create.toast(),a.closeOnClick&&(a.closeIcon||0<E(s).find(c.input).length||w.has.configActions())&&(a.closeOnClick=!1),a.closeOnClick||o.addClass(i.unclickable),w.bind.events()),w.instantiate(),o&&w.show()},instantiate:function(){w.verbose("Storing instance of toast"),C=w,d.data(n,C)},destroy:function(){o&&(w.debug("Removing toast",o),w.unbind.events(),a.onRemove.call(o,b),o.remove(),o=void 0,s=void 0,g=void 0,p=void 0,f=void 0,m=void 0),d.removeData(n)},show:function(e=function(){}){!1===a.onShow.call(o,b)?w.debug("onShow callback returned false, cancelling toast animation"):(w.debug("Showing toast"),w.animate.show(e))},close:function(e=function(){}){!1===a.onHide.call(o,b)?w.debug("onHide callback returned false, cancelling toast animation"):(w.debug("Closing toast"),w.remove.visible(),w.unbind.events(),w.animate.close(e))},create:{container:function(){w.verbose("Creating container"),h.append(E("<div/>",{class:a.position+" "+i.container+" "+(a.horizontal?i.horizontal:"")+" "+(a.context&&"body"!==a.context?i.absolute:"")}))},id:function(){y=(Math.random().toString(16)+"000000000").slice(2,10),w.verbose("Creating unique id for element",y)},toast:function(){o=E("<div/>",{class:i.box});var e=w.get.iconClass();if(v)s=a.cloneModule?d.clone().removeAttr("id"):d,m=s.find("> i"+w.helpers.toClass(i.close)),a.closeIcon=0<m.length,""!==e&&s.find(c.icon).attr("class",e+" "+i.icon),a.showImage&&s.find(c.image).attr("src",a.showImage).attr("alt",a.alt||""),""!==a.title&&s.find(c.title).html(w.helpers.escape(a.title,a)),""!==a.message&&s.find(c.message).html(w.helpers.escape(a.message,a));else{w.verbose("Creating toast"),s=E("<div/>",{role:"alert"});const t=E("<div/>",{class:i.content});""!==e&&s.append(E("<i/>",{class:e+" "+i.icon})),a.showImage&&s.append(E("<img>",{class:i.image+" "+a.classImage,src:a.showImage,alt:a.alt||""})),""!==a.title&&(e="_"+w.get.id()+"title",s.attr("aria-labelledby",e),t.append(E("<div/>",{class:i.title,id:e,html:w.helpers.escape(a.title,a)})));var e="_"+w.get.id()+"desc";s.attr("aria-describedby",e),t.append(E("<div/>",{class:i.message,id:e,html:w.helpers.escape(a.message,a)})),s.addClass(a.class+" "+i.toast).append(t),s.css("opacity",String(a.opacity)),a.closeIcon&&((m=E("<i/>",{class:i.close+" "+("string"==typeof a.closeIcon?a.closeIcon:""),role:"button",tabindex:0,"aria-label":a.text.close})).hasClass(i.left)?s.prepend(m):s.append(m))}s.hasClass(i.compact)&&(a.compact=!0),s.hasClass("card")&&(a.compact=!1),u=s.find(".actions"),w.has.configActions()&&(0===u.length&&(u=E("<div/>",{class:i.actions+" "+(a.classActions||"")}).appendTo(s)),s.hasClass("card")&&!u.hasClass(i.attached)&&(u.addClass(i.extraContent),u.hasClass(i.vertical)&&(u.removeClass(i.vertical),w.error(l.verticalCard))),a.actions.forEach(function(e){var t=e[r.icon]?"<i "+(e[r.text]?'aria-hidden="true"':"")+' class="'+w.helpers.escape(e[r.icon])+' icon"></i>':"",n=w.helpers.escape(e[r.text]||"",a),o=w.helpers.escape(e[r.class]||"");const s=e[r.click]&&z(e[r.click])?e[r.click]:function(){};u.append(E("<button/>",{html:t+n,"aria-label":(e[r.text]||e[r.icon]||"").replace(/<[^>]+(>|$)/g,""),class:i.button+" "+o,on:{click:function(){const e=E(this);e.is(c.approve)||e.is(c.deny)||!1===s.call(b,d)||w.close()}}}))})),u&&u.hasClass(i.vertical)&&s.addClass(i.vertical),0<u.length&&!u.hasClass(i.attached)&&u&&(!u.hasClass(i.basic)||u.hasClass(i.left))&&s.addClass(i.actions),"auto"===a.displayTime&&(a.displayTime=Math.max(a.minDisplayTime,s.text().split(" ").length/a.wordsPerMinute*6e4)),o.append(s),0<u.length&&u.hasClass(i.attached)&&(u.addClass(i.buttons),u.detach(),s.addClass(i.attached),u.hasClass(i.vertical)?(s.wrap(E("<div/>",{class:i.vertical+" "+i.attached+" "+(a.compact?i.compact:"")})),u.hasClass(i.left)?s.addClass(i.left).parent().addClass(i.left).prepend(u):s.parent().append(u)):u.hasClass(i.top)?(o.prepend(u),s.addClass(i.bottom)):(o.append(u),s.addClass(i.top))),d!==s&&(d=s,b=s[0]),0<a.displayTime&&(e=i.progressing+" "+(a.pauseOnHover?i.pausable:""),a.showProgress&&(p=E("<div/>",{class:i.progress+" "+(a.classProgress||a.class),"data-percent":""}),a.classProgress||(s.hasClass("toast")&&!s.hasClass(i.inverted)?p.addClass(i.inverted):p.removeClass(i.inverted)),f=E("<div/>",{class:"bar "+(a.progressUp?"up ":"down ")+e}),p.addClass(a.showProgress).append(f),p.hasClass(i.top)?o.prepend(p):o.append(p),f.css("animation-duration",a.displayTime/1e3+"s")),(g=E("<span/>",{class:"wait "+e})).css("animation-duration",a.displayTime/1e3+"s"),g.appendTo(s)),a.compact&&(o.addClass(i.compact),s.addClass(i.compact),p&&p.addClass(i.compact)),a.newestOnTop?o.prependTo(w.get.container()):o.appendTo(w.get.container())}},bind:{events:function(){w.debug("Binding events to toast"),a.closeIcon&&m.on("click"+t,w.event.close),s.on("click"+t,w.event.click),g&&g.on("animationend"+t,w.event.close),o.on("click"+t,c.approve,w.event.approve).on("click"+t,c.deny,w.event.deny)}},unbind:{events:function(){w.debug("Unbinding events to toast"),a.closeIcon&&m.off("click"+t),s.off("click"+t),g&&g.off("animationend"+t),o.off("click"+t)}},animate:{show:function(e){e=z(e)?e:function(){},a.transition&&w.can.useElement("transition")&&(w.set.visible(),o.transition({animation:a.transition.showMethod+" in",queue:!1,debug:a.debug,verbose:a.verbose,silent:a.silent,duration:a.transition.showDuration,onComplete:function(){e.call(o,b),a.onVisible.call(o,b)}}))},close:function(e){e=z(e)?e:function(){},a.transition&&void 0!==E.fn.transition?o.transition({animation:a.transition.hideMethod+" out",queue:!1,duration:a.transition.hideDuration,debug:a.debug,verbose:a.verbose,silent:a.silent,interval:50,onBeforeHide:function(e){e=z(e)?e:function(){},""!==a.transition.closeEasing?o&&(o.css("opacity","0"),o.wrap("<div/>").parent().hide(a.transition.closeDuration,a.transition.closeEasing,function(){o&&(o.parent().remove(),e.call(o))})):e.call(o)},onComplete:function(){e.call(o,b),a.onHidden.call(o,b),w.destroy()}}):w.error(l.noTransition)},pause:function(){g.css("animationPlayState","paused"),f&&f.css("animationPlayState","paused")},continue:function(){g.css("animationPlayState","running"),f&&f.css("animationPlayState","running")}},has:{container:function(){return w.verbose("Determining if there is already a container"),0<w.get.containers().length},toast:function(){return!!w.get.toast()},toasts:function(){return 0<w.get.toasts().length},configActions:function(){return Array.isArray(a.actions)&&0<a.actions.length}},get:{id:function(){return y},containers:function(){return h.children(w.helpers.toClass(a.position)+c.container+(a.horizontal?w.helpers.toClass(i.horizontal):":not("+w.helpers.toClass(i.horizontal)+")")+(a.context&&"body"!==a.context?w.helpers.toClass(i.absolute):":not("+w.helpers.toClass(i.absolute)+")"))},container:function(){return w.get.containers()[0]},toastBox:function(){return o||null},toast:function(){return s||null},toasts:function(){return E(w.get.container()).find(c.box)},iconClass:function(){return"string"==typeof a.showIcon?a.showIcon:a.showIcon&&a.icons[a.class]?a.icons[a.class]:""},remainingTime:function(){return g?g.css("opacity")*a.displayTime:0}},set:{visible:function(){s.addClass(i.visible)}},remove:{visible:function(){s.removeClass(i.visible)}},event:{close:function(){w.close()},click:function(e){0===E(e.target).closest(c.clickable).length&&(!1!==a.onClick.call(o,b)&&a.closeOnClick?w.close():w.verbose("Click callback returned false or close denied by setting cancelling close"))},approve:function(){!1===a.onApprove.call(b,d)?w.verbose("Approve callback returned false cancelling close"):w.close()},deny:function(){!1===a.onDeny.call(b,d)?w.verbose("Deny callback returned false cancelling close"):w.close()}},helpers:{toClass:function(e){const t=e.trim().split(/\s+/);let n="";return t.forEach(function(e){n+="."+e}),n},escape:function(e,t){if(void 0!==t&&t.preserveHTML)return e;const n={'"':"&quot;","&":"&amp;","'":"&apos;","<":"&lt;",">":"&gt;"};return String(e).replace(/["&'<>]/g,e=>n[e])}},can:{useElement:function(e){return void 0!==E.fn[e]||(w.error(l.noElement.replace("{element}",e)),!1)}},setting:function(e,t){if(w.debug("Changing setting",e,t),E.isPlainObject(e))E.extend(!0,a,e);else{if(void 0===t)return a[e];E.isPlainObject(a[e])?E.extend(!0,a[e],t):a[e]=t}},internal:function(e,t){if(E.isPlainObject(e))E.extend(!0,w,e);else{if(void 0===t)return w[e];w[e]=t}},debug:function(...e){!a.silent&&a.debug&&(a.performance?w.performance.log(e):(w.debug=Function.prototype.bind.call(console.info,console,a.name+":"),w.debug.apply(console,e)))},verbose:function(...e){!a.silent&&a.verbose&&a.debug&&(a.performance?w.performance.log(e):(w.verbose=Function.prototype.bind.call(console.info,console,a.name+":"),w.verbose.apply(console,e)))},error:function(...e){a.silent||(w.error=Function.prototype.bind.call(console.error,console,a.name+":"),w.error.apply(console,e))},performance:{log:function(e){var t,n;a.performance&&(n=(t=Date.now())-(x||t),x=t,T.push({Name:e[0],Arguments:e.slice(1),Element:b,"Execution Time":n})),clearTimeout(w.performance.timer),w.performance.timer=setTimeout(function(){w.performance.display()},500)},display:function(){var e=a.name+":";let n=0;x=!1,clearTimeout(w.performance.timer),E.each(T,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",0<T.length&&(console.groupCollapsed(e),console.table(T),console.groupEnd()),T=[]}},invoke:function(o,e=O,t=b){let s=C,a,i,n;return"string"==typeof o&&void 0!==s&&(o=o.split(/[ .]/),a=o.length-1,E.each(o,function(e,t){var n=e!==a?t+o[e+1].charAt(0).toUpperCase()+o[e+1].slice(1):o;if(E.isPlainObject(s[n])&&e!==a)s=s[n];else{if(void 0!==s[n])return i=s[n],!1;{if(!E.isPlainObject(s[t])||e===a)return void 0!==s[t]?i=s[t]:w.error(l.method,o),!1;s=s[t]}}})),z(i)?n=i.apply(t,e):void 0!==i&&(n=i),Array.isArray(D)?D.push(n):void 0!==D?D=[D,n]:void 0!==n&&(D=n),i}};P?(void 0===C&&w.initialize(),w.invoke(I)):(void 0!==C&&C.invoke("destroy"),w.initialize(),D=d)}),void 0!==D?D:this},E.toast=E.fn.toast,E.fn.toast.settings={name:"Toast",namespace:"toast",silent:!1,debug:!1,verbose:!1,performance:!0,context:"body",position:"top right",horizontal:!1,class:"neutral",classProgress:!1,classActions:!1,classImage:"mini",title:"",message:"",displayTime:3e3,minDisplayTime:1e3,wordsPerMinute:120,showIcon:!1,newestOnTop:!1,showProgress:!1,pauseOnHover:!0,progressUp:!1,opacity:1,compact:!0,closeIcon:!1,closeOnClick:!0,cloneModule:!0,actions:!1,preserveHTML:!1,showImage:!1,alt:!1,transition:{showMethod:"scale",showDuration:500,hideMethod:"scale",hideDuration:500,closeEasing:"easeOutCubic",closeDuration:500},error:{method:"The method you called is not defined.",noElement:"This module requires ui {element}",verticalCard:"Vertical but not attached actions are not supported for card layout"},className:{container:"ui toast-container",absolute:"absolute",box:"floating toast-box",progress:"ui attached active progress",toast:"ui toast",icon:"centered icon",visible:"visible",content:"content",title:"ui header",message:"message",actions:"actions",extraContent:"extra content",button:"ui button",buttons:"ui buttons",close:"close icon",image:"ui image",vertical:"vertical",horizontal:"horizontal",attached:"attached",inverted:"inverted",compact:"compact",pausable:"pausable",progressing:"progressing",top:"top",bottom:"bottom",left:"left",basic:"basic",unclickable:"unclickable"},text:{close:"Close"},icons:{info:"info",success:"checkmark",warning:"warning",error:"times"},selector:{container:".ui.toast-container",box:".toast-box",toast:".ui.toast",title:".header",message:".message:not(.ui)",image:"> img.image, > .image > img",icon:"> i.icon",input:'input:not([type="hidden"]), textarea, select, button, .ui.button, ui.dropdown',clickable:"a, details, .ui.accordion",approve:".actions .positive, .actions .approve, .actions .ok",deny:".actions .negative, .actions .deny, .actions .cancel"},fields:{class:"class",text:"text",icon:"icon",click:"click"},onShow:function(){},onVisible:function(){},onClick:function(){},onHide:function(){},onHidden:function(){},onRemove:function(){},onApprove:function(){},onDeny:function(){}},E.extend(E.easing,{easeOutBounce:function(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeOutCubic:function(e){return--e*e*e+1}})}(jQuery,window,document);
11
+ !function(M,z,o){"use strict";function E(e){return"function"==typeof e&&"number"!=typeof e.nodeType}z=void 0!==z&&z.Math===Math?z:globalThis,M.fn.toast=function(...e){const t=M(this),a=M("body");let i=Date.now(),l=[];const I=e[0],P="string"==typeof I,O=e.slice(1),A=function(e,t){let n;return[z,o].includes(e)?n=M(e):0===(n=M(t.document).find(e)).length&&(n=t.frameElement?A(e,t.parent):a),n};let D;return t.each(function(){const r=M.isPlainObject(I)?M.extend(!0,{},M.fn.toast.settings,I):M.extend({},M.fn.toast.settings),d=r.className,u=r.selector,p=r.error;var e=r.namespace;const f=r.fields,t="."+e,n=e+"-module";let g=M(this),m,h,v,b,C,y,w;const o=r.context?A(r.context,z):a,k=g.hasClass("toast")||g.hasClass("message")||g.hasClass("card");let x=this,c=k?g.data(n):void 0,s;const T={initialize:function(){T.verbose("Initializing element"),T.create.id(),T.has.container()||T.create.container(),(k||""!==r.message||""!==r.title||""!==T.get.iconClass()||r.showImage||T.has.configActions())&&("string"==typeof r.showProgress&&[d.top,d.bottom].includes(r.showProgress)||(r.showProgress=!1),T.create.toast(),r.closeOnClick&&(r.closeIcon||0<M(h).find(u.input).length||T.has.configActions())&&(r.closeOnClick=!1),r.closeOnClick||m.addClass(d.unclickable),T.bind.events()),T.instantiate(),m&&T.show()},instantiate:function(){T.verbose("Storing instance of toast"),c=T,g.data(n,c)},destroy:function(){m&&(T.debug("Removing toast",m),T.unbind.events(),r.onRemove.call(m,x),m.remove(),m=void 0,h=void 0,y=void 0,b=void 0,C=void 0,w=void 0),g.removeData(n)},show:function(e=function(){}){!1===r.onShow.call(m,x)?T.debug("onShow callback returned false, cancelling toast animation"):(T.debug("Showing toast"),T.animate.show(e))},close:function(e=function(){}){!1===r.onHide.call(m,x)?T.debug("onHide callback returned false, cancelling toast animation"):(T.debug("Closing toast"),T.remove.visible(),T.unbind.events(),T.animate.close(e))},create:{container:function(){T.verbose("Creating container"),o.append(M("<div/>",{class:r.position+" "+d.container+" "+(r.horizontal?d.horizontal:"")+" "+(r.context&&"body"!==r.context?d.absolute:"")}))},id:function(){s=(Math.random().toString(16)+"000000000").slice(2,10),T.verbose("Creating unique id for element",s)},toast:function(){m=M("<div/>",{class:d.box});var e=T.get.iconClass();if(k)h=r.cloneModule?g.clone().removeAttr("id"):g,w=h.find("> i"+T.helpers.toClass(d.close)),r.closeIcon=0<w.length,""!==e&&h.find(u.icon).attr("class",e+" "+d.icon),r.showImage&&h.find(u.image).attr("src",r.showImage).attr("alt",r.alt||""),""!==r.title&&h.find(u.title).html(T.helpers.escape(r.title,r)),""!==r.message&&h.find(u.message).html(T.helpers.escape(r.message,r));else{T.verbose("Creating toast"),h=M("<div/>",{role:"alert"});const s=M("<div/>",{class:d.content});""!==e&&h.append(M("<i/>",{class:e+" "+d.icon})),r.showImage&&h.append(M("<img>",{class:d.image+" "+r.classImage,src:r.showImage,alt:r.alt||""})),""!==r.title&&(e="_"+T.get.id()+"title",h.attr("aria-labelledby",e),s.append(M("<div/>",{class:d.title,id:e,html:T.helpers.escape(r.title,r)})));var e="_"+T.get.id()+"desc";h.attr("aria-describedby",e),s.append(M("<div/>",{class:d.message,id:e,html:T.helpers.escape(r.message,r)})),h.addClass(r.class+" "+d.toast).append(s),h.css("opacity",String(r.opacity)),r.closeIcon&&((w=M("<i/>",{class:d.close+" "+("string"==typeof r.closeIcon?r.closeIcon:""),role:"button",tabindex:0,"aria-label":r.text.close})).hasClass(d.left)?h.prepend(w):h.append(w))}if(h.hasClass(d.compact)&&(r.compact=!0),h.hasClass("card")&&(r.compact=!1),v=h.find(".actions"),T.has.configActions()){0===v.length&&(v=M("<div/>",{class:d.actions+" "+(r.classActions||"")}).appendTo(h)),h.hasClass("card")&&!v.hasClass(d.attached)&&(v.addClass(d.extraContent),v.hasClass(d.vertical)&&(v.removeClass(d.vertical),T.error(p.verticalCard)));for(const a of r.actions){var t=a[f.icon]?"<i "+(a[f.text]?'aria-hidden="true"':"")+' class="'+T.helpers.escape(a[f.icon])+' icon"></i>':"",n=T.helpers.escape(a[f.text]||"",r),o=T.helpers.escape(a[f.class]||"");const i=a[f.click]&&E(a[f.click])?a[f.click]:function(){},c=x,l=g;v.append(M("<button/>",{html:t+n,"aria-label":(a[f.text]||a[f.icon]||"").replace(/<[^>]+(>|$)/g,""),class:d.button+" "+o,on:{click:function(){const e=M(this);e.is(u.approve)||e.is(u.deny)||!1===i.call(c,l)||T.close()}}}))}}v&&v.hasClass(d.vertical)&&h.addClass(d.vertical),0<v.length&&!v.hasClass(d.attached)&&v&&(!v.hasClass(d.basic)||v.hasClass(d.left))&&h.addClass(d.actions),"auto"===r.displayTime&&(r.displayTime=Math.max(r.minDisplayTime,h.text().split(" ").length/r.wordsPerMinute*6e4)),m.append(h),0<v.length&&v.hasClass(d.attached)&&(v.addClass(d.buttons),v.detach(),h.addClass(d.attached),v.hasClass(d.vertical)?(h.wrap(M("<div/>",{class:d.vertical+" "+d.attached+" "+(r.compact?d.compact:"")})),v.hasClass(d.left)?h.addClass(d.left).parent().addClass(d.left).prepend(v):h.parent().append(v)):v.hasClass(d.top)?(m.prepend(v),h.addClass(d.bottom)):(m.append(v),h.addClass(d.top))),g!==h&&(g=h,x=h[0]),0<r.displayTime&&(e=d.progressing+" "+(r.pauseOnHover?d.pausable:""),r.showProgress&&(b=M("<div/>",{class:d.progress+" "+(r.classProgress||r.class),"data-percent":""}),r.classProgress||(h.hasClass("toast")&&!h.hasClass(d.inverted)?b.addClass(d.inverted):b.removeClass(d.inverted)),C=M("<div/>",{class:"bar "+(r.progressUp?"up ":"down ")+e}),b.addClass(r.showProgress).append(C),b.hasClass(d.top)?m.prepend(b):m.append(b),C.css("animation-duration",r.displayTime/1e3+"s")),(y=M("<span/>",{class:"wait "+e})).css("animation-duration",r.displayTime/1e3+"s"),y.appendTo(h)),r.compact&&(m.addClass(d.compact),h.addClass(d.compact),b&&b.addClass(d.compact)),r.newestOnTop?m.prependTo(T.get.container()):m.appendTo(T.get.container())}},bind:{events:function(){T.debug("Binding events to toast"),r.closeIcon&&w.on("click"+t,T.event.close),h.on("click"+t,T.event.click),y&&y.on("animationend"+t,T.event.close),m.on("click"+t,u.approve,T.event.approve).on("click"+t,u.deny,T.event.deny)}},unbind:{events:function(){T.debug("Unbinding events to toast"),r.closeIcon&&w.off("click"+t),h.off("click"+t),y&&y.off("animationend"+t),m.off("click"+t)}},animate:{show:function(e){e=E(e)?e:function(){},r.transition&&T.can.useElement("transition")&&(T.set.visible(),m.transition({animation:r.transition.showMethod+" in",queue:!1,debug:r.debug,verbose:r.verbose,silent:r.silent,duration:r.transition.showDuration,onComplete:function(){e.call(m,x),r.onVisible.call(m,x)}}))},close:function(e){e=E(e)?e:function(){},r.transition&&void 0!==M.fn.transition?m.transition({animation:r.transition.hideMethod+" out",queue:!1,duration:r.transition.hideDuration,debug:r.debug,verbose:r.verbose,silent:r.silent,interval:50,onBeforeHide:function(e){e=E(e)?e:function(){},""!==r.transition.closeEasing?m&&(m.css("opacity","0"),m.wrap("<div/>").parent().hide(r.transition.closeDuration,r.transition.closeEasing,function(){m&&(m.parent().remove(),e.call(m))})):e.call(m)},onComplete:function(){e.call(m,x),r.onHidden.call(m,x),T.destroy()}}):T.error(p.noTransition)},pause:function(){y.css("animationPlayState","paused"),C&&C.css("animationPlayState","paused")},continue:function(){y.css("animationPlayState","running"),C&&C.css("animationPlayState","running")}},has:{container:function(){return T.verbose("Determining if there is already a container"),0<T.get.containers().length},toast:function(){return!!T.get.toast()},toasts:function(){return 0<T.get.toasts().length},configActions:function(){return Array.isArray(r.actions)&&0<r.actions.length}},get:{id:function(){return s},containers:function(){return o.children(T.helpers.toClass(r.position)+u.container+(r.horizontal?T.helpers.toClass(d.horizontal):":not("+T.helpers.toClass(d.horizontal)+")")+(r.context&&"body"!==r.context?T.helpers.toClass(d.absolute):":not("+T.helpers.toClass(d.absolute)+")"))},container:function(){return T.get.containers()[0]},toastBox:function(){return m||null},toast:function(){return h||null},toasts:function(){return M(T.get.container()).find(u.box)},iconClass:function(){return"string"==typeof r.showIcon?r.showIcon:r.showIcon&&r.icons[r.class]?r.icons[r.class]:""},remainingTime:function(){return y?y.css("opacity")*r.displayTime:0}},set:{visible:function(){h.addClass(d.visible)}},remove:{visible:function(){h.removeClass(d.visible)}},event:{close:function(){T.close()},click:function(e){0===M(e.target).closest(u.clickable).length&&(!1!==r.onClick.call(m,x)&&r.closeOnClick?T.close():T.verbose("Click callback returned false or close denied by setting cancelling close"))},approve:function(){!1===r.onApprove.call(x,g)?T.verbose("Approve callback returned false cancelling close"):T.close()},deny:function(){!1===r.onDeny.call(x,g)?T.verbose("Deny callback returned false cancelling close"):T.close()}},helpers:{toClass:function(e){let t="";for(const n of e.trim().split(/\s+/))t+="."+n;return t},escape:function(e,t){if(void 0!==t&&t.preserveHTML)return e;const n={'"':"&quot;","&":"&amp;","'":"&apos;","<":"&lt;",">":"&gt;"};return String(e).replace(/["&'<>]/g,e=>n[e])}},can:{useElement:function(e){return void 0!==M.fn[e]||(T.error(p.noElement.replace("{element}",e)),!1)}},setting:function(e,t){if(T.debug("Changing setting",e,t),M.isPlainObject(e))M.extend(!0,r,e);else{if(void 0===t)return r[e];M.isPlainObject(r[e])?M.extend(!0,r[e],t):r[e]=t}},internal:function(e,t){if(M.isPlainObject(e))M.extend(!0,T,e);else{if(void 0===t)return T[e];T[e]=t}},debug:function(...e){!r.silent&&r.debug&&(r.performance?T.performance.log(e):(T.debug=Function.prototype.bind.call(console.info,console,r.name+":"),T.debug.apply(console,e)))},verbose:function(...e){!r.silent&&r.verbose&&r.debug&&(r.performance?T.performance.log(e):(T.verbose=Function.prototype.bind.call(console.info,console,r.name+":"),T.verbose.apply(console,e)))},error:function(...e){r.silent||(T.error=Function.prototype.bind.call(console.error,console,r.name+":"),T.error.apply(console,e))},performance:{log:function(e){var t,n;r.performance&&(n=(t=Date.now())-(i||t),i=t,l.push({Name:e[0],Arguments:e.slice(1),Element:x,"Execution Time":n})),clearTimeout(T.performance.timer),T.performance.timer=setTimeout(function(){T.performance.display()},500)},display:function(){var e=r.name+":";let n=0;i=!1,clearTimeout(T.performance.timer),M.each(l,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",0<l.length&&(console.groupCollapsed(e),console.table(l),console.groupEnd()),l=[]}},invoke:function(o,e=O,t=x){let s=c,a,i,n;return"string"==typeof o&&void 0!==s&&(o=o.split(/[ .]/),a=o.length-1,M.each(o,function(e,t){var n=e!==a?t+o[e+1].charAt(0).toUpperCase()+o[e+1].slice(1):o;if(M.isPlainObject(s[n])&&e!==a)s=s[n];else{if(void 0!==s[n])return i=s[n],!1;{if(!M.isPlainObject(s[t])||e===a)return void 0!==s[t]?i=s[t]:T.error(p.method,o),!1;s=s[t]}}})),E(i)?n=i.apply(t,e):void 0!==i&&(n=i),Array.isArray(D)?D.push(n):void 0!==D?D=[D,n]:void 0!==n&&(D=n),i}};P?(void 0===c&&T.initialize(),T.invoke(I)):(void 0!==c&&c.invoke("destroy"),T.initialize(),D=g)}),void 0!==D?D:this},M.toast=M.fn.toast,M.fn.toast.settings={name:"Toast",namespace:"toast",silent:!1,debug:!1,verbose:!1,performance:!0,context:"body",position:"top right",horizontal:!1,class:"neutral",classProgress:!1,classActions:!1,classImage:"mini",title:"",message:"",displayTime:3e3,minDisplayTime:1e3,wordsPerMinute:120,showIcon:!1,newestOnTop:!1,showProgress:!1,pauseOnHover:!0,progressUp:!1,opacity:1,compact:!0,closeIcon:!1,closeOnClick:!0,cloneModule:!0,actions:!1,preserveHTML:!1,showImage:!1,alt:!1,transition:{showMethod:"scale",showDuration:500,hideMethod:"scale",hideDuration:500,closeEasing:"easeOutCubic",closeDuration:500},error:{method:"The method you called is not defined.",noElement:"This module requires ui {element}",verticalCard:"Vertical but not attached actions are not supported for card layout"},className:{container:"ui toast-container",absolute:"absolute",box:"floating toast-box",progress:"ui attached active progress",toast:"ui toast",icon:"centered icon",visible:"visible",content:"content",title:"ui header",message:"message",actions:"actions",extraContent:"extra content",button:"ui button",buttons:"ui buttons",close:"close icon",image:"ui image",vertical:"vertical",horizontal:"horizontal",attached:"attached",inverted:"inverted",compact:"compact",pausable:"pausable",progressing:"progressing",top:"top",bottom:"bottom",left:"left",basic:"basic",unclickable:"unclickable"},text:{close:"Close"},icons:{info:"info",success:"checkmark",warning:"warning",error:"times"},selector:{container:".ui.toast-container",box:".toast-box",toast:".ui.toast",title:".header",message:".message:not(.ui)",image:"> img.image, > .image > img",icon:"> i.icon",input:'input:not([type="hidden"]), textarea, select, button, .ui.button, ui.dropdown',clickable:"a, details, .ui.accordion",approve:".actions .positive, .actions .approve, .actions .ok",deny:".actions .negative, .actions .deny, .actions .cancel"},fields:{class:"class",text:"text",icon:"icon",click:"click"},onShow:function(){},onVisible:function(){},onClick:function(){},onHide:function(){},onHidden:function(){},onRemove:function(){},onApprove:function(){},onDeny:function(){}},M.extend(M.easing,{easeOutBounce:function(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeOutCubic:function(e){return--e*e*e+1}})}(jQuery,window,document);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Transition
2
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Transition
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Transition
2
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Transition
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -518,8 +518,8 @@
518
518
 
519
519
  return typeof duration === 'string'
520
520
  ? (duration.includes('ms')
521
- ? parseFloat(duration)
522
- : parseFloat(duration) * 1000)
521
+ ? Number.parseFloat(duration)
522
+ : Number.parseFloat(duration) * 1000)
523
523
  : duration;
524
524
  },
525
525
  displayType: function (shouldDetermine = true) {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Transition
2
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Transition
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.64+bcb9c73
2
+ * # Fomantic UI - 2.10.0-beta.66+beed92a
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(h,n){"use strict";n=void 0!==n&&n.Math===Math?n:globalThis,h.fn.transition=function(...n){const o=h(this);let r=Date.now(),s=[];const p=n,g=n[0],v=n.slice(1);let b="string"==typeof g,y;return o.each(function(i){const l=h(this),d=this;let c,u,e,m,t,n,a;const f={initialize:function(){c=f.get.settings(...p),m=c.className,e=c.error,t=c.metadata,a="."+c.namespace,n="module-"+c.namespace,u=l.data(n)||f,!1===(b=b&&f.invoke(g))&&(f.verbose("Converted arguments into settings object",c),c.interval?f.delay(c.interval):f.animate(),f.instantiate())},instantiate:function(){f.verbose("Storing instance of module",f),u=f,l.data(n,u)},destroy:function(){f.verbose("Destroying previous module for",d),l.removeData(n)},refresh:function(){f.verbose("Refreshing display type on next animation"),delete f.displayType},forceRepaint:function(){f.verbose("Forcing element repaint");var n=l.parent(),e=l.next();0===e.length?l.detach().appendTo(n):l.detach().insertBefore(e)},repaint:function(){f.verbose("Repainting element");d.offsetWidth},delay:function(n=c.interval){let e=f.get.animationDirection();e=e||(f.can.transition()?f.get.direction():"static");n="auto"===c.reverse&&e===m.outward||!0===c.reverse?(o.length-i)*n:i*n;f.debug("Delaying animation by",n),setTimeout(function(){f.animate()},n)},animate:function(n=c){if(c=n,f.debug("Preparing animation",c.animation),f.is.animating()){if(c.queue)return!c.allowRepeats&&f.has.direction()&&f.is.occurring()&&!0!==f.queuing?f.debug("Animation is currently occurring, preventing queueing same animation",c.animation):f.queue(c.animation),!1;if(!c.allowRepeats&&f.is.occurring())return f.debug("Animation is already occurring, will not execute repeated animation",c.animation),!1;f.debug("New animation started, completing previous early",c.animation),u.complete()}f.can.animate()?f.set.animating(c.animation):f.error(e.noAnimation,c.animation,d)},reset:function(){f.debug("Resetting animation to beginning conditions"),f.remove.animationCallbacks(),f.restore.conditions(),f.remove.animating()},queue:function(n){f.debug("Queueing animation of",n),f.queuing=!0,l.one("animationend.queue"+a,function(){f.queuing=!1,f.repaint(),f.animate.call(this,c)})},complete:function(n){n&&n.target===d&&n.stopPropagation(),f.debug("Animation complete",c.animation),f.remove.completeCallback(),f.remove.failSafe(),f.is.looping()||(f.is.outward()?(f.verbose("Animation is outward, hiding element"),f.restore.conditions(),f.hide()):f.is.inward()?(f.verbose("Animation is inward, showing element"),f.restore.conditions(),f.show()):(f.verbose("Static animation completed"),f.restore.conditions(),c.onComplete.call(d)))},force:{visible:function(){var n=l.attr("style"),n=f.get.userStyle(n),e=f.get.displayType(),n=n+"display: "+e+" !important;",i=l[0].style.display;return!e||"none"===i&&c.skipInlineHidden||l[0].tagName.match(/(script|link|style)/i)?(f.remove.transition(),!1):(f.verbose("Overriding default display to show element",e),l.attr("style",n),!0)},hidden:function(){var n=l.attr("style"),n=void 0===n||""===n;"none"===l.css("display")||f.is.hidden()?n&&l.removeAttr("style"):(f.verbose("Overriding default display to hide element"),l.css("display","none"))}},has:{direction:function(n){let i=!1;return"string"==typeof(n=n||c.animation)&&(n=n.split(" "),h.each(n,function(n,e){e!==m.inward&&e!==m.outward||(i=!0)})),i},inlineDisplay:function(){const n=l.attr("style")||"";return Array.isArray(n.match(/display.*?;/,""))}},set:{animating:function(n){f.remove.completeCallback(),n=n||c.animation;n=f.get.animationClass(n);f.save.animation(n),f.force.visible()&&(f.remove.hidden(),f.remove.direction(),f.start.animation(n))},duration:function(n=c.duration){!(n="number"==typeof n?n+"ms":n)&&0!==n||(f.verbose("Setting animation duration",n),l.css({"animation-duration":n}))},direction:function(n=f.get.direction()){n===m.inward?f.set.inward():f.set.outward()},looping:function(){f.debug("Transition set to loop"),l.addClass(m.looping)},hidden:function(){l.addClass(m.transition).addClass(m.hidden)},inward:function(){f.debug("Setting direction to inward"),l.removeClass(m.outward).addClass(m.inward)},outward:function(){f.debug("Setting direction to outward"),l.removeClass(m.inward).addClass(m.outward)},visible:function(){l.addClass(m.transition).addClass(m.visible)}},start:{animation:function(n=f.get.animationClass()){f.debug("Starting tween",n),l.addClass(n).one("animationend.complete"+a,f.complete),c.useFailSafe&&f.add.failSafe(),f.set.duration(c.duration),c.onStart.call(d)}},save:{animation:function(n){f.cache||(f.cache={}),f.cache.animation=n},displayType:function(n){"none"!==n&&l.data(t.displayType,n)},transitionExists:function(n,e){h.fn.transition.exists[n]=e,f.verbose("Saving existence of transition",n,e)}},restore:{conditions:function(){var n=f.get.currentAnimation();n&&(l.removeClass(n),f.verbose("Removing animation class",f.cache)),f.remove.duration()}},add:{failSafe:function(){var n=f.get.duration();f.timer=setTimeout(function(){l.triggerHandler("animationend")},n+c.failSafeDelay),f.verbose("Adding fail safe timer",f.timer)}},remove:{animating:function(){l.removeClass(m.animating)},animationCallbacks:function(){f.remove.queueCallback(),f.remove.completeCallback()},queueCallback:function(){l.off(".queue"+a)},completeCallback:function(){l.off(".complete"+a)},display:function(){l.css("display","")},direction:function(){l.removeClass(m.inward).removeClass(m.outward)},duration:function(){l.css("animation-duration","")},failSafe:function(){f.verbose("Removing fail safe timer",f.timer),f.timer&&clearTimeout(f.timer)},hidden:function(){l.removeClass(m.hidden)},visible:function(){l.removeClass(m.visible)},looping:function(){f.debug("Transitions are no longer looping"),f.is.looping()&&(f.reset(),l.removeClass(m.looping))},transition:function(){l.removeClass(m.transition).removeClass(m.visible).removeClass(m.hidden)}},get:{settings:function(n,e,i){return"object"==typeof n?h.extend(!0,{},h.fn.transition.settings,n):"function"==typeof i?h.extend({},h.fn.transition.settings,{animation:n,onComplete:i,duration:e}):"string"==typeof e||"number"==typeof e?h.extend({},h.fn.transition.settings,{animation:n,duration:e}):"object"==typeof e?h.extend({},h.fn.transition.settings,e,{animation:n}):"function"==typeof e?h.extend({},h.fn.transition.settings,{animation:n,onComplete:e}):h.extend({},h.fn.transition.settings,{animation:n})},animationClass:function(n=c.animation){var e=f.can.transition()&&!f.has.direction()?f.get.direction()+" ":"";return m.animating+" "+m.transition+" "+e+n},currentAnimation:function(){return!(!f.cache||void 0===f.cache.animation)&&f.cache.animation},currentDirection:function(){return f.is.inward()?m.inward:m.outward},direction:function(){return f.is.hidden()||!f.is.visible()?m.inward:m.outward},animationDirection:function(n=c.animation){let i;return"string"==typeof n&&(n=n.split(" "),h.each(n,function(n,e){e===m.inward?i=m.inward:e===m.outward&&(i=m.outward)})),i||!1},duration:function(n=c.duration){return"string"==typeof(n=!1===n?l.css("animation-duration")||0:n)?n.includes("ms")?parseFloat(n):1e3*parseFloat(n):n},displayType:function(n=!0){return c.displayType||(n&&void 0===l.data(t.displayType)&&(""===(n=l.css("display"))||"none"===n?f.can.transition(!0):f.save.displayType(n)),l.data(t.displayType))},userStyle:function(n){return(n=n||l.attr("style")||"").replace(/display.*?;/,"")},transitionExists:function(n){return h.fn.transition.exists[n]}},can:{transition:function(n){var e,i,t=c.animation,a=f.get.transitionExists(t);let o=f.get.displayType(!1),r,s;if(void 0===a||n){if(f.verbose("Determining whether animation exists"),n=l.attr("class"),e=l.prop("tagName"),e=(r=h("<"+e+" />").addClass(n).insertAfter(l)).addClass(t).removeClass(m.inward).removeClass(m.outward).addClass(m.animating).addClass(m.transition).css("animationName"),r.detach().insertAfter(l),i=r.addClass(m.inward).css("animationName"),o||(r.detach().insertAfter(l),o=r.attr("class",n).removeAttr("style").removeClass(m.hidden).removeClass(m.visible).show().css("display"),f.verbose("Determining final display state",o),f.save.displayType(o)),r.remove(),e!==i)f.debug("Direction exists for animation",t),s=!0;else{if("none"===e||!e)return void f.debug("No animation defined in css",t);f.debug("Static animation found",t,o),s=!1}f.save.transitionExists(t,s)}return void 0!==a?a:s},animate:function(){return void 0!==f.can.transition()}},is:{animating:function(){return l.hasClass(m.animating)},inward:function(){return l.hasClass(m.inward)},outward:function(){return l.hasClass(m.outward)},looping:function(){return l.hasClass(m.looping)},occurring:function(n=c.animation){return n="."+n.replace(" ","."),0<l.filter(n).length},visible:function(){return l.is(":visible")},hidden:function(){return"hidden"===l.css("visibility")},supported:function(){return!0}},hide:function(){if(!1===c.onHide.call(d))return f.verbose("Hide callback returned false cancelling hide"),!1;f.verbose("Hiding element"),f.is.animating()&&f.reset(),d.blur(),f.remove.display(),f.remove.visible(),c.onBeforeHide.call(d,f.hideNow)},hideNow:function(){f.set.hidden(),f.force.hidden(),c.onHidden.call(d),c.onComplete.call(d)},show:function(n){f.force.visible()&&!1!==c.onShow.call(d)&&(f.verbose("Showing element",n),f.remove.hidden(),c.onBeforeShow.call(d,f.showNow))},showNow:function(){f.set.visible(),c.onVisible.call(d),c.onComplete.call(d)},toggle:function(){f.is.visible()?f.hide():f.show()},stop:function(){f.debug("Stopping current animation"),l.triggerHandler("animationend")},stopAll:function(){f.debug("Stopping all animation"),f.remove.queueCallback(),l.triggerHandler("animationend")},clear:{queue:function(){f.debug("Clearing animation queue"),f.remove.queueCallback()}},enable:function(){f.verbose("Starting animation"),l.removeClass(m.disabled)},disable:function(){f.debug("Stopping animation"),l.addClass(m.disabled)},setting:function(n,e){if(f.debug("Changing setting",n,e),h.isPlainObject(n))h.extend(!0,c,n);else{if(void 0===e)return c[n];h.isPlainObject(c[n])?h.extend(!0,c[n],e):c[n]=e}},internal:function(n,e){if(h.isPlainObject(n))h.extend(!0,f,n);else{if(void 0===e)return f[n];f[n]=e}},debug:function(...n){!c.silent&&c.debug&&(c.performance?f.performance.log(n):(f.debug=Function.prototype.bind.call(console.info,console,c.name+":"),f.debug.apply(console,n)))},verbose:function(...n){!c.silent&&c.verbose&&c.debug&&(c.performance?f.performance.log(n):(f.verbose=Function.prototype.bind.call(console.info,console,c.name+":"),f.verbose.apply(console,n)))},error:function(...n){c.silent||(f.error=Function.prototype.bind.call(console.error,console,c.name+":"),f.error.apply(console,n))},performance:{log:function(n){var e,i;c.performance&&(i=(e=Date.now())-(r||e),r=e,s.push({Name:n[0],Arguments:n.slice(1),Element:d,"Execution Time":i})),clearTimeout(f.performance.timer),f.performance.timer=setTimeout(function(){f.performance.display()},500)},display:function(){let n=c.name+":",i=0;r=!1,clearTimeout(f.performance.timer),h.each(s,function(n,e){i+=e["Execution Time"]}),n+=" "+i+"ms",1<o.length&&(n+=" ("+o.length+")"),0<s.length&&(console.groupCollapsed(n),console.table(s),console.groupEnd()),s=[]}},invoke:function(t,n=v,e=d){let a=u,o,r,i;var s;return"string"==typeof t&&void 0!==a&&(t=t.split(/[ .]/),o=t.length-1,h.each(t,function(n,e){var i=n!==o?e+t[n+1].charAt(0).toUpperCase()+t[n+1].slice(1):t;if(h.isPlainObject(a[i])&&n!==o)a=a[i];else{if(void 0!==a[i])return r=a[i],!1;{if(!h.isPlainObject(a[e])||n===o)return void 0!==a[e]&&(r=a[e]),!1;a=a[e]}}})),"function"==typeof(s=r)&&"number"!=typeof s.nodeType?i=r.apply(e,n):void 0!==r&&(i=r),Array.isArray(y)?y.push(i):void 0!==y?y=[y,i]:void 0!==i&&(y=i),void 0!==r&&r}};f.initialize()}),void 0!==y?y:this},h.fn.transition.exists={},h.fn.transition.settings={name:"Transition",silent:!1,debug:!1,verbose:!1,performance:!0,namespace:"transition",interval:0,reverse:"auto",onStart:function(){},onComplete:function(){},onShow:function(){},onBeforeShow:function(n){n.call(this)},onVisible:function(){},onHide:function(){},onHidden:function(){},onBeforeHide:function(n){n.call(this)},useFailSafe:!0,failSafeDelay:100,allowRepeats:!1,displayType:!1,animation:"fade",duration:!1,queue:!0,skipInlineHidden:!1,metadata:{displayType:"display"},className:{animating:"animating",disabled:"disabled",hidden:"hidden",inward:"in",loading:"loading",looping:"looping",outward:"out",transition:"transition",visible:"visible"},error:{noAnimation:"Element is no longer attached to DOM. Unable to animate. Use silent setting to suppress this warning in production."}}}(jQuery,window,document);
11
+ !function(h,n){"use strict";n=void 0!==n&&n.Math===Math?n:globalThis,h.fn.transition=function(...n){const o=h(this);let r=Date.now(),s=[];const p=n,g=n[0],v=n.slice(1);let b="string"==typeof g,y;return o.each(function(i){const l=h(this),d=this;let c,u,e,m,t,n,a;const f={initialize:function(){c=f.get.settings(...p),m=c.className,e=c.error,t=c.metadata,a="."+c.namespace,n="module-"+c.namespace,u=l.data(n)||f,!1===(b=b&&f.invoke(g))&&(f.verbose("Converted arguments into settings object",c),c.interval?f.delay(c.interval):f.animate(),f.instantiate())},instantiate:function(){f.verbose("Storing instance of module",f),u=f,l.data(n,u)},destroy:function(){f.verbose("Destroying previous module for",d),l.removeData(n)},refresh:function(){f.verbose("Refreshing display type on next animation"),delete f.displayType},forceRepaint:function(){f.verbose("Forcing element repaint");var n=l.parent(),e=l.next();0===e.length?l.detach().appendTo(n):l.detach().insertBefore(e)},repaint:function(){f.verbose("Repainting element");d.offsetWidth},delay:function(n=c.interval){let e=f.get.animationDirection();e=e||(f.can.transition()?f.get.direction():"static");n="auto"===c.reverse&&e===m.outward||!0===c.reverse?(o.length-i)*n:i*n;f.debug("Delaying animation by",n),setTimeout(function(){f.animate()},n)},animate:function(n=c){if(c=n,f.debug("Preparing animation",c.animation),f.is.animating()){if(c.queue)return!c.allowRepeats&&f.has.direction()&&f.is.occurring()&&!0!==f.queuing?f.debug("Animation is currently occurring, preventing queueing same animation",c.animation):f.queue(c.animation),!1;if(!c.allowRepeats&&f.is.occurring())return f.debug("Animation is already occurring, will not execute repeated animation",c.animation),!1;f.debug("New animation started, completing previous early",c.animation),u.complete()}f.can.animate()?f.set.animating(c.animation):f.error(e.noAnimation,c.animation,d)},reset:function(){f.debug("Resetting animation to beginning conditions"),f.remove.animationCallbacks(),f.restore.conditions(),f.remove.animating()},queue:function(n){f.debug("Queueing animation of",n),f.queuing=!0,l.one("animationend.queue"+a,function(){f.queuing=!1,f.repaint(),f.animate.call(this,c)})},complete:function(n){n&&n.target===d&&n.stopPropagation(),f.debug("Animation complete",c.animation),f.remove.completeCallback(),f.remove.failSafe(),f.is.looping()||(f.is.outward()?(f.verbose("Animation is outward, hiding element"),f.restore.conditions(),f.hide()):f.is.inward()?(f.verbose("Animation is inward, showing element"),f.restore.conditions(),f.show()):(f.verbose("Static animation completed"),f.restore.conditions(),c.onComplete.call(d)))},force:{visible:function(){var n=l.attr("style"),n=f.get.userStyle(n),e=f.get.displayType(),n=n+"display: "+e+" !important;",i=l[0].style.display;return!e||"none"===i&&c.skipInlineHidden||l[0].tagName.match(/(script|link|style)/i)?(f.remove.transition(),!1):(f.verbose("Overriding default display to show element",e),l.attr("style",n),!0)},hidden:function(){var n=l.attr("style"),n=void 0===n||""===n;"none"===l.css("display")||f.is.hidden()?n&&l.removeAttr("style"):(f.verbose("Overriding default display to hide element"),l.css("display","none"))}},has:{direction:function(n){let i=!1;return"string"==typeof(n=n||c.animation)&&(n=n.split(" "),h.each(n,function(n,e){e!==m.inward&&e!==m.outward||(i=!0)})),i},inlineDisplay:function(){const n=l.attr("style")||"";return Array.isArray(n.match(/display.*?;/,""))}},set:{animating:function(n){f.remove.completeCallback(),n=n||c.animation;n=f.get.animationClass(n);f.save.animation(n),f.force.visible()&&(f.remove.hidden(),f.remove.direction(),f.start.animation(n))},duration:function(n=c.duration){!(n="number"==typeof n?n+"ms":n)&&0!==n||(f.verbose("Setting animation duration",n),l.css({"animation-duration":n}))},direction:function(n=f.get.direction()){n===m.inward?f.set.inward():f.set.outward()},looping:function(){f.debug("Transition set to loop"),l.addClass(m.looping)},hidden:function(){l.addClass(m.transition).addClass(m.hidden)},inward:function(){f.debug("Setting direction to inward"),l.removeClass(m.outward).addClass(m.inward)},outward:function(){f.debug("Setting direction to outward"),l.removeClass(m.inward).addClass(m.outward)},visible:function(){l.addClass(m.transition).addClass(m.visible)}},start:{animation:function(n=f.get.animationClass()){f.debug("Starting tween",n),l.addClass(n).one("animationend.complete"+a,f.complete),c.useFailSafe&&f.add.failSafe(),f.set.duration(c.duration),c.onStart.call(d)}},save:{animation:function(n){f.cache||(f.cache={}),f.cache.animation=n},displayType:function(n){"none"!==n&&l.data(t.displayType,n)},transitionExists:function(n,e){h.fn.transition.exists[n]=e,f.verbose("Saving existence of transition",n,e)}},restore:{conditions:function(){var n=f.get.currentAnimation();n&&(l.removeClass(n),f.verbose("Removing animation class",f.cache)),f.remove.duration()}},add:{failSafe:function(){var n=f.get.duration();f.timer=setTimeout(function(){l.triggerHandler("animationend")},n+c.failSafeDelay),f.verbose("Adding fail safe timer",f.timer)}},remove:{animating:function(){l.removeClass(m.animating)},animationCallbacks:function(){f.remove.queueCallback(),f.remove.completeCallback()},queueCallback:function(){l.off(".queue"+a)},completeCallback:function(){l.off(".complete"+a)},display:function(){l.css("display","")},direction:function(){l.removeClass(m.inward).removeClass(m.outward)},duration:function(){l.css("animation-duration","")},failSafe:function(){f.verbose("Removing fail safe timer",f.timer),f.timer&&clearTimeout(f.timer)},hidden:function(){l.removeClass(m.hidden)},visible:function(){l.removeClass(m.visible)},looping:function(){f.debug("Transitions are no longer looping"),f.is.looping()&&(f.reset(),l.removeClass(m.looping))},transition:function(){l.removeClass(m.transition).removeClass(m.visible).removeClass(m.hidden)}},get:{settings:function(n,e,i){return"object"==typeof n?h.extend(!0,{},h.fn.transition.settings,n):"function"==typeof i?h.extend({},h.fn.transition.settings,{animation:n,onComplete:i,duration:e}):"string"==typeof e||"number"==typeof e?h.extend({},h.fn.transition.settings,{animation:n,duration:e}):"object"==typeof e?h.extend({},h.fn.transition.settings,e,{animation:n}):"function"==typeof e?h.extend({},h.fn.transition.settings,{animation:n,onComplete:e}):h.extend({},h.fn.transition.settings,{animation:n})},animationClass:function(n=c.animation){var e=f.can.transition()&&!f.has.direction()?f.get.direction()+" ":"";return m.animating+" "+m.transition+" "+e+n},currentAnimation:function(){return!(!f.cache||void 0===f.cache.animation)&&f.cache.animation},currentDirection:function(){return f.is.inward()?m.inward:m.outward},direction:function(){return f.is.hidden()||!f.is.visible()?m.inward:m.outward},animationDirection:function(n=c.animation){let i;return"string"==typeof n&&(n=n.split(" "),h.each(n,function(n,e){e===m.inward?i=m.inward:e===m.outward&&(i=m.outward)})),i||!1},duration:function(n=c.duration){return"string"==typeof(n=!1===n?l.css("animation-duration")||0:n)?n.includes("ms")?Number.parseFloat(n):1e3*Number.parseFloat(n):n},displayType:function(n=!0){return c.displayType||(n&&void 0===l.data(t.displayType)&&(""===(n=l.css("display"))||"none"===n?f.can.transition(!0):f.save.displayType(n)),l.data(t.displayType))},userStyle:function(n){return(n=n||l.attr("style")||"").replace(/display.*?;/,"")},transitionExists:function(n){return h.fn.transition.exists[n]}},can:{transition:function(n){var e,i,t=c.animation,a=f.get.transitionExists(t);let o=f.get.displayType(!1),r,s;if(void 0===a||n){if(f.verbose("Determining whether animation exists"),n=l.attr("class"),e=l.prop("tagName"),e=(r=h("<"+e+" />").addClass(n).insertAfter(l)).addClass(t).removeClass(m.inward).removeClass(m.outward).addClass(m.animating).addClass(m.transition).css("animationName"),r.detach().insertAfter(l),i=r.addClass(m.inward).css("animationName"),o||(r.detach().insertAfter(l),o=r.attr("class",n).removeAttr("style").removeClass(m.hidden).removeClass(m.visible).show().css("display"),f.verbose("Determining final display state",o),f.save.displayType(o)),r.remove(),e!==i)f.debug("Direction exists for animation",t),s=!0;else{if("none"===e||!e)return void f.debug("No animation defined in css",t);f.debug("Static animation found",t,o),s=!1}f.save.transitionExists(t,s)}return void 0!==a?a:s},animate:function(){return void 0!==f.can.transition()}},is:{animating:function(){return l.hasClass(m.animating)},inward:function(){return l.hasClass(m.inward)},outward:function(){return l.hasClass(m.outward)},looping:function(){return l.hasClass(m.looping)},occurring:function(n=c.animation){return n="."+n.replace(" ","."),0<l.filter(n).length},visible:function(){return l.is(":visible")},hidden:function(){return"hidden"===l.css("visibility")},supported:function(){return!0}},hide:function(){if(!1===c.onHide.call(d))return f.verbose("Hide callback returned false cancelling hide"),!1;f.verbose("Hiding element"),f.is.animating()&&f.reset(),d.blur(),f.remove.display(),f.remove.visible(),c.onBeforeHide.call(d,f.hideNow)},hideNow:function(){f.set.hidden(),f.force.hidden(),c.onHidden.call(d),c.onComplete.call(d)},show:function(n){f.force.visible()&&!1!==c.onShow.call(d)&&(f.verbose("Showing element",n),f.remove.hidden(),c.onBeforeShow.call(d,f.showNow))},showNow:function(){f.set.visible(),c.onVisible.call(d),c.onComplete.call(d)},toggle:function(){f.is.visible()?f.hide():f.show()},stop:function(){f.debug("Stopping current animation"),l.triggerHandler("animationend")},stopAll:function(){f.debug("Stopping all animation"),f.remove.queueCallback(),l.triggerHandler("animationend")},clear:{queue:function(){f.debug("Clearing animation queue"),f.remove.queueCallback()}},enable:function(){f.verbose("Starting animation"),l.removeClass(m.disabled)},disable:function(){f.debug("Stopping animation"),l.addClass(m.disabled)},setting:function(n,e){if(f.debug("Changing setting",n,e),h.isPlainObject(n))h.extend(!0,c,n);else{if(void 0===e)return c[n];h.isPlainObject(c[n])?h.extend(!0,c[n],e):c[n]=e}},internal:function(n,e){if(h.isPlainObject(n))h.extend(!0,f,n);else{if(void 0===e)return f[n];f[n]=e}},debug:function(...n){!c.silent&&c.debug&&(c.performance?f.performance.log(n):(f.debug=Function.prototype.bind.call(console.info,console,c.name+":"),f.debug.apply(console,n)))},verbose:function(...n){!c.silent&&c.verbose&&c.debug&&(c.performance?f.performance.log(n):(f.verbose=Function.prototype.bind.call(console.info,console,c.name+":"),f.verbose.apply(console,n)))},error:function(...n){c.silent||(f.error=Function.prototype.bind.call(console.error,console,c.name+":"),f.error.apply(console,n))},performance:{log:function(n){var e,i;c.performance&&(i=(e=Date.now())-(r||e),r=e,s.push({Name:n[0],Arguments:n.slice(1),Element:d,"Execution Time":i})),clearTimeout(f.performance.timer),f.performance.timer=setTimeout(function(){f.performance.display()},500)},display:function(){let n=c.name+":",i=0;r=!1,clearTimeout(f.performance.timer),h.each(s,function(n,e){i+=e["Execution Time"]}),n+=" "+i+"ms",1<o.length&&(n+=" ("+o.length+")"),0<s.length&&(console.groupCollapsed(n),console.table(s),console.groupEnd()),s=[]}},invoke:function(t,n=v,e=d){let a=u,o,r,i;var s;return"string"==typeof t&&void 0!==a&&(t=t.split(/[ .]/),o=t.length-1,h.each(t,function(n,e){var i=n!==o?e+t[n+1].charAt(0).toUpperCase()+t[n+1].slice(1):t;if(h.isPlainObject(a[i])&&n!==o)a=a[i];else{if(void 0!==a[i])return r=a[i],!1;{if(!h.isPlainObject(a[e])||n===o)return void 0!==a[e]&&(r=a[e]),!1;a=a[e]}}})),"function"==typeof(s=r)&&"number"!=typeof s.nodeType?i=r.apply(e,n):void 0!==r&&(i=r),Array.isArray(y)?y.push(i):void 0!==y?y=[y,i]:void 0!==i&&(y=i),void 0!==r&&r}};f.initialize()}),void 0!==y?y:this},h.fn.transition.exists={},h.fn.transition.settings={name:"Transition",silent:!1,debug:!1,verbose:!1,performance:!0,namespace:"transition",interval:0,reverse:"auto",onStart:function(){},onComplete:function(){},onShow:function(){},onBeforeShow:function(n){n.call(this)},onVisible:function(){},onHide:function(){},onHidden:function(){},onBeforeHide:function(n){n.call(this)},useFailSafe:!0,failSafeDelay:100,allowRepeats:!1,displayType:!1,animation:"fade",duration:!1,queue:!0,skipInlineHidden:!1,metadata:{displayType:"display"},className:{animating:"animating",disabled:"disabled",hidden:"hidden",inward:"in",loading:"loading",looping:"looping",outward:"out",transition:"transition",visible:"visible"},error:{noAnimation:"Element is no longer attached to DOM. Unable to animate. Use silent setting to suppress this warning in production."}}}(jQuery,window,document);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.64+bcb9c73 - Visibility
2
+ * # Fomantic-UI 2.10.0-beta.66+beed92a - Visibility
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -176,16 +176,14 @@
176
176
  }, 100);
177
177
  },
178
178
  contextChanged: function (mutations) {
179
- Array.prototype.forEach.call(mutations, function (mutation) {
180
- if (mutation.removedNodes) {
181
- Array.prototype.forEach.call(mutation.removedNodes, function (node) {
182
- if (node === element || $(node).find(element).length > 0) {
183
- module.debug('Element removed from DOM, tearing down events');
184
- module.destroy();
185
- }
186
- });
179
+ for (const mutation of mutations) {
180
+ for (const node of mutation.removedNodes) {
181
+ if (node === element || $(node).find(element).length > 0) {
182
+ module.debug('Element removed from DOM, tearing down events');
183
+ module.destroy();
184
+ }
187
185
  }
188
- });
186
+ }
189
187
  },
190
188
  resize: function () {
191
189
  module.debug('Window resized');
@@ -826,8 +824,8 @@
826
824
  // offset
827
825
  if (settings.includeMargin) {
828
826
  element.margin = {};
829
- element.margin.top = parseInt($module.css('margin-top'), 10);
830
- element.margin.bottom = parseInt($module.css('margin-bottom'), 10);
827
+ element.margin.top = Number.parseInt($module.css('margin-top'), 10);
828
+ element.margin.bottom = Number.parseInt($module.css('margin-bottom'), 10);
831
829
  element.top = element.offset.top - element.margin.top;
832
830
  element.bottom = element.offset.top + element.height + element.margin.bottom;
833
831
  } else {
@@ -882,10 +880,10 @@
882
880
  pixelsPassed: function (amount) {
883
881
  const element = module.get.elementCalculations();
884
882
  if (amount.search('%') > -1) {
885
- return element.height * (parseInt(amount, 10) / 100);
883
+ return element.height * (Number.parseInt(amount, 10) / 100);
886
884
  }
887
885
 
888
- return parseInt(amount, 10);
886
+ return Number.parseInt(amount, 10);
889
887
  },
890
888
  occurred: function (callback) {
891
889
  return module.cache.occurred !== undefined
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.64+bcb9c73
2
+ * # Fomantic UI - 2.10.0-beta.66+beed92a
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(k,T,A){"use strict";function O(e){return"function"==typeof e&&"number"!=typeof e.nodeType}T=void 0!==T&&T.Math===Math?T:globalThis,k.fn.visibility=function(...e){const o=k(this);let p=Date.now(),h=[];const P=e[0],x="string"==typeof P,y=e.slice(1),C=function(e,o){let n;return[T,A].includes(e)?n=k(e):0===(n=k(o.document).find(e)).length&&(n=o.frameElement?C(e,o.parent):T),n};let S;const V=o.length;let R=0;return o.each(function(){const i=k.isPlainObject(P)?k.extend(!0,{},k.fn.visibility.settings,P):k.extend({},k.fn.visibility.settings),n=i.className;var e=i.namespace;const r=i.error,o=i.metadata,t="."+e,s="module-"+e,c=k(T),a=k(this),l=C(i.context,T);let d,u=a.data(s);const f=this;let v=!1,b,g;const m={initialize:function(){m.debug("Initializing",i),m.setup.cache(),m.should.trackChanges()&&("image"===i.type&&m.setup.image(),"fixed"===i.type&&m.setup.fixed(),i.observeChanges&&m.observeChanges(),m.bind.events()),m.save.position(),m.is.visible()||m.error(r.visible,a),i.initialCheck&&m.checkVisibility(),m.instantiate()},instantiate:function(){m.debug("Storing instance",m),a.data(s,m),u=m},destroy:function(){m.verbose("Destroying previous module"),g&&g.disconnect(),b&&b.disconnect(),c.off("load"+t,m.event.load).off("resize"+t,m.event.resize),l.off("scroll"+t,m.event.scroll).off("scrollchange"+t,m.event.scrollchange),"fixed"===i.type&&(m.resetFixed(),m.remove.placeholder()),a.off(t).removeData(s)},observeChanges:function(){b=new MutationObserver(m.event.contextChanged),g=new MutationObserver(m.event.changed),b.observe(A,{childList:!0,subtree:!0}),g.observe(f,{childList:!0,subtree:!0}),m.debug("Setting up mutation observer",g)},bind:{events:function(){m.verbose("Binding visibility events to scroll and resize"),i.refreshOnLoad&&c.on("load"+t,m.event.load),c.on("resize"+t,m.event.resize),l.off("scroll"+t).on("scroll"+t,m.event.scroll).on("scrollchange"+t,m.event.scrollchange)}},event:{changed:function(e){m.verbose("DOM tree modified, updating visibility calculations"),m.timer=setTimeout(function(){m.verbose("DOM tree modified, updating sticky menu"),m.refresh()},100)},contextChanged:function(e){Array.prototype.forEach.call(e,function(e){e.removedNodes&&Array.prototype.forEach.call(e.removedNodes,function(e){(e===f||0<k(e).find(f).length)&&(m.debug("Element removed from DOM, tearing down events"),m.destroy())})})},resize:function(){m.debug("Window resized"),i.refreshOnResize&&requestAnimationFrame(m.refresh)},load:function(){m.debug("Page finished loading"),requestAnimationFrame(m.refresh)},scroll:function(){i.throttle?(clearTimeout(m.timer),m.timer=setTimeout(function(){l.triggerHandler("scrollchange"+t,[l.scrollTop()])},i.throttle)):requestAnimationFrame(function(){l.triggerHandler("scrollchange"+t,[l.scrollTop()])})},scrollchange:function(e,o){m.checkVisibility(o)}},precache:function(e,o){let n=(e=Array.isArray(e)?e:[e]).length,t=0;const i=[];let s=A.createElement("img");for(var c=function(){++t>=e.length&&O(o)&&o()};n--;)(s=A.createElement("img")).addEventListener("load",c),s.addEventListener("error",c),s.src=e[n],i.push(s)},enableCallbacks:function(){m.debug("Allowing callbacks to occur"),v=!1},disableCallbacks:function(){m.debug("Disabling all callbacks temporarily"),v=!0},should:{trackChanges:function(){return x?(m.debug("One time query, no need to bind events"),!1):(m.debug("Callbacks being attached"),!0)}},setup:{cache:function(){m.cache={occurred:{},screen:{},element:{}}},image:function(){const e=a.data(o.src);e&&(m.verbose("Lazy loading image",e),i.once=!0,i.observeChanges=!1,i.onOnScreen=function(){m.debug("Image on screen",f),m.precache(e,function(){m.set.image(e,function(){++R===V&&i.onAllLoaded.call(this),i.onLoad.call(this)})})})},fixed:function(){m.debug("Setting up fixed"),i.once=!1,i.observeChanges=!1,i.initialCheck=!0,i.refreshOnLoad=!0,P.transition||(i.transition=!1),m.create.placeholder(),m.debug("Added placeholder",d),i.onTopPassed=function(){m.debug("Element passed, adding fixed position",a),m.show.placeholder(),m.set.fixed(),i.transition&&void 0!==k.fn.transition&&a.transition(i.transition,i.duration)},i.onTopPassedReverse=function(){m.debug("Element returned to position, removing fixed",a),m.hide.placeholder(),m.remove.fixed()}}},create:{placeholder:function(){m.verbose("Creating fixed position placeholder"),d=a.clone(!1).css("display","none").addClass(n.placeholder).insertAfter(a)}},show:{placeholder:function(){m.verbose("Showing placeholder"),d.css("display","block").css("visibility","hidden")}},hide:{placeholder:function(){m.verbose("Hiding placeholder"),d.css("display","none").css("visibility","")}},set:{fixed:function(){m.verbose("Setting element to fixed position"),a.addClass(n.fixed).css({position:"fixed",top:i.offset+"px",left:"auto",zIndex:i.zIndex}),i.onFixed.call(f)},image:function(e,o){a.attr("src",e),i.transition?void 0!==k.fn.transition?a.hasClass(n.visible)?m.debug("Transition already occurred on this image, skipping animation"):a.transition(i.transition,i.duration,o):a.fadeIn(i.duration,o):a.show()}},is:{onScreen:function(){return m.get.elementCalculations().onScreen},offScreen:function(){return m.get.elementCalculations().offScreen},visible:function(){return!(!m.cache||!m.cache.element)&&!(0===m.cache.element.width&&0===m.cache.element.offset.top)},verticallyScrollableContext:function(){var e=l[0]!==T&&l.css("overflow-y");return"auto"===e||"scroll"===e},horizontallyScrollableContext:function(){var e=l[0]!==T&&l.css("overflow-x");return"auto"===e||"scroll"===e}},refresh:function(){m.debug("Refreshing constants (width/height)"),"fixed"===i.type&&m.resetFixed(),m.reset(),m.save.position(),i.checkOnRefresh&&m.checkVisibility(),i.onRefresh.call(f)},resetFixed:function(){m.remove.fixed(),m.remove.occurred()},reset:function(){m.verbose("Resetting all cached values"),k.isPlainObject(m.cache)&&(m.cache.screen={},m.cache.element={})},checkVisibility:function(e){m.verbose("Checking visibility of element",m.cache.element),!v&&m.is.visible()&&(m.save.scroll(e),m.save.calculations(),m.passed(),m.passingReverse(),m.topVisibleReverse(),m.bottomVisibleReverse(),m.topPassedReverse(),m.bottomPassedReverse(),m.onScreen(),m.offScreen(),m.passing(),m.topVisible(),m.bottomVisible(),m.topPassed(),m.bottomPassed(),i.onUpdate&&i.onUpdate.call(f,m.get.elementCalculations()))},passed:function(e,o){const n=m.get.elementCalculations();if(e&&o)i.onPassed[e]=o;else{if(void 0!==e)return m.get.pixelsPassed(e)>n.pixelsPassed;n.passing&&k.each(i.onPassed,function(e,o){n.bottomVisible||n.pixelsPassed>m.get.pixelsPassed(e)?m.execute(o,e):i.once||m.remove.occurred(o)})}},onScreen:function(e){var o=m.get.elementCalculations(),n=e||i.onOnScreen,t="onScreen";if(e&&(m.debug("Adding callback for onScreen",e),i.onOnScreen=e),o.onScreen?m.execute(n,t):i.once||m.remove.occurred(t),void 0!==e)return o.onOnScreen},offScreen:function(e){var o=m.get.elementCalculations(),n=e||i.onOffScreen,t="offScreen";if(e&&(m.debug("Adding callback for offScreen",e),i.onOffScreen=e),o.offScreen?m.execute(n,t):i.once||m.remove.occurred(t),void 0!==e)return o.onOffScreen},passing:function(e){var o=m.get.elementCalculations(),n=e||i.onPassing,t="passing";if(e&&(m.debug("Adding callback for passing",e),i.onPassing=e),o.passing?m.execute(n,t):i.once||m.remove.occurred(t),void 0!==e)return o.passing},topVisible:function(e){var o=m.get.elementCalculations(),n=e||i.onTopVisible,t="topVisible";if(e&&(m.debug("Adding callback for top visible",e),i.onTopVisible=e),o.topVisible?m.execute(n,t):i.once||m.remove.occurred(t),void 0===e)return o.topVisible},bottomVisible:function(e){var o=m.get.elementCalculations(),n=e||i.onBottomVisible,t="bottomVisible";if(e&&(m.debug("Adding callback for bottom visible",e),i.onBottomVisible=e),o.bottomVisible?m.execute(n,t):i.once||m.remove.occurred(t),void 0===e)return o.bottomVisible},topPassed:function(e){var o=m.get.elementCalculations(),n=e||i.onTopPassed,t="topPassed";if(e&&(m.debug("Adding callback for top passed",e),i.onTopPassed=e),o.topPassed?m.execute(n,t):i.once||m.remove.occurred(t),void 0===e)return o.topPassed},bottomPassed:function(e){var o=m.get.elementCalculations(),n=e||i.onBottomPassed,t="bottomPassed";if(e&&(m.debug("Adding callback for bottom passed",e),i.onBottomPassed=e),o.bottomPassed?m.execute(n,t):i.once||m.remove.occurred(t),void 0===e)return o.bottomPassed},passingReverse:function(e){var o=m.get.elementCalculations(),n=e||i.onPassingReverse,t="passingReverse";if(e&&(m.debug("Adding callback for passing reverse",e),i.onPassingReverse=e),o.passing?i.once||m.remove.occurred(t):m.get.occurred("passing")&&m.execute(n,t),void 0!==e)return!o.passing},topVisibleReverse:function(e){var o=m.get.elementCalculations(),n=e||i.onTopVisibleReverse,t="topVisibleReverse";if(e&&(m.debug("Adding callback for top visible reverse",e),i.onTopVisibleReverse=e),o.topVisible?i.once||m.remove.occurred(t):m.get.occurred("topVisible")&&m.execute(n,t),void 0===e)return!o.topVisible},bottomVisibleReverse:function(e){var o=m.get.elementCalculations(),n=e||i.onBottomVisibleReverse,t="bottomVisibleReverse";if(e&&(m.debug("Adding callback for bottom visible reverse",e),i.onBottomVisibleReverse=e),o.bottomVisible?i.once||m.remove.occurred(t):m.get.occurred("bottomVisible")&&m.execute(n,t),void 0===e)return!o.bottomVisible},topPassedReverse:function(e){var o=m.get.elementCalculations(),n=e||i.onTopPassedReverse,t="topPassedReverse";if(e&&(m.debug("Adding callback for top passed reverse",e),i.onTopPassedReverse=e),o.topPassed?i.once||m.remove.occurred(t):m.get.occurred("topPassed")&&m.execute(n,t),void 0===e)return!o.onTopPassed},bottomPassedReverse:function(e){var o=m.get.elementCalculations(),n=e||i.onBottomPassedReverse,t="bottomPassedReverse";if(e&&(m.debug("Adding callback for bottom passed reverse",e),i.onBottomPassedReverse=e),o.bottomPassed?i.once||m.remove.occurred(t):m.get.occurred("bottomPassed")&&m.execute(n,t),void 0===e)return!o.bottomPassed},execute:function(e=!1,o=""){var n=m.get.elementCalculations(),t=m.get.screenCalculations();O(e)&&(i.continuous?(m.debug("Callback being called continuously",o,n),e.call(f,n,t)):m.get.occurred(o)||(m.debug("Conditions met",o,n),e.call(f,n,t))),m.save.occurred(o)},remove:{fixed:function(){m.debug("Removing fixed position"),a.removeClass(n.fixed).css({position:"",top:"",left:"",zIndex:""}),i.onUnfixed.call(f)},placeholder:function(){m.debug("Removing placeholder content"),d&&d.remove()},occurred:function(e){var o;e?void 0!==(o=m.cache.occurred)[e]&&!0===o[e]&&(m.debug("Callback can now be called again",e),m.cache.occurred[e]=!1):m.cache.occurred={}}},save:{calculations:function(){m.verbose("Saving all calculations necessary to determine positioning"),m.save.direction(),m.save.screenCalculations(),m.save.elementCalculations()},occurred:function(e){!e||void 0!==m.cache.occurred[e]&&!0===m.cache.occurred[e]||(m.verbose("Saving callback occurred",e),m.cache.occurred[e]=!0)},scroll:function(e){e=e+i.offset||l.scrollTop()+i.offset,m.cache.scroll=e},direction:function(){var e=m.get.scroll(),o=m.get.lastScroll();let n;return n=o<e&&o?"down":e<o&&o?"up":"static",m.cache.direction=n,m.cache.direction},elementPosition:function(){const e=m.cache.element;var o=m.get.screenSize();return m.verbose("Saving element position"),e.fits=e.height<o.height,e.offset=a.offset(),e.width=a.outerWidth(),e.height=a.outerHeight(),m.is.verticallyScrollableContext()&&(e.offset.top+=l.scrollTop()-l.offset().top),m.is.horizontallyScrollableContext()&&(e.offset.left+=l.scrollLeft()-l.offset().left),m.cache.element=e},elementCalculations:function(){var e=m.get.screenCalculations();const o=m.get.elementPosition();return i.includeMargin?(o.margin={},o.margin.top=parseInt(a.css("margin-top"),10),o.margin.bottom=parseInt(a.css("margin-bottom"),10),o.top=o.offset.top-o.margin.top,o.bottom=o.offset.top+o.height+o.margin.bottom):(o.top=o.offset.top,o.bottom=o.offset.top+o.height),o.topPassed=e.top>=o.top,o.bottomPassed=e.top>=o.bottom,o.topVisible=e.bottom>=o.top&&!o.topPassed,o.bottomVisible=e.bottom>=o.bottom&&!o.bottomPassed,o.pixelsPassed=0,o.percentagePassed=0,o.onScreen=(o.topVisible||o.passing)&&!o.bottomPassed,o.passing=o.topPassed&&!o.bottomPassed,o.offScreen=!o.onScreen,o.passing&&(o.pixelsPassed=e.top-o.top,o.percentagePassed=(e.top-o.top)/o.height),m.cache.element=o,m.verbose("Updated element calculations",o),o},screenCalculations:function(){var e=m.get.scroll();return m.save.direction(),m.cache.screen.top=e,m.cache.screen.bottom=e+m.cache.screen.height,m.cache.screen},screenSize:function(){m.verbose("Saving window position"),m.cache.screen={height:l.height()}},position:function(){m.save.screenSize(),m.save.elementPosition()}},get:{pixelsPassed:function(e){var o=m.get.elementCalculations();return-1<e.search("%")?o.height*(parseInt(e,10)/100):parseInt(e,10)},occurred:function(e){return void 0!==m.cache.occurred&&m.cache.occurred[e]||!1},direction:function(){return void 0===m.cache.direction&&m.save.direction(),m.cache.direction},elementPosition:function(){return void 0===m.cache.element&&m.save.elementPosition(),m.cache.element},elementCalculations:function(){return void 0===m.cache.element&&m.save.elementCalculations(),m.cache.element},screenCalculations:function(){return void 0===m.cache.screen&&m.save.screenCalculations(),m.cache.screen},screenSize:function(){return void 0===m.cache.screen&&m.save.screenSize(),m.cache.screen},scroll:function(){return void 0===m.cache.scroll&&m.save.scroll(),m.cache.scroll},lastScroll:function(){return void 0===m.cache.screen?(m.debug("First scroll event, no last scroll could be found"),!1):m.cache.screen.top}},setting:function(e,o){if(k.isPlainObject(e))k.extend(!0,i,e);else{if(void 0===o)return i[e];i[e]=o}},internal:function(e,o){if(k.isPlainObject(e))k.extend(!0,m,e);else{if(void 0===o)return m[e];m[e]=o}},debug:function(...e){!i.silent&&i.debug&&(i.performance?m.performance.log(e):(m.debug=Function.prototype.bind.call(console.info,console,i.name+":"),m.debug.apply(console,e)))},verbose:function(...e){!i.silent&&i.verbose&&i.debug&&(i.performance?m.performance.log(e):(m.verbose=Function.prototype.bind.call(console.info,console,i.name+":"),m.verbose.apply(console,e)))},error:function(...e){i.silent||(m.error=Function.prototype.bind.call(console.error,console,i.name+":"),m.error.apply(console,e))},performance:{log:function(e){var o,n;i.performance&&(n=(o=Date.now())-(p||o),p=o,h.push({Name:e[0],Arguments:e.slice(1),Element:f,"Execution Time":n})),clearTimeout(m.performance.timer),m.performance.timer=setTimeout(function(){m.performance.display()},500)},display:function(){var e=i.name+":";let n=0;p=!1,clearTimeout(m.performance.timer),k.each(h,function(e,o){n+=o["Execution Time"]}),e+=" "+n+"ms",0<h.length&&(console.groupCollapsed(e),console.table(h),console.groupEnd()),h=[]}},invoke:function(t,e=y,o=f){let i=u,s,c,n;return"string"==typeof t&&void 0!==i&&(t=t.split(/[ .]/),s=t.length-1,k.each(t,function(e,o){var n=e!==s?o+t[e+1].charAt(0).toUpperCase()+t[e+1].slice(1):t;if(k.isPlainObject(i[n])&&e!==s)i=i[n];else{if(void 0!==i[n])return c=i[n],!1;{if(!k.isPlainObject(i[o])||e===s)return void 0!==i[o]?c=i[o]:m.error(r.method,t),!1;i=i[o]}}})),O(c)?n=c.apply(o,e):void 0!==c&&(n=c),Array.isArray(S)?S.push(n):void 0!==S?S=[S,n]:void 0!==n&&(S=n),c}};x?(void 0===u&&m.initialize(),u.save.scroll(),u.save.calculations(),m.invoke(P)):(void 0!==u&&u.invoke("destroy"),m.initialize())}),void 0!==S?S:this},k.fn.visibility.settings={name:"Visibility",namespace:"visibility",debug:!1,verbose:!1,performance:!0,observeChanges:!0,initialCheck:!0,refreshOnLoad:!0,refreshOnResize:!0,checkOnRefresh:!0,once:!0,continuous:!1,offset:0,includeMargin:!1,context:T,throttle:!1,type:!1,zIndex:"10",transition:"fade in",duration:1e3,onPassed:{},onOnScreen:!1,onOffScreen:!1,onPassing:!1,onTopVisible:!1,onBottomVisible:!1,onTopPassed:!1,onBottomPassed:!1,onPassingReverse:!1,onTopVisibleReverse:!1,onBottomVisibleReverse:!1,onTopPassedReverse:!1,onBottomPassedReverse:!1,onLoad:function(){},onAllLoaded:function(){},onFixed:function(){},onUnfixed:function(){},onUpdate:!1,onRefresh:function(){},metadata:{src:"src"},className:{fixed:"fixed",placeholder:"constraint",visible:"visible"},error:{method:"The method you called is not defined.",visible:"Element is hidden, you must call refresh after element becomes visible"}}}(jQuery,window,document);
11
+ !function(k,T,O){"use strict";function A(e){return"function"==typeof e&&"number"!=typeof e.nodeType}T=void 0!==T&&T.Math===Math?T:globalThis,k.fn.visibility=function(...e){const o=k(this);let p=Date.now(),h=[];const P=e[0],x="string"==typeof P,y=e.slice(1),C=function(e,o){let n;return[T,O].includes(e)?n=k(e):0===(n=k(o.document).find(e)).length&&(n=o.frameElement?C(e,o.parent):T),n};let S;const V=o.length;let R=0;return o.each(function(){const i=k.isPlainObject(P)?k.extend(!0,{},k.fn.visibility.settings,P):k.extend({},k.fn.visibility.settings),n=i.className;var e=i.namespace;const r=i.error,o=i.metadata,t="."+e,s="module-"+e,c=k(T),a=k(this),l=C(i.context,T);let d,u=a.data(s);const f=this;let b=!1,v,g;const m={initialize:function(){m.debug("Initializing",i),m.setup.cache(),m.should.trackChanges()&&("image"===i.type&&m.setup.image(),"fixed"===i.type&&m.setup.fixed(),i.observeChanges&&m.observeChanges(),m.bind.events()),m.save.position(),m.is.visible()||m.error(r.visible,a),i.initialCheck&&m.checkVisibility(),m.instantiate()},instantiate:function(){m.debug("Storing instance",m),a.data(s,m),u=m},destroy:function(){m.verbose("Destroying previous module"),g&&g.disconnect(),v&&v.disconnect(),c.off("load"+t,m.event.load).off("resize"+t,m.event.resize),l.off("scroll"+t,m.event.scroll).off("scrollchange"+t,m.event.scrollchange),"fixed"===i.type&&(m.resetFixed(),m.remove.placeholder()),a.off(t).removeData(s)},observeChanges:function(){v=new MutationObserver(m.event.contextChanged),g=new MutationObserver(m.event.changed),v.observe(O,{childList:!0,subtree:!0}),g.observe(f,{childList:!0,subtree:!0}),m.debug("Setting up mutation observer",g)},bind:{events:function(){m.verbose("Binding visibility events to scroll and resize"),i.refreshOnLoad&&c.on("load"+t,m.event.load),c.on("resize"+t,m.event.resize),l.off("scroll"+t).on("scroll"+t,m.event.scroll).on("scrollchange"+t,m.event.scrollchange)}},event:{changed:function(e){m.verbose("DOM tree modified, updating visibility calculations"),m.timer=setTimeout(function(){m.verbose("DOM tree modified, updating sticky menu"),m.refresh()},100)},contextChanged:function(e){for(const o of e)for(const n of o.removedNodes)(n===f||0<k(n).find(f).length)&&(m.debug("Element removed from DOM, tearing down events"),m.destroy())},resize:function(){m.debug("Window resized"),i.refreshOnResize&&requestAnimationFrame(m.refresh)},load:function(){m.debug("Page finished loading"),requestAnimationFrame(m.refresh)},scroll:function(){i.throttle?(clearTimeout(m.timer),m.timer=setTimeout(function(){l.triggerHandler("scrollchange"+t,[l.scrollTop()])},i.throttle)):requestAnimationFrame(function(){l.triggerHandler("scrollchange"+t,[l.scrollTop()])})},scrollchange:function(e,o){m.checkVisibility(o)}},precache:function(e,o){let n=(e=Array.isArray(e)?e:[e]).length,t=0;const i=[];let s=O.createElement("img");for(var c=function(){++t>=e.length&&A(o)&&o()};n--;)(s=O.createElement("img")).addEventListener("load",c),s.addEventListener("error",c),s.src=e[n],i.push(s)},enableCallbacks:function(){m.debug("Allowing callbacks to occur"),b=!1},disableCallbacks:function(){m.debug("Disabling all callbacks temporarily"),b=!0},should:{trackChanges:function(){return x?(m.debug("One time query, no need to bind events"),!1):(m.debug("Callbacks being attached"),!0)}},setup:{cache:function(){m.cache={occurred:{},screen:{},element:{}}},image:function(){const e=a.data(o.src);e&&(m.verbose("Lazy loading image",e),i.once=!0,i.observeChanges=!1,i.onOnScreen=function(){m.debug("Image on screen",f),m.precache(e,function(){m.set.image(e,function(){++R===V&&i.onAllLoaded.call(this),i.onLoad.call(this)})})})},fixed:function(){m.debug("Setting up fixed"),i.once=!1,i.observeChanges=!1,i.initialCheck=!0,i.refreshOnLoad=!0,P.transition||(i.transition=!1),m.create.placeholder(),m.debug("Added placeholder",d),i.onTopPassed=function(){m.debug("Element passed, adding fixed position",a),m.show.placeholder(),m.set.fixed(),i.transition&&void 0!==k.fn.transition&&a.transition(i.transition,i.duration)},i.onTopPassedReverse=function(){m.debug("Element returned to position, removing fixed",a),m.hide.placeholder(),m.remove.fixed()}}},create:{placeholder:function(){m.verbose("Creating fixed position placeholder"),d=a.clone(!1).css("display","none").addClass(n.placeholder).insertAfter(a)}},show:{placeholder:function(){m.verbose("Showing placeholder"),d.css("display","block").css("visibility","hidden")}},hide:{placeholder:function(){m.verbose("Hiding placeholder"),d.css("display","none").css("visibility","")}},set:{fixed:function(){m.verbose("Setting element to fixed position"),a.addClass(n.fixed).css({position:"fixed",top:i.offset+"px",left:"auto",zIndex:i.zIndex}),i.onFixed.call(f)},image:function(e,o){a.attr("src",e),i.transition?void 0!==k.fn.transition?a.hasClass(n.visible)?m.debug("Transition already occurred on this image, skipping animation"):a.transition(i.transition,i.duration,o):a.fadeIn(i.duration,o):a.show()}},is:{onScreen:function(){return m.get.elementCalculations().onScreen},offScreen:function(){return m.get.elementCalculations().offScreen},visible:function(){return!(!m.cache||!m.cache.element)&&!(0===m.cache.element.width&&0===m.cache.element.offset.top)},verticallyScrollableContext:function(){var e=l[0]!==T&&l.css("overflow-y");return"auto"===e||"scroll"===e},horizontallyScrollableContext:function(){var e=l[0]!==T&&l.css("overflow-x");return"auto"===e||"scroll"===e}},refresh:function(){m.debug("Refreshing constants (width/height)"),"fixed"===i.type&&m.resetFixed(),m.reset(),m.save.position(),i.checkOnRefresh&&m.checkVisibility(),i.onRefresh.call(f)},resetFixed:function(){m.remove.fixed(),m.remove.occurred()},reset:function(){m.verbose("Resetting all cached values"),k.isPlainObject(m.cache)&&(m.cache.screen={},m.cache.element={})},checkVisibility:function(e){m.verbose("Checking visibility of element",m.cache.element),!b&&m.is.visible()&&(m.save.scroll(e),m.save.calculations(),m.passed(),m.passingReverse(),m.topVisibleReverse(),m.bottomVisibleReverse(),m.topPassedReverse(),m.bottomPassedReverse(),m.onScreen(),m.offScreen(),m.passing(),m.topVisible(),m.bottomVisible(),m.topPassed(),m.bottomPassed(),i.onUpdate&&i.onUpdate.call(f,m.get.elementCalculations()))},passed:function(e,o){const n=m.get.elementCalculations();if(e&&o)i.onPassed[e]=o;else{if(void 0!==e)return m.get.pixelsPassed(e)>n.pixelsPassed;n.passing&&k.each(i.onPassed,function(e,o){n.bottomVisible||n.pixelsPassed>m.get.pixelsPassed(e)?m.execute(o,e):i.once||m.remove.occurred(o)})}},onScreen:function(e){var o=m.get.elementCalculations(),n=e||i.onOnScreen,t="onScreen";if(e&&(m.debug("Adding callback for onScreen",e),i.onOnScreen=e),o.onScreen?m.execute(n,t):i.once||m.remove.occurred(t),void 0!==e)return o.onOnScreen},offScreen:function(e){var o=m.get.elementCalculations(),n=e||i.onOffScreen,t="offScreen";if(e&&(m.debug("Adding callback for offScreen",e),i.onOffScreen=e),o.offScreen?m.execute(n,t):i.once||m.remove.occurred(t),void 0!==e)return o.onOffScreen},passing:function(e){var o=m.get.elementCalculations(),n=e||i.onPassing,t="passing";if(e&&(m.debug("Adding callback for passing",e),i.onPassing=e),o.passing?m.execute(n,t):i.once||m.remove.occurred(t),void 0!==e)return o.passing},topVisible:function(e){var o=m.get.elementCalculations(),n=e||i.onTopVisible,t="topVisible";if(e&&(m.debug("Adding callback for top visible",e),i.onTopVisible=e),o.topVisible?m.execute(n,t):i.once||m.remove.occurred(t),void 0===e)return o.topVisible},bottomVisible:function(e){var o=m.get.elementCalculations(),n=e||i.onBottomVisible,t="bottomVisible";if(e&&(m.debug("Adding callback for bottom visible",e),i.onBottomVisible=e),o.bottomVisible?m.execute(n,t):i.once||m.remove.occurred(t),void 0===e)return o.bottomVisible},topPassed:function(e){var o=m.get.elementCalculations(),n=e||i.onTopPassed,t="topPassed";if(e&&(m.debug("Adding callback for top passed",e),i.onTopPassed=e),o.topPassed?m.execute(n,t):i.once||m.remove.occurred(t),void 0===e)return o.topPassed},bottomPassed:function(e){var o=m.get.elementCalculations(),n=e||i.onBottomPassed,t="bottomPassed";if(e&&(m.debug("Adding callback for bottom passed",e),i.onBottomPassed=e),o.bottomPassed?m.execute(n,t):i.once||m.remove.occurred(t),void 0===e)return o.bottomPassed},passingReverse:function(e){var o=m.get.elementCalculations(),n=e||i.onPassingReverse,t="passingReverse";if(e&&(m.debug("Adding callback for passing reverse",e),i.onPassingReverse=e),o.passing?i.once||m.remove.occurred(t):m.get.occurred("passing")&&m.execute(n,t),void 0!==e)return!o.passing},topVisibleReverse:function(e){var o=m.get.elementCalculations(),n=e||i.onTopVisibleReverse,t="topVisibleReverse";if(e&&(m.debug("Adding callback for top visible reverse",e),i.onTopVisibleReverse=e),o.topVisible?i.once||m.remove.occurred(t):m.get.occurred("topVisible")&&m.execute(n,t),void 0===e)return!o.topVisible},bottomVisibleReverse:function(e){var o=m.get.elementCalculations(),n=e||i.onBottomVisibleReverse,t="bottomVisibleReverse";if(e&&(m.debug("Adding callback for bottom visible reverse",e),i.onBottomVisibleReverse=e),o.bottomVisible?i.once||m.remove.occurred(t):m.get.occurred("bottomVisible")&&m.execute(n,t),void 0===e)return!o.bottomVisible},topPassedReverse:function(e){var o=m.get.elementCalculations(),n=e||i.onTopPassedReverse,t="topPassedReverse";if(e&&(m.debug("Adding callback for top passed reverse",e),i.onTopPassedReverse=e),o.topPassed?i.once||m.remove.occurred(t):m.get.occurred("topPassed")&&m.execute(n,t),void 0===e)return!o.onTopPassed},bottomPassedReverse:function(e){var o=m.get.elementCalculations(),n=e||i.onBottomPassedReverse,t="bottomPassedReverse";if(e&&(m.debug("Adding callback for bottom passed reverse",e),i.onBottomPassedReverse=e),o.bottomPassed?i.once||m.remove.occurred(t):m.get.occurred("bottomPassed")&&m.execute(n,t),void 0===e)return!o.bottomPassed},execute:function(e=!1,o=""){var n=m.get.elementCalculations(),t=m.get.screenCalculations();A(e)&&(i.continuous?(m.debug("Callback being called continuously",o,n),e.call(f,n,t)):m.get.occurred(o)||(m.debug("Conditions met",o,n),e.call(f,n,t))),m.save.occurred(o)},remove:{fixed:function(){m.debug("Removing fixed position"),a.removeClass(n.fixed).css({position:"",top:"",left:"",zIndex:""}),i.onUnfixed.call(f)},placeholder:function(){m.debug("Removing placeholder content"),d&&d.remove()},occurred:function(e){var o;e?void 0!==(o=m.cache.occurred)[e]&&!0===o[e]&&(m.debug("Callback can now be called again",e),m.cache.occurred[e]=!1):m.cache.occurred={}}},save:{calculations:function(){m.verbose("Saving all calculations necessary to determine positioning"),m.save.direction(),m.save.screenCalculations(),m.save.elementCalculations()},occurred:function(e){!e||void 0!==m.cache.occurred[e]&&!0===m.cache.occurred[e]||(m.verbose("Saving callback occurred",e),m.cache.occurred[e]=!0)},scroll:function(e){e=e+i.offset||l.scrollTop()+i.offset,m.cache.scroll=e},direction:function(){var e=m.get.scroll(),o=m.get.lastScroll();let n;return n=o<e&&o?"down":e<o&&o?"up":"static",m.cache.direction=n,m.cache.direction},elementPosition:function(){const e=m.cache.element;var o=m.get.screenSize();return m.verbose("Saving element position"),e.fits=e.height<o.height,e.offset=a.offset(),e.width=a.outerWidth(),e.height=a.outerHeight(),m.is.verticallyScrollableContext()&&(e.offset.top+=l.scrollTop()-l.offset().top),m.is.horizontallyScrollableContext()&&(e.offset.left+=l.scrollLeft()-l.offset().left),m.cache.element=e},elementCalculations:function(){var e=m.get.screenCalculations();const o=m.get.elementPosition();return i.includeMargin?(o.margin={},o.margin.top=Number.parseInt(a.css("margin-top"),10),o.margin.bottom=Number.parseInt(a.css("margin-bottom"),10),o.top=o.offset.top-o.margin.top,o.bottom=o.offset.top+o.height+o.margin.bottom):(o.top=o.offset.top,o.bottom=o.offset.top+o.height),o.topPassed=e.top>=o.top,o.bottomPassed=e.top>=o.bottom,o.topVisible=e.bottom>=o.top&&!o.topPassed,o.bottomVisible=e.bottom>=o.bottom&&!o.bottomPassed,o.pixelsPassed=0,o.percentagePassed=0,o.onScreen=(o.topVisible||o.passing)&&!o.bottomPassed,o.passing=o.topPassed&&!o.bottomPassed,o.offScreen=!o.onScreen,o.passing&&(o.pixelsPassed=e.top-o.top,o.percentagePassed=(e.top-o.top)/o.height),m.cache.element=o,m.verbose("Updated element calculations",o),o},screenCalculations:function(){var e=m.get.scroll();return m.save.direction(),m.cache.screen.top=e,m.cache.screen.bottom=e+m.cache.screen.height,m.cache.screen},screenSize:function(){m.verbose("Saving window position"),m.cache.screen={height:l.height()}},position:function(){m.save.screenSize(),m.save.elementPosition()}},get:{pixelsPassed:function(e){var o=m.get.elementCalculations();return-1<e.search("%")?o.height*(Number.parseInt(e,10)/100):Number.parseInt(e,10)},occurred:function(e){return void 0!==m.cache.occurred&&m.cache.occurred[e]||!1},direction:function(){return void 0===m.cache.direction&&m.save.direction(),m.cache.direction},elementPosition:function(){return void 0===m.cache.element&&m.save.elementPosition(),m.cache.element},elementCalculations:function(){return void 0===m.cache.element&&m.save.elementCalculations(),m.cache.element},screenCalculations:function(){return void 0===m.cache.screen&&m.save.screenCalculations(),m.cache.screen},screenSize:function(){return void 0===m.cache.screen&&m.save.screenSize(),m.cache.screen},scroll:function(){return void 0===m.cache.scroll&&m.save.scroll(),m.cache.scroll},lastScroll:function(){return void 0===m.cache.screen?(m.debug("First scroll event, no last scroll could be found"),!1):m.cache.screen.top}},setting:function(e,o){if(k.isPlainObject(e))k.extend(!0,i,e);else{if(void 0===o)return i[e];i[e]=o}},internal:function(e,o){if(k.isPlainObject(e))k.extend(!0,m,e);else{if(void 0===o)return m[e];m[e]=o}},debug:function(...e){!i.silent&&i.debug&&(i.performance?m.performance.log(e):(m.debug=Function.prototype.bind.call(console.info,console,i.name+":"),m.debug.apply(console,e)))},verbose:function(...e){!i.silent&&i.verbose&&i.debug&&(i.performance?m.performance.log(e):(m.verbose=Function.prototype.bind.call(console.info,console,i.name+":"),m.verbose.apply(console,e)))},error:function(...e){i.silent||(m.error=Function.prototype.bind.call(console.error,console,i.name+":"),m.error.apply(console,e))},performance:{log:function(e){var o,n;i.performance&&(n=(o=Date.now())-(p||o),p=o,h.push({Name:e[0],Arguments:e.slice(1),Element:f,"Execution Time":n})),clearTimeout(m.performance.timer),m.performance.timer=setTimeout(function(){m.performance.display()},500)},display:function(){var e=i.name+":";let n=0;p=!1,clearTimeout(m.performance.timer),k.each(h,function(e,o){n+=o["Execution Time"]}),e+=" "+n+"ms",0<h.length&&(console.groupCollapsed(e),console.table(h),console.groupEnd()),h=[]}},invoke:function(t,e=y,o=f){let i=u,s,c,n;return"string"==typeof t&&void 0!==i&&(t=t.split(/[ .]/),s=t.length-1,k.each(t,function(e,o){var n=e!==s?o+t[e+1].charAt(0).toUpperCase()+t[e+1].slice(1):t;if(k.isPlainObject(i[n])&&e!==s)i=i[n];else{if(void 0!==i[n])return c=i[n],!1;{if(!k.isPlainObject(i[o])||e===s)return void 0!==i[o]?c=i[o]:m.error(r.method,t),!1;i=i[o]}}})),A(c)?n=c.apply(o,e):void 0!==c&&(n=c),Array.isArray(S)?S.push(n):void 0!==S?S=[S,n]:void 0!==n&&(S=n),c}};x?(void 0===u&&m.initialize(),u.save.scroll(),u.save.calculations(),m.invoke(P)):(void 0!==u&&u.invoke("destroy"),m.initialize())}),void 0!==S?S:this},k.fn.visibility.settings={name:"Visibility",namespace:"visibility",debug:!1,verbose:!1,performance:!0,observeChanges:!0,initialCheck:!0,refreshOnLoad:!0,refreshOnResize:!0,checkOnRefresh:!0,once:!0,continuous:!1,offset:0,includeMargin:!1,context:T,throttle:!1,type:!1,zIndex:"10",transition:"fade in",duration:1e3,onPassed:{},onOnScreen:!1,onOffScreen:!1,onPassing:!1,onTopVisible:!1,onBottomVisible:!1,onTopPassed:!1,onBottomPassed:!1,onPassingReverse:!1,onTopVisibleReverse:!1,onBottomVisibleReverse:!1,onTopPassedReverse:!1,onBottomPassedReverse:!1,onLoad:function(){},onAllLoaded:function(){},onFixed:function(){},onUnfixed:function(){},onUpdate:!1,onRefresh:function(){},metadata:{src:"src"},className:{fixed:"fixed",placeholder:"constraint",visible:"visible"},error:{method:"The method you called is not defined.",visible:"Element is hidden, you must call refresh after element becomes visible"}}}(jQuery,window,document);