!function(p){p.jqx.jqxWidget("jqxProgressBar","",{}),p.extend(p.jqx._jqxProgressBar.prototype,{defineInstance:function(){var t={colorRanges:[],value:0,oldValue:null,max:100,min:0,orientation:"horizontal",layout:"normal",width:null,height:null,showText:!1,animationDuration:300,disabled:!1,rtl:!1,renderText:null,template:"",aria:{"aria-valuenow":{name:"value",type:"number"},"aria-disabled":{name:"disabled",type:"boolean"}},events:["valueChanged","invalidValue","complete","change"]};return this===p.jqx._jqxProgressBar.prototype||p.extend(!0,this,t),t},createInstance:function(t){var e=this;this.host.addClass(this.toThemeProperty("jqx-progressbar")),this.host.addClass(this.toThemeProperty("jqx-widget")),this.host.addClass(this.toThemeProperty("jqx-widget-content")),this.host.addClass(this.toThemeProperty("jqx-rc-all")),p.jqx.aria(this),null!=this.width&&-1!=this.width.toString().indexOf("px")||null==this.width||isNaN(this.width),this.host.width(this.width),null!=this.height&&-1!=this.height.toString().indexOf("px")||null==this.height||isNaN(this.height),this.host.height(this.height),this.valueDiv=p("
").appendTo(this.element),this._addRanges(),this.valueDiv.addClass(this.toThemeProperty("jqx-fill-state-pressed")),this.template&&this.valueDiv.addClass(this.toThemeProperty("jqx-"+this.template)),this.feedbackElementHost=p("").appendTo(this.host),this.feedbackElement=p("").appendTo(this.feedbackElementHost),this.feedbackElement.addClass(this.toThemeProperty("jqx-progressbar-text")),this.oldValue=this._value(),this.refresh(),p.jqx.utilities.resize(this.host,function(){e.refresh()})},_addRanges:function(){if(0!=this.colorRanges.length)for(var t="vertical"==this.orientation,e=this.colorRanges,i=e.length,s=0;sMath.min(this.max,this.value)&&(a=Math.min(this.max,this.value));var r=100*(a-this.min)/(this.max-this.min),o=i?e*r/100:t*r/100;o+="px",i?(h.css("height",o),"reverse"==this.layout?h.css("bottom",0):h.css("top",0)):(h.css("width",o),!this.rtl&&"reverse"!=this.layout||h.css("right","0px"))}},_createColorElements:function(t,e,i,s,h){t>Math.min(this.max,this.value)&&(t=Math.min(this.max,this.value));var a=100*t/this.max,r=(this.host.width(),this.host.height(),i?this.host.outerHeight()*a/100:this.host.outerWidth()*a/100);r+="px";var o,n=p(this.valueDiv).parent()[0];n.style.position="relative",(i=i||!1)?((o=p("")).attr("class","jqx-progressbar-range"),o.css("width","100%"),o.css("height",r),o.css("background-color",e),o.css("position","absolute"),o.css("z-index",s),"reverse"==this.layout?o.css("bottom",0):o.css("top",0)):((o=p("")).attr("class","jqx-progressbar-range"),o.css("width",r),o.css("height","100%"),o.css("background-color",e),o.css("position","absolute"),o.css("z-index",s),o.css("top","0px"),this.rtl&&o.css("right","0px")),o.appendTo(n),this.colorRanges[h].element=o},resize:function(t,e){this.width=t,this.height=e,this.refresh()},destroy:function(){this.host.removeClass(),this.valueDiv.removeClass(),this.valueDiv.remove(),this.feedbackElement.remove()},_raiseevent:function(t,e,i){if(null!=this.isInitialized&&1==this.isInitialized){var s=this.events[t],h=new p.Event(s);return h.previousValue=e,h.currentValue=i,(h.owner=this).host.trigger(h)}},actualValue:function(t){return void 0===t||(p.jqx.aria(this,"aria-valuenow",t),p.jqx.setvalueraiseevent(this,"value",t)),this._value()},val:function(t){return 0==arguments.length||"object"==typeof t?this.actualValue():this.actualValue(t)},propertiesChangedHandler:function(t,e,i){i&&i.width&&i.height&&2==Object.keys(i).length&&(t.host.width(i.width),t.host.height(i.height),t.refresh())},propertyChangedHandler:function(t,e,i,s){var h;this.isInitialized&&i!=s&&(t.batchUpdate&&t.batchUpdate.width&&t.batchUpdate.height&&2==Object.keys(t.batchUpdate).length||(h=this,"colorRanges"==e&&(t.host.find(".jqx-progressbar-range").remove(),t._addRanges()),("min"==e&&t.value