function UjicResetTime(t){if(!t)return!1;var n=new Date,e=t.split(":");return e instanceof Array&&(n.setHours(n.getHours()+parseInt(e[0])),n.setMinutes(n.getMinutes()+parseInt(e[1])),n.setSeconds(n.getSeconds()+parseInt(e[2]))),n}!function(t){"use strict";var n=window.ujiCount1,e=n.uji_style,o=(n.uji_plugin,n.ujic_id),i=n.expire,s=n.timer,r=(n.exp_days,n.Years),u=n.Months,a=n.Weeks,c=n.Days,l=n.Hours,p=n.Minutes,d=n.Seconds,_=n.Year,j=n.Month,w=n.Week,g=n.Day,f=n.Hour,h=n.Minute,m=n.Second,y=n.ujic_txt_size,x=n.ujic_col_dw,v=n.ujic_col_up,b=n.ujic_col_txt,T=n.ujic_col_sw,C=n.ujic_col_lab,M=n.ujic_lab_sz,S=n.ujic_y,D=n.ujic_o,U=n.ujic_w,L=n.ujic_d,k=n.ujic_h,O=n.ujic_m,H=n.ujic_s,R=(n.ujic_thick,"true"==n.ujic_txt),W=(n.ujic_ani,n.ujic_url?"http://"!==n.ujic_url.substr(0,7)&&"https://"!==n.ujic_url.substr(0,8)?"http://"+n.ujic_url:n.ujic_url:""),I=""!=W,Y=n.ujic_goof,z=(n.uji_center,n.uji_time),A=(n.uji_hide,n.ujic_resp),E="true"==n.ujic_rtl,F=new Date(""+i),G=UjicResetTime(s),N="";if(N+="true"==S?"Y":"",N+="true"==D?"O":"",N+="true"==U?"W":"",N+="true"==L?"D":"",N+="true"==k?"H":"",N+="true"==O?"M":"",N+="true"==H?"S":"",t.countdown.regionalOptions.uji={labels:[""+r,""+u,""+a,""+c,""+l,""+p,""+d],labels1:[""+_,""+j,""+w,""+g,""+f,""+h,""+m],compactLabels:["A","L","S","Z"],format:N,layout:function(t,n){var e=t.split("");if("[object Array]"===!Object.prototype.toString.call(e))return!1;if("classic"!==n){var o="ujiGetTemplate"+n;return"function"==typeof window[o]&&window[o](e)}for(var i='<span class="ujiCountdown"><span class="countdown_row">',s=0;s<e.length;s++)if(e[s]){var r=e[s].toString().toLowerCase()+"10",u=e[s].toString().toLowerCase()+"1",a=e[s].toString().toLowerCase()+"l";i+='<span class="countdown_section">                                    <span class="countdown_amount">{'+r+'}</span>                                    <span class="countdown_amount">{'+u+'}</span>                                    <span class="countdown_txt">{'+a+"}</span>                                </span>"}return i+="</span></span>"}(N,e),whichLabels:null,timeSeparator:":",isRTL:E},t.countdown.setDefaults(t.countdown.regionalOptions.uji),Y&&"none"!==Y){var Q=Y.replace(/\s+/g,"+");t("head").append('<link href="https://fonts.googleapis.com/css?family='+Q+'" rel="stylesheet" type="text/css">')}if(void 0!==G&&G){var X=G;J=!1}else X=F;if("classic"==e){t("#"+o).countdown({until:X,ujic_id:""+o,serverSync:J,responsive:A,isRTL:E,alwaysExpire:I,expiryUrl:W});var Z="#"+o+" .countdown_row > span:last-child {                                                        margin: 0;                                              }",q="#"+o+" .countdown_amount {                                                        background : -moz-linear-gradient(top,  "+v+" 50%, "+x+" 50%);                                                        background : linear-gradient(to bottom,  "+v+" 50%, "+x+" 50%);                                                        background : -ms-linear-gradient(top,  "+v+" 50%, "+x+' 50%);                                                        filter:      progid:DXImageTransform.Microsoft.gradient( startColorstr="'+v+'", endColorstr="'+x+'",GradientType=0 );                                                        font:  '+y+'px/1.5 "'+Y+'",sans-serif;                                                        text-shadow: 1px 1px 1px '+T+";                                                        color: "+b+"; }";K(q);var B=t("#"+o+" .countdown_amount").outerWidth();t("#"+o+" .countdown_amount").each(function(){t(this).outerWidth()>B&&(B=t(this).outerWidth())}),K((q="#"+o+" .countdown_amount {                                                    padding: 5px 0;                                                    width: "+(B=B>40?B+y/2:B)+"px;                                                   }")+(R?"#"+o+" .countdown_txt {                                                        font: "+M+'px "Open Sans", sans-serif;                                                        color: '+C+";                                                }":"#"+o+" .countdown_txt {                                                        display: none;                                                }")+Z)}if("modern"==e&&(console.log("MODERN"),"function"==typeof ujiModern)){console.log("MODERN-FCT");ujiModern(X,n,J,N)}function J(){var t=null;t=new Date(z);var n=new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds());return t=n}function K(n){t("<div />",{html:"<style>"+n+"</style>"}).appendTo("body")}}(jQuery);