/* * # Fomantic UI - 2.8.8 * https://github.com/fomantic/Fomantic-UI * http://fomantic-ui.com/ * * Copyright 2022 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * */ !function(E,e,T,P){"use strict";E.isFunction=E.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},e=void 0!==e&&e.Math==Math?e:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),E.fn.progress=function(m){var b,e=E(this),h=e.selector||"",x=(new Date).getTime(),y=[],w=m,A="string"==typeof w,V=[].slice.call(arguments,1);return e.each(function(){var i=E.isPlainObject(m)?E.extend(!0,{},E.fn.progress.settings,m):E.extend({},E.fn.progress.settings),n=i.className,t=i.metadata,e=i.namespace,a=i.selector,s=i.error,o="."+e,g="module-"+e,r=E(this),c=E(this).find(a.bar),v=E(this).find(a.progress),f=E(this).find(a.label),l=this,u=r.data(g),p=!1,d={helper:{sum:function(e){return Array.isArray(e)?e.reduce(function(e,t){return e+Number(t)},0):0},derivePrecision:function(e,t){for(var n=0,r=1,a=e/t;n<10&&!(1<(a*=r));)r=Math.pow(10,n++);return r},forceArray:function(e){return Array.isArray(e)?e:isNaN(e)?"string"==typeof e?e.split(","):[]:[e]}},initialize:function(){d.set.duration(),d.set.transitionEvent(),d.debug(l),d.read.metadata(),d.read.settings(),d.instantiate()},instantiate:function(){d.verbose("Storing instance of progress",d),u=d,r.data(g,d)},destroy:function(){d.verbose("Destroying previous progress for",r),clearInterval(u.interval),d.remove.state(),r.removeData(g),u=P},reset:function(){d.remove.nextValue(),d.update.progress(0)},complete:function(e){(d.percent===P||d.percent<100)&&(d.remove.progressPoll(),!0!==e&&d.set.percent(100))},read:{metadata:function(){var e={percent:d.helper.forceArray(r.data(t.percent)),total:r.data(t.total),value:d.helper.forceArray(r.data(t.value))};e.total!==P&&(d.debug("Total value set from metadata",e.total),d.set.total(e.total)),0d.total)return d.debug("Value cannot increment above total",d.total),d.total}else if(100d.total?d.error(s.sumExceedsTotal,o,d.total):!a&&100 .bar",label:"> .label",progress:".bar > .progress"},text:{active:!1,error:!1,success:!1,warning:!1,percent:"{percent}%",ratio:"{value} of {total}",bars:[""]},className:{active:"active",error:"error",success:"success",warning:"warning"}}}(jQuery,window,document);