/* * # Fomantic UI - 2.9.0-beta.301+42e68bc * https://github.com/fomantic/Fomantic-UI * http://fomantic-ui.com/ * * Copyright 2022 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * */ !function(C,n,S,A){"use strict";C.isFunction=C.isFunction||function(n){return"function"==typeof n&&"number"!=typeof n.nodeType},n=void 0!==n&&n.Math==Math?n:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),C.fn.transition=function(){var f,r=C(this),p=r.selector||"",g=(new Date).getTime(),v=[],b=arguments,y=b[0],h=[].slice.call(arguments,1),w="string"==typeof y;return r.each(function(i){var l,s,e,d,t,a,n,o,c=C(this),u=this,m={initialize:function(){l=m.get.settings.apply(u,b),d=l.className,e=l.error,t=l.metadata,o="."+l.namespace,n="module-"+l.namespace,s=c.data(n)||m,a=m.get.animationEndEvent(),!1===(w=w&&m.invoke(y))&&(m.verbose("Converted arguments into settings object",l),l.interval?m.delay(l.animate):m.animate(),m.instantiate())},instantiate:function(){m.verbose("Storing instance of module",m),s=m,c.data(n,s)},destroy:function(){m.verbose("Destroying previous module for",u),c.removeData(n)},refresh:function(){m.verbose("Refreshing display type on next animation"),delete m.displayType},forceRepaint:function(){m.verbose("Forcing element repaint");var n=c.parent(),e=c.next();0===e.length?c.detach().appendTo(n):c.detach().insertBefore(e)},repaint:function(){m.verbose("Repainting element");u.offsetWidth},delay:function(n){var e=(e=m.get.animationDirection())||(m.can.transition()?m.get.direction():"static");n=n!==A?n:l.interval,n="auto"==l.reverse&&e==d.outward||1==l.reverse?(r.length-i)*l.interval:i*l.interval,m.debug("Delaying animation by",n),setTimeout(m.animate,n)},animate:function(n){if(l=n||l,!m.is.supported())return m.error(e.support),!1;if(m.debug("Preparing animation",l.animation),m.is.animating()){if(l.queue)return!l.allowRepeats&&m.has.direction()&&m.is.occurring()&&!0!==m.queuing?m.debug("Animation is currently occurring, preventing queueing same animation",l.animation):m.queue(l.animation),!1;if(!l.allowRepeats&&m.is.occurring())return m.debug("Animation is already occurring, will not execute repeated animation",l.animation),!1;m.debug("New animation started, completing previous early",l.animation),s.complete()}m.can.animate()?m.set.animating(l.animation):m.error(e.noAnimation,l.animation,u)},reset:function(){m.debug("Resetting animation to beginning conditions"),m.remove.animationCallbacks(),m.restore.conditions(),m.remove.animating()},queue:function(n){m.debug("Queueing animation of",n),m.queuing=!0,c.one(a+".queue"+o,function(){m.queuing=!1,m.repaint(),m.animate.apply(this,l)})},complete:function(n){n&&n.target===u&&n.stopPropagation(),m.debug("Animation complete",l.animation),m.remove.completeCallback(),m.remove.failSafe(),m.is.looping()||(m.is.outward()?(m.verbose("Animation is outward, hiding element"),m.restore.conditions(),m.hide()):m.is.inward()?(m.verbose("Animation is outward, showing element"),m.restore.conditions(),m.show()):(m.verbose("Static animation completed"),m.restore.conditions(),l.onComplete.call(u)))},force:{visible:function(){var n=c.attr("style"),n=m.get.userStyle(n),e=m.get.displayType(),n=n+"display: "+e+" !important;",i=c[0].style.display;return!e||"none"===i&&l.skipInlineHidden||c[0].tagName.match(/(script|link|style)/i)?(m.remove.transition(),!1):(m.verbose("Overriding default display to show element",e),c.attr("style",n),!0)},hidden:function(){var n=c.attr("style"),e=c.css("display"),n=n===A||""===n;"none"===e||m.is.hidden()?n&&c.removeAttr("style"):(m.verbose("Overriding default display to hide element"),c.css("display","none"))}},has:{direction:function(n){var i=!1;return"string"==typeof(n=n||l.animation)&&(n=n.split(" "),C.each(n,function(n,e){e!==d.inward&&e!==d.outward||(i=!0)})),i},inlineDisplay:function(){var n=c.attr("style")||"";return Array.isArray(n.match(/display.*?;/,""))}},set:{animating:function(n){m.remove.completeCallback(),n=n||l.animation;n=m.get.animationClass(n);m.save.animation(n),m.force.visible()&&(m.remove.hidden(),m.remove.direction(),m.start.animation(n))},duration:function(n,e){!(e="number"==typeof(e=e||l.duration)?e+"ms":e)&&0!==e||(m.verbose("Setting animation duration",e),c.css({"animation-duration":e}))},direction:function(n){(n=n||m.get.direction())==d.inward?m.set.inward():m.set.outward()},looping:function(){m.debug("Transition set to loop"),c.addClass(d.looping)},hidden:function(){c.addClass(d.transition).addClass(d.hidden)},inward:function(){m.debug("Setting direction to inward"),c.removeClass(d.outward).addClass(d.inward)},outward:function(){m.debug("Setting direction to outward"),c.removeClass(d.inward).addClass(d.outward)},visible:function(){c.addClass(d.transition).addClass(d.visible)}},start:{animation:function(n){n=n||m.get.animationClass(),m.debug("Starting tween",n),c.addClass(n).one(a+".complete"+o,m.complete),l.useFailSafe&&m.add.failSafe(),m.set.duration(l.duration),l.onStart.call(u)}},save:{animation:function(n){m.cache||(m.cache={}),m.cache.animation=n},displayType:function(n){"none"!==n&&c.data(t.displayType,n)},transitionExists:function(n,e){C.fn.transition.exists[n]=e,m.verbose("Saving existence of transition",n,e)}},restore:{conditions:function(){var n=m.get.currentAnimation();n&&(c.removeClass(n),m.verbose("Removing animation class",m.cache)),m.remove.duration()}},add:{failSafe:function(){var n=m.get.duration();m.timer=setTimeout(function(){c.triggerHandler(a)},n+l.failSafeDelay),m.verbose("Adding fail safe timer",m.timer)}},remove:{animating:function(){c.removeClass(d.animating)},animationCallbacks:function(){m.remove.queueCallback(),m.remove.completeCallback()},queueCallback:function(){c.off(".queue"+o)},completeCallback:function(){c.off(".complete"+o)},display:function(){c.css("display","")},direction:function(){c.removeClass(d.inward).removeClass(d.outward)},duration:function(){c.css("animation-duration","")},failSafe:function(){m.verbose("Removing fail safe timer",m.timer),m.timer&&clearTimeout(m.timer)},hidden:function(){c.removeClass(d.hidden)},visible:function(){c.removeClass(d.visible)},looping:function(){m.debug("Transitions are no longer looping"),m.is.looping()&&(m.reset(),c.removeClass(d.looping))},transition:function(){c.removeClass(d.transition).removeClass(d.visible).removeClass(d.hidden)}},get:{settings:function(n,e,i){return"object"==typeof n?C.extend(!0,{},C.fn.transition.settings,n):"function"==typeof i?C.extend({},C.fn.transition.settings,{animation:n,onComplete:i,duration:e}):"string"==typeof e||"number"==typeof e?C.extend({},C.fn.transition.settings,{animation:n,duration:e}):"object"==typeof e?C.extend({},C.fn.transition.settings,e,{animation:n}):"function"==typeof e?C.extend({},C.fn.transition.settings,{animation:n,onComplete:e}):C.extend({},C.fn.transition.settings,{animation:n})},animationClass:function(n){var n=n||l.animation,e=m.can.transition()&&!m.has.direction()?m.get.direction()+" ":"";return d.animating+" "+d.transition+" "+e+n},currentAnimation:function(){return!(!m.cache||m.cache.animation===A)&&m.cache.animation},currentDirection:function(){return m.is.inward()?d.inward:d.outward},direction:function(){return m.is.hidden()||!m.is.visible()?d.inward:d.outward},animationDirection:function(n){var i;return"string"==typeof(n=n||l.animation)&&(n=n.split(" "),C.each(n,function(n,e){e===d.inward?i=d.inward:e===d.outward&&(i=d.outward)})),i||!1},duration:function(n){return"string"==typeof(n=!1===(n=n||l.duration)?c.css("animation-duration")||0:n)?-1").addClass(n).insertAfter(c)).addClass(o).removeClass(d.inward).removeClass(d.outward).addClass(d.animating).addClass(d.transition).css("animationName"),t=e.addClass(d.inward).css("animationName"),s||(s=e.attr("class",n).removeAttr("style").removeClass(d.hidden).removeClass(d.visible).show().css("display"),m.verbose("Determining final display state",s),m.save.displayType(s)),e.remove(),i!=t)m.debug("Direction exists for animation",o),a=!0;else{if("none"==i||!i)return void m.debug("No animation defined in css",o);m.debug("Static animation found",o,s),a=!1}m.save.transitionExists(o,a)}return r!==A?r:a},animate:function(){return m.can.transition()!==A}},is:{animating:function(){return c.hasClass(d.animating)},inward:function(){return c.hasClass(d.inward)},outward:function(){return c.hasClass(d.outward)},looping:function(){return c.hasClass(d.looping)},occurring:function(n){return n="."+(n=n||l.animation).replace(" ","."),0