PageSourceSearch

https://www.b1908.dk/bundles/js/main.min.js

js b1908.dk collected 2026-10-02 23:30:21 UTC 826,196 bytes, 102 lines download raw bytes

1function renderSpotBox(n){var t=new fabric.StaticCanvas(n),i;$(n).data("fabric",t);t.selection=!1;i=$(n).parent().width();$.ajax({url:"/umbraco/DBU/DBUFrontApi/GetSpotboxData?id="+$(n).data("sbid"),success:function(i){for(var s,f,e,h,c,u=[],r=0;r<i.spotboxdata.objects.length;r++){if(i.spotboxdata.objects[r].type=="i-text"){var o=r,l=i.spotboxdata.objects[o].fontFamily,a=i.spotboxdata.objects[o].fontWeight;u.push({Family:l,Weight:a})}i.spotboxdata.objects[r].type=="image"&&(s=new URL(i.spotboxdata.objects[r].src),i.spotboxdata.objects[r].src=s.pathname,location.protocol=="https:"&&(i.spotboxdata.objects[r].src=i.spotboxdata.objects[r].src.replace("http://","https://")),f=i.spotboxdata.objects[r].scaleX,e=i.spotboxdata.objects[r].scaleY,f!=0&&e!=0&&(h=i.spotboxdata.objects[r].width*f,c=i.spotboxdata.objects[r].height*e,i.spotboxdata.objects[r].scaleX=1,i.spotboxdata.objects[r].scaleY=1,i.spotboxdata.objects[r].width=h,i.spotboxdata.objects[r].height=c),i.spotboxdata.objects[r].src+="?quality=60")}setTimeout(function(){for(var n=0;n<u.length;n++)loadCanvasFont(u[n].Family,u[n].Weight,t)},100);setTimeout(function(){t.clear();t.setZoom($(n).width()/$(n).attr("data-orgwidth"));t.loadFromJSON(i.spotboxdata,function(){$(n).css("opacity","1");t.renderAll();for(var r=0;r<i.animations.length;r++)i.animations[r]!=0&&(t.getObjects()[r].animation=i.animations[r]);playSpotboxAnimations(t)})},100)}})}function loadCanvasFont(n,t,i){WebFont.load({google:{families:[n+":"+t]},fontactive:function(){i.renderAll()}})}function playSpotboxAnimations(n){var t=n.getObjects();$(t).each(function(){var t,u,r,i;if(this.animation!=null)for(t=this,u=!0,r=0;r<t.animation.length;r++)i=t.animation[r],i.type=="opacity"&&(t.setOpacity(0),n.renderAll.bind(n),setTimeout(function(i){t.animate({opacity:1},{duration:i.duration,onChange:n.renderAll.bind(n),onComplete:function(){}})},i.delay,t.animation[r])),i.type=="slide"&&(u&&(u=!1,t.setLeft(i.startLeft),t.setTop(i.startTop),t.setCoords(),n.renderAll.bind(n)),setTimeout(function(i){t.animate({left:i.endLeft,top:i.endTop},{duration:i.duration,onChange:n.renderAll.bind(n),onComplete:function(){},easing:fabric.util.ease[i.easing]})},i.delay,t.animation[r])),i.type=="angle"&&setTimeout(function(i){t.animate({angle:i.angle},{duration:i.duration,onChange:n.renderAll.bind(n),onComplete:function(){}})},i.delay,t.animation[r]),i.type=="scale"&&(t._originalScaleX=t.animation[r].scaleX,t._originalScaleY=t.animation[r].scaleY,setTimeout(function(i){t.animate({scaleX:t._originalScaleX,scaleY:t._originalScaleY},{duration:i.duration,onChange:n.renderAll.bind(n),onComplete:function(){}})},i.delay,t.animation[r]))})}function scaleSpotBoxes(){$(".spotBox").each(function(){var r,f,u,t,n,i;r=$(this).width();$(this).find("canvas").attr("data-orgwidth")==undefined&&$(this).find("canvas").attr("data-orgwidth",$(this).find("canvas").attr("width"));$(this).find("canvas").attr("data-orgheight")==undefined&&$(this).find("canvas").attr("data-orgheight",$(this).find("canvas").attr("height"));f=$(this).find("canvas").attr("data-orgwidth")/r;u=$(this).find("canvas").attr("data-orgheight")/f;$(this).find("canvas").attr("width",r);$(this).find("canvas").attr("height",u);$(this).height(u);$(this).closest(".spotBoxWrap").css("opacity","1")})}function resizeend(){new Date-rtime<delta?setTimeout(resizeend,delta):(timeout=!1,setTimeout(function(){$("canvas.sb_canvas").css("opacity","0");scaleSpotBoxes();$("canvas.sb_canvas").each(function(n,t){renderSpotBox(t)})},0))}function gotoUrl(n,t,i){if(t!="Ingen"&&t!=""){if(!n)var n=window.event;n.cancelBubble=!0;n.stopPropagation&&n.stopPropagation();i=="_blank"?window.open(t):window.location=t}}function getUrlVars(){for(var t=[],n,r=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),i=0;i<r.length;i++)n=r[i].split("="),t.push(n[0]),t[n[0]]=n[1];return t}function toggleNavSlide(){var i=$(".topNavSlide"),n={queue:!1,duration:400},t="linear",r;i.hasClass("shown")==!1?(i.css("left","-250px"),i.css("display","block"),i.animate({left:"0"},n,t),$(".fa-caret-right").addClass("fa-caret-left").removeClass("fa-caret-right"),navigator.userAgent.
1search("Firefox")?$("body").animate({"background-position":"250px"},n,t):$("body").animate({"background-position-x":"250px"},n,t),$("#siteWrap").animate({left:"250px"},n,t),r=$("#siteWrap").width()+$(".topNavSlide").width()-240,$(".topNavSlideToggle").animate({right:r+"px"},n,t).addClass("mobileOut"),i.addClass("shown")):(i.animate({left:"-250px"},n,t),$("#siteWrap").animate({left:"0"},n,t),$(".topNavSlideToggle").animate({right:"10px"},n,t).removeClass("mobileOut"),$(".fa-caret-left").addClass("fa-caret-right").removeClass("fa-caret-left"),navigator.userAgent.search("Firefox")?$("body").animate({"background-position":"0"},n,t):$("body").animate({"background-position-x":"0"},n,t),i.removeClass("shown"))}function ToggleNavigationMobile(){$(".topNavigationMobile_menu").slideToggle()}function resizeSponsorModule(){$(".sponsorModule.slider").each(function(){var r=$(this).data("height"),n=$(this).width(),t,i;originalWidth=n;t=n/100*r;$(this).height(t);$(this).find(".sponsorModule_sliderWrap").height(t);$(this).find(".sponsorSlide").height(t);$(this).find(".sponsorSlide").width(n);i=$(this).find(".sponsorSlide").length;$(this).data("direction")=="horizontal"?$(this).find(".sponsorModule_sliderWrap").width(n*i):($(this).css("overflow","hidden"),$(this).find(".sponsorModule_sliderWrap").width(n));$(this).data("random")==!0&&$(this).find(".sponsorSlide").shuffle()});$(".sponsorModule.static").each(function(){var r=$(this).data("height"),n=$(this).width(),t,i;originalWidth=n;t=n/100*r;$(this).find(".sponsorModule_sliderWrap").height(t);$(this).find(".sponsorSlide").height(t);$(this).find(".sponsorSlide").width(n);i=$(this).find(".sponsorSlide").length;$(this).find(".sponsorModule_sliderWrap").width(n*i);$(this).height(t*i);$(this).find(".sponsorSlide").css("float","none")})}function animateSlider(){intervalCounter+=200;intervalTimer==undefined||$(".sponsorModule.slider").each(function(){var o=intervalTimer,u=$(this).data("timer");if(intervalCounter%u==0)if($(this).data("direction")=="horizontal"){var n=$(this),i=n.width(),f=n.find(".sponsorModule_sliderWrap").width(),t=parseInt(n.find(".sponsorModule_sliderWrap").css("margin-left").replace("px","").replace("-","")),r=t+i;f>t+i&&n.find(".sponsorModule_sliderWrap").animate({marginLeft:"-"+r+"px"},800,"swing",function(){n.find(".sponsorSlide:first-child").detach().appendTo(n.find(".sponsorModule_sliderWrap"));n.find(".sponsorModule_sliderWrap").css("margin-left","0px")})}else{var n=$(this),e=n.height(),s=n.find(".sponsorModule_sliderWrap").height(),t=parseInt(n.find(".sponsorModule_sliderWrap").css("margin-top").replace("px","").replace("-","")),r=t+e;n.find(".sponsorModule_sliderWrap").animate({marginTop:"-"+r+"px"},800,"swing",function(){n.find(".sponsorSlide:first-child").detach().appendTo(n.find(".sponsorModule_sliderWrap"));n.find(".sponsorModule_sliderWrap").css("margin-top","0px")})}})}function SponsorClicked(n,t,i,r,u){jQuery.ajax({url:"/umbraco/DBU/DBUFrontApi/InsertSponsorImageClick?sponsorId="+n+"&ip="+t+"&link="+i+"&useragent="+r+"&pageurl="+u,type:"POST",dataType:"json",contentType:"application/json",success:function(){console.log("add-click-registered")},"async":!0})}function InitializeNewsSlider(n){var t=$(n),i=$("<div>"),r;i.addClass("newsSliderWrap");t.prepend(i);r=t.find(".theme_NMB_bigWrap");t.find(".theme_NMB_bigWrap").css("display","inline-block").detach().appendTo(i);t.find(".sliderIndicator:first").addClass("active")}function animateNewsSlider(){newsSliderIntervalCounter+=200;$(".newsSlider").each(function(){var t=$(this),r=t.data("timer"),n,i;newsSliderIntervalCounter%r==0&&(n=t.find(".newsSliderWrap"),n.find(".theme_NMB_bigWrap").length>1&&(i=n.parent().width(),n.is(":hover")==!1&&n.animate({marginLeft:"-"+i},600,"swing",function(){n.find(".theme_NMB_bigWrap:first").detach().appendTo(n);n.css("margin-left","0");var i=n.find(".theme_NMB_bigWrap:first").data("slideid");t.find(".sliderIndicator").removeClass("active");t.find(".sliderIndicator[data-slideid="+i+"]").addClass("active")})))})}function slideToId(n,t){var i=t.find(".newsSliderWrap"),r=i.find(".theme_NMB_bigWrap[data-sli
1deid="+n+"]"),u=r.width(),f=i.find(".theme_NMB_bigWrap:first").data("slideid");i.find(".theme_NMB_bigWrap").length>1&&n!=f&&i.stop().animate({marginLeft:"-"+u},20,"swing",function(){i.find(".theme_NMB_bigWrap:first").detach().appendTo(i);i.css("margin-left","0");var r=i.find(".theme_NMB_bigWrap:first").data("slideid");t.find(".sliderIndicator").removeClass("active");t.find(".sliderIndicator[data-slideid="+r+"]").addClass("active");r!=n&&slideToId(n,t)})}function calcNewsBlockSizes(){$(".theme_NMB_tinyWrap").each(function(){$(window).width()>=960;$(this).find(".theme_NMB_tinyImg").height(Math.floor($(this).width()/1.95))});$(".theme_NMB_bigNews").each(function(){var n=Math.floor($(this).width()/1.95);$(this).height(n)});$(".theme_NMB_tinyNews").each(function(){});$(".theme_NMB_bigWrap").each(function(){var i=$(this).width(),n=parseInt($(this).closest(".theme_NMB_bigNews").width());if($(this).width(n),$(this).height(parseInt(Math.floor(n/1.95))),i!=$(this).width()){var r=$(this).data("src"),t=new Url(r),u=parseInt(n);t.query.width=u;t.query.height=parseInt(Math.floor(n/1.95));$(this).css("background-image","url("+t.toString()+")")}});var n=0;setTimeout(function(){$(".theme_NMB_tinyTextWrap").each(function(){var t=$(this).find(".theme_NMB_tinyText");t.height()>n&&(n=t.height());setTimeout(function(){t.height(n)})})},300)}function CalcGridWidth(){if($(window).width()>959){var n=$("body").data("pagepadding");n==null&&(n=0);n=n*2;$(".contentWidth_100").each(function(){var t=$(window).width();$(this).parent("#contentWrap").length?$(this).width(t-n):$(this).width("100%")});$(".contentWidth_90").each(function(){var i=$(window).width()*.9,t=Math.floor(i/16)*16;$(this).parent("#contentWrap").length?$(this).width(t):$(this).width(t+n)});
1$(".contentWidth_80").each(function(){var i=$(window).width()*.8,t=Math.floor(i/16)*16;$(this).parent("#contentWrap").length?$(this).width(t):$(this).width(t+n)});$(".contentWidth_70").each(function(){var i=$(window).width()*.7,t=Math.floor(i/16)*16;$(this).parent("#contentWrap").length?$(this).width(t):$(this).width(t+n)});$(".contentWidth_60").each(function(){var i=$(window).width()*.6,t=Math.floor(i/16)*16;$(this).parent("#contentWrap").length?$(this).width(t):$(this).width(t+n)})}else $(this).width("100%")}function AcceptCookies(){$.cookie("acceptcookies","true",{expires:30});$(".cookieNotice").slideUp()}function MoveSearchBar(){$(document).width()<960?$(".theme_headerControls_wrap").detach().prependTo("#content"):$(".theme_headerControls_wrap").detach().appendTo("#header")}function initToolTips(){$(document).on("click",".tooltip",function(){var n=$(this).data("tooltip"),t;n!=null&&n!=""&&(t=$("body").find(".tooltip-overlay"),t.find(".tooltip-holder").html(n),t.addClass("show"))});$(document).on("click",".tooltip-wrap .theme_button_small",function(){var n=$("body").find(".tooltip-overlay");n.find(".tooltip-holder").html();n.removeClass("show")})}function loadImages(){$(".img-postload").each(function(){var t=$(this).data("src"),n=$(this);$(n).attr("src",t);$(n).removeClass("img-postload")});$(".lazyLoad").each(function(){var t=$(this).parent().width(),n=$(this);setTimeout(function(){var i=$(n).attr("src",$(n).attr("data-src")+"?quality=100&width="+(t+100))},200)});$(".lazyload-wrhr").each(function(){if(!$(this).hasClass("loaded")){var t=$(this).closest(".theme_macro").width()+100,n=$(this);setTimeout(function(){var r=$(n).attr("data-src"),u=$(n).attr("data-anchor");if(r!=null&&r!=""){var i=new URL(r),f=t/$(n).attr("data-wr"),e=f*$(n).attr("data-hr");i.searchParams.set("width",t);i.searchParams.set("height",Math.round(e));i.searchParams.set("mode","crop");u!=""&&i.searchParams.set("anchor",u);$(n).attr("src",i);$(n).addClass("loaded")}},200)}});$(".lazyload-wrhr-bg").each(function(){if(!$(this).hasClass("loaded")){var t=$(this).closest(".theme_macro").width()+100,n=$(this);setTimeout(function(){var i=$(n).attr("data-src");if(i!=null&&i!=""){var r=new URL(i),u=t/$(n).attr("data-wr"),f=u*$(n).attr("data-hr");r.searchParams.set("width",t);r.searchParams.set("height",Math.ceil(f));$(n).css("background-image","url("+r+")");$(n).addClass("loaded")}},200)}})}function loadGoogleFont(n,t){console.log("Loader font: "+n+" "+t);WebFont.load({google:{families:[n+":"+t]},loading:function(){},active:function(){},inactive:function(){},fontloading:function(){},fontactive:function(){},fontinactive:function(){}})}function RunPackery(){}function OpenFacebookShareDialog(n){var t=window.open("https://www.facebook.com/sharer/sharer.php?u="+n,"pop","width=600, height=400, scrollbars=no")}function ClubFixturesOrderRows(n){$(n).find(".monthRow").show().each(function(){($(this).nextAll(":visible:first").hasClass("monthRow")||$(this).nextAll(":visible:first").length==0)&&$(this).hide();$(this).prevAll(":visible:first").hasClass("match")&&$(this).prevAll(":visible:first").css("border-bottom",0)})}function ClubFixturesSetPaging(n){var i=$(n).data("pagingcount"),t=$(n).data("currentpage"),u=$(n).find(".match").length,r=$(n).find(".match");r.each(function(){$(this).data("matchno")<i*(t-1)||$(this).data("matchno")>=i*t?$(this).hide():$(this).show()});$(n).find(".paging_lbl").html("Viser "+t+" ud af "+Math.ceil(r.length/i));ClubFixturesOrderRows(n);t==1?$(n).find(".paging_back").addClass("disabled"):$(n).find(".paging_back").removeClass("disabled");r.length<=i*t?$(n).find(".paging_forward").addClass("disabled"):$(n).find(".paging_forward").removeClass("disabled");$(n).find(".match:visible:last td").css("border-bottom","0")}function ActivitiesListSetPaging(n){var i=$(n).data("pagingcount"),t=$(n).data("currentpage"),r=$(n).find(".activities-list-item"),u;r.each(function(){var n,r,u,f;$(this).data("number")<=i*(t-1)||$(this).data("number")>i*t?$(this).removeClass("show"):$(this).addClass("show");n=$(this).find(".description").width();r=$(this).find(".description-inner").width();n<r&&(u=Math.round(r/n*100-100),f=$(this).find(".description-inner").addClass("is-overflown"),$(this)[0].style.setProperty("--translateX","translateX(-"+u+"%)"))});$(n).closest(".activities-list-macro").find(".paging_lbl").html("Viser "+t+" ud af "+Math.ceil(r.length/i));t==1?$(n).closest(".activities-list-macro").find(".paging_back").addClass("disabled"):$(n).closest(".activities-list-macro").find(".paging_back").removeClass("disabled");r.length<=i*t?$(n).closest(".activities-list-macro").find(".paging_forward").addClass("disabled"):$(n).closest(".activities-list-macro").find(".paging_forward").removeClass("disabled");$(n).find(".activities-list-item:visible:last td").css("border-bottom","0");u=$(n).find(".activities-list-item-date");$.each(u,function(){$(this).next().hasClass("show")?$(this).addClass("show"):$(this).removeClass("show")})}function ActivitiesListGoToMatch(n){if($(n).data("poolrow")!=""){var t=$(n).data("poolrow"),i=$(n).data("matchid"),r="kampvisning?poolrowid="+t+"&matchid="+i;window.location="/"+r}}function getFocus(n){$(window).bind("resize",function(){$(window).width()<=760&&$(n).click()})}function ResizeContent(){var n=$("#headerWrap").outerHeight(),t=$(".navWrap").outerHeight(),i=$("#footerWrap").outerHeight(),r=$(window).height(),u=r-n-t-i-11;$("#content").css("min-height",u+"px");$(window).width()>959;$(".navWrap").hasClass("fitPagePadding")&&$(".theme_MegaMenu_wrap").each(function(){$(this).find(".container-12").width($(".navWrap").width())})}function setupGalleries(){$(".mp_gallery_imgs").each(function(){$(this).magnificPopup({delegate:"a",type:"image",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},image:{tError:"Billedet kunne ikke vises.",titleSrc:function(n){return n.el.attr("title")}}})})}function SignUpNewsletter(){if($(".theme_newsletter_error").hide(),isValidEmailAddress($("#tb_newletterSignUp_email").val())){var n=$("#tb_newletterSignUp_email").val();jQuery.ajax({url:"/umbraco/DBU/DBUFrontApi/SignUpNewsletter?Email="+n,type:"POST",dataType:"json",contentType:"application/json",success:function(n){n.IsSuccess==!0&&($(".theme_newsletter_msgAdded").find("span").html("Tak for din tilmelding!"),$(".theme_newsletter_msgAdded").show());n.IsSuccess==!1&&($(".theme_newsletter_msgAdded").find("span").html("<p>Du er allerede tilmeldt til nyhedsbrevet!<\/p><div><a href='/unsubscribe.html'>Afmeld<\/a><\/div>"),$(".theme_newsletter_msgAdded").show());$(".theme_newsletter_wrap").hide();$("#tb_newletterSignUp_email").val("");
1setTimeout(function(){$(".theme_newsletter_msgAdded").slideUp();$(".theme_newsletter_wrap").slideDown()},6e3)},"async":!0})}else $(".theme_newsletter_validation").html("Du har ikke indtastet en korrekt email-adresse")}function isValidEmailAddress(n){return/^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.?$/i.test(n)}function setNewsListItemWidth(){$(".theme_newsListItem_small").each(function(){var n=$(this).width(),t=$(this).find(".theme_thumbImgWrap").outerWidth(),i=n-t-20;$(this).find(".theme_newsListItem_small_textWrap").css("max-width",i+"px")})}function ToggleAccordion(n){$(n).next(".accordion--body").slideToggle(200);$(n).parent().toggleClass("closed");setTimeout(function(){},200)}function realWidth(n){return n.parents("ul").last().outerWidth()}function PopulateBookings(n){var t=n.data("starthour");$.each(n.find(".week-event"),function(){var i=$(this),h=i.data("day"),r=i.data("start-hour"),u=i.data("start-minute"),f=i.data("end-hour"),c=i.data("end-minute"),l=n.attr("data-view"),e,o,s;r<t&&f>=t&&(r=t);e=l=="week"?n.find(".field-bookings-week-view .day-col[data-day="+h+"] .hour-cell[data-hour="+r+"]"):n.find(".field-bookings-day-view .hour-cell[data-hour="+r+"]");i.appendTo(e);o=f-r;s=Math.floor((c-u)/60*32);i.height(o*32+s+"px");i.css("top",Math.floor(u/60*32)+"px")})}function ChangeWeek(n,t){var i=$(n).closest(".field-bookings"),r=i.find(".selected-week"),u=i.find(".selected-week-dates"),f=i.find(".selected-week-no"),e=i.find(".hid_startdate"),o=i.find(".hid_enddate"),s=r.data("weekstart");$.get("/umbraco/DBU/DBUFrontApi/GetWeekInfoByDate?date="+s+"&addDays="+t,function(n){r.data("weekstart",n.WeekStartDate);u.html(n.WeekString);f.html("UGE "+n.WeekNo);
1var t=n.WeekStartDateString,s=n.WeekEndDateString;e.val(t);o.val(s);GetBookings(i)})}function ChangeDay(n,t){var i=$(n).closest(".field-bookings"),r=i.find(".selected-day").data("day");$.get("/umbraco/DBU/DBUFrontApi/GetDayInfoByDate?date="+r+"&addDays="+t,function(n){i.find(".selected-day").data("day",n.Day);i.find(".selected-day-text").html(n.DayString);GetBookings(i)})}function GetBookings(n){var u=n.attr("data-view"),r=n.attr("data-includePracticeTimes"),t,i;if(u=="week"){var f=n.find(".hid_startdate").val(),e=n.find(".hid_enddate").val(),t=n.find(".field-select option:selected").val();n.find(".week-event").remove();$.get("/umbraco/DBU/DBUFrontApi/GetFieldBookingsByDates?from="+f+"&to="+e+"&fieldId="+t+"&includePracticeTimes="+r,function(t){for(var i,r=0;r<t.length;r++)i=$("<div>"),i.addClass("week-event").addClass("tipso"),i.attr("data-tipso","<div class='event-tooltip'><div class='event-tooltip-time'>"+t[r].StartEndString+"<\/div>"+t[r].Title+"<\/div>"),i.attr("data-day",t[r].DayOfWeek),i.attr("data-start-hour",t[r].StartHour),i.attr("data-start-minute",t[r].StartMinute),i.attr("data-end-hour",t[r].EndHour),i.attr("data-end-minute",t[r].EndMinute),i.attr("data-event-type",""),n.find(".week-events").append(i),i.tipso({background:"#444",color:"#eee"});PopulateBookings(n)})}else t=n.find(".field-select option:selected").val(),i=n.find(".selected-day").data("day"),n.find(".week-event").remove(),$.get("/umbraco/DBU/DBUFrontApi/GetFieldBookingsByDates?from="+i+"&to="+i+"&fieldId="+t+"&includePracticeTimes="+r,function(t){for(var i,r=0;r<t.length;r++)i=$("<div>"),i.addClass("week-event").addClass("tipso"),i.attr("data-tipso","<div class='event-tooltip'><div class='event-tooltip-time'>"+t[r].StartEndString+"<\/div>"+t[r].Title+"<\/div>"),i.attr("data-day",t[r].DayOfWeek),i.attr("data-start-hour",t[r].StartHour),i.attr("data-start-minute",t[r].StartMinute),i.attr("data-end-hour",t[r].EndHour),i.attr("data-end-minute",t[r].EndMinute),i.attr("data-event-type",""),n.find(".week-events").append(i),i.tipso({background:"#444",color:"#eee"});PopulateBookings(n)})}function ShowBookingInfo(n,t){var i=n.find(".booking-info"),u,r;i.toggleClass("open");i.hasClass("open")&&(u=t.offset().left-n.offset().left,r=t.offset().top-n.offset().top,i.css("top",r+"px"),n.attr("data-view")=="week"?i.css("left","50%"):i.css("left","50%"))}function ToggleDayWeek(n){var e=n.attr("data-view"),t="day",i=n.find(".field-bookings-week-view"),r=n.find(".field-week-select"),u=n.find(".field-bookings-day-view"),f=n.find(".field-day-select");e=="day"?(t="week",i.css("display","grid"),r.show(),u.hide(),f.hide()):(i.hide(),r.hide(),u.css("display","grid"),f.css("display","inline-grid"));n.attr("data-view",t);GetBookings(n)}var fabric,intervalTimer,originalWidth,intervalCounter,newsSliderIntervalTimer,newsSliderIntervalCounter,nologoImagePath,noProfilePicPath;(function(n){"use strict";var t=window.slimmage||{},r,i;window.slimmage=t;t.verbose===undefined&&(t.verbose=!0);t.tryWebP===undefined&&(t.tryWebP=!1);t.readyCallback===undefined&&(t.readyCallback=null);r=function(){if(n.slimmage.verbose&&n.console&&n.console.log)try{n.console.log.apply(n.console,arguments)}catch(t){}};t.beginWebPTest=function(){if(t.tryWebP&&!t._testingWebP){t._testingWebP=!0;var n=new Image;n.onload=n.onerror=function(){t.webp=n.height==2};n.src="data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA"}};t.getCssValue=function(n,t){var i=typeof getComputedStyle!="undefined"&&window.getComputedStyle(n,null).getPropertyValue(t);return!i&&n.currentStyle&&(i=n.currentStyle[t.replace(/([a-z])\-([a-z])/,function(n,t,i){return t+i.toUpperCase()})]||n.currentStyle[t]),i};t.getCssPixels=function(n,i){var u=t.getCssValue(n,i),r,f;return u.slice(-2)=="px"?parseFloat(u.slice(0,-2)):(r=document.createElement("div"),r.style.overflow=r.style.visibility="hidden",n.parentNode.appendChild(r),r.style.width=u,f=r.offsetWidth,n.parentNode.removeChild(r),f)};t.nodesToArray=function(n){for(var i=[],t=n.length>>>0;t--;)i[t]=n[t];return i};t.adjustImageSrcWithWidth=function(n,i,u){var f={webp:t.webp,width:u,dpr:window.devicePixelRatio||1},o,e;f.requestedWidth=Math.min(2048,f.width*f.dpr);f.quality=f.dpr>1.49?80:90;t.webp&&(f.quality=f.dpr>1.49?65:78);f.requestedWidth=f.requestedWidth-f.requestedWidth%160+160;o=n.getAttribute("data-pixel-width")|0;t.adjustImageParameters&&typeof t.adjustImageParameters=="function"&&t.adjustImageParameters(f);f.requestedWidth>o&&(e=i.replace(/width=\d+/i,"width="+f.requestedWidth).replace(/quality=[0-9]+/i,"quality="+f.quality),t.webp&&(e=e.replace(/format=[a-z]+/i,"format=webp")),n.src=e,n.setAttribute("data-pixel-width",f.requestedWidth),r("Slimming: updating "+e))};t.adjustImageSrc=function(n,i){t.adjustImageSrcWithWidth(n,i,t.getCssPixels(n,"max-width"))};t.checkResponsiveImages=function(i){var f,c,l,y,a,o,p,v,d,e,w,s,u,h,g;if(t.timeoutid>0&&n.clearTimeout(t.timeoutid),t.timeoutid=0,i&&i>0){t.timeoutid=n.setTimeout(t.checkResponsiveImages,i);return}var nt=(new Date).getTime(),b=0,k=t.nodesToArray(n.document.getElementsByTagName("noscript"));for(u=0,h=k.length;u<h;u++)if(f=k[u],f.getAttribute("data-slimmage")!==null){if(c=n.document.createElement("div"),l=f.textContent||f.innerHTML,l&&l.replace(/[\s\t\r\n]+/,"").length!=0)c.innerHTML=l.replace(/\s+src\s*=\s*(['"])/i," data-src=$1").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&");else{for(y=new Image,a=0;a<f.attributes.length;a++)o=f.attributes[a],o&&o.specified&&o.name.indexOf("data-img-")==0&&y.setAttribute(o.name.slice(9-o.name.length),o.value);c.appendChild(y)}for(p=c.getElementsByTagName("img"),v=0,d=p.length;
1v<d;v++)e=p[v],e.src!==null&&e.src.length>0&&(e.setAttribute("data-src",e.src),e.src=""),e.setAttribute("data-slimmage",!0),f.parentNode.insertBefore(e,f),b++;f.parentNode.removeChild(f)}for(w=0,s=t.nodesToArray(n.document.getElementsByTagName("img")),u=0,h=s.length;u<h;u++)s[u].getAttribute("data-slimmage")!==null&&(g=s[u].getAttribute("data-src")||s[u].src,t.adjustImageSrc(s[u],g),w++);typeof t.readyCallback=="function"&&t.readyCallback();r("Slimmage: restored "+b+" images from noscript tags; sizing "+w+" images. "+((new Date).getTime()-nt)+"ms")};i=t.checkResponsiveImages;n.addEventListener?(n.addEventListener("resize",function(){i(500)},!1),n.addEventListener("DOMContentLoaded",function(){i();n.removeEventListener("load",i,!1)},!1),n.addEventListener("load",i,!1)):n.attachEvent&&n.attachEvent("onload",i);t.beginWebPTest()})(this);
2/*!
3** Unobtrusive Ajax support library for jQuery
4** Copyright (C) Microsoft Corporation. All rights reserved.
5*/
6(function(n){function i(n,t){for(var i=window,r=(n||"").split(".");i&&r.length;)i=i[r.shift()];return typeof i=="function"?i:(t.push(n),Function.constructor.apply(null,t))}function u(n){return n==="GET"||n==="POST"}function o(n,t){u(t)||n.setRequestHeader("X-HTTP-Method-Override",t)}function s(t,i,r){var u;r.indexOf("application/x-javascript")===-1&&(u=(t.getAttribute("data-ajax-mode")||"").toUpperCase(),n(t.getAttribute("data-ajax-update")).each(function(t,r){var f;switch(u){case"BEFORE":f=r.firstChild;n("<div />").html(i).contents().each(function(){r.insertBefore(this,f)});break;case"AFTER":n("<div />").html(i).contents().each(function(){r.appendChild(this)});break;case"REPLACE-WITH":n(r).replaceWith(i);break;default:n(r).html(i)}}))}function f(t,r){var e,h,f,c;(e=t.getAttribute("data-ajax-confirm"),!e||window.confirm(e))&&(h=n(t.getAttribute("data-ajax-loading")),c=parseInt(t.getAttribute("data-ajax-loading-duration"),10)||0,n.extend(r,{type:t.getAttribute("data-ajax-method")||undefined,url:t.getAttribute("data-ajax-url")||undefined,cache:!!t.getAttribute("data-ajax-cache"),beforeSend:function(n){var r;return o(n,f),r=i(t.getAttribute("data-ajax-begin"),["xhr"]).apply(t,arguments),r!==!1&&h.show(c),r},complete:function(){h.hide(c);i(t.getAttribute("data-ajax-complete"),["xhr","status"]).apply(t,arguments)},success:function(n,r,u){s(t,n,u.getResponseHeader("Content-Type")||"text/html");i(t.getAttribute("data-ajax-success"),["data","status","xhr"]).apply(t,arguments)},error:function(){i(t.getAttribute("data-ajax-failure"),["xhr","status","error"]).apply(t,arguments)}}),r.data.push({name:"X-Requested-With",value:"XMLHttpRequest"}),f=r.type.toUpperCase(),u(f)||(r.type="POST",r.data.push({name:"X-HTTP-Method-Override",value:f})),n.ajax(r))}function h(t){var i=n(t).data(e);return!i||!i.validate||i.validate()}var t="unobtrusiveAjaxClick",r="unobtrusiveAjaxClickTarget",e="unobtrusiveValidation";n(document).on("click","a[data-ajax=true]",function(n){n.preventDefault();f(this,{url:this.href,type:"GET",data:[]})});n(document).on("click","form[data-ajax=true] input[type=image]",function(i){var r=i.target.name,u=n(i.target),f=n(u.parents("form")[0]),e=u.offset();f.data(t,[{name:r+".x",value:Math.round(i.pageX-e.left)},{name:r+".y",value:Math.round(i.pageY-e.top)}]);setTimeout(function(){f.removeData(t)},0)});n(document).on("click","form[data-ajax=true] :submit",function(i){var f=i.currentTarget.name,e=n(i.target),u=n(e.parents("form")[0]);u.data(t,f?[{name:f,value:i.currentTarget.value}]:[]);u.data(r,e);setTimeout(function(){u.removeData(t);u.removeData(r)},0)});n(document).on("submit","form[data-ajax=true]",function(i){var e=n(this).data(t)||[],u=n(this).data(r),o=u&&u.hasClass("cancel");(i.preventDefault(),o||h(this))&&f(this,{url:this.action,type:this.method||"GET",data:e.concat(n(this).serializeArray())})})})(jQuery),function(n){n.extend(n.fn,{validate:function(t){if(this.length){var i=n.data(this[0],"validator");return i?i:(i=new n.validator(t,this[0]),n.data(this[0],"validator",i),i.settings.onsubmit&&(this.find("input, button").filter(".cancel").click(function(){i.cancelSubmit=!0}),i.settings.submitHandler&&this.find("input, button").filter(":submit").click(function(){i.submitButton=this}),this.submit(function(t){function r(){if(i.settings.submitHandler){if(i.submitButton)var t=n("<input type='hidden'/>").attr("name",i.submitButton.name).val(i.submitButton.value).appendTo(i.currentForm);return i.settings.submitHandler.call(i,i.currentForm),i.submitButton&&t.remove(),!1}return!0}return(i.settings.debug&&t.preventDefault(),i.cancelSubmit)?(i.cancelSubmit=!1,r()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):r():(i.focusInvalid(),!1)})),i)}t&&t.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing")},valid:function(){if(n(this[0]).is("form"))return this.validate().form();var t=!0,i=n(this[0].form).validate();
6return this.each(function(){t&=i.element(this)}),t},removeAttrs:function(t){var i={},r=this;return n.each(t.split(/\s/),function(n,t){i[t]=r.attr(t);r.removeAttr(t)}),i},rules:function(t,i){var r=this[0],e;if(t){var u=n.data(r.form,"validator").settings,o=u.rules,f=n.validator.staticRules(r);switch(t){case"add":n.extend(f,n.validator.normalizeRule(i));o[r.name]=f;i.messages&&(u.messages[r.name]=n.extend(u.messages[r.name],i.messages));break;case"remove":return i?(e={},n.each(i.split(/\s/),function(n,t){e[t]=f[t];delete f[t]}),e):(delete o[r.name],f)}}return r=n.validator.normalizeRules(n.extend({},n.validator.metadataRules(r),n.validator.classRules(r),n.validator.attributeRules(r),n.validator.staticRules(r)),r),r.required&&(u=r.required,delete r.required,r=n.extend({required:u},r)),r}});n.extend(n.expr[":"],{blank:function(t){return!n.trim(""+t.value)},filled:function(t){return!!n.trim(""+t.value)},unchecked:function(n){return!n.checked}});n.validator=function(t,i){this.settings=n.extend(!0,{},n.validator.defaults,t);this.currentForm=i;this.init()};n.validator.format=function(t,i){return arguments.length==1?function(){var i=n.makeArray(arguments);return i.unshift(t),n.validator.format.apply(this,i)}:(arguments.length>2&&i.constructor!=Array&&(i=n.makeArray(arguments).slice(1)),i.constructor!=Array&&(i=[i]),n.each(i,function(n,i){t=t.replace(RegExp("\\{"+n+"\\}","g"),i)}),t)};n.extend(n.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:n([]),errorLabelContainer:n([]),onsubmit:!0,ignore:[],ignoreTitle:!1,onfocusin:function(n){this.lastActive=n;this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,n,this.settings.errorClass,this.settings.validClass),this.addWrapper(this.errorsFor(n)).hide())},onfocusout:function(n){!this.checkable(n)&&(n.name in this.submitted||!this.optional(n))&&this.element(n)},onkeyup:function(n){(n.name in this.submitted||n==this.lastElement)&&this.element(n)},onclick:function(n){n.name in this.submitted?this.element(n):n.parentNode.name in this.submitted&&this.element(n.parentNode)},highlight:function(t,i,r){n(t).addClass(i).removeClass(r)},unhighlight:function(t,i,r){n(t).removeClass(i).addClass(r)}},setDefaults:function(t){n.extend(n.validator.defaults,t)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:n.validator.format("Please enter no more than {0} characters."),minlength:n.validator.format("Please enter at least {0} characters."),rangelength:n.validator.format("Please enter a value between {0} and {1} characters long."),range:n.validator.format("Please enter a value between {0} and {1}."),max:n.validator.format("Please enter a value less than or equal to {0}."),min:n.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function i(t){var i=n.data(this[0].form,"validator");t="on"+t.type.replace(/^validate/,"");i.settings[t]&&i.settings[t].call(i,this[0])}var r,t;this.labelContainer=n(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||n(this.currentForm);this.containers=n(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();r=this.groups={};n.each(this.settings.groups,function(t,i){n.each(i.split(/\s/),function(n,i){r[i]=t})});t=this.settings.rules;n.each(t,function(i,r){t[i]=n.validator.normalizeRule(r)});n(this.currentForm).validateDelegate(":text, :password, :file, select, textarea","focusin focusout keyup",i).validateDelegate(":radio, :checkbox, select, option","click",i);this.settings.invalidHandler&&n(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),n.extend(this.submitted,this.errorMap),this.invalid=n.extend({},this.errorMap),this.valid()||n(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var n=0,t=this.currentElements=this.elements();t[n];n++)this.check(t[n]);return this.valid()},element:function(t){this.lastElement=t=this.clean(t);this.prepareElement(t);this.currentElements=n(t);var i=this.check(t);return i?delete this.invalid[t.name]:this.invalid[t.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers
6)),this.showErrors(),i},showErrors:function(t){if(t){n.extend(this.errorMap,t);this.errorList=[];for(var i in t)this.errorList.push({message:t[i],element:this.findByName(i)[0]});this.successList=n.grep(this.successList,function(n){return!(n.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){n.fn.resetForm&&n(this.currentForm).resetForm();this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(n){var t=0;for(var i in n)t++;return t},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return this.size()==0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{n(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(t){}},findLastActive:function(){var t=this.lastActive;return t&&n.grep(this.errorList,function(n){return n.element.name==t.name}).length==1&&t},elements:function(){var t=this,i={};return n([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return(!this.name&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.name in i||!t.objectLength(n(this).rules()))?!1:i[this.name]=!0})},clean:function(t){return n(t)[0]},errors:function(){return n(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=n([]);this.toHide=n([]);this.currentElements=n([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(n){this.reset();this.toHide=this.errorsFor(n)},check:function(t){var i,r,u,f,e;t=this.clean(t);this.checkable(t)&&(t=this.findByName(t.name).not(this.settings.ignore)[0]);i=n(t).rules();r=!1;for(u in i){f={method:u,parameters:i[u]};try{if(e=n.validator.methods[u].call(this,t.value.replace(/\r/g,""),t,f.parameters),e=="dependency-mismatch")r=!0;else{if(r=!1,e=="pending"){this.toHide=this.toHide.not(this.errorsFor(t));return}if(!e)return this.formatAndAdd(t,f),!1}}catch(o){this.settings.debug&&window.console&&console.log("exception occured when checking element "+t.id+", check the '"+f.method+"' method",o);throw o;}}if(!r)return this.objectLength(i)&&this.successList.push(t),!0},customMetaMessage:function(t,i){if(n.metadata){var r=this.settings.meta?n(t).metadata()[this.settings.meta]:n(t).metadata();return r&&r.messages&&r.messages[i]}},customMessage:function(n,t){var i=this.settings.messages[n];return i&&(i.constructor==String?i:i[t])},findDefined:function(){for(var n=0;n<arguments.length;n++)if(arguments[n]!==undefined)return arguments[n]},defaultMessage:function(t,i){return this.findDefined(this.customMessage(t.name,i),this.customMetaMessage(t,i),!this.settings.ignoreTitle&&t.title||undefined,n.validator.messages[i],"<strong>Warning: No message defined for "+t.name+"<\/strong>")},formatAndAdd:function(n,t){var i=this.defaultMessage(n,t.method),r=/\$?\{(\d+)\}/g;typeof i=="function"?i=i.call(this,t.parameters,n):r.test(i)&&(i=jQuery.format(i.replace(r,"{$1}"),t.parameters));this.errorList.push({message:i,element:n});this.errorMap[n.name]=i;this.submitted[n.name]=i},addWrapper:function(n){return this.settings.wrapper&&(n=n.add(n.parent(this.settings.wrapper))),n},defaultShowErrors:function(){for(var t,n=0;this.errorList[n];n++)t=this.errorList[n],this.settings.highlight&&this.settings.highlight.call(this,t.element,this.settings.errorClass,this.settings.validClass),this.showLabel(t.element,t.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(n=0;this.successList[n];n++)this.showLabel(this.successList[n]);if(this.settings.unhighlight)for(n=0,t=this.validElements();t[n];n++)this.settings.unhighlight.call(this,t[n],this.settings.errorClass,this.settings.val
6idClass);this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return n(this.errorList).map(function(){return this.element})},showLabel:function(t,i){var r=this.errorsFor(t);r.length?(r.removeClass().addClass(this.settings.errorClass),r.attr("generated")&&r.html(i)):(r=n("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(t),generated:!0}).addClass(this.settings.errorClass).html(i||""),this.settings.wrapper&&(r=r.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(r).length||(this.settings.errorPlacement?this.settings.errorPlacement(r,n(t)):r.insertAfter(t)));!i&&this.settings.success&&(r.text(""),typeof this.settings.success=="string"?r.addClass(this.settings.success):this.settings.success(r));this.toShow=this.toShow.add(r)},errorsFor:function(t){var i=this.idOrName(t);return this.errors().filter(function(){return n(this).attr("for")==i})},idOrName:function(n){return this.groups[n.name]||(this.checkable(n)?n.name:n.id||n.name)},checkable:function(n){return/radio|checkbox/i.test(n.type)},findByName:function(t){var i=this.currentForm;return n(document.getElementsByName(t)).map(function(n,r){return r.form==i&&r.name==t&&r||null})},getLength:function(t,i){switch(i.nodeName.toLowerCase()){case"select":return n("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return t.length},depend:function(n,t){return this.dependTypes[typeof n]?this.dependTypes[typeof n](n,t):!0},dependTypes:{boolean:function(n){return n},string:function(t,i){return!!n(t,i.form).length},"function":function(n,t){return n(t)}},optional:function(t){return!n.validator.methods.required.call(this,n.trim(t.value),t)&&"dependency-mismatch"},startRequest:function(n){this.pending[n.name]||(this.pendingRequest++,this.pending[n.name]=!0)},stopRequest:function(t,i){this.pendingRequest--;this.pendingRequest<0&&(this.pendingRequest=0);delete this.pending[t.name];i&&this.pendingRequest==0&&this.formSubmitted&&this.form()?(n(this.currentForm).submit(),this.formSubmitted=!1):!i&&this.pendingRequest==0&&this.formSubmitted&&(n(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t){return n.data(t,"previousValue")||n.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},dateDE:{dateDE:!0},number:{number:!0},numberDE:{numberDE:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,i){t.constructor==String?this.classRuleSettings[t]=i:n.extend(this.classRuleSettings,t)},classRules:function(t){var i={};return(t=n(t).attr("class"))&&n.each(t.split(" "),function(){this in n.validator.classRuleSettings&&n.extend(i,n.validator.classRuleSettings[this])}),i},attributeRules:function(t){var i={},r,u;t=n(t);for(r in n.validator.methods)u=t.attr(r),u&&(i[r]=u);return i.maxlength&&/-1|2147483647|524288/.test(i.maxlength)&&delete i.maxlength,i},metadataRules:function(t){if(!n.metadata)return{};var i=n.data(t.form,"validator").settings.meta;return i?n(t).metadata()[i]:n(t).metadata()},staticRules:function(t){var i={},r=n.data(t.form,"validator");return r.settings.rules&&(i=n.validator.normalizeRule(r.settings.rules[t.name])||{}),i},normalizeRules:function(t,i){return n.each(t,function(r,u){if(u===!1)delete t[r];else if(u.param||u.depends){var f=!0;switch(typeof u.depends){case"string":f=!!n(u.depends,i.form).length;break;case"function":f=u.depends.call(i,i)}f?t[r]=u.param!==undefined?u.param:!0:delete t[r]}}),n.each(t,function(r,u){t[r]=n.isFunction(u)?u(i):u}),n.each(["minlength","maxlength","min","max"],function(){t[this]&&(t[this]=Number(t[this]))}),n.each(["rangelength","range"],function(){t[this]&&(t[this]=[Number(t[this][0]),Number(t[this][1])])}),n.validator.autoCreateRanges&&(t.min&&t.max&&(t.range=[t.min,t.max],delete t.min,delete t.max),t.minlength&&t.maxlength&&(t.rangelength=[t.minlength,t.maxlength],delete t.minlength,delete t.maxlength)),t.messages&&delete t.messages,t},normalizeRule:function(t){if(typeof t=="string"){var i={};n.each(t.split(/\s/),function(){i[this]=!0});t=i}return t},addMethod:function(t,i,r){n.validator.methods[t]=i;n.validator.messages[t]=r!=undefined?r:n.validator.messages[t];
6i.length<3&&n.validator.addClassRules(t,n.validator.normalizeRule(t))},methods:{required:function(t,i,r){if(!this.depend(r,i))return"dependency-mismatch";switch(i.nodeName.toLowerCase()){case"select":return(t=n(i).val())&&t.length>0;case"input":if(this.checkable(i))return this.getLength(t,i)>0;default:return n.trim(t).length>0}},remote:function(t,i,r){var f,u,e;return this.optional(i)?"dependency-mismatch":(f=this.previousValue(i),this.settings.messages[i.name]||(this.settings.messages[i.name]={}),f.originalMessage=this.settings.messages[i.name].remote,this.settings.messages[i.name].remote=f.message,r=typeof r=="string"&&{url:r}||r,this.pending[i.name])?"pending":f.old===t?f.valid:(f.old=t,u=this,this.startRequest(i),e={},e[i.name]=t,n.ajax(n.extend(!0,{url:r,mode:"abort",port:"validate"+i.name,dataType:"json",data:e,success:function(r){var o,e;u.settings.messages[i.name].remote=f.originalMessage;o=r===!0;o?(e=u.formSubmitted,u.prepareElement(i),u.formSubmitted=e,u.successList.push(i),u.showErrors()):(e={},r=r||u.defaultMessage(i,"remote"),e[i.name]=f.message=n.isFunction(r)?r(t):r,u.showErrors(e));f.valid=o;u.stopRequest(i,o)}},r)),"pending")},minlength:function(t,i,r){return this.optional(i)||this.getLength(n.trim(t),i)>=r},maxlength:function(t,i,r){return this.optional(i)||this.getLength(n.trim(t),i)<=r},rangelength:function(t,i,r){return t=this.getLength(n.trim(t),i),this.optional(i)||t>=r[0]&&t<=r[1]},min:function(n,t,i){return this.optional(t)||n>=i},max:function(n,t,i){return this.optional(t)||n<=i},range:function(n,t,i){return this.optional(t)||n>=i[0]&&n<=i[1]},email:function(n,t){return this.optional(t)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(n)},url:function(n,t){return this.optional(t)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(n)},date:function(n,t){return this.optional(t)||!/Invalid|NaN/.test(new Date(n))},dateISO:function(n,t){return this.optional(t)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(n)},number:function(n,t){return this.optional(t)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(n)},digits:function(n,t){return this.optional(t)||/^\d+$/.test(n)},creditcard:function(n,t){var r;if(this.optional(t))return"dependency-mismatch";if(/[^0-9-]+/.test(n))return!1;var f=0,i=0,u=!1;for(n=n.replace(/\D/g,""),r=n.length-1;r>=0;r--)i=n.charAt(r),i=parseInt(i,10),u&&(i*=2)>9&&(i-=9),f+=i,u=!u;return f%10==0},accept:function(n,t,i){return i=typeof i=="string"?i.replace(/,/g,"|"):"png|jpe?g|gif",this.optional(t)||n.match(RegExp(".("+i+")$","i"))},equalTo:function(t,i,r){return r=n(r).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){n(i).val
6id()}),t==r.val()}}});n.format=n.validator.format}(jQuery),function(n){var t={},i;n.ajaxPrefilter?n.ajaxPrefilter(function(n,i,r){i=n.port;n.mode=="abort"&&(t[i]&&t[i].abort(),t[i]=r)}):(i=n.ajax,n.ajax=function(r){var u=("port"in r?r:n.ajaxSettings).port;return("mode"in r?r:n.ajaxSettings).mode=="abort"?(t[u]&&t[u].abort(),t[u]=i.apply(this,arguments)):i.apply(this,arguments)})}(jQuery),function(n){jQuery.event.special.focusin||jQuery.event.special.focusout||!document.addEventListener||n.each({focus:"focusin",blur:"focusout"},function(t,i){function r(t){return t=n.event.fix(t),t.type=i,n.event.handle.call(this,t)}n.event.special[i]={setup:function(){this.addEventListener(t,r,!0)},teardown:function(){this.removeEventListener(t,r,!0)},handler:function(t){return arguments[0]=n.event.fix(t),arguments[0].type=i,n.event.handle.apply(this,arguments)}}});n.extend(n.fn,{validateDelegate:function(t,i,r){return this.bind(i,function(i){var u=n(i.target);if(u.is(t))return r.apply(u,arguments)})}})}(jQuery),function(n){function i(n,t,i){n.rules[t]=i;n.message&&(n.messages[t]=n.message)}function h(n){return n.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function f(n){return n.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function e(n){return n.substr(0,n.lastIndexOf(".")+1)}function o(n,t){return n.indexOf("*.")===0&&(n=n.replace("*.",t)),n}function c(t,i){var r=n(this).find("[data-valmsg-for='"+f(i[0].name)+"']"),u=n.parseJSON(r.attr("data-valmsg-replace"))!==!1;r.removeClass("field-validation-valid").addClass("field-validation-error");t.data("unobtrusiveContainer",r);u?(r.empty(),t.removeClass("input-validation-error").appendTo(r)):t.hide()}function l(t,i){var u=n(this).find("[data-valmsg-summary=true]"),r=u.find("ul");r&&r.length&&i.errorList.length&&(r.empty(),u.addClass("validation-summary-errors").removeClass("validation-summary-valid"),n.each(i.errorList,function(){n("<li />").html(this.message).appendTo(r)}))}function a(t){var i=t.data("unobtrusiveContainer"),r=n.parseJSON(i.attr("data-valmsg-replace"));i&&(i.addClass("field-validation-valid").removeClass("field-validation-error"),t.removeData("unobtrusiveContainer"),r&&i.empty())}function v(){var t=n(this);t.data("validator").resetForm();t.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors");t.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}function s(t){var i=n(t),r=i.data(u),f=n.proxy(v,t);return r||(r={options:{errorClass:"input-validation-error",errorElement:"span",errorPlacement:n.proxy(c,t),invalidHandler:n.proxy(l,t),messages:{},rules:{},success:n.proxy(a,t)},attachValidation:function(){i.unbind("reset."+u,f).bind("reset."+u,f).validate(this.options)},validate:function(){return i.validate(),i.valid()}},i.data(u,r)),r}var r=n.validator,t,u="unobtrusiveValidation";r.unobtrusive={adapters:[],parseElement:function(t,i){var u=n(t),f=u.parents("form")[0],r,e,o;f&&(r=s(f),r.options.rules[t.name]=e={},r.options.messages[t.name]=o={},n.each(this.adapters,function(){var i="data-val-"+this.name,r=u.attr(i),s={};r!==undefined&&(i+="-",n.each(this.params,function(){s[this]=u.attr(i+this)}),this.adapt({element:t,form:f,message:r,params:s,rules:e,messages:o}))}),n.extend(e,{__dummy__:!0}),i||r.attachValidation())},parse:function(t){var i=n(t).parents("form").andSelf().add(n(t).find("form")).filter("form");n(t).find(":input[data-val=true]").each(function(){r.unobtrusive.parseElement(this,!0)});i.each(function(){var n=s(this);n&&n.attachValidation()})}};t=r.unobtrusive.adapters;t.add=function(n,t,i){return i||(i=t,t=[]),this.push({name:n,params:t,adapt:i}),this};t.addBool=function(n,t){return this.add(n,function(r){i(r,t||n,!0)})};t.addMinMax=function(n,t,r,u,f,e){return this.add(n,[f||"min",e||"max"],function(n){var f=n.params.min,e=n.params.max;f&&e?i(n,u,[f,e]):f?i(n,t,f):e&&i(n,r,e)})};t.addSingleVal=function(n,t,r){return this.add(n,[t||"val"],function(u){i(u,r||n,u.params[t])})};r.addMethod("__dummy__",function(){return!0});r.addMethod("regex",function(n,t,i){var r;return this.optional(t)?!0:(r=new RegExp(i).exec(n),r&&r.index===0&&r[0].length===n.length)});r.addMethod("nonalphamin",function(n,t,i){var r;return i&&(r=n.match(/\W/g),r=r&&r.length>=i),r});t.addSingleVal("accept","exts").addSingleVal("regex","pattern");t.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url");t.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range");t.add("equalto",["other"],function(t){var r=e(t.element.name),u=t.params.other,s=o(u,r),h=n(t.form).find(":input[name='"+f(s)+"']")[0];i(t,"equalTo",h)});t.add("required",function(n){(n.element.tagName.toUpperCase()!=="INPUT"||n.element.type.toUpperCase()!=="CHECKBOX")&&i(n,"required",!0)});t.add("remote",["url","type","additionalfields"],function(t){var r={url:t.params.url,type:t.params.type||"GET",data:{}},u=e(t.element.name);n.each(h(t.params.additionalfields||t.element.name),function(i,e){var s=o(e,u);r.data[s]=function(){return n(t.form).find(":input[name='"+f(s)+"']").val()}});i(t,"remote",r)});t.add("password",["min","nonalphamin","regex"],function(n){n.params.min&&i(n,"minlength",n.params.min);n.params.nonalphamin&&i(n,"nonalphamin",n.params.nonalphamin);
6n.params.regex&&i(n,"regex",n.params.regex)});n(function(){r.unobtrusive.parse(document)})}(jQuery);
7/**
8 * Timeago is a jQuery plugin that makes it easy to support automatically
9 * updating fuzzy timestamps (e.g. "4 minutes ago" or "about 1 day ago").
10 *
11 * @name timeago
12 * @version 1.5.1
13 * @requires jQuery v1.2.3+
14 * @author Ryan McGeary
15 * @license MIT License - http://www.opensource.org/licenses/mit-license.php
16 *
17 * For usage and examples, visit:
18 * http://timeago.yarp.com/
19 *
20 * Copyright (c) 2008-2015, Ryan McGeary (ryan -[at]- mcgeary [*dot*] org)
21 */
22(function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof module=="object"&&typeof module.exports=="object"?n(require("jquery")):n(jQuery)})(function(n){function u(){var u=t.settings,r;return u.autoDispose&&!n.contains(document.documentElement,this)?(n(this).timeago("dispose"),this):(r=e(this),isNaN(r.datetime)||(u.cutoff==0||Math.abs(f(r.datetime))<u.cutoff)&&n(this).text(i(r.datetime)),this)}function e(i){if(i=n(i),!i.data("timeago")){i.data("timeago",{datetime:t.datetime(i)});var r=n.trim(i.text());t.settings.localeTitle?i.attr("title",i.data("timeago").datetime.toLocaleString()):r.length>0&&!(t.isTime(i)&&i.attr("title"))&&i.attr("title",r)}return i.data("timeago")}function i(n){return t.inWords(f(n))}function f(n){return(new Date).getTime()-n.getTime()}var t,r;n.timeago=function(t){return t instanceof Date?i(t):typeof t=="string"?i(n.timeago.parse(t)):typeof t=="number"?i(new Date(t)):i(n.timeago.datetime(t))};t=n.timeago;n.extend(n.timeago,{settings:{refreshMillis:6e4,allowPast:!0,allowFuture:!1,localeTitle:!1,cutoff:0,autoDispose:!0,strings:{prefixAgo:"for",prefixFromNow:"om",suffixAgo:"siden",suffixFromNow:"",seconds:"mindre end et minut",minute:"ca. et minut",minutes:"%d minutter",hour:"ca. en time",hours:"ca. %d timer",day:"en dag",days:"%d dage",month:"ca. en måned",months:"%d måneder",year:"ca. et år",years:"%d år",wordSeparator:" ",numbers:[]}},inWords:function(t){function r(r,u){var f=n.isFunction(r)?r(u,t):r,e=i.numbers&&i.numbers[u]||u;return f.replace(/%d/i,e)}var a,s;if(!this.settings.allowPast&&!this.settings.allowFuture)throw"timeago allowPast and allowFuture settings can not both be set to false.";var i=this.settings.strings,h=i.prefixAgo,c=i.suffixAgo;if(this.settings.allowFuture&&t<0&&(h=i.prefixFromNow,c=i.suffixFromNow),!this.settings.allowPast&&t>=0)return this.settings.strings.inPast;var f=Math.abs(t)/1e3,e=f/60,o=e/60,u=o/24,l=u/365;return a=f<45&&r(i.seconds,Math.round(f))||f<90&&r(i.minute,1)||e<45&&r(i.minutes,Math.round(e))||e<90&&r(i.hour,1)||o<24&&r(i.hours,Math.round(o))||o<42&&r(i.day,1)||u<30&&r(i.days,Math.round(u))||u<45&&r(i.month,1)||u<365&&r(i.months,Math.round(u/30))||l<1.5&&r(i.year,1)||r(i.years,Math.round(l)),s=i.wordSeparator||"",i.wordSeparator===undefined&&(s=" "),n.trim([h,a,c].join(s))},parse:function(t){var i=n.trim(t);return i=i.replace(/\.\d+/,""),i=i.replace(/-/,"/").replace(/-/,"/"),i=i.replace(/T/," ").replace(/Z/," UTC"),i=i.replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2"),i=i.replace(/([\+\-]\d\d)$/," $100"),new Date(i)},datetime:function(i){var r=t.isTime(i)?n(i).attr("datetime"):n(i).attr("title");return t.parse(r)},isTime:function(t){return n(t).get(0).tagName.toLowerCase()==="time"}});r={init:function(){var r=n.proxy(u,this),i;r();i=t.settings;i.refreshMillis>0&&(this._timeagoInterval=setInterval(r,i.refreshMillis))},update:function(i){var r=i instanceof Date?i:t.parse(i);n(this).data("timeago",{datetime:r});t.settings.localeTitle&&n(this).attr("title",r.toLocaleString());u.apply(this)},updateFromDOM:function(){n(this).data("timeago",{datetime:t.parse(t.isTime(this)?n(this).attr("datetime"):n(this).attr("title"))});u.apply(this)},dispose:function(){this._timeagoInterval&&(window.clearInterval(this._timeagoInterval),this._timeagoInterval=null)}};n.fn.timeago=function(n,t){var i=n?r[n]:r.init;if(!i)throw new Error("Unknown function name '"+n+"' for timeago");return this.each(function(){i.call(this,t)}),this};document.createElement("abbr");document.createElement("time")});fabric=fabric||{version:"1.6.4"};"undefined"!=typeof exports&&(exports.fabric=fabric);"undefined"!=typeof document&&"undefined"!=typeof window?(fabric.document=document,fabric.window=window,window.fabric=fabric):(fabric.document=require("jsdom").jsdom("<!DOCTYPE html><html><head><\/head><body><\/body><\/html>"),fabric.window=fabric.document.createWindow?fabric.document.createWindow():fabric.document.parentWindow);fabric.isTouchSupported="ontouchstart"in fabric.document.documentElement;fabric.isLikelyNode="undefined"!=typeof Buffer&&"undefined"==typeof window;fabric.SHARED_ATTRIBUTES=["display","transform","fill","fill-opacity","fill-rule","opacity","stroke","stroke-dasharray","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","i
22d"];fabric.DPI=96;fabric.reNum="(?:[-+]?(?:\\d+|\\d*\\.\\d+)(?:e[-+]?\\d+)?)";fabric.fontPaths={};fabric.charWidthsCache={};fabric.devicePixelRatio=fabric.window.devicePixelRatio||fabric.window.webkitDevicePixelRatio||fabric.window.mozDevicePixelRatio||1,function(){function n(n,t){if(this.__eventListeners[n]){var i=this.__eventListeners[n];t?i[i.indexOf(t)]=!1:fabric.util.array.fill(i,!1)}}function t(n,t){if(this.__eventListeners||(this.__eventListeners={}),1===arguments.length)for(var i in n)this.on(i,n[i]);else this.__eventListeners[n]||(this.__eventListeners[n]=[]),this.__eventListeners[n].push(t);return this}function i(t,i){if(this.__eventListeners){if(0===arguments.length)for(t in this.__eventListeners)n.call(this,t);else if(1===arguments.length&&"object"==typeof arguments[0])for(var r in t)n.call(this,r,t[r]);else n.call(this,t,i);return this}}function r(n,t){var i,r,u;if(this.__eventListeners&&(i=this.__eventListeners[n],i)){for(r=0,u=i.length;r<u;r++)i[r]&&i[r].call(this,t||{});return this.__eventListeners[n]=i.filter(function(n){return n!==!1}),this}}fabric.Observable={observe:t,stopObserving:i,fire:r,on:t,off:i,trigger:r}}();fabric.Collection={_objects:[],add:function(){if(this._objects.push.apply(this._objects,arguments),this._onObjectAdded)for(var n=0,t=arguments.length;n<t;n++)this._onObjectAdded(arguments[n]);return this.renderOnAddRemove&&this.renderAll(),this},insertAt:function(n,t,i){var r=this.getObjects();return i?r[t]=n:r.splice(t,0,n),this._onObjectAdded&&this._onObjectAdded(n),this.renderOnAddRemove&&this.renderAll(),this},remove:function(){for(var t,i=this.getObjects(),r=!1,n=0,u=arguments.length;n<u;n++)t=i.indexOf(arguments[n]),t!==-1&&(r=!0,i.splice(t,1),this._onObjectRemoved&&this._onObjectRemoved(arguments[n]));return this.renderOnAddRemove&&r&&this.renderAll(),this},forEachObject:function(n,t){for(var r=this.getObjects(),i=0,u=r.length;i<u;i++)n.call(t,r[i],i,r);return this},getObjects:function(n){return"undefined"==typeof n?this._objects:this._objects.filter(function(t){return t.type===n})},item:function(n){return this.getObjects()[n]},isEmpty:function(){return 0===this.getObjects().length},size:function(){return this.getObjects().length},contains:function(n){return this.getObjects().indexOf(n)>-1},complexity:function(){return this.getObjects().reduce(function(n,t){return n+(t.complexity?t.complexity():0)},0)}},function(n){var u=Math.sqrt,i=Math.atan2,f=Math.pow,r=Math.abs,t=Math.PI/180;fabric.util={removeFromArray:function(n,t){var i=n.indexOf(t);return i!==-1&&n.splice(i,1),n},getRandomInt:function(n,t){return Math.floor(Math.random()*(t-n+1))+n},degreesToRadians:function(n){return n*t},radiansToDegrees:function(n){return n/t},rotatePoint:function(n,t,i){n.subtractEquals(t);var r=fabric.util.rotateVector(n,i);return new fabric.Point(r.x,r.y).addEquals(t)},rotateVector:function(n,t){var i=Math.sin(t),r=Math.cos(t),u=n.x*r-n.y*i,f=n.x*i+n.y*r;return{x:u,y:f}},transformPoint:function(n,t,i){return i?new fabric.Point(t[0]*n.x+t[2]*n.y,t[1]*n.x+t[3]*n.y):new fabric.Point(t[0]*n.x+t[2]*n.y+t[4],t[1]*n.x+t[3]*n.y+t[5])},makeBoundingBoxFromPoints:function(n){var t=[n[0].x,n[1].x,n[2].x,n[3].x],i=fabric.util.array.min(t),f=fabric.util.array.max(t),e=Math.abs(i-f),r=[n[0].y,n[1].y,n[2].y,n[3].y],u=fabric.util.array.min(r),o=fabric.util.array.max(r),s=Math.abs(u-o);return{left:i,top:u,width:e,height:s}},invertTransform:function(n){var t=1/(n[0]*n[3]-n[1]*n[2]),i=[t*n[3],-t*n[1],-t*n[2],t*n[0]],r=fabric.util.transformPoint({x:n[4],y:n[5]},i,!0);return i[4]=-r.x,i[5]=-r.y,i},toFixed:function(n,t){return parseFloat(Number(n).toFixed(t))},parseUnit:function(n,t){var r=/\D{0,2}$/.exec(n),i=parseFloat(n);switch(t||(t=fabric.Text.DEFAULT_SVG_FONT_SIZE),r[0]){case"mm":return i*fabric.DPI/25.4;case"cm":return i*fabric.DPI/2.54;case"in":return i*fabric.DPI;case"pt":return i*fabric.DPI/72;case"pc":return i*fabric.DPI/6;case"em":return i*t;default:return i}},falseFunction:function(){return!1},getKlass:function(n,t){return n=fabric.util.string.camelize(n.charAt(0).toUpperCase()+n.slice(1)),fabric.util.resolveNamespace(t)[n]},resolveNamespace:function(t){if(!t)return fabric;for(var u=t.split("."),f=u.length,i=n||fabric.window,r=0;r<f;++r)i=i[u[r]];return i},loadImage:function(n,t,i,r){if(!n)return void(t&&t.call(i,n));var u=fabric.util.createImage();u.onload=function(){t&&t.call(i,u);u=u.onload=u.onerror=null};u.onerror=function(){fabric.log("Error loading "+u.src);t&&t.call(i,null,!0);u=u.onload=u.onerror=null};0!==n.indexOf("data")&&r&&(u.crossOrigin=r);u.src=n},enlivenObjects:function(n,t,i,r){function f(){++o===e&&t&&t(u)}n=n||[];var u=[],o=0,e=n.length;
22return e?void n.forEach(function(n,t){if(!n||!n.type)return void f();var e=fabric.util.getKlass(n.type,i);e.async?e.fromObject(n,function(i,e){e||(u[t]=i,r&&r(n,u[t]));f()}):(u[t]=e.fromObject(n),r&&r(n,u[t]),f())}):void(t&&t(u))},groupSVGElements:function(n,t,i){var r;return r=new fabric.PathGroup(n,t),"undefined"!=typeof i&&r.setSourcePath(i),r},populateWithProperties:function(n,t,i){if(i&&"[object Array]"===Object.prototype.toString.call(i))for(var r=0,u=i.length;r<u;r++)i[r]in n&&(t[i[r]]=n[i[r]])},drawDashedLine:function(n,t,r,f,e,o){var s=f-t,h=e-r,c=u(s*s+h*h),a=i(h,s),v=o.length,y=0,l=!0;for(n.save(),n.translate(t,r),n.moveTo(0,0),n.rotate(a),t=0;c>t;)t+=o[y++%v],t>c&&(t=c),n[l?"lineTo":"moveTo"](t,0),l=!l;n.restore()},createCanvasElement:function(n){return n||(n=fabric.document.createElement("canvas")),n.getContext||"undefined"==typeof G_vmlCanvasManager||G_vmlCanvasManager.initElement(n),n},createImage:function(){return fabric.isLikelyNode?new(require("canvas").Image):fabric.document.createElement("img")},createAccessors:function(n){for(var t=n.prototype,r=t.stateProperties.length;r--;){var i=t.stateProperties[r],u=i.charAt(0).toUpperCase()+i.slice(1),f="set"+u,e="get"+u;t[e]||(t[e]=function(n){return new Function('return this.get("'+n+'")')}(i));t[f]||(t[f]=function(n){return new Function("value",'return this.set("'+n+'", value)')}(i))}},clipContext:function(n,t){t.save();t.beginPath();n.clipTo(t);t.clip()},multiplyTransformMatrices:function(n,t,i){return[n[0]*t[0]+n[2]*t[1],n[1]*t[0]+n[3]*t[1],n[0]*t[2]+n[2]*t[3],n[1]*t[2]+n[3]*t[3],i?0:n[0]*t[4]+n[2]*t[5]+n[4],i?0:n[1]*t[4]+n[3]*t[5]+n[5]]},qrDecompose:function(n){var o=i(n[1],n[0]),r=f(n[0],2)+f(n[1],2),e=u(r),s=(n[0]*n[3]-n[2]*n[1])/e,h=i(n[0]*n[2]+n[1]*n[3],r);return{angle:o/t,scaleX:e,scaleY:s,skewX:h/t,skewY:0,translateX:n[4],translateY:n[5]}},customTransformMatrix:function(n,i,u){var f=[1,0,r(Math.tan(u*t)),1],e=[r(n),0,0,r(i)];return fabric.util.multiplyTransformMatrices(e,f,!0)},resetObjectTransform:function(n){n.scaleX=1;n.scaleY=1;n.skewX=0;n.skewY=0;n.flipX=!1;n.flipY=!1;n.setAngle(0)},getFunctionBody:function(n){return(String(n).match(/function[^{]*\{([\s\S]*)\}/)||{})[1]},isTransparent:function(n,t,i,r){var o;r>0&&(t>r?t-=r:t=0,i>r?i-=r:i=0);for(var u=!0,f=n.getImageData(t,i,2*r||1,2*r||1),e=3,s=f.data.length;e<s;e+=4)if(o=f.data[e],u=o<=0,u===!1)break;return f=null,u},parsePreserveAspectRatioAttribute:function(n){var t,i="meet",u="Mid",f="Mid",r=n.split(" ");return r&&r.length&&(i=r.pop(),"meet"!==i&&"slice"!==i?(t=i,i="meet"):r.length&&(t=r.pop())),u="none"!==t?t.slice(1,4):"none",f="none"!==t?t.slice(5,8):"none",{meetOrSlice:i,alignX:u,alignY:f}},clearFabricFontCache:function(n){n?fabric.charWidthsCache[n]&&delete fabric.charWidthsCache[n]:fabric.charWidthsCache={}}}}("undefined"!=typeof exports?exports:this),function(){function u(n,i,u,e,s,h,c){var rt=r.call(arguments),et;if(t[rt])return t[rt];var nt=Math.PI,ht=c*nt/180,y=Math.sin(ht),p=Math.cos(ht),ct=0,lt=0;u=Math.abs(u);e=Math.abs(e);var l=-p*n*.5-y*i*.5,a=-p*i*.5+y*n*.5,tt=u*u,it=e*e,at=a*a,vt=l*l,ut=tt*it-tt*at-it*vt,ft=0;ut<0?(et=Math.sqrt(1-ut/(tt*it)),u*=et,e*=et):ft=(s===h?-1:1)*Math.sqrt(ut/(tt*at+it*vt));var w=ft*u*a/e,b=-ft*e*l/u,pt=p*w-y*b+.5*n,wt=y*w+p*b+.5*i,ot=f(1,0,(l-w)/u,(a-b)/e),v=f((l-w)/u,(a-b)/e,(-l-w)/u,(-a-b)/e);0===h&&v>0?v-=2*nt:1===h&&v<0&&(v+=2*nt);for(var yt=Math.ceil(Math.abs(v/nt*2)),k=[],d=v/yt,bt=8/3*Math.sin(d/4)*Math.sin(d/4)/Math.sin(d/2),st=ot+d,g=0;g<yt;g++)k[g]=o(ot,st,p,y,u,e,pt,wt,bt,ct,lt),ct=k[g][4],lt=k[g][5],ot=st,st+=d;return t[rt]=k,k}function o(t,i,u,f,e,o,s,h,c,l,a){var v=r.call(arguments);if(n[v])return n[v];var w=Math.cos(t),b=Math.sin(t),y=Math.cos(i),p=Math.sin(i),k=u*e*y-f*o*p+s,d=f*e*y+u*o*p+h,g=l+c*(-u*e*b-f*o*w),nt=a+c*(-f*e*b+u*o*w),tt=k+c*(u*e*p+f*o*y),it=d+c*(f*e*p-u*o*y);return n[v]=[g,nt,tt,it,k,d],n[v]}function f(n,t,i,r){var u=Math.atan2(t,n),f=Math.atan2(r,i);return f>=u?f-u:2*Math.PI-(u-f)}function e(n,t,u,f,e,o,s,h){var tt=r.call(arguments),nt,st,ht,l,p,b,ut;if(i[tt])return i[tt];var y,v,k,c,d,g,it,rt,ct=Math.sqrt,ft=Math.min,et=Math.max,ot=Math.abs,w=[],a=[[],[]];for(v=6*n-12*u+6*e,y=-3*n+9*u-9*e+3*s,k=3*u-3*n,nt=0;nt<2;++nt)if(nt>0&&(v=6*t-12*f+6*o,y=-3*t+9*f-9*o+3*h,k=3*f-3*t),ot(y)<1e-12){if(ot(v)<1e-12)continue;c=-k/v;
220<c&&c<1&&w.push(c)}else it=v*v-4*k*y,it<0||(rt=ct(it),d=(-v+rt)/(2*y),0<d&&d<1&&w.push(d),g=(-v-rt)/(2*y),0<g&&g<1&&w.push(g));for(p=w.length,b=p;p--;)c=w[p],l=1-c,st=l*l*l*n+3*l*l*c*u+3*l*c*c*e+c*c*c*s,a[0][p]=st,ht=l*l*l*t+3*l*l*c*f+3*l*c*c*o+c*c*c*h,a[1][p]=ht;return a[0][b]=n,a[1][b]=t,a[0][b+1]=s,a[1][b+1]=h,ut=[{x:ft.apply(null,a[0]),y:ft.apply(null,a[1])},{x:et.apply(null,a[0]),y:et.apply(null,a[1])}],i[tt]=ut,ut}var t={},n={},i={},r=Array.prototype.join;fabric.util.drawArc=function(n,t,i,r){for(var s=r[0],h=r[1],c=r[2],l=r[3],a=r[4],v=r[5],y=r[6],e=[[],[],[],[]],o=u(v-t,y-i,s,h,l,a,c),f=0,p=o.length;f<p;f++)e[f][0]=o[f][0]+t,e[f][1]=o[f][1]+i,e[f][2]=o[f][2]+t,e[f][3]=o[f][3]+i,e[f][4]=o[f][4]+t,e[f][5]=o[f][5]+i,n.bezierCurveTo.apply(n,e[f])};fabric.util.getBoundsOfArc=function(n,t,i,r,f,o,s,h,c){for(var w=0,b=0,y=[],p=[],a=u(h-n,c-t,i,r,o,s,f),v=[[],[]],l=0,k=a.length;l<k;l++)y=e(w,b,a[l][0],a[l][1],a[l][2],a[l][3],a[l][4],a[l][5]),v[0].x=y[0].x+n,v[0].y=y[0].y+t,v[1].x=y[1].x+n,v[1].y=y[1].y+t,p.push(v[0]),p.push(v[1]),w=a[l][4],b=a[l][5];return p};fabric.util.getBoundsOfCurve=e}(),function(){function t(n,t){for(var r=f.call(arguments,2),u=[],i=0,e=n.length;i<e;i++)u[i]=r.length?n[i][t].apply(n[i],r):n[i][t].call(n[i]);return u}function i(t,i){return n(t,i,function(n,t){return n>=t})}function r(t,i){return n(t,i,function(n,t){return n<t})}function u(n,t){for(var i=n.length;i--;)n[i]=t;return n}function n(n,t,i){if(n&&0!==n.length){var r=n.length-1,u=t?n[r][t]:n[r];if(t)for(;r--;)i(n[r][t],u)&&(u=n[r][t]);else for(;r--;)i(n[r],u)&&(u=n[r]);return u}}var f=Array.prototype.slice;Array.prototype.indexOf||(Array.prototype.indexOf=function(n){var u,r,t,i;if(void 0===this||null===this)throw new TypeError;if((u=Object(this),r=u.length>>>0,0===r)||(t=0,arguments.length>0&&(t=Number(arguments[1]),t!==t?t=0:0!==t&&t!==Number.POSITIVE_INFINITY&&t!==Number.NEGATIVE_INFINITY&&(t=(t>0||-1)*Math.floor(Math.abs(t)))),t>=r))return-1;for(i=t>=0?t:Math.max(r-Math.abs(t),0);i<r;i++)if(i in u&&u[i]===n)return i;return-1});Array.prototype.forEach||(Array.prototype.forEach=function(n,t){for(var i=0,r=this.length>>>0;i<r;i++)i in this&&n.call(t,this[i],i,this)});Array.prototype.map||(Array.prototype.map=function(n,t){for(var r=[],i=0,u=this.length>>>0;i<u;i++)i in this&&(r[i]=n.call(t,this[i],i,this));return r});Array.prototype.every||(Array.prototype.every=function(n,t){for(var i=0,r=this.length>>>0;i<r;i++)if(i in this&&!n.call(t,this[i],i,this))return!1;return!0});Array.prototype.some||(Array.prototype.some=function(n,t){for(var i=0,r=this.length>>>0;i<r;i++)if(i in this&&n.call(t,this[i],i,this))return!0;return!1});Array.prototype.filter||(Array.prototype.filter=function(n,t){for(var r,u=[],i=0,f=this.length>>>0;i<f;i++)i in this&&(r=this[i],n.call(t,r,i,this)&&u.push(r));return u});Array.prototype.reduce||(Array.prototype.reduce=function(n){var i,r=this.length>>>0,t=0;if(arguments.length>1)i=arguments[1];else for(;;){if(t in this){i=this[t++];break}if(++t>=r)throw new TypeError;}for(;t<r;t++)t in this&&(i=n.call(null,i,this[t],t,this));return i});fabric.util.array={fill:u,invoke:t,min:r,max:i}}(),function(){function n(n,t){for(var i in t)n[i]=t[i];return n}function t(t){return n({},t)}fabric.util.object={extend:n,clone:t}}(),function(){function n(n){return n.replace(/-+(.)?/g,function(n,t){return t?t.toUpperCase():""})}function t(n,t){return n.charAt(0).toUpperCase()+(t?n.slice(1):n.slice(1).toLowerCase())}function i(n){return n.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\xA0]+/,"").replace(/[\s\xA0]+$/,"")});fabric.util.string={camelize:n,capitalize:t,escapeXml:i}}(),function(){var t=Array.prototype.slice,i=Function.prototype.apply,n=function(){};Function.prototype.bind||(Function.prototype.bind=function(r){var u,f=this,e=t.call(arguments,1);return u=e.length?function(){return i.call(f,this instanceof n?this:r,e.concat(t.call(arguments)))}:function(){return i.call(f,this instanceof n?this:r,arguments)},n.prototype=this.prototype,u.prototype=new n,u})}(),function(){function n(){}function i(n){var i=this.constructor.superclass.prototype[n];return arguments.length>
221?i.apply(this,t.call(arguments,1)):i.call(this)}function r(){function r(){this.initialize.apply(this,arguments)}var f=null,o=t.call(arguments,0),s,h;for("function"==typeof o[0]&&(f=o.shift()),r.superclass=f,r.subclasses=[],f&&(n.prototype=f.prototype,r.prototype=new n,f.subclasses.push(r)),s=0,h=o.length;s<h;s++)e(r,o[s],f);return r.prototype.initialize||(r.prototype.initialize=u),r.prototype.constructor=r,r.prototype.callSuper=i,r}var t=Array.prototype.slice,u=function(){},f=function(){for(var n in{toString:1})if("toString"===n)return!1;return!0}(),e=function(n,t,i){for(var r in t)n.prototype[r]=r in n.prototype&&"function"==typeof n.prototype[r]&&(t[r]+"").indexOf("callSuper")>-1?function(n){return function(){var u=this.constructor.superclass,r;return this.constructor.superclass=i,r=t[n].apply(this,arguments),(this.constructor.superclass=u,"initialize"!==n)?r:void 0}}(r):t[r],f&&(t.toString!==Object.prototype.toString&&(n.prototype.toString=t.toString),t.valueOf!==Object.prototype.valueOf&&(n.prototype.valueOf=t.valueOf))};fabric.util.createClass=r}(),function(){function i(n){for(var i,r=Array.prototype.slice.call(arguments,1),u=r.length,t=0;t<u;t++)if(i=typeof n[r[t]],!/^(?:function|object|unknown)$/.test(i))return!1;return!0}function a(n,t){return{handler:t,wrappedHandler:v(n,t)}}function v(n,t){return function(i){t.call(c(n),i||fabric.window.event)}}function y(t,i){return function(r){if(n[t]&&n[t][i])for(var f=n[t][i],u=0,e=f.length;u<e;u++)f[u].call(this,r||fabric.window.event)}}function p(n){n||(n=fabric.window.event);var i=n.target||(typeof n.srcElement!==e?n.srcElement:null),t=fabric.util.getScrollLeftTop(i);return{x:o(n)+t.left,y:s(n)+t.top}}function h(n,t,i){var r="touchend"===n.type?"changedTouches":"touches";return n[r]&&n[r][0]?n[r][0][t]-(n[r][0][t]-n[r][0][i])||n[i]:n[i]}var c,l,e="unknown",r=function(){var n=0;return function(t){return t.__uniqueID||(t.__uniqueID="uniqueID__"+n++)}}(),o,s;!function(){var n={};c=function(t){return n[t]};l=function(t,i){n[t]=i}}();var u,f,w=i(fabric.document.documentElement,"addEventListener","removeEventListener")&&i(fabric.window,"addEventListener","removeEventListener"),b=i(fabric.document.documentElement,"attachEvent","detachEvent")&&i(fabric.window,"attachEvent","detachEvent"),t={},n={};w?(u=function(n,t,i){n.addEventListener(t,i,!1)},f=function(n,t,i){n.removeEventListener(t,i,!1)}):b?(u=function(n,i,u){var f=r(n),e;l(f,n);t[f]||(t[f]={});t[f][i]||(t[f][i]=[]);e=a(f,u);t[f][i].push(e);n.attachEvent("on"+i,e.wrappedHandler)},f=function(n,i,u){var o,f=r(n),e,s;if(t[f]&&t[f][i])for(e=0,s=t[f][i].length;e<s;e++)o=t[f][i][e],o&&o.handler===u&&(n.detachEvent("on"+i,o.wrappedHandler),t[f][i][e]=null)}):(u=function(t,i,u){var f=r(t),e;(n[f]||(n[f]={}),n[f][i])||(n[f][i]=[],e=t["on"+i],e&&n[f][i].push(e),t["on"+i]=y(f,i));n[f][i].push(u)},f=function(t,i,u){var e=r(t);if(n[e]&&n[e][i])for(var o=n[e][i],f=0,s=o.length;f<s;f++)o[f]===u&&o.splice(f,1)});fabric.util.addListener=u;fabric.util.removeListener=f;o=function(n){return typeof n.clientX!==e?n.clientX:0};s=function(n){return typeof n.clientY!==e?n.clientY:0};fabric.isTouchSupported&&(o=function(n){return h(n,"pageX","clientX")},s=function(n){return h(n,"pageY","clientY")});fabric.util.getPointer=p;fabric.util.object.extend(fabric.util,fabric.Observable)}(),function(){function r(t,i){var u=t.style,r,f;if(!u)return t;if("string"==typeof i)return t.style.cssText+=";"+i,i.indexOf("opacity")>-1?n(t,i.match(/opacity:\s*(\d?\.?\d*)/)[1]):t;for(r in i)"opacity"===r?n(t,i[r]):(f="float"===r||"cssFloat"===r?"undefined"==typeof u.styleFloat?"cssFloat":"styleFloat":r,u[f]=i[r]);return t}var t=fabric.document.createElement("div"),u="string"==typeof t.style.opacity,f="string"==typeof t.style.filter,i=/alpha\s*\(\s*opacity\s*=\s*([^\)]+)\)/,n=function(n){return n};u?n=function(n,t){return n.style.opacity=t,n}:f&&(n=function(n,t){var r=n.style;return n.currentStyle&&!n.currentStyle.hasLayout&&(r.zoom=1),i.test(r.filter)?(t=t>=.9999?"":"alpha(opacity="+100*t+")",r.filter=r.filter.replace(i,t)):r.filter+=" alpha(opacity="+100*t+")",n});fabric.util.setStyle=r}(),function(){function f(n){return"string"==typeof n?fabric.document.getElementById(n):n}function i(n,t){var r=fabric.document.createElement(n);for(var i in t)"class"===i?r.className=t[i]:"for"===i?r.htmlFor=t[i]:r.setAttribute(i,t[i]);return r}function e(n,t){n&&(" "+n.className+" ").indexOf(" "+t+" ")===-1&&(n.className+=(n.
22className?" ":"")+t)}function o(n,t,r){return"string"==typeof t&&(t=i(t,r)),n.parentNode&&n.parentNode.replaceChild(t,n),t.appendChild(n),t}function r(n){for(var t=0,i=0,r=fabric.document.documentElement,u=fabric.document.body||{scrollLeft:0,scrollTop:0};n&&(n.parentNode||n.host)&&(n=n.parentNode||n.host,n===fabric.document?(t=u.scrollLeft||r.scrollLeft||0,i=u.scrollTop||r.scrollTop||0):(t+=n.scrollLeft||0,i+=n.scrollTop||0),1!==n.nodeType||"fixed"!==fabric.util.getElementStyle(n,"position")););return{left:t,top:i}}function s(n){var u,f,s=n&&n.ownerDocument,e={left:0,top:0},i={left:0,top:0},h={borderLeftWidth:"left",borderTopWidth:"top",paddingLeft:"left",paddingTop:"top"},o;if(!s)return i;for(o in h)i[h[o]]+=parseInt(t(n,o),10)||0;return u=s.documentElement,"undefined"!=typeof n.getBoundingClientRect&&(e=n.getBoundingClientRect()),f=r(n),{left:e.left+f.left-(u.clientLeft||0)+i.left,top:e.top+f.top-(u.clientTop||0)+i.top}}var u,h=Array.prototype.slice,n=function(n){return h.call(n,0)},t;try{u=n(fabric.document.childNodes)instanceof Array}catch(f){}u||(n=function(n){for(var i=new Array(n.length),t=n.length;t--;)i[t]=n[t];return i});t=fabric.document.defaultView&&fabric.document.defaultView.getComputedStyle?function(n,t){var i=fabric.document.defaultView.getComputedStyle(n,null);if(i)return i[t]}:function(n,t){var i=n.style[t];return!i&&n.currentStyle&&(i=n.currentStyle[t]),i},function(){function i(n){return"undefined"!=typeof n.onselectstart&&(n.onselectstart=fabric.util.falseFunction),t?n.style[t]="none":"string"==typeof n.unselectable&&(n.unselectable="on"),n}function r(n){return"undefined"!=typeof n.onselectstart&&(n.onselectstart=null),t?n.style[t]="":"string"==typeof n.unselectable&&(n.unselectable=""),n}var n=fabric.document.documentElement.style,t="userSelect"in n?"userSelect":"MozUserSelect"in n?"MozUserSelect":"WebkitUserSelect"in n?"WebkitUserSelect":"KhtmlUserSelect"in n?"KhtmlUserSelect":"";fabric.util.makeElementUnselectable=i;fabric.util.makeElementSelectable=r}(),function(){function n(n,t){var u=fabric.document.getElementsByTagName("head")[0],i=fabric.document.createElement("script"),r=!0;i.onload=i.onreadystatechange=function(n){if(r){if("string"==typeof this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState)return;r=!1;t(n||fabric.window.event);i=i.onload=i.onreadystatechange=null}};i.src=n;u.appendChild(i)}fabric.util.getScript=n}();fabric.util.getById=f;fabric.util.toArray=n;fabric.util.makeElement=i;fabric.util.addClass=e;fabric.util.wrapElement=o;fabric.util.getScrollLeftTop=r;fabric.util.getElementOffset=s;fabric.util.getElementStyle=t}(),function(){function n(n,t){return n+(/\?/.test(n)?"&":"?")+t}function t(){}function i(i,u){u||(u={});var e=u.method?u.method.toUpperCase():"GET",s=u.onComplete||function(){},f=r(),o=u.body||u.parameters;return f.onreadystatechange=function(){4===f.readyState&&(s(f),f.onreadystatechange=t)},"GET"===e&&(o=null,"string"==typeof u.parameters&&(i=n(i,u.parameters))),f.open(e,i,!0),"POST"!==e&&"PUT"!==e||f.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),f.send(o),f}var r=function(){for(var i,n=[function(){return new ActiveXObject("Microsoft.XMLHTTP")},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml2.XMLHTTP.3.0")},function(){return new XMLHttpRequest}],t=n.length;t--;)try{if(i=n[t](),i)return n[t]}catch(n){}}();fabric.util.request=i}();fabric.log=function(){};fabric.warn=function(){};"undefined"!=typeof console&&["log","warn"].forEach(function(n){"undefined"!=typeof console[n]&&"function"==typeof console[n].apply&&(fabric[n]=function(){return console[n].apply(console,arguments)})}),function(){function t(t){n(function(i){t||(t={});var r,u=i||+new Date,f=t.duration||500,e=u+f,s=t.onChange||function(){},h=t.abort||function(){return!1},c=t.easing||function(n,t,i,r){return-i*Math.cos(n/r*(Math.PI/2))+i+t},o="startValue"in t?t.startValue:0,l="endValue"in t?t.endValue:100,a=t.byValue||l-o;t.onStart&&t.onStart(),function i(l){r=l||+new Date;var v=r>e?f:r-u;return h()?void(t.onComplete&&t.onComplete()):(s(c(v,o,a,f)),r>e?void(t.onComplete&&t.onComplete()):void n(i))}(u)})}function n(){return i.apply(fabric.window,arguments)}var i=fabric.window.requestAnimationFrame||fabric.window.webkitRequestAnimationFrame||fabric.window.mozRequestAnimationFrame||fabric.window.oRequestAnimationFrame||fabric.window.msRequestAnimationFrame||function(n){fabric.window.setTimeout(n,1e3/60)};fabric.util.animate=t;fabric.util.requestAnimFrame=n}(),function(){function n(n,t,i,r){return n<Math.abs(t)?(n=t,r=i/4):r=0===t&&0===n?i/(2*Math.PI)*Math.asin(1):i/(2*Math.PI)*Math.asin(t/n),{a:n,c:t,p:i,s:r}}function i(n,t,i){return n.a*Math.pow(2,10*(t-=1))*Math.sin((t*i-n.s)*2*Math.PI/n.p)}function u(n,t,i,r){return i*((n=n/r-1)*n*n+1)+t}function f(n,t,i,r){return n/=r/2,n<1?i/2*n*n*n+t:i/2*((n-=2)*n*n+2)+t}function e(n,t,i,r){return i*(n/=r)*n*n*n+t}function o(n,t,i,r){return-i*((n=n/r-1)*n*n*n-1)+t}function s(n,t,i,r){return n/=r/2,n<1?i/2*n*n*n*n+t:-i/2*((n-=2)*n*n*n-2)+t}function h(n,t,i,r){return i*(n/=r)*n*n*n*n+t}function c(n,t,i,r){return i*((n=n/r-1)*n*n*n*n+1)+t}function l(n,t,i,r){return n/=r/2,n<1?i/2*n*n*n*n*n+t:i/2*((n-=2)*n*n*n*n+2)+t}function a(n,t,i,r){return-i*Math.cos(n/r*(Math.PI/2))+i+t}function v(n,t,i,r){return i*Math.sin(n/r*(Math.PI/2))+t}function y(n,t,i,r){return-i/2*(Math.cos(Math.PI*n/r)-1)+t}function p(n,t,i,r){return 0===n?t:i*Math.pow(2,10*(n/r-1))+t}function w(n,t,i,r){return n===r?t+i:i*(-Math.pow(2,-10*n/r)+1)+t}function b(n,t,i,r){return 0===n?t:n===r?t+i:(n/=r/2,n<1?i/2*Math.pow(2,10*(n-1))+t:i/2*(-Math.pow(2,-10*--n)+2)+t)}function k(n,t,i,r){return-i*(Math.sqrt(1-(n/=r)*n)-1)+t}function d(n,t,i,r){return i*Math.sqrt(1-(n=n/r-1)*n)+t}function g(n,t,i,r){return n/=r/2,n<1?-i/2*(Math.sqrt(1-n*n)-1)+t:i/2*(Math.sqrt(1-(n-=2)*n)+1)+t}function nt(t,r,u,f){var e=0,s=u,o;return 0===t?r:(t/=f,1===t)?r+u:(e||(e=.3*f),o=n(s,u,e,1.70158),-i(o,t,f)+r)}function tt(t,i,r,u){var e=0,o=r,f;return 0===t?i:(t/=u,1===t)?i+r:(e||(e=.3*u),f=n(o,r,e,1.70158),f.a*Math.pow(2,-10*t)*Math.sin((t*u-f.s)*2*Math.PI/f.p)+f.c+i)}function it(t,r,u,f){var o=0,s=u,e;return 0===t?r:(t/=f/2,2===t)?r+u:(o||(o=f*.3*1.5),e=n(s,u,o,1.70158),t<1?-.5*i(e,t,f)+r:e.a*Math.pow(2,-10*(t-=1))*Math.sin((t*f-e.s)*2*Math.PI/e.p)*.5+e.c+r)}function rt(n,t,i,r,u){return void 0===u&&(u=1.70158),i*(n/=r)*n*((u+1)*n-u)+t}function ut(n,t,i,r,u){return void 0===u&&(u=1.70158),i*((n=n/r-1)*n*((u+1)*n+u)+1)+t}function ft(n,t,i,r,u){return void 0===u&&(u=1.70158),n/=r/2,n<1?i/2*n*n*(((u*=1.525)+1)*n-u)+t:i/2*((n-=2)*n*(((u*=1.525)+1)*n+u)+2)+t}function r(n,i,r,u){return r-t(u-n,0,r,u)+i}function t(n,t,i,r){return(n/=r)<1/2.75?i*7.5625*n*n+t:n<2/2.75?i*(7.5625*(n-=1.5/2.75)*n+.75)+t:n<2.5/2.75?i*(7.5625*(n-=2.25/2.75)*n+.9375)+t:i*(7.5625*(n-=2.625/2.75)*n+.984375)+t}function et(n,i,u,f){return n<f/2?.5*r(2*n,0,u,f)+i:.5*t(2*n-f,0,u,f)+.5*u+i}fabric.util.ease={easeInQuad:function(n,t,i,r){return i*(n/=r)*n+t},easeOutQuad:function(n,t,i,r){return-i*(n/=r)*(n-2)+t},easeInOutQuad:function(n,t,i,r){return n/=r/2,n<1?i/2*n*n+t:-i/2*(--n*(n-2)-1)+t},easeInCubic:function(n,t,i,r){return i*(n/=r)*n*n+t},easeOutCubic:u,easeInOutCubic:f,easeInQuart:e,easeOutQuart:o,easeInOutQuart:s,easeInQuint:h,easeOutQuint:c,easeInOutQuint:l,easeInSine:a,easeOutSine:v,easeInOutSine:y,easeInExpo:p,easeOutExpo:w,easeInOutExpo:b,easeInCirc:k,easeOutCirc:d,easeInOutCirc:g,easeInElastic:nt,easeOutElastic:tt,easeInOutElastic:it,easeInBack:rt,easeOutBack:ut,easeInOutBack:ft,easeInBounce:r,easeOutBounce:t,easeInOutBounce:et}}(),function(n){"use strict";function r(n){return n in a?a[n]:n}function u(n,r,u,f){var e,o="[object Array]"===Object.prototype.toString.call(r);return"fill"!==n&&"stroke"!==n||"none"!==r?"strokeDashArray"===n?r=r.replace(/,/g," ").split(/\s+/).map(function(n){return parseFloat(n)}):"transformMatrix"===n?r=u&&u.transformMatrix?et(u.transformMatrix,t.parseTransformAttribute(r)):t.parseTransformAttribute(r):"visible"===n?(r="none"!==r&&"hidden"
22!==r,u&&u.visible===!1&&(r=!1)):"originX"===n?r="start"===r?"left":"end"===r?"right":"center":e=o?r.map(i):i(r,f):r="",!o&&isNaN(e)?r:e}function p(n){var i,r;for(i in s)if("undefined"!=typeof n[s[i]]&&""!==n[i]){if("undefined"==typeof n[i]){if(!t.Object.prototype[i])continue;n[i]=t.Object.prototype[i]}0!==n[i].indexOf("url(")&&(r=new t.Color(n[i]),n[i]=r.setAlpha(ft(r.getAlpha()*n[s[i]],2)).toRgba())}return n}function h(n,t){for(var u,f,i=[],r=0;r<t.length;r++)u=t[r],f=n.getElementsByTagName(u),i=i.concat(Array.prototype.slice.call(f));return i}function w(n,t){var i,f;n.replace(/;\s*$/,"").split(";").forEach(function(n){var e=n.split(":");i=r(e[0].trim().toLowerCase());f=u(i,e[1].trim());t[i]=f})}function b(n,t){var i,e;for(var f in n)"undefined"!=typeof n[f]&&(i=r(f.toLowerCase()),e=u(i,n[f]),t[i]=e)}function k(n,i){var f={},r,u;for(r in t.cssRules[i])if(d(n,r.split(" ")))for(u in t.cssRules[i][r])f[u]=t.cssRules[i][r][u];return f}function d(n,t){var i,r=!0;return i=c(n,t.pop()),i&&t.length&&(r=g(n,t)),i&&r&&0===t.length}function g(n,t){for(var i,r=!0;n.parentNode&&1===n.parentNode.nodeType&&t.length;)r&&(i=t.pop()),n=n.parentNode,r=c(n,i);return 0===t.length}function c(n,t){var i,e=n.nodeName,r=n.getAttribute("class"),f=n.getAttribute("id"),u;if(i=new RegExp("^"+e,"i"),t=t.replace(i,""),f&&t.length&&(i=new RegExp("#"+f+"(?![a-zA-Z\\-]+)","i"),t=t.replace(i,"")),r&&t.length)for(r=r.split(" "),u=r.length;u--;)i=new RegExp("\\."+r[u]+"(?![a-zA-Z\\-]+)","i"),t=t.replace(i,"");return 0===t.length}function nt(n,t){var r,u,i,f;if(n.getElementById&&(r=n.getElementById(t)),r)return r;for(f=n.getElementsByTagName("*"),i=0;i<f.length;i++)if(u=f[i],t===u.getAttribute("id"))return u}function tt(n){for(var l,u=h(n,["use","svg:use"]),s=0;u.length&&s<u.length;){var v,i,r,f,c,e=u[s],y=e.getAttribute("xlink:href").substr(1),p=e.getAttribute("x")||0,w=e.getAttribute("y")||0,t=nt(n,y).cloneNode(!0),a=(t.getAttribute("transform")||"")+" translate("+p+", "+w+")",b=u.length;if(o(t),/^svg$/i.test(t.nodeName)){for(l=t.ownerDocument.createElement("g"),r=0,f=t.attributes,c=f.length;r<c;r++)i=f.item(r),l.setAttribute(i.nodeName,i.nodeValue);for(;null!=t.firstChild;)l.appendChild(t.firstChild);t=l}for(r=0,f=e.attributes,c=f.length;r<c;r++)i=f.item(r),"x"!==i.nodeName&&"y"!==i.nodeName&&"xlink:href"!==i.nodeName&&("transform"===i.nodeName?a=i.nodeValue+" "+a:t.setAttribute(i.nodeName,i.nodeValue));t.setAttribute("transform",a);t.setAttribute("instantiated_by_use","1");t.removeAttribute("id");v=e.parentNode;v.replaceChild(t,e);u.length===b&&s++}}function o(n){var l,a,s,o,u=n.getAttribute("viewBox"),f=1,e=1,y=0,p=0,h=n.getAttribute("width"),c=n.getAttribute("height"),w=n.getAttribute("x")||0,b=n.getAttribute("y")||0,k=n.getAttribute("preserveAspectRatio")||"",d=!u||!st.test(n.nodeName)||!(u=u.match(v)),g=!h||!c||"100%"===h||"100%"===c,nt=d&&g,r={},tt="";if(r.width=0,r.height=0,r.toBeParsed=nt,nt)return r;if(d)return r.width=i(h),r.height=i(c),r;if(y=-parseFloat(u[1]),p=-parseFloat(u[2]),l=parseFloat(u[3]),a=parseFloat(u[4]),g?(r.width=l,r.height=a):(r.width=i(h),r.height=i(c),f=r.width/l,e=r.height/a),k=t.util.parsePreserveAspectRatioAttribute(k),"none"!==k.alignX&&(e=f=f>e?e:f),1===f&&1===e&&0===y&&0===p&&0===w&&0===b)return r;if((w||b)&&(tt=" translate("+i(w)+" "+i(b)+") "),s=tt+" matrix("+f+" 0 0 "+e+" "+y*f+" "+p*e+") ","svg"===n.nodeName){for(o=n.ownerDocument.createElement("g");null!=n.firstChild;)o.appendChild(n.firstChild);n.appendChild(o)}else o=n,s=o.getAttribute("transform")+s;return o.setAttribute("transform",s),r}function it(n){var i=n.objects,r=n.options;return i=i.map(function(n){return t[rt(n.type)].fromObject(n)}),{objects:i,options:r}}function l(n,t,i){t[i]&&t[i].toSVG&&n.push('\t<pattern x="0" y="0" id="',i,'Pattern" ','width="',t[i].source.width,'" height="',t[i].source.height,'" patternUnits="userSpaceOnUse">\n','\t\t<image x="0" y="0" ','width="',t[i].source.width,'" height="',t[i].source.height,'" xlink:href="',t[i].source.src,'"><\/image>\n\t<\/pattern>\n')}var t=n.fabric||(n.fabric={}),f=t.util.object.extend,rt=t.util.string.capitalize,ut=t.util.object.clone,ft=t.util.toFixed,i=t.util.parseUnit,et=t.util.multiplyTransformMatrices,ot=/^(path|circle|polygon|polyline|ellipse|rect|line|image|text)$/i,st=/^(symbol|image|marker|pattern|view|svg)$/i,ht=/^(?:pattern|defs|symbol|metadata)$/i,ct=/^(symbol|g|a|svg)$/i,a={cx:"left",x:"left",r:"radius",cy:"top",y:"top",display:"visible",visibility:"visible",transform:"transformMatrix","fill-opacity":"fillOpacity","fill-rule":"fillRule","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","stroke-dasharray":"strokeDashArray","stroke-linecap":"strokeLineCap","stroke-linejoin":"strokeLineJoin","stroke-miterlimit":"strokeMiterLimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","text-decoration":"textDecoration","text-anchor":"originX"},s={stroke:"strokeOpacity",fill:"fillOpacity"},v,e,y;t.cssRules={};t.gradientDefs={};t.parseTransformAttribute=function(){function f(n,t){var i=t[0],r=3===t.length?t[1]:0,u=3===t.length?t[2]:0;n[0]=Math.cos(i);n[1]=Math.sin(i);n[2]=-Math.sin(i);n[3]=Math.cos(i);n[4]=r-(n[0]*r+n[2]*u);n[5]=u-(n[1]*r+n[3]*u)}function e(n,t){var i=t[0],r=2===t.length?t[1]:t[0];n[0]=i;n[3]=r}function o(n,i){n[2]=Math.tan(t.util.degreesToRadians(i[0]))}function s(n,i){n[1]=Math.tan(t.util.degreesToRadians(i[0]))}function h(n,t){n[4]=t[0];2===t.length&&(n[5]=t[1])}var u=[1,0,0,1,0,0],n=t.reNum,i="(?:\\s+,?\\s*|,\\s*)",c="(?:(skewX)\\s*\\(\\s*("+n+")\\s*\\))",l="(?:(skewY)\\s*\\(\\s*("+n+")\\s*\\))",a="(?:(rotate)\\s*\\(\\s*("+n+")(?:"+i+"("+n+")"+i+"("+n+"))?\\s*\\))",v="(?:(scale)\\s*\\(\\s*("+n+")(?:"+i+"("+n+"))?\\s*\\))",y="(?:(translate)\\s*\\(\\s*("+n+")(?:"+i+"("+n+"))?\\s*\\))",p="(?:(matrix)\\s*\\(\\s*("+n+")"+i+"("+n+")"+i+"("+n+")"+i+"("+n+")"+i+"("+n+")"+i+"("+n+")\\s*\\))",r="(?:"+p+"|"+y+"|"+v+"|"+a+"|"+c+"|"+l+")",w="(?:"+r+"(?:"+i+"*"+r+")*)",b="^\\s*(?:"+w+"?)\\s*$",k=new RegExp(b),d=new RegExp(r,"g");return function(n){var i=u.concat(),c=[],l;
22if(!n||n&&!k.test(n))return i;for(n.replace(d,function(n){var a=new RegExp(r).exec(n).filter(function(n){return""!==n&&null!=n}),v=a[1],l=a.slice(2).map(parseFloat);switch(v){case"translate":h(i,l);break;case"rotate":l[0]=t.util.degreesToRadians(l[0]);f(i,l);break;case"scale":e(i,l);break;case"skewX":o(i,l);break;case"skewY":s(i,l);break;case"matrix":i=l}c.push(i.concat());i=u.concat()}),l=c[0];c.length>1;)c.shift(),l=t.util.multiplyTransformMatrices(l,c[0]);return l}}();v=new RegExp("^\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*$");t.parseSVGDocument=function(){function n(n,t){for(;n&&(n=n.parentNode);)if(n.nodeName&&t.test(n.nodeName.replace("svg:",""))&&!n.getAttribute("instantiated_by_use"))return!0;return!1}return function(i,r,u){var e;if(i){tt(i);var a=new Date,h=t.Object.__uid++,c=o(i),f=t.util.toArray(i.getElementsByTagName("*"));if(c.svgUid=h,0===f.length&&t.isLikelyNode){f=i.selectNodes('//*[name(.)!="svg"]');for(var l=[],s=0,v=f.length;s<v;s++)l[s]=f[s];f=l}if(e=f.filter(function(t){return o(t),ot.test(t.nodeName.replace("svg:",""))&&!n(t,ht)}),!e||e&&!e.length)return void(r&&r([],{}));t.gradientDefs[h]=t.getGradientDefs(i);t.cssRules[h]=t.getCSSRules(i);t.parseElements(e,function(n){t.documentParsingTime=new Date-a;r&&r(n,c)},ut(c),u)}}}();e={has:function(n,t){t(!1)},get:function(){},set:function(){}};y=new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*("+t.reNum+"(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|"+t.reNum+"))?\\s+(.*)");f(t,{parseFontDeclaration:function(n,t){var r=n.match(y);if(r){var e=r[1],u=r[3],o=r[4],f=r[5],s=r[6];e&&(t.fontStyle=e);u&&(t.fontWeight=isNaN(parseFloat(u))?u:parseFloat(u));o&&(t.fontSize=i(o));s&&(t.fontFamily=s);f&&(t.lineHeight="normal"===f?1:f)}},getGradientDefs:function(n){for(var t,i,u,s=h(n,["linearGradient","radialGradient","svg:linearGradient","svg:radialGradient"]),f=0,r={},e={},o,f=s.length;f--;)t=s[f],u=t.getAttribute("xlink:href"),i=t.getAttribute("id"),u&&(e[i]=u.substr(1)),r[i]=t;for(i in e)for(o=r[e[i]].cloneNode(!0),t=r[i];o.firstChild;)t.appendChild(o.firstChild);return r},parseAttributes:function(n,i,e){var h,c,s,o;if(n)return s={},"undefined"==typeof e&&(e=n.getAttribute("svgUid")),n.parentNode&&ct.test(n.parentNode.nodeName)&&(s=t.parseAttributes(n.parentNode,i,e)),c=s&&s.fontSize||n.getAttribute("font-size")||t.Text.DEFAULT_SVG_FONT_SIZE,o=i.reduce(function(t,i){return h=n.getAttribute(i),h&&(i=r(i),h=u(i,h,s,c),t[i]=h),t},{}),o=f(o,f(k(n,e),t.parseStyleAttribute(n))),o.font&&t.parseFontDeclaration(o.font,o),p(f(s,o))},parseElements:function(n,i,r,u){new t.ElementsParser(n,i,r,u).parse()},parseStyleAttribute:function(n){var t={},i=n.getAttribute("style");return i?("string"==typeof i?w(i,t):b(i,t),t):t},parsePointsAttribute:function(n){if(!n)return null;n=n.replace(/,/g," ").trim();n=n.split(/\s+/);for(var r=[],t=0,i=n.length;t<i;t+=2)r.push({x:parseFloat(n[t]),y:parseFloat(n[t+1])});return r},getCSSRules:function(n){for(var i,f,s=n.getElementsByTagName("style"),e={},o=0,h=s.length;o<h;o++)i=s[o].textContent||s[o].text,i=i.replace(/\/\*[\s\S]*?\*\//g,""),""!==i.trim()&&(f=i.match(/[^{]*\{[\s\S]*?\}/g),f=f.map(function(n){return n.trim()}),f.forEach(function(n){for(var s=n.match(/([\s\S]*?)\s*\{([^}]*)\}/),i={},l=s[2].trim(),h=l.replace(/;$/,"").split(/\s*;\s*/),f=0,a=h.length;f<a;f++){var o=h[f].split(/\s*:\s*/),c=r(o[0]),v=u(c,o[1],o[0]);i[c]=v}n=s[1];n.split(",").forEach(function(n){n=n.replace(/^svg/i,"").trim();""!==n&&(e[n]?t.util.object.extend(e[n],i):e[n]=t.util.object.clone(i))})}));return e},loadSVGFromURL:function(n,i,r){function u(u){var f=u.responseXML;f&&!f.documentElement&&t.window.ActiveXObject&&u.responseText&&(f=new ActiveXObject("Microsoft.XMLDOM"),f.async="false",f.loadXML(u.responseText.replace(/<!DOCTYPE[\s\S]*?(\[[\s\S]*\])*?>/i,"")));f&&f.documentElement||i&&i(null);t.parseSVGDocument(f.documentElement,function(r,u){e.set(n,{objects:t.util.array.invoke(r,"toObject"),options:u});i&&i(r,u)},r)}n=n.replace(/^\n\s*/,"").trim();e.has(n,function(r){r?e.get(n,function(n){var t=it(n);i(t.objects,t.options)}):new t.util.request(n,{method:"get",onComplete:u})})},loadSVGFromString:function(n,i,r){var u,f;n=n.trim();"undefined"!=typeof DOMParser?(f=new DOMParser,f&&f.parseFromString&&(u=f.parseFromString(n,"text/xml"))):t.window.ActiveXObject&&(u=new ActiveXObject("Microsoft.XMLDOM"),u.async="false",u.loadXML(n.replace(/<!DOCTYPE[\s\S]*?(\[[\s\S]*\])*?>/i,"")));t.parseSVGDocument(u.documentElement,function(n,t){i(n,t)},r)},createSVGFontFacesMarkup:function(n){for(var c,r,i,e,o,l,a,v,u="",f={},s=t.fontPaths,h=0,y=n.length;h<y;h++)if(r=n[h],i=r.fontFamily,r.type.indexOf("text")!==-1&&!f[i]&&s[i]&&(f[i]=!0,r.styles)){e=r.styles;for(l in e){o=e[l];for(v in o)a=o[v],i=a.fontFamily,!f[i]&&s[i]&&(f[i]=!0)}}for(c in f)u+=["\t\t@font-face {\n","\t\t\tfont-family: '",c,"';\n","\t\t\tsrc: url('",s[c],"');\n","\t\t}\n"].join("");return u&&(u=['\t<style type="text/css">',"<![CDATA[\n",u,"]\]>","<\/style>\n"].join("")),u},createSVGRefElementsMarkup:function(n){var t=[];return l(t,n,"backgroundColor"),l(t,n,"overlayColor"),t.join("")}})}
22("undefined"!=typeof exports?exports:this);fabric.ElementsParser=function(n,t,i,r){this.elements=n;this.callback=t;this.options=i;this.reviver=r;this.svgUid=i&&i.svgUid||0};fabric.ElementsParser.prototype.parse=function(){this.instances=new Array(this.elements.length);this.numElements=this.elements.length;this.createObjects()};fabric.ElementsParser.prototype.createObjects=function(){for(var n=0,t=this.elements.length;n<t;n++)this.elements[n].setAttribute("svgUid",this.svgUid),function(n,t){setTimeout(function(){n.createObject(n.elements[t],t)},0)}(this,n)};fabric.ElementsParser.prototype.createObject=function(n,t){var i=fabric[fabric.util.string.capitalize(n.tagName.replace("svg:",""))];if(i&&i.fromElement)try{this._createObject(i,n,t)}catch(n){fabric.log(n)}else this.checkIfDone()};fabric.ElementsParser.prototype._createObject=function(n,t,i){if(n.async)n.fromElement(t,this.createCallback(i,t),this.options);else{var r=n.fromElement(t,this.options);this.resolveGradient(r,"fill");this.resolveGradient(r,"stroke");this.reviver&&this.reviver(t,r);this.instances[i]=r;this.checkIfDone()}};fabric.ElementsParser.prototype.createCallback=function(n,t){var i=this;return function(r){i.resolveGradient(r,"fill");i.resolveGradient(r,"stroke");i.reviver&&i.reviver(t,r);i.instances[n]=r;i.checkIfDone()}};fabric.ElementsParser.prototype.resolveGradient=function(n,t){var i=n.get(t),r;/^url\(/.test(i)&&(r=i.slice(5,i.length-1),fabric.gradientDefs[this.svgUid][r]&&n.set(t,fabric.Gradient.fromElement(fabric.gradientDefs[this.svgUid][r],n)))};fabric.ElementsParser.prototype.checkIfDone=function(){0==--this.numElements&&(this.instances=this.instances.filter(function(n){return null!=n}),this.callback(this.instances))},function(n){"use strict";function t(n,t){this.x=n;this.y=t}var i=n.fabric||(n.fabric={});return i.Point?void i.warn("fabric.Point is already defined"):(i.Point=t,void(t.prototype={type:"point",constructor:t,add:function(n){return new t(this.x+n.x,this.y+n.y)},addEquals:function(n){return this.x+=n.x,this.y+=n.y,this},scalarAdd:function(n){return new t(this.x+n,this.y+n)},scalarAddEquals:function(n){return this.x+=n,this.y+=n,this},subtract:function(n){return new t(this.x-n.x,this.y-n.y)},subtractEquals:function(n){return this.x-=n.x,this.y-=n.y,this},scalarSubtract:function(n){return new t(this.x-n,this.y-n)},scalarSubtractEquals:function(n){return this.x-=n,this.y-=n,this},multiply:function(n){return new t(this.x*n,this.y*n)},multiplyEquals:function(n){return this.x*=n,this.y*=n,this},divide:function(n){return new t(this.x/n,this.y/n)},divideEquals:function(n){return this.x/=n,this.y/=n,this},eq:function(n){return this.x===n.x&&this.y===n.y},lt:function(n){return this.x<n.x&&this.y<n.y},lte:function(n){return this.x<=n.x&&this.y<=n.y},gt:function(n){return this.x>n.x&&this.y>n.y},gte:function(n){return this.x>=n.x&&this.y>=n.y},lerp:function(n,i){return"undefined"==typeof i&&(i=.5),i=Math.max(Math.min(1,i),0),new t(this.x+(n.x-this.x)*i,this.y+(n.y-this.y)*i)},distanceFrom:function(n){var t=this.x-n.x,i=this.y-n.y;return Math.sqrt(t*t+i*i)},midPointFrom:function(n){return this.lerp(n)},min:function(n){return new t(Math.min(this.x,n.x),Math.min(this.y,n.y))},max:function(n){return new t(Math.max(this.x,n.x),Math.max(this.y,n.y))},toString:function(){return this.x+","+this.y},setXY:function(n,t){return this.x=n,this.y=t,this},setX:function(n){return this.x=n,this},setY:function(n){return this.y=n,this},setFromPoint:function(n){return this.x=n.x,this.y=n.y,this},swap:function(n){var t=this.x,i=this.y;this.x=n.x;this.y=n.y;n.x=t;n.y=i},clone:function(){return new t(this.x,this.y)}}))}("undefined"!=typeof exports?exports:this),function(n){"use strict";function t(n){this.status=n;this.points=[]}var i=n.fabric||(n.fabric={});return i.Intersection?void i.warn("fabric.Intersection is already defined"):(i.Intersection=t,i.Intersection.prototype={constructor:t,appendPoint:function(n){return this.points.push(n),this},appendPoints:function(n){return this.points=this.points.concat(n),this}},i.Intersection.intersectLineLine=function(n,r,u,f){var e,c=(f.x-u.x)*(n.y-u.y)-(f.y-u.y)*(n.x-u.x),l=(r.x-n.x)*(n.y-u.y)-(r.y-n.y)*(n.x-u.x),s=(f.y-u.y)*(r.x-n.x)-(f.x-u.x)*(r.y-n.y),o,h;return 0!==s?(o=c/s,h=l/s,0<=o&&o<=1&&0<=h&&h<=1?(e=new t("Intersection"),e.appendPoint(new i.Point(n.x+o*(r.x-n.x),n.y+o*(r.y-n.y)))):e=new t):e=new t(0===c||0===l?"Coincident":"Parallel"),e},i.Intersection.intersectLinePolygon=function(n,i,r){for(var e,o,s,u=new t,h=r.length,f=0;f<h;f++)e=r[f],o=r[(f+1)%h],s=t.intersectLineLine(n,i,e,o),u.appendPoints(s.points);return u.points.length>0&&(u.status="Intersection"),u},i.Intersection.intersectPolygonPolygon=function(n,i){for(var r=new t,f=n.length,u=0;u<f;u++){var e=n[u],o=n[(u+1)%f],s=t.intersectLinePolygon(e,o,i);r.appendPoints(s.points)}return r.points.length>0&&(r.status="Intersection"),r},void(i.Intersection.intersectPolygonRectangle=function(n,r,u){var e=r.min(u),o=r.max(u),s=new i.Point(o.x,e.y),h=new i.Point(e.x,o.y),c=t.intersectLinePolygon(e,s,n),l=t.intersectLinePolygon(s,o,n),a=t.intersectLinePolygon(o,h,n),v=t.intersectLinePolygon(h,e,n),f=new t;return f.appendPoints(c.points),f.appendPoints(l.points),f.appendPoints(a.points),f.appendPoints(v.points),f.points.length>0&&(f.status="Intersection"),f}))}
22("undefined"!=typeof exports?exports:this),function(n){"use strict";function t(n){n?this._tryParsingColor(n):this.setSource([0,0,0,1])}function r(n,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?n+6*(t-n)*i:i<.5?t:i<2/3?n+(t-n)*(2/3-i)*6:n}var i=n.fabric||(n.fabric={});return i.Color?void i.warn("fabric.Color is already defined."):(i.Color=t,i.Color.prototype={_tryParsingColor:function(n){var i;n in t.colorNameMap&&(n=t.colorNameMap[n]);"transparent"===n&&(i=[255,255,255,0]);i||(i=t.sourceFromHex(n));i||(i=t.sourceFromRgb(n));i||(i=t.sourceFromHsl(n));i||(i=[0,0,0,1]);i&&this.setSource(i)},_rgbToHsl:function(n,t,r){var f,s,h,u,e,o;if(n/=255,t/=255,r/=255,u=i.util.array.max([n,t,r]),e=i.util.array.min([n,t,r]),h=(u+e)/2,u===e)f=s=0;else{o=u-e;switch(s=h>.5?o/(2-u-e):o/(u+e),u){case n:f=(t-r)/o+(t<r?6:0);break;case t:f=(r-n)/o+2;break;case r:f=(n-t)/o+4}f/=6}return[Math.round(360*f),Math.round(100*s),Math.round(100*h)]},getSource:function(){return this._source},setSource:function(n){this._source=n},toRgb:function(){var n=this.getSource();return"rgb("+n[0]+","+n[1]+","+n[2]+")"},toRgba:function(){var n=this.getSource();return"rgba("+n[0]+","+n[1]+","+n[2]+","+n[3]+")"},toHsl:function(){var n=this.getSource(),t=this._rgbToHsl(n[0],n[1],n[2]);return"hsl("+t[0]+","+t[1]+"%,"+t[2]+"%)"},toHsla:function(){var n=this.getSource(),t=this._rgbToHsl(n[0],n[1],n[2]);return"hsla("+t[0]+","+t[1]+"%,"+t[2]+"%,"+n[3]+")"},toHex:function(){var n,t,i,r=this.getSource();return n=r[0].toString(16),n=1===n.length?"0"+n:n,t=r[1].toString(16),t=1===t.length?"0"+t:t,i=r[2].toString(16),i=1===i.length?"0"+i:i,n.toUpperCase()+t.toUpperCase()+i.toUpperCase()},getAlpha:function(){return this.getSource()[3]},setAlpha:function(n){var t=this.getSource();return t[3]=n,this.setSource(t),this},toGrayscale:function(){var n=this.getSource(),t=parseInt((.3*n[0]+.59*n[1]+.11*n[2]).toFixed(0),10),i=n[3];return this.setSource([t,t,t,i]),this},toBlackWhite:function(n){var i=this.getSource(),t=(.3*i[0]+.59*i[1]+.11*i[2]).toFixed(0),r=i[3];return n=n||127,t=Number(t)<Number(n)?0:255,this.setSource([t,t,t,r]),this},overlayWith:function(n){n instanceof t||(n=new t(n));for(var r=[],f=this.getAlpha(),u=.5,e=this.getSource(),o=n.getSource(),i=0;i<3;i++)r.push(Math.round(e[i]*(1-u)+o[i]*u));return r[3]=f,this.setSource(r),this}},i.Color.reRGBa=/^rgba?\(\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/,i.Color.reHSLa=/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/,i.Color.reHex=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,i.Color.colorNameMap={aqua:"#00FFFF",black:"#000000",blue:"#0000FF",fuchsia:"#FF00FF",gray:"#808080",grey:"#808080",green:"#008000",lime:"#00FF00",maroon:"#800000",navy:"#000080",olive:"#808000",orange:"#FFA500",purple:"#800080",red:"#FF0000",silver:"#C0C0C0",teal:"#008080",white:"#FFFFFF",yellow:"#FFFF00"},i.Color.fromRgb=function(n){return t.fromSource(t.sourceFromRgb(n))},i.Color.sourceFromRgb=function(n){var i=n.match(t.reRGBa);if(i){var r=parseInt(i[1],10)/(/%$/.test(i[1])?100:1)*(/%$/.test(i[1])?255:1),u=parseInt(i[2],10)/(/%$/.test(i[2])?100:1)*(/%$/.test(i[2])?255:1),f=parseInt(i[3],10)/(/%$/.test(i[3])?100:1)*(/%$/.test(i[3])?255:1);return[parseInt(r,10),parseInt(u,10),parseInt(f,10),i[4]?parseFloat(i[4]):1]}},i.Color.fromRgba=t.fromRgb,i.Color.fromHsl=function(n){return t.fromSource(t.sourceFromHsl(n))},i.Color.sourceFromHsl=function(n){var i=n.match(t.reHSLa),f,o;if(i){var s,h,c,l=(parseFloat(i[1])%360+360)%360/360,e=parseFloat(i[2])/(/%$/.test(i[2])?100:1),u=parseFloat(i[3])/(/%$/.test(i[3])?100:1);return 0===e?s=h=c=u:(f=u<=.5?u*(e+1):u+e-u*e,o=2*u-f,s=r(o,f,l+1/3),h=r(o,f,l),c=r(o,f,l-1/3)),[Math.round(255*s),Math.round(255*h),Math.round(255*c),i[4]?parseFloat(i[4]):1]}},i.Color.fromHsla=t.fromHsl,i.Color.fromHex=function(n){return t.fromSource(t.sourceFromHex(n))},i.Color.sourceFromHex=function(n){if(n.match(t.reHex)){var i=n.slice(n.indexOf("#")+1),r=3===i.length||4===i.length,u=8===i.length||4===i.length,f=r?i.charAt(0)+i.charAt(0):i.substring(0,2),e=r?i.charAt(1)+i.charAt(1):i.substring(2,4),o=r?i.charAt(2)+i.charAt(2):i.substring(4,6),s=u?r?i.charAt(3)+i.charAt(3):i.substring(6,8):"FF";return[parseInt(f,16),parseInt(e,16),parseInt(o,16),parseFloat((parseInt(s,16)/255).toFixed(2))]}},void(i.Color.fromSource=function(n){var i=new t;return i.setSource(n),i}))}
22("undefined"!=typeof exports?exports:this),function(){function t(n){var r,e,t,o=n.getAttribute("style"),i=n.getAttribute("offset")||0,u,f;if(i=parseFloat(i)/(/%$/.test(i)?100:1),i=i<0?0:i>1?1:i,o)for(u=o.split(/\s*;\s*/),""===u[u.length-1]&&u.pop(),f=u.length;f--;){var s=u[f].split(/\s*:\s*/),h=s[0].trim(),c=s[1].trim();"stop-color"===h?r=c:"stop-opacity"===h&&(t=c)}return r||(r=n.getAttribute("stop-color")||"rgb(0,0,0)"),t||(t=n.getAttribute("stop-opacity")),r=new fabric.Color(r),e=r.getAlpha(),t=isNaN(parseFloat(t))?1:parseFloat(t),t*=e,{offset:i,color:r.toRgb(),opacity:t}}function i(n){return{x1:n.getAttribute("x1")||0,y1:n.getAttribute("y1")||0,x2:n.getAttribute("x2")||"100%",y2:n.getAttribute("y2")||0}}function r(n){return{x1:n.getAttribute("fx")||n.getAttribute("cx")||"50%",y1:n.getAttribute("fy")||n.getAttribute("cy")||"50%",r1:0,x2:n.getAttribute("cx")||"50%",y2:n.getAttribute("cy")||"50%",r2:n.getAttribute("r")||"50%"}}function n(n,t,i){var o,e=0,u=1,s="",r,f;for(r in t)"Infinity"===t[r]?t[r]=1:"-Infinity"===t[r]&&(t[r]=0),o=parseFloat(t[r],10),u="string"==typeof t[r]&&/^\d+%$/.test(t[r])?.01:1,"x1"===r||"x2"===r||"r2"===r?(u*="objectBoundingBox"===i?n.width:1,e="objectBoundingBox"===i?n.left||0:0):"y1"!==r&&"y2"!==r||(u*="objectBoundingBox"===i?n.height:1,e="objectBoundingBox"===i?n.top||0:0),t[r]=o*u+e;return"ellipse"===n.type&&null!==t.r2&&"objectBoundingBox"===i&&n.rx!==n.ry&&(f=n.ry/n.rx,s=" scale(1, "+f+")",t.y1&&(t.y1/=f),t.y2&&(t.y2/=f)),s}fabric.Gradient=fabric.util.createClass({offsetX:0,offsetY:0,initialize:function(n){n||(n={});var t={};this.id=fabric.Object.__uid++;this.type=n.type||"linear";t={x1:n.coords.x1||0,y1:n.coords.y1||0,x2:n.coords.x2||0,y2:n.coords.y2||0};"radial"===this.type&&(t.r1=n.coords.r1||0,t.r2=n.coords.r2||0);this.coords=t;this.colorStops=n.colorStops.slice();n.gradientTransform&&(this.gradientTransform=n.gradientTransform);this.offsetX=n.offsetX||this.offsetX;this.offsetY=n.offsetY||this.offsetY},addColorStop:function(n){var t,i;for(t in n)i=new fabric.Color(n[t]),this.colorStops.push({offset:t,color:i.toRgb(),opacity:i.getAlpha()});return this},toObject:function(){return{type:this.type,coords:this.coords,colorStops:this.colorStops,offsetX:this.offsetX,offsetY:this.offsetY,gradientTransform:this.gradientTransform?this.gradientTransform.concat():this.gradientTransform}},toSVG:function(n){var u,f,t=fabric.util.object.clone(this.coords),i,r;if(this.colorStops.sort(function(n,t){return n.offset-t.offset}),!n.group||"path-group"!==n.group.type)for(i in t)"x1"===i||"x2"===i||"r2"===i?t[i]+=this.offsetX-n.width/2:"y1"!==i&&"y2"!==i||(t[i]+=this.offsetY-n.height/2);for(f='id="SVGID_'+this.id+'" gradientUnits="userSpaceOnUse"',this.gradientTransform&&(f+=' gradientTransform="matrix('+this.gradientTransform.join(" ")+')" '),"linear"===this.type?u=["<linearGradient ",f,' x1="',t.x1,'" y1="',t.y1,'" x2="',t.x2,'" y2="',t.y2,'">\n']:"radial"===this.type&&(u=["<radialGradient ",f,' cx="',t.x2,'" cy="',t.y2,'" r="',t.r2,'" fx="',t.x1,'" fy="',t.y1,'">\n']),r=0;r<this.colorStops.length;r++)u.push("<stop ",'offset="',100*this.colorStops[r].offset+"%",'" style="stop-color:',this.colorStops[r].color,null!=this.colorStops[r].opacity?";stop-opacity: "+this.colorStops[r].opacity:";",'"/>\n');return u.push("linear"===this.type?"<\/linearGradient>\n":"<\/radialGradient>\n"),u.join("")},toLive:function(n,t){var f,r,i=fabric.util.object.clone(this.coords),u,o;if(this.type){if(t.group&&"path-group"===t.group.type)for(r in i)"x1"===r||"x2"===r?i[r]+=-this.offsetX+t.width/2:"y1"!==r&&"y2"!==r||(i[r]+=-this.offsetY+t.height/2);for("linear"===this.type?f=n.createLinearGradient(i.x1,i.y1,i.x2,i.y2):"radial"===this.type&&(f=n.createRadialGradient(i.x1,i.y1,i.r1,i.x2,i.y2,i.r2)),u=0,o=this.colorStops.length;u<o;u++){var e=this.colorStops[u].color,s=this.colorStops[u].opacity,h=this.colorStops[u].offset;"undefined"!=typeof s&&(e=new fabric.Color(e).setAlpha(s).toRgba());f.addColorStop(parseFloat(h),e)}return f}}});fabric.util.object.extend(fabric.Gradient,{fromElement:function(u,f){var e,o,s,l=u.getElementsByTagName("stop"),y=u.getAttribute("gradientUnits")||"objectBoundingBox",a=u.getAttribute("gradientTransform"),v=[],h,c;for(e="linearGradient"===u.nodeName||"LINEARGRADIENT"===u.nodeName?"linear":"radial","linear"===e?o=i(u):"radial"===e&&(o=r(u)),h=l.length;h--;)v.push(t(l[h]));return s=n(f,o,y),c=new fabric.Gradient({type:e,coords:o,colorStops:v,offsetX:-f.left,offsetY:-f.top}),(a||""!==s)&&(c.gradientTransform=fabric.parseTransformAttribute((a||"")+s)),c}
22,forObject:function(t,i){return i||(i={}),n(t,i.coords,"userSpaceOnUse"),new fabric.Gradient(i)}})}();fabric.Pattern=fabric.util.createClass({repeat:"repeat",offsetX:0,offsetY:0,initialize:function(n){if(n||(n={}),this.id=fabric.Object.__uid++,n.source)if("string"==typeof n.source)if("undefined"!=typeof fabric.util.getFunctionBody(n.source))this.source=new Function(fabric.util.getFunctionBody(n.source));else{var t=this;this.source=fabric.util.createImage();fabric.util.loadImage(n.source,function(n){t.source=n})}else this.source=n.source;n.repeat&&(this.repeat=n.repeat);n.offsetX&&(this.offsetX=n.offsetX);n.offsetY&&(this.offsetY=n.offsetY)},toObject:function(){var n;return"function"==typeof this.source?n=String(this.source):"string"==typeof this.source.src?n=this.source.src:"object"==typeof this.source&&this.source.toDataURL&&(n=this.source.toDataURL()),{source:n,repeat:this.repeat,offsetX:this.offsetX,offsetY:this.offsetY}},toSVG:function(n){var t="function"==typeof this.source?this.source():this.source,r=t.width/n.getWidth(),u=t.height/n.getHeight(),f=this.offsetX/n.getWidth(),e=this.offsetY/n.getHeight(),i="";return"repeat-x"!==this.repeat&&"no-repeat"!==this.repeat||(u=1),"repeat-y"!==this.repeat&&"no-repeat"!==this.repeat||(r=1),t.src?i=t.src:t.toDataURL&&(i=t.toDataURL()),'<pattern id="SVGID_'+this.id+'" x="'+f+'" y="'+e+'" width="'+r+'" height="'+u+'">\n<image x="0" y="0" width="'+t.width+'" height="'+t.height+'" xlink:href="'+i+'"><\/image>\n<\/pattern>\n'},toLive:function(n){var t="function"==typeof this.source?this.source():this.source;return t?"undefined"!=typeof t.src&&(!t.complete||0===t.naturalWidth||0===t.naturalHeight)?"":n.createPattern(t,this.repeat):""}}),function(n){"use strict";var t=n.fabric||(n.fabric={}),i=t.util.toFixed;return t.Shadow?void t.warn("fabric.Shadow is already defined."):(t.Shadow=t.util.createClass({color:"rgb(0,0,0)",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,initialize:function(n){"string"==typeof n&&(n=this._parseShadow(n));for(var i in n)this[i]=n[i];this.id=t.Object.__uid++},_parseShadow:function(n){var r=n.trim(),i=t.Shadow.reOffsetsAndBlur.exec(r)||[],u=r.replace(t.Shadow.reOffsetsAndBlur,"")||"rgb(0,0,0)";return{color:u.trim(),offsetX:parseInt(i[1],10)||0,offsetY:parseInt(i[2],10)||0,blur:parseInt(i[3],10)||0}},toString:function(){return[this.offsetX,this.offsetY,this.blur,this.color].join("px ")},toSVG:function(n){var f=40,e=40,u=t.Object.NUM_FRACTION_DIGITS,r=t.util.rotateVector({x:this.offsetX,y:this.offsetY},t.util.degreesToRadians(-n.angle)),o=20;return n.width&&n.height&&(f=100*i((Math.abs(r.x)+this.blur)/n.width,u)+o,e=100*i((Math.abs(r.y)+this.blur)/n.height,u)+o),n.flipX&&(r.x*=-1),n.flipY&&(r.y*=-1),'<filter id="SVGID_'+this.id+'" y="-'+e+'%" height="'+(100+2*e)+'%" x="-'+f+'%" width="'+(100+2*f)+'%" >\n\t<feGaussianBlur in="SourceAlpha" stdDeviation="'+i(this.blur?this.blur/2:0,u)+'"><\/feGaussianBlur>\n\t<feOffset dx="'+i(r.x,u)+'" dy="'+i(r.y,u)+'" result="oBlur" ><\/feOffset>\n\t<feFlood flood-color="'+this.color+'"/>\n\t<feComposite in2="oBlur" operator="in" />\n\t<feMerge>\n\t\t<feMergeNode><\/feMergeNode>\n\t\t<feMergeNode in="SourceGraphic"><\/feMergeNode>\n\t<\/feMerge>\n<\/filter>\n'},toObject:function(){if(this.includeDefaultValues)return{color:this.color,blur:this.blur,offsetX:this.offsetX,offsetY:this.offsetY,affectStroke:this.affectStroke};var n={},i=t.Shadow.prototype;return["color","blur","offsetX","offsetY","affectStroke"].forEach(function(t){this[t]!==i[t]&&(n[t]=this[t])},this),n}}),void(t.Shadow.reOffsetsAndBlur=/(?:\s|^)(-?\d+(?:px)?(?:\s?|$))?(-?\d+(?:px)?(?:\s?|$))?(\d+(?:px)?)?(?:\s?|$)(?:$|\s)/))}("undefined"!=typeof exports?exports:this),function(){"use strict";if(fabric.StaticCanvas)return void fabric.warn("fabric.StaticCanvas is already defined.");var t=fabric.util.object.extend,u=fabric.util.getElementOffset,n=fabric.util.removeFromArray,i=fabric.util.toFixed,r=new Error("Could not initialize `canvas` element");fabric.StaticCanvas=fabric.util.createClass({initialize:function(n,t){t||(t={});this._initStatic(n,t)},backgroundColor:"",backgroundImage:null,overlayColor:"",overlayImage:null,includeDefaultValues:!0,stateful:!0,renderOnAddRemove:!0,
22clipTo:null,controlsAboveOverlay:!1,allowTouchScrolling:!1,imageSmoothingEnabled:!0,viewportTransform:[1,0,0,1,0,0],backgroundVpt:!0,overlayVpt:!0,onBeforeScaleRotate:function(){},enableRetinaScaling:!0,_initStatic:function(n,t){var i=fabric.StaticCanvas.prototype.renderAll.bind(this);this._objects=[];this._createLowerCanvas(n);this._initOptions(t);this._setImageSmoothing();this.interactive||this._initRetinaScaling();t.overlayImage&&this.setOverlayImage(t.overlayImage,i);t.backgroundImage&&this.setBackgroundImage(t.backgroundImage,i);t.backgroundColor&&this.setBackgroundColor(t.backgroundColor,i);t.overlayColor&&this.setOverlayColor(t.overlayColor,i);this.calcOffset()},_isRetinaScaling:function(){return 1!==fabric.devicePixelRatio&&this.enableRetinaScaling},getRetinaScaling:function(){return this._isRetinaScaling()?fabric.devicePixelRatio:1},_initRetinaScaling:function(){this._isRetinaScaling()&&(this.lowerCanvasEl.setAttribute("width",this.width*fabric.devicePixelRatio),this.lowerCanvasEl.setAttribute("height",this.height*fabric.devicePixelRatio),this.contextContainer.scale(fabric.devicePixelRatio,fabric.devicePixelRatio))},calcOffset:function(){return this._offset=u(this.lowerCanvasEl),this},setOverlayImage:function(n,t,i){return this.__setBgOverlayImage("overlayImage",n,t,i)},setBackgroundImage:function(n,t,i){return this.__setBgOverlayImage("backgroundImage",n,t,i)},setOverlayColor:function(n,t){return this.__setBgOverlayColor("overlayColor",n,t)},setBackgroundColor:function(n,t){return this.__setBgOverlayColor("backgroundColor",n,t)},_setImageSmoothing:function(){var n=this.getContext();n.imageSmoothingEnabled=n.imageSmoothingEnabled||n.webkitImageSmoothingEnabled||n.mozImageSmoothingEnabled||n.msImageSmoothingEnabled||n.oImageSmoothingEnabled;n.imageSmoothingEnabled=this.imageSmoothingEnabled},__setBgOverlayImage:function(n,t,i,r){return"string"==typeof t?fabric.util.loadImage(t,function(t){t&&(this[n]=new fabric.Image(t,r));i&&i(t)},this,r&&r.crossOrigin):(r&&t.setOptions(r),this[n]=t,i&&i(t)),this},__setBgOverlayColor:function(n,t,i){if(t&&t.source){var r=this;fabric.util.loadImage(t.source,function(u){r[n]=new fabric.Pattern({source:u,repeat:t.repeat,offsetX:t.offsetX,offsetY:t.offsetY});i&&i()})}else this[n]=t,i&&i();return this},_createCanvasElement:function(){var n=fabric.document.createElement("canvas");if(n.style||(n.style={}),!n)throw r;return this._initCanvasElement(n),n},_initCanvasElement:function(n){if(fabric.util.createCanvasElement(n),"undefined"==typeof n.getContext)throw r;},_initOptions:function(n){for(var t in n)this[t]=n[t];this.width=this.width||parseInt(this.lowerCanvasEl.width,10)||0;this.height=this.height||parseInt(this.lowerCanvasEl.height,10)||0;this.lowerCanvasEl.style&&(this.lowerCanvasEl.width=this.width,this.lowerCanvasEl.height=this.height,this.lowerCanvasEl.style.width=this.width+"px",this.lowerCanvasEl.style.height=this.height+"px",this.viewportTransform=this.viewportTransform.slice())},_createLowerCanvas:function(n){this.lowerCanvasEl=fabric.util.getById(n)||this._createCanvasElement();this._initCanvasElement(this.lowerCanvasEl);fabric.util.addClass(this.lowerCanvasEl,"lower-canvas");this.interactive&&this._applyCanvasStyle(this.lowerCanvasEl);this.contextContainer=this.lowerCanvasEl.getContext("2d")},getWidth:function(){return this.width},getHeight:function(){return this.height},setWidth:function(n,t){return this.setDimensions({width:n},t)},setHeight:function(n,t){return this.setDimensions({height:n},t)},setDimensions:function(n,t){var r,i;t=t||{};for(i in n)r=n[i],t.cssOnly||(this._setBackstoreDimension(i,n[i]),r+="px"),t.backstoreOnly||this._setCssDimension(i,r);return this._initRetinaScaling(),this._setImageSmoothing(),this.calcOffset(),t.cssOnly||this.renderAll(),this},_setBackstoreDimension:function(n,t){return this.lowerCanvasEl[n]=t,this.upperCanvasEl&&(this.upperCanvasEl[n]=t),this.cacheCanvasEl&&(this.cacheCanvasEl[n]=t),this[n]=t,this},_setCssDimension:function(n,t){return this.lowerCanvasEl.style[n]=t,this.upperCanvasEl&&(this.upperCanvasEl.style[n]=t),this.wrapperEl&&(this.wrapperEl.style[n]=t),this},getZoom:function(){return Math.sqrt(this.viewportTransform[0]*this.viewportTransform[3])}
22,setViewportTransform:function(n){var i=this.getActiveGroup(),t,r;for(this.viewportTransform=n,t=0,r=this._objects.length;t<r;t++)this._objects[t].setCoords();return i&&i.setCoords(),this.renderAll(),this},zoomToPoint:function(n,t){var u=n,i=this.viewportTransform.slice(0),r;return n=fabric.util.transformPoint(n,fabric.util.invertTransform(this.viewportTransform)),i[0]=t,i[3]=t,r=fabric.util.transformPoint(n,i),i[4]+=u.x-r.x,i[5]+=u.y-r.y,this.setViewportTransform(i)},setZoom:function(n){return this.zoomToPoint(new fabric.Point(0,0),n),this},absolutePan:function(n){var t=this.viewportTransform.slice(0);return t[4]=-n.x,t[5]=-n.y,this.setViewportTransform(t)},relativePan:function(n){return this.absolutePan(new fabric.Point(-n.x-this.viewportTransform[4],-n.y-this.viewportTransform[5]))},getElement:function(){return this.lowerCanvasEl},getActiveObject:function(){return null},getActiveGroup:function(){return null},_onObjectAdded:function(n){this.stateful&&n.setupState();n._set("canvas",this);n.setCoords();this.fire("object:added",{target:n});n.fire("added")},_onObjectRemoved:function(n){this.fire("object:removed",{target:n});n.fire("removed")},clearContext:function(n){return n.clearRect(0,0,this.width,this.height),this},getContext:function(){return this.contextContainer},clear:function(){return this._objects.length=0,this.clearContext(this.contextContainer),this.fire("canvas:cleared"),this.renderAll(),this},renderAll:function(){var n=this.contextContainer;return this.renderCanvas(n,this._objects),this},renderCanvas:function(n,t){this.clearContext(n);this.fire("before:render");this.clipTo&&fabric.util.clipContext(this,n);this._renderBackground(n);n.save();n.transform.apply(n,this.viewportTransform);this._renderObjects(n,t);n.restore();!this.controlsAboveOverlay&&this.interactive&&this.drawControls(n);this.clipTo&&n.restore();this._renderOverlay(n);this.controlsAboveOverlay&&this.interactive&&this.drawControls(n);this.fire("after:render")},drawControls:function(){},_renderObjects:function(n,t){for(var i=0,r=t.length;i<r;++i)t[i]&&t[i].render(n)},_renderBackgroundOrOverlay:function(n,t){var i=this[t+"Color"];i&&(n.fillStyle=i.toLive?i.toLive(n):i,n.fillRect(i.offsetX||0,i.offsetY||0,this.width,this.height));i=this[t+"Image"];i&&(this[t+"Vpt"]&&(n.save(),n.transform.apply(n,this.viewportTransform)),i.render(n),this[t+"Vpt"]&&n.restore())},_renderBackground:function(n){this._renderBackgroundOrOverlay(n,"background")},_renderOverlay:function(n){this._renderBackgroundOrOverlay(n,"overlay")},getCenter:function(){return{top:this.getHeight()/2,left:this.getWidth()/2}},centerObjectH:function(n){return this._centerObject(n,new fabric.Point(this.getCenter().left,n.getCenterPoint().y))},centerObjectV:function(n){return this._centerObject(n,new fabric.Point(n.getCenterPoint().x,this.getCenter().top))},centerObject:function(n){var t=this.getCenter();return this._centerObject(n,new fabric.Point(t.left,t.top))},viewportCenterObject:function(n){var t=this.getVpCenter();return this._centerObject(n,t)},viewportCenterObjectH:function(n){var t=this.getVpCenter();return this._centerObject(n,new fabric.Point(t.x,n.getCenterPoint().y)),this},viewportCenterObjectV:function(n){var t=this.getVpCenter();return this._centerObject(n,new fabric.Point(n.getCenterPoint().x,t.y))},getVpCenter:function(){var n=this.getCenter(),t=fabric.util.invertTransform(this.viewportTransform);return fabric.util.transformPoint({x:n.left,y:n.top},t)},_centerObject:function(n,t){return n.setPositionByOrigin(t,"center","center"),this.renderAll(),this},toDatalessJSON:function(n){return this.toDatalessObject(n)},toObject:function(n){return this._toObjectMethod("toObject",n)},toDatalessObject:function(n){return this._toObjectMethod("toDatalessObject",n)},_toObjectMethod:function(n,i){var r={objects:this._toObjects(n,i)};return t(r,this.__serializeBgOverlay()),fabric.util.populateWithProperties(this,r,i),r},_toObjects:function(n,t){return this.getObjects().filter(function(n){return!n.excludeFromExport}).map(function(i){return this._toObject(i,n,t)},this)},_toObject:function(n,t,i){var r,u,f;return this.includeDefaultValues||(r=n.includeDefaultValues,n.includeDefaultValues=!1),u=this._realizeGroupTransformOnObject(n),f=n[t](i),this.includeDefaultValues||(n.includeDefaultValues=r),this._unwindGroupTransformOnObject(n,u),f},_realizeGroupTransformOnObject:function(n){var t;return n.group&&n.group===this.getActiveGroup()?(t={},["angle","flipX","flipY","height","left","scaleX","scaleY","top","width"].forEach(function(i){t[i]=n[i]}),this.getActiveGroup().realizeTransform(n),t):null},_unwindGroupTransformOnObject:function(n,t){t&&n.set(t)},__serializeBgOverlay:function(){var n={background:this.backgroundColor&&this.backgroundColor.toObject?this.backgroundColor.toObject():this.backgroundColor};return this.overlayColor&&(n.overlay=this.overlayColor.toObject?this.overlayColor.toObject():this.overlayColor),this.backgroundImage&&(n.backgroundImage=this.backgroundImage.toObject()),this.overlayImage&&(n.overlayImage=this.overlayImage.toObject()),n}
22,svgViewportTransformation:!0,toSVG:function(n,t){n||(n={});var i=[];return this._setSVGPreamble(i,n),this._setSVGHeader(i,n),this._setSVGBgOverlayColor(i,"backgroundColor"),this._setSVGBgOverlayImage(i,"backgroundImage",t),this._setSVGObjects(i,t),this._setSVGBgOverlayColor(i,"overlayColor"),this._setSVGBgOverlayImage(i,"overlayImage",t),i.push("<\/svg>"),i.join("")},_setSVGPreamble:function(n,t){t.suppressPreamble||n.push('<?xml version="1.0" encoding="',t.encoding||"UTF-8",'" standalone="no" ?>\n','<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" ','"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n')},_setSVGHeader:function(n,t){var r,e=t.width||this.width,o=t.height||this.height,f='viewBox="0 0 '+this.width+" "+this.height+'" ',u=fabric.Object.NUM_FRACTION_DIGITS;t.viewBox?f='viewBox="'+t.viewBox.x+" "+t.viewBox.y+" "+t.viewBox.width+" "+t.viewBox.height+'" ':this.svgViewportTransformation&&(r=this.viewportTransform,f='viewBox="'+i(-r[4]/r[0],u)+" "+i(-r[5]/r[3],u)+" "+i(this.width/r[0],u)+" "+i(this.height/r[3],u)+'" ');n.push("<svg ",'xmlns="http://www.w3.org/2000/svg" ','xmlns:xlink="http://www.w3.org/1999/xlink" ','version="1.1" ','width="',e,'" ','height="',o,'" ',this.backgroundColor&&!this.backgroundColor.toLive?'style="background-color: '+this.backgroundColor+'" ':null,f,'xml:space="preserve">\n',"<desc>Created with Fabric.js ",fabric.version,"<\/desc>\n","<defs>",fabric.createSVGFontFacesMarkup(this.getObjects()),fabric.createSVGRefElementsMarkup(this),"<\/defs>\n")},_setSVGObjects:function(n,t){for(var i,u,r=0,f=this.getObjects(),e=f.length;r<e;r++)i=f[r],i.excludeFromExport||(u=this._realizeGroupTransformOnObject(i),n.push(i.toSVG(t)),this._unwindGroupTransformOnObject(i,u))},_setSVGBgOverlayImage:function(n,t,i){this[t]&&this[t].toSVG&&n.push(this[t].toSVG(i))},_setSVGBgOverlayColor:function(n,t){this[t]&&this[t].source?n.push('<rect x="',this[t].offsetX,'" y="',this[t].offsetY,'" ','width="',"repeat-y"===this[t].repeat||"no-repeat"===this[t].repeat?this[t].source.width:this.width,'" height="',"repeat-x"===this[t].repeat||"no-repeat"===this[t].repeat?this[t].source.height:this.height,'" fill="url(#'+t+'Pattern)"',"><\/rect>\n"):this[t]&&"overlayColor"===t&&n.push('<rect x="0" y="0" ','width="',this.width,'" height="',this.height,'" fill="',this[t],'"',"><\/rect>\n")},sendToBack:function(t){if(!t)return this;var i,r,u,f=this.getActiveGroup?this.getActiveGroup():null;if(t===f)for(u=f._objects,i=u.length;i--;)r=u[i],n(this._objects,r),this._objects.unshift(r);else n(this._objects,t),this._objects.unshift(t);return this.renderAll&&this.renderAll()},bringToFront:function(t){if(!t)return this;var i,r,u,f=this.getActiveGroup?this.getActiveGroup():null;if(t===f)for(u=f._objects,i=0;i<u.length;i++)r=u[i],n(this._objects,r),this._objects.push(r);else n(this._objects,t),this._objects.push(t);return this.renderAll&&this.renderAll()},sendBackwards:function(t,i){if(!t)return this;var u,f,r,e,o,s=this.getActiveGroup?this.getActiveGroup():null;if(t===s)for(o=s._objects,u=0;u<o.length;u++)f=o[u],r=this._objects.indexOf(f),0!==r&&(e=r-1,n(this._objects,f),this._objects.splice(e,0,f));else r=this._objects.indexOf(t),0!==r&&(e=this._findNewLowerIndex(t,r,i),n(this._objects,t),this._objects.splice(e,0,t));return this.renderAll&&this.renderAll(),this},_findNewLowerIndex:function(n,t,i){var u,r,f;if(i){for(u=t,r=t-1;r>=0;--r)if(f=n.intersectsWithObject(this._objects[r])||n.isContainedWithinObject(this._objects[r])||this._objects[r].isContainedWithinObject(n),f){u=r;break}}else u=t-1;return u},bringForward:function(t,i){if(!t)return this;var e,u,r,f,o,s=this.getActiveGroup?this.getActiveGroup():null;if(t===s)for(o=s._objects,e=o.length;e--;)u=o[e],r=this._objects.indexOf(u),r!==this._objects.length-1&&(f=r+1,n(this._objects,u),this._objects.splice(f,0,u));else r=this._objects.indexOf(t),r!==this._objects.length-1&&(f=this._findNewUpperIndex(t,r,i),n(this._objects,t),this._objects.splice(f,0,t));return this.renderAll&&this.renderAll(),this},_findNewUpperIndex:function(n,t,i){var u,r,f;if(i){for(u=t,r=t+1;r<this._objects.length;++r)if(f=n.intersectsWithObject(this._objects[r])||n.isContainedWithinObject(this._objects[r])||this._objects[r].isContainedWithinObject(n),f){u=r;break}}else u=t+1;return u},moveTo:function(t,i){return n(this._objects,t),this._objects.splice(i,0,t),this.renderAll&&this.renderAll()},dispose:function(){return this.clear(),this},toString:function(){return"#<fabric.Canvas ("+this.complexity()+"): { objects: "+this.getObjects().length+" }>"}});t(fabric.StaticCanvas.prototype,fabric.Observable);t(fabric.StaticCanvas.prototype,fabric.Collection);t(fabric.StaticCanvas.prototype,fabric.DataURLExporter);t(fabric.StaticCanvas,{EMPTY_JSON:'{"objects": [], "background": "white"}
22',supports:function(n){var t=fabric.util.createCanvasElement(),i;if(!t||!t.getContext||(i=t.getContext("2d"),!i))return null;switch(n){case"getImageData":return"undefined"!=typeof i.getImageData;case"setLineDash":return"undefined"!=typeof i.setLineDash;case"toDataURL":return"undefined"!=typeof t.toDataURL;case"toDataURLWithQuality":try{return t.toDataURL("image/jpeg",0),!0}catch(n){}return!1;default:return null}}});fabric.StaticCanvas.prototype.toJSON=fabric.StaticCanvas.prototype.toObject}();fabric.BaseBrush=fabric.util.createClass({color:"rgb(0, 0, 0)",width:1,shadow:null,strokeLineCap:"round",strokeLineJoin:"round",strokeDashArray:null,setShadow:function(n){return this.shadow=new fabric.Shadow(n),this},_setBrushStyles:function(){var n=this.canvas.contextTop;n.strokeStyle=this.color;n.lineWidth=this.width;n.lineCap=this.strokeLineCap;n.lineJoin=this.strokeLineJoin;this.strokeDashArray&&fabric.StaticCanvas.supports("setLineDash")&&n.setLineDash(this.strokeDashArray)},_setShadow:function(){if(this.shadow){var n=this.canvas.contextTop;n.shadowColor=this.shadow.color;n.shadowBlur=this.shadow.blur;n.shadowOffsetX=this.shadow.offsetX;n.shadowOffsetY=this.shadow.offsetY}},_resetShadow:function(){var n=this.canvas.contextTop;n.shadowColor="";n.shadowBlur=n.shadowOffsetX=n.shadowOffsetY=0}}),function(){fabric.PencilBrush=fabric.util.createClass(fabric.BaseBrush,{initialize:function(n){this.canvas=n;this._points=[]},onMouseDown:function(n){this._prepareForDrawing(n);this._captureDrawingPath(n);this._render()},onMouseMove:function(n){this._captureDrawingPath(n);this.canvas.clearContext(this.canvas.contextTop);this._render()},onMouseUp:function(){this._finalizeAndAddPath()},_prepareForDrawing:function(n){var t=new fabric.Point(n.x,n.y);this._reset();this._addPoint(t);this.canvas.contextTop.moveTo(t.x,t.y)},_addPoint:function(n){this._points.push(n)},_reset:function(){this._points.length=0;this._setBrushStyles();this._setShadow()},_captureDrawingPath:function(n){var t=new fabric.Point(n.x,n.y);this._addPoint(t)},_render:function(){var t=this.canvas.contextTop,i=this.canvas.viewportTransform,n=this._points[0],r=this._points[1],u,e,f;for(t.save(),t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),t.beginPath(),2===this._points.length&&n.x===r.x&&n.y===r.y&&(n.x-=.5,r.x+=.5),t.moveTo(n.x,n.y),u=1,e=this._points.length;u<e;u++)f=n.midPointFrom(r),t.quadraticCurveTo(n.x,n.y,f.x,f.y),n=this._points[u],r=this._points[u+1];t.lineTo(n.x,n.y);t.stroke();t.restore()},convertPointsToSVGPath:function(n){var r=[],i=new fabric.Point(n[0].x,n[0].y),f=new fabric.Point(n[1].x,n[1].y),t,e,u;for(r.push("M ",n[0].x," ",n[0].y," "),t=1,e=n.length;t<e;t++)u=i.midPointFrom(f),r.push("Q ",i.x," ",i.y," ",u.x," ",u.y," "),i=new fabric.Point(n[t].x,n[t].y),t+1<n.length&&(f=new fabric.Point(n[t+1].x,n[t+1].y));return r.push("L ",i.x," ",i.y," "),r},createPath:function(n){var t=new fabric.Path(n,{fill:null,stroke:this.color,strokeWidth:this.width,strokeLineCap:this.strokeLineCap,strokeLineJoin:this.strokeLineJoin,strokeDashArray:this.strokeDashArray,originX:"center",originY:"center"});return this.shadow&&(this.shadow.affectStroke=!0,t.setShadow(this.shadow)),t},_finalizeAndAddPath:function(){var i=this.canvas.contextTop,t,n;if(i.closePath(),t=this.convertPointsToSVGPath(this._points).join(""),"M 0 0 Q 0 0 0 0 L 0 0"===t)return void this.canvas.renderAll();n=this.createPath(t);this.canvas.add(n);n.setCoords();this.canvas.clearContext(this.canvas.contextTop);this._resetShadow();this.canvas.renderAll();this.canvas.fire("path:created",{path:n})}})}();fabric.CircleBrush=fabric.util.createClass(fabric.BaseBrush,{width:10,initialize:function(n){this.canvas=n;this.points=[]},drawDot:function(n){var r=this.addPoint(n),t=this.canvas.contextTop,i=this.canvas.viewportTransform;t.save();t.transform(i[0],i[1],i[2],i[3],i[4],i[5]);t.fillStyle=r.fill;t.beginPath();t.arc(r.x,r.y,r.radius,0,2*Math.PI,!1);t.closePath();t.fill();t.restore()},onMouseDown:function(n){this.points.length=0;this.canvas.clearContext(this.canvas.contextTop);this._setShadow();this.drawDot(n)},onMouseMove:function(n){this.drawDot(n)},onMouseUp:function(){var f=this.canvas.renderOnAddRemove,n,r,t;this.canvas.renderOnAddRemove=!1;for(var u=[],i=0,e=this.points.length;i<e;
22i++)n=this.points[i],r=new fabric.Circle({radius:n.radius,left:n.x,top:n.y,originX:"center",originY:"center",fill:n.fill}),this.shadow&&r.setShadow(this.shadow),u.push(r);t=new fabric.Group(u,{originX:"center",originY:"center"});t.canvas=this.canvas;this.canvas.add(t);this.canvas.fire("path:created",{path:t});this.canvas.clearContext(this.canvas.contextTop);this._resetShadow();this.canvas.renderOnAddRemove=f;this.canvas.renderAll()},addPoint:function(n){var t=new fabric.Point(n.x,n.y),i=fabric.util.getRandomInt(Math.max(0,this.width-20),this.width+20)/2,r=new fabric.Color(this.color).setAlpha(fabric.util.getRandomInt(0,100)/100).toRgba();return t.radius=i,t.fill=r,this.points.push(t),t}});fabric.SprayBrush=fabric.util.createClass(fabric.BaseBrush,{width:10,density:20,dotWidth:1,dotWidthVariance:1,randomOpacity:!1,optimizeOverlapping:!0,initialize:function(n){this.canvas=n;this.sprayChunks=[]},onMouseDown:function(n){this.sprayChunks.length=0;this.canvas.clearContext(this.canvas.contextTop);this._setShadow();this.addSprayChunk(n);this.render()},onMouseMove:function(n){this.addSprayChunk(n);this.render()},onMouseUp:function(){var e=this.canvas.renderOnAddRemove,f,r;this.canvas.renderOnAddRemove=!1;for(var i=[],u=0,o=this.sprayChunks.length;u<o;u++)for(var t=this.sprayChunks[u],n=0,s=t.length;n<s;n++)f=new fabric.Rect({width:t[n].width,height:t[n].width,left:t[n].x+1,top:t[n].y+1,originX:"center",originY:"center",fill:this.color}),this.shadow&&f.setShadow(this.shadow),i.push(f);this.optimizeOverlapping&&(i=this._getOptimizedRects(i));r=new fabric.Group(i,{originX:"center",originY:"center"});r.canvas=this.canvas;this.canvas.add(r);this.canvas.fire("path:created",{path:r});this.canvas.clearContext(this.canvas.contextTop);this._resetShadow();this.canvas.renderOnAddRemove=e;this.canvas.renderAll()},_getOptimizedRects:function(n){for(var u,t,r={},i=0,f=n.length;i<f;i++)t=n[i].left+""+n[i].top,r[t]||(r[t]=n[i]);u=[];for(t in r)u.push(r[t]);return u},render:function(){var i=this.canvas.contextTop,n,r,u,t;for(i.fillStyle=this.color,n=this.canvas.viewportTransform,i.save(),i.transform(n[0],n[1],n[2],n[3],n[4],n[5]),r=0,u=this.sprayChunkPoints.length;r<u;r++)t=this.sprayChunkPoints[r],"undefined"!=typeof t.opacity&&(i.globalAlpha=t.opacity),i.fillRect(t.x,t.y,t.width,t.width);i.restore()},addSprayChunk:function(n){var u,f,e,t,r,i;for(this.sprayChunkPoints=[],t=this.width/2,r=0;r<this.density;r++)u=fabric.util.getRandomInt(n.x-t,n.x+t),f=fabric.util.getRandomInt(n.y-t,n.y+t),e=this.dotWidthVariance?fabric.util.getRandomInt(Math.max(1,this.dotWidth-this.dotWidthVariance),this.dotWidth+this.dotWidthVariance):this.dotWidth,i=new fabric.Point(u,f),i.width=e,this.randomOpacity&&(i.opacity=fabric.util.getRandomInt(0,100)/100),this.sprayChunkPoints.push(i);this.sprayChunks.push(this.sprayChunkPoints)}});fabric.PatternBrush=fabric.util.createClass(fabric.PencilBrush,{getPatternSrc:function(){var t=20,i=fabric.document.createElement("canvas"),n=i.getContext("2d");return i.width=i.height=t+5,n.fillStyle=this.color,n.beginPath(),n.arc(t/2,t/2,t/2,0,2*Math.PI,!1),n.closePath(),n.fill(),i},getPatternSrcFunction:function(){return String(this.getPatternSrc).replace("this.color",'"'+this.color+'"')},getPattern:function(){return this.canvas.contextTop.createPattern(this.source||this.getPatternSrc(),"repeat")},_setBrushStyles:function(){this.callSuper("_setBrushStyles");this.canvas.contextTop.strokeStyle=this.getPattern()},createPath:function(n){var t=this.callSuper("createPath",n),i=t._getLeftTopCoords().scalarAdd(t.strokeWidth/2);return t.stroke=new fabric.Pattern({source:this.source||this.getPatternSrcFunction(),offsetX:-i.x,offsetY:-i.y}),t}}),function(){var u=fabric.util.getPointer,f=fabric.util.degreesToRadians,e=fabric.util.radiansToDegrees,r=Math.atan2,n=Math.abs,t=.5,i;fabric.Canvas=fabric.util.createClass(fabric.StaticCanvas,{initialize:function(n,t){t||(t={});this._initStatic(n,t);this._initInteractive();this._createCacheCanvas()},uniScaleTransform:!1,uniScaleKey:"shiftKey",centeredScaling:!1,centeredRotation:!1,centeredKey:"altKey",altActionKey:"shiftKey",
22interactive:!0,selection:!0,selectionKey:"shiftKey",selectionColor:"rgba(100, 100, 255, 0.3)",selectionDashArray:[],selectionBorderColor:"rgba(255, 255, 255, 0.3)",selectionLineWidth:1,hoverCursor:"move",moveCursor:"move",defaultCursor:"default",freeDrawingCursor:"crosshair",rotationCursor:"crosshair",containerClass:"canvas-container",perPixelTargetFind:!1,targetFindTolerance:0,skipTargetFind:!1,isDrawingMode:!1,preserveObjectStacking:!1,_initInteractive:function(){this._currentTransform=null;this._groupSelector=null;this._initWrapperElement();this._createUpperCanvas();this._initEventListeners();this._initRetinaScaling();this.freeDrawingBrush=fabric.PencilBrush&&new fabric.PencilBrush(this);this.calcOffset()},_chooseObjectsToRender:function(){var t,n=this.getActiveGroup(),r=this.getActiveObject(),i=[],f=[],u,e;if((n||r)&&!this.preserveObjectStacking){for(u=0,e=this._objects.length;u<e;u++)t=this._objects[u],n&&n.contains(t)||t===r?f.push(t):i.push(t);n&&(n._set("_objects",f),i.push(n));r&&i.push(r)}else i=this._objects;return i},renderAll:function(){!this.selection||this._groupSelector||this.isDrawingMode||this.clearContext(this.contextTop);var n=this.contextContainer;return this.renderCanvas(n,this._chooseObjectsToRender()),this},renderTop:function(){var n=this.contextTop;return this.clearContext(n),this.selection&&this._groupSelector&&this._drawSelection(n),this.fire("after:render"),this},_resetCurrentTransform:function(){var n=this._currentTransform;n.target.set({scaleX:n.original.scaleX,scaleY:n.original.scaleY,skewX:n.original.skewX,skewY:n.original.skewY,left:n.original.left,top:n.original.top});this._shouldCenterTransform(n.target)?"rotate"===n.action?this._setOriginToCenter(n.target):("center"!==n.originX&&(n.mouseXSign="right"===n.originX?-1:1),"center"!==n.originY&&(n.mouseYSign="bottom"===n.originY?-1:1),n.originX="center",n.originY="center"):(n.originX=n.original.originX,n.originY=n.original.originY)},containsPoint:function(n,t,i){var u,r=i||this.getPointer(n,!0);return u=t.group&&t.group===this.getActiveGroup()?this._normalizePointer(t.group,r):{x:r.x,y:r.y},t.containsPoint(u)||t._findTargetCorner(r)},_normalizePointer:function(n,t){var i=n.calcTransformMatrix(),r=fabric.util.invertTransform(i),u=this.viewportTransform,f=this.restorePointerVpt(t),e=fabric.util.transformPoint(f,r);return fabric.util.transformPoint(e,u)},isTargetTransparent:function(n,t,i){var f=n.hasBorders,e=n.transparentCorners,r=this.contextCache,o=n.selectionBackgroundColor,u;return n.hasBorders=n.transparentCorners=!1,n.selectionBackgroundColor="",r.save(),r.transform.apply(r,this.viewportTransform),n.render(r),r.restore(),n.active&&n._renderControls(r),n.hasBorders=f,n.transparentCorners=e,n.selectionBackgroundColor=o,u=fabric.util.isTransparent(r,t,i,this.targetFindTolerance),this.clearContext(r),u},_shouldClearSelection:function(n,t){var i=this.getActiveGroup(),r=this.getActiveObject();return!t||t&&i&&!i.contains(t)&&i!==t&&!n[this.selectionKey]||t&&!t.evented||t&&!t.selectable&&r&&r!==t},_shouldCenterTransform:function(n){if(n){var i,t=this._currentTransform;return"scale"===t.action||"scaleX"===t.action||"scaleY"===t.action?i=this.centeredScaling||n.centeredScaling:"rotate"===t.action&&(i=this.centeredRotation||n.centeredRotation),i?!t.altKey:t.altKey}},_getOriginFromCorner:function(n,t){var i={x:n.originX,y:n.originY};return"ml"===t||"tl"===t||"bl"===t?i.x="right":"mr"!==t&&"tr"!==t&&"br"!==t||(i.x="left"),"tl"===t||"mt"===t||"tr"===t?i.y="bottom":"bl"!==t&&"mb"!==t&&"br"!==t||(i.y="top"),i},_getActionFromCorner:function(n,t,i){if(!t)return"drag";switch(t){case"mtr":return"rotate";case"ml":case"mr":return i[this.altActionKey]?"skewY":"scaleX";case"mt":case"mb":return i[this.altActionKey]?"skewX":"scaleY";default:return"scale"}},_setupCurrentTransform:function(n,t){if(t){var i=this.getPointer(n),u=t._findTargetCorner(this.getPointer(n,!0)),e=this._getActionFromCorner(t,u,n),r=this._getOriginFromCorner(t,u);this._currentTransform={target:t,action:e,corner:u,scaleX:t.scaleX,scaleY:t.scaleY,skewX:t.skewX,skewY:t.skewY,offsetX:i.x-t.left,offsetY:i.y-t.top,originX:r.x,originY:r.y,ex:i.x,ey:i.y,lastX:i.x,lastY:i.y,left:t.left,top:t.top,theta:f(t.angle),width:t.width*t.scaleX,mouseXSign:1,mouseYSign:1,shiftKey:n.shiftKey,altKey:n[this.centeredKey]};this._currentTransform.original={left:t.left,top:t.top,scaleX:t.scaleX,scaleY:t.
22scaleY,skewX:t.skewX,skewY:t.skewY,originX:r.x,originY:r.y};this._resetCurrentTransform()}},_translateObject:function(n,t){var r=this._currentTransform,i=r.target,u=n-r.offsetX,f=t-r.offsetY,e=!i.get("lockMovementX")&&i.left!==u,o=!i.get("lockMovementY")&&i.top!==f;return e&&i.set("left",u),o&&i.set("top",f),e||o},_changeSkewTransformOrigin:function(n,t,i){var e="originX",u={0:"center"},r=t.target.skewX,o="left",s="right",h="mt"===t.corner||"ml"===t.corner?1:-1,f=1;n=n>0?1:-1;"y"===i&&(r=t.target.skewY,o="top",s="bottom",e="originY");u[-1]=o;u[1]=s;t.target.flipX&&(f*=-1);t.target.flipY&&(f*=-1);0===r?(t.skewSign=-h*n*f,t[e]=u[-n]):(r=r>0?1:-1,t.skewSign=r,t[e]=u[r*h*f])},_skewObject:function(n,t,i){var r=this._currentTransform,u=r.target,f=!1,s=u.get("lockSkewingX"),h=u.get("lockSkewingY");if(s&&"x"===i||h&&"y"===i)return!1;var e,o,c=u.getCenterPoint(),l=u.toLocalPoint(new fabric.Point(n,t),"center","center")[i],a=u.toLocalPoint(new fabric.Point(r.lastX,r.lastY),"center","center")[i],v=u._getTransformedDimensions();return this._changeSkewTransformOrigin(l-a,r,i),e=u.toLocalPoint(new fabric.Point(n,t),r.originX,r.originY)[i],o=u.translateToOriginPoint(c,r.originX,r.originY),f=this._setObjectSkew(e,r,i,v),r.lastX=n,r.lastY=t,u.setPositionByOrigin(o,r.originX,r.originY),f},_setObjectSkew:function(n,t,i,r){var f,v,h,o,e,s,c,l,a,u=t.target,y=!1,p=t.skewSign;return"x"===i?(o="y",e="Y",s="X",l=0,a=u.skewY):(o="x",e="X",s="Y",l=u.skewX,a=0),h=u._getTransformedDimensions(l,a),c=2*Math.abs(n)-h[i],c<=2?f=0:(f=p*Math.atan(c/u["scale"+s]/(h[o]/u["scale"+e])),f=fabric.util.radiansToDegrees(f)),y=u["skew"+s]!==f,u.set("skew"+s,f),0!==u["skew"+e]&&(v=u._getTransformedDimensions(),f=r[o]/v[o]*u["scale"+e],u.set("scale"+e,f)),y},_scaleObject:function(n,t,i){var r=this._currentTransform,u=r.target,f=u.get("lockScalingX"),e=u.get("lockScalingY"),h=u.get("lockScalingFlip");if(f&&e)return!1;var c=u.translateToOriginPoint(u.getCenterPoint(),r.originX,r.originY),o=u.toLocalPoint(new fabric.Point(n,t),r.originX,r.originY),l=u._getTransformedDimensions(),s=!1;return this._setLocalMouse(o,r),s=this._setObjectScale(o,r,f,e,i,h,l),u.setPositionByOrigin(c,r.originX,r.originY),s},_setObjectScale:function(n,t,i,r,u,f,e){var v,y,h,c,o=t.target,l=!1,a=!1,s=!1;return h=n.x*o.scaleX/e.x,c=n.y*o.scaleY/e.y,v=o.scaleX!==h,y=o.scaleY!==c,f&&h<=0&&h<o.scaleX&&(l=!0),f&&c<=0&&c<o.scaleY&&(a=!0),"equally"!==u||i||r?u?"x"!==u||o.get("lockUniScaling")?"y"!==u||o.get("lockUniScaling")||a||r||o.set("scaleY",c)&&(s=s||y):l||i||o.set("scaleX",h)&&(s=s||v):(l||i||o.set("scaleX",h)&&(s=s||v),a||r||o.set("scaleY",c)&&(s=s||y)):l||a||(s=this._scaleObjectEqually(n,o,t,e)),t.newScaleX=h,t.newScaleY=c,l||a||this._flipObject(t,u),s},_scaleObjectEqually:function(n,t,i,r){var u,f=n.y+n.x,e=r.y*i.original.scaleY/t.scaleY+r.x*i.original.scaleX/t.scaleX;return i.newScaleX=i.original.scaleX*f/e,i.newScaleY=i.original.scaleY*f/e,u=i.newScaleX!==t.scaleX||i.newScaleY!==t.scaleY,t.set("scaleX",i.newScaleX),t.set("scaleY",i.newScaleY),u},_flipObject:function(n,t){n.newScaleX<0&&"y"!==t&&("left"===n.originX?n.originX="right":"right"===n.originX&&(n.originX="left"));n.newScaleY<0&&"x"!==t&&("top"===n.originY?n.originY="bottom":"bottom"===n.originY&&(n.originY="top"))},_setLocalMouse:function(t,i){var r=i.target;"right"===i.originX?t.x*=-1:"center"===i.originX&&(t.x*=2*i.mouseXSign,t.x<0&&(i.mouseXSign=-i.mouseXSign));"bottom"===i.originY?t.y*=-1:"center"===i.originY&&(t.y*=2*i.mouseYSign,t.y<0&&(i.mouseYSign=-i.mouseYSign));n(t.x)>r.padding?t.x<0?t.x+=r.padding:t.x-=r.padding:t.x=0;n(t.y)>r.padding?t.y<0?t.y+=r.padding:t.y-=r.padding:t.y=0},_rotateObject:function(n,t){var i=this._currentTransform;if(i.target.get("lockRotation"))return!1;var f=r(i.ey-i.top,i.ex-i.left),o=r(t-i.top,n-i.left),u=e(o-f+i.theta);return u<0&&(u=360+u),i.target.angle=u%360,!0},setCursor:function(n){this.upperCanvasEl.style.cursor=n},_resetObjectTransform:function(n){n.scaleX=1;n.scaleY=1;n.skewX=0;n.skewY=0;n.setAngle(0)},_drawSelection:function(i){var f=this._groupSelector,s=f.left,h=f.top,e=n(s),o=n(h),r,u;(i.fillStyle=this.selectionColor,i.fillRect(f.ex-(s>0?0:-s),f.ey-(h>0?0:-h),e,o),i.lineWidth=this.selectionLineWidth,i.strokeStyle=this.selectionBorderColor,this.selectionDashArray.length>1)?(r=f.ex+t-(s>0?0:e),u=f.ey+t-(h>0?0:o),i.beginPath(),fabric.util.drawDashedLine(i,r,u,r+e,u,this.selectionDashArray),fabric.util.drawDashedLine(i,r,u+o-1,r+e,u+o-1,this.selectionDashArray),fabric.util.drawDashedLine(i,r,u,r,u+o,this.selectionDashArray),fabric.util.drawDashedLine(i,r+e-1,u,r+e-1,u+o,this.selectionDashArray),i.closePath(),i.stroke()):i.strokeRect(f.ex+t-(s>0?0:e),f.ey+t-(h>0?0:o),e,o)},findTarget:function(n,t){var f;if(!this.skipTargetFind){var i=this.getPointer(n,!0),r=this.getActiveGroup(),u=this.getActiveObject();return r&&!t&&this._checkTarget(i,r)?r:u&&this._checkTarget(i,u)?u:(this.targets=[],f=this._searchPossibleTargets(this._objects,i),this._fireOverOutEvents(f,n),f)}},_fireOverOutEvents:function(n,t){n?this._hoveredTarget!==n&&(this._hoveredTarget&&(this.fire("mouse:out",{target:this._hoveredTarget,e:t}),this._hoveredTarget.fire("mouseout")),this.fire("mouse:over",{target:n,e:t}),n.fire("mouseover"),this._hoveredTarget=n):this._hoveredTarget&&(this.fire("mouse:out",{target:this._hoveredTarget,e:t}),this._hoveredTarget.fire("mouseout"),this._hoveredTarget=null)},_checkTarget:function(n,t){if(t&&t.visible&&t.evented&&this.containsPoint(null,t,n)){if(!this.perPixelTargetFind&&!t.perPixelTargetFind||t.isEditing)return!0;
22var i=this.isTargetTransparent(t,n.x,n.y);if(!i)return!0}},_searchPossibleTargets:function(n,t){for(var i,f,r,u=n.length;u--;)if(this._checkTarget(t,n[u])){i=n[u];"group"===i.type&&i.subTargetCheck&&(f=this._normalizePointer(i,t),r=this._searchPossibleTargets(i._objects,f),r&&this.targets.push(r));break}return i},restorePointerVpt:function(n){return fabric.util.transformPoint(n,fabric.util.invertTransform(this.viewportTransform))},getPointer:function(n,t,i){i||(i=this.upperCanvasEl);var s,f=u(n),r=i.getBoundingClientRect(),e=r.width||0,o=r.height||0;return e&&o||("top"in r&&"bottom"in r&&(o=Math.abs(r.top-r.bottom)),"right"in r&&"left"in r&&(e=Math.abs(r.right-r.left))),this.calcOffset(),f.x=f.x-this._offset.left,f.y=f.y-this._offset.top,t||(f=this.restorePointerVpt(f)),s=0===e||0===o?{width:1,height:1}:{width:i.width/e,height:i.height/o},{x:f.x*s.width,y:f.y*s.height}},_createUpperCanvas:function(){var n=this.lowerCanvasEl.className.replace(/\s*lower-canvas\s*/,"");this.upperCanvasEl=this._createCanvasElement();fabric.util.addClass(this.upperCanvasEl,"upper-canvas "+n);this.wrapperEl.appendChild(this.upperCanvasEl);this._copyCanvasStyle(this.lowerCanvasEl,this.upperCanvasEl);this._applyCanvasStyle(this.upperCanvasEl);this.contextTop=this.upperCanvasEl.getContext("2d")},_createCacheCanvas:function(){this.cacheCanvasEl=this._createCanvasElement();this.cacheCanvasEl.setAttribute("width",this.width);this.cacheCanvasEl.setAttribute("height",this.height);this.contextCache=this.cacheCanvasEl.getContext("2d")},_initWrapperElement:function(){this.wrapperEl=fabric.util.wrapElement(this.lowerCanvasEl,"div",{"class":this.containerClass});fabric.util.setStyle(this.wrapperEl,{width:this.getWidth()+"px",height:this.getHeight()+"px",position:"relative"});fabric.util.makeElementUnselectable(this.wrapperEl)},_applyCanvasStyle:function(n){var t=this.getWidth()||n.width,i=this.getHeight()||n.height;fabric.util.setStyle(n,{position:"absolute",width:t+"px",height:i+"px",left:0,top:0});n.width=t;n.height=i;fabric.util.makeElementUnselectable(n)},_copyCanvasStyle:function(n,t){t.style.cssText=n.style.cssText},getSelectionContext:function(){return this.contextTop}
22,getSelectionElement:function(){return this.upperCanvasEl},_setActiveObject:function(n){this._activeObject&&this._activeObject.set("active",!1);this._activeObject=n;n.set("active",!0)},setActiveObject:function(n,t){return this._setActiveObject(n),this.renderAll(),this.fire("object:selected",{target:n,e:t}),n.fire("selected",{e:t}),this},getActiveObject:function(){return this._activeObject},_onObjectRemoved:function(n){this.getActiveObject()===n&&(this.fire("before:selection:cleared",{target:n}),this._discardActiveObject(),this.fire("selection:cleared",{target:n}),n.fire("deselected"));this.callSuper("_onObjectRemoved",n)},_discardActiveObject:function(){this._activeObject&&this._activeObject.set("active",!1);this._activeObject=null},discardActiveObject:function(n){var t=this._activeObject;return this.fire("before:selection:cleared",{target:t,e:n}),this._discardActiveObject(),this.fire("selection:cleared",{e:n}),t&&t.fire("deselected",{e:n}),this},_setActiveGroup:function(n){this._activeGroup=n;n&&n.set("active",!0)},setActiveGroup:function(n,t){return this._setActiveGroup(n),n&&(this.fire("object:selected",{target:n,e:t}),n.fire("selected",{e:t})),this},getActiveGroup:function(){return this._activeGroup},_discardActiveGroup:function(){var n=this.getActiveGroup();n&&n.destroy();this.setActiveGroup(null)},discardActiveGroup:function(n){var t=this.getActiveGroup();return this.fire("before:selection:cleared",{e:n,target:t}),this._discardActiveGroup(),this.fire("selection:cleared",{e:n}),this},deactivateAll:function(){for(var t=this.getObjects(),n=0,i=t.length;n<i;n++)t[n].set("active",!1);return this._discardActiveGroup(),this._discardActiveObject(),this},deactivateAllWithDispatch:function(n){var i=this.getActiveGroup(),t=this.getActiveObject();return(t||i)&&this.fire("before:selection:cleared",{target:t||i,e:n}),this.deactivateAll(),(t||i)&&(this.fire("selection:cleared",{e:n,target:t}),t&&t.fire("deselected")),this},dispose:function(){this.callSuper("dispose");var n=this.wrapperEl;return this.removeListeners(),n.removeChild(this.upperCanvasEl),n.removeChild(this.lowerCanvasEl),delete this.upperCanvasEl,n.parentNode&&n.parentNode.replaceChild(this.lowerCanvasEl,this.wrapperEl),delete this.wrapperEl,this},clear:function(){return this.discardActiveGroup(),this.discardActiveObject(),this.clearContext(this.contextTop),this.callSuper("clear")},drawControls:function(n){var t=this.getActiveGroup();
22t?t._renderControls(n):this._drawObjectsControls(n)},_drawObjectsControls:function(n){for(var t=0,i=this._objects.length;t<i;++t)this._objects[t]&&this._objects[t].active&&this._objects[t]._renderControls(n)}});for(i in fabric.StaticCanvas)"prototype"!==i&&(fabric.Canvas[i]=fabric.StaticCanvas[i]);fabric.isTouchSupported&&(fabric.Canvas.prototype._setCursorFromEvent=function(){});fabric.Element=fabric.Canvas}(),function(){var i={mt:0,tr:1,mr:2,br:3,mb:4,bl:5,ml:6,tl:7},n=fabric.util.addListener,t=fabric.util.removeListener;fabric.util.object.extend(fabric.Canvas.prototype,{cursorMap:["n-resize","ne-resize","e-resize","se-resize","s-resize","sw-resize","w-resize","nw-resize"],_initEventListeners:function(){this._bindEvents();n(fabric.window,"resize",this._onResize);n(this.upperCanvasEl,"mousedown",this._onMouseDown);n(this.upperCanvasEl,"mousemove",this._onMouseMove);n(this.upperCanvasEl,"mouseout",this._onMouseOut);n(this.upperCanvasEl,"wheel",this._onMouseWheel);n(this.upperCanvasEl,"touchstart",this._onMouseDown);n(this.upperCanvasEl,"touchmove",this._onMouseMove);"undefined"!=typeof eventjs&&"add"in eventjs&&(eventjs.add(this.upperCanvasEl,"gesture",this._onGesture),eventjs.add(this.upperCanvasEl,"drag",this._onDrag),eventjs.add(this.upperCanvasEl,"orientation",this._onOrientationChange),eventjs.add(this.upperCanvasEl,"shake",this._onShake),eventjs.add(this.upperCanvasEl,"longpress",this._onLongPress))},_bindEvents:function(){this._onMouseDown=this._onMouseDown.bind(this);this._onMouseMove=this._onMouseMove.bind(this);this._onMouseUp=this._onMouseUp.bind(this);this._onResize=this._onResize.bind(this);this._onGesture=this._onGesture.bind(this);this._onDrag=this._onDrag.bind(this);this._onShake=this._onShake.bind(this);this._onLongPress=this._onLongPress.bind(this);this._onOrientationChange=this._onOrientationChange.bind(this);this._onMouseWheel=this._onMouseWheel.bind(this);this._onMouseOut=this._onMouseOut.bind(this)},removeListeners:function(){t(fabric.window,"resize",this._onResize);t(this.upperCanvasEl,"mousedown",this._onMouseDown);t(this.upperCanvasEl,"mousemove",this._onMouseMove);t(this.upperCanvasEl,"mouseout",this._onMouseOut);t(this.upperCanvasEl,"wheel",this._onMouseWheel);t(this.upperCanvasEl,"touchstart",this._onMouseDown);t(this.upperCanvasEl,"touchmove",this._onMouseMove);"undefined"!=typeof eventjs&&"remove"in eventjs&&(eventjs.remove(this.upperCanvasEl,"gesture",this._onGesture),eventjs.remove(this.upperCanvasEl,"drag",this._onDrag),eventjs.remove(this.upperCanvasEl,"orientation",this._onOrientationChange),eventjs.remove(this.upperCanvasEl,"shake",this._onShake),eventjs.remove(this.upperCanvasEl,"longpress",this._onLongPress))},_onGesture:function(n,t){this.__onTransformGesture&&this.__onTransformGesture(n,t)},_onDrag:function(n,t){this.__onDrag&&this.__onDrag(n,t)},_onMouseWheel:function(n){this.__onMouseWheel(n)},_onMouseOut:function(n){var t=this._hoveredTarget;this.fire("mouse:out",{target:t,e:n});this._hoveredTarget=null;t&&t.fire("mouseout",{e:n})},_onOrientationChange:function(n,t){this.__onOrientationChange&&this.__onOrientationChange(n,t)},_onShake:function(n,t){this.__onShake&&this.__onShake(n,t)},_onLongPress:function(n,t){this.__onLongPress&&this.__onLongPress(n,t)},_onMouseDown:function(i){this.__onMouseDown(i);n(fabric.document,"touchend",this._onMouseUp);n(fabric.document,"touchmove",this._onMouseMove);t(this.upperCanvasEl,"mousemove",this._onMouseMove);t(this.upperCanvasEl,"touchmove",this._onMouseMove);"touchstart"===i.type?t(this.upperCanvasEl,"mousedown",this._onMouseDown):(n(fabric.document,"mouseup",this._onMouseUp),n(fabric.document,"mousemove",this._onMouseMove))},_onMouseUp:function(i){if(this.__onMouseUp(i),t(fabric.document,"mouseup",this._onMouseUp),t(fabric.document,"touchend",this._onMouseUp),t(fabric.document,"mousemove",this._onMouseMove),t(fabric.document,"touchmove",this._onMouseMove),n(this.upperCanvasEl,"mousemove",this._onMouseMove),n(this.upperCanvasEl,"touchmove",this._onMouseMove),"touchend"===i.type){var r=this;setTimeout(function(){n(r.upperCanvasEl,"mousedown",r._onMouseDown)},400)}},_onMouseMove:function(n){!this.allowTouchScrolling&&n.preventDefault&&n.preventDefault();this.__onMouseMove(n)},_onResize:function(){this.calcOffset()},_shouldRender:function(n,t){var i=this.getActiveGroup()||this.getActiveObject();return!!(n&&(n.isMoving||n!==i)||!n&&i||!n&&!i&&!this._groupSelector||t&&this._previousPointer&&this.selection&&(t.x!==this._previousPointer.x||t.y!==this._previousPointer.
22y))},__onMouseUp:function(n){var t,u=!0,i=this._currentTransform,r=this._groupSelector,e=!r||0===r.left&&0===r.top,f;if(this.isDrawingMode&&this._isCurrentlyDrawing)return void this._onMouseUpInDrawingMode(n);i&&(this._finalizeCurrentTransform(),u=!i.actionPerformed);t=u?this.findTarget(n,!0):i.target;f=this._shouldRender(t,this.getPointer(n));t||!e?this._maybeGroupObjects(n):(this._groupSelector=null,this._currentTransform=null);t&&(t.isMoving=!1);this._handleCursorAndEvent(n,t,"up");t&&(t.__corner=0);f&&this.renderAll()},_handleCursorAndEvent:function(n,t,i){this._setCursorFromEvent(n,t);this._handleEvent(n,i,t?t:null)},_handleEvent:function(n,t,i){var u=void 0===typeof i?this.findTarget(n):i,f=this.targets||[],e={e:n,target:u,subTargets:f},r;for(this.fire("mouse:"+t,e),u&&u.fire("mouse"+t,e),r=0;r<f.length;r++)f[r].fire("mouse"+t,e)},_finalizeCurrentTransform:function(){var t=this._currentTransform,n=t.target;n._scaling&&(n._scaling=!1);n.setCoords();this._restoreOriginXY(n);(t.actionPerformed||this.stateful&&n.hasStateChanged())&&(this.fire("object:modified",{target:n}),n.fire("modified"))},_restoreOriginXY:function(n){if(this._previousOriginX&&this._previousOriginY){var t=n.translateToOriginPoint(n.getCenterPoint(),this._previousOriginX,this._previousOriginY);n.originX=this._previousOriginX;n.originY=this._previousOriginY;n.left=t.x;n.top=t.y;this._previousOriginX=null;this._previousOriginY=null}},_onMouseDownInDrawingMode:function(n){this._isCurrentlyDrawing=!0;this.discardActiveObject(n).renderAll();this.clipTo&&fabric.util.clipContext(this,this.contextTop);var t=this.getPointer(n);this.freeDrawingBrush.onMouseDown(t);this._handleEvent(n,"down")},_onMouseMoveInDrawingMode:function(n){if(this._isCurrentlyDrawing){var t=this.getPointer(n);this.freeDrawingBrush.onMouseMove(t)}this.setCursor(this.freeDrawingCursor);this._handleEvent(n,"move")},_onMouseUpInDrawingMode:function(n){this._isCurrentlyDrawing=!1;this.clipTo&&this.contextTop.restore();this.freeDrawingBrush.onMouseUp();this._handleEvent(n,"up")},__onMouseDown:function(n){var f="which"in n?1===n.which:0===n.button,t,i,u,r;if(f||fabric.isTouchSupported){if(this.isDrawingMode)return void this._onMouseDownInDrawingMode(n);this._currentTransform||(t=this.findTarget(n),i=this.getPointer(n,!0),this._previousPointer=i,u=this._shouldRender(t,i),r=this._shouldGroup(n,t),this._shouldClearSelection(n,t)?this._clearSelection(n,t,i):r&&(this._handleGrouping(n,t),t=this.getActiveGroup()),t&&(!t.selectable||!t.__corner&&r||(this._beforeTransform(n,t),this._setupCurrentTransform(n,t)),t!==this.getActiveGroup()&&t!==this.getActiveObject()&&(this.deactivateAll(),t.selectable&&this.setActiveObject(t,n))),this._handleEvent(n,"down",t?t:null),u&&this.renderAll())}},_beforeTransform:function(n,t){this.stateful&&t.saveState();t._findTargetCorner(this.getPointer(n))&&this.onBeforeScaleRotate(t)},_clearSelection:function(n,t,i){this.deactivateAllWithDispatch(n);t&&t.selectable?this.setActiveObject(t,n):this.selection&&(this._groupSelector={ex:i.x,ey:i.y,top:0,left:0})},_setOriginToCenter:function(n){this._previousOriginX=this._currentTransform.target.originX;this._previousOriginY=this._currentTransform.target.originY;var t=n.getCenterPoint();n.originX="center";n.originY="center";n.left=t.x;n.top=t.y;this._currentTransform.left=n.left;this._currentTransform.top=n.top},_setCenterToOrigin:function(n){var t=n.translateToOriginPoint(n.getCenterPoint(),this._previousOriginX,this._previousOriginY);n.originX=this._previousOriginX;n.originY=this._previousOriginY;n.left=t.x;n.top=t.y;this._previousOriginX=null;this._previousOriginY=null},__onMouseMove:function(n){var i,r,t;if(this.isDrawingMode)return void this._onMouseMoveInDrawingMode(n);"undefined"!=typeof n.touches&&n.touches.length>1||(t=this._groupSelector,t?(r=this.getPointer(n,!0),t.left=r.x-t.ex,t.top=r.y-t.ey,this.renderTop()):this._currentTransform?this._transformObject(n):(i=this.findTarget(n),this._setCursorFromEvent(n,i)),this._handleEvent(n,"move",i?i:null))},__onMouseWheel:function(n){this.fire("mouse:wheel",{e:n})},_transformObject:function(n){var i=this.getPointer(n),t=this._currentTransform;t.reset=!1;t.target.isMoving=!0;this._beforeScaleTransform(n,t);this._performTransformAction(n,t,i);t.actionPerformed&&this.renderAll()},_performTransformAction:function(n,t,i){var f=i.x,e=i.y,u=t.target,o=t.action,r=!1;"rotate"===o?(r=this._rotateObject(f,e))&&this._fire("rotating",u,n):"scale"===o?(r=this._onScale(n,t,f,e))&&this._fire("scaling",u,n):"scaleX"===o?(r=this._scaleObject(f,e,"x"))&&this._fire("scaling",u,n):"scaleY"===o?(r=this._scaleObject(f,e,"y"))&&this._fire("scaling",u,n):"skewX"===o?(r=this._skewObject(f,e,"x"))&&this._fire("skewing",u,n):"skewY"===o?(r=this._skewObject(f,e,"y"))&&this._fire("skewing",u,n):(r=this._translateOb
22ject(f,e),r&&(this._fire("moving",u,n),this.setCursor(u.moveCursor||this.moveCursor)));t.actionPerformed=r},_fire:function(n,t,i){this.fire("object:"+n,{target:t,e:i});t.fire(n,{e:i})},_beforeScaleTransform:function(n,t){if("scale"===t.action||"scaleX"===t.action||"scaleY"===t.action){var i=this._shouldCenterTransform(t.target);(i&&("center"!==t.originX||"center"!==t.originY)||!i&&"center"===t.originX&&"center"===t.originY)&&(this._resetCurrentTransform(),t.reset=!0)}},_onScale:function(n,t,i,r){return!n[this.uniScaleKey]&&!this.uniScaleTransform||t.target.get("lockUniScaling")?(t.reset||"scale"!==t.currentAction||this._resetCurrentTransform(),t.currentAction="scaleEqually",this._scaleObject(i,r,"equally")):(t.currentAction="scale",this._scaleObject(i,r))},_setCursorFromEvent:function(n,t){var i,r,u;return t?(i=t.hoverCursor||this.hoverCursor,t.selectable?(r=this.getActiveGroup(),u=t._findTargetCorner&&(!r||!r.contains(t))&&t._findTargetCorner(this.getPointer(n,!0)),u?this._setCornerCursor(u,t,n):this.setCursor(i)):this.setCursor(i),!0):(this.setCursor(this.defaultCursor),!1)},_setCornerCursor:function(n,t,r){if(n in i)this.setCursor(this._getRotatedCornerCursor(n,t,r));else{if("mtr"!==n||!t.hasRotatingPoint)return this.setCursor(this.defaultCursor),!1;this.setCursor(this.rotationCursor)}},_getRotatedCornerCursor:function(n,t,r){var u=Math.round(t.getAngle()%360/45);return u<0&&(u+=8),u+=i[n],r[this.altActionKey]&&i[n]%2==0&&(u+=2),u%=8,this.cursorMap[u]}})}(),function(){var n=Math.min,t=Math.max;fabric.util.object.extend(fabric.Canvas.prototype,{_shouldGroup:function(n,t){var i=this.getActiveObject();return n[this.selectionKey]&&t&&t.selectable&&(this.getActiveGroup()||i&&i!==t)&&this.selection},_handleGrouping:function(n,t){var i=this.getActiveGroup();(t!==i||(t=this.findTarget(n,!0)))&&(i?this._updateActiveGroup(t,n):this._createActiveGroup(t,n),this._activeGroup&&this._activeGroup.saveCoords())},_updateActiveGroup:function(n,t){var i=this.getActiveGroup();if(i.contains(n)){if(i.removeWithUpdate(n),n.set("active",!1),1===i.size())return this.discardActiveGroup(t),void this.setActiveObject(i.item(0))}else i.addWithUpdate(n);this.fire("selection:created",{target:i,e:t});i.set("active",!0)},_createActiveGroup:function(n,t){if(this._activeObject&&n!==this._activeObject){var i=this._createGroup(n);i.addWithUpdate();this.setActiveGroup(i);this._activeObject=null;this.fire("selection:created",{target:i,e:t})}n.set("active",!0)},_createGroup:function(n){var t=this.getObjects(),i=t.indexOf(this._activeObject)<t.indexOf(n),r=i?[this._activeObject,n]:[n,this._activeObject];return this._activeObject.isEditing&&this._activeObject.exitEditing(),new fabric.Group(r,{canvas:this})},_groupSelectedObjects:function(n){var t=this._collectObjects();1===t.length?this.setActiveObject(t[0],n):t.length>1&&(t=new fabric.Group(t.reverse(),{canvas:this}),t.addWithUpdate(),this.setActiveGroup(t,n),t.saveCoords(),this.fire("selection:created",{target:t}),this.renderAll())},_collectObjects:function(){for(var i,h=[],r=this._groupSelector.ex,u=this._groupSelector.ey,f=r+this._groupSelector.left,e=u+this._groupSelector.top,o=new fabric.Point(n(r,f),n(u,e)),s=new fabric.Point(t(r,f),t(u,e)),l=r===f&&u===e,c=this._objects.length;c--&&(i=this._objects[c],!(i&&i.selectable&&i.visible&&(i.intersectsWithRect(o,s)||i.isContainedWithinRect(o,s)||i.containsPoint(o)||i.containsPoint(s))&&(i.set("active",!0),h.push(i),l))););return h},_maybeGroupObjects:function(n){this.selection&&this._groupSelector&&this._groupSelectedObjects(n);var t=this.getActiveGroup();t&&(t.setObjectsCoords().setCoords(),t.isMoving=!1,this.setCursor(this.defaultCursor));this._groupSelector=null;this._currentTransform=null}})}();fabric.util.object.extend(fabric.StaticCanvas.prototype,{toDataURL:function(n){n||(n={});var i=n.format||"png",r=n.quality||1,t=n.multiplier||1,u={left:n.left,top:n.top,width:n.width,height:n.height};return this._isRetinaScaling()&&(t*=fabric.devicePixelRatio),1!==t?this.__toDataURLWithMultiplier(i,r,u,t):this.__toDataURL(i,r,u)},__toDataURL:function(n,t,i){var u,r,f;return this.renderAll(),u=this.contextContainer.canvas,r=this.__getCroppedCanvas(u,i),"jpg"===n&&(n="jpeg"),f=fabric.StaticCanvas.supports("toDataURLWithQuality")?(r||u).toDataURL("image/"+n,t):(r||u).toDataURL("image/"+n),r&&(r=null),f},__getCroppedCanvas:function(n,t){var i,r,u="left"in t||"top"in t||"width"in t||"height"in t;return u&&(i=fabric.util.createCanvasElement(),r=i.getContext("2d"),i.width=t.width||this.width,i.height=t.height||this.height,r.drawImage(n,-t.left||0,-t.top||0)),i},__toDataURLWithMultiplier:function(n,t,i,r){var e=this.getWidth(),o=this.getHeight(),s=e*r,h=o*r,f=this.getActiveObject(),u=this.getActiveGroup(),c=this.getZoom(),a=c*r/fabric.devicePixelRatio,l;return r>1&&this.setDimensions({width:s,height:h}),this.setZoom(a),i.left&&(i.left*=r),i.top&&(i.top*=r),i.width?i.width*=r:r<1&&(i.width=s),i.height?i.height*=r:r<1&&(i.height=h),u?this._tempRemoveBordersControl
22sFromGroup(u):f&&this.deactivateAll&&this.deactivateAll(),l=this.__toDataURL(n,t,i),u?this._restoreBordersControlsOnGroup(u):f&&this.setActiveObject&&this.setActiveObject(f),this.setZoom(c),this.setDimensions({width:e,height:o}),l},toDataURLWithMultiplier:function(n,t,i){return this.toDataURL({format:n,multiplier:t,quality:i})},_tempRemoveBordersControlsFromGroup:function(n){n.origHasControls=n.hasControls;n.origBorderColor=n.borderColor;n.hasControls=!0;n.borderColor="rgba(0,0,0,0)";n.forEachObject(function(n){n.origBorderColor=n.borderColor;n.borderColor="rgba(0,0,0,0)"})},_restoreBordersControlsOnGroup:function(n){n.hideControls=n.origHideControls;n.borderColor=n.origBorderColor;n.forEachObject(function(n){n.borderColor=n.origBorderColor;delete n.origBorderColor})}});fabric.util.object.extend(fabric.StaticCanvas.prototype,{loadFromDatalessJSON:function(n,t,i){return this.loadFromJSON(n,t,i)},loadFromJSON:function(n,t,i){var r,u;if(n)return r="string"==typeof n?JSON.parse(n):fabric.util.object.clone(n),this.clear(),u=this,this._enlivenObjects(r.objects,function(){u._setBgOverlay(r,function(){delete r.objects;delete r.backgroundImage;delete r.overlayImage;delete r.background;delete r.overlay;for(var n in r)u[n]=r[n];t&&t()})},i),this},_setBgOverlay:function(n,t){var u=this,i={backgroundColor:!1,overlayColor:!1,backgroundImage:!1,overlayImage:!1},r;if(!(n.backgroundImage||n.overlayImage||n.background||n.overlay))return void(t&&t());r=function(){i.backgroundImage&&i.overlayImage&&i.backgroundColor&&i.overlayColor&&(u.renderAll(),t&&t())};this.__setBgOverlay("backgroundImage",n.backgroundImage,i,r);this.__setBgOverlay("overlayImage",n.overlayImage,i,r);this.__setBgOverlay("backgroundColor",n.background,i,r);this.__setBgOverlay("overlayColor",n.overlay,i,r);r()},__setBgOverlay:function(n,t,i,r){var u=this;return t?void("backgroundImage"===n||"overlayImage"===n?fabric.Image.fromObject(t,function(t){u[n]=t;i[n]=!0;r&&r()}):this["set"+fabric.util.string.capitalize(n,!0)](t,function(){i[n]=!0;r&&r()})):void(i[n]=!0)},_enlivenObjects:function(n,t,i){var r=this,u;if(!n||0===n.length)return void(t&&t());u=this.renderOnAddRemove;this.renderOnAddRemove=!1;fabric.util.enlivenObjects(n,function(n){n.forEach(function(n,t){r.insertAt(n,t)});r.renderOnAddRemove=u;t&&t()},null,i)},_toDataURL:function(n,t){this.clone(function(i){t(i.toDataURL(n))})},_toDataURLWithMultiplier:function(n,t,i){this.clone(function(r){i(r.toDataURLWithMultiplier(n,t))})},clone:function(n,t){var i=JSON.stringify(this.toJSON(t));this.cloneWithoutData(function(t){t.loadFromJSON(i,function(){n&&n(t)})})},cloneWithoutData:function(n){var i=fabric.document.createElement("canvas"),t;i.width=this.getWidth();i.height=this.getHeight();t=new fabric.Canvas(i);t.clipTo=this.clipTo;this.backgroundImage?(t.setBackgroundImage(this.backgroundImage.src,function(){t.renderAll();n&&n(t)}),t.backgroundImageOpacity=this.backgroundImageOpacity,t.backgroundImageStretch=this.backgroundImageStretch):n&&n(t)}}),function(n){"use strict";var t=n.fabric||(n.fabric={}),u=t.util.object.extend,i=t.util.toFixed,f=t.util.string.capitalize,r=t.util.degreesToRadians,e=t.StaticCanvas.supports("setLineDash");t.Object||(t.Object=t.util.createClass({type:"object",originX:"left",originY:"top",top:0,left:0,width:0,height:0,scaleX:1,scaleY:1,flipX:!1,flipY:!1,opacity:1,angle:0,skewX:0,skewY:0,cornerSize:13,transparentCorners:!0,hoverCursor:null,moveCursor:null,padding:0,borderColor:"rgba(102,153,255,0.75)",borderDashArray:null,cornerColor:"rgba(102,153,255,0.5)",cornerStrokeColor:null,cornerStyle:"rect",cornerDashArray:null,centeredScaling:!1,centeredRotation:!0,fill:"rgb(0,0,0)",fillRule:"nonzero",globalCompositeOperation:"source-over",backgroundColor:"",selectionBackgroundColor:"",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeLineJoin:"miter",strokeMiterLimit:10,shadow:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,transformMatrix:null,minScaleLimit:.01,selectable:!0,evented:!0,visible:!0,hasControls:!0,hasBorders:!0,hasRotatingPoint:!0,rotatingPointOffset:40,perPixelTargetFind:!1,includeDefaultValues:!0,clipTo:null,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockUniScaling:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,excludeFromExport:!1,stateProperties:"top left width height scaleX scaleY flipX flipY originX originY transformMatrix stroke strokeWidth strokeDashArray strokeLineCap strokeLineJoin strokeMiterLimit angle opacity fill fillRule globalCompositeOperation shadow clipTo visible backgroundColor alignX alignY meetOrSlice skewX skewY".split(" "),initialize:function(n){n&&this.setOptions(n)},_initGradient:function(n){!n.fill||!n.fill.colorStops||n.fill instanceof t.Gradient||this.set("fill",new t.Gradient(n.fill));!n.stroke||!n.stroke.colorStops||n.stroke instanceof t.Gradient||this.set("stroke",new t.Gradient(n.stroke))},_initPattern:function(n){!n.fill||!n.fill.source||n.fill instanceof t.Pattern||this.set("fill",new t.Pattern(n.fill));!n.stroke||!n.stroke.source||n.stroke instanceof t.Pattern||this.set("stroke",new t.Pattern(n.stroke))},_initClipping:function(n){if(n.clipTo&&"string"==typeof n.clipTo){var i=t.util.getFunctionBody(n.clipTo);"undefined"!=typeof i&&(this.clipTo=new Function("ctx",i))}},setOptions:function(n){for(var t in n)this.set(t,n[t]);this._initGradient(n);this._initPattern(n);this._initClipping(n)},transform:function(n,t){this.group&&!this.group._transformDone&&this.group===this.canvas._activeGroup&&this.group.transform(n);var i=t?this._getLeftTopCoords():this.getCenterPoint();n.translate(i.x,i.y);n.rotate(r(this.angle));n.scale(this.scaleX*(this.flipX?-1:1),this.scaleY*(this.flipY?-1:1));n.transform(1,0,Math.tan(r(this.skewX)),1,0,0);n.transform(1,Math.tan(r(this.skewY)),0,1,0,0)},toObject:function(n){var r=t.Object.NUM_FRACTION_DIGITS,u={type:this.t
22ype,originX:this.originX,originY:this.originY,left:i(this.left,r),top:i(this.top,r),width:i(this.width,r),height:i(this.height,r),fill:this.fill&&this.fill.toObject?this.fill.toObject():this.fill,stroke:this.stroke&&this.stroke.toObject?this.stroke.toObject():this.stroke,strokeWidth:i(this.strokeWidth,r),strokeDashArray:this.strokeDashArray?this.strokeDashArray.concat():this.strokeDashArray,strokeLineCap:this.strokeLineCap,strokeLineJoin:this.strokeLineJoin,strokeMiterLimit:i(this.strokeMiterLimit,r),scaleX:i(this.scaleX,r),scaleY:i(this.scaleY,r),angle:i(this.getAngle(),r),flipX:this.flipX,flipY:this.flipY,opacity:i(this.opacity,r),shadow:this.shadow&&this.shadow.toObject?this.shadow.toObject():this.shadow,visible:this.visible,clipTo:this.clipTo&&String(this.clipTo),backgroundColor:this.backgroundColor,fillRule:this.fillRule,globalCompositeOperation:this.globalCompositeOperation,transformMatrix:this.transformMatrix?this.transformMatrix.concat():this.transformMatrix,skewX:i(this.skewX,r),skewY:i(this.skewY,r)};return this.includeDefaultValues||(u=this._removeDefaultValues(u)),t.util.populateWithProperties(this,u,n),u},toDatalessObject:function(n){return this.toObject(n)},_removeDefaultValues:function(n){var i=t.util.getKlass(n.type).prototype,r=i.stateProperties;return r.forEach(function(t){n[t]===i[t]&&delete n[t];var r="[object Array]"===Object.prototype.toString.call(n[t])&&"[object Array]"===Object.prototype.toString.call(i[t]);r&&0===n[t].length&&0===i[t].length&&delete n[t]}),n},toString:function(){return"#<fabric."+f(this.type)+">"},get:function(n){return this[n]},getObjectScaling:function(){var t=this.scaleX,i=this.scaleY,n;return this.group&&(n=this.group.getObjectScaling(),t*=n.scaleX,i*=n.scaleY),{scaleX:t,scaleY:i}},_setObject:function(n){for(var t in n)this._set(t,n[t])},set:function(n,t){return"object"==typeof n?this._setObject(n):"function"==typeof t&&"clipTo"!==n?this._set(n,t(this.get(n))):this._set(n,t),this},_set:function(n,i){var r="scaleX"===n||"scaleY"===n;return r&&(i=this._constrainScale(i)),"scaleX"===n&&i<0?(this.flipX=!this.flipX,i*=-1):"scaleY"===n&&i<0?(this.flipY=!this.flipY,i*=-1):"shadow"!==n||!i||i instanceof t.Shadow||(i=new t.Shadow(i)),this[n]=i,"width"!==n&&"height"!==n||(this.minScaleLimit=Math.min(.1,1/Math.max(this.width,this.height))),this},setOnGroup:function(){},toggle:function(n){var t=this.get(n);return"boolean"==typeof t&&this.set(n,!t),this},setSourcePath:function(n){return this.sourcePath=n,this},getViewportTransform:function(){return this.canvas&&this.canvas.viewportTransform?this.canvas.viewportTransform:[1,0,0,1,0,0]},render:function(n,i){(0!==this.width||0!==this.height)&&this.visible&&(n.save(),this._setupCompositeOperation(n),this.drawSelectionBackground(n),i||this.transform(n),this._setStrokeStyles(n),this._setFillStyles(n),this.transformMatrix&&n.transform.apply(n,this.transformMatrix),this._setOpacity(n),this._setShadow(n),this.clipTo&&t.util.clipContext(this,n),this._render(n,i),this.clipTo&&n.restore(),n.restore())},_setOpacity:function(n){this.group&&this.group._setOpacity(n);n.globalAlpha*=this.opacity},_setStrokeStyles:function(n){this.stroke&&(n.lineWidth=this.strokeWidth,n.lineCap=this.strokeLineCap,n.lineJoin=this.strokeLineJoin,n.miterLimit=this.strokeMiterLimit,n.strokeStyle=this.stroke.toLive?this.stroke.toLive(n,this):this.stroke)},_setFillStyles:function(n){this.fill&&(n.fillStyle=this.fill.toLive?this.fill.toLive(n,this):this.fill)},_setLineDash:function(n,t,i){t&&(1&t.length&&t.push.apply(t,t),e?n.setLineDash(t):i&&i(n))},_renderControls:function(n,i){if(!(!this.active||i||this.group&&this.group!==this.canvas.getActiveGroup())){var u,e=this.getViewportTransform(),f=this.calcTransformMatrix();f=t.util.multiplyTransformMatrices(e,f);u=t.util.qrDecompose(f);n.save();n.translate(u.translateX,u.translateY);n.lineWidth=1*this.borderScaleFactor;n.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1;this.group&&this.group===this.canvas.getActiveGroup()?(n.rotate(r(u.angle)),this.drawBordersInGroup(n,u)):(n.rotate(r(this.angle)),this.drawBorders(n));this.drawControls(n);
22n.restore()}},_setShadow:function(n){if(this.shadow){var r=this.canvas&&this.canvas.viewportTransform[0]||1,u=this.canvas&&this.canvas.viewportTransform[3]||1,i=this.getObjectScaling();this.canvas&&this.canvas._isRetinaScaling()&&(r*=t.devicePixelRatio,u*=t.devicePixelRatio);n.shadowColor=this.shadow.color;n.shadowBlur=this.shadow.blur*(r+u)*(i.scaleX+i.scaleY)/4;n.shadowOffsetX=this.shadow.offsetX*r*i.scaleX;n.shadowOffsetY=this.shadow.offsetY*u*i.scaleY}},_removeShadow:function(n){this.shadow&&(n.shadowColor="",n.shadowBlur=n.shadowOffsetX=n.shadowOffsetY=0)},_renderFill:function(n){if(this.fill){if(n.save(),this.fill.gradientTransform){var t=this.fill.gradientTransform;n.transform.apply(n,t)}this.fill.toLive&&n.translate(-this.width/2+this.fill.offsetX||0,-this.height/2+this.fill.offsetY||0);"evenodd"===this.fillRule?n.fill("evenodd"):n.fill();n.restore()}},_renderStroke:function(n){if(this.stroke&&0!==this.strokeWidth){if(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(n),n.save(),this._setLineDash(n,this.strokeDashArray,this._renderDashedStroke),this.stroke.gradientTransform){var t=this.stroke.gradientTransform;n.transform.apply(n,t)}this.stroke.toLive&&n.translate(-this.width/2+this.stroke.offsetX||0,-this.height/2+this.stroke.offsetY||0);n.stroke();n.restore()}},clone:function(n,i){return this.constructor.fromObject?this.constructor.fromObject(this.toObject(i),n):new t.Object(this.toObject(i))},cloneAsImage:function(n,i){var r=this.toDataURL(i);return t.util.loadImage(r,function(i){n&&n(new t.Image(i))}),this},toDataURL:function(n){var r,u,i,f,e,o;return n||(n={}),r=t.util.createCanvasElement(),u=this.getBoundingRect(),r.width=u.width,r.height=u.height,t.util.wrapElement(r,"div"),i=new t.StaticCanvas(r,{enableRetinaScaling:n.enableRetinaScaling}),"jpg"===n.format&&(n.format="jpeg"),"jpeg"===n.format&&(i.backgroundColor="#fff"),f={active:this.get("active"),left:this.getLeft(),top:this.getTop()},this.set("active",!1),this.setPositionByOrigin(new t.Point(i.getWidth()/2,i.getHeight()/2),"center","center"),e=this.canvas,i.add(this),o=i.toDataURL(n),this.set(f).setCoords(),this.canvas=e,i.dispose(),i=null,o},isType:function(n){return this.type===n},complexity:function(){return 0},toJSON:function(n){return this.toObject(n)},setGradient:function(n,i){var r,u,f;i||(i={});r={colorStops:[]};r.type=i.type||(i.r1||i.r2?"radial":"linear");r.coords={x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2};(i.r1||i.r2)&&(r.coords.r1=i.r1,r.coords.r2=i.r2);i.gradientTransform&&(r.gradientTransform=i.gradientTransform);for(u in i.colorStops)f=new t.Color(i.colorStops[u]),r.colorStops.push({offset:u,color:f.toRgb(),opacity:f.getAlpha()});return this.set(n,t.Gradient.forObject(this,r))},setPatternFill:function(n){return this.set("fill",new t.Pattern(n))},setShadow:function(n){return this.set("shadow",n?new t.Shadow(n):null)},setColor:function(n){return this.set("fill",n),this},setAngle:function(n){var t=("center"!==this.originX||"center"!==this.originY)&&this.centeredRotation;return t&&this._setOriginToCenter(),this.set("angle",n),t&&this._resetOrigin(),this},centerH:function(){return this.canvas&&this.canvas.centerObjectH(this),this},viewportCenterH:function(){return this.canvas&&this.canvas.viewportCenterObjectH(this),this},centerV:function(){return this.canvas&&this.canvas.centerObjectV(this),this},viewportCenterV:function(){return this.canvas&&this.canvas.viewportCenterObjectV(this),this},center:function(){return this.canvas&&this.canvas.centerObject(this),this},viewportCenter:function(){return this.canvas&&this.canvas.viewportCenterObject(this),this},remove:function(){return this.canvas&&this.canvas.remove(this),this},getLocalPointer:function(n,i){i=i||this.canvas.getPointer(n);var r=new t.Point(i.x,i.y),u=this._getLeftTopCoords();return this.angle&&(r=t.util.rotatePoint(r,u,t.util.degreesToRadians(-this.angle))),{x:r.x-u.x,y:r.y-u.y}},_setupCompositeOperation:function(n){this.globalCompositeOperation&&(n.globalCompositeOperation=this.globalCompositeOperation)}}),t.util.createAccessors(t.Object),t.Object.prototype.rotate=t.Object.prototype.setAngle,u(t.Object.prototype,t.Observable),t.Object.NUM_FRACTION_DIGITS=2,t.Object.__uid=0)}
22("undefined"!=typeof exports?exports:this),function(){var n=fabric.util.degreesToRadians,t={left:-.5,center:0,right:.5},i={top:-.5,center:0,bottom:.5};fabric.util.object.extend(fabric.Object.prototype,{translateToGivenOrigin:function(n,r,u,f,e){var o,s,h,c=n.x,l=n.y;return"string"==typeof r?r=t[r]:r-=.5,"string"==typeof f?f=t[f]:f-=.5,o=f-r,"string"==typeof u?u=i[u]:u-=.5,"string"==typeof e?e=i[e]:e-=.5,s=e-u,(o||s)&&(h=this._getTransformedDimensions(),c=n.x+o*h.x,l=n.y+s*h.y),new fabric.Point(c,l)},translateToCenterPoint:function(t,i,r){var u=this.translateToGivenOrigin(t,i,r,"center","center");return this.angle?fabric.util.rotatePoint(u,t,n(this.angle)):u},translateToOriginPoint:function(t,i,r){var u=this.translateToGivenOrigin(t,"center","center",i,r);return this.angle?fabric.util.rotatePoint(u,t,n(this.angle)):u},getCenterPoint:function(){var n=new fabric.Point(this.left,this.top);return this.translateToCenterPoint(n,this.originX,this.originY)},getPointByOrigin:function(n,t){var i=this.getCenterPoint();return this.translateToOriginPoint(i,n,t)},toLocalPoint:function(t,i,r){var f,u,e=this.getCenterPoint();return f="undefined"!=typeof i&&"undefined"!=typeof r?this.translateToGivenOrigin(e,"center","center",i,r):new fabric.Point(this.left,this.top),u=new fabric.Point(t.x,t.y),this.angle&&(u=fabric.util.rotatePoint(u,e,-n(this.angle))),u.subtractEquals(f)},setPositionByOrigin:function(n,t,i){var u=this.translateToCenterPoint(n,t,i),r=this.translateToOriginPoint(u,this.originX,this.originY);this.set("left",r.x);this.set("top",r.y)},adjustPosition:function(i){var r,u,f=n(this.angle),e=this.getWidth(),o=Math.cos(f)*e,s=Math.sin(f)*e;r="string"==typeof this.originX?t[this.originX]:this.originX-.5;u="string"==typeof i?t[i]:i-.5;this.left+=o*(u-r);this.top+=s*(u-r);this.setCoords();this.originX=i},_setOriginToCenter:function(){this._originalOriginX=this.originX;this._originalOriginY=this.originY;var n=this.getCenterPoint();this.originX="center";this.originY="center";this.left=n.x;this.top=n.y},_resetOrigin:function(){var n=this.translateToOriginPoint(this.getCenterPoint(),this._originalOriginX,this._originalOriginY);this.originX=this._originalOriginX;this.originY=this._originalOriginY;this.left=n.x;this.top=n.y;this._originalOriginX=null;this._originalOriginY=null},_getLeftTopCoords:function(){return this.translateToOriginPoint(this.getCenterPoint(),"left","top")}})}(),function(){function i(n){return[new fabric.Point(n.tl.x,n.tl.y),new fabric.Point(n.tr.x,n.tr.y),new fabric.Point(n.br.x,n.br.y),new fabric.Point(n.bl.x,n.bl.y)]}var t=fabric.util.degreesToRadians,n=fabric.util.multiplyTransformMatrices;fabric.util.object.extend(fabric.Object.prototype,{oCoords:null,intersectsWithRect:function(n,t){var r=i(this.oCoords),u=fabric.Intersection.intersectPolygonRectangle(r,n,t);return"Intersection"===u.status},intersectsWithObject:function(n){var t=fabric.Intersection.intersectPolygonPolygon(i(this.oCoords),i(n.oCoords));return"Intersection"===t.status},isContainedWithinObject:function(n){var t=n.getBoundingRect(),i=new fabric.Point(t.left,t.top),r=new fabric.Point(t.left+t.width,t.top+t.height);return this.isContainedWithinRect(i,r)},isContainedWithinRect:function(n,t){var i=this.getBoundingRect();return i.left>=n.x&&i.left+i.width<=t.x&&i.top>=n.y&&i.top+i.height<=t.y},containsPoint:function(n){this.oCoords||this.setCoords();var i=this._getImageLines(this.oCoords),t=this._findCrossPoints(n,i);return 0!==t&&t%2==1},_getImageLines:function(n){return{topline:{o:n.tl,d:n.tr},rightline:{o:n.tr,d:n.br},bottomline:{o:n.br,d:n.bl},leftline:{o:n.bl,d:n.tl}}},_findCrossPoints:function(n,t){var r,f,e,s,u,h,i,o=0;for(var c in t)if(i=t[c],!(i.o.y<n.y&&i.d.y<n.y||i.o.y>=n.y&&i.d.y>=n.y||(i.o.x===i.d.x&&i.o.x>=n.x?(u=i.o.x,h=n.y):(r=0,f=(i.d.y-i.o.y)/(i.d.x-i.o.x),e=n.y-r*n.x,s=i.o.y-f*i.o.x,u=-(e-s)/(r-f),h=e+r*u),u>=n.x&&(o+=1),2!==o)))break;return o},getBoundingRectWidth:function(){return this.getBoundingRect().width},getBoundingRectHeight:function(){return this.getBoundingRect().height},getBoundingRect:function(){return this.oCoords||this.setCoords(),fabric.util.makeBoundingBoxFromPoints([this.oCoords.tl,this.oCoords.tr,this.oCoords.br,this.oCoords.bl])},getWidth:function(){return this._getTransformedDimensions().x},getHeight:function(){return this._getTransformedDimensions().y},_constrainScale:function(n){return Math.abs(n)<this.minScaleLimit?n<0?-this.minScaleLimit:this.minScaleLimit:n},scale:function(n){return n=this._constrainScale(n),n<0&&(this.flipX=!this.flipX,this.flipY=!this.flipY,n*=-1),this.scaleX=n,this.scaleY=n,this.setCoords(),this}
22,scaleToWidth:function(n){var t=this.getBoundingRect().width/this.getWidth();return this.scale(n/this.width/t)},scaleToHeight:function(n){var t=this.getBoundingRect().height/this.getHeight();return this.scale(n/this.height/t)},setCoords:function(){var e=t(this.angle),b=this.getViewportTransform(),v=this._calculateCurrentDimensions(),i=v.x,s=v.y;i<0&&(i=Math.abs(i));var h=Math.sin(e),c=Math.cos(e),l=i>0?Math.atan(s/i):0,y=i/Math.cos(l)/2,p=Math.cos(l+e)*y,w=Math.sin(l+e)*y,o=fabric.util.transformPoint(this.getCenterPoint(),b),n=new fabric.Point(o.x-p,o.y-w),r=new fabric.Point(n.x+i*c,n.y+i*h),u=new fabric.Point(n.x-s*h,n.y+s*c),f=new fabric.Point(o.x+p,o.y+w),k=new fabric.Point((n.x+u.x)/2,(n.y+u.y)/2),a=new fabric.Point((r.x+n.x)/2,(r.y+n.y)/2),d=new fabric.Point((f.x+r.x)/2,(f.y+r.y)/2),g=new fabric.Point((f.x+u.x)/2,(f.y+u.y)/2),nt=new fabric.Point(a.x+h*this.rotatingPointOffset,a.y-c*this.rotatingPointOffset);return this.oCoords={tl:n,tr:r,br:f,bl:u,ml:k,mt:a,mr:d,mb:g,mtr:nt},this._setCornerCoords&&this._setCornerCoords(),this},_calcRotateMatrix:function(){if(this.angle){var n=t(this.angle),i=Math.cos(n),r=Math.sin(n);return[i,r,-r,i,0,0]}return[1,0,0,1,0,0]},calcTransformMatrix:function(){var i=this.getCenterPoint(),r=[1,0,0,1,i.x,i.y],u=this._calcRotateMatrix(),f=this._calcDimensionsTransformMatrix(this.skewX,this.skewY,!0),t=this.group?this.group.calcTransformMatrix():[1,0,0,1,0,0];return t=n(t,r),t=n(t,u),t=n(t,f)},_calcDimensionsTransformMatrix:function(i,r,u){var f=[1,0,Math.tan(t(i)),1],e=[1,Math.tan(t(r)),0,1],o=this.scaleX*(u&&this.flipX?-1:1),s=this.scaleY*(u&&this.flipY?-1:1),h=[o,0,0,s],c=n(h,f,!0);return n(c,e,!0)}})}();fabric.util.object.extend(fabric.Object.prototype,{sendToBack:function(){return this.group?fabric.StaticCanvas.prototype.sendToBack.call(this.group,this):this.canvas.sendToBack(this),this},bringToFront:function(){return this.group?fabric.StaticCanvas.prototype.bringToFront.call(this.group,this):this.canvas.bringToFront(this),this},sendBackwards:function(n){return this.group?fabric.StaticCanvas.prototype.sendBackwards.call(this.group,this,n):this.canvas.sendBackwards(this,n),this},bringForward:function(n){return this.group?fabric.StaticCanvas.prototype.bringForward.call(this.group,this,n):this.canvas.bringForward(this,n),this},moveTo:function(n){return this.group?fabric.StaticCanvas.prototype.moveTo.call(this.group,this,n):this.canvas.moveTo(this,n),this}}),function(){function n(n,t){if(t){if(t.toLive)return n+": url(#SVGID_"+t.id+"); ";var i=new fabric.Color(t),r=n+": "+i.toRgb()+"; ",u=i.getAlpha();return 1!==u&&(r+=n+"-opacity: "+u.toString()+"; "),r}return n+": none; "}fabric.util.object.extend(fabric.Object.prototype,{getSvgStyles:function(t){var i=this.fillRule,r=this.strokeWidth?this.strokeWidth:"0",u=this.strokeDashArray?this.strokeDashArray.join(" "):"none",f=this.strokeLineCap?this.strokeLineCap:"butt",e=this.strokeLineJoin?this.strokeLineJoin:"miter",o=this.strokeMiterLimit?this.strokeMiterLimit:"4",s="undefined"!=typeof this.opacity?this.opacity:"1",h=this.visible?"":" visibility: hidden;",c=t?"":this.getSvgFilter(),l=n("fill",this.fill),a=n("stroke",this.stroke);return[a,"stroke-width: ",r,"; ","stroke-dasharray: ",u,"; ","stroke-linecap: ",f,"; ","stroke-linejoin: ",e,"; ","stroke-miterlimit: ",o,"; ",l,"fill-rule: ",i,"; ","opacity: ",s,";",c,h].join("")},getSvgFilter:function(){return this.shadow?"filter: url(#SVGID_"+this.shadow.id+");":""},getSvgId:function(){return this.id?'id="'+this.id+'" ':""},getSvgTransform:function(){if(this.group&&"path-group"===this.group.type)return"";var n=fabric.util.toFixed,i=this.getAngle(),r=this.getSkewX()%360,u=this.getSkewY()%360,f=this.getCenterPoint(),t=fabric.Object.NUM_FRACTION_DIGITS,e="path-group"===this.type?"":"translate("+n(f.x,t)+" "+n(f.y,t)+")",o=0!==i?" rotate("+n(i,t)+")":"",s=1===this.scaleX&&1===this.scaleY?"":" scale("+n(this.scaleX,t)+" "+n(this.scaleY,t)+")",h=0!==r?" skewX("+n(r,t)+")":"",c=0!==u?" skewY("+n(u,t)+")":"",l="path-group"===this.type?this.width:0,a=this.flipX?" matrix(-1 0 0 1 "+l+" 0) ":"",v="path-group"===this.type?this.height:0,y=this.flipY?" matrix(1 0 0 -1 0 "+v+")":"";return[e,o,s,a,y,h,c].join("")},getSvgTransformMatrix:function(){return this.transformMatrix?" matrix("+this.transformMatrix.join(" ")+") ":""},_createBaseSVGMarkup:function(){var n=[];return this.fill&&this.fill.toLive&&n.push(this.fill.toSVG(this,!1)),this.stroke&&this.stroke.toLive&&n.push(this.stroke.toSVG(this,!1)),this.shadow&&n.push(this.shadow.toSVG(this)),n}})}();fabric.util.object.extend(fabric.Object.prototype,{hasStateChanged:function(){return this.stateProperties.some(function(n){return this.get(n)!==this.originalState[n]},this)}
22,saveState:function(n){return this.stateProperties.forEach(function(n){this.originalState[n]=this.get(n)},this),n&&n.stateProperties&&n.stateProperties.forEach(function(n){this.originalState[n]=this.get(n)},this),this},setupState:function(){return this.originalState={},this.saveState(),this}}),function(){var n=fabric.util.degreesToRadians,t=function(){return"undefined"!=typeof G_vmlCanvasManager};fabric.util.object.extend(fabric.Object.prototype,{_controlsVisibility:null,_findTargetCorner:function(n){var i,r,u,f,t;if(!this.hasControls||!this.active)return!1;u=n.x;f=n.y;this.__corner=0;for(t in this.oCoords)if(this.isControlVisible(t)&&("mtr"!==t||this.hasRotatingPoint)&&(!this.get("lockUniScaling")||"mt"!==t&&"mr"!==t&&"mb"!==t&&"ml"!==t)&&(r=this._getImageLines(this.oCoords[t].corner),i=this._findCrossPoints({x:u,y:f},r),0!==i&&i%2==1))return this.__corner=t,t;return!1},_setCornerCoords:function(){var t,i,r=this.oCoords,o=n(45-this.angle),s=.707106*this.cornerSize,u=s*Math.cos(o),f=s*Math.sin(o);for(var e in r)t=r[e].x,i=r[e].y,r[e].corner={tl:{x:t-f,y:i-u},tr:{x:t+u,y:i-f},bl:{x:t-u,y:i+f},br:{x:t+f,y:i+u}}},_getNonTransformedDimensions:function(){var n=this.strokeWidth,t=this.width,i=this.height,r=!0,u=!0;return"line"===this.type&&"butt"===this.strokeLineCap&&(u=t,r=i),u&&(i+=i<0?-n:n),r&&(t+=t<0?-n:n),{x:t,y:i}},_getTransformedDimensions:function(n,t){"undefined"==typeof n&&(n=this.skewX);"undefined"==typeof t&&(t=this.skewY);for(var e,o=this._getNonTransformedDimensions(),r=o.x/2,u=o.y/2,f=[{x:-r,y:-u},{x:r,y:-u},{x:-r,y:u},{x:r,y:u}],s=this._calcDimensionsTransformMatrix(n,t,!1),i=0;i<f.length;i++)f[i]=fabric.util.transformPoint(f[i],s);return e=fabric.util.makeBoundingBoxFromPoints(f),{x:e.width,y:e.height}},_calculateCurrentDimensions:function(){var t=this.getViewportTransform(),n=this._getTransformedDimensions(),i=n.x,r=n.y,u=fabric.util.transformPoint(new fabric.Point(i,r),t,!0);return u.scalarAdd(2*this.padding)},drawSelectionBackground:function(t){if(!this.selectionBackgroundColor||this.group||this!==this.canvas.getActiveObject())return this;t.save();var r=this.getCenterPoint(),i=this._calculateCurrentDimensions(),u=this.canvas.viewportTransform;return t.translate(r.x,r.y),t.scale(1/u[0],1/u[3]),t.rotate(n(this.angle)),t.fillStyle=this.selectionBackgroundColor,t.fillRect(-i.x/2,-i.y/2,i.x,i.y),t.restore(),this},drawBorders:function(n){var i;if(!this.hasBorders)return this;var r=this._calculateCurrentDimensions(),u=1/this.borderScaleFactor,f=r.x+u,t=r.y+u;return(n.save(),n.strokeStyle=this.borderColor,this._setLineDash(n,this.borderDashArray,null),n.strokeRect(-f/2,-t/2,f,t),this.hasRotatingPoint&&this.isControlVisible("mtr")&&!this.get("lockRotation")&&this.hasControls)&&(i=-t/2,n.beginPath(),n.moveTo(0,i),n.lineTo(0,i-this.rotatingPointOffset),n.closePath(),n.stroke()),n.restore(),this},drawBordersInGroup:function(n,t){if(!this.hasBorders)return this;var e=this._getNonTransformedDimensions(),o=fabric.util.customTransformMatrix(t.scaleX,t.scaleY,t.skewX),i=fabric.util.transformPoint(e,o),r=1/this.borderScaleFactor,u=i.x+r+2*this.padding,f=i.y+r+2*this.padding;return n.save(),this._setLineDash(n,this.borderDashArray,null),n.strokeStyle=this.borderColor,n.strokeRect(-u/2,-f/2,u,f),n.restore(),this},drawControls:function(n){if(!this.hasControls)return this;var e=this._calculateCurrentDimensions(),u=e.x,f=e.y,o=this.cornerSize,t=-(u+o)/2,i=-(f+o)/2,r=this.transparentCorners?"stroke":"fill";return n.save(),n.strokeStyle=n.fillStyle=this.cornerColor,this.transparentCorners||(n.strokeStyle=this.cornerStrokeColor),this._setLineDash(n,this.cornerDashArray,null),this._drawControl("tl",n,r,t,i),this._drawControl("tr",n,r,t+u,i),this._drawControl("bl",n,r,t,i+f),this._drawControl("br",n,r,t+u,i+f),this.get("lockUniScaling")||(this._drawControl("mt",n,r,t+u/2,i),this._drawControl("mb",n,r,t+u/2,i+f),this._drawControl("mr",n,r,t+u,i+f/2),this._drawControl("ml",n,r,t,i+f/2)),this.hasRotatingPoint&&this._drawControl("mtr",n,r,t+u/2,i-this.rotatingPointOffset),n.restore(),this},_drawControl:function(n,i,r,u,f){if(this.isControlVisible(n)){var e=this.cornerSize,o=!this.transparentCorners&&this.cornerStrokeColor;switch(this.cornerStyle){case"circle":i.beginPath();i.arc(u+e/2,f+e/2,e/2,0,2*Math.PI,!1);i[r]();o&&i.stroke();break;default:t()||this.transparentCorners||i.clearRect(u,f,e,e);i[r+"Rect"](u,f,e,e);o&&i.strokeRect(u,f,e,e)}}},isControlVisible:function(n){return this._getControlsVisibility()[n]},setControlVisible:function(n,t){return this._getControlsVisibility()[n]=t,this},setControlsVisibility:function(n){n||(n={});for(var t in n)this.setControlVisible(t,n[t]);return this},_getControlsVisibility:function(){return this._controlsVisibility||(this._controlsVisibility={tl:!0,tr:!0,br:!0,bl:!0,ml:!0,mt:!0,mr:!0,mb:!0,mtr:!0}),this._controlsVisibility}})}();fabric.util.object.extend(fabric.StaticCanvas.prototype,{FX_DURATION:500,fxCenterObjectH:function(n,t){t=t||{};var i=function(){},r=t.onComplete||i,u=t.onChange||i,f=this;return fabric.util.animate({startValue:n.get("left"),endValue:this.getCenter().left,duration:this.FX_DURATION,onChange:function(t){n.set("left",t);f.renderAll();u()}
22,onComplete:function(){n.setCoords();r()}}),this},fxCenterObjectV:function(n,t){t=t||{};var i=function(){},r=t.onComplete||i,u=t.onChange||i,f=this;return fabric.util.animate({startValue:n.get("top"),endValue:this.getCenter().top,duration:this.FX_DURATION,onChange:function(t){n.set("top",t);f.renderAll();u()},onComplete:function(){n.setCoords();r()}}),this},fxRemove:function(n,t){t=t||{};var i=function(){},u=t.onComplete||i,f=t.onChange||i,r=this;return fabric.util.animate({startValue:n.get("opacity"),endValue:0,duration:this.FX_DURATION,onStart:function(){n.set("active",!1)},onChange:function(t){n.set("opacity",t);r.renderAll();f()},onComplete:function(){r.remove(n);u()}}),this}});fabric.util.object.extend(fabric.Object.prototype,{animate:function(){var n,u,i,t,r;if(arguments[0]&&"object"==typeof arguments[0]){i=[];for(n in arguments[0])i.push(n);for(t=0,r=i.length;t<r;t++)n=i[t],u=t!==r-1,this._animate(n,arguments[0][n],arguments[1],u)}else this._animate.apply(this,arguments);return this},_animate:function(n,t,i,r){var u,f=this,e;t=t.toString();i=i?fabric.util.object.clone(i):{};~n.indexOf(".")&&(u=n.split("."));e=u?this.get(u[0])[u[1]]:this.get(n);"from"in i||(i.from=e);t=~t.indexOf("=")?e+parseFloat(t.replace("=","")):parseFloat(t);fabric.util.animate({startValue:i.from,endValue:t,byValue:i.by,easing:i.easing,duration:i.duration,abort:i.abort&&function(){return i.abort.call(f)},onChange:function(t){u?f[u[0]][u[1]]=t:f.set(n,t);r||i.onChange&&i.onChange()},onComplete:function(){r||(f.setCoords(),i.onComplete&&i.onComplete())}})}}),function(n){"use strict";function i(n,t){var u=n.origin,i=n.axis1,r=n.axis2,f=n.dimension,e=t.nearest,o=t.center,s=t.farthest;return function(){switch(this.get(u)){case e:return Math.min(this.get(i),this.get(r));case o:return Math.min(this.get(i),this.get(r))+.5*this.get(f);case s:return Math.max(this.get(i),this.get(r))}}}var t=n.fabric||(n.fabric={}),r=t.util.object.extend,u={x1:1,x2:1,y1:1,y2:1},f=t.StaticCanvas.supports("setLineDash");return t.Line?void t.warn("fabric.Line is already defined"):(t.Line=t.util.createClass(t.Object,{type:"line",x1:0,y1:0,x2:0,y2:0,initialize:function(n,t){t=t||{};n||(n=[0,0,0,0]);this.callSuper("initialize",t);this.set("x1",n[0]);this.set("y1",n[1]);this.set("x2",n[2]);this.set("y2",n[3]);this._setWidthHeight(t)},_setWidthHeight:function(n){n||(n={});this.width=Math.abs(this.x2-this.x1);this.height=Math.abs(this.y2-this.y1);this.left="left"in n?n.left:this._getLeftToOriginX();this.top="top"in n?n.top:this._getTopToOriginY()},_set:function(n,t){return this.callSuper("_set",n,t),"undefined"!=typeof u[n]&&this._setWidthHeight(),this},_getLeftToOriginX:i({origin:"originX",axis1:"x1",axis2:"x2",dimension:"width"},{nearest:"left",center:"center",farthest:"right"}),_getTopToOriginY:i({origin:"originY",axis1:"y1",axis2:"y2",dimension:"height"},{nearest:"top",center:"center",farthest:"bottom"}),_render:function(n,t){var r,i,u;(n.beginPath(),t)&&(r=this.getCenterPoint(),n.translate(r.x-this.strokeWidth/2,r.y-this.strokeWidth/2));(!this.strokeDashArray||this.strokeDashArray&&f)&&(i=this.calcLinePoints(),n.moveTo(i.x1,i.y1),n.lineTo(i.x2,i.y2));n.lineWidth=this.strokeWidth;u=n.strokeStyle;n.strokeStyle=this.stroke||n.fillStyle;this.stroke&&this._renderStroke(n);n.strokeStyle=u},_renderDashedStroke:function(n){var i=this.calcLinePoints();n.beginPath();t.util.drawDashedLine(n,i.x1,i.y1,i.x2,i.y2,this.strokeDashArray);n.closePath()},toObject:function(n){return r(this.callSuper("toObject",n),this.calcLinePoints())},calcLinePoints:function(){var n=this.x1<=this.x2?-1:1,t=this.y1<=this.y2?-1:1,i=n*this.width*.5,r=t*this.height*.5,u=n*this.width*-.5,f=t*this.height*-.5;return{x1:i,x2:u,y1:r,y2:f}},toSVG:function(n){var i=this._createBaseSVGMarkup(),t={x1:this.x1,x2:this.x2,y1:this.y1,y2:this.y2};return this.group&&"path-group"===this.group.type||(t=this.calcLinePoints()),i.push("<line ",this.getSvgId(),'x1="',t.x1,'" y1="',t.y1,'" x2="',t.x2,'" y2="',t.y2,'" style="',this.getSvgStyles(),'" transform="',this.getSvgTransform(),this.getSvgTransformMatrix(),'"/>\n'),n?n(i.join("")):i.join("")},complexity:function(){return 1}}),t.Line.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x1 y1 x2 y2".split(" ")),t.Line.fromElement=function(n,i){var u=t.parseAttributes(n,t.Line.ATTRIBUTE_NAMES),f=[u.x1||0,u.y1||0,u.x2||0,u.y2||0];return new t.Line(f,r(u,i))},void(t.Line.fromObject=function(n){var i=[n.x1,n.y1,n.x2,n.y2];return new t.Line(i,n)}))}
22("undefined"!=typeof exports?exports:this),function(n){"use strict";function u(n){return"radius"in n&&n.radius>=0}var t=n.fabric||(n.fabric={}),i=Math.PI,r=t.util.object.extend;return t.Circle?void t.warn("fabric.Circle is already defined."):(t.Circle=t.util.createClass(t.Object,{type:"circle",radius:0,startAngle:0,endAngle:2*i,initialize:function(n){n=n||{};this.callSuper("initialize",n);this.set("radius",n.radius||0);this.startAngle=n.startAngle||this.startAngle;this.endAngle=n.endAngle||this.endAngle},_set:function(n,t){return this.callSuper("_set",n,t),"radius"===n&&this.setRadius(t),this},toObject:function(n){return r(this.callSuper("toObject",n),{radius:this.get("radius"),startAngle:this.startAngle,endAngle:this.endAngle})},toSVG:function(n){var t=this._createBaseSVGMarkup(),r=0,u=0,f=(this.endAngle-this.startAngle)%(2*i);if(0===f)this.group&&"path-group"===this.group.type&&(r=this.left+this.radius,u=this.top+this.radius),t.push("<circle ",this.getSvgId(),'cx="'+r+'" cy="'+u+'" ','r="',this.radius,'" style="',this.getSvgStyles(),'" transform="',this.getSvgTransform()," ",this.getSvgTransformMatrix(),'"/>\n');else{var e=Math.cos(this.startAngle)*this.radius,o=Math.sin(this.startAngle)*this.radius,s=Math.cos(this.endAngle)*this.radius,h=Math.sin(this.endAngle)*this.radius,c=f>i?"1":"0";t.push('<path d="M '+e+" "+o," A "+this.radius+" "+this.radius," 0 ",+c+" 1"," "+s+" "+h,'" style="',this.getSvgStyles(),'" transform="',this.getSvgTransform()," ",this.getSvgTransformMatrix(),'"/>\n')}return n?n(t.join("")):t.join("")},_render:function(n,t){n.beginPath();n.arc(t?this.left+this.radius:0,t?this.top+this.radius:0,this.radius,this.startAngle,this.endAngle,!1);this._renderFill(n);this._renderStroke(n)},getRadiusX:function(){return this.get("radius")*this.get("scaleX")},getRadiusY:function(){return this.get("radius")*this.get("scaleY")},setRadius:function(n){return this.radius=n,this.set("width",2*n).set("height",2*n)},complexity:function(){return 1}}),t.Circle.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("cx cy r".split(" ")),t.Circle.fromElement=function(n,i){var f,e;if(i||(i={}),f=t.parseAttributes(n,t.Circle.ATTRIBUTE_NAMES),!u(f))throw new Error("value of `r` attribute is required and can not be negative");return f.left=f.left||0,f.top=f.top||0,e=new t.Circle(r(f,i)),e.left-=e.radius,e.top-=e.radius,e},void(t.Circle.fromObject=function(n){return new t.Circle(n)}))}("undefined"!=typeof exports?exports:this),function(n){"use strict";var t=n.fabric||(n.fabric={});return t.Triangle?void t.warn("fabric.Triangle is already defined"):(t.Triangle=t.util.createClass(t.Object,{type:"triangle",initialize:function(n){n=n||{};this.callSuper("initialize",n);this.set("width",n.width||100).set("height",n.height||100)},_render:function(n){var i=this.width/2,t=this.height/2;n.beginPath();n.moveTo(-i,t);n.lineTo(0,-t);n.lineTo(i,t);n.closePath();this._renderFill(n);this._renderStroke(n)},_renderDashedStroke:function(n){var r=this.width/2,i=this.height/2;n.beginPath();t.util.drawDashedLine(n,-r,i,0,-i,this.strokeDashArray);t.util.drawDashedLine(n,0,-i,r,i,this.strokeDashArray);t.util.drawDashedLine(n,r,i,-r,i,this.strokeDashArray);n.closePath()},toSVG:function(n){var t=this._createBaseSVGMarkup(),r=this.width/2,i=this.height/2,u=[-r+" "+i,"0 "+-i,r+" "+i].join(",");return t.push("<polygon ",this.getSvgId(),'points="',u,'" style="',this.getSvgStyles(),'" transform="',this.getSvgTransform(),'"/>'),n?n(t.join("")):t.join("")},complexity:function(){return 1}}),void(t.Triangle.fromObject=function(n){return new t.Triangle(n)}))}("undefined"!=typeof exports?exports:this),function(n){"use strict";var t=n.fabric||(n.fabric={}),r=2*Math.PI,i=t.util.object.extend;return t.Ellipse?void t.warn("fabric.Ellipse is already defined."):(t.Ellipse=t.util.createClass(t.Object,{type:"ellipse",rx:0,ry:0,initialize:function(n){n=n||{};this.callSuper("initialize",n);this.set("rx",n.rx||0);this.set("ry",n.ry||0)},_set:function(n,t){switch(this.callSuper("_set",n,t),n){case"rx":this.rx=t;this.set("width",2*t);break;case"ry":this.ry=t;this.set("height",2*t)}return this},getRx:function(){return this.get("rx")*this.get("scaleX")},getRy:function(){return this.get("ry")*this.get("scaleY")},toObject:function(n){return i(this.callSuper("toObject",n),{rx:this.get("rx"),ry:this.get("ry")})},toSVG:function(n){var t=this._createBaseSVGMarkup(),i=0,r=0;return this.group&&"path-group"===this.group.type&&(i=this.left+this.rx,r=this.top+this.ry),t.push("<ellipse ",this.get
22SvgId(),'cx="',i,'" cy="',r,'" ','rx="',this.rx,'" ry="',this.ry,'" style="',this.getSvgStyles(),'" transform="',this.getSvgTransform(),this.getSvgTransformMatrix(),'"/>\n'),n?n(t.join("")):t.join("")},_render:function(n,t){n.beginPath();n.save();n.transform(1,0,0,this.ry/this.rx,0,0);n.arc(t?this.left+this.rx:0,t?(this.top+this.ry)*this.rx/this.ry:0,this.rx,0,r,!1);n.restore();this._renderFill(n);this._renderStroke(n)},complexity:function(){return 1}}),t.Ellipse.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("cx cy rx ry".split(" ")),t.Ellipse.fromElement=function(n,r){var u,f;return r||(r={}),u=t.parseAttributes(n,t.Ellipse.ATTRIBUTE_NAMES),u.left=u.left||0,u.top=u.top||0,f=new t.Ellipse(i(u,r)),f.top-=f.ry,f.left-=f.rx,f},void(t.Ellipse.fromObject=function(n){return new t.Ellipse(n)}))}("undefined"!=typeof exports?exports:this),function(n){"use strict";var t=n.fabric||(n.fabric={}),r=t.util.object.extend,i;if(t.Rect)return void t.warn("fabric.Rect is already defined");i=t.Object.prototype.stateProperties.concat();i.push("rx","ry","x","y");t.Rect=t.util.createClass(t.Object,{stateProperties:i,type:"rect",rx:0,ry:0,strokeDashArray:null,initialize:function(n){n=n||{};this.callSuper("initialize",n);this._initRxRy()},_initRxRy:function(){this.rx&&!this.ry?this.ry=this.rx:this.ry&&!this.rx&&(this.rx=this.ry)},_render:function(n,t){if(1===this.width&&1===this.height)return void n.fillRect(-.5,-.5,1,1);var u=this.rx?Math.min(this.rx,this.width/2):0,f=this.ry?Math.min(this.ry,this.height/2):0,e=this.width,o=this.height,i=t?this.left:-this.width/2,r=t?this.top:-this.height/2,h=0!==u||0!==f,s=.4477152502;n.beginPath();n.moveTo(i+u,r);n.lineTo(i+e-u,r);h&&n.bezierCurveTo(i+e-s*u,r,i+e,r+s*f,i+e,r+f);n.lineTo(i+e,r+o-f);h&&n.bezierCurveTo(i+e,r+o-s*f,i+e-s*u,r+o,i+e-u,r+o);n.lineTo(i+u,r+o);h&&n.bezierCurveTo(i+s*u,r+o,i,r+o-s*f,i,r+o-f);n.lineTo(i,r+f);h&&n.bezierCurveTo(i,r+s*f,i+s*u,r,i+u,r);n.closePath();this._renderFill(n);this._renderStroke(n)},_renderDashedStroke:function(n){var i=-this.width/2,r=-this.height/2,u=this.width,f=this.height;n.beginPath();t.util.drawDashedLine(n,i,r,i+u,r,this.strokeDashArray);t.util.drawDashedLine(n,i+u,r,i+u,r+f,this.strokeDashArray);t.util.drawDashedLine(n,i+u,r+f,i,r+f,this.strokeDashArray);t.util.drawDashedLine(n,i,r+f,i,r,this.strokeDashArray);n.closePath()},toObject:function(n){var t=r(this.callSuper("toObject",n),{rx:this.get("rx")||0,ry:this.get("ry")||0});return this.includeDefaultValues||this._removeDefaultValues(t),t},toSVG:function(n){var t=this._createBaseSVGMarkup(),i=this.left,r=this.top;return this.group&&"path-group"===this.group.type||(i=-this.width/2,r=-this.height/2),t.push("<rect ",this.getSvgId(),'x="',i,'" y="',r,'" rx="',this.get("rx"),'" ry="',this.get("ry"),'" width="',this.width,'" height="',this.height,'" style="',this.getSvgStyles(),'" transform="',this.getSvgTransform(),this.getSvgTransformMatrix(),'"/>\n'),n?n(t.join("")):t.join("")},complexity:function(){return 1}});t.Rect.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x y rx ry width height".split(" "));t.Rect.fromElement=function(n,i){var u,f;return n?(i=i||{},u=t.parseAttributes(n,t.Rect.ATTRIBUTE_NAMES),u.left=u.left||0,u.top=u.top||0,f=new t.Rect(r(i?t.util.object.clone(i):{},u)),f.visible=f.visible&&f.width>0&&f.height>0,f):null};t.Rect.fromObject=function(n){return new t.Rect(n)}}("undefined"!=typeof exports?exports:this),function(n){"use strict";var t=n.fabric||(n.fabric={});return t.Polyline?void t.warn("fabric.Polyline is already defined"):(t.Polyline=t.util.createClass(t.Object,{type:"polyline",points:null,minX:0,minY:0,initialize:function(n,i){return t.Polygon.prototype.initialize.call(this,n,i)},_calcDimensions:function(){return t.Polygon.prototype._calcDimensions.call(this)},toObject:function(n){return t.Polygon.prototype.toObject.call(this,n)},toSVG:function(n){return t.Polygon.prototype.toSVG.call(this,n)},_render:function(n,i){t.Polygon.prototype.commonRender.call(this,n,i)&&(this._renderFill(n),this._renderStroke(n))},_renderDashedStroke:function(n){var r,u,i,f;for(n.beginPath(),i=0,f=this.points.length;i<f;i++)r=this.points[i],u=this.points[i+1]||r,t.util.drawDashedLine(n,r.x,r.y,u.x,u.y,this.strokeDashArray)},complexity:function(){return this.get("points").length}}),t.Polyline.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(),t.Polyline.fromElement=function(n,i){if
22(!n)return null;i||(i={});var r=t.parsePointsAttribute(n.getAttribute("points")),u=t.parseAttributes(n,t.Polyline.ATTRIBUTE_NAMES);return new t.Polyline(r,t.util.object.extend(u,i))},void(t.Polyline.fromObject=function(n){var i=n.points;return new t.Polyline(i,n,!0)}))}("undefined"!=typeof exports?exports:this),function(n){"use strict";var t=n.fabric||(n.fabric={}),i=t.util.object.extend,r=t.util.array.min,u=t.util.array.max,f=t.util.toFixed;return t.Polygon?void t.warn("fabric.Polygon is already defined"):(t.Polygon=t.util.createClass(t.Object,{type:"polygon",points:null,minX:0,minY:0,initialize:function(n,t){t=t||{};this.points=n||[];this.callSuper("initialize",t);this._calcDimensions();"top"in t||(this.top=this.minY);"left"in t||(this.left=this.minX);this.pathOffset={x:this.minX+this.width/2,y:this.minY+this.height/2}},_calcDimensions:function(){var n=this.points,t=r(n,"x"),i=r(n,"y"),f=u(n,"x"),e=u(n,"y");this.width=f-t||0;this.height=e-i||0;this.minX=t||0;this.minY=i||0},toObject:function(n){return i(this.callSuper("toObject",n),{points:this.points.concat()})},toSVG:function(n){for(var r,u=[],i=this._createBaseSVGMarkup(),t=0,e=this.points.length;t<e;t++)u.push(f(this.points[t].x,2),",",f(this.points[t].y,2)," ");return this.group&&"path-group"===this.group.type||(r=" translate("+-this.pathOffset.x+", "+-this.pathOffset.y+") "),i.push("<",this.type," ",this.getSvgId(),'points="',u.join(""),'" style="',this.getSvgStyles(),'" transform="',this.getSvgTransform(),r," ",this.getSvgTransformMatrix(),'"/>\n'),n?n(i.join("")):i.join("")},_render:function(n,t){this.commonRender(n,t)&&(this._renderFill(n),(this.stroke||this.strokeDashArray)&&(n.closePath(),this._renderStroke(n)))},commonRender:function(n,t){var r,u=this.points.length,i;if(!u||isNaN(this.points[u-1].y))return!1;for(t||n.translate(-this.pathOffset.x,-this.pathOffset.y),n.beginPath(),n.moveTo(this.points[0].x,this.points[0].y),i=0;i<u;i++)r=this.points[i],n.lineTo(r.x,r.y);return!0},_renderDashedStroke:function(n){t.Polyline.prototype._renderDashedStroke.call(this,n);n.closePath()},complexity:function(){return this.points.length}}),t.Polygon.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(),t.Polygon.fromElement=function(n,r){if(!n)return null;r||(r={});var u=t.parsePointsAttribute(n.getAttribute("points")),f=t.parseAttributes(n,t.Polygon.ATTRIBUTE_NAMES);return new t.Polygon(u,i(f,r))},void(t.Polygon.fromObject=function(n){return new t.Polygon(n.points,n,!0)}))}("undefined"!=typeof exports?exports:this),function(n){"use strict";var t=n.fabric||(n.fabric={}),i=t.util.array.min,r=t.util.array.max,u=t.util.object.extend,e=Object.prototype.toString,f=t.util.drawArc,o={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},s={m:"l",M:"L"};return t.Path?void t.warn("fabric.Path is already defined"):(t.Path=t.util.createClass(t.Object,{type:"path",path:null,minX:0,minY:0,initialize:function(n,t){t=t||{};this.setOptions(t);n||(n=[]);var i="[object Array]"===e.call(n);this.path=i?n:n.match&&n.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi);this.path&&(i||(this.path=this._parsePath()),this._setPositionDimensions(t),t.sourcePath&&this.setSourcePath(t.sourcePath))},_setPositionDimensions:function(n){var t=this._parseDimensions();this.minX=t.left;this.minY=t.top;this.width=t.width;this.height=t.height;"undefined"==typeof n.left&&(this.left=t.left+("center"===this.originX?this.width/2:"right"===this.originX?this.width:0));"undefined"==typeof n.top&&(this.top=t.top+("center"===this.originY?this.height/2:"bottom"===this.originY?this.height:0));this.pathOffset=this.pathOffset||{x:this.minX+this.width/2,y:this.minY+this.height/2}},_renderPathCommands:function(n){var t,h,c,l=null,v=0,y=0,i=0,r=0,o=0,s=0,u=-this.pathOffset.x,e=-this.pathOffset.y,a,p;for(this.group&&"path-group"===this.group.type&&(u=0,e=0),n.beginPath(),a=0,p=this.path.length;a<p;++a){switch(t=this.path[a],t[0]){case"l":i+=t[1];r+=t[2];n.lineTo(i+u,r+e);break;case"L":i=t[1];r=t[2];n.lineTo(i+u,r+e);break;case"h":i+=t[1];n.lineTo(i+u,r+e);break;case"H":i=t[1];n.lineTo(i+u,r+e);break;case"v":r+=t[1];n.lineTo(i+u,r+e);break;case"V":r=t[1];n.lineTo(i+u,r+e);break;case"m":i+=t[1];r+=t[2];v=i;y=r;n.moveTo(i+u,r+e);break;case"M":i=t[1];r=t[2];v=i;y=r;n.moveTo(i+u,r+e);break;case"c":h=i+t[5];c=r+t[6];o=i+t[3];s=r+t[4];n.bezierCurveTo(i+t[1]+u,r+t[2]+e,o+u,s+e,h+u,c+e);i=h;r=c;break;case"C":i=t[5];r=t[6];o=t[3];s=t[4];n.bezierCurveTo(t[1]+u,t[2]+e,o+u,s+e,i+u,r+e);break;case"s":h=i+t[3];c=r+t[4];null===l[0].match(/[CcSs]/)?(o=i,s=r):(o=2*i-o,s=2*r-s);n.bezierCurveTo(o+u,s+e,i+t[1]+u,r+t[2]+e,h+u,c+e);o=i+t[1];s=r+t[2];i=h;r=c;break;case"S":h=t[3];c=t[4];null===l[0].match(/[CcSs]/)?(o=i,s=r):(o=2*i-o,s=2*r-s);n.bezierCurveTo(o+u,s+e,t[1]+u,t[2]+e,h+u,c+e);i=h;r=c;o=t[1];s=t[2];break;case"q":h=i+t[3];c=r+t[4];o=i+t[1];s=r+t[2];n.quadraticCurveTo(o+u,s+e,h+u,c+e);i=h;r=c;break;case"Q":h=t[3];c=t[4];n.quadraticCurveTo(t[1]+u,t[2]+e,h+u,c+e);i=h;r=c;o=t[1];s=t[2];break;case"t":h=i+t[1];c=r+t[2];null===l[0].match(/[QqTt]/)?(o=i,s=r):(o=2*i-o,s=2*r-s);n.quadraticCurveTo(o+u,s+e,h+u,c+e);i=h;r=c;break;case"T":h=t[1];c=t[2];null===l[0].match(/[QqTt]/)?(o=i,s=r):(o=2*i-o,s=2*r-s);n.quadraticCurveTo(o+u,s+e,h+u,c+e);i=h;r=c;break;case"a":f(n,i+u,r+e,[t[1],t[2],t[3],t[4],t[5],t[6]+i+u,t[7]+r+e]);i+=t[6];r+=t[7];break;case"A":f(n,i+u,r+e,[t[1],t[2],t[3],t[4],t[5],t[6]+u,t[7]+e]);i=t[6];r=t[7];break;case"z":case"Z":i=v;r=y;n.closePath()}l=t}},_render:function(n){this._renderPathCommands(n);this._renderFill(n);this._renderStroke(n)},toString:function(){return"#<fabric.Path ("+this.complexity()+'): { "top": '+this.top+', "left"
22: '+this.left+" }>"},toObject:function(n){var t=u(this.callSuper("toObject",n),{path:this.path.map(function(n){return n.slice()}),pathOffset:this.pathOffset});return this.sourcePath&&(t.sourcePath=this.sourcePath),this.transformMatrix&&(t.transformMatrix=this.transformMatrix),t},toDatalessObject:function(n){var t=this.toObject(n);return this.sourcePath&&(t.path=this.sourcePath),delete t.sourcePath,t},toSVG:function(n){for(var f,r=[],t=this._createBaseSVGMarkup(),u="",i=0,e=this.path.length;i<e;i++)r.push(this.path[i].join(" "));return f=r.join(" "),this.group&&"path-group"===this.group.type||(u=" translate("+-this.pathOffset.x+", "+-this.pathOffset.y+") "),t.push("<path ",this.getSvgId(),'d="',f,'" style="',this.getSvgStyles(),'" transform="',this.getSvgTransform(),u,this.getSvgTransformMatrix(),'" stroke-linecap="round" ',"/>\n"),n?n(t.join("")):t.join("")},complexity:function(){return this.path.length},_parsePath:function(){for(var u,y,i,p,f,e,a,v,n,h=[],r=[],w=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi,c=0,b=this.path.length;c<b;c++){for(f=this.path[c],v=f.slice(1).trim(),r.length=0;a=w.exec(v);)r.push(a[0]);for(n=[f.charAt(0)],u=0,y=r.length;u<y;u++)e=parseFloat(r[u]),isNaN(e)||n.push(e);var t=n[0],l=o[t.toLowerCase()],k=s[t]||t;if(n.length-1>l)for(i=1,p=n.length;i<p;i+=l)h.push([t].concat(n.slice(i,i+l))),t=k;else h.push(n)}return h},_parseDimensions:function(){for(var n,h,c,s,a=[],v=[],l=null,y=0,p=0,u=0,f=0,e=0,o=0,w=0,d=this.path.length;w<d;++w){switch(n=this.path[w],n[0]){case"l":u+=n[1];f+=n[2];s=[];break;case"L":u=n[1];f=n[2];s=[];break;case"h":u+=n[1];s=[];break;case"H":u=n[1];s=[];break;case"v":f+=n[1];s=[];break;case"V":f=n[1];s=[];break;case"m":u+=n[1];f+=n[2];y=u;p=f;s=[];break;case"M":u=n[1];f=n[2];y=u;p=f;s=[];break;case"c":h=u+n[5];c=f+n[6];e=u+n[3];o=f+n[4];s=t.util.getBoundsOfCurve(u,f,u+n[1],f+n[2],e,o,h,c);u=h;f=c;break;case"C":u=n[5];f=n[6];e=n[3];o=n[4];s=t.util.getBoundsOfCurve(u,f,n[1],n[2],e,o,u,f);break;case"s":h=u+n[3];c=f+n[4];null===l[0].match(/[CcSs]/)?(e=u,o=f):(e=2*u-e,o=2*f-o);s=t.util.getBoundsOfCurve(u,f,e,o,u+n[1],f+n[2],h,c);e=u+n[1];o=f+n[2];u=h;f=c;break;case"S":h=n[3];c=n[4];null===l[0].match(/[CcSs]/)?(e=u,o=f):(e=2*u-e,o=2*f-o);s=t.util.getBoundsOfCurve(u,f,e,o,n[1],n[2],h,c);u=h;f=c;e=n[1];o=n[2];break;case"q":h=u+n[3];c=f+n[4];e=u+n[1];o=f+n[2];s=t.util.getBoundsOfCurve(u,f,e,o,e,o,h,c);u=h;f=c;break;case"Q":e=n[1];o=n[2];s=t.util.getBoundsOfCurve(u,f,e,o,e,o,n[3],n[4]);u=n[3];f=n[4];break;case"t":h=u+n[1];c=f+n[2];null===l[0].match(/[QqTt]/)?(e=u,o=f):(e=2*u-e,o=2*f-o);s=t.util.getBoundsOfCurve(u,f,e,o,e,o,h,c);u=h;f=c;break;case"T":h=n[1];c=n[2];null===l[0].match(/[QqTt]/)?(e=u,o=f):(e=2*u-e,o=2*f-o);s=t.util.getBoundsOfCurve(u,f,e,o,e,o,h,c);u=h;f=c;break;case"a":s=t.util.getBoundsOfArc(u,f,n[1],n[2],n[3],n[4],n[5],n[6]+u,n[7]+f);u+=n[6];f+=n[7];break;case"A":s=t.util.getBoundsOfArc(u,f,n[1],n[2],n[3],n[4],n[5],n[6],n[7]);u=n[6];f=n[7];break;case"z":case"Z":u=y;f=p}l=n;s.forEach(function(n){a.push(n.x);v.push(n.y)});a.push(u);v.push(f)}var b=i(a)||0,k=i(v)||0,g=r(a)||0,nt=r(v)||0,tt=g-b,it=nt-k;return{left:b,top:k,width:tt,height:it}}}),t.Path.fromObject=function(n,i){"string"==typeof n.path?t.loadSVGFromURL(n.path,function(r){var u=r[0],f=n.path;delete n.path;t.util.object.extend(u,n);u.setSourcePath(f);i(u)}):i(new t.Path(n.path,n))},t.Path.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(["d"]),t.Path.fromElement=function(n,i,r){var f=t.parseAttributes(n,t.Path.ATTRIBUTE_NAMES);i&&i(new t.Path(f.d,u(f,r)))},void(t.Path.async=!0))}("undefined"!=typeof exports?exports:this),function(n){"use strict";var t=n.fabric||(n.fabric={}),i=t.util.object.extend,r=t.util.array.invoke,u=t.Object.prototype.toObject;return t.PathGroup?void t.warn("fabric.PathGroup is already defined"):(t.PathGroup=t.util.createClass(t.Path,{type:"path-group",fill:"",initialize:function(n,t){t=t||{};this.paths=n||[];for(var i=this.paths.length;i--;)this.paths[i].group=this;t.toBeParsed&&(this.parseDimensionsFromPaths(t),delete t.toBeParsed);this.setOptions(t);this.setCoords();t.sourcePath&&this.setSourcePath(t.sourcePath)},parseDimensionsFromPaths:function(n){for(var u,f,r,i,e,o,s,c=[],l=[],h=this.paths.length;h--;)for(i=this.paths[h],e=i.height+i.strokeWidth,o=i.width+i.strokeWidth,f=[{x:i.left,y:i.top},{x:i.left+o,y:i.top},{x:i.left,y:i.top+e},{x:i.left+o,y:i.top+e}],s=this.paths[h].transformMatrix,u=0;u<f.length;u++)r=f[u],s&&(r=t.util.transformPoint(r,s,!1)),c.push(r.x),l.push(r.y);n.width=Math.max.apply(null,c);n.height=Math.max.apply(null,l)},render:function(n){if(this.visible){n.save();this.transformMatrix&&n.transform.apply(n,this.transformMatrix);this.transform(n);this._setShadow(n);this.clipTo&&t.util.clipContext(this,n);n.translate(-this.width/2,-this.height/2);for(var i=0,r=this.paths.length;i<r;++i)this.paths[i].render(n,!0);
22this.clipTo&&n.restore();n.restore()}},_set:function(n,t){if("fill"===n&&t&&this.isSameColor())for(var i=this.paths.length;i--;)this.paths[i]._set(n,t);return this.callSuper("_set",n,t)},toObject:function(n){var t=i(u.call(this,n),{paths:r(this.getObjects(),"toObject",n)});return this.sourcePath&&(t.sourcePath=this.sourcePath),t},toDatalessObject:function(n){var t=this.toObject(n);return this.sourcePath&&(t.paths=this.sourcePath),t},toSVG:function(n){var r=this.getObjects(),u=this.getPointByOrigin("left","top"),e="translate("+u.x+" "+u.y+")",t=this._createBaseSVGMarkup(),i,f;for(t.push("<g ",this.getSvgId(),'style="',this.getSvgStyles(),'" ','transform="',this.getSvgTransformMatrix(),e,this.getSvgTransform(),'" ',">\n"),i=0,f=r.length;i<f;i++)t.push("\t",r[i].toSVG(n));return t.push("<\/g>\n"),n?n(t.join("")):t.join("")},toString:function(){return"#<fabric.PathGroup ("+this.complexity()+"): { top: "+this.top+", left: "+this.left+" }>"},isSameColor:function(){var n=this.getObjects()[0].get("fill")||"";return"string"==typeof n&&(n=n.toLowerCase(),this.getObjects().every(function(t){var i=t.get("fill")||"";return"string"==typeof i&&i.toLowerCase()===n}))},complexity:function(){return this.paths.reduce(function(n,t){return n+(t&&t.complexity?t.complexity():0)},0)},getObjects:function(){return this.paths}}),t.PathGroup.fromObject=function(n,i){"string"==typeof n.paths?t.loadSVGFromURL(n.paths,function(r){var f=n.paths,u;delete n.paths;u=t.util.groupSVGElements(r,n,f);i(u)}):t.util.enlivenObjects(n.paths,function(r){delete n.paths;i(new t.PathGroup(r,n))})},void(t.PathGroup.async=!0))}("undefined"!=typeof exports?exports:this),function(n){"use strict";var t=n.fabric||(n.fabric={}),f=t.util.object.extend,i=t.util.array.min,r=t.util.array.max,e=t.util.array.invoke,u;t.Group||(u={lockMovementX:!0,lockMovementY:!0,lockRotation:!0,lockScalingX:!0,lockScalingY:!0,lockUniScaling:!0},t.Group=t.util.createClass(t.Object,t.Collection,{type:"group",strokeWidth:0,subTargetCheck:!1,initialize:function(n,t,i){t=t||{};this._objects=[];i&&this.callSuper("initialize",t);this._objects=n||[];for(var r=this._objects.length;r--;)this._objects[r].group=this;this.originalState={};t.originX&&(this.originX=t.originX);t.originY&&(this.originY=t.originY);i?this._updateObjectsCoords(!0):(this._calcBounds(),this._updateObjectsCoords(),this.callSuper("initialize",t));this.setCoords();this.saveCoords()},_updateObjectsCoords:function(n){for(var t=this._objects.length;t--;)this._updateObjectCoords(this._objects[t],n)},_updateObjectCoords:function(n,t){if(n.__origHasControls=n.hasControls,n.hasControls=!1,!t){var i=n.getLeft(),r=n.getTop(),u=this.getCenterPoint();n.set({originalLeft:i,originalTop:r,left:i-u.x,top:r-u.y});n.setCoords()}},toString:function(){return"#<fabric.Group: ("+this.complexity()+")>"},addWithUpdate:function(n){return this._restoreObjectsState(),t.util.resetObjectTransform(this),n&&(this._objects.push(n),n.group=this,n._set("canvas",this.canvas)),this.forEachObject(this._setObjectActive,this),this._calcBounds(),this._updateObjectsCoords(),this},_setObjectActive:function(n){n.set("active",!0);n.group=this},removeWithUpdate:function(n){return this._restoreObjectsState(),t.util.resetObjectTransform(this),this.forEachObject(this._setObjectActive,this),this.remove(n),this._calcBounds(),this._updateObjectsCoords(),this},_onObjectAdded:function(n){n.group=this;n._set("canvas",this.canvas)},_onObjectRemoved:function(n){delete n.group;n.set("active",!1)},delegatedProperties:{fill:!0,stroke:!0,strokeWidth:!0,fontFamily:!0,fontWeight:!0,fontSize:!0,fontStyle:!0,lineHeight:!0,textDecoration:!0,textAlign:!0,backgroundColor:!0},_set:function(n,t){var i=this._objects.length;if(this.delegatedProperties[n]||"canvas"===n)for(;i--;)this._objects[i].set(n,t);else for(;i--;)this._objects[i].setOnGroup(n,t);this.callSuper("_set",n,t)},toObject:function(n){return f(this.callSuper("toObject",n),{objects:e(this._objects,"toObject",n)})},render:function(n){if(this.visible){n.save();this.transformMatrix&&n.transform.apply(n,this.transformMatrix);this.transform(n);this._setShadow(n);this.clipTo&&t.util.clipContext(this,n);this._transformDone=!0;for(var i=0,r=this._objects.length;i<r;i++)this._renderObject(this._objects[i],n);
22this.clipTo&&n.restore();n.restore();this._transformDone=!1}},_renderControls:function(n,t){this.callSuper("_renderControls",n,t);for(var i=0,r=this._objects.length;i<r;i++)this._objects[i]._renderControls(n)},_renderObject:function(n,t){if(n.visible){var i=n.hasRotatingPoint;n.hasRotatingPoint=!1;n.render(t);n.hasRotatingPoint=i}},_restoreObjectsState:function(){return this._objects.forEach(this._restoreObjectState,this),this},realizeTransform:function(n){var r=n.calcTransformMatrix(),i=t.util.qrDecompose(r),u=new t.Point(i.translateX,i.translateY);return n.scaleX=i.scaleX,n.scaleY=i.scaleY,n.skewX=i.skewX,n.skewY=i.skewY,n.angle=i.angle,n.flipX=!1,n.flipY=!1,n.setPositionByOrigin(u,"center","center"),n},_restoreObjectState:function(n){return this.realizeTransform(n),n.setCoords(),n.hasControls=n.__origHasControls,delete n.__origHasControls,n.set("active",!1),delete n.group,this},destroy:function(){return this._restoreObjectsState()},saveCoords:function(){return this._originalLeft=this.get("left"),this._originalTop=this.get("top"),this},hasMoved:function(){return this._originalLeft!==this.get("left")||this._originalTop!==this.get("top")},setObjectsCoords:function(){return this.forEachObject(function(n){n.setCoords()}),this},_calcBounds:function(n){for(var t,r,i,f=[],e=[],o=["tr","br","bl","tl"],u=0,s=this._objects.length,h=o.length;u<s;++u)for(t=this._objects[u],t.setCoords(),i=0;i<h;i++)r=o[i],f.push(t.oCoords[r].x),e.push(t.oCoords[r].y);this.set(this._getBounds(f,e,n))},_getBounds:function(n,u,f){var s=t.util.invertTransform(this.getViewportTransform()),o=t.util.transformPoint(new t.Point(i(n),i(u)),s),h=t.util.transformPoint(new t.Point(r(n),r(u)),s),e={width:h.x-o.x||0,height:h.y-o.y||0};return f||(e.left=o.x||0,e.top=o.y||0,"center"===this.originX&&(e.left+=e.width/2),"right"===this.originX&&(e.left+=e.width),"center"===this.originY&&(e.top+=e.height/2),"bottom"===this.originY&&(e.top+=e.height)),e},toSVG:function(n){var t=this._createBaseSVGMarkup(),i,r;for(t.push("<g ",this.getSvgId(),'transform="',this.getSvgTransform(),this.getSvgTransformMatrix(),'" style="',this.getSvgFilter(),'">\n'),i=0,r=this._objects.length;i<r;i++)t.push("\t",this._objects[i].toSVG(n));return t.push("<\/g>\n"),n?n(t.join("")):t.join("")},get:function(n){if(n in u){if(this[n])return this[n];for(var t=0,i=this._objects.length;t<i;t++)if(this._objects[t][n])return!0;return!1}return n in this.delegatedProperties?this._objects[0]&&this._objects[0].get(n):this[n]}}),t.Group.fromObject=function(n,i){t.util.enlivenObjects(n.objects,function(r){delete n.objects;i&&i(new t.Group(r,n,!0))})},t.Group.async=!0)}("undefined"!=typeof exports?exports:this),function(n){"use strict";var t=fabric.util.object.extend;return n.fabric||(n.fabric={}),n.fabric.Image?void fabric.warn("fabric.Image is already defined."):(fabric.Image=fabric.util.createClass(fabric.Object,{type:"image",crossOrigin:"",alignX:"none",alignY:"none",meetOrSlice:"meet",strokeWidth:0,_lastScaleX:1,_lastScaleY:1,minimumScaleTrigger:.5,initialize:function(n,t,i){t||(t={});this.filters=[];this.resizeFilters=[];this.callSuper("initialize",t);this._initElement(n,t,i)},getElement:function(){return this._element},setElement:function(n,t,i){var r,u;return this._element=n,this._originalElement=n,this._initConfig(i),0===this.resizeFilters.length?r=t:(u=this,r=function(){u.applyFilters(t,u.resizeFilters,u._filteredEl||u._originalElement,!0)}),0!==this.filters.length?this.applyFilters(r):r&&r(this),this},setCrossOrigin:function(n){return this.crossOrigin=n,this._element.crossOrigin=n,this},getOriginalSize:function(){var n=this.getElement();return{width:n.width,height:n.height}},_stroke:function(n){if(this.stroke&&0!==this.strokeWidth){var t=this.width/2,i=this.height/2;n.beginPath();n.moveTo(-t,-i);n.lineTo(t,-i);n.lineTo(t,i);n.lineTo(-t,i);n.lineTo(-t,-i);n.closePath()}},_renderDashedStroke:function(n){var t=-this.width/2,i=-this.height/2,r=this.width,u=this.height;n.save();this._setStrokeStyles(n);n.beginPath();fabric.util.drawDashedLine(n,t,i,t+r,i,this.strokeDashArray);fabric.util.drawDashedLine(n,t+r,i,t+r,i+u,this.strokeDashArray);fabric.util.drawDashedLine(n,t+r,i+u,t,i+u,this.strokeDashArray);fabric.util.drawDashedLine(n,t,i+u,t,i,this.strokeDashArray);n.closePath();
22n.restore()},toObject:function(n){var r=[],u=[],f=1,e=1,i;return this.filters.forEach(function(n){n&&("Resize"===n.type&&(f*=n.scaleX,e*=n.scaleY),r.push(n.toObject()))}),this.resizeFilters.forEach(function(n){n&&u.push(n.toObject())}),i=t(this.callSuper("toObject",n),{src:this.getSrc(),filters:r,resizeFilters:u,crossOrigin:this.crossOrigin,alignX:this.alignX,alignY:this.alignY,meetOrSlice:this.meetOrSlice}),i.width/=f,i.height/=e,this.includeDefaultValues||this._removeDefaultValues(i),i},toSVG:function(n){var t=this._createBaseSVGMarkup(),i=-this.width/2,r=-this.height/2,u="none",f;return(this.group&&"path-group"===this.group.type&&(i=this.left,r=this.top),"none"!==this.alignX&&"none"!==this.alignY&&(u="x"+this.alignX+"Y"+this.alignY+" "+this.meetOrSlice),t.push('<g transform="',this.getSvgTransform(),this.getSvgTransformMatrix(),'">\n',"<image ",this.getSvgId(),'xlink:href="',this.getSvgSrc(),'" x="',i,'" y="',r,'" style="',this.getSvgStyles(),'" width="',this.width,'" height="',this.height,'" preserveAspectRatio="',u,'"',"><\/image>\n"),this.stroke||this.strokeDashArray)&&(f=this.fill,this.fill=null,t.push("<rect ",'x="',i,'" y="',r,'" width="',this.width,'" height="',this.height,'" style="',this.getSvgStyles(),'"/>\n'),this.fill=f),t.push("<\/g>\n"),n?n(t.join("")):t.join("")},getSrc:function(){var n=this._originalElement;return n?fabric.isLikelyNode?n._src:n.src:this.src||""},setSrc:function(n,t,i){fabric.util.loadImage(n,function(n){return this.setElement(n,t,i)},this,i&&i.crossOrigin)},toString:function(){return'#<fabric.Image: { src: "'+this.getSrc()+'" }>'},clone:function(n,t){this.constructor.fromObject(this.toObject(t),n)},applyFilters:function(n,t,i,r){var f;if(t=t||this.filters,i=i||this._originalElement){var o,s,e=fabric.util.createImage(),h=this.canvas?this.canvas.getRetinaScaling():fabric.devicePixelRatio,c=this.minimumScaleTrigger/h,u=this;return 0===t.length?(this._element=i,n&&n(this),i):(f=fabric.util.createCanvasElement(),f.width=i.width,f.height=i.height,f.getContext("2d").drawImage(i,0,0,i.width,i.height),t.forEach(function(n){n&&(r?(o=u.scaleX<c?u.scaleX:1,s=u.scaleY<c?u.scaleY:1,o*h<1&&(o*=h),s*h<1&&(s*=h)):(o=n.scaleX,s=n.scaleY),n.applyTo(f,o,s),r||"Resize"!==n.type||(u.width*=n.scaleX,u.height*=n.scaleY))}),e.width=f.width,e.height=f.height,fabric.isLikelyNode?(e.src=f.toBuffer(void 0,fabric.Image.pngCompression),u._element=e,!r&&(u._filteredEl=e),n&&n(u)):(e.onload=function(){u._element=e;!r&&(u._filteredEl=e);n&&n(u);e.onload=f=null},e.src=f.toDataURL("image/png")),f)}},_render:function(n,t){var u,f,i,r=this._findMargins();u=t?this.left:-this.width/2;f=t?this.top:-this.height/2;"slice"===this.meetOrSlice&&(n.beginPath(),n.rect(u,f,this.width,this.height),n.clip());this.isMoving===!1&&this.resizeFilters.length&&this._needsResize()?(this._lastScaleX=this.scaleX,this._lastScaleY=this.scaleY,i=this.applyFilters(null,this.resizeFilters,this._filteredEl||this._originalElement,!0)):i=this._element;i&&n.drawImage(i,u+r.marginX,f+r.marginY,r.width,r.height);this._stroke(n);this._renderStroke(n)},_needsResize:function(){return this.scaleX!==this._lastScaleX||this.scaleY!==this._lastScaleY},_findMargins:function(){var i,r,n=this.width,t=this.height,u=0,f=0;return"none"===this.alignX&&"none"===this.alignY||(i=[this.width/this._element.width,this.height/this._element.height],r="meet"===this.meetOrSlice?Math.min.apply(null,i):Math.max.apply(null,i),n=this._element.width*r,t=this._element.height*r,"Mid"===this.alignX&&(u=(this.width-n)/2),"Max"===this.alignX&&(u=this.width-n),"Mid"===this.alignY&&(f=(this.height-t)/2),"Max"===this.alignY&&(f=this.height-t)),{width:n,height:t,marginX:u,marginY:f}},_resetWidthHeight:function(){var n=this.getElement();this.set("width",n.width);this.set("height",n.height)},_initElement:function(n,t,i){this.setElement(fabric.util.getById(n),i,t);fabric.util.addClass(this.getElement(),fabric.Image.CSS_CANVAS)},_initConfig:function(n){n||(n={});this.setOptions(n);this._setWidthHeight(n);this._element&&this.crossOrigin&&(this._element.crossOrigin=this.crossOrigin)},_initFilters:function(n,t){n&&n.length?fabric.util.enlivenObjects(n,function(n){t&&t(n)},"fabric.Image.filters"):t&&t()},_setWidthHeight:function(n){this.width="width"in n?n.width:this.getElement()?this.getElement().width||0:0;this.height="height"in n?n.height:this.getElement()?this.getElement().height||0:0},complexity:function(){return 1}}),fabric.Image.CSS_CANVAS="canvas-img",fabric.Image.prototype.getSvgSrc=fabric.Image.prototype.getSrc,fabric.Image.fromObject=function(n,t){fabric.util.loadImage(n.src,function(i){fabric.Image.prototype._initFilters.call(n,n.filters,function(r){n.filters=r||[];fabric.Image.prototype._initFilters.call(n,n.resizeFilters,function(r){return n.resizeFilters=r||[],new fabric.Image(i,n,t)})})},null,n.crossOrigin)},fabric.Image.fromURL=function(n,t,i){fabric.util.loadImage(n,function(n){t&&t(new fabric.Image(n,i))},null,i&&i.crossOrigin)},fabric.Image.ATTRIBUTE_NAMES=fabric.SHARED_ATTRIBUTES.concat("x y width height preserveAspectRatio xlink:href".split(" ")),fabric.Image.fromElement=function(n,i,r){var f,u=fabric.parseAttributes(n,fabric.Image.ATTRIBUTE_NAMES);u.preserveAspectRatio&&(f=fabric.util.parsePreserveAspectRatioAttribute(u.preserveAspectRatio),t(u,f));fabric.Image.fromURL(u["xlink:href"],i,t(r?fabric.util.object.clone(r):{},u))},fabric.Image.async=!0,void(fabric.Image.pngCompression=1))}
22("undefined"!=typeof exports?exports:this);fabric.util.object.extend(fabric.Object.prototype,{_getAngleValueForStraighten:function(){var n=this.getAngle()%360;return n>0?90*Math.round((n-1)/90):90*Math.round(n/90)},straighten:function(){return this.setAngle(this._getAngleValueForStraighten()),this},fxStraighten:function(n){n=n||{};var i=function(){},r=n.onComplete||i,u=n.onChange||i,t=this;return fabric.util.animate({startValue:this.get("angle"),endValue:this._getAngleValueForStraighten(),duration:this.FX_DURATION,onChange:function(n){t.setAngle(n);u()},onComplete:function(){t.setCoords();r()},onStart:function(){t.set("active",!1)}}),this}});fabric.util.object.extend(fabric.StaticCanvas.prototype,{straightenObject:function(n){return n.straighten(),this.renderAll(),this},fxStraightenObject:function(n){return n.fxStraighten({onChange:this.renderAll.bind(this)}),this}});fabric.Image.filters=fabric.Image.filters||{};fabric.Image.filters.BaseFilter=fabric.util.createClass({type:"BaseFilter",initialize:function(n){n&&this.setOptions(n)},setOptions:function(n){for(var t in n)this[t]=n[t]},toObject:function(){return{type:this.type}},toJSON:function(){return this.toObject()}}),function(n){"use strict";var t=n.fabric||(n.fabric={}),i=t.util.object.extend;t.Image.filters.Brightness=t.util.createClass(t.Image.filters.BaseFilter,{type:"Brightness",initialize:function(n){n=n||{};this.brightness=n.brightness||0},applyTo:function(n){for(var u=n.getContext("2d"),f=u.getImageData(0,0,n.width,n.height),i=f.data,r=this.brightness,t=0,e=i.length;t<e;t+=4)i[t]+=r,i[t+1]+=r,i[t+2]+=r;u.putImageData(f,0,0)},toObject:function(){return i(this.callSuper("toObject"),{brightness:this.brightness})}});t.Image.filters.Brightness.fromObject=function(n){return new t.Image.filters.Brightness(n)}}("undefined"!=typeof exports?exports:this),function(n){"use strict";var t=n.fabric||(n.fabric={}),i=t.util.object.extend;t.Image.filters.Convolute=t.util.createClass(t.Image.filters.BaseFilter,{type:"Convolute",initialize:function(n){n=n||{};this.opaque=n.opaque;this.matrix=n.matrix||[0,0,0,0,1,0,0,0,0]},applyTo:function(n){for(var f,e,o,p,w,b,s,t,h,c,i,r,nt=this.matrix,k=n.getContext("2d"),d=k.getImageData(0,0,n.width,n.height),l=Math.round(Math.sqrt(nt.length)),tt=Math.floor(l/2),a=d.data,u=d.width,g=d.height,it=k.createImageData(u,g),v=it.data,rt=this.opaque?1:0,y=0;y<g;y++)for(f=0;f<u;f++){for(t=4*(y*u+f),p=0,w=0,b=0,s=0,e=0;e<l;e++)for(o=0;o<l;o++)c=y+e-tt,h=f+o-tt,c<0||c>g||h<0||h>u||(i=4*(c*u+h),r=nt[e*l+o],p+=a[i]*r,w+=a[i+1]*r,b+=a[i+2]*r,s+=a[i+3]*r);v[t]=p;v[t+1]=w;v[t+2]=b;v[t+3]=s+rt*(255-s)}k.putImageData(it,0,0)},toObject:function(){return i(this.callSuper("toObject"),{opaque:this.opaque,matrix:this.matrix})}});t.Image.filters.Convolute.fromObject=function(n){return new t.Image.filters.Convolute(n)}}("undefined"!=typeof exports?exports:this),function(n){"use strict";var t=n.fabric||(n.fabric={}),i=t.util.object.extend;t.Image.filters.GradientTransparency=t.util.createClass(t.Image.filters.BaseFilter,{type:"GradientTransparency",initialize:function(n){n=n||{};this.threshold=n.threshold||100},applyTo:function(n){for(var r=n.getContext("2d"),u=r.getImageData(0,0,n.width,n.height),i=u.data,e=this.threshold,f=i.length,t=0,o=i.length;t<o;t+=4)i[t+3]=e+255*(f-t)/f;r.putImageData(u,0,0)},toObject:function(){return i(this.callSuper("toObject"),{threshold:this.threshold})}});t.Image.filters.GradientTransparency.fromObject=function(n){return new t.Image.filters.GradientTransparency(n)}}("undefined"!=typeof exports?exports:this),function(n){"use strict";var t=n.fabric||(n.fabric={});t.Image.filters.Grayscale=t.util.createClass(t.Image.filters.BaseFilter,{type:"Grayscale",applyTo:function(n){for(var r,f=n.getContext("2d"),u=f.getImageData(0,0,n.width,n.height),i=u.data,e=u.width*u.height*4,t=0;t<e;)r=(i[t]+i[t+1]+i[t+2])/3,i[t]=r,i[t+1]=r,i[t+2]=r,t+=4;f.putImageData(u,0,0)}});t.Image.filters.Grayscale.fromObject=function(){return new t.Image.filters.Grayscale}}("undefined"!=typeof exports?exports:this),function(n){"use strict";var t=n.fabric||(n.fabric={});t.Image.filters.Invert=t.util.createClass(t.Image.filters.BaseFilter,{type:"Invert",applyTo:function(n){for(var r=n.getContext("2d"),u=r.getImageData(0,0,n.width,n.height),i=u.data,f=i.length,t=0;t<f;t+=4)i[t]=255-i[t],i[t+1]=255-i[t+1],i[t+2]=255-i[t+2];r.putImageData(u,0,0)}});t.Image.filters.Invert.fromObject=function(){return new t.Image.filters.Invert}}
22("undefined"!=typeof exports?exports:this),function(n){"use strict";var t=n.fabric||(n.fabric={}),i=t.util.object.extend;t.Image.filters.Mask=t.util.createClass(t.Image.filters.BaseFilter,{type:"Mask",initialize:function(n){n=n||{};this.mask=n.mask;this.channel=[0,1,2,3].indexOf(n.channel)>-1?n.channel:0},applyTo:function(n){var e,o;if(this.mask){var i,f=n.getContext("2d"),r=f.getImageData(0,0,n.width,n.height),s=r.data,h=this.mask.getElement(),u=t.util.createCanvasElement(),c=this.channel,l=r.width*r.height*4;for(u.width=n.width,u.height=n.height,u.getContext("2d").drawImage(h,0,0,n.width,n.height),e=u.getContext("2d").getImageData(0,0,n.width,n.height),o=e.data,i=0;i<l;i+=4)s[i+3]=o[i+c];f.putImageData(r,0,0)}},toObject:function(){return i(this.callSuper("toObject"),{mask:this.mask.toObject(),channel:this.channel})}});t.Image.filters.Mask.fromObject=function(n,i){t.util.loadImage(n.mask.src,function(r){n.mask=new t.Image(r,n.mask);i&&i(new t.Image.filters.Mask(n))})};t.Image.filters.Mask.async=!0}("undefined"!=typeof exports?exports:this),function(n){"use strict";var t=n.fabric||(n.fabric={}),i=t.util.object.extend;t.Image.filters.Noise=t.util.createClass(t.Image.filters.BaseFilter,{type:"Noise",initialize:function(n){n=n||{};this.noise=n.noise||0},applyTo:function(n){for(var i,u=n.getContext("2d"),f=u.getImageData(0,0,n.width,n.height),r=f.data,e=this.noise,t=0,o=r.length;t<o;t+=4)i=(.5-Math.random())*e,r[t]+=i,r[t+1]+=i,r[t+2]+=i;u.putImageData(f,0,0)},toObject:function(){return i(this.callSuper("toObject"),{noise:this.noise})}});t.Image.filters.Noise.fromObject=function(n){return new t.Image.filters.Noise(n)}}("undefined"!=typeof exports?exports:this),function(n){"use strict";var t=n.fabric||(n.fabric={}),i=t.util.object.extend;t.Image.filters.Pixelate=t.util.createClass(t.Image.filters.BaseFilter,{type:"Pixelate",initialize:function(n){n=n||{};this.blocksize=n.blocksize||4},applyTo:function(n){for(var t,u,h,c,l,a,v=n.getContext("2d"),f=v.getImageData(0,0,n.width,n.height),i=f.data,w=f.height,s=f.width,e,y,o,p,r=0;r<w;r+=this.blocksize)for(u=0;u<s;u+=this.blocksize)for(t=4*r*s+4*u,h=i[t],c=i[t+1],l=i[t+2],a=i[t+3],e=r,y=r+this.blocksize;e<y;e++)for(o=u,p=u+this.blocksize;o<p;o++)t=4*e*s+4*o,i[t]=h,i[t+1]=c,i[t+2]=l,i[t+3]=a;v.putImageData(f,0,0)},toObject:function(){return i(this.callSuper("toObject"),{blocksize:this.blocksize})}});t.Image.filters.Pixelate.fromObject=function(n){return new t.Image.filters.Pixelate(n)}}("undefined"!=typeof exports?exports:this),function(n){"use strict";var t=n.fabric||(n.fabric={}),i=t.util.object.extend;t.Image.filters.RemoveWhite=t.util.createClass(t.Image.filters.BaseFilter,{type:"RemoveWhite",initialize:function(n){n=n||{};this.threshold=n.threshold||30;this.distance=n.distance||20},applyTo:function(n){for(var r,u,f,h=n.getContext("2d"),c=h.getImageData(0,0,n.width,n.height),i=c.data,l=this.threshold,e=this.distance,o=255-l,s=Math.abs,t=0,a=i.length;t<a;t+=4)r=i[t],u=i[t+1],f=i[t+2],r>o&&u>o&&f>o&&s(r-u)<e&&s(r-f)<e&&s(u-f)<e&&(i[t+3]=0);h.putImageData(c,0,0)},toObject:function(){return i(this.callSuper("toObject"),{threshold:this.threshold,distance:this.distance})}});t.Image.filters.RemoveWhite.fromObject=function(n){return new t.Image.filters.RemoveWhite(n)}}("undefined"!=typeof exports?exports:this),function(n){"use strict";var t=n.fabric||(n.fabric={});t.Image.filters.Sepia=t.util.createClass(t.Image.filters.BaseFilter,{type:"Sepia",applyTo:function(n){for(var r,u=n.getContext("2d"),f=u.getImageData(0,0,n.width,n.height),i=f.data,e=i.length,t=0;t<e;t+=4)r=.3*i[t]+.59*i[t+1]+.11*i[t+2],i[t]=r+100,i[t+1]=r+50,i[t+2]=r+255;u.putImageData(f,0,0)}});t.Image.filters.Sepia.fromObject=function(){return new t.Image.filters.Sepia}}("undefined"!=typeof exports?exports:this),function(n){"use strict";var t=n.fabric||(n.fabric={});t.Image.filters.Sepia2=t.util.createClass(t.Image.filters.BaseFilter,{type:"Sepia2",applyTo:function(n){for(var r,u,f,e=n.getContext("2d"),o=e.getImageData(0,0,n.width,n.height),i=o.data,s=i.length,t=0;t<s;t+=4)r=i[t],u=i[t+1],f=i[t+2],i[t]=(.393*r+.769*u+.189*f)/1.351,i[t+1]=(.349*r+.686*u+.168*f)/1.203,i[t+2]=(.272*r+.534*u+.131*f)/2.14;e.putImageData(o,0,0)}});t.Image.filters.Sepia2.fromObject=function(){return new t.Image.filters.Sepia2}}
22("undefined"!=typeof exports?exports:this),function(n){"use strict";var t=n.fabric||(n.fabric={}),i=t.util.object.extend;t.Image.filters.Tint=t.util.createClass(t.Image.filters.BaseFilter,{type:"Tint",initialize:function(n){n=n||{};this.color=n.color||"#000000";this.opacity="undefined"!=typeof n.opacity?n.opacity:new t.Color(this.color).getAlpha()},applyTo:function(n){var i,e,o,s,h,c,l,u,f,a=n.getContext("2d"),v=a.getImageData(0,0,n.width,n.height),r=v.data,y=r.length;for(f=new t.Color(this.color).getSource(),e=f[0]*this.opacity,o=f[1]*this.opacity,s=f[2]*this.opacity,u=1-this.opacity,i=0;i<y;i+=4)h=r[i],c=r[i+1],l=r[i+2],r[i]=e+h*u,r[i+1]=o+c*u,r[i+2]=s+l*u;a.putImageData(v,0,0)},toObject:function(){return i(this.callSuper("toObject"),{color:this.color,opacity:this.opacity})}});t.Image.filters.Tint.fromObject=function(n){return new t.Image.filters.Tint(n)}}("undefined"!=typeof exports?exports:this),function(n){"use strict";var t=n.fabric||(n.fabric={}),i=t.util.object.extend;t.Image.filters.Multiply=t.util.createClass(t.Image.filters.BaseFilter,{type:"Multiply",initialize:function(n){n=n||{};this.color=n.color||"#000000"},applyTo:function(n){for(var f=n.getContext("2d"),e=f.getImageData(0,0,n.width,n.height),u=e.data,o=u.length,r=new t.Color(this.color).getSource(),i=0;i<o;i+=4)u[i]*=r[0]/255,u[i+1]*=r[1]/255,u[i+2]*=r[2]/255;f.putImageData(e,0,0)},toObject:function(){return i(this.callSuper("toObject"),{color:this.color})}});t.Image.filters.Multiply.fromObject=function(n){return new t.Image.filters.Multiply(n)}}("undefined"!=typeof exports?exports:this),function(n){"use strict";var t=n.fabric;t.Image.filters.Blend=t.util.createClass(t.Image.filters.BaseFilter,{type:"Blend",initialize:function(n){n=n||{};this.color=n.color||"#000";this.image=n.image||!1;this.mode=n.mode||"multiply";this.alpha=n.alpha||1},applyTo:function(n){var u,f,e,o,s,h,v,y,p,c,w=n.getContext("2d"),b=w.getImageData(0,0,n.width,n.height),r=b.data,k=!1,a,l,d,i,g;for(this.image?(k=!0,a=t.util.createCanvasElement(),a.width=this.image.width,a.height=this.image.height,l=new t.StaticCanvas(a),l.add(this.image),d=l.getContext("2d"),c=d.getImageData(0,0,l.width,l.height).data):(c=new t.Color(this.color).getSource(),u=c[0]*this.alpha,f=c[1]*this.alpha,e=c[2]*this.alpha),i=0,g=r.length;i<g;i+=4)switch(o=r[i],s=r[i+1],h=r[i+2],k&&(u=c[i]*this.alpha,f=c[i+1]*this.alpha,e=c[i+2]*this.alpha),this.mode){case"multiply":r[i]=o*u/255;r[i+1]=s*f/255;r[i+2]=h*e/255;break;case"screen":r[i]=1-(1-o)*(1-u);r[i+1]=1-(1-s)*(1-f);r[i+2]=1-(1-h)*(1-e);break;case"add":r[i]=Math.min(255,o+u);r[i+1]=Math.min(255,s+f);r[i+2]=Math.min(255,h+e);break;case"diff":case"difference":r[i]=Math.abs(o-u);r[i+1]=Math.abs(s-f);r[i+2]=Math.abs(h-e);break;case"subtract":v=o-u;y=s-f;p=h-e;r[i]=v<0?0:v;r[i+1]=y<0?0:y;r[i+2]=p<0?0:p;break;case"darken":r[i]=Math.min(o,u);r[i+1]=Math.min(s,f);r[i+2]=Math.min(h,e);break;case"lighten":r[i]=Math.max(o,u);r[i+1]=Math.max(s,f);r[i+2]=Math.max(h,e)}w.putImageData(b,0,0)},toObject:function(){return{color:this.color,image:this.image,mode:this.mode,alpha:this.alpha}}});t.Image.filters.Blend.fromObject=function(n){return new t.Image.filters.Blend(n)}}("undefined"!=typeof exports?exports:this),function(n){"use strict";var i=n.fabric||(n.fabric={}),e=Math.pow,t=Math.floor,o=Math.sqrt,r=Math.abs,u=Math.max,s=Math.round,h=Math.sin,f=Math.ceil;i.Image.filters.Resize=i.util.createClass(i.Image.filters.BaseFilter,{type:"Resize",resizeType:"hermite",scaleX:0,scaleY:0,lanczosLobes:3,applyTo:function(n,t,i){if(1!==t||1!==i){this.rcpScaleX=1/t;this.rcpScaleY=1/i;var r,u=n.width,f=n.height,e=s(u*t),o=s(f*i);"sliceHack"===this.resizeType&&(r=this.sliceByTwo(n,u,f,e,o));"hermite"===this.resizeType&&(r=this.hermiteFastResize(n,u,f,e,o));"bilinear"===this.resizeType&&(r=this.bilinearFiltering(n,u,f,e,o));"lanczos"===this.resizeType&&(r=this.lanczosResize(n,u,f,e,o));n.width=e;n.height=o;n.getContext("2d").putImageData(r,0,0)}},sliceByTwo:function(n,r,f,e,o){var l,c=n.getContext("2d"),v=.5,y=.5,p=1,w=1,b=!1,k=!1,s=r,h=f,a=i.util.createCanvasElement(),d=a.getContext("2d");for(e=t(e),o=t(o),a.width=u(e,r),a.height=u(o,f),e>r&&(v=2,p=-1),o>f&&(y=2,w=-1),l=c.getImageData(0,0,r,f),n.width=u(e,r),n.height=u(o,f),c.putImageData(l,0,0);!b||!k;)r=s,f=h,e*p<t(s*v*p)?s=t(s*v):(s=e,b=!0),o*w<t(h*y*w)?h=t(h*y):(h=o,k=!0),l=c.getImageData(0,0,r,f),d.putImageData(l,0,0),c.clearRect(0,0,s,h),c.drawImage(a,0,0,r,f,0,0,s,h);return c.getImageData(0,0,e,o)},lanczosResize:function(n,i,u,s,c){function it(n){return function(t){if(t>n)return 0;if(t*=Math.PI,r(t)<1e-16)return 1;var i=t/n;return h(t)*h(i)/t/i}}function w(n){var st,h,b,f,ot,ct,lt,at,vt,it,ht,rt;for(l.x=(n+.5)*d,a.x=t(l.x),st=0;st<c;st++){for(l.y=(st+.5)*g,a.y=t(l.y),ot=0,ct=0,lt=0,at=0,vt=0,h=a.x-nt;h<=a.x+nt;h++)if(!(h<0||h>=i))for(it=t(1e3*r(h-l.x)),v[it]||(v[it]={}),rt=a.y-tt;rt<=a.y+tt;rt++)rt<0||rt>=u||(ht=t(1e3*r(rt-l.y)),v[it][ht]||(v[it][ht]=ut(o(e(it*ft,2)+e(ht*et,2))/1e3)),b=v[it][ht],b>0&&(f=4*(rt*i+h),ot+=b,ct+=b*y[f],lt+=b*y[f+1],at+=b*y[f+2],vt+=b*y[f+3]));f=4*(st*s+n);p[f]=ct/ot;p[f+1]=lt/ot;p[f+2]=at/ot;p[f+3]=vt/ot}return++n<s?w(n):k}var b=n.getContext("2d"),rt=b.getImageData(0,0,i,u),k=b.getImageData(0,0,s,c),y=rt.data,p=k.data,ut=it(this.lanczosLobes),d=this.rcpScaleX,g=this.rcpScaleY,ft=2/this.rcpScaleX,et=2/this.rcpScaleY,nt=f(d*this.lanczosLobes/2),tt=f(g*this.lanczosLobes/2),v={},l={},a={};return w(0)},bilinearFiltering:function(n,i,r,u,f){for(var p,w,b,k,v,y,s,h,c,e,d,l,ut=0,g=this.rcpScaleX,nt=this.rcpScaleY,tt=n.getContext("2d"),it=4*(i-1),ft=tt.getImageData(0,0,i,r),a=ft.data,rt=tt.getImageData(0,0,u,f),et=rt.data,o=0;o<f;o++)for(s=0;s<u;s++)for(v=t(g*s),y=t(nt*o),h=g*s-v,c=nt*o-y,l=4*(y*i+v),e=0;e<4;e++)p=a[l+e],w=a[l+4+e],b=a[l+it+e],k=a[l+it+4+e],d=p*(1-h)*(1-c)+w*h*(1-c)+b*c*(1-h)+k*h*c,et[ut++]=d;return rt},hermiteFastResize:function(n,i,u,e,s){for(var a,c,l,p=this.rcpScaleX,w=this.rcpScaleY,ht=f(p/2),ct=f(w/2),tt=n.getContext("2d"),lt=tt.getImageData(0,0,i,u),v=lt.data,it=tt.getImageData(0,0,e,s),b=it.data,y=0;y<s;y++)for(a=0;a<e;a++){for(var k=4*(a+y*e),h=0,d=0,rt=0,ut=0,ft=0,et=0,ot=0,at=(y+.5)*w,g=t(y*w);g<(y+1)*w;g++)for(var st=r(at-(g+.5))/ct,vt=(a+.5)*p,yt=st*st,nt=t(a*p);nt<(a+1)*p;nt++)c=r(vt-(nt+.5))/ht,l=o(yt+c*c),l>1&&l<-1||(h=2*l*l*l-3*l*l+1,h>0&&(c=4*(nt+g*i),ot+=h*v[c+3],rt+=h,v[c+3]<255&&(h=h*v[c+3]/250),ut+=h*v[c],ft+=h*v[c+1],et+=h*v[c+2],d+=h));b[k]=ut/d;b[k+1]=ft/d;b[k+2]=et/d;b[k+3]=ot/rt}return it}
22,toObject:function(){return{type:this.type,scaleX:this.scaleX,scaleY:this.scaleY,resizeType:this.resizeType,lanczosLobes:this.lanczosLobes}}});i.Image.filters.Resize.fromObject=function(n){return new i.Image.filters.Resize(n)}}("undefined"!=typeof exports?exports:this),function(n){"use strict";var t=n.fabric||(n.fabric={}),i=t.util.object.extend;t.Image.filters.ColorMatrix=t.util.createClass(t.Image.filters.BaseFilter,{type:"ColorMatrix",initialize:function(n){n||(n={});this.matrix=n.matrix||[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]},applyTo:function(n){for(var u,f,e,o,s=n.getContext("2d"),h=s.getImageData(0,0,n.width,n.height),r=h.data,c=r.length,t=this.matrix,i=0;i<c;i+=4)u=r[i],f=r[i+1],e=r[i+2],o=r[i+3],r[i]=u*t[0]+f*t[1]+e*t[2]+o*t[3]+t[4],r[i+1]=u*t[5]+f*t[6]+e*t[7]+o*t[8]+t[9],r[i+2]=u*t[10]+f*t[11]+e*t[12]+o*t[13]+t[14],r[i+3]=u*t[15]+f*t[16]+e*t[17]+o*t[18]+t[19];s.putImageData(h,0,0)},toObject:function(){return i(this.callSuper("toObject"),{type:this.type,matrix:this.matrix})}});t.Image.filters.ColorMatrix.fromObject=function(n){return new t.Image.filters.ColorMatrix(n)}}("undefined"!=typeof exports?exports:this),function(n){"use strict";var t=n.fabric||(n.fabric={}),f=t.util.object.extend,e=t.util.object.clone,i=t.util.toFixed,r=t.Object.NUM_FRACTION_DIGITS,u;if(t.Text)return void t.warn("fabric.Text is already defined");u=t.Object.prototype.stateProperties.concat();u.push("fontFamily","fontWeight","fontSize","text","textDecoration","textAlign","fontStyle","lineHeight","textBackgroundColor");t.Text=t.util.createClass(t.Object,{_dimensionAffectingProps:{fontSize:!0,fontWeight:!0,fontFamily:!0,fontStyle:!0,lineHeight:!0,text:!0,charSpacing:!0,textAlign:!0,stroke:!1,strokeWidth:!1},_reNewline:/\r?\n/,_reSpacesAndTabs:/[ \t\r]+/g,type:"text",fontSize:40,fontWeight:"normal",fontFamily:"Times New Roman",textDecoration:"",textAlign:"left",fontStyle:"",lineHeight:1.16,textBackgroundColor:"",stateProperties:u,stroke:null,shadow:null,_fontSizeFraction:.25,_fontSizeMult:1.13,charSpacing:0,initialize:function(n,t){t=t||{};this.text=n;this.__skipDimension=!0;this.setOptions(t);this.__skipDimension=!1;this._initDimensions()},_initDimensions:function(n){this.__skipDimension||(n||(n=t.util.createCanvasElement().getContext("2d"),this._setTextStyles(n)),this._textLines=this._splitTextIntoLines(),this._clearCache(),this.width=this._getTextWidth(n),this.height=this._getTextHeight(n))},toString:function(){return"#<fabric.Text ("+this.complexity()+'): { "text": "'+this.text+'", "fontFamily": "'+this.fontFamily+'" }>'},_render:function(n){this.clipTo&&t.util.clipContext(this,n);this._setOpacity(n);this._setShadow(n);this._setupCompositeOperation(n);this._renderTextBackground(n);this._setStrokeStyles(n);this._setFillStyles(n);this._renderText(n);this._renderTextDecoration(n);this.clipTo&&n.restore()},_renderText:function(n){this._renderTextFill(n);this._renderTextStroke(n)},_setTextStyles:function(n){n.textBaseline="alphabetic";n.font=this._getFontDeclaration()},_getTextHeight:function(){return this._getHeightOfSingleLine()+(this._textLines.length-1)*this._getHeightOfLine()},_getTextWidth:function(n){for(var r,t=this._getLineWidth(n,0),i=1,u=this._textLines.length;i<u;i++)r=this._getLineWidth(n,i),r>t&&(t=r);return t},_getNonTransformedDimensions:function(){return{x:this.width,y:this.height}},_renderChars:function(n,t,i,r,u){var o,s,f=n.slice(0,-4),h,c,l,e,a;if(this[f].toLive&&(h=-this.width/2+this[f].offsetX||0,c=-this.height/2+this[f].offsetY||0,t.save(),t.translate(h,c),r-=h,u-=c),0!==this.charSpacing)for(l=this._getWidthOfCharSpacing(),i=i.split(""),e=0,a=i.length;e<a;e++)o=i[e],s=t.measureText(o).width+l,t[n](o,r,u),r+=s>0?s:0;else t[n](i,r,u);this[f].toLive&&t.restore()},_renderTextLine:function(n,t,i,r,u,f){var c;if(u-=this.fontSize*this._fontSizeFraction,c=this._getLineWidth(t,f),"justify"!==this.textAlign||this.width<c)return void this._renderChars(n,t,i,r,u,f);for(var o,s=i.split(/\s+/),e=0,v=this._getWidthOfWords(t,s.join(""),f,0),y=this.width-v,l=s.length-1,p=l>0?y/l:0,a=0,h=0,w=s.length;h<w;h++){for(;" "===i[e]&&e<i.length;)e++;o=s[h];this._renderChars(n,t,o,r+a,u,f,e);a+=this._getWidthOfWords(t,o,f,e)+p;e+=o.length}},_getWidthOfWords:function(n,t){var r,u,i=n.measureText(t).width;return 0!==this.charSpacing&&(r=t.split("").length,u=r*this._getWidthOfCharSpacing(),i+=u),i>0?i:0},_getLeftOffset:function(){return-this.width/2},_getTopOffset:function(){return-this.height/2},isEmptyStyles:function(){return!0},_renderTextCommon:function(n,t){for(var r=0,f=this._getLeftOffset(),e=this._getTopOffset(),i=0,o=this._textLines.length;i<o;i++){var u=this._getHeightOfLine(n,i),s=u/this.lineHeight,h=this._getLineWidth(n,i),c=this._getLineLeftOffset(h);this._renderTextLine(t,n,this._textLines[i],f+c,e+r+s,i);r+=u}},_renderTextFill:function(n){!this.fill&&this.isEmptyStyles()||this._renderTextCommon(n,"fillText")},_renderTextStroke:function(n){(this.stroke&&0!==this.strokeWidth||!this.isEmptyStyles())&&(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(n),n.save(),this._setLineDash(n,this.strokedashArray),n.beginPath(),this._renderTextCommon(n,"strokeText"),n.closePath(),n.restore(
22))},_getHeightOfLine:function(){return this._getHeightOfSingleLine()*this.lineHeight},_getHeightOfSingleLine:function(){return this.fontSize*this._fontSizeMult},_renderTextBackground:function(n){this._renderTextBoxBackground(n);this._renderTextLinesBackground(n)},_renderTextBoxBackground:function(n){this.backgroundColor&&(n.fillStyle=this.backgroundColor,n.fillRect(this._getLeftOffset(),this._getTopOffset(),this.width,this.height),this._removeShadow(n))},_renderTextLinesBackground:function(n){var r,i,f,u,t,e;if(this.textBackgroundColor){for(u=0,n.fillStyle=this.textBackgroundColor,t=0,e=this._textLines.length;t<e;t++)r=this._getHeightOfLine(n,t),i=this._getLineWidth(n,t),i>0&&(f=this._getLineLeftOffset(i),n.fillRect(this._getLeftOffset()+f,this._getTopOffset()+u,i,r/this.lineHeight)),u+=r;this._removeShadow(n)}},_getLineLeftOffset:function(n){return"center"===this.textAlign?(this.width-n)/2:"right"===this.textAlign?this.width-n:0},_clearCache:function(){this.__lineWidths=[];this.__lineHeights=[]},_shouldClearCache:function(){var t=!1,n;if(this._forceClearCache)return this._forceClearCache=!1,!0;for(n in this._dimensionAffectingProps)this["__"+n]!==this[n]&&(this["__"+n]=this[n],t=!0);return t},_getLineWidth:function(n,t){if(this.__lineWidths[t])return this.__lineWidths[t]===-1?this.width:this.__lineWidths[t];var i,r,u=this._textLines[t];return i=""===u?0:this._measureLine(n,t),this.__lineWidths[t]=i,i&&"justify"===this.textAlign&&(r=u.split(/\s+/),r.length>1&&(this.__lineWidths[t]=-1)),i},_getWidthOfCharSpacing:function(){return 0!==this.charSpacing?this.fontSize*this.charSpacing/1e3:0},_measureLine:function(n,t){var r,i,u=this._textLines[t],e=n.measureText(u).width,f=0;return 0!==this.charSpacing&&(r=u.split("").length,f=(r-1)*this._getWidthOfCharSpacing()),i=e+f,i>0?i:0},_renderTextDecoration:function(n){function r(i){for(var f,s,e,h,c,l=0,r=0,o=t._textLines.length;r<o;r++){for(e=t._getLineWidth(n,r),h=t._getLineLeftOffset(e),c=t._getHeightOfLine(n,r),f=0,s=i.length;f<s;f++)n.fillRect(t._getLeftOffset()+h,l+(t._fontSizeMult-1+i[f])*t.fontSize-u,e,t.fontSize/15);l+=c}}if(this.textDecoration){var u=this.height/2,t=this,i=[];this.textDecoration.indexOf("underline")>-1&&i.push(.85);this.textDecoration.indexOf("line-through")>-1&&i.push(.43);this.textDecoration.indexOf("overline")>-1&&i.push(-.12);i.length>0&&r(i)}},_getFontDeclaration:function(){return[t.isLikelyNode?this.fontWeight:this.fontStyle,t.isLikelyNode?this.fontStyle:this.fontWeight,this.fontSize+"px",'"'+this.fontFamily+'"'].join(" ")},render:function(n,t){this.visible&&(n.save(),this._setTextStyles(n),this._shouldClearCache()&&this._initDimensions(n),this.drawSelectionBackground(n),t||this.transform(n),this.transformMatrix&&n.transform.apply(n,this.transformMatrix),this.group&&"path-group"===this.group.type&&n.translate(this.left,this.top),this._render(n),n.restore())},_splitTextIntoLines:function(){return this.text.split(this._reNewline)},toObject:function(n){var t=f(this.callSuper("toObject",n),{text:this.text,fontSize:this.fontSize,fontWeight:this.fontWeight,fontFamily:this.fontFamily,fontStyle:this.fontStyle,lineHeight:this.lineHeight,textDecoration:this.textDecoration,textAlign:this.textAlign,textBackgroundColor:this.textBackgroundColor,charSpacing:this.charSpacing});return this.includeDefaultValues||this._removeDefaultValues(t),t},toSVG:function(n){this.ctx||(this.ctx=t.util.createCanvasElement().getContext("2d"));var i=this._createBaseSVGMarkup(),r=this._getSVGLeftTopOffsets(this.ctx),u=this._getSVGTextAndBg(r.textTop,r.textLeft);return this._wrapSVGTextAndBg(i,u),n?n(i.join("")):i.join("")},_getSVGLeftTopOffsets:function(n){var t=this._getHeightOfLine(n,0),i=-this.width/2;return{textLeft:i+(this.group&&"path-group"===this.group.type?this.left:0),textTop:0+(this.group&&"path-group"===this.group.type?-this.top:0),lineTop:t}},_wrapSVGTextAndBg:function(n,t){var i=this.getSvgFilter(),r=""===i?"":' style="'+i+'"';n.push("\t<g ",this.getSvgId(),'transform="',this.getSvgTransform(),this.getSvgTransformMatrix(),'"',r,">\n",t.textBgRects.join(""),"\t\t<text ",this.fontFamily?'font-family="'+this.fontFamily.replace(/"/g,"'")+'" ':"",this.fontSize?'font-size="'+this.fontSize+'" ':"",this.fontStyle?'font-style="'+this.fontStyle+'" ':"",this.fontWeight?'font-weight="'+this.fontWeight+'" ':"",this.textDecoration?'text-decoration="'+this.textDecoration+'" ':"",'style="',this.get
22SvgStyles(!0),'" >\n',t.textSpans.join(""),"\t\t<\/text>\n","\t<\/g>\n")},_getSVGTextAndBg:function(n,t){var f=[],r=[],u=0,i,e;for(this._setSVGBg(r),i=0,e=this._textLines.length;i<e;i++)this.textBackgroundColor&&this._setSVGTextLineBg(r,i,t,n,u),this._setSVGTextLineText(i,f,u,t,n,r),u+=this._getHeightOfLine(this.ctx,i);return{textSpans:f,textBgRects:r}},_setSVGTextLineText:function(n,u,f,e,o){var s=this.fontSize*(this._fontSizeMult-this._fontSizeFraction)-o+f-this.height/2;return"justify"===this.textAlign?void this._setSVGTextLineJustifed(n,u,s,e):void u.push('\t\t\t<tspan x="',i(e+this._getLineLeftOffset(this._getLineWidth(this.ctx,n)),r),'" ','y="',i(s,r),'" ',this._getFillAttributes(this.fill),">",t.util.string.escapeXml(this._textLines[n]),"<\/tspan>\n")},_setSVGTextLineJustifed:function(n,u,f,e){var o=t.util.createCanvasElement().getContext("2d");this._setTextStyles(o);var h,c,a=this._textLines[n],s=a.split(/\s+/),v=this._getWidthOfWords(o,s.join("")),y=this.width-v,l=s.length-1,p=l>0?y/l:0,w=this._getFillAttributes(this.fill);for(e+=this._getLineLeftOffset(this._getLineWidth(o,n)),n=0,c=s.length;n<c;n++)h=s[n],u.push('\t\t\t<tspan x="',i(e,r),'" ','y="',i(f,r),'" ',w,">",t.util.string.escapeXml(h),"<\/tspan>\n"),e+=this._getWidthOfWords(o,h)+p},_setSVGTextLineBg:function(n,t,u,f,e){n.push("\t\t<rect ",this._getFillAttributes(this.textBackgroundColor),' x="',i(u+this._getLineLeftOffset(this._getLineWidth(this.ctx,t)),r),'" y="',i(e-this.height/2,r),'" width="',i(this._getLineWidth(this.ctx,t),r),'" height="',i(this._getHeightOfLine(this.ctx,t)/this.lineHeight,r),'"><\/rect>\n')},_setSVGBg:function(n){this.backgroundColor&&n.push("\t\t<rect ",this._getFillAttributes(this.backgroundColor),' x="',i(-this.width/2,r),'" y="',i(-this.height/2,r),'" width="',i(this.width,r),'" height="',i(this.height,r),'"><\/rect>\n')},_getFillAttributes:function(n){var i=n&&"string"==typeof n?new t.Color(n):"";return i&&i.getSource()&&1!==i.getAlpha()?'opacity="'+i.getAlpha()+'" fill="'+i.setAlpha(1).toRgb()+'"':'fill="'+n+'"'},_set:function(n,t){this.callSuper("_set",n,t);n in this._dimensionAffectingProps&&(this._initDimensions(),this.setCoords())},complexity:function(){return 1}});t.Text.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x y dx dy font-family font-style font-weight font-size text-decoration text-anchor".split(" "));t.Text.DEFAULT_SVG_FONT_SIZE=16;t.Text.fromElement=function(n,i){var u,f;if(!n)return null;u=t.parseAttributes(n,t.Text.ATTRIBUTE_NAMES);i=t.util.object.extend(i?t.util.object.clone(i):{},u);i.top=i.top||0;i.left=i.left||0;"dx"in u&&(i.left+=u.dx);"dy"in u&&(i.top+=u.dy);"fontSize"in i||(i.fontSize=t.Text.DEFAULT_SVG_FONT_SIZE);i.originX||(i.originX="left");f="";"textContent"in n?f=n.textContent:"firstChild"in n&&null!==n.firstChild&&"data"in n.firstChild&&null!==n.firstChild.data&&(f=n.firstChild.data);f=f.replace(/^\s+|\s+$|\n+/g,"").replace(/\s+/g," ");var r=new t.Text(f,i),o=r.getHeight()/r.height,s=(r.height+r.strokeWidth)*r.lineHeight-r.height,h=s*o,c=r.getHeight()+h,e=0;return"left"===r.originX&&(e=r.getWidth()/2),"right"===r.originX&&(e=-r.getWidth()/2),r.set({left:r.getLeft()+e,top:r.getTop()-c/2+r.fontSize*(.18+r._fontSizeFraction)/r.lineHeight}),r};t.Text.fromObject=function(n){return new t.Text(n.text,e(n))};t.util.createAccessors(t.Text)}("undefined"!=typeof exports?exports:this),function(){var n=fabric.util.object.clone;fabric.IText=fabric.util.createClass(fabric.Text,fabric.Observable,{type:"i-text",selectionStart:0,selectionEnd:0,selectionColor:"rgba(17,119,255,0.3)",isEditing:!1,editable:!0,editingBorderColor:"rgba(102,153,255,0.25)",cursorWidth:2,cursorColor:"#333",cursorDelay:1e3,cursorDuration:600,styles:null,caching:!0,_reSpace:/\s|\n/,_currentCursorOpacity:0,_selectionDirection:null,_abortCursorAnimation:!1,__widthOfSpace:[],initialize:function(n,t){this.styles=t?t.styles||{}:{};this.callSuper("initialize",n,t);this.initBehavior()},_clearCache:function(){this.callSuper("_clearCache");this.__widthOfSpace=[]},isEmptyStyles:function(){var n,t,i,r;if(!this.styles)return!0;n=this.styles;for(t in n)for(i in n[t])for(r in n[t][i])return!1;return!0},setSelectionStart:function(n){n=Math.max(n,0);this._updateAndFire("selectionStart",n)},setSelectionEnd:function(n){n=Math.min(n,this.text.length);this._updateAndFire("selectionEnd",n)},_updateAndFire:function(n,t){this[n]!==t&&(this._fireSelectionChanged(),this[n]=t);this._updateTextarea()},_fireSelectionChanged:function(){this.fire("selection:changed");this.canvas&&this.canvas.fire("text:selection:changed",{target:this})},getSelectionStyles:function(n,t){var r,i,u,f;if(2===arguments.length){for(r=[],i=n;i<t;i++)r.push(this.getSelectionStyles(i));return r}return u=this.get2DCursorLocation(n),f=this._getStyleDeclaration(u.lineIndex,u.charIndex),f||{}},setSelectionStyles:function(n){if(this.selectionStart===this.selectionEnd)this._extendStyles(this.selectionStart,n);else for(var t=this.selectionStart;t<this.selectionEnd;t++)this._extendStyles(t,n);return this._forceClearCache=!0,this},_extendStyles:function(n,t){var i=this.get2DCursorLocation(n);this._getLineStyle(i.lineIndex)||this._setLineStyle(i.lineIndex,{});this._getStyleDeclaration(i.lineIndex,i.charIndex)||this._setStyleDeclaration(i.lineIndex,i.charIndex,{});fabric.util.object.extend(this._getStyleDeclaration(i.lineIndex,i.charIndex),t)},_render:function(n){this.oldWidth=this.width;this.oldHeight=this.height;this.callSuper("_render",n);this.ctx=n;
vendor: 4,332 bytes, line 22
22this.cursorOffsetCache={};this.renderCursorOrSelection()},renderCursorOrSelection:function(){if(this.active&&this.isEditing){var t,n,i=this.text.split("");this.canvas.contextTop?(n=this.canvas.contextTop,n.save(),n.transform.apply(n,this.canvas.viewportTransform),this.transform(n),this.transformMatrix&&n.transform.apply(n,this.transformMatrix),this._clearTextArea(n)):(n=this.ctx,n.save());this.selectionStart===this.selectionEnd?(t=this._getCursorBoundaries(i,"cursor"),this.renderCursor(t,n)):(t=this._getCursorBoundaries(i,"selection"),this.renderSelection(i,t,n));n.restore()}},_clearTextArea:function(n){var t=this.oldWidth+4,i=this.oldHeight+4;n.clearRect(-t/2,-i/2,t,i)},get2DCursorLocation:function(n){"undefined"==typeof n&&(n=this.selectionStart);for(var i=this._textLines.length,t=0;t<i;t++){if(n<=this._textLines[t].length)return{lineIndex:t,charIndex:n};n-=this._textLines[t].length+1}return{lineIndex:t-1,charIndex:this._textLines[t-1].length<n?this._textLines[t-1].length:n}},getCurrentCharStyle:function(n,t){var i=this._getStyleDeclaration(n,0===t?0:t-1);return{fontSize:i&&i.fontSize||this.fontSize,fill:i&&i.fill||this.fill,textBackgroundColor:i&&i.textBackgroundColor||this.textBackgroundColor,textDecoration:i&&i.textDecoration||this.textDecoration,fontFamily:i&&i.fontFamily||this.fontFamily,fontWeight:i&&i.fontWeight||this.fontWeight,fontStyle:i&&i.fontStyle||this.fontStyle,stroke:i&&i.stroke||this.stroke,strokeWidth:i&&i.strokeWidth||this.strokeWidth}},getCurrentCharFontSize:function(n,t){var i=this._getStyleDeclaration(n,0===t?0:t-1);return i&&i.fontSize?i.fontSize:this.fontSize},getCurrentCharColor:function(n,t){var i=this._getStyleDeclaration(n,0===t?0:t-1);return i&&i.fill?i.fill:this.cursorColor},_getCursorBoundaries:function(n,t){var r=Math.round(this._getLeftOffset()),u=this._getTopOffset(),i=this._getCursorBoundariesOffsets(n,t);return{left:r,top:u,leftOffset:i.left+i.lineLeft,topOffset:i.top}},_getCursorBoundariesOffsets:function(n,t){if(this.cursorOffsetCache&&"top"in this.cursorOffsetCache)return this.cursorOffsetCache;for(var o,s=0,i=0,r=0,e=0,u=0,f=0;f<this.selectionStart;f++)"\n"===n[f]?(u=0,e+=this._getHeightOfLine(this.ctx,i),i++,r=0):(u+=this._getWidthOfChar(this.ctx,n[f],i,r),r++),s=this._getLineLeftOffset(this._getLineWidth(this.ctx,i));return"cursor"===t&&(e+=(1-this._fontSizeFraction)*this._getHeightOfLine(this.ctx,i)/this.lineHeight-this.getCurrentCharFontSize(i,r)*(1-this._fontSizeFraction)),0!==this.charSpacing&&r===this._textLines[i].length&&(u-=this._getWidthOfCharSpacing()),o={top:e,left:u>0?u:0,lineLeft:s},this.cursorOffsetCache=o,this.cursorOffsetCache},renderCursor:function(n,t){var u=this.get2DCursorLocation(),i=u.lineIndex,r=u.charIndex,e=this.getCurrentCharFontSize(i,r),o=0===i&&0===r?this._getLineLeftOffset(this._getLineWidth(t,i)):n.leftOffset,s=this.scaleX*this.canvas.getZoom(),f=this.cursorWidth/s;t.fillStyle=this.getCurrentCharColor(i,r);t.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity;t.fillRect(n.left+o-f/2,n.top+n.topOffset,f,e)},renderSelection:function(n,t,i){var u,p,s,w;i.fillStyle=this.selectionColor;for(var c=this.get2DCursorLocation(this.selectionStart),h=this.get2DCursorLocation(this.selectionEnd),l=c.lineIndex,o=h.lineIndex,r=l;r<=o;r++){var v=this._getLineLeftOffset(this._getLineWidth(i,r))||0,a=this._getHeightOfLine(this.ctx,r),y=0,f=0,e=this._textLines[r];if(r===l){for(u=0,p=e.length;u<p;u++)u>=c.charIndex&&(r!==o||u<h.charIndex)&&(f+=this._getWidthOfChar(i,e[u],r,u)),u<c.charIndex&&(v+=this._getWidthOfChar(i,e[u],r,u));u===e.length&&(f-=this._getWidthOfCharSpacing())}else if(r>l&&r<o)f+=this._getLineWidth(i,r)||5;else if(r===o){for(s=0,w=h.charIndex;s<w;s++)f+=this._getWidthOfChar(i,e[s],r,s);h.charIndex===e.length&&(f-=this._getWidthOfCharSpacing())}y=a;(this.lineHeight<1||r===o&&this.lineHeight>1)&&(a/=this.lineHeight);i.fillRect(t.left+v,t.top+t.topOffset,f>0?f:0,a);t.topOffset+=y}},_renderChars:function(n,t,i,r,u,f,e){var s,c,l,h,o,a;if(this.isEmptyStyles())return this._renderCharsFast(n,t,i,r,u);for(e=e||0,l=this._getHeightOfLine(t,f),h="",t.save(),u-=l/this.lineHeight*this._fontSizeFraction,o=e,a=i.length+e;o<=a;o++)s=s||this.getCurrentCharStyle(f,o),c=this.getCurrentCharStyle(f,o+1),(this._hasStyleChanged(s,c)||o===a)&&(this._renderChar(n,t,f,o-1,h,r,u,l),h="",s=c),h+=i[o-e];
22t.restore()},_renderCharsFast:function(n,t,i,r,u){"fillText"===n&&this.fill&&this.callSuper("_renderChars",n,t,i,r,u);"strokeText"===n&&(this.stroke&&this.strokeWidth>0||this.skipFillStrokeCheck)&&this.callSuper("_renderChars",n,t,i,r,u)},_renderChar:function(n,t,i,r,u,f,e,o){var h,p,l,a,k,c,w,d,b,s=this._getStyleDeclaration(i,r),v,y,g;if(s?(p=this._getHeightOfChar(t,u,i,r),a=s.stroke,l=s.fill,c=s.textDecoration):p=this.fontSize,a=(a||this.stroke)&&"strokeText"===n,l=(l||this.fill)&&"fillText"===n,s&&t.save(),h=this._applyCharStylesGetWidth(t,u,i,r,s||null),c=c||this.textDecoration,s&&s.textBackgroundColor&&this._removeShadow(t),0!==this.charSpacing)for(d=this._getWidthOfCharSpacing(),w=u.split(""),h=0,y=0,g=w.length;y<g;y++)v=w[y],l&&t.fillText(v,f+h,e),a&&t.strokeText(v,f+h,e),b=t.measureText(v).width+d,h+=b>0?b:0;else l&&t.fillText(u,f,e),a&&t.strokeText(u,f,e);(c||""!==c)&&(k=this._fontSizeFraction*o/this.lineHeight,this._renderCharDecoration(t,c,f,e,k,h,p));s&&t.restore();t.translate(h,0)},_hasStyleChanged:function(n,t){return n.fill!==t.fill||n.fontSize!==t.fontSize||n.textBackgroundColor!==t.textBackgroundColor||n.textDecoration!==t.textDecoration||n.fontFamily!==t.fontFamily||n.fontWeight!==t.fontWeight||n.fontStyle!==t.fontStyle||n.stroke!==t.stroke||n.strokeWidth!==t.strokeWidth},_renderCharDecoration:function(n,t,i,r,u,f,e){if(t)for(var s,h=e/15,l={underline:r+e/10,"line-through":r-e*(this._fontSizeFraction+this._fontSizeMult-1)+h,overline:r-(this._fontSizeMult-this._fontSizeFraction)*e},c=["underline","line-through","overline"],o=0;o<c.length;o++)s=c[o],t.indexOf(s)>-1&&n.fillRect(i,l[s],f,h)},_renderTextLine:function(n,t,i,r,u,f){this.isEmptyStyles()||(u+=this.fontSize*(this._fontSizeFraction+.03));this.callSuper("_renderTextLine",n,t,i,r,u,f)},_renderTextDecoration:function(n){if(this.isEmptyStyles())return this.callSuper("_renderTextDecoration",n)},_renderTextLinesBackground:function(n){var i,c;this.callSuper("_renderTextLinesBackground",n);for(var r,o,s,u,h,f,e=0,l=this._getLeftOffset(),a=this._getTopOffset(),t=0,v=this._textLines.length;t<v;t++)if(r=this._getHeightOfLine(n,t),u=this._textLines[t],""!==u&&this.styles&&this._getLineStyle(t)){for(o=this._getLineWidth(n,t),s=this._getLineLeftOffset(o),i=0,c=u.length;i<c;i++)f=this._getStyleDeclaration(t,i),f&&f.textBackgroundColor&&(h=u[i],n.fillStyle=f.textBackgroundColor,n.fillRect(l+s+this._getWidthOfCharsAt(n,t,i),a+e,this._getWidthOfChar(n,h,t,i)+1,r/this.lineHeight));e+=r}else e+=r},_getCacheProp:function(n,t){return n+t.fontSize+t.fontWeight+t.fontStyle},_getFontCache:function(n){return fabric.charWidthsCache[n]||(fabric.charWidthsCache[n]={}),fabric.charWidthsCache[n]},_applyCharStylesGetWidth:function(t,i,r,u,f){var c,o,s,l=f||this._getStyleDeclaration(r,u),e=n(l),h;return(this._applyFontStyles(e),s=this._getFontCache(e.fontFamily),o=this._getCacheProp(i,e),!l&&s[o]&&this.caching)?s[o]:("string"==typeof e.shadow&&(e.shadow=new fabric.Shadow(e.shadow)),h=e.fill||this.fill,t.fillStyle=h.toLive?h.toLive(t,this):h,e.stroke&&(t.strokeStyle=e.stroke&&e.stroke.toLive?e.stroke.toLive(t,this):e.stroke),t.lineWidth=e.strokeWidth||this.strokeWidth,t.font=this._getFontDeclaration.call(e),e.shadow&&(e.scaleX=this.scaleX,e.scaleY=this.scaleY,e.canvas=this.canvas,this._setShadow.call(e,t)),this.caching&&s[o]?s[o]:(c=t.measureText(i).width,this.caching&&(s[o]=c),c))},_applyFontStyles:function(n){n.fontFamily||(n.fontFamily=this.fontFamily);n.fontSize||(n.fontSize=this.fontSize);n.fontWeight||(n.fontWeight=this.fontWeight);n.fontStyle||(n.fontStyle=this.fontStyle)},_getStyleDeclaration:function(t,i,r){return r?this.styles[t]&&this.styles[t][i]?n(this.styles[t][i]):{}:this.styles[t]&&this.styles[t][i]?this.styles[t][i]:null},_setStyleDeclaration:function(n,t,i){this.styles[n][t]=i},_deleteStyleDeclaration:function(n,t){delete this.styles[n][t]},_getLineStyle:function(n){return this.styles[n]},_setLineStyle:function(n,t){this.styles[n]=t},_deleteLineStyle:function(n){delete this.styles[n]},_getWidthOfChar:function(n,t,i,r){if(!this._isMeasuring&&"justify"===this.textAlign&&this._reSpacesAndTabs.test(t))return this._getWidthOfSpace(n,i);n.save();var u=this._applyCharStylesGetWidth(n,t,i,r);return 0!==this.charSpacing&&(u+=this._getWidthOfCharSpacing()),n.restore(
22),u>0?u:0},_getHeightOfChar:function(n,t,i){var r=this._getStyleDeclaration(t,i);return r&&r.fontSize?r.fontSize:this.fontSize},_getWidthOfCharsAt:function(n,t,i){for(var u,f=0,r=0;r<i;r++)u=this._textLines[t][r],f+=this._getWidthOfChar(n,u,t,r);return f},_measureLine:function(n,t){this._isMeasuring=!0;var i=this._getWidthOfCharsAt(n,t,this._textLines[t].length);return 0!==this.charSpacing&&(i-=this._getWidthOfCharSpacing()),this._isMeasuring=!1,i>0?i:0},_getWidthOfSpace:function(n,t){if(this.__widthOfSpace[t])return this.__widthOfSpace[t];var i=this._textLines[t],u=this._getWidthOfWords(n,i,t,0),f=this.width-u,e=i.length-i.replace(this._reSpacesAndTabs,"").length,r=Math.max(f/e,n.measureText(" ").width);return this.__widthOfSpace[t]=r,r},_getWidthOfWords:function(n,t,i,r){for(var e,f=0,u=0;u<t.length;u++)e=t[u],e.match(/\s/)||(f+=this._getWidthOfChar(n,e,i,u+r));return f},_getHeightOfLine:function(n,t){var u;if(this.__lineHeights[t])return this.__lineHeights[t];for(var f=this._textLines[t],i=this._getHeightOfChar(n,t,0),r=1,e=f.length;r<e;r++)u=this._getHeightOfChar(n,t,r),u>i&&(i=u);return this.__lineHeights[t]=i*this.lineHeight*this._fontSizeMult,this.__lineHeights[t]},_getTextHeight:function(n){for(var i,r=0,t=0,u=this._textLines.length;t<u;t++)i=this._getHeightOfLine(n,t),r+=t===u-1?i/this.lineHeight:i;return r},toObject:function(t){var i,r,u,f={};for(i in this.styles){u=this.styles[i];f[i]={};for(r in u)f[i][r]=n(u[r])}return fabric.util.object.extend(this.callSuper("toObject",t),{styles:f})}});fabric.IText.fromObject=function(t){return new fabric.IText(t.text,n(t))}}(),function(){var n=fabric.util.object.clone;fabric.util.object.extend(fabric.IText.prototype,{initBehavior:function(){this.initAddedHandler();this.initRemovedHandler();this.initCursorSelectionHandlers();this.initDoubleClickSimulation()},initSelectedHandler:function(){this.on("selected",function(){var n=this;setTimeout(function(){n.selected=!0},100)})},initAddedHandler:function(){var n=this;this.on("added",function(){this.canvas&&!this.canvas._hasITextHandlers&&(this.canvas._hasITextHandlers=!0,this._initCanvasHandlers());n.canvas&&(n.canvas._iTextInstances=n.canvas._iTextInstances||[],n.canvas._iTextInstances.push(n))})},initRemovedHandler:function(){var n=this;this.on("removed",function(){n.canvas&&(n.canvas._iTextInstances=n.canvas._iTextInstances||[],fabric.util.removeFromArray(n.canvas._iTextInstances,n))})},_initCanvasHandlers:function(){var n=this;this.canvas.on("selection:cleared",function(){fabric.IText.prototype.exitEditingOnOthers(n.canvas)});this.canvas.on("mouse:up",function(){n.canvas._iTextInstances&&n.canvas._iTextInstances.forEach(function(n){n.__isMousedown=!1})});this.canvas.on("object:selected",function(){fabric.IText.prototype.exitEditingOnOthers(n.canvas)})},_tick:function(){this._currentTickState=this._animateCursor(this,1,this.cursorDuration,"_onTickComplete")},_animateCursor:function(n,t,i,r){var u;return u={isAborted:!1,abort:function(){this.isAborted=!0}},n.animate("_currentCursorOpacity",t,{duration:i,onComplete:function(){u.isAborted||n[r]()},onChange:function(){n.canvas&&n.selectionStart===n.selectionEnd&&n.renderCursorOrSelection()},abort:function(){return u.isAborted}}),u},_onTickComplete:function(){var n=this;this._cursorTimeout1&&clearTimeout(this._cursorTimeout1);this._cursorTimeout1=setTimeout(function(){n._currentTickCompleteState=n._animateCursor(n,0,this.cursorDuration/2,"_tick")},100)},initDelayedCursor:function(n){var t=this,i=n?0:this.cursorDelay;this.abortCursorAnimation();this._currentCursorOpacity=1;this._cursorTimeout2=setTimeout(function(){t._tick()},i)},abortCursorAnimation:function(){var n=this._currentTickState||this._currentTickCompleteState;this._currentTickState&&this._currentTickState.abort();this._currentTickCompleteState&&this._currentTickCompleteState.abort();clearTimeout(this._cursorTimeout1);clearTimeout(this._cursorTimeout2);this._currentCursorOpacity=0;n&&this.canvas&&this.canvas.clearContext(this.canvas.contextTop||this.ctx)},selectAll:function(){this.selectionStart=0;this.selectionEnd=this.text.length;this._fireSelectionChanged();this._updateTextarea()},getSelectedText:function(){return this.text.slice(this.selectionStart,this.selectionEnd)},findWordBoundaryLeft:function(n){var i=0,t=n-1;if(this._reSpace.test(this.text.charAt(t)))for(;this._reSpace.test(this.text.charAt(t));)i++,t--;for(;/\S/.test(this.text.charAt(t))&&t>-1;)i++,t--;return n-i},findWordBoundaryRight:function(n){var i=0,t=n;if(this._reSpace.test(this.text.charAt(t)))for(;this._reSpace.test(this.text.charAt(t));)i++,t++;for(;/\S/.test(this.text.charAt(t))&&t<this.text.length;)i++,t++;return n+i},findLineBoundaryLeft:function(n){for(var i=0,t=n-1;!/\n/.test(this.text.charAt(t))&&t>-1;)i++,t--;return n-i},findLineBoundaryRight:function(n){for(var i=0,t=n;!/\n/.test(this.text.charAt(t))&&t<this.text.length;)i++,t++;return n+i},getNumNewLinesInSelectedText:function(){for(var t=this.getSelectedText(),i=0,n=0,r=t.length;n<r;n++)"\n"===t[n]&&i++;return i},searchWordBoundary:function(n,t){for(var i=this._reSpace.test(this.text.charAt(n))?n-1:n,r=this.text.charAt(i),u=/[ \
22n\.,;!\?\-]/;!u.test(r)&&i>0&&i<this.text.length;)i+=t,r=this.text.charAt(i);return u.test(r)&&"\n"!==r&&(i+=1===t?0:1),i},selectWord:function(n){n=n||this.selectionStart;var t=this.searchWordBoundary(n,-1),i=this.searchWordBoundary(n,1);this.selectionStart=t;this.selectionEnd=i;this._fireSelectionChanged();this._updateTextarea();this.renderCursorOrSelection()},selectLine:function(n){n=n||this.selectionStart;var t=this.findLineBoundaryLeft(n),i=this.findLineBoundaryRight(n);this.selectionStart=t;this.selectionEnd=i;this._fireSelectionChanged();this._updateTextarea()},enterEditing:function(n){if(!this.isEditing&&this.editable)return this.canvas&&this.exitEditingOnOthers(this.canvas),this.isEditing=!0,this.initHiddenTextarea(n),this.hiddenTextarea.focus(),this._updateTextarea(),this._saveEditingProps(),this._setEditingProps(),this._textBeforeEdit=this.text,this._tick(),this.fire("editing:entered"),this.canvas?(this.canvas.fire("text:editing:entered",{target:this}),this.canvas.renderAll(),this.initMouseMoveHandler(),this):this},exitEditingOnOthers:function(n){n._iTextInstances&&n._iTextInstances.forEach(function(n){n.selected=!1;n.isEditing&&n.exitEditing()})},initMouseMoveHandler:function(){this.canvas.on("mouse:move",this.mouseMoveHandler.bind(this))},mouseMoveHandler:function(n){if(this.__isMousedown&&this.isEditing){var t=this.getSelectionStartFromPointer(n.e),i=this.selectionStart,r=this.selectionEnd;t!==this.__selectionStartOnMouseDown&&(t>this.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=t):(this.selectionStart=t,this.selectionEnd=this.__selectionStartOnMouseDown),this.selectionStart===i&&this.selectionEnd===r||(this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}},_setEditingProps:function(){this.hoverCursor="text";this.canvas&&(this.canvas.defaultCursor=this.canvas.moveCursor="text");this.borderColor=this.editingBorderColor;this.hasControls=this.selectable=!1;this.lockMovementX=this.lockMovementY=!0},_updateTextarea:function(){if(this.hiddenTextarea&&!this.inCompositionMode&&(this.cursorOffsetCache={},this.hiddenTextarea.value=this.text,this.hiddenTextarea.selectionStart=this.selectionStart,this.hiddenTextarea.selectionEnd=this.selectionEnd,this.selectionStart===this.selectionEnd)){var n=this._calcTextareaPosition();this.hiddenTextarea.style.left=n.left;this.hiddenTextarea.style.top=n.top;this.hiddenTextarea.style.fontSize=n.fontSize}},_calcTextareaPosition:function(){if(!this.canvas)return{x:1,y:1};var h=this.text.split(""),t=this._getCursorBoundaries(h,"cursor"),u=this.get2DCursorLocation(),r=u.lineIndex,f=u.charIndex,i=this.getCurrentCharFontSize(r,f),c=0===r&&0===f?this._getLineLeftOffset(this._getLineWidth(this.ctx,r)):t.leftOffset,l=this.calcTransformMatrix(),n={x:t.left+c,y:t.top+t.topOffset+i},e=this.canvas.upperCanvasEl,o=e.width-i,s=e.height-i;return n=fabric.util.transformPoint(n,l),n=fabric.util.transformPoint(n,this.canvas.viewportTransform),n.x<0&&(n.x=0),n.x>o&&(n.x=o),n.y<0&&(n.y=0),n.y>s&&(n.y=s),{left:n.x+"px",top:n.y+"px",fontSize:i}},_saveEditingProps:function(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,defaultCursor:this.canvas&&this.canvas.defaultCursor,moveCursor:this.canvas&&this.canvas.moveCursor}},_restoreEditingProps:function(){this._savedProps&&(this.hoverCursor=this._savedProps.overCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas&&(this.canvas.defaultCursor=this._savedProps.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor))},exitEditing:function(){var n=this._textBeforeEdit!==this.text;return this.selected=!1,this.isEditing=!1,this.selectable=!0,this.selectionEnd=this.selectionStart,this.hiddenTextarea&&this.canvas&&this.hiddenTextarea.parentNode.removeChild(this.hiddenTextarea),this.hiddenTextarea=null,this.abortCursorAnimation(),this._restoreEditingProps(),this._currentCursorOpacity=0,this.fire("editing:exited"),n&&this.fire("modified"),this.canvas&&(this.canvas.off("mouse:move",this.mouseMoveHandler),this.canvas.fire("text:editing:exited",{target:this}),n&&this.canvas.fire("object:modified",{target:this})),this},_removeExtraneousStyles:function(){for(var n in this.styles)this._textLines[n]||delete this.styles[n]},_removeCharsFromTo:function(n,t){for(;t!==n;)this._removeSingleCharAndStyle(n+1),t--;this.selectionStart=n;this.selectionEnd=n},_removeSingleCharAndStyle:function(n){var t="\n"===this.text[n-1],i=t?n:n-1;this.removeStyleObject(t,i);this.text=this.text.slice(0,n-1)+this.text.slice(n);this._textLines=this._splitTextIntoLines()},insertChars:function(n,t){var u,i,r;if(this.selectionEnd-this.selectionStart>1&&this._removeCharsFromTo(this.selectionStart,this.selectionEnd),!t&&this.isEmptyStyles())return void this.insertChar(n,!1);for(i=0,r=n.length;i<r;i++)t&&(u=fabric.copiedTextStyle[i]),this.insertChar(n[i],i<r-1,u)},insertChar:function(n,t,i){var r="\n"===this.text[this.selectionStart];this.text=this.text.slice(0,this.selectionStart)+n+this.text.slice(this.selectionEnd);this._textLines=this._splitTextIntoLines();this.insertStyleObjects(n,r,i);this.selectionStart+=n.length;this.selectionEnd=this.selectionStart;t||(this._updateTextarea(),this.setCoords(),this._fireSelectionChanged(),this.fire("changed"),this.canvas&&this.canvas.fire("text:changed",{target:this}),this.canvas&&this.canvas.renderAll())},insertNewlineStyleObject:function(t,i,r){var e,u,f;if(this.shiftLineStyles(t,1),this.styles[t+1]||(this.styles[t+1]={}),e={},u={},this.styles[t]&&this.styles[t][i-1]&&(e=this.styles[t][i-1]),r)u[0]=n(e),this.styles[t+1]=u;else{for(f in this.styles[t])parseInt(f,10)>=i&&(u[parseInt(f,10)-i]=this.styles[t][f],delete this.styles[t][f]);this.styles[t+1]=u}this._forceClearCache=!0},insertCharStyleObject:function(t,i,r){var f=this.styles[t],e=n(f),o,u;0!==i||r||(i=1);for(o in e)u=parseInt(o,10),u>=i&&(f[u+1]=e[u],e[u-1]||delete f[u]);this.styles[t][i]=r||n(f[i-1]);this._forceClearCache=!0},insertStyleObjects:function(n,t,i){var u=this.get2DCursorLocation(),r=u.lineIndex,f=u.charIndex;this._getLineStyle(r)||this._setLineStyle(r,{});"\n"===n?this.insertNewlineStyleObject(r,f,t):this.insertCharStyleObject(r,f,i)},shiftLineStyles:function(t,i){var u=n(this.styles),f,r;for(f in this.styles)r=parseInt(f,10),r>t&&(this.styles[r+i]=u[r],u[r-i]||delete this.styles[r])},removeStyleObject:function(n,t){var i=this.get2DCursorLocation(t),r=i.lineIndex,u=i.charIndex;this._removeStyleObject(n,i,r,u)},_getTextOnPreviousLine:function(n){return this._textLines[n-1]},_removeStyleObject:function(t,i,r,u){var o,h,f,s,c,e;if(t){o=this._getTextOnPreviousLine(i.lineIndex);h=o?o.length:0;this.styles[r-1]||(this.styles[r-1]={});for(u in this.styles[r])this.styles[r-1][parseInt(u,10)+h]=this.styles[r][u];this.shiftLineStyles(i.lineIndex,-1)}else{f=this.styles[r];f&&delete f[u];s=n(f);for(c in s)e=parseInt(c,10),e>=u&&0!==e&&(f[e-1]=s[e],delete f[e])}},insertNewline:function(){this.insertChars("\n")}})}();fabric.util.object.extend(fabric.IText.prototype,{initDoubleClickSimulation:function(){this.__lastClickTime=+new Date;this.__lastLastClickTime=+new Date;this.__lastPointer={};this.on("mousedown",this.onMouseDown.bind(this))},onMouseDown:function(n){this.__newClickTime=+new Date;var t=this.canvas.getPointer(n.e);this.isTripleClick(t)?(this.fire("tripleclick",n),this._stopEvent(n.e)):this.isDoubleClick(t)&&(this.fire("dblclick",n),this._stopEvent(n.e));this.__lastLastClickTime=this.__lastClickTime;this.__lastClickTime=this.__newClickTime;this.__lastPointer=t;this.__lastIsEditing=this.isEditing;this.__lastSelected=this.selected},isDoubleClick:function(n){return this.__newClickTime-this.__lastClickTime<500&&this.__lastPointer.x===n.x&&this.__lastPointer.y===n.y&&this.__lastIsEditing},isTripleClick:function(n){return this.__newClickTime-this.__lastClickTime<500&&this.__lastClickTime-this.__lastLastClickTime<500&&this.__lastPointer.x===n.x&&this.__lastPointer.y===n.y},_stopEvent:function(n){n.preventDefault&&n.preventDefault();n.stopPropagation&&n.stopPropagation()},initCursorSelectionHandlers:function(){this.initSelectedHandler();this.initMousedownHandler();this.initMouseupHandler();this.initClicks()},initClicks:function(){this.on("dblclick",function(n){this.selectWord(this.getSelectionStartFromPointer(n.e))});this.on("tripleclick",function(n){this.selectLine(this.getSelectionStartFromPointer(n.e))})},initMousedownHandler:function(){this.on("mousedown",function(n){if(this.editable){var t=this.canvas.getPointer(n.e);this.__mousedownX=t.x;this.__mousedownY=t.y;this.__isMousedown=!0;this.selected&&this.setCursorByClick(n.e);this.isEditing&&(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd&&this.abortCursorAnimation(),this.renderCursorOrSelection())}})},_isObjectMoved:function(n){var t=this.canvas.getPointer(n);return this.__mousedownX!==t.x||this.__mousedownY!==t.y},initMouseupHandler:function(){this.on("mouseup",function(n){this.__isMousedown=!1;this.editable&&!this._isObjectMoved(n.e)&&(this.__lastSelected&&!this.__corner&&(this.enterEditing(n.e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()),this.selected=!0)})},setCursorByClick:function(n){var t=this.getSelectionStartFromPointer(n);
22n.shiftKey?t<this.selectionStart?(this.selectionEnd=this.selectionStart,this.selectionStart=t):this.selectionEnd=t:(this.selectionStart=t,this.selectionEnd=t);this._fireSelectionChanged();this._updateTextarea()},getSelectionStartFromPointer:function(n){for(var c,l,r,f,a,e,u=this.getLocalPointer(n),o=0,i=0,s=0,h=0,t=0,v=this._textLines.length;t<v;t++){for(e=this._textLines[t],s+=this._getHeightOfLine(this.ctx,t)*this.scaleY,c=this._getLineWidth(this.ctx,t),l=this._getLineLeftOffset(c),i=l*this.scaleX,r=0,f=e.length;r<f;r++){if(o=i,i+=this._getWidthOfChar(this.ctx,e[r],t,this.flipX?f-r:r)*this.scaleX,!(s<=u.y||i<=u.x))return this._getNewSelectionStartFromOffset(u,o,i,h+t,f);h++}if(u.y<s)return this._getNewSelectionStartFromOffset(u,o,i,h+t-1,f)}if("undefined"==typeof a)return this.text.length},_getNewSelectionStartFromOffset:function(n,t,i,r,u){var e=n.x-t,o=i-n.x,s=o>e?0:1,f=r+s;return this.flipX&&(f=u-f),f>this.text.length&&(f=this.text.length),f}});fabric.util.object.extend(fabric.IText.prototype,{initHiddenTextarea:function(){this.hiddenTextarea=fabric.document.createElement("textarea");this.hiddenTextarea.setAttribute("autocapitalize","off");var n=this._calcTextareaPosition();this.hiddenTextarea.style.cssText="position: absolute; top: "+n.top+"; left: "+n.left+"; opacity: 0; width: 0px; height: 0px; z-index: -999;";fabric.document.body.appendChild(this.hiddenTextarea);fabric.util.addListener(this.hiddenTextarea,"keydown",this.onKeyDown.bind(this));fabric.util.addListener(this.hiddenTextarea,"keyup",this.onKeyUp.bind(this));fabric.util.addListener(this.hiddenTextarea,"input",this.onInput.bind(this));fabric.util.addListener(this.hiddenTextarea,"copy",this.copy.bind(this));fabric.util.addListener(this.hiddenTextarea,"cut",this.cut.bind(this));fabric.util.addListener(this.hiddenTextarea,"paste",this.paste.bind(this));fabric.util.addListener(this.hiddenTextarea,"compositionstart",this.onCompositionStart.bind(this));fabric.util.addListener(this.hiddenTextarea,"compositionupdate",this.onCompositionUpdate.bind(this));fabric.util.addListener(this.hiddenTextarea,"compositionend",this.onCompositionEnd.bind(this));!this._clickHandlerInitialized&&this.canvas&&(fabric.util.addListener(this.canvas.upperCanvasEl,"click",this.onClick.bind(this)),this._clickHandlerInitialized=!0)},_keysMap:{8:"removeChars",9:"exitEditing",27:"exitEditing",13:"insertNewline",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorRight",36:"moveCursorLeft",37:"moveCursorLeft",38:"moveCursorUp",39:"moveCursorRight",40:"moveCursorDown",46:"forwardDelete"},_ctrlKeysMapUp:{67:"copy",88:"cut"},_ctrlKeysMapDown:{65:"selectAll"},onClick:function(){this.hiddenTextarea&&this.hiddenTextarea.focus()},onKeyDown:function(n){if(this.isEditing){if(n.keyCode in this._keysMap)this[this._keysMap[n.keyCode]](n);else{if(!(n.keyCode in this._ctrlKeysMapDown&&(n.ctrlKey||n.metaKey)))return;this[this._ctrlKeysMapDown[n.keyCode]](n)}n.stopImmediatePropagation();n.preventDefault();this.canvas&&this.canvas.renderAll()}},onKeyUp:function(n){return!this.isEditing||this._copyDone?void(this._copyDone=!1):void(n.keyCode in this._ctrlKeysMapUp&&(n.ctrlKey||n.metaKey)&&(this[this._ctrlKeysMapUp[n.keyCode]](n),n.stopImmediatePropagation(),n.preventDefault(),this.canvas&&this.canvas.renderAll()))},onInput:function(n){if(this.isEditing&&!this.inCompositionMode){var t,r,u,i=this.selectionStart||0,o=this.selectionEnd||0,f=this.text.length,e=this.hiddenTextarea.value.length;e>f?(u="left"===this._selectionDirection?o:i,t=e-f,r=this.hiddenTextarea.value.slice(u,u+t)):(t=e-f+o-i,r=this.hiddenTextarea.value.slice(i,i+t));this.insertChars(r);n.stopPropagation()}},onCompositionStart:function(){this.inCompositionMode=!0;this.prevCompositionLength=0;this.compositionStart=this.selectionStart},onCompositionEnd:function(){this.inCompositionMode=!1},onCompositionUpdate:function(n){var t=n.data;this.selectionStart=this.compositionStart;this.selectionEnd=this.selectionEnd===this.selectionStart?this.compositionStart+this.prevCompositionLength:this.selectionEnd;this.insertChars(t,!1);this.prevCompositionLength=t.length},forwardDelete:function(n){if(this.selectionStart===this.selectionEnd){if(this.selectionStart===this.text.length)return;this.moveCursorRight(n)}this.removeChars(n)},copy:function(n){if(this.selectionStart!==this.selectionEnd){var t=this.getSelectedText(),i=this._getClipboardData(n);i&&i.setData("text",t);fabric.copiedText=t;fabric.copiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd);n.stopImmediatePropagation();n.preventDefault();this._copyDone=!0}},paste:function(n){var t=null,i=this._getClipboardData(n),r=!0;i?(t=i.getData("text").replace(/\r/g,""),fabric.copiedTextStyle&&fabric.copiedText===t||(r=!1)):t=fabric.copiedText;t&&this.insertChars(t,r);n.stopImmediatePropagation();n.preventDefault()},cut:function(n){this.selectionStart!==this.selectionEnd&&(this.copy(n),this.removeChars(n))},_getClipboardData:function(n){return n&&n.clipboardData||fabric.window.clipboardData},getDownCursorOffset:function(n,t){var f,e,o=t?this.selectionEnd:this.selectionStart,r=this.get2DCursorLocation(o),i=r.lineIndex,s=this._textLines[i].slice(0,r.charIndex),a=this._textLines[i].slice(r.charIndex),v=this._textLines[i+1]||"",h,l;if(i===this._textLines.length-1||n.metaKey||34===n.keyCode)return this.text.length-o;h=this._getLineWidth(this.ctx,i);e=this._getLineLeftOffset(h);for(var c=e,u=0,y=s.length;u<y;u++)f=s[u],c+=this._getWidthOfChar(this.ctx,f,i,u);return l=this._getIndexOnNextLine(r,v,c),a.length+1+l},_getIndexOnNextLine:function(n,t,i){for(var h,e,o,s=n.lineIndex+1,c=this._getLineWidth(this.ctx,s),l=this._getLineLeftOffset(c),u=l,f=0,r=0,a=t.length;r<a;r++)if(h=t[r],e=this._getWidthOfChar(this.ctx,h,s,r),u+=e,u>i){o=!0;var v=u-e,y=u,p=Math.abs(v-i),w=Math.abs(y-i);f=w<p?r+1:r;break}return o||(f=t.length),f},moveCursorDown:function(n){this.selectionStart>=this.text.length&&this.selectionEnd>=this.text.length||this._moveCursorUpOrDown("Down",n)},moveCursorDownWithoutShift:function(n){return this._selectionDirection="right",this.selectionEnd=this.selectionEnd+n,this.selectionStart=this.selectionEnd,0!==n},swapSelectionPoints:function(){var n=this.selectionEnd;this.selectionEnd=this.selectionStart;this.selectionStart=n},moveCursorDownWithShift:function(n){return this.selectionEnd===this.selectionStart&&(this._selectionDirection="right"),"right"===this._selectionDirection?this.selectionEnd+=n:this.selectionStart+=n,this.selectionEnd<this.selectionStart&&"left"===this._selectionDirection&&(this.swapSelectionPoints(),this._selectionDirection="right"),this.selectionEnd>this.text.length&&(this.selectionEnd=this.text.length),0!==n},getUpCursorOffset:function(n,t){var e=t?this.selectionEnd:this.selectionStart,i=this.get2DCursorLocation(e),r=i.lineIndex,c;if(0===r||n.metaKey||33===n.keyCode)return e;for(var o,f=this._textLines[r].slice(0,i.charIndex),s=this._textLines[r-1]||"",l=this._getLineWidth(this.ctx,i.lineIndex),a=this._getLineLeftOffset(l),h=a,u=0,v=f.length;u<v;u++)o=f[u],h+=this._getWidthOfChar(this.ctx,o,r,u);return c=this._getIndexOnPrevLine(i,s,h),s.length-c+f.length},_getIndexOnPrevLine:function(n,t,i){for(var h,e,o,s=n.lineIndex-1,
22c=this._getLineWidth(this.ctx,s),l=this._getLineLeftOffset(c),u=l,f=0,r=0,a=t.length;r<a;r++)if(h=t[r],e=this._getWidthOfChar(this.ctx,h,s,r),u+=e,u>i){o=!0;var v=u-e,y=u,p=Math.abs(v-i),w=Math.abs(y-i);f=w<p?r:r-1;break}return o||(f=t.length-1),f},moveCursorUp:function(n){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorUpOrDown("Up",n)},_moveCursorUpOrDown:function(n,t){var r="get"+n+"CursorOffset",i="moveCursor"+n,u=this[r](t,"right"===this._selectionDirection);i+=t.shiftKey?"WithShift":"WithoutShift";this[i](u)&&(this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorUpWithShift:function(n){return this.selectionEnd===this.selectionStart&&(this._selectionDirection="left"),"right"===this._selectionDirection?this.selectionEnd-=n:this.selectionStart-=n,this.selectionEnd<this.selectionStart&&"right"===this._selectionDirection&&(this.swapSelectionPoints(),this._selectionDirection="left"),0!==n},moveCursorUpWithoutShift:function(n){return this._selectionDirection="left",this.selectionStart-=n,this.selectionEnd=this.selectionStart,0!==n},moveCursorLeft:function(n){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorLeftOrRight("Left",n)},_move:function(n,t,i){var r;if(n.altKey)r=this["findWordBoundary"+i](this[t]);else{if(!n.metaKey&&35!==n.keyCode&&36!==n.keyCode)return this[t]+="Left"===i?-1:1,!0;r=this["findLineBoundary"+i](this[t])}if(void 0!==typeof r&&this[t]!==r)return this[t]=r,!0},_moveLeft:function(n,t){return this._move(n,t,"Left")},_moveRight:function(n,t){return this._move(n,t,"Right")},moveCursorLeftWithoutShift:function(n){var t=!0;return this._selectionDirection="left",this.selectionEnd===this.selectionStart&&0!==this.selectionStart&&(t=this._moveLeft(n,"selectionStart")),this.selectionEnd=this.selectionStart,t},moveCursorLeftWithShift:function(n){return"right"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveLeft(n,"selectionEnd"):0!==this.selectionStart?(this._selectionDirection="left",this._moveLeft(n,"selectionStart")):void 0},moveCursorRight:function(n){this.selectionStart>=this.text.length&&this.selectionEnd>=this.text.length||this._moveCursorLeftOrRight("Right",n)},_moveCursorLeftOrRight:function(n,t){var i="moveCursor"+n+"With";this._currentCursorOpacity=1;i+=t.shiftKey?"Shift":"outShift";this[i](t)&&(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorRightWithShift:function(n){return"left"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveRight(n,"selectionStart"):this.selectionEnd!==this.text.length?(this._selectionDirection="right",this._moveRight(n,"selectionEnd")):void 0},moveCursorRightWithoutShift:function(n){var t=!0;return this._selectionDirection="right",this.selectionStart===this.selectionEnd?(t=this._moveRight(n,"selectionStart"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,t},removeChars:function(n){this.selectionStart===this.selectionEnd?this._removeCharsNearCursor(n):this._removeCharsFromTo(this.selectionStart,this.selectionEnd);this.setSelectionEnd(this.selectionStart);this._removeExtraneousStyles();this.canvas&&this.canvas.renderAll();this.setCoords();this.fire("changed");this.canvas&&this.canvas.fire("text:changed",{target:this})},_removeCharsNearCursor:function(n){var t,i;0!==this.selectionStart&&(n.metaKey?(t=this.findLineBoundaryLeft(this.selectionStart),this._removeCharsFromTo(t,this.selectionStart),this.setSelectionStart(t)):n.altKey?(i=this.findWordBoundaryLeft(this.selectionStart),this._removeCharsFromTo(i,this.selectionStart),this.setSelectionStart(i)):(this._removeSingleCharAndStyle(this.selectionStart),this.setSelectionStart(this.selectionStart-1)))}}),function(){var n=fabric.util.toFixed,t=fabric.Object.NUM_FRACTION_DIGITS;fabric.util.object.extend(fabric.IText.prototype,{_setSVGTextLineText:function(n,t,i,r,u,f){this._getLineStyle(n)?this._setSVGTextLineChars(n,t,i,r,f):fabric.Text.prototype._setSVGTextLineText.call(this,n,t,i,r,u)},_setSVGTextLineChars:function(n,t,i,r,u){for(var e,c,o=this._textLines[n],s=0,l=this._getLineLeftOffset(this._getLineWidth(this.ctx,n))-this.width/2,h=this._getSVGLineTopOffset(n),a=this._getHeightOfLine(this.ctx,n),f=0,v=o.length;f<v;f++)e=this._getStyleDeclaration(n,f)||{},t.push(this._createTextCharSpan(o[f],e,l,h.lineTop+h.offset,s)),c=this._getWidthOfChar(this.ctx,o[f],n,f),e.textBackgroun
22dColor&&u.push(this._createTextCharBg(e,l,h.lineTop,a,c,s)),s+=c},_getSVGLineTopOffset:function(n){for(var i=0,r=0,t=0;t<n;t++)i+=this._getHeightOfLine(this.ctx,t);return r=this._getHeightOfLine(this.ctx,t),{lineTop:i,offset:(this._fontSizeMult-this._fontSizeFraction)*r/(this.lineHeight*this._fontSizeMult)}},_createTextCharBg:function(i,r,u,f,e,o){return['\t\t<rect fill="',i.textBackgroundColor,'" x="',n(r+o,t),'" y="',n(u-this.height/2,t),'" width="',n(e,t),'" height="',n(f/this.lineHeight,t),'"><\/rect>\n'].join("")},_createTextCharSpan:function(i,r,u,f,e){var o=this.getSvgStyles.call(fabric.util.object.extend({visible:!0,fill:this.fill,stroke:this.stroke,type:"text",getSvgFilter:fabric.Object.prototype.getSvgFilter},r));return['\t\t\t<tspan x="',n(u+e,t),'" y="',n(f-this.height/2,t),'" ',r.fontFamily?'font-family="'+r.fontFamily.replace(/"/g,"'")+'" ':"",r.fontSize?'font-size="'+r.fontSize+'" ':"",r.fontStyle?'font-style="'+r.fontStyle+'" ':"",r.fontWeight?'font-weight="'+r.fontWeight+'" ':"",r.textDecoration?'text-decoration="'+r.textDecoration+'" ':"",'style="',o,'">',fabric.util.string.escapeXml(i),"<\/tspan>\n"].join("")}})}(),function(n){"use strict";var t=n.fabric||(n.fabric={}),i=t.util.object.clone;t.Textbox=t.util.createClass(t.IText,t.Observable,{type:"textbox",minWidth:20,dynamicMinWidth:0,__cachedLines:null,lockScalingY:!0,lockScalingFlip:!0,initialize:function(n,i){this.ctx=t.util.createCanvasElement().getContext("2d");this.callSuper("initialize",n,i);this.setControlsVisibility(t.Textbox.getTextboxControlVisibility());this._dimensionAffectingProps.width=!0},_initDimensions:function(n){this.__skipDimension||(n||(n=t.util.createCanvasElement().getContext("2d"),this._setTextStyles(n)),this.dynamicMinWidth=0,this._textLines=this._splitTextIntoLines(),this.dynamicMinWidth>this.width&&this._set("width",this.dynamicMinWidth),this._clearCache(),this.height=this._getTextHeight(n))},_generateStyleMap:function(){for(var r=0,i=0,n=0,u={},t=0;t<this._textLines.length;t++)"\n"===this.text[n]?(i=0,n++,r++):" "===this.text[n]&&(i++,n++),u[t]={line:r,offset:i},n+=this._textLines[t].length,i+=this._textLines[t].length;return u},_getStyleDeclaration:function(n,t,i){if(this._styleMap){var r=this._styleMap[n];if(!r)return i?{}:null;n=r.line;t=r.offset+t}return this.callSuper("_getStyleDeclaration",n,t,i)},_setStyleDeclaration:function(n,t,i){var r=this._styleMap[n];n=r.line;t=r.offset+t;this.styles[n][t]=i},_deleteStyleDeclaration:function(n,t){var i=this._styleMap[n];n=i.line;t=i.offset+t;delete this.styles[n][t]},_getLineStyle:function(n){var t=this._styleMap[n];return this.styles[t.line]},_setLineStyle:function(n,t){var i=this._styleMap[n];this.styles[i.line]=t},_deleteLineStyle:function(n){var t=this._styleMap[n];delete this.styles[t.line]},_wrapText:function(n,t){for(var u=t.split(this._reNewline),r=[],i=0;i<u.length;i++)r=r.concat(this._wrapLine(n,u[i],i));return r},_measureText:function(n,t,i,r){var f=0,u,e;for(r=r||0,u=0,e=t.length;u<e;u++)f+=this._getWidthOfChar(n,t[u],i,u+r);return f},_wrapLine:function(n,t,i){for(var f=0,l=[],r="",v=t.split(" "),e="",o=0,y=" ",u=0,p=0,s=0,h=!0,a=this._getWidthOfCharSpacing(),c=0;c<v.length;c++)e=v[c],u=this._measureText(n,e,i,o),o+=e.length,f+=p+u-a,f>=this.width&&!h?(l.push(r),r="",f=u,h=!0):f+=a,h||(r+=y),r+=e,p=this._measureText(n,y,i,o),o++,h=!1,u>s&&(s=u);return c&&l.push(r),s>this.dynamicMinWidth&&(this.dynamicMinWidth=s-a),l},_splitTextIntoLines:function(){var t=this.textAlign,n;return this.ctx.save(),this._setTextStyles(this.ctx),this.textAlign="left",n=this._wrapText(this.ctx,this.text),this.textAlign=t,this.ctx.restore(),this._textLines=n,this._styleMap=this._generateStyleMap(),n},setOnGroup:function(n,t){"scaleX"===n&&(this.set("scaleX",Math.abs(1/t)),this.set("width",this.get("width")*t/("undefined"==typeof this.__oldScaleX?1:this.__oldScaleX)),this.__oldScaleX=t)},get2DCursorLocation:function(n){var f,u;"undefined"==typeof n&&(n=this.selectionStart);for(var r=this._textLines.length,t=0,i=0;i<r;i++){if(f=this._textLines[i],u=f.length,n<=t+u)return{lineIndex:i,charIndex:n-t};t+=u;"\n"!==this.text[t]&&" "!==this.text[t]||t++}return{lineIndex:r-1,charIndex:this._textLines[r-1].length}},_getCursorBoundariesOffsets:function(n,t){for(var u=0,f=0,i=this.get2DCursorLocation(),e=this._textLines[i.lineIndex].split(""),o=this._getLineLeftOffset(this._getLineWidth(this.ctx,i.lineIndex)),r=0;r<i.charIndex;r++)f+=this._getWidthOfChar(this.ctx,e[r],i.lineIndex,r);for(r=0;r<i.lineIndex;r++)u+=this._getHeightOfLine(this.ctx,r);return"cursor"===t&&(u+=(1-this._fontSizeFraction)*this._getHeightOfLine(this.ctx,i.lineIndex)/this.lineHeight-this.getCurrentCharFontSize(i.lineIndex,i.charIndex)*(1-this._fontSizeFraction)),{top:u,left:f,lineLeft:o}},getMinWidth:function(){return Math.max(this.minWidth,this.dynamicMinWidth)},toObject:function(n){return t.util.object.extend(this.callSuper("toObject",n),{minWidth:this.minWidth})}});t.Textbox.fromObject=function(n){return new t.Textbox(n.text,i(n))};t.Textbox.getTextboxControlVisibility=function(){return{tl:!1,tr:!1,br:!1,bl:!1,ml:!0,mt:!1,mr:!0,mb:!1,mtr:!0}}}
22("undefined"!=typeof exports?exports:this),function(){var t=fabric.Canvas.prototype._setObjectScale,n;fabric.Canvas.prototype._setObjectScale=function(n,i,r,u,f,e,o){var s=i.target,h;return(s instanceof fabric.Textbox)?(h=s.width*(n.x/i.scaleX/(s.width+s.strokeWidth)),h>=s.getMinWidth()?(s.set("width",h),!0):void 0):t.call(fabric.Canvas.prototype,n,i,r,u,f,e,o)};fabric.Group.prototype._refreshControlsVisibility=function(){if("undefined"!=typeof fabric.Textbox)for(var n=this._objects.length;n--;)if(this._objects[n]instanceof fabric.Textbox)return void this.setControlsVisibility(fabric.Textbox.getTextboxControlVisibility())};n=fabric.util.object.clone;fabric.util.object.extend(fabric.Textbox.prototype,{_removeExtraneousStyles:function(){for(var n in this._styleMap)this._textLines[n]||delete this.styles[this._styleMap[n].line]},insertCharStyleObject:function(n,t,i){var r=this._styleMap[n];n=r.line;t=r.offset+t;fabric.IText.prototype.insertCharStyleObject.apply(this,[n,t,i])},insertNewlineStyleObject:function(n,t,i){var r=this._styleMap[n];n=r.line;t=r.offset+t;fabric.IText.prototype.insertNewlineStyleObject.apply(this,[n,t,i])},shiftLineStyles:function(t,i){var u=n(this.styles),e=this._styleMap[t],f,r;t=e.line;for(f in this.styles)r=parseInt(f,10),r>t&&(this.styles[r+i]=u[r],u[r-i]||delete this.styles[r])},_getTextOnPreviousLine:function(n){for(var t=this._textLines[n-1];this._styleMap[n-2]&&this._styleMap[n-2].line===this._styleMap[n-1].line;)t=this._textLines[n-2]+t,n--;return t},removeStyleObject:function(n,t){var i=this.get2DCursorLocation(t),r=this._styleMap[i.lineIndex],u=r.line,f=r.offset+i.charIndex;this._removeStyleObject(n,i,u,f)}})}(),function(){var n=fabric.IText.prototype._getNewSelectionStartFromOffset;fabric.IText.prototype._getNewSelectionStartFromOffset=function(t,i,r,u,f){u=n.call(this,t,i,r,u,f);for(var o=0,e=0,s=0;s<this._textLines.length&&(o+=this._textLines[s].length,!(o+e>=u));s++)"\n"!==this.text[o+e]&&" "!==this.text[o+e]||e++;return u-s+e}}(),function(){function n(n,t,i){var r=e.parse(n),f,u;r.port||(r.port=0===r.protocol.indexOf("https:")?443:80);f=0===r.protocol.indexOf("https:")?s:o;u=f.request({hostname:r.hostname,port:r.port,path:r.path,method:"GET"},function(n){var r="";t&&n.setEncoding(t);n.on("end",function(){i(r)});n.on("data",function(t){200===n.statusCode&&(r+=t)})});u.on("error",function(n){n.errno===process.ECONNREFUSED?fabric.log("ECONNREFUSED: connection refused to "+r.hostname+":"+r.port):fabric.log(n.message);i(null)});u.end()}function i(n,t){var i=require("fs");i.readFile(n,function(n,i){if(n)throw fabric.log(n),n;t(i)})}var r,u;if("undefined"==typeof document||"undefined"==typeof window){var f=require("xmldom").DOMParser,e=require("url"),o=require("http"),s=require("https"),t=require("canvas"),h=require("canvas").Image;fabric.util.loadImage=function(t,r,u){function e(n){n?(f.src=new Buffer(n,"binary"),f._src=t,r&&r.call(u,f)):(f=null,r&&r.call(u,null,!0))}var f=new h;t&&(t instanceof Buffer||0===t.indexOf("data"))?(f.src=f._src=t,r&&r.call(u,f)):t&&0!==t.indexOf("http")?i(t,e):t?n(t,"binary",e):r&&r.call(u,t)};fabric.loadSVGFromURL=function(t,r,u){t=t.replace(/^\n\s*/,"").replace(/\?.*$/,"").trim();0!==t.indexOf("http")?i(t,function(n){fabric.loadSVGFromString(n.toString(),r,u)}):n(t,"",function(n){fabric.loadSVGFromString(n,r,u)})};fabric.loadSVGFromString=function(n,t,i){var r=(new f).parseFromString(n);fabric.parseSVGDocument(r.documentElement,function(n,i){t&&t(n,i)},i)};fabric.util.getScript=function(t,i){n(t,"",function(n){eval(n);i&&i()})};fabric.createCanvasForNode=function(n,i,r,u){var h,f;u=u||r;var e=fabric.document.createElement("canvas"),o=new t(n||600,i||600,u),s=new t(n||600,i||600,u);return e.style={},e.width=o.width,e.height=o.height,h=fabric.Canvas||fabric.StaticCanvas,f=new h(e,r),f.contextContainer=o.getContext("2d"),f.nodeCanvas=o,f.contextCache=s.getContext("2d"),f.nodeCacheCanvas=s,f.Font=t.Font,f};fabric.StaticCanvas.prototype.createPNGStream=function(){return this.nodeCanvas.createPNGStream()};fabric.StaticCanvas.prototype.createJPEGStream=function(n){return this.nodeCanvas.createJPEGStream(n)};r=fabric.StaticCanvas.prototype.setWidth;fabric.StaticCanvas.prototype.setWidth=function(n,t){return r.call(this,n,t),this.nodeCanvas.width=n,this};fabric.Canvas&&(fabric.Canvas.prototype.setWidth=fabric.StaticCanvas.prototype.setWidth);u=fabric.StaticCanvas.prototype.setHeight;fabric.StaticCanvas.prototype.setHeight=function(n,t){return u.call(this,n,t),this.nodeCanvas.height=n,this};fabric.Canvas&&(fabric.Canvas.prototype.setHeight=fabric.StaticCanvas.prototype.setHeight)}}();$(function(){setTimeout(function(){scaleSpotBoxes();$("canvas.sb_canvas").each(function(n,t){renderSpotBox(t)})},0);$(".spotBox_item_text").each(function(){$(this).attr("size",$(this).val().length);$(this).prop("disabled",!0)});$(window).resize(function(){!timeout});$(".spotBoxWrap").each(function(){})});var rtime,timeout=!1,delta=200,w=$(window).width();$(window).resize(function(){w!=$(window).width()&&(w!=$(window).width(),rtime=new Date,timeout===!1&&($(".spotBoxWrap").css("opacity","0"),timeout=!0,w=$(window).width(),setTimeout(resizeend,delta)))});jQuery.fn.center=function(n){return n=n?this.parent():window,this.css({position:"fixed",top:"100px",left:($(n).width()-this.outerWidth())/2+"px"}),this};$(function(){var n=$(".topNavSlide");$(window).width()>1024?$(".topNavSlide").hasClass("isMobileOnly")?$(".topNavSlideToggle").
22css("display","none"):$(".topNavSlideToggle").delay(600).show("bounce",{times:3},"slow"):$(".topNavSlideToggle").show();$(".topNavSlide").hasClass("topNavIsHidden");window.onorientationchange=function(){$(window).width()>1024?$(".topNavSlide").hasClass("isMobileOnly")?$(".topNavSlideToggle").css("display","none"):$(".topNavSlideToggle").delay(600).show("bounce",{times:3},"slow"):$(".topNavSlideToggle").show()};window.onresize=function(){$(window).width()>1024?$(".topNavSlide").hasClass("isMobileOnly")?$(".topNavSlideToggle").css("display","none"):$(".topNavSlideToggle").delay(600).show("bounce",{times:3},"slow"):$(".topNavSlideToggle").show()};$(".navSlide_active").hasClass("level_1")?$(".topNavSlide_backButton").fadeOut():$(".topNavSlide_backButton").fadeIn();n.detach().prependTo("body").css("display","none");$("body").css("overflow-x","hidden");$("body").css("background-position-x","0px");$("body").css("background-position-y","0px");navigator.userAgent.search("Firefox")&&$("body").css("background-position","0px");$("#siteWrap").css("background-color","transparent");$(".topNavSlideToggle").detach().prependTo("#siteWrap");$(".navSlideUl").each(function(){$(this).detach().appendTo(".topNavSlideBox")});$(".noLink").on("click",function(n){return $(this).parent().find(".navSlide_next").trigger("click"),n.preventDefault(),!1});$(".navSlideLi").each(function(){var n=$(this),t=$(this).data("no");$(".navSlideUl").each(function(){t==$(this).data("parent")&&$(this).find("li").length&&(n.find(".navSlide_next").append("<icon class='fa fa-chevron-right'><\/icon>"),n.find(".navSlide_next").addClass("beShown"))})});$(".navSlide_next").on("click",function(){var n=$(this).parent(),t=$(this).parent().data("no");$(".navSlideUl").each(function(){$(this).data("parent")==t?$(this).css("display","block").addClass("navSlide_active"):$(this).removeClass("navSlide_active")});n.parent().animate({"margin-left":"-=250px"},{queue:!1,duration:400},"linear",function(){n.parent().css("display","none")});$(".navSlide_active").hasClass("level_1")?$(".topNavSlide_backButton").fadeOut():($(".topNavSlide_backButton").fadeIn(),$("#bbSpan").html(n.find("a:first").html()))});$(".topNavSlide_backButton").on("click",function(n){if(n.preventDefault(),!$("*").is(":animated")){var t=$(".navSlide_active");$(".navSlideUl").removeClass("navSlide_active");$(".navSlideLi").each(function(){if(t.data("parent")==$(this).data("no")){var n=$(this).parent();n.css("display","block").addClass("navSlide_active");n.animate({"margin-left":"+=250px"},{queue:!1,duration:400,complete:function(){$(".navSlideUl").not(".navSlide_active").css("display","none")}},"linear")}});$(".navSlide_active").hasClass("level_1")&&$(".topNavSlide_backButton").hide();$(".navSlideLi").each(function(){if($(".navSlide_active").data("parent")==$(this).data("no")){var n=$(this);$("#bbSpan").html(n.find("a:first").html())}})}})});$(function(){$(window).resize(function(){$(window).width()>1024&&$(".topNavigationMobile_menu").hide()})});
23/*! Magnific Popup - v0.9.9 - 2013-12-27
24* http://dimsemenov.com/plugins/magnific-popup/
25* Copyright (c) 2013 Dmitry Semenov; */
26(function(n){var h="Close",wt="BeforeClose",ii="AfterClose",ri="BeforeAppend",rt="MarkupParse",ut="Open",bt="Change",ft="mfp",u="."+ft,w="mfp-ready",kt="mfp-removing",et="mfp-prevent-close",t,b=function(){},ot=!!window.jQuery,st,f=n(window),c,o,k,l,dt,r=function(n,i){t.ev.on(ft+n+u,i)},e=function(t,i,r,u){var f=document.createElement("div");return f.className="mfp-"+t,r&&(f.innerHTML=r),u?i&&i.appendChild(f):(f=n(f),i&&f.appendTo(i)),f},i=function(i,r){t.ev.triggerHandler(ft+i,r);t.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),t.st.callbacks[i]&&t.st.callbacks[i].apply(t,n.isArray(r)?r:[r]))},ht=function(i){return i===dt&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=n(t.st.closeMarkup.replace("%title%",t.st.tClose)),dt=i),t.currTemplate.closeBtn},ct=function(){n.magnificPopup.instance||(t=new b,t.init(),n.magnificPopup.instance=t)},ui=function(){var n=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(n.transition!==undefined)return!0;while(t.length)if(t.pop()+"Transition"in n)return!0;return!1},d,v,g,nt,lt,s,ni,vt,ti,tt,pt,it;b.prototype={constructor:b,init:function(){var i=navigator.appVersion;t.isIE7=i.indexOf("MSIE 7.")!==-1;t.isIE8=i.indexOf("MSIE 8.")!==-1;t.isLowIE=t.isIE7||t.isIE8;t.isAndroid=/android/gi.test(i);t.isIOS=/iphone|ipad|ipod/gi.test(i);t.supportsTransition=ui();t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent);o=n(document);t.popupsCache={}},open:function(s){var h,b,a,k,v,d,y,g,p;if(c||(c=n(document.body)),s.isObj===!1){for(t.items=s.items.toArray(),t.index=0,b=s.items,h=0;h<b.length;h++)if(a=b[h],a.parsed&&(a=a.el[0]),a===s.el[0]){t.index=h;break}}else t.items=n.isArray(s.items)?s.items:[s.items],t.index=s.index||0;if(t.isOpen){t.updateItemHTML();return}for(t.types=[],l="",t.ev=s.mainEl&&s.mainEl.length?s.mainEl.eq(0):o,s.key?(t.popupsCache[s.key]||(t.popupsCache[s.key]={}),t.currTemplate=t.popupsCache[s.key]):t.currTemplate={},t.st=n.extend(!0,{},n.magnificPopup.defaults,s),t.fixedContentPos=t.st.fixedContentPos==="auto"?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=e("bg").on("click"+u,function(){t.close()}),t.wrap=e("wrap").attr("tabindex",-1).on("click"+u,function(n){t._checkIfClose(n.target)&&t.close()}),t.container=e("container",t.wrap)),t.contentContainer=e("content"),t.st.preloader&&(t.preloader=e("preloader",t.container,t.st.tLoading)),k=n.magnificPopup.modules,h=0;h<k.length;h++)v=k[h],v=v.charAt(0).toUpperCase()+v.slice(1),t["init"+v].call(t);if(i("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(r(rt,function(n,t,i,r){i.close_replaceWith=ht(r.type)}),l+=" mfp-close-btn-in"):t.wrap.append(ht())),t.st.alignTop&&(l+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:f.scrollTop(),position:"absolute"}),t.st.fixedBgPos!==!1&&(t.st.fixedBgPos!=="auto"||t.fixedContentPos)||t.bgOverlay.css({height:o.height(),position:"absolute"}),t.st.enableEscapeKey)o.on("keyup"+u,function(n){n.keyCode===27&&t.close()});f.on("resize"+u,function(){t.updateSize()});return t.st.closeOnContentClick||(l+=" mfp-auto-cursor"),l&&t.wrap.addClass(l),d=t.wH=f.height(),y={},t.fixedContentPos&&t._hasScrollBar(d)&&(g=t._getScrollbarSize(),g&&(y.marginRight=g)),t.fixedContentPos&&(t.isIE7?n("body, html").css("overflow","hidden"):y.overflow="hidden"),p=t.st.mainClass,t.isIE7&&(p+=" mfp-ie7"),p&&t._addClassToMFP(p),t.updateItemHTML(),i("BuildControls"),n("html").css(y),t.bgOverlay.add(t.wrap).prependTo(t.st.prepe
26ndTo||c),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(w),t._setFocus()):t.bgOverlay.addClass(w);o.on("focusin"+u,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(d),i(ut),s},close:function(){t.isOpen&&(i(wt),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(kt),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){var r,f;i(h);r=kt+" "+w+" ";t.bgOverlay.detach();t.wrap.detach();t.container.empty();t.st.mainClass&&(r+=t.st.mainClass+" ");t._removeClassFromMFP(r);t.fixedContentPos&&(f={marginRight:""},t.isIE7?n("body, html").css("overflow",""):f.overflow="",n("html").css(f));o.off("keyup"+u+" focusin"+u);t.ev.off(u);t.wrap.attr("class","mfp-wrap").removeAttr("style");t.bgOverlay.attr("class","mfp-bg");t.container.attr("class","mfp-container");t.st.showCloseBtn&&(!t.st.closeBtnInside||t.currTemplate[t.currItem.type]===!0)&&t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach();t._lastFocusedEl&&n(t._lastFocusedEl).focus();t.currItem=null;t.content=null;t.currTemplate=null;t.prevHeight=0;i(ii)},updateSize:function(n){if(t.isIOS){var u=document.documentElement.clientWidth/window.innerWidth,r=window.innerHeight*u;t.wrap.css("height",r);t.wH=r}else t.wH=n||f.height();t.fixedContentPos||t.wrap.css("height",t.wH);i("Resize")},updateItemHTML:function(){var u=t.items[t.index],r,f,e;t.contentContainer.detach();t.content&&t.content.detach();u.parsed||(u=t.parseEl(t.index));r=u.type;i("BeforeChange",[t.currItem?t.currItem.type:"",r]);t.currItem=u;t.currTemplate[r]||(f=t.st[r]?t.st[r].markup:!1,i("FirstMarkupParse",f),t.currTemplate[r]=f?n(f):!0);k&&k!==u.type&&t.container.removeClass("mfp-"+k+"-holder");e=t["get"+r.charAt(0).toUpperCase()+r.slice(1)](u,t.currTemplate[r]);t.appendContent(e,r);u.preloaded=!0;i(bt,u);k=u.type;t.container.prepend(t.contentContainer);i("AfterChange")},appendContent:function(n,r){t.content=n;n?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[r]===!0?t.content.find(".mfp-close").length||t.content.append(ht()):t.content=n:t.content="";i(ri);t.container.addClass("mfp-"+r+"-holder");t.contentContainer.append(t.content)},parseEl:function(r){var u=t.items[r],o,e,f;if(u.tagName?u={el:n(u)}:(o=u.type,u={data:u,src:u.src}),u.el){for(e=t.types,f=0;f<e.length;f++)if(u.el.hasClass("mfp-"+e[f])){o=e[f];break}u.src=u.el.attr("data-mfp-src");u.src||(u.src=u.el.attr("href"))}return u.type=o||t.st.type||"inline",u.index=r,u.parsed=!0,t.items[r]=u,i("ElementParse",u),t.items[r]},addGroup:function(n,i){var u=function(r){r.mfpEl=this;t._openClick(r,n,i)},r;if(i||(i={}),r="click.magnificPopup",i.mainEl=n,i.items){i.isObj=!0;n.off(r).on(r,u)}else if(i.isObj=!1,i.delegate)n.off(r).on(r,i.delegate,u);else{i.items=n;n.off(r).on(r,u)}},_openClick:function(i,r,u){var o=u.midClick!==undefined?u.midClick:n.magnificPopup.defaults.midClick,e;if(o||!(i.which===2||i.ctrlKey||i.metaKey)){if(e=u.disableOn!==undefined?u.disableOn:n.magnificPopup.defaults.disableOn,e)if(n.isFunction(e)){if(!e.call(t))return!0}else if(f.width()<e)return!0;i.type&&(i.preventDefault(),t.isOpen&&i.stopPropagation());u.el=n(i.mfpEl);u.delegate&&(u.items=r.find(u.delegate));t.open(u)}},updateStatus:function(n,r){if(t.preloader){st!==n&&t.container.removeClass("mfp-s-"+st);r||n!=="loading"||(r=t.st.tLoading);var u={status:n,text:r};i("UpdateStatus",u);n=u.status;r=u.text;t.preloader.html(r);t.preloader.find("a").on("click",function(n){n.stopImmediatePropagation()});t.container.addClass("mfp-s-"+n);st=n}},_checkIfClose:function(i){if(!n(i).hasClass(et)){var r=t.st.closeOnContentClick,u=t.st.closeOnBgClick;if(r&&u||!t.content||n(i).hasClass("mfp-close")||t.preloader&&i===t.preloader[0])return!0;if(i===t.content[0]||n.contains(t.content[0],i)){if(r)return!0}else if(u&&n.contains(document,i))return!0;return!1}},_addClassToMFP:function(n){t.bgOverlay.addClass(n);t.wrap.addClass(n)},_removeClassFromMFP:function(n){this.bgOverlay.removeClass(n);t.wrap.removeClass(n)},_hasScrollBar:function(n){return(t.isIE7?o.height():document.body.scrollHeight)>(n||f.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(i){if(i.target!==t.wrap[0]&&!n.contains(t.wrap[0],i.target))return t._setFocus(),!1},_parseMarkup:function(t,r,f){var e;f.data&&(r=n.extend(f.data,r));i(rt,[t,r,f]);n.each(r,function(n,i){var r,f;if(i===undefined||i===!1)return!0;e=n.split("_");e.length>1?(r=t.find(u+"-"+e[0]),r.length>0&&(f=e[1],f==="replaceWith"?r[0]!==i[0]&&r.replaceWith(i):f==="img"?r.is("img")?r.attr("src",i):r.replaceWith('<img src="'+i+'" class="'+r.attr("class")+'" />'):r.attr(e[1],i))):t.find(u+"-"+n).html(i)})},_getScrollbarSize:function(){if(t.scrollbarSize===undefined){var n=document.createElement("div");n.id="mfp-sbm";n.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;";document.body.appendChild(n);t.scrollbarSize=n.offsetWidth-n.clientWidth;document.body.removeChild(n)}return t.scrollbarSize}};n.magnificPopup={instance:null,proto:b.prototype,modules:[],open:function(t,i){return ct(),t=t?n.extend(!0,{},t):{},t.isObj=!0,t.index=i||0,this.instance.open(t)},close:function(){return n.magnificPopup.instance&&n.magnificPopup.instance.close()},registerModule:function(t,i){i.options&&(n.magnificPopup.defaults[t]=i.options);n.extend(this.proto,i.proto);this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;<\/button>
26',tClose:"Close (Esc)",tLoading:"Loading..."}};n.fn.magnificPopup=function(i){var r,u,f,e;return ct(),r=n(this),typeof i=="string"?i==="open"?(f=ot?r.data("magnificPopup"):r[0].magnificPopup,e=parseInt(arguments[1],10)||0,f.items?u=f.items[e]:(u=r,f.delegate&&(u=u.find(f.delegate)),u=u.eq(e)),t._openClick({mfpEl:u},r,f)):t.isOpen&&t[i].apply(t,Array.prototype.slice.call(arguments,1)):(i=n.extend(!0,{},i),ot?r.data("magnificPopup",i):r[0].magnificPopup=i,t.addGroup(r,i)),r};d="inline";lt=function(){nt&&(g.after(nt.addClass(v)).detach(),nt=null)};n.magnificPopup.registerModule(d,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(d);r(h+"."+d,function(){lt()})},getInline:function(i,r){var f,u,o;return(lt(),i.src)?(f=t.st.inline,u=n(i.src),u.length?(o=u[0].parentNode,o&&o.tagName&&(g||(v=f.hiddenClass,g=e(v),v="mfp-"+v),nt=u.after(g).detach().removeClass(v)),t.updateStatus("ready")):(t.updateStatus("error",f.tNotFound),u=n("<div>")),i.inlineElement=u,u):(t.updateStatus("ready"),t._parseMarkup(r,{},i),r)}}});var y="ajax",p,at=function(){p&&c.removeClass(p)},gt=function(){at();t.req&&t.req.abort()};n.magnificPopup.registerModule(y,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content<\/a> could not be loaded.'},proto:{initAjax:function(){t.types.push(y);p=t.st.ajax.cursor;r(h+"."+y,gt);r("BeforeChange."+y,gt)},getAjax:function(r){p&&c.addClass(p);t.updateStatus("loading");var u=n.extend({url:r.src,success:function(u,f,e){var o={data:u,xhr:e};i("ParseAjax",o);t.appendContent(n(o.data),y);r.finished=!0;at();t._setFocus();setTimeout(function(){t.wrap.addClass(w)},16);t.updateStatus("ready");i("AjaxContentAdded")},error:function(){at();r.finished=r.loadError=!0;t.updateStatus("error",t.st.ajax.tError.replace("%url%",r.src))}},t.st.ajax.settings);return t.req=n.ajax(u),""}}});ni=function(i){if(i.data&&i.data.title!==undefined)return i.data.title;
26var r=t.st.image.titleSrc;if(r){if(n.isFunction(r))return r.call(t,i);if(i.el)return i.el.attr(r)||""}return""};n.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"><\/div><figure><div class="mfp-img"><\/div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"><\/div><div class="mfp-counter"><\/div><\/div><\/figcaption><\/figure><\/div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image<\/a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image");r(ut+i,function(){t.currItem.type==="image"&&n.cursor&&c.addClass(n.cursor)});r(h+i,function(){n.cursor&&c.removeClass(n.cursor);f.off("resize"+u)});r("Resize"+i,t.resizeImage);t.isLowIE&&r("AfterChange",t.resizeImage)},resizeImage:function(){var n=t.currItem,i;n&&n.img&&t.st.image.verticalFit&&(i=0,t.isLowIE&&(i=parseInt(n.img.css("padding-top"),10)+parseInt(n.img.css("padding-bottom"),10)),n.img.css("max-height",t.wH-i))},_onImageHasSize:function(n){n.img&&(n.hasSize=!0,s&&clearInterval(s),n.isCheckingImgSize=!1,i("ImageHasSize",n),n.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),n.imgHidden=!1))},findImageSize:function(n){var i=0,u=n.img[0],r=function(f){s&&clearInterval(s);s=setInterval(function(){if(u.naturalWidth>0){t._onImageHasSize(n);return}i>200&&clearInterval(s);i++;i===3?r(10):i===40?r(50):i===100&&r(500)},f)};r(1)},getImage:function(r,u){var e=0,o=function(){r&&(r.img[0].complete?(r.img.off(".mfploader"),r===t.currItem&&(t._onImageHasSize(r),t.updateStatus("ready")),r.hasSize=!0,r.loaded=!0,i("ImageLoadComplete")):(e++,e<200?setTimeout(o,100):h()))},h=function(){r&&(r.img.off(".mfploader"),r===t.currItem&&(t._onImageHasSize(r),t.updateStatus("error",c.tError.replace("%url%",r.src))),r.hasSize=!0,r.loaded=!0,r.loadError=!0)},c=t.st.image,l=u.find(".mfp-img"),f;return(l.length&&(f=document.createElement("img"),f.className="mfp-img",r.img=n(f).on("load.mfploader",o).on("error.mfploader",h),f.src=r.src,l.is("img")&&(r.img=r.img.clone()),f=r.img[0],f.naturalWidth>0?r.hasSize=!0:f.width||(r.hasSize=!1)),t._parseMarkup(u,{title:ni(r),img_replaceWith:r.img},r),t.resizeImage(),r.hasSize)?(s&&clearInterval(s),r.loadError?(u.addClass("mfp-loading"),t.updateStatus("error",c.tError.replace("%url%",r.src))):(u.removeClass("mfp-loading"),t.updateStatus("ready")),u):(t.updateStatus("loading"),r.loading=!0,r.hasSize||(r.imgHidden=!0,u.addClass("mfp-loading"),t.findImageSize(r)),u)}}});ti=function(){return vt===undefined&&(vt=document.createElement("p").style.MozTransform!==undefined),vt};n.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(n){return n.is("img")?n:n.find("img")}},proto:{initZoom:function(){var f=t.st.zoom,o=".zoom",u;if(f.enabled&&t.supportsTransition){var c=f.duration,l=function(n){var r=n.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),u="all "+f.duration/1e3+"s "+f.easing,t={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},i="transition";return t["-webkit-"+i]=t["-moz-"+i]=t["-o-"+i]=t[i]=u,r.css(t),r},s=function(){t.content.css("visibility","visible")},e,n;r("BuildControls"+o,function(){if(t._allowZoom()){if(clearTimeout(e),t.content.css("visibility","hidden"),u=t._getItemToZoom(),!u){s();return}n=l(u);n.css(t._getOffset());t.wrap.append(n);e=setTimeout(function(){n.css(t._getOffset(!0));e=setTimeout(function(){s();setTimeout(function(){n.remove();u=n=null;i("ZoomAnimationEnded")},16)},c)},16)}});r(wt+o,function(){if(t._allowZoom()){if(clearTimeout(e),t.st.removalDelay=c,!u){if(u=t._getItemToZoom(),!u)return;n=l(u)}n.css(t._getOffset(!0));t.wrap.append(n);t.content.css("visibility","hidden");setTimeout(function(){n.css(t._getOffset())},16)}});r(h+o,function(){t._allowZoom()&&(s(),n&&n.remove(),u=null)})}},_allowZoom:function(){return t.currItem.type==="image"},_getItemToZoom:function(){return t.currItem.hasSize?t.currItem.img:!1},_getOffset:function(i){var r,u;r=i?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var f=r.offset(),e=parseInt(r.css("padding-top"),10),o=parseInt(r.css("padding-bottom"),10);return f.top-=n(window).scrollTop()-e,u={width:r.width(),height:(ot?r.innerHe
26ight():r[0].offsetHeight)-o-e},ti()?u["-moz-transform"]=u.transform="translate("+f.left+"px,"+f.top+"px)":(u.left=f.left,u.top=f.top),u}}});var a="iframe",fi="//about:blank",yt=function(n){if(t.currTemplate[a]){var i=t.currTemplate[a].find("iframe");i.length&&(n||(i[0].src=fi),t.isIE8&&i.css("display",n?"block":"none"))}};n.magnificPopup.registerModule(a,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"><\/div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen><\/iframe><\/div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(a);r("BeforeChange",function(n,t,i){t!==i&&(t===a?yt():i===a&&yt(!0))});r(h+"."+a,function(){yt()})},getIframe:function(i,r){var u=i.src,f=t.st.iframe,e;return n.each(f.patterns,function(){if(u.indexOf(this.index)>-1)return this.id&&(u=typeof this.id=="string"?u.substr(u.lastIndexOf(this.id)+this.id.length,u.length):this.id.call(this,u)),u=this.src.replace("%id%",u),!1}),e={},f.srcAction&&(e[f.srcAction]=u),t._parseMarkup(r,e,i),t.updateStatus("ready"),r}}});tt=function(n){var i=t.items.length;return n>i-1?n-i:n<0?i+n:n};pt=function(n,t,i){return n.replace(/%curr%/gi,t+1).replace(/%total%/gi,i)};n.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"><\/button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var u=t.st.gallery,i=".mfp-gallery",f=Boolean(n.fn.mfpFastClick);if(t.direction=!0,!u||!u.enabled)return!1;l+=" mfp-gallery";r(ut+i,function(){if(u.navigateByImgClick)t.wrap.on("click"+i,".mfp-img",function(){if(t.items.length>1)return t.next(),!1});o.on("keydown"+i,function(n){n.keyCode===37?t.prev():n.keyCode===39&&t.next()})});r("UpdateStatus"+i,function(n,i){i.text&&(i.text=pt(i.text,t.currItem.index,t.items.length))});r(rt+i,function(n,i,r,f){var e=t.items.length;r.counter=e>1?pt(u.tCounter,f.index,e):""});r("BuildControls"+i,function(){if(t.items.length>1&&u.arrows&&!t.arrowLeft){var o=u.arrowMarkup,i=t.arrowLeft=n(o.replace(/%title%/gi,u.tPrev).replace(/%dir%/gi,"left")).addClass(et),r=t.arrowRight=n(o.replace(/%title%/gi,u.tNext).replace(/%dir%/gi,"right")).addClass(et),s=f?"mfpFastClick":"click";i[s](function(){t.prev()});r[s](function(){t.next()});t.isIE7&&(e("b",i[0],!1,!0),e("a",i[0],!1,!0),e("b",r[0],!1,!0),e("a",r[0],!1,!0));t.container.append(i.add(r))}});r(bt+i,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout);t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages();t._preloadTimeout=null},16)});r(h+i,function(){o.off(i);t.wrap.off("click"+i);t.arrowLeft&&f&&t.arrowLeft.add(t.arrowRight).destroyMfpFastClick();t.arrowRight=t.arrowLeft=null})},next:function(){t.direction=!0;t.index=tt(t.index+1);t.updateItemHTML()},prev:function(){t.direction=!1;t.index=tt(t.index-1);t.updateItemHTML()},goTo:function(n){t.direction=n>=t.index;t.index=n;t.updateItemHTML()},preloadNearbyImages:function(){for(var i=t.st.gallery.preload,r=Math.min(i[0],t.items.length),u=Math.min(i[1],t.items.length),n=1;n<=(t.direction?u:r);n++)t._preloadItem(t.index+n);for(n=1;n<=(t.direction?r:u);n++)t._preloadItem(t.index-n)},_preloadItem:function(r){if(r=tt(r),!t.items[r].preloaded){var u=t.items[r];u.parsed||(u=t.parseEl(r));i("LazyLoad",u);u.type==="image"&&(u.img=n('<img class="mfp-img" />').on("load.mfploader",function(){u.hasSize=!0}).on("error.mfploader",function(){u.hasSize=!0;u.loadError=!0;i("LazyLoadError",u)}).attr("src",u.src));u.preloaded=!0}}}});it="retina";n.magnificPopup.registerModule(it,{options:{replaceSrc:function(n){return n.src.replace(/\.\w+$/,function(n){return"@2x"+n})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var i=t.st.retina,n=i.ratio;n=isNaN(n)?n():n;n>1&&(r("ImageHasSize."+it,function(t,i){i.img.css({"max-width":i.img[0].naturalWi
26dth/n,width:"100%"})}),r("ElementParse."+it,function(t,r){r.src=i.replaceSrc(r,n)}))}}}}),function(){var u=1e3,i="ontouchstart"in window,r=function(){f.off("touchmove"+t+" touchend"+t)},t=".mfpFastClick";n.fn.mfpFastClick=function(e){return n(this).each(function(){var l=n(this),s,a,v,y,h,o,c;if(i)l.on("touchstart"+t,function(n){h=!1;c=1;o=n.originalEvent?n.originalEvent.touches[0]:n.touches[0];v=o.clientX;y=o.clientY;f.on("touchmove"+t,function(n){o=n.originalEvent?n.originalEvent.touches:n.touches;c=o.length;o=o[0];(Math.abs(o.clientX-v)>10||Math.abs(o.clientY-y)>10)&&(h=!0,r())}).on("touchend"+t,function(n){(r(),h||c>1)||(s=!0,n.preventDefault(),clearTimeout(a),a=setTimeout(function(){s=!1},u),e())})});l.on("click"+t,function(){s||e()})})};n.fn.destroyMfpFastClick=function(){n(this).off("touchstart"+t+" click"+t);i&&f.off("touchmove"+t+" touchend"+t)}}();ct()})(window.jQuery||window.Zepto);intervalCounter=0;$(function(){$(".sponsorModule").length>0&&setTimeout(function(){resizeSponsorModule()});$(window).resize(function(){setTimeout(function(){resizeSponsorModule()},100)});intervalTimer=setInterval("animateSlider()",200);RunPackery()}),function(n){n.fn.shuffle=function(){var t=this.get(),r=function(n){return Math.floor(Math.random()*n)},i=n.map(t,function(){var i=r(t.length),u=n(t[i]).clone(!0)[0];return t.splice(i,1),u});return this.each(function(t){n(this).replaceWith(n(i[t]))}),n(i)}}(jQuery);newsSliderIntervalCounter=0;$(function(){$(".newsSlider").length&&($(".newsSlider").each(function(){InitializeNewsSlider(this)}),newsSliderIntervalTimer=setInterval("animateNewsSlider()",200));$(".newsSliderWrap").on("mouseover",function(){$(this).stop().animate({marginLeft:"0"},200,"swing",function(){})});$(".sliderIndicator").click(function(){var n=$(this).data("slideid"),t=$(this).closest(".newsSlider");slideToId(n,t)})});!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.moment=t()}(this,function(){"use strict";function r(){return ys.apply(null,arguments)}function nc(n){ys=n}function oi(n){return"[object Array]"===Object.prototype.toString.call(n)}function ru(n){return n instanceof Date||"[object Date]"===Object.prototype.toString.call(n)}function we(n,t){for(var r=[],i=0;i<n.length;++i)r.push(t(n[i],i));return r}function lt(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function uu(n,t){for(var i in t)lt(t,i)&&(n[i]=t[i]);return lt(t,"toString")&&(n.toString=t.toString),lt(t,"valueOf")&&(n.valueOf=t.valueOf),n}function bi(n,t,i,r){return vo(n,t,i,r,!0).utc()}function tc(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function o(n){return null==n._pf&&(n._pf=tc()),n._pf}function rf(n){if(null==n._isValid){var t=o(n);n._isValid=!(isNaN(n._d.getTime())||!(t.overflow<0)||t.empty||t.invalidMonth||t.invalidWeekday||t.nullInput||t.invalidFormat||t.userInvalidated);n._strict&&(n._isValid=n._isValid&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)}return n._isValid}function fu(n){var t=bi(NaN);return null!=n?uu(o(t),n):o(t).userInvalidated=!0,t}function y(n){return void 0===n}function uf(n,t){var u,i,r;if(y(t._isAMomentObject)||(n._isAMomentObject=t._isAMomentObject),y(t._i)||(n._i=t._i),y(t._f)||(n._f=t._f),y(t._l)||(n._l=t._l),y(t._strict)||(n._strict=t._strict),y(t._tzm)||(n._tzm=t._tzm),y(t._isUTC)||(n._isUTC=t._isUTC),y(t._offset)||(n._offset=t._offset),y(t._pf)||(n._pf=o(t)),y(t._locale)||(n._locale=t._locale),kf.length>0)for(u in kf)i=kf[u],r=t[i],y(r)||(n[i]=r);return n}function er(n){uf(this,n);this._d=new Date(null!=n._d?n._d.getTime():NaN);df===!1&&(df=!0,r.updateOffset(this),df=!1)}function gt(n){return n instanceof er||null!=n&&null!=n._isAMomentObject}function p(n){return 0>n?Math.ceil(n):Math.floor(n)}function e(n){var t=+n,i=0;return 0!==t&&isFinite(t)&&(i=p(t)),i}function be(n,t,i){for(var f=Math.min(n.length,t.length),o=Math.abs(n.length-t.length),u=0,r=0;f>r;r++)(i&&n[r]!==t[r]||!i&&e(n[r])!==e(t[r]))&&u++;return u+o}function ke(){}function de(n){return n?n.toLowerCase().replace("_","-"):n}function ic(n){for(var i,t,f,r,u=0;u<n.length;){for(r=de(n[u]).split("-"),i=r.length,t=de(n[u+1]),t=t?t.split("-"):null;i>0;){if(f=ge(r.slice(0,i).join("-")))return f;if(t&&t.length>=i&&be(r,t,!0)>=i-1)break;i--}u++}return null}function ge(n){var t=null;if(!pi[n]&&"undefined"!=typeof module&&module&&module.exports)try{t=yu._abbr;require("./locale/"+n);or(t)}catch(i){}return pi[n]}function or(n,t){var i;return n&&(i=y(t)?si(n):no(n,t),i&&(yu=i)),yu._abbr}function no(n,t){return null!==t?(t.abbr=n,pi[n]=pi[n]||new ke,pi[n].set(t),or(n),pi[n]):(delete pi[n],null)}function si(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return yu;if(!oi(n)){if(t=ge(n))return t;n=[n]}return ic(n)}function v(n,t){var i=n.toLowerCase();tu[i]=tu[i+"s"]=tu[t]=n}function b(n){if("string"==typeof n)return tu[n]||tu[n.toLowerCase()]}function to(n){var i,t,r={};for(t in n)lt(n,t)&&(i=b(t),i&&(r[i]=n[t]));return r}function at(n){return n instanceof Function||"[object Function]"===Object.prototype.toString.call(n)}function ki(n,t){return function(i){return null!=i?(io(this,n,i),r.updateOffset(this,t),this):eu(this,n)}}function eu(n,t){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+t]():NaN}function io(n,t,i){n.isValid()&&n._d["set"+(n._isUTC?"UTC":"")+t](i)}function ro(n,t){var i;if("object"==typeof n)for(i in n)this.set(i,n[i]);else if(n=b(n),at(this[n]))return this[n](t);return this}
vendor: 19,275 bytes, line 26
26function vt(n,t,i){var r=""+Math.abs(n),u=t-r.length,f=n>=0;return(f?i?"+":"":"-")+Math.pow(10,Math.max(0,u)).toString().substr(1)+r}function u(n,t,i,r){var u=r;"string"==typeof r&&(u=function(){return this[r]()});n&&(ur[n]=u);t&&(ur[t[0]]=function(){return vt(u.apply(this,arguments),t[1],t[2])});i&&(ur[i]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function rc(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function uc(n){for(var i=n.match(ps),t=0,r=i.length;r>t;t++)i[t]=ur[i[t]]?ur[i[t]]:rc(i[t]);return function(u){var f="";for(t=0;r>t;t++)f+=i[t]instanceof Function?i[t].call(u,n):i[t];return f}}function ff(n,t){return n.isValid()?(t=uo(t,n.localeData()),gf[t]=gf[t]||uc(t),gf[t](n)):n.localeData().invalidDate()}function uo(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(pu.lastIndex=0;i>=0&&pu.test(n);)n=n.replace(pu,r),pu.lastIndex=0,i-=1;return n}function i(n,t,i){ie[n]=at(t)?t:function(n){return n&&i?i:t}}function fc(n,t){return lt(ie,n)?ie[n](t._strict,t._locale):new RegExp(ec(n))}function ec(n){return ou(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u}))}function ou(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function h(n,t){var i,r=t;for("string"==typeof n&&(n=[n]),"number"==typeof t&&(r=function(n,i){i[t]=e(n)}),i=0;i<n.length;i++)re[n[i]]=r}function sr(n,t){h(n,function(n,i,r,u){r._w=r._w||{};t(n,r._w,r,u)})}function oc(n,t,i){null!=t&&lt(re,n)&&re[n](t,i._a,i,n)}function ef(n,t){return new Date(Date.UTC(n,t+1,0)).getUTCDate()}function sc(n,t){return oi(this._months)?this._months[n.month()]:this._months[gs.test(t)?"format":"standalone"][n.month()]}function hc(n,t){return oi(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[gs.test(t)?"format":"standalone"][n.month()]}function cc(n,t,i){var r,u,f;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;12>r;r++)if((u=bi([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(f="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[r]=new RegExp(f.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[r].test(n))||i&&"MMM"===t&&this._shortMonthsParse[r].test(n)||!i&&this._monthsParse[r].test(n))return r}function fo(n,t){var i;return n.isValid()?"string"==typeof t&&(t=n.localeData().monthsParse(t),"number"!=typeof t)?n:(i=Math.min(n.date(),ef(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n):n}function eo(n){return null!=n?(fo(this,n),r.updateOffset(this,!0),this):eu(this,"Month")}function lc(){return ef(this.year(),this.month())}function ac(n){return this._monthsParseExact?(lt(this,"_monthsRegex")||oo.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex}function vc(n){return this._monthsParseExact?(lt(this,"_monthsRegex")||oo.call(this),n?this._monthsStrictRegex:this._monthsRegex):this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex}function oo(){function f(n,t){return t.length-n.length}for(var i,r=[],u=[],t=[],n=0;12>n;n++)i=bi([2e3,n]),r.push(this.monthsShort(i,"")),u.push(this.months(i,"")),t.push(this.months(i,"")),t.push(this.monthsShort(i,""));for(r.sort(f),u.sort(f),t.sort(f),n=0;12>n;n++)r[n]=ou(r[n]),u[n]=ou(u[n]),t[n]=ou(t[n]);this._monthsRegex=new RegExp("^("+t.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+u.join("|")+")$","i");this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")$","i")}function sf(n){var i,t=n._a;return t&&-2===o(n).overflow&&(i=t[yt]<0||t[yt]>11?yt:t[ct]<1||t[ct]>ef(t[ft],t[yt])?ct:t[a]<0||t[a]>24||24===t[a]&&(0!==t[et]||0!==t[pt]||0!==t[wi])?a:t[et]<0||t[et]>59?et:t[pt]<0||t[pt]>59?pt:t[wi]<0||t[wi]>999?wi:-1,o(n)._overflowDayOfYear&&(ft>i||i>ct)&&(i=ct),o(n)._overflowWeeks&&-1===i&&(i=sw),o(n)._overflowWeekday&&-1===i&&(i=hw),o(n).overflow=i),n}function so(n){r.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+n)}function k(n,t){var i=!0;return uu(function(){return i&&(so(n+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),i=!1),t.apply(this,arguments)},t)}function yc(n,t){nh[n]||(so(t),nh[n]=!0)}function ho(n){var t,r,e,f,u,s,h=n._i,i=yw.exec(h)||pw.exec(h);if(i){for(o(n).iso=!0,t=0,r=nf.length;r>t;t++)if(nf[t][1].exec(i[1])){f=nf[t][0];e=nf[t][2]!==!1;break}if(null==f)return void(n._isValid=!1);if(i[3]){for(t=0,r=ue.length;r>t;t++)if(ue[t][1].exec(i[3])){u=(i[2]||" ")+ue[t][0];break}if(null==u)return void(n._isValid=!1)}if(!e&&null!=u)return void(n._isValid=!1);if(i[4]){if(!ww.exec(i[4]))return void(n._isValid=!1);s="Z"}n._f=f+(u||"")+(s||"");cf(n)}else n._isValid=!1}function pc(n){var t=bw.exec(n._i);return null!==t?void(n._d=new Date(+t[1])):(ho(n),void(n._isValid===!1&&(delete n._isValid,r.createFromInputFallback(n))))}function wc(n,t,i,r,u,f,e){var o=new Date(n,t,i,r,u,f,e);return 100>n&&n>=0&&isFinite(o.getFullYear())&&o.setFullYear(n),o}function su(n){var t=new Date(Date.UTC.apply(null,arguments));return 100>n&&n>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(n),t}function hr(n){return co(n)?366:365}function co(n){return n%4==0&&n%100!=0||n%400==0}function bc(){return co(this.year())}function hu(n,t,i){var r=7+t-i,u=(7+su(n,0,r).getUTCDay()-t)%7;return-u+r-1}function lo(n,t,i,r,u){var f,o,s=(7+i-r)%7,h=hu(n,r,u),e=1+7*(t-1)+s+h;return 0>=e?(f=n-1,o=hr(f)+e):e>hr(n)?(f=n+1,o=e-hr(n)):(f=n,o=e),{year:f,dayOfYear:o}}function cr(n,t,i){var f,r,e=hu(n.year(),t,i),u=Math.floor((n.dayOfYear()-e-1)/7)+1;return 1>u?(r=n.year()-1,f=u+hi(r,t,i)):u>hi(n.year(),t,i)?(f=u-hi(n.year(),t,i),r=n.year()+1):(r=n.year(),f=u),{week:f,year:r}}function hi(n,t,i){var r=hu(n,t,i),u=hu(n+1,t,i);return(hr(n)-r+u)/7}function di(n,t,i){return null!=n?n:null!=t?t:i}function kc(n){var t=new Date(r.now());return n._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function hf(n){var t,i,r,u,f=[];if(!n._d){for(r=kc(n),n._w&&null==n._a[ct]&&null==n._a[yt]&&dc(n),n._dayOfYear&&(u=di(n._a[ft],r[ft]),n._dayOfYear>hr(u)&&(o(n)._overflowDayOfYear=!0),i=su(u,0,n._dayOfYear),n._a[yt]=i.getUTCMonth(),n._a[ct]=i.getUTCDate()),t=0;3>t&&null==n._a[t];++t)n._a[t]=f[t]=r[t];for(;7>t;t++)n._a[t]=f[t]=null==n._a[t]?2===t?1:0:n._a[t];24===n._a[a]&&0===n._a[et]&&0===n._a[pt]&&0===n._a[wi]&&(n._nextDay=!0,n._a[a]=0);n._d=(n._useUTC?su:wc).apply(null,f);null!=n._tzm&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);n._nextDay&&(n._a[a]=24)}}function dc(n){var t,e,u,i,r,f,h,s;t=n._w;null!=t.GG||null!=t.W||null!=t.E?(r=1,f=4,e=di(t.GG,n._a[ft],cr(c(),1,4).year),u=di(t.W,1),i=di(t.E,1),(1>i||i>7)&&(s=!0)):(r=n._locale._week.dow,f=n._locale._week.doy,e=di(t.gg,n._a[ft],cr(c(),r,f).year),u=di(t.w,1),null!=t.d?(i=t.d,(0>i||i>6)&&(s=!0)):null!=t.e?(i=t.e+r,(t.e<0||t.e>6)&&(s=!0)):i=r);1>u||u>hi(e,r,f)?o(n)._overflowWeeks=!0:null!=s?o(n)._overflowWeekday=!0:(h=lo(e,u,i,r,f),n._a[ft]=h.year,n._dayOfYear=h.dayOfYear)}function cf(n){if(n._f===r.ISO_8601)return void ho(n);n._a=[];o(n).empty=!0;for(var t,u,s,i=""+n._i,c=i.length,h=0,e=uo(n._f,n._locale).match(ps)||[],f=0;f<e.length;f++)u=e[f],t=(i.match(fc(u,n))||[])[0],t&&(s=i.substr(0,i.indexOf(t)),s.length>0&&o(n).unusedInput.push(s),i=i.slice(i.indexOf(t)+t.length),h+=t.length),ur[u]?(t?o(n).empty=!1:o(n).unusedTokens.push(u),oc(u,t,n)):n._strict&&!t&&o(n).unusedTokens.push(u);o(n).charsLeftOver=c-h;i.length>0&&o(n).unusedInput.push(i);o(n).bigHour===!0&&n._a[a]<=12&&n._a[a]>0&&(o(n).bigHour=void 0);n._a[a]=gc(n._locale,n._a[a],n._meridiem);hf(n);sf(n)}function gc(n,t,i){var r;return null==i?t:null!=n.meridiemHour?n.meridiemHour(t,i):null!=n.isPM?(r=n.isPM(i),r&&12>t&&(t+=12),r||12!==t||(t=0),t):t}function nl(n){var t,f,u,r,i;if(0===n._f.length)return o(n).invalidFormat=!0,void(n._d=new Date(NaN));for(r=0;r<n._f.length;r++)i=0,t=uf({},n),null!=n._useUTC&&(t._useUTC=n._useUTC),t._f=n._f[r],cf(t),rf(t)&&(i+=o(t).charsLeftOver,i+=10*o(t).unusedTokens.length,o(t).score=i,(null==u||u>i)&&(u=i,f=t));uu(n,f||t)}function tl(n){if(!n._d){var t=to(n._i);n._a=we([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)});hf(n)}}function il(n){var t=new er(sf(ao(n)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function ao(n){var t=n._i,i=n._f;return n._locale=n._locale||si(n._l),null===t||void 0===i&&""===t?fu({nullInput:!0}):("string"==typeof t&&(n._i=t=n._locale.preparse(t)),gt(t)?new er(sf(t)):(oi(i)?nl(n):i?cf(n):ru(t)?n._d=t:rl(n),rf(n)||(n._d=null),n))}function rl(n){var t=n._i;void 0===t?n._d=new Date(r.now()):ru(t)?n._d=new Date(+t):"string"==typeof t?pc(n):oi(t)?(n._a=we(t.slice(0),function(n){return parseInt(n,10)}),hf(n)):"object"==typeof t?tl(n):"number"==typeof t?n._d=new Date(t):r.createFromInputFallback(n)}function vo(n,t,i,r,u){var f={};return"boolean"==typeof i&&(r=i,i=void 0),f._isAMomentObject=!0,f._useUTC=f._isUTC=u,f._l=i,f._i=n,f._f=t,f._strict=r,il(f)}function c(n,t,i,r){return vo(n,t,i,r,!1)}function yo(n,t){var r,i;if(1===t.length&&oi(t[0])&&(t=t[0]),!t.length)return c();for(r=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][n](r))&&(r=t[i]);return r}function ul(){var n=[].slice.call(arguments,0);return yo("isBefore",n)}function fl(){var n=[].slice.call(arguments,0);return yo("isAfter",n)}function cu(n){var t=to(n),i=t.year||0,r=t.quarter||0,u=t.month||0,f=t.week||0,e=t.day||0,o=t.hour||0,s=t.minute||0,h=t.second||0,c=t.millisecond||0;this._milliseconds=+c+1e3*h+6e4*s+36e5*o;this._days=+e+7*f;this._months=+u+3*r+12*i;this._data={};this._locale=si();this._bubble()}function lf(n){return n instanceof cu}function po(n,t){u(n,0,0,function(){var n=this.utcOffset(),i="+";return 0>n&&(n=-n,i="-"),i+vt(~~(n/60),2)+t+vt(~~n%60,2)})}function af(n,t){var r=(t||"").match(n)||[],f=r[r.length-1]||[],i=(f+"").match(th)||["-",0,0],u=+(60*i[1])+e(i[2]);return"+"===i[0]?u:-u}function vf(n,t){var i,u;return t._isUTC?(i=t.clone(),u=(gt(n)||ru(n)?+n:+c(n))-+i,i._d.setTime(+i._d+u),r.updateOffset(i,!1),i):c(n).local()}function yf(n){return 15*-Math.round(n._d.getTimezoneOffset()/15)}function el(n,t){var i,u=this._offset||0;return this.isValid()?null!=n?("string"==typeof n?n=af(gu,n):Math.abs(n)<16&&(n=60*n),!this._isUTC&&t&&(i=yf(this)),this._offset=n,this._isUTC=!0,null!=i&&this.add(i,"m"),u!==n&&(!t||this._changeInProgress?go(this,ni(n-u,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?u:yf(this):null!=n?this:NaN}function ol(n,t){return null!=n?("string"!=typeof n&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()}function sl(n){return this.utcOffset(0,n)}function hl(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(yf(this),"m")),this}function cl(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(af(ow,this._i)),this}function ll(n){return this.isValid()?(n=n?c(n).utcOffset():0,(this.utcOffset()-n)%60==0):!1}function al(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function vl(){var n,t;return y(this._isDSTShifted)?(n={},(uf(n,this),n=ao(n),n._a)?(t=n._isUTC?bi(n._a):c(n._a),this._isDSTShifted=this.isValid()&&be(n._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted):this._isDSTShifted}function yl(){return this.isValid()?!this._isUTC:!1}function pl(){return this.isValid()?this._isUTC:!1}function wo(){return this.isValid()?this._isUTC&&0===this._offset:!1}function ni(n,t){var u,f,o,i=n,r=null;return lf(n)?i={ms:n._milliseconds,d:n._days,M:n._months}:"number"==typeof n?(i={},t?i[t]=n:i.milliseconds=n):(r=ih.exec(n))?(u="-"===r[1]?-1:1,i={y:0,d:e(r[ct])*u,h:e(r[a])*u,m:e(r[et])*u,s:e(r[pt])*u,ms:e(r[wi])*u}):(r=rh.exec(n))?(u="-"===r[1]?-1:1,i={y:ci(r[2],u),M:ci(r[3],u),d:ci(r[4],u),h:ci(r[5],u),m:ci(r[6],u),s:ci(r[7],u),w:ci(r[8],u)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(o=wl(c(i.from),c(i.to)),i={},i.ms=o.milliseconds,i.M=o.months),f=new cu(i),lf(n)&&lt(n,"_locale")&&(f._locale=n._locale),f}function ci(n,t){var i=n&&parseFloat(n.replace(",","."));return(isNaN(i)?0:i)*t}function bo(n,t){var i={milliseconds:0,months:0};return i.months=t.month()-n.month()+12*(t.year()-n.year()),n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function wl(n,t){var i;return n.isValid()&&t.isValid()?(t=vf(t,n),n.isBefore(t)?i=bo(n,t):(i=bo(t,n),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function ko(n,t){return function(i,r){var u,f;return null===r||isNaN(+r)||(yc(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),f=i,i=r,r=f),i="string"==typeof i?+i:i,u=ni(i,r),go(this,u,n),this}}function go(n,t,i,u){var o=t._milliseconds,f=t._days,e=t._months;n.isValid()&&(u=null==u?!0:u,o&&n._d.setTime(+n._d+o*i),f&&io(n,"Date",eu(n,"Date")+f*i),e&&fo(n,eu(n,"Month")+e*i),u&&r.updateOffset(n,f||e))}function bl(n,t){var u=n||c(),f=vf(u,this).startOf("day"),i=this.diff(f,"days",!0),r=-6>i?"sameElse":-1>i?"lastWeek":0>i?"lastDay":1>i?"sameDay":2>i?"nextDay":7>i?"nextWeek":"sameElse",e=t&&(at(t[r])?t[r]():t[r]);return this.format(e||this.localeData().calendar(r,this,c(u)))}function kl(){return new er(this)}function dl(n,t){var i=gt(n)?n:c(n);return this.isValid()&&i.isValid()?(t=b(y(t)?"millisecond":t),"millisecond"===t?+this>+i:+i<+this.clone().startOf(t)):!1}function gl(n,t){var i=gt(n)?n:c(n);return this.isValid()&&i.isValid()?(t=b(y(t)?"millisecond":t),"millisecond"===t?+i>+this:+this.clone().endOf(t)<+i):!1}function na(n,t,i){return this.isAfter(n,i)&&this.isBefore(t,i)}function ta(n,t){var i,r=gt(n)?n:c(n);return this.isValid()&&r.isValid()?(t=b(t||"millisecond"),"millisecond"===t?+this==+r:(i=+r,+this.clone().startOf(t)<=i&&i<=+this.clone().endOf(t))):!1}function ia(n,t){return this.isSame(n,t)||this.isAfter(n,t)}function ra(n,t){return this.isSame(n,t)||this.isBefore(n,t)}function ua(n,t,i){var f,e,r,u;return this.isValid()?(f=vf(n,this),f.isValid()?(e=6e4*(f.utcOffset()-this.utcOffset()),t=b(t),"year"===t||"month"===t||"quarter"===t?(u=fa(this,f),"quarter"===t?u/=3:"year"===t&&(u/=12)):(r=this-f,u="second"===t?r/1e3:"minute"===t?r/6e4:"hour"===t?r/36e5:"day"===t?(r-e)/864e5:"week"===t?(r-e)/6048e5:r),i?u:p(u)):NaN):NaN}function fa(n,t){var r,f,u=12*(t.year()-n.year())+(t.month()-n.month()),i=n.clone().add(u,"months");return 0>t-i?(r=n.clone().add(u-1,"months"),f=(t-i)/(i-r)):(r=n.clone().add(u+1,"months"),f=(t-i)/(r-i)),-(u+f)}function ea(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function oa(){var n=this.clone().utc();return 0<n.year()&&n.year()<=9999?at(Date.prototype.toISOString)?this.toDate().toISOString():ff(n,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):ff(n,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function sa(n){var t=ff(this,n||r.defaultFormat);return this.localeData().postformat(t)}function ha(n,t){return this.isValid()&&(gt(n)&&n.isValid()||c(n).isValid())?ni({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ca(n){return this.from(c(),n)}function la(n,t){return this.isValid()&&(gt(n)&&n.isValid()||c(n).isValid())?ni({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function aa(n){return this.to(c(),n)}function ns(n){var t;return void 0===n?this._locale._abbr:(t=si(n),null!=t&&(this._locale=t),this)}function ts(){return this._locale}function va(n){switch(n=b(n)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===n&&this.weekday(0),"isoWeek"===n&&this.isoWeekday(1),"quarter"===n&&this.month(3*Math.floor(this.month()/3)),this}function ya(n){return n=b(n),void 0===n||"millisecond"===n?this:this.startOf(n).add(1,"isoWeek"===n?"week":n).subtract(1,"ms")}function pa(){return+this._d-6e4*(this._offset||0)}function wa(){return Math.floor(+this/1e3)}function ba(){return this._offset?new Date(+this):this._d}function ka(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function da(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function ga(){return this.isValid()?this.toISOString():"null"}function nv(){return rf(this)}function tv(){return uu({},o(this))}function iv(){return o(this).overflow}function rv(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function lu(n,t){u(0,[n,n.length],0,t)}function uv(n){return is.call(this,n,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function fv(n){return is.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function ev(){return hi(this.year(),1,4)}function ov(){var n=this.localeData()._week;return hi(this.year(),n.dow,n.doy)}function is(n,t,i,r,u){var f;return null==n?cr(this,r,u).year:(f=hi(n,r,u),t>f&&(t=f),sv.call(this,n,t,i,r,u))}function sv(n,t,i,r,u){var e=lo(n,t,i,r,u),f=su(e.year,0,e.dayOfYear);return this.year(f.getUTCFullYear()),this.month(f.getUTCMonth()),this.date(f.getUTCDate()),this}function hv(n){return null==n?Math.ceil((this.month()+1)/3):this.month(3*(n-1)+this.month()%3)}function cv(n){return cr(n,this._week.dow,this._week.doy).week}function lv(){return this._week.dow}function av(){return this._week.doy}function vv(n){var t=this.localeData().week(this);return null==n?t:this.add(7*(n-t),"d")}function yv(n){var t=cr(this,1,4).week;return null==n?t:this.add(7*(n-t),"d")}function pv(n,t){return"string"!=typeof n?n:isNaN(n)?(n=t.weekdaysParse(n),"number"==typeof n?n:null):parseInt(n,10)}function wv(n,t){return oi(this._weekdays)?this._weekdays[n.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][n.day()]}function bv(n){return this._weekdaysShort[n.day()]}function kv(n){return this._weekdaysMin[n.day()]}function dv(n,t,i){var r,u,f;for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;7>r;r++)if((u=c([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(u,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(u,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(u,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(f="^"+this.weekdays(u,"")+"|^"+this.weekdaysShort(u,"")+"|^"+this.weekdaysMin(u,""),this._weekdaysParse[r]=new RegExp(f.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[r].test(n))||i&&"ddd"===t&&this._shortWeekdaysParse[r].test(n)||i&&"dd"===t&&this._minWeekdaysParse[r].test(n)||!i&&this._weekdaysParse[r].test(n))return r}
26function gv(n){if(!this.isValid())return null!=n?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=n?(n=pv(n,this.localeData()),this.add(n-t,"d")):t}function ny(n){if(!this.isValid())return null!=n?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==n?t:this.add(n-t,"d")}function ty(n){return this.isValid()?null==n?this.day()||7:this.day(this.day()%7?n:n-7):null!=n?this:NaN}function iy(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==n?t:this.add(n-t,"d")}function pf(){return this.hours()%12||12}function rs(n,t){u(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function us(n,t){return t._meridiemParse}function ry(n){return"p"===(n+"").toLowerCase().charAt(0)}function uy(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"}function fy(n,t){t[wi]=e(1e3*("0."+n))}function ey(){return this._isUTC?"UTC":""}function oy(){return this._isUTC?"Coordinated Universal Time":""}function sy(n){return c(1e3*n)}function hy(){return c.apply(null,arguments).parseZone()}function cy(n,t,i){var r=this._calendar[n];return at(r)?r.call(t,i):r}function ly(n){var t=this._longDateFormat[n],i=this._longDateFormat[n.toUpperCase()];return t||!i?t:(this._longDateFormat[n]=i.replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n])}function ay(){return this._invalidDate}function vy(n){return this._ordinal.replace("%d",n)}function fs(n){return n}function yy(n,t,i,r){var u=this._relativeTime[i];return at(u)?u(n,t,i,r):u.replace(/%d/i,n)}function py(n,t){var i=this._relativeTime[n>0?"future":"past"];return at(i)?i(t):i.replace(/%s/i,t)}function wy(n){var t;for(var i in n)t=n[i],at(t)?this[i]=t:this["_"+i]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function es(n,t,i,r){var u=si(),f=bi().set(r,t);return u[i](f,n)}function lr(n,t,i,r,u){if("number"==typeof n&&(t=n,n=void 0),n=n||"",null!=t)return es(n,t,i,u);for(var e=[],f=0;r>f;f++)e[f]=es(n,f,i,u);return e}function by(n,t){return lr(n,t,"months",12,"month")}function ky(n,t){return lr(n,t,"monthsShort",12,"month")}function dy(n,t){return lr(n,t,"weekdays",7,"day")}function gy(n,t){return lr(n,t,"weekdaysShort",7,"day")}function np(n,t){return lr(n,t,"weekdaysMin",7,"day")}function tp(){var n=this._data;return this._milliseconds=wt(this._milliseconds),this._days=wt(this._days),this._months=wt(this._months),n.milliseconds=wt(n.milliseconds),n.seconds=wt(n.seconds),n.minutes=wt(n.minutes),n.hours=wt(n.hours),n.months=wt(n.months),n.years=wt(n.years),this}function os(n,t,i,r){var u=ni(t,i);return n._milliseconds+=r*u._milliseconds,n._days+=r*u._days,n._months+=r*u._months,n._bubble()}function ip(n,t){return os(this,n,t,1)}function rp(n,t){return os(this,n,t,-1)}function ss(n){return 0>n?Math.floor(n):Math.ceil(n)}function up(){var u,f,e,s,o,r=this._milliseconds,n=this._days,t=this._months,i=this._data;return r>=0&&n>=0&&t>=0||0>=r&&0>=n&&0>=t||(r+=864e5*ss(wf(t)+n),n=0,t=0),i.milliseconds=r%1e3,u=p(r/1e3),i.seconds=u%60,f=p(u/60),i.minutes=f%60,e=p(f/60),i.hours=e%24,n+=p(e/24),o=p(hs(n)),t+=o,n-=ss(wf(o)),s=p(t/12),t%=12,i.days=n,i.months=t,i.years=s,this}function hs(n){return 4800*n/146097}function wf(n){return 146097*n/4800}function fp(n){var t,r,i=this._milliseconds;if(n=b(n),"month"===n||"year"===n)return t=this._days+i/864e5,r=this._months+hs(t),"month"===n?r:r/12;switch(t=this._days+Math.round(wf(this._months)),n){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+n);}}function ep(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*e(this._months/12)}function ti(n){return function(){return this.as(n)}}function op(n){return n=b(n),this[n+"s"]()}function li(n){return function(){return this._data[n]}}function sp(){return p(this.days()/7)}function hp(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function cp(n,t,i){var r=ni(n).abs(),h=fr(r.as("s")),f=fr(r.as("m")),e=fr(r.as("h")),o=fr(r.as("d")),s=fr(r.as("M")),c=fr(r.as("y")),u=h<ei.s&&["s",h]||1>=f&&["m"]||f<ei.m&&["mm",f]||1>=e&&["h"]||e<ei.h&&["hh",e]||1>=o&&["d"]||o<ei.d&&["dd",o]||1>=s&&["M"]||s<ei.M&&["MM",s]||1>=c&&["y"]||["yy",c];return u[2]=t,u[3]=+n>0,u[4]=i,hp.apply(null,u)}function lp(n,t){return void 0===ei[n]?!1:void 0===t?ei[n]:(ei[n]=t,!0)}function ap(n){var t=this.localeData(),i=cp(this,!n,t);return n&&(i=t.pastFuture(+this,i)),t.postformat(i)}function au(){var n,e,o,t=se(this._milliseconds)/1e3,a=se(this._days),i=se(this._months);n=p(t/60);e=p(n/60);t%=60;n%=60;o=p(i/12);i%=12;var s=o,h=i,c=a,r=e,u=n,f=t,l=this.asSeconds();return l?(0>l?"-":"")+"P"+(s?s+"Y":"")+(h?h+"M":"")+(c?c+"D":"")+(r||u||f?"T":"")+(r?r+"H":"")+(u?u+"M":"")+(f?f+"S":""):"P0D"}function vp(n,t){var i=n.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?i[1]:i[2]}function ai(n,t,i){var r={mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===i?t?"хвіліна":"хвіліну":"h"===i?t?"гадзіна":"гадзіну":n+" "+vp(r[i],+n)}function bf(n,t,i){return n+" "+pp({mm:"munutenn",MM:"miz",dd:"devezh"}[i],n)}function yp(n){switch(cs(n)){case 1:case 3:case 4:case 5:case 9:return n+" bloaz";default:return n+" vloaz"}}function cs(n){return n>9?cs(n%10):n}function pp(n,t){return 2===t?wp(n):n}function wp(n){var t={m:"v",b:"v",d:"z"};return void 0===t[n.charAt(0)]?n:t[n.charAt(0)]+n.substring(1)}function vi(n,t,i){var r=n+" ";switch(i){case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+(1===n?"minuta":2===n||3===n||4===n?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return r+(1===n?"sat":2===n||3===n||4===n?"sata":"sati");case"dd":return r+(1===n?"dan":"dana");case"MM":return r+(1===n?"mjesec":2===n||3===n||4===n?"mjeseca":"mjeseci");case"yy":return r+(1===n?"godina":2===n||3===n||4===n?"godine":"godina")}}function ar(n){return n>1&&5>
26n&&1!=~~(n/10)}function d(n,t,i,r){var u=n+" ";switch(i){case"s":return t||r?"pár sekund":"pár sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?u+(ar(n)?"minuty":"minut"):u+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?u+(ar(n)?"hodiny":"hodin"):u+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?u+(ar(n)?"dny":"dní"):u+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?u+(ar(n)?"měsíce":"měsíců"):u+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?u+(ar(n)?"roky":"let"):u+"lety"}}function ii(n,t,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[n+" Tage",n+" Tagen"],M:["ein Monat","einem Monat"],MM:[n+" Monate",n+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[n+" Jahre",n+" Jahren"]};return t?r[i][0]:r[i][1]}function ri(n,t,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[n+" Tage",n+" Tagen"],M:["ein Monat","einem Monat"],MM:[n+" Monate",n+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[n+" Jahre",n+" Jahren"]};return t?r[i][0]:r[i][1]}function st(n,t,i,r){var u={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:[n+" minuti",n+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[n+" tunni",n+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[n+" kuu",n+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[n+" aasta",n+" aastat"]};return t?u[i][2]?u[i][2]:u[i][1]:r?u[i][0]:u[i][1]}function g(n,t,i,r){var u="";switch(i){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"m":return r?"minuutin":"minuutti";case"mm":u=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":u=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":u=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":u=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":u=r?"vuoden":"vuotta"}return bp(n,r)+" "+u}function bp(n,t){return 10>n?t?ck[n]:tf[n]:n}function yi(n,t,i){var r=n+" ";switch(i){case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+(1===n?"minuta":2===n||3===n||4===n?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return r+(1===n?"sat":2===n||3===n||4===n?"sata":"sati");case"dd":return r+(1===n?"dan":"dana");case"MM":return r+(1===n?"mjesec":2===n||3===n||4===n?"mjeseca":"mjeseci");case"yy":return r+(1===n?"godina":2===n||3===n||4===n?"godine":"godina")}}function nt(n,t,i,r){var u=n;switch(i){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return u+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return u+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return u+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return u+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return u+(r||t?" év":" éve")}return""}function ls(n){return(n?"":"[múlt] ")+"["+wk[this.day()]+"] LT[-kor]"}function vr(n){return n%100==11?!0:n%10==1?!1:!0}function ht(n,t,i,r){var u=n+" ";switch(i){case"s":return t||r?"nokkrar sekúndur":"nokkrum sekúndum";
26case"m":return t?"mínúta":"mínútu";case"mm":return vr(n)?u+(t||r?"mínútur":"mínútum"):t?u+"mínúta":u+"mínútu";case"hh":return vr(n)?u+(t||r?"klukkustundir":"klukkustundum"):u+"klukkustund";case"d":return t?"dagur":r?"dag":"degi";case"dd":return vr(n)?t?u+"dagar":u+(r?"daga":"dögum"):t?u+"dagur":u+(r?"dag":"degi");case"M":return t?"mánuður":r?"mánuð":"mánuði";case"MM":return vr(n)?t?u+"mánuðir":u+(r?"mánuði":"mánuðum"):t?u+"mánuður":u+(r?"mánuð":"mánuði");case"y":return t||r?"ár":"ári";case"yy":return vr(n)?u+(t||r?"ár":"árum"):u+(t||r?"ár":"ári")}}function yr(n,t,i){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?r[i][0]:r[i][1]}function kp(n){var t=n.substr(0,n.indexOf(" "));return pr(t)?"a "+n:"an "+n}function dp(n){var t=n.substr(0,n.indexOf(" "));return pr(t)?"viru "+n:"virun "+n}function pr(n){if(n=parseInt(n,10),isNaN(n))return!1;if(0>n)return!0;if(10>n)return n>=4&&7>=n?!0:!1;if(100>n){var t=n%10,i=n/10;return pr(0===t?i:t)}if(1e4>n){for(;n>=10;)n/=10;return pr(n)}return n/=1e3,pr(n)}function gp(n,t,i,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"}function gi(n,t,i,r){return t?ui(i)[0]:r?ui(i)[1]:ui(i)[2]}function as(n){return n%10==0||n>10&&20>n}function ui(n){return bk[n].split("_")}function wr(n,t,i,r){var u=n+" ";return 1===n?u+gi(n,t,i[0],r):t?u+(as(n)?ui(i)[1]:ui(i)[0]):r?u+ui(i)[1]:u+(as(n)?ui(i)[1]:ui(i)[2])}function vs(n,t,i){return i?t%10==1&&11!==t?n[2]:n[3]:t%10==1&&11!==t?n[0]:n[1]}function br(n,t,i){return n+" "+vs(bh[i],n,t)}function kr(n,t,i){return vs(bh[i],n,t)}function nw(n,t){return t?"dažas sekundes":"dažām sekundēm"}function tt(n,t,i){var r="";if(t)switch(i){case"s":r="काही सेकंद";break;case"m":r="एक मिनिट";break;case"mm":r="%d मिनिटे";break;case"h":r="एक तास";break;case"hh":r="%d तास";break;case"d":r="एक दिवस";break;case"dd":r="%d दिवस";break;case"M":r="एक महिना";break;case"MM":r="%d महिने";break;case"y":r="एक वर्ष";break;case"yy":r="%d वर्षे"}else switch(i){case"s":r="काही सेकंदां";break;case"m":r="एका मिनिटा";break;case"mm":r="%d मिनिटां";break;case"h":r="एका तासा";break;case"hh":r="%d तासां";break;case"d":r="एका दिवसा";break;case"dd":r="%d दिवसां";break;case"M":r="एका महिन्या";break;case"MM":r="%d महिन्यां";break;case"y":r="एका वर्षा";break;case"yy":r="%d वर्षां"}return r.replace(/%d/i,n)}function vu(n){return 5>n%10&&n%10>1&&~~(n/10)%10!=1}function nr(n,t,i){var r=n+" ";switch(i){case"m":return t?"minuta":"minutę";case"mm":return r+(vu(n)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(vu(n)?"godziny":"godzin");case"MM":return r+(vu(n)?"miesiące":"miesięcy");case"yy":return r+(vu(n)?"lata":"lat")}}function dr(n,t,i){var r=" ";return(n%100>=20||n>=100&&n%100==0)&&(r=" de "),n+r+{mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[i]}function tw(n,t){var i=n.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?i[1]:i[2]}function tr(n,t,i){var r={mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===i?t?"минута":"минуту":n+" "+tw(r[i],+n)}function gr(n){return n>1&&5>n}function it(n,t,i,r){var u=n+" ";switch(i){case"s":return t||r?"pár sekúnd":"pár sekundami";case"m":return t?"minúta":r?"minútu":"minútou";case"mm":return t||r?u+(gr(n)?"minúty":"minút"):u+"minútami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?u+(gr(n)?"hodiny":"hodín"):u+"hodinami";case"d":return t||r?"deň":"dňom";case"dd":return t||r?u+(gr(n)?"dni":"dní"):u+"dňami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?u+(gr(n)?"mesiace":"mesiacov"):u+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?u+(gr(n)?"roky":"rokov"):u+"rokmi"}}function rt(n,t,i,r){var u=n+" ";switch(i){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"m":return t?"ena minuta":"eno minuto";case"mm":return u+(1===n?t?"minuta":"minuto":2===n?t||r?"minuti":"minutama":5>n?t||r?"minute":"minutami":t||r?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return u+(1===n?t?"ura":"uro":2===n?t||r?"uri":"urama":5>n?t||r?"ure":"urami":t||r?"ur":"urami");case"d":return t||r?"en dan":"enim dnem";case"dd":return u+(1===n?t||r?"dan":"dnem":2===n?t||r?"dni":"dnevoma":t||r?"dni":"dnevi");case"M":return t||r?"en mesec":"enim mesecem";case"MM":return u+(1===n?t||r?"mesec":"mesecem":2===n?t||r?"meseca":"mesecema":5>n?t||r?"mesece":"meseci":t||r?"mesecev":"meseci");case"y":return t||r?"eno leto":"enim letom";case"yy":return u+(1===n?t||r?"leto":"letom":2===n?t||r?"leti":"letoma":5>n?t||r?"leta":"leti":t||r?"let":"leti")}}function iw(n){var t=n;return-1!==n.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==n.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==n.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"}function rw(n){var t=n;return-1!==n.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==n.indexOf("jar")?t.slice(0,-3)+"wen":-1!==n.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"}
26function nu(n,t,i){var r=uw(n);switch(i){case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}function uw(n){var i=Math.floor(n%1e3/100),r=Math.floor(n%100/10),u=n%10,t="";return i>0&&(t+=ye[i]+"vatlh"),r>0&&(t+=(""!==t?" ":"")+ye[r]+"maH"),u>0&&(t+=(""!==t?" ":"")+ye[u]),""===t?"pagh":t}function ut(n,t,i,r){var u={s:["viensas secunds","'iensas secunds"],m:["'n míut","'iens míut"],mm:[n+" míuts",""+n+" míuts"],h:["'n þora","'iensa þora"],hh:[n+" þoras",""+n+" þoras"],d:["'n ziua","'iensa ziua"],dd:[n+" ziuas",""+n+" ziuas"],M:["'n mes","'iens mes"],MM:[n+" mesen",""+n+" mesen"],y:["'n ar","'iens ar"],yy:[n+" ars",""+n+" ars"]};return r?u[i][0]:t?u[i][0]:u[i][1]}function fw(n,t){var i=n.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?i[1]:i[2]}function ir(n,t,i){var r={mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===i?t?"хвилина":"хвилину":"h"===i?t?"година":"годину":n+" "+fw(r[i],+n)}function ew(n,t){var i={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")},r=/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative";return i[r][n.day()]}function rr(n){return function(){return n+"о"+(11===this.hours()?"б":"")+"] LT"}}var fe,th,ih,rh,uh,fh,ee,eh,oe,oh,sh,hh,ch,fi,lh,t;
27//! moment.js locale configuration
28//! locale : belarusian (be)
29//! author : Dmitry Demidov : https://github.com/demidov91
30//! author: Praleska: http://praleska.pro/
31//! Author : Menelion Elensúle : https://github.com/Oire
32//! moment.js locale configuration
33//! locale : breton (br)
34//! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
35//! moment.js locale configuration
36//! locale : bosnian (bs)
37//! author : Nedim Cholich : https://github.com/frontyard
38//! based on (hr) translation by Bojan Marković
39//! moment.js locale configuration
40//! locale : austrian german (de-at)
41//! author : lluchs : https://github.com/lluchs
42//! author: Menelion Elensúle: https://github.com/Oire
43//! author : Martin Groller : https://github.com/MadMG
44//! author : Mikolaj Dadela : https://github.com/mik01aj
45//! moment.js locale configuration
46//! locale : german (de)
47//! author : lluchs : https://github.com/lluchs
48//! author: Menelion Elensúle: https://github.com/Oire
49//! author : Mikolaj Dadela : https://github.com/mik01aj
50//! moment.js locale configuration
51//! locale : estonian (et)
52//! author : Henry Kehlmann : https://github.com/madhenry
53//! improvements : Illimar Tambek : https://github.com/ragulka
54//! moment.js locale configuration
55//! locale : hrvatski (hr)
56//! author : Bojan Marković : https://github.com/bmarkovic
57//! moment.js locale configuration
58//! locale : icelandic (is)
59//! author : Hinrik Örn Sigurðsson : https://github.com/hinrik
60//! moment.js locale configuration
61//! locale : Luxembourgish (lb)
62//! author : mweimerskirch : https://github.com/mweimerskirch, David Raison : https://github.com/kwisatz
63//! moment.js locale configuration
64//! locale : romanian (ro)
65//! author : Vlad Gurdiga : https://github.com/gurdiga
66//! author : Valentin Agachi : https://github.com/avaly
67//! moment.js locale configuration
68//! locale : russian (ru)
69//! author : Viktorminator : https://github.com/Viktorminator
70//! Author : Menelion Elensúle : https://github.com/Oire
71//! moment.js locale configuration
72//! locale : slovenian (sl)
73//! author : Robert Sedovšek : https://github.com/sedovsek
74//! moment.js locale configuration
75//! locale : ukrainian (uk)
76//! author : zemlanin : https://github.com/zemlanin
77//! Author : Menelion Elensúle : https://github.com/Oire
78var ys,yu,kf=r.momentProperties=[],df=!1,pi={},tu={},ps=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}
78|x|X|zz?|ZZ?|.)/g,pu=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,gf={},ur={},ws=/\d/,w=/\d\d/,bs=/\d{3}/,ne=/\d{4}/,wu=/[+-]?\d{6}/,l=/\d\d?/,ks=/\d\d\d\d?/,ds=/\d\d\d\d\d\d?/,bu=/\d{1,3}/,te=/\d{1,4}/,ku=/[+-]?\d{1,6}/,du=/[+-]?\d+/,ow=/Z|[+-]\d\d:?\d\d/gi,gu=/Z|[+-]\d\d(?::?\d\d)?/gi,iu=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ie={},re={},ft=0,yt=1,ct=2,a=3,et=4,pt=5,wi=6,sw=7,hw=8;u("M",["MM",2],"Mo",function(){return this.month()+1});u("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});u("MMMM",0,0,function(n){return this.localeData().months(this,n)});v("month","M");i("M",l);i("MM",l,w);i("MMM",function(n,t){return t.monthsShortRegex(n)});i("MMMM",function(n,t){return t.monthsRegex(n)});h(["M","MM"],function(n,t){t[yt]=e(n)-1});h(["MMM","MMMM"],function(n,t,i,r){var u=i._locale.monthsParse(n,r,i._strict);null!=u?t[yt]=u:o(i).invalidMonth=n});var gs=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,cw="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),lw="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),aw=iu,vw=iu,nh={};r.suppressDeprecationWarnings=!1;var yw=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,pw=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,ww=/Z|[+-]\d\d(?::?\d\d)?/,nf=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ue=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],bw=/^\/?Date\((\-?\d+)/i;r.createFromInputFallback=k("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))});u("Y",0,0,function(){var n=this.year();return 9999>=n?""+n:"+"+n});u(0,["YY",2],0,function(){return this.year()%100});u(0,["YYYY",4],0,"year");u(0,["YYYYY",5],0,"year");u(0,["YYYYYY",6,!0],0,"year");v("year","y");i("Y",du);i("YY",l,w);i("YYYY",te,ne);i("YYYYY",ku,wu);i("YYYYYY",ku,wu);h(["YYYYY","YYYYYY"],ft);h("YYYY",function(n,t){t[ft]=2===n.length?r.parseTwoDigitYear(n):e(n)});h("YY",function(n,t){t[ft]=r.parseTwoDigitYear(n)});h("Y",function(n,t){t[ft]=parseInt(n,10)});r.parseTwoDigitYear=function(n){return e(n)+(e(n)>68?1900:2e3)};fe=ki("FullYear",!1);r.ISO_8601=function(){};var kw=k("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var n=c.apply(null,arguments);return this.isValid()&&n.isValid()?this>n?this:n:fu()}),dw=k("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var n=c.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:fu()}),gw=function(){return Date.now?Date.now():+new Date};po("Z",":");po("ZZ","");i("Z",gu);i("ZZ",gu);h(["Z","ZZ"],function(n,t,i){i._useUTC=!0;i._tzm=af(gu,n)});th=/([\+\-]|\d\d)/gi;r.updateOffset=function(){};ih=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/;rh=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;ni.fn=cu.prototype;uh=ko(1,"add");fh=ko(-1,"subtract");r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";ee=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return void 0===n?this.localeData():this.locale(n)});u(0,["gg",2],0,function(){return this.weekYear()%100});u(0,["GG",2],0,function(){return this.isoWeekYear()%100});lu("gggg","weekYear");lu("ggggg","weekYear");lu("GGGG","isoWeekYear");lu("GGGGG","isoWeekYear");
78v("weekYear","gg");v("isoWeekYear","GG");i("G",du);i("g",du);i("GG",l,w);i("gg",l,w);i("GGGG",te,ne);i("gggg",te,ne);i("GGGGG",ku,wu);i("ggggg",ku,wu);sr(["gggg","ggggg","GGGG","GGGGG"],function(n,t,i,r){t[r.substr(0,2)]=e(n)});sr(["gg","GG"],function(n,t,i,u){t[u]=r.parseTwoDigitYear(n)});u("Q",0,"Qo","quarter");v("quarter","Q");i("Q",ws);h("Q",function(n,t){t[yt]=3*(e(n)-1)});u("w",["ww",2],"wo","week");u("W",["WW",2],"Wo","isoWeek");v("week","w");v("isoWeek","W");i("w",l);i("ww",l,w);i("W",l);i("WW",l,w);sr(["w","ww","W","WW"],function(n,t,i,r){t[r.substr(0,1)]=e(n)});eh={dow:0,doy:6};u("D",["DD",2],"Do","date");v("date","D");i("D",l);i("DD",l,w);i("Do",function(n,t){return n?t._ordinalParse:t._ordinalParseLenient});h(["D","DD"],ct);h("Do",function(n,t){t[ct]=e(n.match(l)[0],10)});oe=ki("Date",!0);u("d",0,"do","day");u("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});u("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});u("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});u("e",0,0,"weekday");u("E",0,0,"isoWeekday");v("day","d");v("weekday","e");v("isoWeekday","E");i("d",l);i("e",l);i("E",l);i("dd",iu);i("ddd",iu);i("dddd",iu);sr(["dd","ddd","dddd"],function(n,t,i,r){var u=i._locale.weekdaysParse(n,r,i._strict);null!=u?t.d=u:o(i).invalidWeekday=n});sr(["d","e","E"],function(n,t,i,r){t[r]=e(n)});var nb="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),tb="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ib="Su_Mo_Tu_We_Th_Fr_Sa".split("_");for(u("DDD",["DDDD",3],"DDDo","dayOfYear"),v("dayOfYear","DDD"),i("DDD",bu),i("DDDD",bs),h(["DDD","DDDD"],function(n,t,i){i._dayOfYear=e(n)}),u("H",["HH",2],0,"hour"),u("h",["hh",2],0,pf),u("hmm",0,0,function(){return""+pf.apply(this)+vt(this.minutes(),2)}),u("hmmss",0,0,function(){return""+pf.apply(this)+vt(this.minutes(),2)+vt(this.seconds(),2)}),u("Hmm",0,0,function(){return""+this.hours()+vt(this.minutes(),2)}),u("Hmmss",0,0,function(){return""+this.hours()+vt(this.minutes(),2)+vt(this.seconds(),2)}),rs("a",!0),rs("A",!1),v("hour","h"),i("a",us),i("A",us),i("H",l),i("h",l),i("HH",l,w),i("hh",l,w),i("hmm",ks),i("hmmss",ds),i("Hmm",ks),i("Hmmss",ds),h(["H","HH"],a),h(["a","A"],function(n,t,i){i._isPm=i._locale.isPM(n);i._meridiem=n}),h(["h","hh"],function(n,t,i){t[a]=e(n);o(i).bigHour=!0}),h("hmm",function(n,t,i){var r=n.length-2;t[a]=e(n.substr(0,r));t[et]=e(n.substr(r));o(i).bigHour=!0}),h("hmmss",function(n,t,i){var r=n.length-4,u=n.length-2;t[a]=e(n.substr(0,r));t[et]=e(n.substr(r,2));t[pt]=e(n.substr(u));o(i).bigHour=!0}),h("Hmm",function(n,t){var i=n.length-2;t[a]=e(n.substr(0,i));t[et]=e(n.substr(i))}),h("Hmmss",function(n,t){var i=n.length-4,r=n.length-2;t[a]=e(n.substr(0,i));t[et]=e(n.substr(i,2));t[pt]=e(n.substr(r))}),oh=/[ap]\.?m?\.?/i,sh=ki("Hours",!0),u("m",["mm",2],0,"minute"),v("minute","m"),i("m",l),i("mm",l,w),h(["m","mm"],et),hh=ki("Minutes",!1),u("s",["ss",2],0,"second"),v("second","s"),i("s",l),i("ss",l,w),h(["s","ss"],pt),ch=ki("Seconds",!1),u("S",0,0,function(){return~~(this.millisecond()/100)}),u(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),u(0,["SSS",3],0,"millisecond"),u(0,["SSSS",4],0,function(){return 10*this.millisecond()}),u(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),u(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),u(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),u(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),u(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),v("millisecond","ms"),i("S",bu,ws),i("SS",bu,w),i("SSS",bu,bs),fi="SSSS";fi.length<=9;fi+="S")i(fi,/\d+/);for(fi="S";fi.length<=9;fi+="S")h(fi,fy);lh=ki("Milliseconds",!1);u("z",0,0,"zoneAbbr");u("zz",0,0,"zoneName");t=er.prototype;t.add=uh;t.calendar=bl;t.clone=kl;t.diff=ua;t.endOf=ya;t.format=sa;t.from=ha;t.fromNow=ca;t.to=la;t.toNow=aa;t.get=ro;t.invalidAt=iv;t.isAfter=dl;t.isBefore=gl;t.isBetween=na;t.isSame=ta;t.isSameOrAfter=ia;t.isSameOrBefore=ra;t.isValid=nv;t.lang=ee;t.locale=ns;t.localeData=ts;t.max=dw;t.min=kw;t.parsingFlags=tv;t.set=ro;t.startOf=va;t.subtract=fh;t.toArray=ka;t.toObject=da;t.toDate=ba;t.toISOString=oa;t.toJSON=ga;t.toString=ea;t.unix=wa;t.valueOf=pa;t.creationData=rv;t.year=fe;t.isLeapYear=bc;t.weekYear=uv;t.isoWeekYear=fv;t.quarter=t.quarters=hv;t.month=eo;t.daysInMonth=lc;t.week=t.weeks=vv;t.isoWeek=t.isoWeeks=yv;t.weeksInYear=ov;t.isoWeeksInYear=ev;t.date=oe;t.day=t.days=gv;t.weekday=ny;t.isoWeekday=ty;t.dayOfYear=iy;t.hour=t.hours=sh;t.minute=t.minutes=hh;t.second=t.seconds=ch;t.millisecond=t.milliseconds=lh;t.utcOffset=el;t.utc=sl;t.local=hl;t.parseZone=cl;t.hasAlignedHourOffset=ll;t.isDST=al;t.isDSTShifted=vl;t.isLocal=yl;t.isUtcOffset=pl;t.isUtc=wo;t.isUTC=wo;t.zoneAbbr=ey;t.zoneName=oy;t.dates=k("dates accessor is deprecated. Use date instead.",oe);t.months=k("months accessor is deprecated. Use month instead",eo);t.years=k("years accessor is deprecated. Use year instead",fe);t.zone=k("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",ol);var ah=t,f=ke.prototype;f._calendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};f.calendar=cy;f._longDateFormat={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};f.longDateFormat=ly;f._invalidDate="Invalid date";f.invalidDate=ay;f._ordinal="%d";f.ordinal=vy;f._ordinalParse=/\d{1,2}/;f.preparse=fs;f.postformat=fs;f._relativeTime={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};f.relativeTime=yy;f.pastFuture=py;f.set=wy;f.months=sc;f._months=cw;f.monthsShort=hc;f._monthsShort=lw;f.monthsParse=cc;f._monthsRegex=vw;f.monthsRegex=vc;f._monthsShortRegex=aw;f.monthsShortRegex=ac;f.week=cv;f._week=eh;f.firstDayOfYear=av;f.firstDayOfWeek=lv;f.weekdays=wv;f._weekdays=nb;f.weekdaysMin=kv;f._weekdaysMin=ib;f.weekdaysShort=bv;f._weekdaysShort=tb;f.weekdaysParse=dv;f.isPM=ry;f._meridiemParse=oh;f.meridiem=uy;or("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10,i=1===e(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+i}});r.lang=k("moment.lang is deprecated. Use moment.locale instead.",or);r.langData=k("moment.langData is deprecated. Use moment.localeData instead.",si);var wt=Math.abs,rb=ti("ms"),ub=ti("s"),fb=ti("m"),eb=ti("h"),ob=ti("d"),sb=ti("w"),hb=ti("M"),cb=ti("y"),lb=li("milliseconds"),ab=li("seconds"),vb=li("minutes"),yb=li("hours"),pb=li("days"),wb=li("months"),bb=li("years"),fr=Math.round,ei={s:45,m:45,h:22,d:26,M:11},se=Math.abs,s=cu.prototype;s.abs=tp;s.add=ip;s.subtract=rp;s.as=fp;s.asMilliseconds=rb;s.asSeconds=ub;s.asMinutes=fb;s.asHours=eb;s.asDays=ob;s.asWeeks=sb;s.asMonths=hb;s.asYears=cb;s.valueOf=ep;s._bubble=up;s.get=op;s.milliseconds=lb;s.seconds=ab;s.minutes=vb;s.hours=yb;s.days=pb;s.weeks=sp;s.months=wb;s.years=bb;s.humanize=ap;s.toISOString=au;s.toString=au;s.toJSON=au;s.locale=ns;s.localeData=ts;s.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",au);s.lang=ee;u("X",0,0,"unix");u("x",0,0,"valueOf");i("x",du);i("X",/[+-]?\d+(\.\d{1,3})?/);h("X",function(n,t,i){i._d=new Date(1e3*parseFloat(n,10))});h("x",function(n,t,i){i._d=new Date(e(n))});r.version="2.11.2";nc(c);r.fn=ah;r.min=ul;r.max=fl;r.now=gw;r.utc=bi;r.unix=sy;r.months=by;r.isDate=ru;r.locale=or;r.invalid=fu;r.duration=ni;r.isMoment=gt;r.weekdays=dy;r.parseZone=hy;r.localeData=si;r.isDuration=lf;r.monthsShort=ky;r.weekdaysMin=np;r.defineLocale=no;r.weekdaysShort=gy;r.normalizeUnits=b;r.relativeTimeThreshold=lp;r.prototype=ah;var n=r,kb=(n.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(n){return/^nm$/i.test(n)},meridiem:function(n,t,i){return 12>n?i?"vm":"VM":i?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?"ste":"de")},week:{dow:1,doy:4}}),n.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}}),{1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"}),db={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},gb=(n.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(n){return"م"===n},meridiem:function(n){return 12>n?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(n){return n.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(n){return db[n]}).replace(/،/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return kb[n]}).replace(/,/g,"،")},week:{dow:6,doy:12}}),n.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}}),{1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"}),nk={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},vh=function(n){return 0===n?0:1===n?1:2===n?2:n%100>=3&&10>=n%100?3:n%100>=11?4:5},tk={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},ot=function(n){return function(t,i){var u=vh(t),r=tk[n][vh(t)];return 2===u&&(r=r[i?0:1]),r.replace(/%d/i,t)}},yh=["كانون الثاني يناير","شباط فبراير","آذار مارس","نيسان أبريل","أيار مايو","حزيران يونيو","تموز يوليو","آب أغسطس","أيلول سبتمبر","تشرين الأول أكتوبر","تشرين الثاني نوفمبر","كانون الأول ديسمبر"],he=(n.defineLocale("ar",{months:yh,monthsShort:yh,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(n){return"م"===n},meridiem:function(n){return 12>n?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:ot("s"),m:ot("m"),mm:ot("m"),h:ot("h"),hh:ot("h"),d:ot("d"),dd:ot("d"),M:ot("M"),MM:ot("M"),y:ot("y"),yy:ot
vendor: 5,043 bytes, line 78
78("y")},preparse:function(n){return n.replace(/\u200f/g,"").replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(n){return nk[n]}).replace(/،/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return gb[n]}).replace(/,/g,"،")},week:{dow:6,doy:12}}),{1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"}),ik=(n.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(n){return/^(gündüz|axşam)$/.test(n)},meridiem:function(n){return 4>n?"gecə":12>n?"səhər":17>n?"gündüz":"axşam"},ordinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(n){if(0===n)return n+"-ıncı";var t=n%10,i=n%100-t,r=n>=100?100:null;return n+(he[t]||he[i]||he[r])},week:{dow:1,doy:7}}),n.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:ai,mm:ai,h:ai,hh:ai,d:"дзень",dd:ai,M:"месяц",MM:ai,y:"год",yy:ai},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(n){return/^(дня|вечара)$/.test(n)},meridiem:function(n){return 4>n?"ночы":12>n?"раніцы":17>n?"дня":"вечара"},ordinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(n,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return n%10!=2&&n%10!=3||n%100==12||n%100==13?n+"-ы":n+"-і";case"D":return n+"-га";default:return n}},week:{dow:1,doy:7}}),n.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%
78d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(n){var t=n%10,i=n%100;return 0===n?n+"-ев":0===i?n+"-ен":i>10&&20>i?n+"-ти":1===t?n+"-ви":2===t?n+"-ри":7===t||8===t?n+"-ми":n+"-ти"},week:{dow:1,doy:7}}),{1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"}),rk={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},uk=(n.defineLocale("bn",{months:"জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পত্তি_শুক্র_শনি".split("_"),weekdaysMin:"রব_সম_মঙ্গ_বু_ব্রিহ_শু_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(n){return n.replace(/[১২৩৪৫৬৭৮৯০]/g,function(n){return rk[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return ik[n]})},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,isPM:function(n){return/^(দুপুর|বিকাল|রাত)$/.test(n)},meridiem:function(n){return 4>n?"রাত":10>n?"সকাল":17>n?"দুপুর":20>n?"বিকাল":"রাত"},week:{dow:0,doy:6}}),{1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"}),fk={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"},ce=(n.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%
78d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(n){return n.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(n){return fk[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return uk[n]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,isPM:function(n){return/^(ཉིན་གུང|དགོང་དག|མཚན་མོ)$/.test(n)},meridiem:function(n){return 4>n?"མཚན་མོ":10>n?"ཞོགས་ཀས":17>n?"ཉིན་གུང":20>n?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}}),n.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",m:"ur vunutenn",mm:bf,h:"un eur",hh:"%d eur",d:"un devezh",dd:bf,M:"ur miz",MM:bf,y:"ur bloaz",yy:yp},ordinalParse:/\d{1,2}(añ|vet)/,ordinal:function(n){var t=1===n?"añ":"vet";return n+t},week:{dow:1,doy:4}}),n.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:vi,mm:vi,h:vi,hh:vi,d:"dan",dd:vi,M:"mjesec",MM:vi,y:"godinu",yy:vi},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),n.defineLocale("ca",{months:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),monthsShort:"gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.".split("_"),weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd D MMMM YYYY H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(n,t){var i=1===n?"r":2===n?"n":3===n?"r":4===n?"t":"è";return("w"===t||"W"===t)&&(i="a"),n+i},week:{dow:1,doy:4}}),"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_")),le="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),ph=(n.defineLocale("cs",{months:ce,monthsShort:le,monthsParse:function(n,t){for(var r=[],i=0;12>i;i++)r[i]=new RegExp("^"+n[i]+"$|^"+t[i]+"$","i");return r}(ce,le),shortMonthsParse:function(n){for(var i=[],t=0;12>t;t++)i[t]=new RegExp("^"+n[t]+"$","i");return i}(le),longMonthsParse:function(n){for(var i=[],t=0;12>t;t++)i[t]=new RegExp("^"+n[t]+"$","i");return i}(ce),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:d,m:d,mm:d,h:d,hh:d,d:d,dd:d,M:d,MM:d,y:d,yy:d},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(n){var t=/сехет$/i.exec(n)?"рен":/ҫул$/i.exec(n)?"тан":"ран";return n+t},past:"%s каялла",s:"пӗр-ик ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%
78d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},ordinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}}),n.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},ordinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(n){var t=n,i="";return t>20?i=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(i=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][t]),n+i},week:{dow:1,doy:4}}),n.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY HH:mm"},calendar:{sameDay:"[I dag kl.] LT",nextDay:"[I morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[I går kl.] LT",lastWeek:"[sidste] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:ii,mm:"%d Minuten",h:ii,hh:"%d Stunden",d:ii,dd:ii,M:ii,MM:ii,y:ii,yy:ii},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:ri,mm:"%d Minuten",h:ri,hh:"%d Stunden",d:ri,dd:ri,M:ri,MM:ri,y:ri,yy:ri},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"]),wh=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"],ek=(n.defineLocale("dv",{months:ph,monthsShort:ph,weekdays:wh,weekdaysShort:wh,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(n){return""===n},meridiem:function(n){return 12>n?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",
78s:"ސިކުންތުކޮޅެއް",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(n){return n.replace(/،/g,",")},postformat:function(n){return n.replace(/,/g,"،")},week:{dow:7,doy:12}}),n.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(n,t){return/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[n.month()]:this._monthsNominativeEl[n.month()]},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(n,t,i){return n>11?i?"μμ":"ΜΜ":i?"πμ":"ΠΜ"},isPM:function(n){return"μ"===(n+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(n,t){var i=this._calendarEl[n],r=t&&t.hours();return at(i)&&(i=i.apply(t)),i.replace("{}",r%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},ordinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}}),n.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10,i=1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+i},week:{dow:1,doy:4}}),n.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"D MMMM, YYYY",LLL:"D MMMM, YYYY h:mm A",LLLL:"dddd, D MMMM, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10,i=1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+i}}),n.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10,i=1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+i},week:{dow:1,doy:4}}),n.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10,i=1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+i},week:{dow:1,doy:4}}),n.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LT
78S:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10,i=1==~~(n%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return n+i},week:{dow:1,doy:4}}),n.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato".split("_"),weekdaysShort:"Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Ĵa_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-an de] MMMM, YYYY",LLL:"D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-an de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(n){return"p"===n.charAt(0).toLowerCase()},meridiem:function(n,t,i){return n>11?i?"p.t.m.":"P.T.M.":i?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"je %s",past:"antaŭ %s",s:"sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},ordinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}}),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_")),ok="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),sk=(n.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,t){return/-MMM-/.test(t)?ok[n.month()]:ek[n.month()]},weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),n.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:st,m:st,mm:st,h:st,hh:st,d:st,dd:"%d päeva",M:st,MM:st,y:st,yy:st},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),{1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"}),hk={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"},tf=(n.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(n){return/بعد از ظهر/.test(n)},meridiem:function(n){return 12>n?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چندین ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%
78d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(n){return n.replace(/[۰-۹]/g,function(n){return hk[n]}).replace(/،/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return sk[n]}).replace(/,/g,"،")},ordinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}}),"nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" ")),ck=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",tf[7],tf[8],tf[9]],lk=(n.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:g,m:g,mm:g,h:g,hh:g,d:g,dd:g,M:g,MM:g,y:g,yy:g},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|e)/,ordinal:function(n){return n+(1===n?"er":"e")}}),n.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|e)/,ordinal:function(n){return n+(1===n?"er":"e")},week:{dow:1,doy:4}}),n.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|)/,ordinal:function(n){return n+(1===n?"er":"")},week:{dow:1,doy:4}}),"jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_")),ak="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),vk=(n.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(n,t){return/-MMM-/.test(t)?ak[n.month()]:lk[n.month()]},weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?"ste":"de")},week:{dow:1,doy:4}}),["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"]),yk=(n.defineLocale("gd",{months:vk,monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] 
78LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},ordinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(n){var t=1===n?"d":n%10==2?"na":"mh";return n+t},week:{dow:1,doy:4}}),n.defineLocale("gl",{months:"Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro".split("_"),monthsShort:"Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.".split("_"),weekdays:"Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado".split("_"),weekdaysShort:"Dom._Lun._Mar._Mér._Xov._Ven._Sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mé_Xo_Ve_Sá".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd D MMMM YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(n){return"uns segundos"===n?"nuns segundos":"en "+n},past:"hai %s",s:"uns segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:7}}),n.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(n){return 2===n?"שעתיים":n+" שעות"},d:"יום",dd:function(n){return 2===n?"יומיים":n+" ימים"},M:"חודש",MM:function(n){return 2===n?"חודשיים":n+" חודשים"},y:"שנה",yy:function(n){return 2===n?"שנתיים":n%10==0&&10!==n?n+" שנה":n+" שנים"}}}),{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"}),pk={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},wk=(n.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"}
78,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(n){return n.replace(/[१२३४५६७८९०]/g,function(n){return pk[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return yk[n]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(n,t){return 12===n&&(n=0),"रात"===t?4>n?n:n+12:"सुबह"===t?n:"दोपहर"===t?n>=10?n:n+12:"शाम"===t?n+12:void 0},meridiem:function(n){return 4>n?"रात":10>n?"सुबह":17>n?"दोपहर":20>n?"शाम":"रात"},week:{dow:0,doy:6}}),n.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:yi,mm:yi,h:yi,hh:yi,d:"dan",dd:yi,M:"mjesec",MM:yi,y:"godinu",yy:yi},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),"vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ")),ae=(n.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(n){return"u"===n.charAt(1).toLowerCase()},meridiem:function(n,t,i){return 12>n?i===!0?"de":"DE":i===!0?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return ls.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return ls.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:nt,m:nt,mm:nt,h:nt,hh:nt,d:nt,dd:nt,M:nt,MM:nt,y:nt,yy:nt},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),n.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(n){return/^(ցերեկվա|երեկոյան)$/.test(n)},meridiem:function(n){return 4>n?"գիշերվա":12>n?"առավոտվա":17>n?"ցերեկվա":"երեկոյան"},ordinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(n,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===n?n+"-ին":n+"-րդ";default:return n}},week:{dow:1,doy:7}}),n.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(n,t){return 12===n&&(n=0),"pagi"===t?n:"siang"===t?n>=11?n:n+12:"sore"===t||"malam"===t?n+12:void 0},meridiem:function(n){return 11>n?"pagi":15>n?"siang":19>n?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),n.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:ht,m:ht,mm:ht,h:"klukkustund",hh:ht,d:ht,dd:ht,M:ht,MM:ht,y:ht,yy:ht},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"),weekdaysShort:"Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"),weekdaysMin:"Do_Lu_Ma_Me_Gi_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(n){return(/^[0-9].+$/.test(n)?"tra":"in")+" "+n},past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%
78d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),n.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"Ah時m分",LTS:"Ah時m分s秒",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah時m分",LLLL:"YYYY年M月D日Ah時m分 dddd"},meridiemParse:/午前|午後/i,isPM:function(n){return"午後"===n},meridiem:function(n){return 12>n?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}}),n.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(n,t){return 12===n&&(n=0),"enjing"===t?n:"siyang"===t?n>=11?n:n+12:"sonten"===t||"ndalu"===t?n+12:void 0},meridiem:function(n){return 11>n?"enjing":15>n?"siyang":19>n?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}}),n.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(n){return/(წამი|წუთი|საათი|წელი)/.test(n)?n.replace(/ი$/,"ში"):n+"ში"},past:function(n){return/(წამი|წუთი|საათი|დღე|თვე)/.test(n)?n.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(n)?n.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},ordinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(n){return 0===n?n:1===n?n+"-ლი":20>n||100>=n&&n%20==0||n%100==0?"მე-"+n:n+"-ე"},week:{dow:1,doy:7}}),{0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"}),bk=(n.defineLocale("kk",{months:"Қаңтар_Ақпан_Наурыз_Сәуір_Мамыр_Маусым_Шілде_Тамыз_Қыркүйек_Қазан_Қараша_Желтоқсан".split("_"),monthsShort:"Қаң_Ақп_Нау_Сәу_Мам_Мау_Шіл_Там_Қыр_Қаз_Қар_Жел".split("_"),weekdays:"Жексенбі_Дүйсенбі_Сейсенбі_Сәрсенбі_Бейсенбі_Жұма_Сенбі".split("_"),weekdaysShort:"Жек_Дүй_Сей_Сәр_Бей_Жұм_Сен".split("_"),weekdaysMin:"Жк_Дй_Сй_Ср_Бй_Жм_Сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%
78d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},ordinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(n){var t=n%10,i=n>=100?100:null;return n+(ae[n]||ae[t]||ae[i])},week:{dow:1,doy:7}}),n.defineLocale("km",{months:"មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}}),n.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h시 m분",LTS:"A h시 m분 s초",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h시 m분",LLLL:"YYYY년 MMMM D일 dddd A h시 m분"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇초",ss:"%d초",m:"일분",mm:"%d분",h:"한시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한달",MM:"%d달",y:"일년",yy:"%d년"},ordinalParse:/\d{1,2}일/,ordinal:"%d일",meridiemParse:/오전|오후/,isPM:function(n){return"오후"===n},meridiem:function(n){return 12>n?"오전":"오후"}}),n.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:kp,past:dp,s:"e puer Sekonnen",m:yr,mm:"%d Minutten",h:yr,hh:"%d Stonnen",d:yr,dd:"%d Deeg",M:yr,MM:"%d Méint",y:yr,yy:"%d Joer"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(n){return"ຕອນແລງ"===n},meridiem:function(n){return 12>n?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%
78d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},ordinalParse:/(ທີ່)\d{1,2}/,ordinal:function(n){return"ທີ່"+n}}),{m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"}),bh=(n.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_")},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:gp,m:gi,mm:wr,h:gi,h
78h:wr,d:gi,dd:wr,M:gi,MM:wr,y:gi,yy:wr},ordinalParse:/\d{1,2}-oji/,ordinal:function(n){return n+"-oji"},week:{dow:1,doy:4}}),{m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")}),bt=(n.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:nw,m:kr,mm:br,h:kr,hh:br,d:kr,dd:br,M:kr,MM:br,y:kr,yy:br},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),{words:{m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(n,t){return 1===n?t[0]:n>=2&&4>=n?t[1]:t[2]},translate:function(n,t,i){var r=bt.words[i];return 1===i.length?t?r[0]:r[1]:n+" "+bt.correctGrammaticalCase(n,r)}}),kk=(n.defineLocale("me",{months:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"],monthsShort:["jan.","feb.","mar.","apr.","maj","jun","jul","avg.","sep.","okt.","nov.","dec."],weekdays:["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"],weekdaysShort:["ned.","pon.","uto.","sri.","čet.","pet.","sub."],weekdaysMin:["ne","po","ut","sr","če","pe","su"],longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",m:bt.translate,mm:bt.translate,h:bt.translate,hh:bt.translate,d:"dan",dd:bt.translate,M:"mjesec",MM:bt.translate,y:"godinu",yy:bt.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),n.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",m:"минута",mm:"%d минути",h:"час",hh:"%
78d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(n){var t=n%10,i=n%100;return 0===n?n+"-ев":0===i?n+"-ен":i>10&&20>i?n+"-ти":1===t?n+"-ви":2===t?n+"-ри":7===t||8===t?n+"-ми":n+"-ти"},week:{dow:1,doy:7}}),n.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_à´¶".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,isPM:function(n){return/^(ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി)$/.test(n)},meridiem:function(n){return 4>n?"രാത്രി":12>n?"രാവിലെ":17>n?"ഉച്ച കഴിഞ്ഞ്":20>n?"വൈകുന്നേരം":"രാത്രി"}}),{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"}),dk={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},gk=(n.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:tt,m:tt,mm:tt,h:tt,hh:tt,d:tt,dd:tt,M:tt,MM:tt,y:tt,yy:tt},preparse:function(n){return n.replace(/[१२३४५६७८९०]/g,function(n){return dk[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return kk[n]})},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(n,t){return 12===n&&(n=0),"राà
78¤¤à¥à¤°à¥€"===t?4>n?n:n+12:"सकाळी"===t?n:"दुपारी"===t?n>=10?n:n+12:"सायंकाळी"===t?n+12:void 0},meridiem:function(n){return 4>n?"रात्री":10>n?"सकाळी":17>n?"दुपारी":20>n?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}}),n.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(n,t){return 12===n&&(n=0),"pagi"===t?n:"tengahari"===t?n>=11?n:n+12:"petang"===t||"malam"===t?n+12:void 0},meridiem:function(n){return 11>n?"pagi":15>n?"tengahari":19>n?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),n.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(n,t){return 12===n&&(n=0),"pagi"===t?n:"tengahari"===t?n>=11?n:n+12:"petang"===t||"malam"===t?n+12:void 0},meridiem:function(n){return 11>n?"pagi":15>n?"tengahari":19>n?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),{1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"}),nd={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"},td=(n.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%
78d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(n){return n.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(n){return nd[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return gk[n]})},week:{dow:1,doy:4}}),n.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"for %s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"}),id={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},rd=(n.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(n){return n.replace(/[१२३४५६७८९०]/g,function(n){return id[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return td[n]})},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(n,t){return 12===n&&(n=0),"राति"===t?4>n?n:n+12:"बिहान"===t?n:"दिउँसो"===t?n>=10?n:n+12:"साँझ"===t?n+12:void 0},meridiem:function(n){return 3>n?"राति":12>n?"बिहान":16>n?"दिउँसो":20>n?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}}),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_")),ud="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),kh=(n.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(n,t){return/-MMM-/.test(t)?ud[n.month()]:rd[n.month()]},weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?"ste":"de")},week:{dow:1,doy:4}}),n.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"for %s sidan",s:"nokre sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}
78),"styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_")),dh="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),ve=(n.defineLocale("pl",{months:function(n,t){return""===t?"("+dh[n.month()]+"|"+kh[n.month()]+")":/D MMMM/.test(t)?dh[n.month()]:kh[n.month()]},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"nie_pon_wt_śr_czw_pt_sb".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:"[W] dddd [o] LT",lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:nr,mm:nr,h:nr,hh:nr,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:nr,y:"rok",yy:nr},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atrás",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº"}),n.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),n.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",m:"un minut",mm:dr,h:"o oră",hh:dr,d:"o zi",dd:dr,M:"o lună",MM:dr,y:"un an",yy:dr},week:{dow:1,doy:7}}),[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[й|я]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i]),fd=(n.defineLocale("ru",{months:{format:"Января_Февраля_Марта_Апреля_Мая_Июня_Июля_Августа_Сентября_Октября_Ноября_Декабря".split("_"),standalone:"Январь_Февраль_Март_Апрель_Май_Июнь_Июль_Август_Сентябрь_Октябрь_Ноябрь_Декабрь".split("_")},monthsShort:{format:"янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек".split("_"),standalone:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_")},weekdays:{standalone:"Воскресенье_Понедельник_Вторник_Среда_Четверг_Пятница_Суббота".split("_"),format:"Воскресенье_Понедельник_Вторник_Среду_Четверг_Пятницу_Субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"Вс_Пн_Вт_Ср_Чт_Пт_Сб".split("_"),weekdaysMin:"Вс_Пн_Вт_Ср_Чт_Пт_Сб".split("_"),monthsParse:ve,longMonthsParse:ve,shortMonthsParse:ve,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(n){if(n.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В следующее] dddd [в] LT";case 1:case 2:case 4:return"[В следующий] dddd [в] LT";
vendor: 10,213 bytes, line 78
78case 3:case 5:case 6:return"[В следующую] dddd [в] LT"}},lastWeek:function(n){if(n.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:tr,mm:tr,h:"час",hh:tr,d:"день",dd:tr,M:"месяц",MM:tr,y:"год",yy:tr},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(n){return/^(дня|вечера)$/.test(n)},meridiem:function(n){return 4>n?"ночи":12>n?"утра":17>n?"дня":"вечера"},ordinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(n,t){switch(t){case"M":case"d":case"DDD":return n+"-й";case"D":return n+"-го";case"w":case"W":return n+"-я";default:return n}},week:{dow:1,doy:7}}),n.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},ordinalParse:/\d{1,2} වැනි/,ordinal:function(n){return n+" වැනි"},meridiem:function(n,t,i){return n>11?i?"ප.ව.":"පස් වරු":i?"පෙ.ව.":"පෙර වරු"}}),"január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_")),ed="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_"),kt=(n.defineLocale("sk",{months:fd,monthsShort:ed,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:it,m:it,mm:it,h:it,hh:it,d:it,dd:it,M:it,MM:it,y:it,yy:it},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:rt,m:rt,mm:rt,h:rt,hh:rt,d:rt,dd:rt,M:rt,MM:rt,y:rt,yy:rt},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),n.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),meridiemParse:/PD|MD/,isPM:function(n){return"M"===n.charAt(0)},meridiem:function(n){return 12>n?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),{words:{m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(n,t){return 1===n?t[0]:n>=2&&4>=n?t[1]:t[2]},translate:function(n,t,i){var r=kt.words[i];return 1===i.length?t?r[0]:r[1]:n+" "+kt.correctGrammaticalCase(n,r)}}),dt=(n.defineLocale("sr-cyrl",{months:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],monthsShort:["јан.","феб.","мар.","апр.","мај","јун","јул","авг.","сеп.","окт.","нов.","дец."],weekdays:["недеља","понедељак","уторак","среда","четвртак","петак","субота"],weekdaysShort:["нед.","пон.","уто.","сре.","чет.","пет.","суб."],weekdaysMin:["не","по","ут","ср","че","пе","су"],longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",m:kt.translate,mm:kt.translate,h:kt.translate,hh:kt.translate,d:"дан",dd:kt.translate,M:"месец",MM:kt.translate,y:"годину",yy:kt.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),{words:{m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(n,t){return 1===n?t[0]:n>=2&&4>=n?t[1]:t[2]},translate:function(n,t,i){var r=dt.words[i];return 1===i.length?t?r[0]:r[1]:n+" "+dt.correctGrammaticalCase(n,r)}}),od=(n.defineLocale("sr",{months:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"],monthsShort:["jan.","feb.","mar.","apr.","maj","jun","jul","avg.","sep.","okt.","nov.","dec."],weekdays:["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","
78subota"],weekdaysShort:["ned.","pon.","uto.","sre.","čet.","pet.","sub."],weekdaysMin:["ne","po","ut","sr","če","pe","su"],longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:dt.translate,mm:dt.translate,h:dt.translate,hh:dt.translate,d:"dan",dd:dt.translate,M:"mesec",MM:dt.translate,y:"godinu",yy:dt.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),n.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}(e|a)/,ordinal:function(n){var t=n%10,i=1==~~(n%100/10)?"e":1===t?"a":2===t?"a":"e";return n+i},week:{dow:1,doy:4}}),n.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}}),{1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"}),sd={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"},ye=(n.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},ordinalParse:/\d{1,2}வது/,ordinal:function(n){return n+"வது"},preparse:function(n){return n.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,function(n){return sd[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return od[n]})}
78,meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(n){return 2>n?" யாமம்":6>n?" வைகறை":10>n?" காலை":14>n?" நண்பகல்":18>n?" எற்பாடு":22>n?" மாலை":" யாமம்"},meridiemHour:function(n,t){return 12===n&&(n=0),"யாமம்"===t?2>n?n:n+12:"வைகறை"===t||"காலை"===t?n:"நண்பகல்"===t&&n>=10?n:n+12},week:{dow:0,doy:6}}),n.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},ordinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(n,t){return 12===n&&(n=0),"రాత్రి"===t?4>n?n:n+12:"ఉదయం"===t?n:"మధ్యాహ్నం"===t?n>=10?n:n+12:"సాయంత్రం"===t?n+12:void 0},meridiem:function(n){return 4>n?"రాత్రి":10>n?"ఉదయం":17>n?"మధ్యాహ్నం":20>n?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}}),n.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา".split("_"),weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),longDateFormat:{LT:"H นาฬิกา m นาที",LTS:"H นาฬิกา m นาที s วินาที",L:"YYYY/MM/DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H นาฬิกา m นาที",LLLL:"วันddddที่ D MMMM YYYY เวลา H นาฬิกา m นาที"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(n){return"หลังเที่ยง"===n},meridiem:function(n){return 12>n?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}}),n.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"[Ngayon sa] LT",nextDay:"[Bukas sa] LT",nextWeek:"dddd [sa] LT",lastDay:"[Kahapon sa] LT",lastWeek:"dddd [huling linggo] LT",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%
78d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},ordinalParse:/\d{1,2}/,ordinal:function(n){return n},week:{dow:1,doy:4}}),"pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_")),pe=(n.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:iw,past:rw,s:"puS lup",m:"wa’ tup",mm:nu,h:"wa’ rep",hh:nu,d:"wa’ jaj",dd:nu,M:"wa’ jar",MM:nu,y:"wa’ DIS",yy:nu},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),{1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"}),gh=(n.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal:function(n){if(0===n)return n+"'ıncı";var t=n%10,i=n%100-t,r=n>=100?100:null;return n+(pe[t]||pe[i]||pe[r])},week:{dow:1,doy:7}}),n.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiem:function(n,t,i){return n>11?i?"d'o":"D'O":i?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:ut,m:ut,mm:ut,h:ut,hh:ut,d:ut,dd:ut,M:ut,MM:ut,y:ut,yy:ut},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),n.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibr
78ir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}}),n.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}}),n.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:ew,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:rr("[Сьогодні "),nextDay:rr("[Завтра "),lastDay:rr("[Вчора "),nextWeek:rr("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return rr("[Минулої] dddd [").call(this);case 1:case 2:case 4:return rr("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:ir,mm:ir,h:"годину",hh:ir,d:"день",dd:ir,M:"місяць",MM:ir,y:"рік",yy:ir},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(n){return/^(дня|вечора)$/.test(n)},meridiem:function(n){return 4>n?"ночі":12>n?"ранку":17>n?"дня":"вечора"},ordinalParse:/\d{1,2}-(й|го)/,ordinal:function(n,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return n+"-й";case"D":return n+"-го";default:return n}},week:{dow:1,doy:7}}),n.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%
78d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}}),n.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},ordinalParse:/\d{1,2}/,ordinal:function(n){return n},week:{dow:1,doy:4}}),n.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah点mm分",LTS:"Ah点m分s秒",L:"YYYY-MM-DD",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah点mm分",LLLL:"YYYY年MMMD日ddddAh点mm分",l:"YYYY-MM-DD",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah点mm分",llll:"YYYY年MMMD日ddddAh点mm分"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(n,t){return 12===n&&(n=0),"凌晨"===t||"早上"===t||"上午"===t?n:"下午"===t||"晚上"===t?n+12:n>=11?n:n+12},meridiem:function(n,t){var i=100*n+t;return 600>i?"凌晨":900>i?"早上":1130>i?"上午":1230>i?"中午":1800>i?"下午":"晚上"},calendar:{sameDay:function(){return 0===this.minutes()?"[今天]Ah[点整]":"[今天]LT"},nextDay:function(){return 0===this.minutes()?"[明天]Ah[点整]":"[明天]LT"},lastDay:function(){return 0===this.minutes()?"[昨天]Ah[点整]":"[昨天]LT"},nextWeek:function(){var i,t;return i=n().startOf("week"),t=this.unix()-i.unix()>=604800?"[下]":"[本]",0===this.minutes()?t+"dddAh点整":t+"dddAh点mm"},lastWeek:function(){var i,t;return i=n().startOf("week"),t=this.unix()<i.unix()?"[上]":"[本]",0===this.minutes()?t+"dddAh点整":t+"dddAh点mm"},sameElse:"LL"},ordinalParse:/\d{1,2}(日|月|周)/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+"日";case"M":return n+"月";case"w":case"W":return n+"周";default:return n}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}}),n.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah點mm分",LTS:"Ah點m分s秒",L:"YYYY年MMMD日",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah點mm分",LLLL:"YYYY年MMMD日ddddAh點mm分",l:"YYYY年MMMD日",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah點mm分",llll:"YYYY年MMMD日ddddAh點mm分"},meridiemParse:/早上|上午|中午|下午|晚上/,meridiemHour:function(n,t){return 12===n&&(n=0),"早上"===t||"上午"===t?n:"中午"===t?n>=11?n:n+12:"下午"===t||"晚上"===t?n+12:void 0},meridiem:function(n,t){var i=100*n+t;return 900>i?"早上":1130>i?"上午":1230>i?"中午":1800>i?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},ordinalParse:/\d{1,2}(日|月|週)/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+"日";case"M":return n+"月";case"w":case"W":return n+"週";default:return n}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"一分鐘",mm:"%d分鐘",h:"一小時",hh:"%
78d小時",d:"一天",dd:"%d天",M:"一個月",MM:"%d個月",y:"一年",yy:"%d年"}}),n);return gh.locale("en"),gh});
79/*!
80* FlexVerticalCenter.js 1.0
81*
82* Copyright 2011, Paul Sprangers http://paulsprangers.com
83* Released under the WTFPL license
84* http://sam.zoy.org/wtfpl/
85*
86* Date: Fri Oct 28 19:12:00 2011 +0100
87*/
88(function(n){n.fn.flexVerticalCenter=function(t){var i=n.extend({cssAttribute:"margin-top",verticalOffset:0,parentSelector:null,debounceTimeout:25,deferTilWindowLoad:!1},t||{});return this.each(function(){var t=n(this),u,r=function(){var n=i.parentSelector&&t.parents(i.parentSelector).length?t.parents(i.parentSelector).first().height():t.parent().height();t.css(i.cssAttribute,(n-t.height())/2+parseInt(i.verticalOffset));i.complete!==undefined&&i.complete()};n(window).resize(function(){clearTimeout(u);u=setTimeout(r,i.debounceTimeout)});i.deferTilWindowLoad||r();n(window).on("load",function(){r()})})}})(jQuery);!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&"object"==typeof module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){return function(t){"use strict";var i=t.tablesorter={version:"2.27.8",parsers:[],widgets:[],defaults:{theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,tabIndex:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,resort:!0,headers:{},ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortStable:!1,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",duplicateSpan:!0,textExtraction:"basic",textAttribute:"data-text",textSorter:null,numberSorter:null,initWidgets:!0,widgetClass:"widget-{name}",widgets:[],widgetOptions:{zebra:["even","odd"]},initialized:null,tableClass:"",cssAsc:"",cssDesc:"",cssNone:"",cssHeader:"",cssHeaderRow:"",cssProcessing:"",cssChildRow:"tablesorter-childRow",cssInfoBlock:"tablesorter-infoOnly",cssNoSort:"tablesorter-noSort",cssIgnoreRow:"tablesorter-ignoreRow",cssIcon:"tablesorter-icon",cssIconNone:"",cssIconAsc:"",cssIconDesc:"",pointerClick:"click",pointerDown:"mousedown",pointerUp:"mouseup",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[]},css:{table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",colgroup:"tablesorter-colgroup",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"},language:{sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",sortDisabled:"sorting is disabled",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"},regex:{templateContent:/\{content\}/g,templateIcon:/\{icon\}/g,templateName:/\{name\}/i,spaces:/\s+/g,nonWord:/\W/g,formElements:/(input|select|button|textarea)/i,chunk:/(^([+\-]?(?:\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i,comma:/,/g,digitNonUS:/[\s|\.]/g,digitNegativeTest:/^\s*\([.\d]+\)/,digitNegativeReplace:/^\s*\(([.\d]+)\)/,digitTest:/^[\-+(]?\d+[)]?$/,digitReplace:/[,.'"\s]/g},string:{max:1,min:-1,emptymin:1,emptymax:-1,zero:0,none:0,"null":0,top:!0,bottom:!1},keyCodes:{enter:13},dates:{},instanceMethods:{},setup:function(n,r){if(!n||!n.tHead||0===n.tBodies.length||n.hasInitialized===!0)return void(r.debug&&(n.hasInitialized?console.warn("Stopping initialization. Tablesorter has already been initialized"):console.error("Stopping initialization! No table, thead or tbody",n)));var f="",u=t(n),e=t.metadata;n.hasInitialized=!1;n.isProcessing=!0;n.config=r;t.data(n,"tablesorter",r);r.debug&&(console[console.group?"group":"log"]("Initializing tablesorter v"+i.version),t.data(n,"startoveralltimer",new Date));
88r.supportsDataObject=function(n){return n[0]=parseInt(n[0],10),n[0]>1||1===n[0]&&parseInt(n[1],10)>=4}(t.fn.jquery.split("."));r.emptyTo=r.emptyTo.toLowerCase();r.stringTo=r.stringTo.toLowerCase();r.last={sortList:[],clickedIndex:-1};/tablesorter\-/.test(u.attr("class"))||(f=""!==r.theme?" tablesorter-"+r.theme:"");r.table=n;r.$table=u.addClass(i.css.table+" "+r.tableClass+f).attr("role","grid");r.$headers=u.find(r.selectorHeaders);r.namespace=r.namespace?"."+r.namespace.replace(i.regex.nonWord,""):".tablesorter"+Math.random().toString(16).slice(2);r.$table.children().children("tr").attr("role","row");r.$tbodies=u.children("tbody:not(."+r.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"});r.$table.children("caption").length&&(f=r.$table.children("caption")[0],f.id||(f.id=r.namespace.slice(1)+"caption"),r.$table.attr("aria-labelledby",f.id));r.widgetInit={};r.textExtraction=r.$table.attr("data-text-extraction")||r.textExtraction||"basic";i.buildHeaders(r);i.fixColumnWidth(n);i.addWidgetFromClass(n);i.applyWidgetOptions(n);i.setupParsers(r);r.totalRows=0;r.delayInit||i.buildCache(r);i.bindEvents(n,r.$headers,!0);i.bindMethods(r);r.supportsDataObject&&"undefined"!=typeof u.data().sortlist?r.sortList=u.data().sortlist:e&&u.metadata()&&u.metadata().sortlist&&(r.sortList=u.metadata().sortlist);i.applyWidget(n,!0);r.sortList.length>0?i.sortOn(r,r.sortList,{},!r.initWidgets):(i.setHeadersCss(r),r.initWidgets&&i.applyWidget(n,!1));r.showProcessing&&u.unbind("sortBegin"+r.namespace+" sortEnd"+r.namespace).bind("sortBegin"+r.namespace+" sortEnd"+r.namespace,function(t){clearTimeout(r.timerProcessing);i.isProcessing(n);"sortBegin"===t.type&&(r.timerProcessing=setTimeout(function(){i.isProcessing(n,!0)},500))});n.hasInitialized=!0;n.isProcessing=!1;r.debug&&(console.log("Overall initialization time:"+i.benchmark(t.data(n,"startoveralltimer"))),r.debug&&console.groupEnd&&console.groupEnd());u.triggerHandler("tablesorter-initialized",n);"function"==typeof r.initialized&&r.initialized(n)},bindMethods:function(n){var u=n.$table,r=n.namespace,f="sortReset update updateRows updateAll updateHeaders addRows updateCell updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(r+" ");u.unbind(f.replace(i.regex.spaces," ")).bind("sortReset"+r,function(n,t){n.stopPropagation();i.sortReset(this.config,t)}).bind("updateAll"+r,function(n,t,r){n.stopPropagation();i.updateAll(this.config,t,r)}).bind("update"+r+" updateRows"+r,function(n,t,r){n.stopPropagation();i.update(this.config,t,r)}).bind("updateHeaders"+r,function(n,t){n.stopPropagation();i.updateHeaders(this.config,t)}).bind("updateCell"+r,function(n,t,r,u){n.stopPropagation();i.updateCell(this.config,t,r,u)}).bind("addRows"+r,function(n,t,r,u){n.stopPropagation();i.addRows(this.config,t,r,u)}).bind("updateComplete"+r,function(){this.isUpdating=!1}).bind("sorton"+r,function(n,t,r,u){n.stopPropagation();i.sortOn(this.config,t,r,u)}).bind("appendCache"+r,function(n,r,u){n.stopPropagation();i.appendCache(this.config,u);t.isFunction(r)&&r(this)}).bind("updateCache"+r,function(n,t,r){n.stopPropagation();i.updateCache(this.config,t,r)}).bind("applyWidgetId"+r,function(n,t){n.stopPropagation();i.applyWidgetId(this,t)}).bind("applyWidgets"+r,function(n,t){n.stopPropagation();i.applyWidget(this,t)}).bind("refreshWidgets"+r,function(n,t,r){n.stopPropagation();i.refreshWidgets(this,t,r)}).bind("removeWidget"+r,function(n,t,r){n.stopPropagation();i.removeWidget(this,t,r)}).bind("destroy"+r,function(n,t,r){n.stopPropagation();i.destroy(this,t,r)}).bind("resetToLoadState"+r,function(r){r.stopPropagation();i.removeWidget(this,!0,!1);n=t.extend(!0,i.defaults,n.originalSettings);this.hasInitialized=!1;i.setup(this,n)})},bindEvents:function(n,r,u){n=t(n)[0];var e,f=n.config,o=f.namespace,s=null;u!==!0&&(r.addClass(o.slice(1)+"_extra_headers"),e=t.fn.closest?r.closest("table")[0]:r.parents("table")[0],e&&"TABLE"===e.nodeName&&e!==n&&t(e).addClass(o.slice(1)+"_extra_table"));e=(f.pointerDown+" "+f.pointerUp+" "+f.pointerClick+" sort keyup ").replace(i.regex.spaces," ").split(" ").join(o+" ");r.find(f.selectorSort).add(r.filter(f.selectorSort)).unbind(e).bind(e,function(n,u){var l,h,e,c=t(n.target),o=" "+n.type+" ";if(!(1!==(n.which||n.button)&&!o.match(" "+f.pointerClick+" | sort | keyup ")||" keyup "===o&&n.which!==i.keyCodes.enter||o.match(" "+f.pointerClick+" ")&&"undefined"!=typeof n.which||o.match(" "+f.pointerUp+" ")&&s!==n.target&&u!==!0)){if
88(o.match(" "+f.pointerDown+" "))return s=n.target,e=c.jquery.split("."),void("1"===e[0]&&e[1]<4&&n.preventDefault());if(s=null,i.regex.formElements.test(n.target.nodeName)||c.hasClass(f.cssNoSort)||c.parents("."+f.cssNoSort).length>0||c.parents("button").length>0)return!f.cancelSelection;f.delayInit&&i.isEmptyObject(f.cache)&&i.buildCache(f);l=t.fn.closest?t(this).closest("th, td"):/TH|TD/.test(this.nodeName)?t(this):t(this).parents("th, td");e=r.index(l);f.last.clickedIndex=e<0?l.attr("data-column"):e;h=f.$headers[f.last.clickedIndex];h&&!h.sortDisabled&&i.initSort(f,h,n)}});f.cancelSelection&&r.attr("unselectable","on").bind("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"})},buildHeaders:function(n){var u,f,e,r;for(n.headerList=[],n.headerContent=[],n.sortVars=[],n.debug&&(e=new Date),n.columns=i.computeColumnIndex(n.$table.children("thead, tfoot").children("tr")),f=n.cssIcon?'<i class="'+(n.cssIcon===i.css.icon?i.css.icon:n.cssIcon+" "+i.css.icon)+'"><\/i>':"",n.$headers=t(t.map(n.$table.find(n.selectorHeaders),function(r,u){var l,h,s,c,o,e=t(r);if(!e.parent().hasClass(n.cssIgnoreRow))return l=i.getColumnData(n.table,n.headers,u,!0),n.headerContent[u]=e.html(),""===n.headerTemplate||e.find("."+i.css.headerIn).length||(c=n.headerTemplate.replace(i.regex.templateContent,e.html()).replace(i.regex.templateIcon,e.find("."+i.css.icon).length?"":f),n.onRenderTemplate&&(h=n.onRenderTemplate.apply(e,[u,c]),h&&"string"==typeof h&&(c=h)),e.html('<div class="'+i.css.headerIn+'">'+c+"<\/div>")),n.onRenderHeader&&n.onRenderHeader.apply(e,[u,n,n.$table]),s=parseInt(e.attr("data-column"),10),r.column=s,o=i.getOrder(i.getData(e,l,"sortInitialOrder")||n.sortInitialOrder),n.sortVars[s]={count:-1,order:o?n.sortReset?[1,0,2]:[1,0]:n.sortReset?[0,1,2]:[0,1],lockedOrder:!1},o=i.getData(e,l,"lockedOrder")||!1,"undefined"!=typeof o&&o!==!1&&(n.sortVars[s].lockedOrder=!0,n.sortVars[s].order=i.getOrder(o)?[1,1]:[0,0]),n.headerList[u]=r,e.addClass(i.css.header+" "+n.cssHeader).parent().addClass(i.css.headerRow+" "+n.cssHeaderRow).attr("role","row"),n.tabIndex&&e.attr("tabindex",0),r})),n.$headerIndexed=[],r=0;r<n.columns;r++)i.isEmptyObject(n.sortVars[r])&&(n.sortVars[r]={}),u=n.$headers.filter('[data-column="'+r+'"]'),n.$headerIndexed[r]=u.length?u.not(".sorter-false").length?u.not(".sorter-false").filter(":last"):u.filter(":last"):t();n.$table.find(n.selectorHeaders).attr({scope:"col",role:"columnheader"});i.updateHeader(n);n.debug&&(console.log("Built headers:"+i.benchmark(e)),console.log(n.$headers))},addInstanceMethods:function(n){t.extend(i.instanceMethods,n)},setupParsers:function(n,t){var l,f,e,a,r,v,u,h,b,o,s,k,y,c,d=n.table,p=0,w={};if(n.$tbodies=n.$table.children("tbody:not(."+n.cssInfoBlock+")"),y="undefined"==typeof t?n.$tbodies:t,c=y.length,0===c)return n.debug?console.warn("Warning: *Empty table!* Not building a parser cache"):"";for(n.debug&&(k=new Date,console[console.group?"group":"log"]("Detecting parsers for each column")),f={extractors:[],parsers:[]};p<c;){if(l=y[p].rows,l.length)for(r=0,a=n.columns,v=0;v<a;v++){if(u=n.$headerIndexed[r],u&&u.length&&(h=i.getColumnData(d,n.headers,r),s=i.getParserById(i.getData(u,h,"extractor")),o=i.getParserById(i.getData(u,h,"sorter")),b="false"===i.getData(u,h,"parser"),n.empties[r]=(i.getData(u,h,"empty")||n.emptyTo||(n.emptyToBottom?"bottom":"top")).toLowerCase(),n.strings[r]=(i.getData(u,h,"string")||n.stringTo||"max").toLowerCase(),b&&(o=i.getParserById("no-parser")),s||(s=!1),o||(o=i.detectParserForColumn(n,l,-1,r)),n.debug&&(w["("+r+") "+u.text()]={parser:o.id,extractor:s?s.id:"none",string:n.strings[r],empty:n.empties[r]}),f.parsers[r]=o,f.extractors[r]=s,e=u[0].colSpan-1,e>0))for(r+=e,a+=e;e+1>0;)f.parsers[r-e]=o,f.extractors[r-e]=s,e--;r++}p+=f.parsers.length?c:1}n.debug&&(i.isEmptyObject(w)?console.warn("  No parsers detected!"):console[console.table?"table":"log"](w),console.log("Completed detecting parsers"+i.benchmark(k)),console.groupEnd&&console.groupEnd());n.parsers=f.parsers;n.extractors=f.extractors},addParser:function(n){for(var u=i.parsers.length,r=!0,t=0;t<u;t++)i.parsers[t].id.toLowerCase()===n.id.toLowerCase()&&(r=!1);r&&(i.parsers[i.parsers.length]=n)},getParserById:function(n){if("false"==n)return!1;for(var r=i.parsers.length,t=0;t<r;t++)if(i.parsers[t].id.toLowerCase()===n.toString().toLowerCase())return i.parsers[t];return!1},detectParserForColumn:function(n,r,u,f){for(var e,c,h,l=i.parsers.length,o=!1,s="",a=!0;""===s&&a;)u++,h=r[u],h&&u<50?h.className.indexOf(i.cssIgnoreRow)<0&&(o=r[u].cells[f],s=i.getElementText(n,o,f),c=t(o),n.debug&&console.log("Checking if value was empty on row "+u+", column: "+f+': "'+s+'"')):a=!1;for(;--l>=0;)if(e=i.parsers[l],e&&"text"!==e.id&&e.is&&e.is(s,n.table,o,c))return e;return i.getParserById("text")},getElementText:function(n,r,u){if(!r)return"";var o,e=n.textExtraction||"",f=r.jquery?r:t(r);return"string"==typeof e?"basic"===e&&"undefined"!=typeof(o=f.attr(n.textAttribute))?t.trim(o):t.trim(r.textContent||f.text()):"function"==typeof e?t.trim(e(f[0],n.table,u)):"function"==typeof(o=i.getColumnData(n.table,e,u))?t.trim(o(f[0],n.table,u)):t.trim(f[0].textContent||f.text())},getParsedText:function(n,t,r,u){"undefined"==typeof u&&(u=i.getElementText(n,t,r));var f=""+u,e=n.parsers[r],o=n.extractors[r];return e&&(o&&"function"==typeof o.format&&(u=o.format(u,n.table,t,r)),f="no-parser"===e.id?"":e.format(""+u,n.table,t,r),n.ignoreCase&&"string"==typeof f&&(f=f.toLowerCase())),f},buildCache:function(n,r,u){var a,s,w,v,e,y,g,h,nt,it,o,et,ot,b,k,tt,c,f,rt,d,l,p,ut=n.table,ft=n.parsers;if(n.$tbodies=n.$table.children("tbody:not(."+n.cssInfoBlock+")"),g="undefined"==typeof u?n.$tbodies:u,n.cache={},n.totalRows=0,!ft)return n.debug?console.warn("Warning: *Empty table!* Not building a cache"):"";for(n.debug&&(et=new Date),n.showProcessing&&i.isProcessing(ut,!0),y=0;y<g.length;y++){for(tt=[],a=n.cache[y]={normalized:[]},ot=g[y]&&g[y].rows.length||0,v=0;v<ot;++v)if(b={child:[],raw:[]},h=t(g[y].rows[v]),nt=[],!h.hasClass(n.selectorRemove.slice(1)))if(h.hasClass(n.cssChildRow)&&0!==v)for(l=a.normalized.length-1,k=a.normalized[l][n.columns],k.$row=k.$row.add(h),h.prev().hasClass(n.cssChildRow)||h.prev().addClass(i.css.
88cssHasChild),it=h.children("th, td"),l=k.child.length,k.child[l]=[],f=0,d=n.columns,e=0;e<d;e++)o=it[e],o&&(k.child[l][e]=i.getParsedText(n,o,e),c=it[e].colSpan-1,c>0&&(f+=c,d+=c)),f++;else{for(b.$row=h,b.order=v,f=0,d=n.columns,e=0;e<d;++e){if(o=h[0].cells[e],o&&f<n.columns&&(rt="undefined"!=typeof ft[f],!rt&&n.debug&&console.warn("No parser found for row: "+v+", column: "+e+'; cell containing: "'+t(o).text()+'"; does it have a header?'),s=i.getElementText(n,o,f),b.raw[f]=s,w=i.getParsedText(n,o,f,s),nt[f]=w,rt&&"numeric"===(ft[f].type||"").toLowerCase()&&(tt[f]=Math.max(Math.abs(w)||0,tt[f]||0)),c=o.colSpan-1,c>0)){for(p=0;p<=c;)w=n.duplicateSpan||0===p?s:"string"!=typeof n.textExtraction?i.getElementText(n,o,f+p)||"":"",b.raw[f+p]=w,nt[f+p]=w,p++;f+=c;d+=c}f++}nt[n.columns]=b;a.normalized[a.normalized.length]=nt}a.colMax=tt;n.totalRows+=a.normalized.length}if(n.showProcessing&&i.isProcessing(ut),n.debug){for(l=Math.min(5,n.cache[0].normalized.length),console[console.group?"group":"log"]("Building cache for "+n.totalRows+" rows (showing "+l+" rows in log) and "+n.columns+" columns"+i.benchmark(et)),s={},e=0;e<n.columns;e++)for(f=0;f<l;f++)s["row: "+f]||(s["row: "+f]={}),s["row: "+f][n.$headerIndexed[e].text()]=n.cache[0].normalized[f][e];console[console.table?"table":"log"](s);console.groupEnd&&console.groupEnd()}t.isFunction(r)&&r(ut)},getColumnText:function(n,r,u,f){n=t(n)[0];var h,c,l,e,b,k,a,v,y,p,d="function"==typeof u,w="all"===r,o={raw:[],parsed:[],$cell:[]},s=n.config;if(!i.isEmptyObject(s)){for(b=s.$tbodies.length,h=0;h<b;h++)for(l=s.cache[h].normalized,k=l.length,c=0;c<k;c++)e=l[c],f&&!e[s.columns].$row.is(f)||(p=!0,v=w?e.slice(0,s.columns):e[r],e=e[s.columns],a=w?e.raw:e.raw[r],y=w?e.$row.children():e.$row.children().eq(r),d&&(p=u({tbodyIndex:h,rowIndex:c,parsed:v,raw:a,$row:e.$row,$cell:y})),p!==!1&&(o.parsed[o.parsed.length]=v,o.raw[o.raw.length]=a,o.$cell[o.$cell.length]=y));return o}s.debug&&console.warn("No cache found - aborting getColumnText function!")},setHeadersCss:function(n){var f,r,e,u=n.sortList,o=u.length,c=i.css.sortNone+" "+n.cssNone,s=[i.css.sortAsc+" "+n.cssAsc,i.css.sortDesc+" "+n.cssDesc],h=[n.cssIconAsc,n.cssIconDesc,n.cssIconNone],a=["ascending","descending"],l=n.$table.find("tfoot tr").children("td, th").add(t(n.namespace+"_extra_headers")).removeClass(s.join(" "));for(n.$headers.removeClass(s.join(" ")).addClass(c).attr("aria-sort","none").find("."+i.css.icon).removeClass(h.join(" ")).addClass(h[2]),r=0;r<o;r++)if(2!==u[r][1]&&(f=n.$headers.filter(function(t){for(var r=!0,f=n.$headers.eq(t),u=parseInt(f.attr("data-column"),10),e=u+n.$headers[t].colSpan;u<e;u++)r=!!r&&(r||i.isValueInArray(u,n.sortList)>-1);return r}),f=f.not(".sorter-false").filter('[data-column="'+u[r][0]+'"]'+(1===o?":last":"")),f.length)){for(e=0;e<f.length;e++)f[e].sortDisabled||f.eq(e).removeClass(c).addClass(s[u[r][1]]).attr("aria-sort",a[u[r][1]]).find("."+i.css.icon).removeClass(h[2]).addClass(h[u[r][1]]);l.length&&l.filter('[data-column="'+u[r][0]+'"]').removeClass(c).addClass(s[u[r][1]])}for(o=n.$headers.length,r=0;r<o;r++)i.setColumnAriaLabel(n,n.$headers.eq(r))},setColumnAriaLabel:function(n,r,u){if(r.length){var s=parseInt(r.attr("data-column"),10),f=n.sortVars[s],e=r.hasClass(i.css.sortAsc)?"sortAsc":r.hasClass(i.css.sortDesc)?"sortDesc":"sortNone",o=t.trim(r.text())+": "+i.language[e];r.hasClass("sorter-false")||u===!1?o+=i.language.sortDisabled:(e=(f.count+1)%f.order.length,u=f.order[e],o+=i.language[0===u?"nextAsc":1===u?"nextDesc":"nextNone"]);r.attr("aria-label",o)}},updateHeader:function(n){for(var f,r,u,e=n.table,o=n.$headers.length,t=0;t<o;t++)r=n.$headers.eq(t),u=i.getColumnData(e,n.headers,t,!0),f="false"===i.getData(r,u,"sorter")||"false"===i.getData(r,u,"parser"),i.setColumnSort(n,r,f)},setColumnSort:function(n,t,i){var r=n.table.id;t[0].sortDisabled=i;t[i?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+i);n.tabIndex&&(i?t.removeAttr("tabindex"):t.attr("tabindex","0"));r&&(i?t.removeAttr("aria-controls"):t.attr("aria-controls",r))},updateHeaderSortCount:function(n,r){var f,u,s,o,h,c,l,e,a=r||n.sortList,v=a.length;for(n.sortList=[],o=0;o<v;o++)if(l=a[o],f=parseInt(l[0],10),f<n.columns){switch(n.sortVars[f].order||(e=i.getOrder(n.sortInitialOrder)?n.sortReset?[1,0,2]:[1,0]:n.sortReset?[0,1,2]:[0,1],n.sortVars[f].order=e,n.sortVars[f].count=0),e=n.sortVars[f].order,u=(""+l[1]).match(/^(1|d|s|o|n)/),u=u?u[0]:""){case"1":case"d":u=1;break;case"s":u=h||0;break;case"o":c=e[(h||0)%e.length];u=0===c?1:1===c?0:2;break;case"n":u=e[++n.sortVars[f].count%e.length];break;default:u=0}h=0===o?u:h;s=[f,parseInt(u,10)||0];n.sortList[n.sortList.length]=s;u=t.inArray(s[1],e);n.sortVars[f].count=u>=0?u:s[1]%e.length}},updateAll:function(n,t,r){var u=n.table;
88u.isUpdating=!0;i.refreshWidgets(u,!0,!0);i.buildHeaders(n);i.bindEvents(u,n.$headers,!0);i.bindMethods(n);i.commonUpdate(n,t,r)},update:function(n,t,r){var u=n.table;u.isUpdating=!0;i.updateHeader(n);i.commonUpdate(n,t,r)},updateHeaders:function(n,t){n.table.isUpdating=!0;i.buildHeaders(n);i.bindEvents(n.table,n.$headers,!0);i.resortComplete(n,t)},updateCell:function(n,r,u,f){if(i.isEmptyObject(n.cache))return i.updateHeader(n),void i.commonUpdate(n,u,f);n.table.isUpdating=!0;n.$table.find(n.selectorRemove).remove();var e,h,w,o,l,a,v=n.$tbodies,s=t(r),y=v.index(t.fn.closest?s.closest("tbody"):s.parents("tbody").filter(":first")),p=n.cache[y],c=t.fn.closest?s.closest("tr"):s.parents("tr").filter(":first");if(r=s[0],v.length&&y>=0){if(w=v.eq(y).find("tr").index(c),l=p.normalized[w],a=c[0].cells.length,a!==n.columns)for(o=0,e=!1,h=0;h<a;h++)e||c[0].cells[h]===r?e=!0:o+=c[0].cells[h].colSpan;else o=s.index();e=i.getElementText(n,r,o);l[n.columns].raw[o]=e;e=i.getParsedText(n,r,o,e);l[o]=e;l[n.columns].$row=c;"numeric"===(n.parsers[o].type||"").toLowerCase()&&(p.colMax[o]=Math.max(Math.abs(e)||0,p.colMax[o]||0));e="undefined"!==u?u:n.resort;e!==!1?i.checkResort(n,e,f):i.resortComplete(n,f)}else n.debug&&console.error("updateCell aborted, tbody missing or not within the indicated table"),n.table.isUpdating=!1},addRows:function(r,u,f,e){var v,y,h,s,k,c,d,p,o,w,l,a,b,g="string"==typeof u&&1===r.$tbodies.length&&/<tr/.test(u||""),nt=r.table;if(g)u=t(u),r.$tbodies.append(u);else if(!(u&&u instanceof n&&(t.fn.closest?u.closest("table")[0]:u.parents("table")[0])===r.table))return r.debug&&console.error("addRows method requires (1) a jQuery selector reference to rows that have already been added to the table, or (2) row HTML string to be added to a table with only one tbody"),!1;if(nt.isUpdating=!0,i.isEmptyObject(r.cache))i.updateHeader(r),i.commonUpdate(r,f,e);else{for(k=u.filter("tr").attr("role","row").length,h=r.$tbodies.index(u.parents("tbody").filter(":first")),r.parsers&&r.parsers.length||i.setupParsers(r),s=0;s<k;s++){for(o=0,d=u[s].cells.length,p=r.cache[h].normalized.length,l=[],w={child:[],raw:[],$row:u.eq(s),order:p},c=0;c<d;c++)a=u[s].cells[c],v=i.getElementText(r,a,o),w.raw[o]=v,y=i.getParsedText(r,a,o,v),l[o]=y,"numeric"===(r.parsers[o].type||"").toLowerCase()&&(r.cache[h].colMax[o]=Math.max(Math.abs(y)||0,r.cache[h].colMax[o]||0)),b=a.colSpan-1,b>0&&(o+=b),o++;l[r.columns]=w;r.cache[h].normalized[p]=l}i.checkResort(r,f,e)}},updateCache:function(n,t,r){n.parsers&&n.parsers.length||i.setupParsers(n,r);i.buildCache(n,t,r)},appendCache:function(n,t){var e,c,s,h,u,f,l,r=n.table,y=n.widgetOptions,a=n.$tbodies,o=[],v=n.cache;if(i.isEmptyObject(v))return n.appender?n.appender(r,o):r.isUpdating?n.$table.triggerHandler("updateComplete",r):"";for(n.debug&&(l=new Date),f=0;f<a.length;f++)if(s=a.eq(f),s.length){for(h=i.processTbody(r,s,!0),e=v[f].normalized,c=e.length,u=0;u<c;u++)o[o.length]=e[u][n.columns].$row,n.appender&&(!n.pager||n.pager.removeRows&&y.pager_removeRows||n.pager.ajax)||h.append(e[u][n.columns].$row);i.processTbody(r,h,!1)}n.appender&&n.appender(r,o);n.debug&&console.log("Rebuilt table"+i.benchmark(l));t||n.appender||i.applyWidget(r);r.isUpdating&&n.$table.triggerHandler("updateComplete",r)},commonUpdate:function(n,t,r){n.$table.find(n.selectorRemove).remove();i.setupParsers(n);i.buildCache(n);i.checkResort(n,t,r)},initSort:function(n,r,u){if(n.table.isUpdating)return setTimeout(function(){i.initSort(n,r,u)},50);var h,f,l,e,y,s,v,p=!u[n.sortMultiSortKey],a=n.table,w=n.$headers.length,o=parseInt(t(r).attr("data-column"),10),c=n.sortVars[o].order;if(n.$table.triggerHandler("sortStart",a),s=(n.sortVars[o].count+1)%c.length,n.sortVars[o].count=u[n.sortResetKey]?2:s,n.sortRestart)for(l=0;l<w;l++)v=n.$headers.eq(l),s=parseInt(v.attr("data-column"),10),o!==s&&(p||v.hasClass(i.css.sortNone))&&(n.sortVars[s].count=-1);if(p){if(n.sortList=[],n.last.sortList=[],null!==n.sortForce)for(h=n.sortForce,f=0;f<h.length;f++)h[f][0]!==o&&(n.sortList[n.sortList.length]=h[f]);if(e=c[n.sortVars[o].count],e<2&&(n.sortList[n.sortList.length]=[o,e],r.colSpan>1))for(f=1;f<r.colSpan;f++)n.sortList[n.sortList.length]=[o+f,e],n.sortVars[o+f].count=t.inArray(e,c)}else if(n.sortList=t.extend([],n.last.sortList),i.isValueInArray(o,n.sortList)>=0)for(f=0;f<n.sortList.length;f++)s=n.sortList[f],s[0]===o&&(s[1]=c[n.sortVars[o].count],2===s[1]&&(n.sortList.splice(f,1),n.sortVars[o].count=-1));else if(e=c[n.sortVars[o].count],e<2&&(n.sortList[n.sortList.length]=[o,e],r.colSpan>1))for(f=1;f<r.colSpan;f++)n.sortList[n.sortList.length]=[o+f,e],n.sortVars[o+f].count=t.inArray(e,c);if(n.last.sortList=t.extend([],n.sortList),n.sortList.length&&n.sortAppend&&(h=t.isArray(n.sortAppend)?n.sortAppend:n.sortAppend[n.sortList[0][0]],!i.isEmptyObject(h)))for(f=0;f<h.length;f++)if(h[f][0]!==o&&i.isValueInArray(h[f][0],n.sortList)<0){if(e=h[f][1],y=(""+e).match(/^(a|d|s|o|n)/))switch(s=n.sortList[0][1],y[0]){case"d":e=1;break;case"s":e=s;break;case"o":e=0===s?1:0;break;case"n":e=(s+1)%c.length;break;default:e=0}n.sortList[n.sortList.length]=[h[f][0],e]}n.$table.triggerHandler("sortBegin",a);setTimeout(function(){i.setHeadersCss(n);i.multisort(n);i.appendCache(n);n.$table.triggerHandler("sortBeforeEnd",a);n.$table.triggerHandler("sortEnd",a)},1)},multisort:function(n){var u,c,r,l,s,f=n.table,h=[],t=0,e=n.textSorter||"",o=n.sortList,a=o.length,v=n.$tbodies.length;if(!n.serverSideSorting&&!i.isEmptyObject(n.cache)){if(n.debug&&(c=new Date),"object"==typeof e)for(r=n.columns;r--;)s=i.getColumnData(f,e,r),"function"==typeof s&&(h[r]=s);for(u=0;
88u<v;u++)r=n.cache[u].colMax,l=n.cache[u].normalized,l.sort(function(u,s){for(var v,c,b,y,p,w,l=0;l<a;l++){if(c=o[l][0],b=o[l][1],t=0===b,n.sortStable&&u[c]===s[c]&&1===a)return u[n.columns].order-s[n.columns].order;if(v=/n/i.test(i.getSortType(n.parsers,c)),v&&n.strings[c]?(v="boolean"==typeof i.string[n.strings[c]]?(t?1:-1)*(i.string[n.strings[c]]?-1:1):n.strings[c]?i.string[n.strings[c]]||0:0,y=n.numberSorter?n.numberSorter(u[c],s[c],t,r[c],f):i["sortNumeric"+(t?"Asc":"Desc")](u[c],s[c],v,r[c],c,n)):(p=t?u:s,w=t?s:u,y="function"==typeof e?e(p[c],w[c],t,c,f):"function"==typeof h[c]?h[c](p[c],w[c],t,c,f):i["sortNatural"+(t?"Asc":"Desc")](u[c],s[c],c,n)),y)return y}return u[n.columns].order-s[n.columns].order});n.debug&&console.log("Applying sort "+o.toString()+i.benchmark(c))}},resortComplete:function(n,i){n.table.isUpdating&&n.$table.triggerHandler("updateComplete",n.table);t.isFunction(i)&&i(n.table)},checkResort:function(n,r,u){var f=t.isArray(r)?r:n.sortList,e="undefined"==typeof r?n.resort:r;e===!1||n.serverSideSorting||n.table.isProcessing?(i.resortComplete(n,u),i.applyWidget(n.table,!1)):f.length?i.sortOn(n,f,function(){i.resortComplete(n,u)},!0):i.sortReset(n,function(){i.resortComplete(n,u);i.applyWidget(n.table,!1)})},sortOn:function(n,r,u,f){var e=n.table;n.$table.triggerHandler("sortStart",e);i.updateHeaderSortCount(n,r);i.setHeadersCss(n);n.delayInit&&i.isEmptyObject(n.cache)&&i.buildCache(n);n.$table.triggerHandler("sortBegin",e);i.multisort(n);i.appendCache(n,f);n.$table.triggerHandler("sortBeforeEnd",e);n.$table.triggerHandler("sortEnd",e);i.applyWidget(e);t.isFunction(u)&&u(e)},sortReset:function(n,r){n.sortList=[];i.setHeadersCss(n);i.multisort(n);i.appendCache(n);t.isFunction(r)&&r(n.table)},getSortType:function(n,t){return n&&n[t]?n[t].type||"":""},getOrder:function(n){return/^d/i.test(n)||1===n},sortNatural:function(n,t){if(n===t)return 0;var u,f,e,s,r,h,o=i.regex;if(o.hex.test(t)){if(u=parseInt((n||"").match(o.hex),16),f=parseInt((t||"").match(o.hex),16),u<f)return-1;if(u>f)return 1}for(u=(n||"").replace(o.chunk,"\\0$1\\0").replace(o.chunks,"").split("\\0"),f=(t||"").replace(o.chunk,"\\0$1\\0").replace(o.chunks,"").split("\\0"),h=Math.max(u.length,f.length),r=0;r<h;r++){if(e=isNaN(u[r])?u[r]||0:parseFloat(u[r])||0,s=isNaN(f[r])?f[r]||0:parseFloat(f[r])||0,isNaN(e)!==isNaN(s))return isNaN(e)?1:-1;if(typeof e!=typeof s&&(e+="",s+=""),e<s)return-1;if(e>s)return 1}return 0},sortNaturalAsc:function(n,t,r,u){if(n===t)return 0;var f=i.string[u.empties[r]||u.emptyTo];return""===n&&0!==f?"boolean"==typeof f?f?-1:1:-f||-1:""===t&&0!==f?"boolean"==typeof f?f?1:-1:f||1:i.sortNatural(n,t)},sortNaturalDesc:function(n,t,r,u){if(n===t)return 0;var f=i.string[u.empties[r]||u.emptyTo];return""===n&&0!==f?"boolean"==typeof f?f?-1:1:f||1:""===t&&0!==f?"boolean"==typeof f?f?1:-1:-f||-1:i.sortNatural(t,n)},sortText:function(n,t){return n>t?1:n<t?-1:0},getTextValue:function(n,t,i){if(i){for(var f=n?n.length:0,u=i+t,r=0;r<f;r++)u+=n.charCodeAt(r);return t*u}return 0},sortNumericAsc:function(n,t,r,u,f,e){if(n===t)return 0;var o=i.string[e.empties[f]||e.emptyTo];return""===n&&0!==o?"boolean"==typeof o?o?-1:1:-o||-1:""===t&&0!==o?"boolean"==typeof o?o?1:-1:o||1:(isNaN(n)&&(n=i.getTextValue(n,r,u)),isNaN(t)&&(t=i.getTextValue(t,r,u)),n-t)},sortNumericDesc:function(n,t,r,u,f,e){if(n===t)return 0;var o=i.string[e.empties[f]||e.emptyTo];return""===n&&0!==o?"boolean"==typeof o?o?-1:1:o||1:""===t&&0!==o?"boolean"==typeof o?o?1:-1:-o||-1:(isNaN(n)&&(n=i.getTextValue(n,r,u)),isNaN(t)&&(t=i.getTextValue(t,r,u)),t-n)},sortNumeric:function(n,t){return n-t},addWidget:function(n){n.id&&!i.isEmptyObject(i.getWidgetById(n.id))&&console.warn('"'+n.id+'" widget was loaded more than once!');i.widgets[i.widgets.length]=n},hasWidget:function(n,i){return n=t(n),n.length&&n[0].config&&n[0].config.widgetInit[i]||!1},getWidgetById:function(n){for(var t,u=i.widgets.length,r=0;r<u;r++)if(t=i.widgets[r],t&&t.id&&t.id.toLowerCase()===n.toLowerCase())return t},applyWidgetOptions:function(n){var r,u,f=n.config,e=f.widgets.length;if(e)for(r=0;r<e;r++)u=i.getWidgetById(f.widgets[r]),u&&u.options&&(f.widgetOptions=t.extend(!0,{},u.options,f.widgetOptions))},addWidgetFromClass:function(n){var f,t,u=n.config,o="^"+u.widgetClass.replace(i.regex.templateName,"(\\S+)+")+"$",e=new RegExp(o,"g"),r=(n.className||"").split(i.regex.spaces);if(r.length)for(f=r.length,t=0;t<f;t++)r[t].match(e)&&(u.widgets[u.widgets.length]=r[t].replace(e,"$1"))},applyWidgetId:function(n,r,u){n=t(n)[0];var s,h,e,f=n.config,c=f.widgetOptions,o=i.getWidgetById(r);o&&(e=o.id,s=!1,t.inArray(e,f.widgets)<0&&(f.widgets[f.widgets.length]=e),f.debug&&(h=new Date),!u&&f.widgetInit[e]||(f.widgetInit[e]=!0,n.hasInitialized&&i.applyWidgetOptions(n),"function"==typeof o.init&&(s=!0,f.debug&&console[console.group?"group":"log"]("Initializing "+e+" widget"),o.init(n,o,f,c))),u||"function"!=typeof o.format||(s=!0,f.debug&&console[console.group?"group":"log"]("Updating "+e+" widget"),o.format(n,f,c,!1)),f.debug&&s&&(console.log("Completed "+(u?"initializing ":"applying ")+e+" widget"+i.benchmark(h)),console.groupEnd&&console.groupEnd()))},applyWidget:function(n,r,u){n=t(n)[0];var o,s,h,e,l,f=n.config,c=[];if(r===!1||!n.hasInitialized||!n.isApplyingWidgets&&!n.isUpdating){if(f.debug&&(l=new Date),i.addWidgetFromClass(n),clearTimeout(f.timerReady),f.widgets.length){for(n.isApplyingWidgets=!0,f.widgets=t.grep(f.widgets,function(n,i){return t.inArray(n,f.widgets)===i}),h=f.widgets||[],s=h.length,o=0;o<s;o++)e=i.getWidgetById(h[o]),e&&e.id?(e.priority||(e.priority=10),c[o]=e):f.debug&&console.warn('"'+h[o]+'" widget code does not exist!');for(c.sort(function(n,t){return n.priority<t.priority?-1:n.priority===t.priority?0:1}),s=c.length,f.debug&&console[console.group?"group":"log"]("Start "+(r?"initializing":"applying")+" widgets"),o=0;o<s;o++)e=c[o],e&&e.id&&i.applyWidgetId(n,e.id,r);f.debug&&console.groupEnd&&console.groupEnd();r||"function"!=typeof u||u(n)}f.timerReady=setTimeout(function(){n.isApplyingWidgets=!1;t.data(n,"lastWidgetApplication",new Date);f.$table.triggerHandler("tablesorter-ready")},10);f.debug&&(e=f.widgets.length,console.log("Completed "+(r===!0?"initializing ":"applying ")+e+" widget"+(1!==e?"s":"")+i.benchmark(l)))}},removeWidget:function(n,r,u){n=t(n)[0];var e,f,o,h,s=n.config;if(r===!0)for(r=[],h=i.widgets.length,o=0;o<h;o++)f=i.widgets[o],f&&f.id&&(r[r.length]=f.id);else r=(t.isArray(r)?r.join(","):r||"").toLowerCase().split(/[\s,]+/);for(h=r.length,e=0;e<h;e++)f=i.getWidgetById(r[e]),o=t.inArray(r[e],s.widgets),o>=0&&u!==!0&&s.widgets.splice(o,1),f&&f.remove&&(s.debug&&console.log((u?"Refreshing":"Removing")+' "'+r[e]+'" widget'),f.remove(n,s,s.widgetOptions,u),s.widgetInit[r[e]]=!1)},refreshWidgets:function(n,r,u){n=t(n)[0];for(var f,c=n.config,l=c.widgets,h=i.widgets,a=h.length,o=[],s=function(n){t(n).triggerHandler("refreshComplete")},e=0;e<a;e++)f=h[e],f&&f.id&&(r||t.inArray(f.id,l)<0)&&(o[o.length]=f.id);i.removeWidget(n,o.join(","),!0);u!==!0?(i.applyWidget(n,r||!1,s),r&&i.applyWidget(n,!1,s)):s(n)},benchmark:function(n){return" ("+((new Date).getTime()-n.getTime())+" ms)"},log:function(){console.log(arguments)},isEmptyObject:function(n){for(var t in n)return!1;return!0},isValueInArray:function(n,t){for(var r=t&&t.length||0,i=0;i<r;i++)if(t[i][0]===n)return i;return-1},formatFloat:function(n,r){if("string"!=typeof n||""===n)return n;var u,f=r&&r.config?r.config.usNumberFormat!==!1:"undefined"==typeof r||r;return n=f?n.replace(i.regex.comma,""):n.replace(i.regex.digitNonUS,"").replace(i.regex.comma,"."),i.regex.digitNegativeTest.test(n)&&(n=n.replace(i.regex.digitNegativeReplace,"-$1")),u=parseFloat(n),isNaN(u)?t.trim(n):u},isDigit:function(n){return isNaN(n)?i.regex.digitTest.test(n.toString().replace(i.regex.digitReplace,"")):""!==n},computeColumnIndex:function(n,i){for(var h,r,c,u,l,f,v,y,o,p=i&&i.columns||0,e=[],a=new Array(p),s=0;s<n.length;s++)for(l=n[s].cells,h=0;h<l.length;h++){for(u=l[h],f=u.parentNode.rowIndex,v=u.rowSpan||1,y=u.colSpan||1,"undefined"==typeof e[f]&&(e[f]=[]),r=0;r<e[f].length+1;r++)if("undefined"==typeof e[f][r]){o=r;break}for(p&&u.cellIndex===o||(u.setAttribute?u.setAttribute("data-column",o):t(u).attr("data-column",o)),r=f;r<f+v;r++)for("undefined"==typeof e[r]&&(e[r]=[]),a=e[r],c=o;c<o+y;c++)a[c]="x"}return a.length},fixColumnWidth:function(n){n=t(n)[0];var o,s,e,h,f,r=n.config,u=r.$table.children("colgroup");
88if(u.length&&u.hasClass(i.css.colgroup)&&u.remove(),r.widthFixed&&0===r.$table.children("colgroup").length){for(u=t('<colgroup class="'+i.css.colgroup+'">'),o=r.$table.width(),e=r.$tbodies.find("tr:first").children(":visible"),h=e.length,f=0;f<h;f++)s=parseInt(e.eq(f).width()/o*1e3,10)/10+"%",u.append(t("<col>").css("width",s));r.$table.prepend(u)}},getData:function(n,i,r){var e,o,f="",u=t(n);return u.length?(e=!!t.metadata&&u.metadata(),o=" "+(u.attr("class")||""),"undefined"!=typeof u.data(r)||"undefined"!=typeof u.data(r.toLowerCase())?f+=u.data(r)||u.data(r.toLowerCase()):e&&"undefined"!=typeof e[r]?f+=e[r]:i&&"undefined"!=typeof i[r]?f+=i[r]:" "!==o&&o.match(" "+r+"-")&&(f=o.match(new RegExp("\\s"+r+"-([\\w-]+)"))[1]||""),t.trim(f)):""},getColumnData:function(n,i,r,u,f){if("undefined"!=typeof i&&null!==i){n=t(n)[0];var h,e,o=n.config,c=f||o.$headers,s=o.$headerIndexed&&o.$headerIndexed[r]||c.filter('[data-column="'+r+'"]:last');if("undefined"!=typeof i[r])return u?i[r]:i[c.index(s)];for(e in i)if("string"==typeof e&&(h=s.filter(e).add(s.find(e)),h.length))return i[e]}},isProcessing:function(n,r,u){n=t(n);var f=n[0].config,e=u||n.find("."+i.css.header);r?("undefined"!=typeof u&&f.sortList.length>0&&(e=e.filter(function(){return!this.sortDisabled&&i.isValueInArray(parseFloat(t(this).attr("data-column")),f.sortList)>=0})),n.add(e).addClass(i.css.processing+" "+f.cssProcessing)):n.add(e).removeClass(i.css.processing+" "+f.cssProcessing)},processTbody:function(n,i,r){if(n=t(n)[0],r)return n.isProcessing=!0,i.before('<colgroup class="tablesorter-savemyplace"/>'),t.fn.detach?i.detach():i.remove();var u=t(n).find("colgroup.tablesorter-savemyplace");i.insertAfter(u);u.remove();n.isProcessing=!1},clearTableBody:function(n){t(n)[0].config.$tbodies.children().detach()},characterEquivalents:{a:"áàâãäąå",A:"ÁÀÂÃÄĄÅ",c:"çćč",C:"ÇĆČ",e:"éèêëěę",E:"ÉÈÊËĚĘ",i:"íìİîïı",I:"ÍÌİÎÏ",o:"óòôõöō",O:"ÓÒÔÕÖŌ",ss:"ß",SS:"ẞ",u:"úùûüů",U:"ÚÙÛÜŮ"},replaceAccents:function(n){var t,u="[",r=i.characterEquivalents;if(!i.characterRegex){i.characterRegexArray={};for(t in r)"string"==typeof t&&(u+=r[t],i.characterRegexArray[t]=new RegExp("["+r[t]+"]","g"));i.characterRegex=new RegExp(u+"]")}if(i.characterRegex.test(n))for(t in r)"string"==typeof t&&(n=n.replace(i.characterRegexArray[t],t));return n},restoreHeaders:function(n){for(var u,f=t(n)[0].config,e=f.$table.find(f.selectorHeaders),o=e.length,r=0;r<o;r++)u=e.eq(r),u.find("."+i.css.headerIn).length&&u.html(f.headerContent[r])},destroy:function(n,r,u){if(n=t(n)[0],n.hasInitialized){i.removeWidget(n,!0,!1);var o,e=t(n),f=n.config,c=f.debug,s=e.find("thead:first"),h=s.find("tr."+i.css.headerRow).removeClass(i.css.headerRow+" "+f.cssHeaderRow),l=e.find("tfoot:first > tr").children("th, td");r===!1&&t.inArray("uitheme",f.widgets)>=0&&(e.triggerHandler("applyWidgetId",["uitheme"]),e.triggerHandler("applyWidgetId",["zebra"]));s.find("tr").not(h).remove();o="sortReset update updateRows updateAll updateHeaders updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets removeWidget destroy mouseup mouseleave "+"keypress sortBegin sortEnd resetToLoadState ".split(" ").join(f.namespace+" ");e.removeData("tablesorter").unbind(o.replace(i.regex.spaces," "));f.$headers.add(l).removeClass([i.css.header,f.cssHeader,f.cssAsc,f.cssDesc,i.css.sortAsc,i.css.sortDesc,i.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true");h.find(f.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(f.namespace+" ").replace(i.regex.spaces," "));i.restoreHeaders(n);e.toggleClass(i.css.table+" "+f.tableClass+" tablesorter-"+f.theme,r===!1);n.hasInitialized=!1;delete n.config.cache;"function"==typeof u&&u(n);c&&console.log("tablesorter has been removed")}}};t.fn.tablesorter=function(n){return this.each(function(){var r=this,u=t.extend(!0,{},i.defaults,n,i.instanceMethods);u.originalSettings=n;!r.hasInitialized&&i.buildTable&&"TABLE"!==this.nodeName?i.buildTable(r,u):i.setup(r,u)}
88)};window.console&&window.console.log||(i.logs=[],console={},console.log=console.warn=console.error=console.table=function(){var n=arguments.length>1?arguments:arguments[0];i.logs[i.logs.length]={date:Date.now(),log:n}});i.addParser({id:"no-parser",is:function(){return!1},format:function(){return""},type:"text"});i.addParser({id:"text",is:function(){return!0},format:function(n,r){var u=r.config;return n&&(n=t.trim(u.ignoreCase?n.toLocaleLowerCase():n),n=u.sortLocaleCompare?i.replaceAccents(n):n),n},type:"text"});i.regex.nondigit=/[^\w,. \-()]/g;i.addParser({id:"digit",is:function(n){return i.isDigit(n)},format:function(n,r){var u=i.formatFloat((n||"").replace(i.regex.nondigit,""),r);return n&&"number"==typeof u?u:n?t.trim(n&&r.config.ignoreCase?n.toLocaleLowerCase():n):n},type:"numeric"});i.regex.currencyReplace=/[+\-,. ]/g;i.regex.currencyTest=/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/;i.addParser({id:"currency",is:function(n){return n=(n||"").replace(i.regex.currencyReplace,""),i.regex.currencyTest.test(n)},format:function(n,r){var u=i.formatFloat((n||"").replace(i.regex.nondigit,""),r);return n&&"number"==typeof u?u:n?t.trim(n&&r.config.ignoreCase?n.toLocaleLowerCase():n):n},type:"numeric"});i.regex.urlProtocolTest=/^(https?|ftp|file):\/\//;i.regex.urlProtocolReplace=/(https?|ftp|file):\/\/(www\.)?/;i.addParser({id:"url",is:function(n){return i.regex.urlProtocolTest.test(n)},format:function(n){return n?t.trim(n.replace(i.regex.urlProtocolReplace,"")):n},type:"text"});i.regex.dash=/-/g;i.regex.isoDate=/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/;i.addParser({id:"isoDate",is:function(n){return i.regex.isoDate.test(n)},format:function(n){var t=n?new Date(n.replace(i.regex.dash,"/")):n;return t instanceof Date&&isFinite(t)?t.getTime():n},type:"numeric"});i.regex.percent=/%/g;i.regex.percentTest=/(\d\s*?%|%\s*?\d)/;i.addParser({id:"percent",is:function(n){return i.regex.percentTest.test(n)&&n.length<15},format:function(n,t){return n?i.formatFloat(n.replace(i.regex.percent,""),t):n},type:"numeric"});i.addParser({id:"image",is:function(n,t,i,r){return r.find("img").length>0},format:function(n,i,r){return t(r).find("img").attr(i.config.imgAttr||"alt")||n},parsed:!0,type:"text"});i.regex.dateReplace=/(\S)([AP]M)$/i;i.regex.usLongDateTest1=/^[A-Z]{3,10}\.?\s+\d{1,2},?\s+(\d{4})(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?$/i;i.regex.usLongDateTest2=/^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i;i.addParser({id:"usLongDate",is:function(n){return i.regex.usLongDateTest1.test(n)||i.regex.usLongDateTest2.test(n)},format:function(n){var t=n?new Date(n.replace(i.regex.dateReplace,"$1 $2")):n;return t instanceof Date&&isFinite(t)?t.getTime():n},type:"numeric"});i.regex.shortDateTest=/(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/;i.regex.shortDateReplace=/[\-.,]/g;i.regex.shortDateXXY=/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/;i.regex.shortDateYMD=/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/;i.convertFormat=function(n,t){n=(n||"").replace(i.regex.spaces," ").replace(i.regex.shortDateReplace,"/");"mmddyyyy"===t?n=n.replace(i.regex.shortDateXXY,"$3/$1/$2"):"ddmmyyyy"===t?n=n.replace(i.regex.shortDateXXY,"$3/$2/$1"):"yyyymmdd"===t&&(n=n.replace(i.regex.shortDateYMD,"$1/$2/$3"));var r=new Date(n);return r instanceof Date&&isFinite(r)?r.getTime():""};i.addParser({id:"shortDate",is:function(n){return n=(n||"").replace(i.regex.spaces," ").replace(i.regex.shortDateReplace,"/"),i.regex.shortDateTest.test(n)},format:function(n,t,r,u){if(n){var e=t.config,f=e.$headerIndexed[u],o=f.length&&f.data("dateFormat")||i.getData(f,i.getColumnData(t,e.headers,u),"dateFormat")||e.dateFormat;return f.length&&f.data("dateFormat",o),i.convertFormat(n,o)||n}return n},type:"numeric"});i.regex.timeTest=/^(0?[1-9]|1[0-2]):([0-5]\d)(\s[AP]M)$|^((?:[01]\d|[2][0-4]):[0-5]\d)$/i;i.regex.timeMatch=/(0?[1-9]|1[0-2]):([0-5]\d)(\s[AP]M)|((?:[01]\d|[2][0-4]):[0-5]\d)/i;i.addParser({id:"time",is:function(n){return i.regex.timeTest.test(n)},format:function(n){var f,e=(n||"").match(i.regex.timeMatch),t=new Date(n),u=n&&(null!==e?e[0]:"00:00 AM"),r=u?new Date("2000/01/01 "+u.replace(i.regex.dateReplace,"$1 $2")):u;return r instanceof Date&&isFinite(r)?(f=t instanceof Date&&isFinite(t)?t.getTime():0,f?parseFloat(r.getTime()+"."+t.getTime()):r.getTime()):n},type:"numeric"});i.addParser({id:"metadata",is:function(){return!1},format:function(n,i,r){var u=i.config,f=u.parserMetadataName?u.parserMetadataName:"sortValue";return t(r).metadata()[f]},type:"numeric"});i.addWidget({id:"zebra",priority:90,format:function(n,i,r){for(var e,o,s,h,f,c,a=new RegExp(i.cssChildRow,"i"),l=i.$tbodies.add(t(i.namespace+"_extra_table").children("tbody:not(."+i.cssInfoBlock+")")),u=0;u<l.length;
88u++)for(s=0,e=l.eq(u).children("tr:visible").not(i.selectorRemove),c=e.length,f=0;f<c;f++)o=e.eq(f),a.test(o[0].className)||s++,h=s%2==0,o.removeClass(r.zebra[h?1:0]).addClass(r.zebra[h?0:1])},remove:function(n,t,r,u){if(!u)for(var e,o=t.$tbodies,s=(r.zebra||["even","odd"]).join(" "),f=0;f<o.length;f++)e=i.processTbody(n,o.eq(f),!0),e.children().removeClass(s),i.processTbody(n,e,!1)}})}(n),n.tablesorter}),function(n){n.extend({tablesorterPager:new function(){function f(t){var i=n(t.cssPageDisplay,t.container).val(t.page+1+t.seperator+t.totalPages)}function e(n,r){var u=n.config;u.size=r;u.totalPages=Math.ceil(u.totalRows/u.size);u.pagerPositionSet=!1;t(n);i(n)}function i(t){var i=t.config,r;!i.pagerPositionSet&&i.positionFixed&&(i=t.config,r=n(t),r.offset,i.pagerPositionSet=!0)}function o(n){var i=n.config;i.page=0;t(n)}function r(n){var i=n.config;i.page=i.totalPages-1;t(n)}function s(n){var i=n.config;i.page++;i.page>=i.totalPages-1&&(i.page=i.totalPages-1);t(n)}function h(n){var i=n.config;i.page--;i.page<=0&&(i.page=0);t(n)}function t(n){var t=n.config;(t.page<0||t.page>t.totalPages-1)&&(t.page=0);u(n,t.rowsCopy)}function u(t,u){var e=t.config,a=u.length,v=e.page*e.size,h=v+e.size,c,o,l,s;for(h>u.length&&(h=u.length),c=n(t.tBodies[0]),n.tablesorter.clearTableBody(t),o=v;o<h;o++)for(l=u[o],a=l.length,s=0;s<a;s++)c[0].appendChild(l[s]);i(t,c);n(t).trigger("applyWidgets");e.page>=e.totalPages&&r(t);f(e)}this.appender=function(n,t){var i=n.config;i.rowsCopy=t;i.totalRows=t.length;i.totalPages=Math.ceil(i.totalRows/i.size);u(n,t)};this.defaults={size:10,offset:0,page:0,totalRows:0,totalPages:0,container:null,cssNext:".next",cssPrev:".prev",cssFirst:".first",cssLast:".last",cssPageDisplay:".pagedisplay",cssPageSize:".pagesize",seperator:"/",positionFixed:!0,appender:this.appender};this.construct=function(t){return this.each(function(){config=n.extend(this.config,n.tablesorterPager.defaults,t);var u=this,i=config.container;n(this).trigger("appendCache");config.size=parseInt(n(".pagesize",i).val());n(config.cssFirst,i).click(function(){return o(u),!1});n(config.cssNext,i).click(function(){return s(u),!1});n(config.cssPrev,i).click(function(){return h(u),!1});n(config.cssLast,i).click(function(){return r(u),!1});n(config.cssPageSize,i).change(function(){return e(u,parseInt(n(this).val())),!1})})}}});n.fn.extend({tablesorterPager:n.tablesorterPager.construct})}(jQuery);!function(n){"use strict";function s(n){var t={path:!0,query:!0,hash:!0};return n?(/^[a-z]+:/.test(n)&&(t.protocol=!0,t.host=!0,/[-a-z0-9]+(\.[-a-z0-9])*:\d+/i.test(n)&&(t.port=!0),/\/\/(.*?)(?::(.*?))?@/.test(n)&&(t.user=!0,t.pass=!0)),t):t}function h(n,i,h){var a,l,y,k=u?"file://"+(process.platform.match(/^win/i)?"/":"")+e("fs").realpathSync("."):document.location.href,v;i||(i=k);u?a=e("url").parse(i):(a=document.createElement("a"),a.href=i);v=s(i);y=i.match(/\/\/(.*?)(?::(.*?))?@/)||[];for(l in o)n[l]=v[l]?a[o[l]]||"":"";if(n.protocol=n.protocol.replace(/:$/,""),n.query=n.query.replace(/^\?/,""),n.hash=r(n.hash.replace(/^#/,"")),n.user=r(y[1]||""),n.pass=r(y[2]||""),n.port=c[n.protocol]==n.port||0==n.port?"":n.port,!v.protocol&&/[^\/#?]/.test(i.charAt(0))&&(n.path=i.split("?")[0].split("#")[0]),!v.protocol&&h){var d=new t(k.match(/(.*\/)/)[0]),p=d.path.split("/"),w=n.path.split("/"),b=["protocol","user","pass","host","port"],g=b.length;for(p.pop(),l=0;g>l;l++)n[b[l]]=d[b[l]];for(;".."===w[0];)p.pop(),w.shift();n.path=("/"!==i.charAt(0)?p.join("/"):"")+"/"+w.join("/")}n.path=n.path.replace(/^\/{2,}/,"/");n.paths(("/"===n.path.charAt(0)?n.path.slice(1):n.path).split("/"));n.query=new f(n.query)}function i(n){return encodeURIComponent(n).replace(/'/g,"%27")}function r(n){return n=n.replace(/\+/g," "),n=n.replace(/%([ef][0-9a-f])%([89ab][0-9a-f])%([89ab][0-9a-f])/gi,function(n,t,i,r){var f=parseInt(t,16)-224,e=parseInt(i,16)-128,o,u;return 0===f&&32>e?n:(o=parseInt(r,16)-128,u=(f<<12)+(e<<6)+o,u>65535?n:String.fromCharCode(u))}),n=n.replace(/%([cd][0-9a-f])%([89ab][0-9a-f])/gi,function(n,t,i){var r=parseInt(t,16)-192,u;return 2>r?n:(u=parseInt(i,16)-128,String.fromCharCode((r<<6)+u))}),n.replace(/%([0-7][0-9a-f])/gi,function(n,t){return String.fromCharCode(parseInt(t,16))})}function f(n){for(var i,t,u,f=/([^=&]+)(=([^&]*))?/g;i=f.exec(n);)t=decodeURIComponent(i[1].replace(/\+/g," ")),u=i[3]?r(i[3]):"",void 0!==this[t]&&null!==this[t]?(this[t]instanceof Array||(this[t]=[this[t]]),this[t].push(u)):this[t]=u}function t(n,t){h(this,n,!t)}var u="undefined"==typeof window&&"undefined"!=typeof global&&"function"==typeof require,e=u?n.require:null,o={protocol:"protocol",host:"hostname",port:"port",path:"pathname",query:"search",hash:"hash"},c={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};f.prototype.toString=function(){var n,u,t="",r=i,f;for(n in this)if(!(this[n]instanceof Function||null===this[n]))if(this[n]instanceof Array)if(f=this[n].length,f)for(u=0;f>u;u++)t+=t?"&":"",t+=r(n)+"="+r(this[n][u]);else t+=(t?"&":"")+r(n)+"=";else t+=t?"&":"",t+=r(n)+"="+r(this[n]);return t};t.prototype.clearQuery=function(){for(var n in this.query)this.query[n]instanceof Function||delete this.query[n];return this};t.prototype.queryLength=function(){var n,t=0;for(n in this)this[n]instanceof Function||t++;return t};t.prototype.isEmptyQuery=function(){return 0===this.queryLength()};
88t.prototype.paths=function(n){var u,f="",t=0;if(n&&n.length&&n+""!==n){for(this.isAbsolute()&&(f="/"),u=n.length;u>t;t++)n[t]=!t&&n[t].match(/^\w:$/)?n[t]:i(n[t]);this.path=f+n.join("/")}for(n=("/"===this.path.charAt(0)?this.path.slice(1):this.path).split("/"),t=0,u=n.length;u>t;t++)n[t]=r(n[t]);return n};t.prototype.encode=i;t.prototype.decode=r;t.prototype.isAbsolute=function(){return this.protocol||"/"===this.path.charAt(0)};t.prototype.toString=function(){return(this.protocol&&this.protocol+"://")+(this.user&&i(this.user)+(this.pass&&":"+i(this.pass))+"@")+(this.host&&this.host)+(this.port&&":"+this.port)+(this.path&&this.path)+(this.query.toString()&&"?"+this.query)+(this.hash&&"#"+i(this.hash))};n[n.exports?"exports":"Url"]=t}("undefined"!=typeof module&&module.exports?module:window);nologoImagePath="/content/img/nologo.png";noProfilePicPath="/content/img/noProfilePic.png";$(function(){$("body").animate({opacity:1},200,function(){});$("#headerWrap").hasClass("width100")==!1&&$(".widthSet").length&&($(".theme_BigMenu_wrap").addClass("contentWidth_"+$(".widthSet").data("setwidth")),$(".theme_MegaMenu_wrap > .container-12").addClass("contentWidth_"+$(".widthSet").data("setwidth")));$(".module-border-controller").each(function(){$(this).hasClass("module-no-border")&&$(this).find(".theme_macro").addClass("theme-no-border");$(this).children().insertAfter($(this));$(this).remove()});CalcGridWidth();$(".nocontent").remove();$("#theme_search_input").bind("enterKey",function(){$(".theme_search_button")[0].onclick()});$("#theme_search_input").keyup(function(n){n.keyCode==13&&$(this).trigger("enterKey")});$(".theme_search_options li.selected").length==0&&$(".theme_search_options li").addClass("selected");$(".theme_search_select span").html($(".theme_search_options li.selected").data("text"));$(".theme_search_select").click(function(n){if(n.stopPropagation(),$(".theme_search_options").is(":visible")==!1){var t=$(this).width();$(".theme_search_options").detach().appendTo("body");$(".theme_search_options").css("min-width",t);$(".theme_search_options").css({left:$(this).offset().left+1+"px",top:$(this).offset().top+1+$(this).height()+"px",display:"inline-block"})}else $(".theme_search_options").hide()});$(".theme_search_options li").click(function(){var n=$(this).data("value");$(".theme_search_options li").removeClass("selected");$(this).addClass("selected");$(".theme_search_select span").html($(this).data("text"));$(".theme_search_options").hide()});$(".mp_gallery_imgs").each(function(){$(this).magnificPopup({delegate:"a",type:"image",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},image:{tError:"Billedet kunne ikke vises.",titleSrc:function(n){return n.el.attr("title")}}})});$(".contentGrid-bottom .packeryBox").length&&$(".contentGrid-bottom .packeryBox").html().trim()==""&&$(".contentGrid-bottom").remove();$(".breadcrumbWrap").length&&$(".breadcrumbWrap").html().trim()==""&&$(".breadcrumbWrap").remove();$(".pbox-content").length&&$(".pbox-content").html().trim()==""&&$(".pbox-content").remove();$(".personGroup").each(function(){$(this).closest(".contentGrid-content").length>0&&$(this).addClass("grid-8");$(this).closest(".contentGrid-right").length>0&&$(this).addClass("grid-4");$(this).closest(".contentGrid-bottom").length>0&&$(this).addClass("grid-12")});$(".personGroup_person.tooltip").each(function(){$(this).attr("title")==""&&$(this).removeClass("tooltip")});$(".theme_ClubFixtures .paging_forward").on("click",function(){var n=$(this).parent().parent().parent();$(this).hasClass("disabled")||($(n).data("currentpage",$(n).data("currentpage")+1),ClubFixturesSetPaging(n))});$(".theme_ClubFixtures .paging_back").on("click",function(){var n=$(this).parent().parent().parent();$(this).hasClass("disabled")||($(n).data("currentpage",$(n).data("currentpage")-1),ClubFixturesSetPaging(n))});$(".theme_ClubFixtures").each(function(){var t,i,r,n,u;$(this).find($(".match.isPlayed")).length>0?(t=$(this).find($(".match")),t.each(function(){if($(this).hasClass("upcoming"))return i=$(this).data("matchno"),!1}),r=$(this).data("pagingcount"),n=i,n=n==null?t.length:n+1,u=Math.ceil(n/r),$(this).data("currentpage",u)):$(this).data("currentpage",1);ClubFixturesSetPaging($(this))});$(".theme_ClubFixtures .match a").on("click",function(n){n.stopPropagation()});$(".theme_ClubFixtures .match").on("click",function(){var n=window.open($(this).data("url"),"_parent");n&&n.focus()});$(".activities-list-macro .paging_forward").on("click",function(){var n=$(this).closest(".activities-list-macro");$(this).hasClass("disabled")||($(n).find(".activities-list").data("currentpage",$(n).find(".activities-list").data("currentpage")+1),ActivitiesListSetPaging($(n).find(".activities-list")))});$(".activities-list-macro .paging_back").on("click",function(){var n=$(this).closest(".activities-list-macro");$(this).hasClass("disabled")||($(n).find(".activities-list").data("currentpage",$(n).find(".activities-list").data("currentpage")-1),ActivitiesListSetPaging($(n).find(".activities-list")))});$(".activities-list").each(function(){ActivitiesListSetPaging($(this))});initToolTips();window.onresize=function(){setTimeout(function(){CalcGridWidth()});$("#theme_search_input").is(":focus")||(MoveSearchBar(),$("#loginBox").center(!1),$(document).width()<=960?($
88(".userInfoWrap").stop().animate({bottom:"-65px"}),$(".userInfoWrap").find("p").stop().delay(2e3).slideUp()):($(".userInfoWrap").stop().animate({bottom:"0"}),$(".userInfoWrap").find("p").show()));ResizeContent();loadImages();setNewsListItemWidth()};setNewsListItemWidth();MoveSearchBar();$("#loginBox").center(!1);$(document).width()<=960?($(".userInfoWrap").stop().animate({bottom:"-65px"}),$(".userInfoWrap").find("p").stop().delay(2e3).slideUp()):($(".userInfoWrap").stop().animate({bottom:"0"}),$(".userInfoWrap").find("p").show());$("input").click(function(){getFocus(this)});window.onorientationchange=function(){MoveSearchBar()};jQuery("time.timeago").timeago();$(".tableSort").length&&$(".tableSort").each(function(){var n=$(this).next(".pager");$(this).tablesorter({sortInitialOrder:"desc",sortList:[[2,1],[3,1]]});$(this).tablesorterPager({container:$(n),size:5})});$.cookie("acceptcookies")=="true"||$(".cookieNotice").slideDown();$(".centerInParent").flexVerticalCenter({cssAttribute:"margin-top",parentSelector:".parent"});$("._activityCalendar").length&&$("._activityCalendar").each(function(){var t=$(this).data("types"),n="";$(this).data("teampage")=="True"?(n="/umbraco/DBU/DBUFrontApi/GetActivityCalendarEvents?",n+="activityTypes="+t,n+="&showPB="+$(this).data("showpb"),n+="&showSB="+$(this).data("showsb"),n+="&showMatches="+$(this).data("showm"),n+="&showKK="+$(this).data("showkk"),n+="&teamId="+$(this).data("teamid"),n+="&poolId="+$(this).data("poolid")):n="/umbraco/DBU/DBUFrontApi/GetActivityCalendarEvents?activityTypes="+t;$(this).fullCalendar({editable:!1,handleWindowResize:!0,displayEventTime:!0,weekNumbers:!0,defaultView:$(this).data("startview"),header:{left:"title",center:"",right:"today prev,next agendaDay,agendaWeek, month, listMonth"},events:{url:n,type:"GET",success:function(){console.log("Got calendar-events")},error:function(){console.log("Error getting calendar-events")}},eventRender:function(n){var i="",t;return n.signupUrl!=null&&n.signupUrl!=""&&(i="<div class='signupurl'><a href='"+n.signupUrl+"' target='_blank'>GÃ¥ til tilmelding<\/a><\/div>"),t="",n.link!=null&&n.link!=""&&(t="<div class='url'><a href='"+n.link+"' target='_blank'>GÃ¥ til aktiviteten<\/a><\/div>"),$('<div class="fc-day-grid-event fc-h-event fc-event fc-start fc-end type_'+n.KOType+" category_"+n.type+' " data-url="'+n.link+'"><div class="fc-content"><div class="infowrap"><span class="fc-time '+(n.allDay==!0?"hideTime":"")+'"><i class="fa fa-clock-o" aria-hidden="true"><\/i> '+moment(n.start).format("HH:mm")+'<span class="endtime"> - '+moment(n.end).format("HH:mm")+'<\/span><\/span><span class="fc-type">'+(n.KOTypeName!=undefined?n.KOTypeName:n.typeName)+'<\/span><\/div><div class="titlewrap"><span class="fc-title">'+n.title+'<\/span><div class="descriptionPlaceholder">Klik for mere...<\/div><div class="fc-description">'+n.description+(i!=""?i:"")+(t!=""?t:"")+'<\/div><div class="fc-venue">'+(n.venue!=null?n.venue:"")+'<\/div><\/div><\/div><div class="close-btn"><i class="fa fa-close"/><\/div><\/div>')}})});$(document).delegate(".activityCalendar .fc-event","click",function(n){var i;n.stopPropagation();var r=n.pageX,u=n.pageY,f=$(n.currentTarget).position(),t=$(n.target).closest(".activityCalendar").data("unique");$(".calendarPopup.u_"+t).detach().appendTo($("body"));$(".calendarPopup.u_"+t).css({left:r});$(".calendarPopup.u_"+t).css({top:u});i=$(n.currentTarget).clone();i.css("top","0").css("left","0");$(".calendarPopup.u_"+t).html(i);$(".calendarPopup.u_"+t).show()});$(document).delegate(".calendarPopup .fc-event","click",function(){});$(document).delegate(".activityCalendar","click",function(){$(".calendarPopup").hide()});$(document).delegate(".calendarPopup .close-btn","click",function(){$(".calendarPopup").hide()});$(".modulewrap, .pagebody").each(function(){$(this).html().trim()==""&&$(this).remove()});$(".gridv2 .gridrow .col + .col").each(function(){$(this).prev(".col").hasClass("needSpace")||$(this).prev(".col").addClass("needSpace");$(this).hasClass("needSpace")||$(this).addClass("needSpace")});loadImages();calcNewsBlockSizes();$(window).resize(function(n){n.stopPropagation();calcNewsBlockSizes()});$(".theme_NMB_bigGoto").addClass("fa fa-chevron-circle-right");$(".theme_NMB_tinyGoto").addClass("fa fa-chevron-circle-right");$(".theme_matchProgram_goto_icon").addClass("fa fa-chevron-circle-right");$(".theme_nextMatch_goto_icon").addClass("fa fa-chevron-circle-right");$(".theme_clubresultpage_backButton_icon").addClass("fa fa-chevron-circle-left");$(".theme_gallerySection_headerIcon").addClass("fa fa-camera-retro");$(".theme_gallerySection_seeAll_icon").addClass("fa fa-camera-retro");$(".theme_teamActivities_goto_icon").addClass("fa fa-chevron-circle-right");$(".paging_but.paging_back").addClass("fa fa-chevron-circle-left");$(".paging_but.paging_forward").addClass("fa fa-chevron-circle-right");$(".divider").html("<icon class='fa fa-caret-right'><\/icon>");$(".img_nologo").attr("src",nologoImagePath);$(".img_noProfilePic").attr("src",noProfilePicPath);$(".tableSort").length&&$(".tableSort").bind("DOMSubtreeModified",function(){loadImages();$(".img_noProfilePic").attr("src",noProfilePicPath)});$(".theme_matchProgram_content").each(function(){var n=$(this).find(".upcoming").first().offset(),t=$(this).find(".upcoming").first().parent().offset(),i;n!=null&&t!=null&&(i=n.top-t.top-60,$(this).find(".upcoming").first().parent().animate({scrollTop:i},200))})});$(window).load(function(){function n(){t=setTimeout(n,2e3)}var t=setTimeout(n,300);ResizeContent()});$.fn.centerOnParent=function(){return this.css("position","absolute"),this.css("top",$(this).parent().height()/2-this.height()/2+"px"),this.css("left",$(this).parent().width()/2-this.width()/2+"px"),this};
89/*!
90 * jQuery Cookie Plugin v1.4.1
91 * https://github.com/carhartl/jquery-cookie
92 *
93 * Copyright 2013 Klaus Hartl
94 * Released under the MIT license
95 */
96(function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?n(require("jquery")):n(jQuery)})(function(n){function i(n){return t.raw?n:encodeURIComponent(n)}function f(n){return t.raw?n:decodeURIComponent(n)}function e(n){return i(t.json?JSON.stringify(n):String(n))}function o(n){n.indexOf('"')===0&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return n=decodeURIComponent(n.replace(u," ")),t.json?JSON.parse(n):n}catch(i){}}function r(i,r){var u=t.raw?i:o(i);return n.isFunction(r)?r(u):u}var u=/\+/g,t=n.cookie=function(u,o,s){var y,a,h,v,c,p;if(o!==undefined&&!n.isFunction(o))return s=n.extend({},t.defaults,s),typeof s.expires=="number"&&(y=s.expires,a=s.expires=new Date,a.setTime(+a+y*864e5)),document.cookie=[i(u),"=",e(o),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("");for(h=u?undefined:{},v=document.cookie?document.cookie.split("; "):[],c=0,p=v.length;c<p;c++){var w=v[c].split("="),b=f(w.shift()),l=w.join("=");if(u&&u===b){h=r(l,o);break}u||(l=r(l))===undefined||(h[b]=l)}return h};t.defaults={};n.removeCookie=function(t,i){return n.cookie(t)===undefined?!1:(n.cookie(t,"",n.extend({},i,{expires:-1})),!n.cookie(t))}});
97/*!
98 * FullCalendar v3.10.2
99 * Docs & License: https://fullcalendar.io/
100 * (c) 2019 Adam Shaw
101 */
102(function(n,t){typeof exports=="object"&&typeof module=="object"?module.exports=t(require("moment"),require("jquery")):typeof define=="function"&&define.amd?define(["moment","jquery"],t):typeof exports=="object"?exports.FullCalendar=t(require("moment"),require("jquery")):n.FullCalendar=t(n.moment,n.jQuery)})(typeof self!="undefined"?self:this,function(n,t){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var i={};return t.m=n,t.c=i,t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var i=n&&n.__esModule?function(){return n["default"]}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=256)}([function(t){t.exports=n}
102,,function(n,t){var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};t.__extends=function(n,t){function r(){this.constructor=n}i(n,t);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}},function(n){n.exports=t},function(n,t,i){function nt(n,t){t.left&&n.css({"border-left-width":1,"margin-left":t.left-1});t.right&&n.css({"border-right-width":1,"margin-right":t.right-1})}function tt(n){n.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})}function it(){r("body").addClass("fc-not-allowed")}function rt(){r("body").removeClass("fc-not-allowed")}function ut(n,t,i){var u=Math.floor(t/n.length),e=Math.floor(t-u*(n.length-1)),f=[],o=[],s=[],h=0;c(n);n.each(function(t,i){var l=t===n.length-1?e:u,c=r(i).outerHeight(!0);c<l?(f.push(i),o.push(c),s.push(r(i).height())):h+=c});i&&(t-=h,u=Math.floor(t/f.length),e=Math.floor(t-u*(f.length-1)));r(f).each(function(n,t){var i=n===f.length-1?e:u,h=o[n],c=s[n],l=i-(h-c);h<i&&r(t).height(l)})}function c(n){n.height("")}function ft(n){var t=0;return n.find("> *").each(function(n,i){var u=r(i).outerWidth();u>t&&(t=u)}),t++,n.width(t),t}function et(n,t){var i=n.add(t),r;return i.css({position:"relative",left:-1}),r=n.outerHeight()-t.outerHeight(),i.css({position:"",left:""}),r}function ot(n){var i=n.css("position"),t=n.parents().filter(function(){var n=r(this);return/(auto|scroll)/.test(n.css("overflow")+n.css("overflow-y")+n.css("overflow-x"))}).eq(0);return i==="fixed"||!t.length?r(n[0].ownerDocument||document):t}function st(n,t){var i=n.offset(),r=i.left-(t?t.left:0),u=i.top-(t?t.top:0);return{left:r,right:r+n.outerWidth(),top:u,bottom:u+n.outerHeight()}}function ht(n,t){var i=n.offset(),r=l(n),u=i.left+f(n,"border-left-width")+r.left-(t?t.left:0),e=i.top+f(n,"border-top-width")+r.top-(t?t.top:0);return{left:u,right:u+n[0].clientWidth,top:e,bottom:e+n[0].clientHeight}}function ct(n,t){var i=n.offset(),r=i.left+f(n,"border-left-width")+f(n,"padding-left")-(t?t.left:0),u=i.top+f(n,"border-top-width")+f(n,"padding-top")-(t?t.top:0);return{left:r,right:r+n.width(),top:u,bottom:u+n.height()}}function l(n){var t=n[0].offsetWidth-n[0].clientWidth,r=n[0].offsetHeight-n[0].clientHeight,i;return t=a(t),r=a(r),i={left:0,right:0,top:0,bottom:r},lt()&&n.css("direction")==="rtl"?i.left=t:i.right=t,i}function a(n){return n=Math.max(0,n),Math.round(n)}function lt(){return s===null&&(s=at()),s}function at(){var n=r("<div><div><\/div><\/div>").css({position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}).appendTo("body"),t=n.children(),i=t.offset().left>n.offset().left;return n.remove(),i}function f(n,t){return parseFloat(n.css(t))||0}function vt(n){return n.which===1&&!n.ctrlKey}function yt(n){var t=n.originalEvent.touches;return t&&t.length?t[0].pageX:n.pageX}function pt(n){var t=n.originalEvent.touches;return t&&t.length?t[0].pageY:n.pageY}function wt(n){return/^touch/.test(n.type)}function bt(n){n.addClass("fc-unselectable").on("selectstart",h)}function kt(n){n.removeClass("fc-unselectable").off("selectstart",h)}function h(n){n.preventDefault()}function dt(n,t){var i={left:Math.max(n.left,t.left),right:Math.min(n.right,t.right),top:Math.max(n.top,t.top),bottom:Math.min(n.bottom,t.bottom)};return i.left<i.right&&i.top<i.bottom?i:!1}function gt(n,t){return{left:Math.min(Math.max(n.left,t.left),t.right),top:Math.min(Math.max(n.top,t.top),t.bottom)}}function ni(n){return{left:(n.left+n.right)/2,top:(n.top+n.bottom)/2}}function ti(n,t){return{left:n.left-t.left,top:n.top-t.top}}function ii(n){var f=[],i=[],u,t;for(typeof n=="string"?i=n.split(/\s*,\s*/):typeof n=="function"?i=[n]:r.isArray(n)&&(i=n),u=0;u<i.length;u++)t=i[u],typeof t=="string"?f.push(t.charAt(0)==="-"?{field:t.substring(1),order:-1}:{field:t,order:1}):typeof t=="function"&&f.push({func:t});return f}function ri(n,t,i,r,u){for(var e,f=0;f<i.length;f++)if(e=v(n,t,i[f],r,u),e)return e;return 0}function v(n,t,i,r,u){if(i.func)return i.func(n,t);var f=n[i.field],e=t[i.field];return f==null&&r&&(f=r[i.field]),e==null&&u&&(e=u[i.field]),y(f,e)*(i.order||1)}function y(n,t){return!n&&!t?0:t==null?-1:n==null?1:r.type(n)==="str
102ing"||r.type(t)==="string"?String(n).localeCompare(String(t)):n-t}function ui(n,t){return u.duration({days:n.clone().stripTime().diff(t.clone().stripTime(),"days"),ms:n.time()-t.time()})}function fi(n,t){return u.duration({days:n.clone().stripTime().diff(t.clone().stripTime(),"days")})}function ei(n,t,i){return u.duration(Math.round(n.diff(t,i,!0)),i)}function p(n,i){for(var u,f,r=0;r<t.unitsDesc.length;r++)if(u=t.unitsDesc[r],f=si(u,n,i),f>=1&&e(f))break;return u}function oi(n,t){var i=p(n);return i==="week"&&typeof t=="object"&&t.days&&(i="day"),i}function si(n,t,i){return i!=null?i.diff(t,n,!0):u.isDuration(t)?t.as(n):t.end.diff(t.start,n,!0)}function hi(n,t,i){var r;return o(i)?(t-n)/i:(r=i.asMonths(),Math.abs(r)>=1&&e(r))?t.diff(n,"months",!0)/r:t.diff(n,"days",!0)/i.asDays()}function ci(n,t){var i,r;return o(n)||o(t)?n/t:(i=n.asMonths(),r=t.asMonths(),Math.abs(i)>=1&&e(i)&&Math.abs(r)>=1&&e(r))?i/r:n.asDays()/t.asDays()}function li(n,t){var i;return o(n)?u.duration(n*t):(i=n.asMonths(),Math.abs(i)>=1&&e(i))?u.duration({months:i*t}):u.duration({days:n.asDays()*t})}function o(n){return Boolean(n.hours()||n.minutes()||n.seconds()||n.milliseconds())}function ai(n){return Object.prototype.toString.call(n)==="[object Date]"||n instanceof Date}function vi(n){return typeof n=="string"&&/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(n)}function w(){for(var n,i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];return n=window.console,n&&n.log?n.log.apply(n,i):void 0}function yi(){for(var n,i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];return n=window.console,n&&n.warn?n.warn.apply(n,i):w.apply(null,i)}function k(n,t){var u={},i,r,e,o,f,s;if(t)for(i=0;i<t.length;i++){for(r=t[i],e=[],o=n.length-1;o>=0;o--)if(f=n[o][r],typeof f=="object")e.unshift(f);else if(f!==undefined){u[r]=f;break}e.length&&(u[r]=k(e))}for(i=n.length-1;i>=0;i--){s=n[i];for(r in s)r in u||(u[r]=s[r])}return u}function pi(n,t){for(var i in n)d(n,i)&&(t[i]=n[i])}function d(n,t){return b.call(n,t)}function wi(n,t,i){if(r.isFunction(n)&&(n=[n]),n){for(var u=void 0,f=void 0,u=0;u<n.length;u++)f=n[u].apply(t,i)||f;return f}}function bi(n,t){for(var r=0,i=0;i<n.length;)t(n[i])?(n.splice(i,1),r++):i++;return r}function ki(n,t){for(var r=0,i=0;i<n.length;)n[i]===t?(n.splice(i,1),r++):i++;return r}function di(n,t){var r=n.length,i;if(r==null||r!==t.length)return!1;for(i=0;i<r;i++)if(n[i]!==t[i])return!1;return!0}function gi(){for(var n,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];for(n=0;n<t.length;n++)if(t[n]!==undefined)return t[n]}function g(n){return(n+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;").replace(/\n/g,"<br>")}function nr(n){return n.replace(/&.*?;/g,"")}function tr(n){var t=[];return r.each(n,function(n,i){i!=null&&t.push(n+":"+i)}),t.join(";")}function ir(n){var t=[];return r.each(n,function(n,i){i!=null&&t.push(n+'="'+g(i)+'"')}),t.join(" ")}function rr(n){return n.charAt(0).toUpperCase()+n.slice(1)}function ur(n,t){return n-t}function e(n){return n%1==0}function fr(n,t){var i=n[t];return function(){return i.apply(n,arguments)}}function er(n,t,i){i===void 0&&(i=!1);var r,u,f,o,e,s=function(){var h=+new Date-o;h<t?r=setTimeout(s,t-h):(r=null,i||(e=n.apply(f,u),f=u=null))};return function(){f=this;u=arguments;o=+new Date;var h=i&&!r;return r||(r=setTimeout(s,t)),h&&(e=n.apply(f,u),f=u=null),e}}var u,r,s,b;Object.defineProperty(t,"__esModule",{value:!0});u=i(0);r=i(3);t.compensateScroll=nt;t.uncompensateScroll=tt;t.disableCursor=it;t.enableCursor=rt;t.distributeHeight=ut;t.undistributeHeight=c;t.matchCellWidths=ft;t.subtractInnerElHeight=et;t.getScrollParent=ot;t.getOuterRect=st;t.getClientRect=ht;t.getContentRect=ct;t.getScrollbarWidths=l;s=null;t.isPrimaryMouseButton=vt;t.getEvX=yt;t.getEvY=pt;t.getEvIsTouch=wt;t.preventSelection=bt;t.allowSelection=kt;t.preventDefault=h;t.intersectRects=dt;t.constrainPoint=gt;t.getRectCenter=ni;t.diffPoints=ti;t.parseFieldSpecs=ii;t.compareByFieldSpecs=ri;t.compareByFieldSpec=v;t.flexibleCompare=y;t.dayIDs=["sun","mon","tue","wed","thu","fri","sat"];t.unitsDesc=["year","month","week","day","hour","minute","second","millisecond"];t.diffDayTime=ui;t.diffDay=fi;t.diffByUnit=ei;t.computeGreatestUnit=p;t.computeDurationGreatestUnit=oi;t.divideRangeByDuration=hi;t.divideDurationByDuration=ci;t.multiplyDuration=li;t.durationHasTime=o;t.isNativeDate=ai;
102t.isTimeString=vi;t.log=w;t.warn=yi;b={}.hasOwnProperty;t.mergeProps=k;t.copyOwnProps=pi;t.hasOwnProp=d;t.applyAll=wi;t.removeMatching=bi;t.removeExact=ki;t.isArraysEqual=di;t.firstDefined=gi;t.htmlEscape=g;t.stripHtmlEntities=nr;t.cssToStr=tr;t.attrsToStr=ir;t.capitaliseFirstLetter=rr;t.compareNumbers=ur;t.isInt=e;t.proxy=fr;t.debounce=er},function(n,t,i){function e(n,t){return n.startMs-t.startMs}Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),u=i(11),f=function(){function n(n,t){this.isStart=!0;this.isEnd=!0;r.isMoment(n)&&(n=n.clone().stripZone());r.isMoment(t)&&(t=t.clone().stripZone());n&&(this.startMs=n.valueOf());t&&(this.endMs=t.valueOf())}return n.invertRanges=function(t,i){var o=[],r=i.startMs,f,u;for(t.sort(e),f=0;f<t.length;f++)u=t[f],u.startMs>r&&o.push(new n(r,u.startMs)),u.endMs>r&&(r=u.endMs);return r<i.endMs&&o.push(new n(r,i.endMs)),o},n.prototype.intersect=function(t){var i=this.startMs,r=this.endMs,u=null;return t.startMs!=null&&(i=i==null?t.startMs:Math.max(i,t.startMs)),t.endMs!=null&&(r=r==null?t.endMs:Math.min(r,t.endMs)),(i==null||r==null||i<r)&&(u=new n(i,r),u.isStart=this.isStart&&i===this.startMs,u.isEnd=this.isEnd&&r===this.endMs),u},n.prototype.intersectsWith=function(n){return(this.endMs==null||n.startMs==null||this.endMs>n.startMs)&&(this.startMs==null||n.endMs==null||this.startMs<n.endMs)},n.prototype.containsRange=function(n){return(this.startMs==null||n.startMs!=null&&n.startMs>=this.startMs)&&(this.endMs==null||n.endMs!=null&&n.endMs<=this.endMs)},n.prototype.containsDate=function(n){var t=n.valueOf();return(this.startMs==null||t>=this.startMs)&&(this.endMs==null||t<this.endMs)},n.prototype.constrainDate=function(n){var t=n.valueOf();return this.startMs!=null&&t<this.startMs&&(t=this.startMs),this.endMs!=null&&t>=this.endMs&&(t=this.endMs-1),t},n.prototype.equals=function(n){return this.startMs===n.startMs&&this.endMs===n.endMs},n.prototype.clone=function(){var t=new n(this.startMs,this.endMs);return t.isStart=this.isStart,t.isEnd=this.isEnd,t},n.prototype.getStart=function(){return this.startMs!=null?u.default.utc(this.startMs).stripZone():null},n.prototype.getEnd=function(){return this.endMs!=null?u.default.utc(this.endMs).stripZone():null},n.prototype.as=function(n){return r.utc(this.endMs).diff(r.utc(this.startMs),n,!0)},n}();t.default=f},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),e=i(3),r=i(52),o=i(35),s=i(36),u=function(n){function t(i){var r=n.call(this)||this;return r.calendar=i,r.className=[],r.uid=String(t.uuid++),r}return f.__extends(t,n),t.parse=function(n,t){var i=new this(t);return typeof n=="object"&&i.applyProps(n)?i:!1},t.normalizeId=function(n){return n?String(n):null},t.prototype.fetch=function(){},t.prototype.removeEventDefsById=function(){},t.prototype.removeAllEventDefs=function(){},t.prototype.getPrimitive=function(){},t.prototype.parseEventDefs=function(n){for(var i,r=[],t=0;t<n.length;t++)i=this.parseEventDef(n[t]),i&&r.push(i);return r},t.prototype.parseEventDef=function(n){var t=this.calendar.opt("eventDataTransform"),i=this.eventDataTransform;return t&&(n=t(n,this.calendar)),i&&(n=i(n,this.calendar)),s.default.parse(n,this)},t.prototype.applyManualStandardProps=function(n){return n.id!=null&&(this.id=t.normalizeId(n.id)),e.isArray(n.className)?this.className=n.className:typeof n.className=="string"&&(this.className=n.className.split(/\s+/)),!0},t.uuid=0,t.defineStandardProps=r.default.defineStandardProps,t.copyVerbatimStandardProps=r.default.copyVerbatimStandardProps,t}(o.default);t.default=u;r.default.mixInto(u);u.defineStandardProps({id:!1,className:!1,color:!0,backgroundColor:!0,borderColor:!0,textColor:!0,editable:!0,startEditable:!0,durationEditable:!0,rendering:!0,overlap:!0,constraint:!0,allDayDefault:!0,eventDataTransform:!0})},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(3),f=i(15),e=0,o=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.listenTo=function(n,t,i){if(typeof t=="object")for(var r in t)t.hasOwnProperty(r)&&this.listenTo(n,r,t[r]);else if(typeof t=="string")n.on(t+"."+this.getListenerNamespace(),u.proxy(i,this))},t.prototype.stopListeningTo=function(n,t){n.off((t||"")+"."+this.getListenerNamespace())},t.prototype.getListenerNamespace=function(){return this.listenerId==null&&(this.listenerId=e++),"_listener"+this.listenerId},t}(f.default);t.default=o}
102,,function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),e=i(37),o=i(53),r=i(16),u=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return f.__extends(t,n),t.prototype.buildInstances=function(){return[this.buildInstance()]},t.prototype.buildInstance=function(){return new o.default(this,this.dateProfile)},t.prototype.isAllDay=function(){return this.dateProfile.isAllDay()},t.prototype.clone=function(){var t=n.prototype.clone.call(this);return t.dateProfile=this.dateProfile,t},t.prototype.rezone=function(){var n=this.source.calendar,t=this.dateProfile;this.dateProfile=new r.default(n.moment(t.start),t.end?n.moment(t.end):null,n)},t.prototype.applyManualStandardProps=function(t){var u=n.prototype.applyManualStandardProps.call(this,t),i=r.default.parse(t,this.source);return i?(this.dateProfile=i,t.date!=null&&(this.miscProps.date=t.date),u):!1},t}(e.default);t.default=u;u.defineStandardProps({start:!1,date:!1,end:!1,allDay:!1})},,function(n,t,i){function v(n,t){return f.format.call(n,t)}function s(n,t,i){t===void 0&&(t=!1);i===void 0&&(i=!1);var u=n[0],s=n.length===1&&typeof u=="string",e,o,v,f;return r.isMoment(u)||c.isNativeDate(u)||u===undefined?f=r.apply(null,n):(e=!1,o=!1,s?l.test(u)?(u+="-01",n=[u],e=!0,o=!0):(v=a.exec(u))&&(e=!v[5],o=!0):h.isArray(u)&&(o=!0),f=t||e?r.utc.apply(r,n):r.apply(null,n),e?(f._ambigTime=!0,f._ambigZone=!0):i&&(o?f._ambigZone=!0:s&&f.utcOffset(u))),f._fullCalendar=!0,f}var f,e,o;Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),h=i(3),c=i(4),l=/^\s*\d{4}-\d\d$/,a=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/,u=r.fn;t.newMomentProto=u;f=h.extend({},u);t.oldMomentProto=f;e=r.momentProperties;e.push("_fullCalendar");e.push("_ambigTime");e.push("_ambigZone");t.oldMomentFormat=v;o=function(){return s(arguments)};t.default=o;o.utc=function(){var n=s(arguments,!0);return n.hasTime()&&n.utc(),n};o.parseZone=function(){return s(arguments,!0,!0)};u.week=u.weeks=function(n){var t=this._locale._fullCalendar_weekCalc;return n==null&&typeof t=="function"?t(this):t==="ISO"?f.isoWeek.apply(this,arguments):f.week.apply(this,arguments)};u.time=function(n){if(!this._fullCalendar)return f.time.apply(this,arguments);if(n==null)return r.duration({hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()});this._ambigTime=!1;r.isDuration(n)||r.isMoment(n)||(n=r.duration(n));var t=0;return r.isDuration(n)&&(t=Math.floor(n.asDays())*24),this.hours(t+n.hours()).minutes(n.minutes()).seconds(n.seconds()).milliseconds(n.milliseconds())};u.stripTime=function(){return this._ambigTime||(this.utc(!0),this.set({hours:0,minutes:0,seconds:0,ms:0}),this._ambigTime=!0,this._ambigZone=!0),this};u.hasTime=function(){return!this._ambigTime};u.stripZone=function(){var n;return this._ambigZone||(n=this._ambigTime,this.utc(!0),this._ambigTime=n||!1,this._ambigZone=!0),this};u.hasZone=function(){return!this._ambigZone};u.local=function(n){return f.local.call(this,this._ambigZone||n),this._ambigTime=!1,this._ambigZone=!1,this};u.utc=function(n){return f.utc.call(this,n),this._ambigTime=!1,this._ambigZone=!1,this};u.utcOffset=function(n){return n!=null&&(this._ambigTime=!1,this._ambigZone=!1),f.utcOffset.apply(this,arguments)}},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n,t){this.isAllDay=!1;this.unzonedRange=n;this.isAllDay=t}return n.prototype.toLegacy=function(n){return{start:n.msToMoment(this.unzonedRange.startMs,this.isAllDay),end:n.msToMoment(this.unzonedRange.endMs,this.isAllDay)}},n}();t.default=i},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),r=i(3),f=i(15),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t.prototype.on=function(n,t){r(this).on(n,this._prepareIntercept(t));return this},t.prototype.one=function(n,t){r(this).one(n,this._prepareIntercept(t));return this},t.prototype._prepareIntercept=function(n){var t=function(t,i){return n.apply(i.context||this,i.args||[])};return n.guid||(n.guid=r.guid++),t.guid=n.guid,t},t.prototype.off=function(n,t){return r(this).off(n,t),this},t.prototype.trigger=function(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return r(this).triggerHandler(n,{args:i}),this},t.prototype.triggerWith=function(n,t,i){return r(this).triggerHandler(n,{context:t,args:i}),this},t.prototype.hasHandlers=function(n){var t=r._data(this,"events");return t&&t[n]&&t[n].length>0},t}(f.default);t.default=e}
102,function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n){this.view=n._getView();this.component=n}return n.prototype.opt=function(n){return this.view.opt(n)},n.prototype.end=function(){},n}();t.default=i},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.mixInto=function(n){var t=this;Object.getOwnPropertyNames(this.prototype).forEach(function(i){n.prototype[i]||(n.prototype[i]=t.prototype[i])})},n.mixOver=function(n){var t=this;Object.getOwnPropertyNames(this.prototype).forEach(function(i){n.prototype[i]=t.prototype[i]})},n}();t.default=i},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(5),u=function(){function n(n,t,i){this.start=n;this.end=t||null;this.unzonedRange=this.buildUnzonedRange(i)}return n.parse=function(t,i){var o=t.start||t.date,s=t.end;if(!o)return!1;var f=i.calendar,u=f.moment(o),r=s?f.moment(s):null,e=t.allDay,h=f.opt("forceEventDuration");return u.isValid()?(e==null&&(e=i.allDayDefault,e==null&&(e=f.opt("allDayDefault"))),e===!0?(u.stripTime(),r&&r.stripTime()):e===!1&&(u.hasTime()||u.time(0),r&&!r.hasTime()&&r.time(0)),!r||r.isValid()&&r.isAfter(u)||(r=null),!r&&h&&(r=f.getDefaultEventEnd(!u.hasTime(),u)),new n(u,r,f)):!1},n.isStandardProp=function(n){return n==="start"||n==="date"||n==="end"||n==="allDay"},n.prototype.isAllDay=function(){return!(this.start.hasTime()||this.end&&this.end.hasTime())},n.prototype.buildUnzonedRange=function(n){var t=this.start.clone().stripZone().valueOf(),i=this.getEnd(n).stripZone().valueOf();return new r.default(t,i)},n.prototype.getEnd=function(n){return this.end?this.end.clone():n.getDefaultEventEnd(this.isAllDay(),this.start)},n}();t.default=u},function(n,t,i){function u(n,t){return!n&&!t?!0:n&&t?n.component===t.component&&f(n,t)&&f(t,n):!1}function f(n,t){for(var i in n)if(!/^(component|left|right|top|bottom)$/.test(i)&&n[i]!==t[i])return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0});var e=i(2),r=i(4),o=i(59),s=function(n){function t(t,i){var r=n.call(this,i)||this;return r.component=t,r}return e.__extends(t,n),t.prototype.handleInteractionStart=function(t){var f=this.subjectEl,u,e,i;this.component.hitsNeeded();this.computeScrollBounds();t?(e={left:r.getEvX(t),top:r.getEvY(t)},i=e,f&&(u=r.getOuterRect(f),i=r.constrainPoint(i,u)),this.origHit=this.queryHit(i.left,i.top),f&&this.options.subjectCenter&&(this.origHit&&(u=r.intersectRects(this.origHit,u)||u),i=r.getRectCenter(u)),this.coordAdjust=r.diffPoints(i,e)):(this.origHit=null,this.coordAdjust=null);n.prototype.handleInteractionStart.call(this,t)},t.prototype.handleDragStart=function(t){var i;n.prototype.handleDragStart.call(this,t);i=this.queryHit(r.getEvX(t),r.getEvY(t));i&&this.handleHitOver(i)},t.prototype.handleDrag=function(t,i,f){var e;n.prototype.handleDrag.call(this,t,i,f);e=this.queryHit(r.getEvX(f),r.getEvY(f));u(e,this.hit)||(this.hit&&this.handleHitOut(),e&&this.handleHitOver(e))},t.prototype.handleDragEnd=function(t){this.handleHitDone();n.prototype.handleDragEnd.call(this,t)},t.prototype.handleHitOver=function(n){var t=u(n,this.origHit);this.hit=n;this.trigger("hitOver",this.hit,t,this.origHit)},t.prototype.handleHitOut=function(){this.hit&&(this.trigger("hitOut",this.hit),this.handleHitDone(),this.hit=null)},t.prototype.handleHitDone=function(){this.hit&&this.trigger("hitDone",this.hit)},t.prototype.handleInteractionEnd=function(t,i){n.prototype.handleInteractionEnd.call(this,t,i);this.origHit=null;this.hit=null;this.component.hitsNotNeeded()},t.prototype.handleScrollEnd=function(){n.prototype.handleScrollEnd.call(this);this.isDragging&&(this.component.releaseHits(),this.component.prepareHits())},t.prototype.queryHit=function(n,t){return this.coordAdjust&&(n+=this.coordAdjust.left,t+=this.coordAdjust.top),this.component.queryHit(n,t)},t}(o.default);t.default=s},function(n,t,i){var r,e,f,u,h,c,l,a,v,y,p,w,b,k,d,g,nt,tt,it,rt,ut,ft,et,ot,st,ht,o,ct,lt,at,vt,yt,pt,wt,bt,kt,dt,gt,ni,ti,ii,ri,ui,fi,ei,oi,si,hi,ci,li,ai,s,vi,yi,pi,wi,bi,ki,di,gi,nr,tr,ir,rr,ur,fr,er,or,sr,hr,cr,lr,ar,vr,yr,pr,wr,br,kr,dr,gr;
102Object.defineProperty(t,"__esModule",{value:!0});t.version="3.10.2";t.internalApiVersion=12;r=i(4);t.applyAll=r.applyAll;t.debounce=r.debounce;t.isInt=r.isInt;t.htmlEscape=r.htmlEscape;t.cssToStr=r.cssToStr;t.proxy=r.proxy;t.capitaliseFirstLetter=r.capitaliseFirstLetter;t.getOuterRect=r.getOuterRect;t.getClientRect=r.getClientRect;t.getContentRect=r.getContentRect;t.getScrollbarWidths=r.getScrollbarWidths;t.preventDefault=r.preventDefault;t.parseFieldSpecs=r.parseFieldSpecs;t.compareByFieldSpecs=r.compareByFieldSpecs;t.compareByFieldSpec=r.compareByFieldSpec;t.flexibleCompare=r.flexibleCompare;t.computeGreatestUnit=r.computeGreatestUnit;t.divideRangeByDuration=r.divideRangeByDuration;t.divideDurationByDuration=r.divideDurationByDuration;t.multiplyDuration=r.multiplyDuration;t.durationHasTime=r.durationHasTime;t.log=r.log;t.warn=r.warn;t.removeExact=r.removeExact;t.intersectRects=r.intersectRects;t.allowSelection=r.allowSelection;t.attrsToStr=r.attrsToStr;t.compareNumbers=r.compareNumbers;t.compensateScroll=r.compensateScroll;t.computeDurationGreatestUnit=r.computeDurationGreatestUnit;t.constrainPoint=r.constrainPoint;t.copyOwnProps=r.copyOwnProps;t.diffByUnit=r.diffByUnit;t.diffDay=r.diffDay;t.diffDayTime=r.diffDayTime;t.diffPoints=r.diffPoints;t.disableCursor=r.disableCursor;t.distributeHeight=r.distributeHeight;t.enableCursor=r.enableCursor;t.firstDefined=r.firstDefined;t.getEvIsTouch=r.getEvIsTouch;t.getEvX=r.getEvX;t.getEvY=r.getEvY;t.getRectCenter=r.getRectCenter;t.getScrollParent=r.getScrollParent;t.hasOwnProp=r.hasOwnProp;t.isArraysEqual=r.isArraysEqual;t.isNativeDate=r.isNativeDate;t.isPrimaryMouseButton=r.isPrimaryMouseButton;t.isTimeString=r.isTimeString;t.matchCellWidths=r.matchCellWidths;t.mergeProps=r.mergeProps;t.preventSelection=r.preventSelection;t.removeMatching=r.removeMatching;t.stripHtmlEntities=r.stripHtmlEntities;t.subtractInnerElHeight=r.subtractInnerElHeight;t.uncompensateScroll=r.uncompensateScroll;t.undistributeHeight=r.undistributeHeight;t.dayIDs=r.dayIDs;t.unitsDesc=r.unitsDesc;e=i(49);t.formatDate=e.formatDate;t.formatRange=e.formatRange;t.queryMostGranularFormatUnit=e.queryMostGranularFormatUnit;f=i(32);t.datepickerLocale=f.datepickerLocale;t.locale=f.locale;t.getMomentLocaleData=f.getMomentLocaleData;t.populateInstanceComputableOptions=f.populateInstanceComputableOptions;u=i(19);t.eventDefsToEventInstances=u.eventDefsToEventInstances;t.eventFootprintToComponentFootprint=u.eventFootprintToComponentFootprint;t.eventInstanceToEventRange=u.eventInstanceToEventRange;t.eventInstanceToUnzonedRange=u.eventInstanceToUnzonedRange;t.eventRangeToEventFootprint=u.eventRangeToEventFootprint;h=i(11);t.moment=h.default;c=i(13);t.EmitterMixin=c.default;l=i(7);t.ListenerMixin=l.default;a=i(51);t.Model=a.default;v=i(217);t.Constraints=v.default;y=i(55);t.DateProfileGenerator=y.default;p=i(5);t.UnzonedRange=p.default;w=i(12);t.ComponentFootprint=w.default;b=i(218);t.BusinessHourGenerator=b.default;k=i(219);t.EventPeriod=k.default;d=i(220);t.EventManager=d.default;g=i(37);t.EventDef=g.default;nt=i(39);t.EventDefMutation=nt.default;tt=i(36);t.EventDefParser=tt.default;it=i(53);t.EventInstance=it.default;rt=i(50);t.EventRange=rt.default;ut=i(54);t.RecurringEventDef=ut.default;ft=i(9);t.SingleEventDef=ft.default;et=i(40);t.EventDefDateMutation=et.default;ot=i(16);t.EventDateProfile=ot.default;st=i(38);t.EventSourceParser=st.default;ht=i(6);t.EventSource=ht.default;o=i(57);t.defineThemeSystem=o.defineThemeSystem;t.getThemeSystemClass=o.getThemeSystemClass;ct=i(20);t.EventInstanceGroup=ct.default;lt=i(56);t.ArrayEventSource=lt.default;at=i(223);t.FuncEventSource=at.default;vt=i(224);t.JsonFeedEventSource=vt.default;yt=i(34);t.EventFootprint=yt.default;pt=i(35);t.Class=pt.default;wt=i(15);t.Mixin=wt.default;bt=i(58);t.CoordCache=bt.default;kt=i(225);t.Iterator=kt.default;dt=i(59);t.DragListener=dt.default;gt=i(17);t.HitDragListener=gt.default;ni=i(226);t.MouseFollower=ni.default;ti=i(52);t.ParsableModelMixin=ti.default;ii=i(227);t.Popover=ii.default;ri=i(21);t.Promise=ri.default;ui=i(228);t.TaskQueue=ui.default;fi=i(229);t.RenderQueue=fi.default;ei=i(41);t.Scroller=ei.default;oi=i(22);t.Theme=oi.default;si=i(230);t.Component=si.default;hi=i(231);t.DateComponent=hi.default;ci=i(42);t.InteractiveDateComponent=ci.default;li=i(232);t.Calendar=li.default;ai=i(43);t.View=ai.default;s=i(24);t.defineView=s.defineView;t.getViewConfig=s.getViewConfig;vi=i(60);t.DayTableMixin=vi.default;yi=i(61);t.BusinessHourRenderer=yi.default;pi=i(44);t.EventRenderer=pi.default;wi=i(62);t.FillRenderer=wi.default;bi=i(63);t.HelperRenderer=bi.default;ki=i(233);t.ExternalDropping=ki.default;di=i(234);t.EventResizing=di.default;gi=i(64);t.EventPointing=gi.default;nr=i(235);t.EventDragging=nr.default;tr=i(236);t.DateSelecting=tr.default;ir=i(237);t.DateClicking=ir.default;rr=i(14);t.Interaction=rr.default;ur=i(65);t.StandardInteractionsMixin=ur.default;fr=i(238);t.AgendaView=fr.default;er=i(239);t.TimeGrid=er.default;or=i(240);t.TimeGridEventRenderer=or.default;sr=i(242);t.TimeGridFillRenderer=sr.default;hr=i(241);t.TimeGridHelperRenderer=hr.default;cr=i(66);t.DayGrid=cr.default;lr=i(243);t.DayGridEventRenderer=lr.default;ar=i(245);t.DayGridFillRenderer=ar.default;vr=i(244);t.DayGridHelperRenderer=vr.default;yr=i(67);t.BasicView=yr.default;pr=i(68);t.BasicViewDateProfileGenerator=pr.default;wr=i(246);t.MonthView=wr.default;br=i(247);t.MonthViewDateProfileGenerator=br.default;kr=i(248);t.ListView=kr.default;dr=i(250);t.ListEventPointing=dr.default;gr=i(249);t.ListEventRenderer=gr.default},function(n,t,i){function e(n,t){for(var r=[],i=0;i<n.length;i++)r.push.apply(r,n[i].buildInstances(t));return r}function o(n){return new r.default(n.dateProfile.unzonedRange,n.def,n)}function s(n){return new u.default(new f.default(n.unzonedRange,n.eventDef.isAllDay()),n.eventDef,n.eventInstance)}function h(n){return n.dateProfile.unzonedRange}function c(n){return n.componentFootprint}
102Object.defineProperty(t,"__esModule",{value:!0});var r=i(50),u=i(34),f=i(12);t.eventDefsToEventInstances=e;t.eventInstanceToEventRange=o;t.eventRangeToEventFootprint=s;t.eventInstanceToUnzonedRange=h;t.eventFootprintToComponentFootprint=c},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var f=i(5),r=i(19),u=i(50),e=function(){function n(n){this.eventInstances=n||[]}return n.prototype.getAllEventRanges=function(n){return n?this.sliceNormalRenderRanges(n):this.eventInstances.map(r.eventInstanceToEventRange)},n.prototype.sliceRenderRanges=function(n){return this.isInverse()?this.sliceInverseRenderRanges(n):this.sliceNormalRenderRanges(n)},n.prototype.sliceNormalRenderRanges=function(n){for(var f=this.eventInstances,i,r,e=[],t=0;t<f.length;t++)i=f[t],r=i.dateProfile.unzonedRange.intersect(n),r&&e.push(new u.default(r,i.def,i));return e},n.prototype.sliceInverseRenderRanges=function(n){var t=this.eventInstances.map(r.eventInstanceToUnzonedRange),i=this.getEventDef();return t=f.default.invertRanges(t,n),t.map(function(n){return new u.default(n,i)})},n.prototype.isInverse=function(){return this.getEventDef().hasInverseRendering()},n.prototype.getEventDef=function(){return this.explicitEventDef||this.eventInstances[0].def},n}();t.default=e},function(n,t,i){function f(n,t){n.then=function(i){return typeof i=="function"?u.resolve(i(t)):n}}function e(n){n.then=function(t,i){return typeof i=="function"&&i(),n}}Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),u={construct:function(n){var t=r.Deferred(),i=t.promise();return typeof n=="function"&&n(function(n){t.resolve(n);f(i,n)},function(){t.reject();e(i)}),i},resolve:function(n){var i=r.Deferred().resolve(n),t=i.promise();return f(t,n),t},reject:function(){var t=r.Deferred().reject(),n=t.promise();return e(n),n}};t.default=u},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(3),r=function(){function n(n){this.optionsManager=n;this.processIconOverride()}return n.prototype.processIconOverride=function(){this.iconOverrideOption&&this.setIconOverride(this.optionsManager.get(this.iconOverrideOption))},n.prototype.setIconOverride=function(n){var t,i;if(u.isPlainObject(n)){t=u.extend({},this.iconClasses);for(i in n)t[i]=this.applyIconOverridePrefix(n[i]);this.iconClasses=t}else n===!1&&(this.iconClasses={})},n.prototype.applyIconOverridePrefix=function(n){var t=this.iconOverridePrefix;return t&&n.indexOf(t)!==0&&(n=t+n),n},n.prototype.getClass=function(n){return this.classes[n]||""},n.prototype.getIconClass=function(n){var t=this.iconClasses[n];return t?this.baseIconClass+" "+t:""},n.prototype.getCustomButtonIconClass=function(n){var t;return this.iconOverrideCustomButtonOption&&(t=n[this.iconOverrideCustomButtonOption],t)?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},n}();t.default=r;r.prototype.classes={};r.prototype.iconClasses={};r.prototype.baseIconClass="";r.prototype.iconOverridePrefix=""},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(3),o=i(18),s=i(13),h=i(7);o.touchMouseIgnoreWait=500;var r=null,f=0,e=function(){function n(){this.isTouching=!1;this.mouseIgnoreDepth=0}return n.get=function(){return r||(r=new n,r.bind()),r},n.needed=function(){n.get();f++},n.unneeded=function(){f--;f||(r.unbind(),r=null)},n.prototype.bind=function(){var n=this;this.listenTo(u(document),{touchstart:this.handleTouchStart,touchcancel:this.handleTouchCancel,touchend:this.handleTouchEnd,mousedown:this.handleMouseDown,mousemove:this.handleMouseMove,mouseup:this.handleMouseUp,click:this.handleClick,selectstart:this.handleSelectStart,contextmenu:this.handleContextMenu});window.addEventListener("touchmove",this.handleTouchMoveProxy=function(t){n.handleTouchMove(u.Event(t))},{passive:!1});window.addEventListener("scroll",this.handleScrollProxy=function(t){n.handleScroll(u.Event(t))},!0)},n.prototype.unbind=function(){this.stopListeningTo(u(document));window.removeEventListener("touchmove",this.handleTouchMoveProxy,{passive:!1});window.removeEventListener("scroll",this.handleScrollProxy,!0)},n.prototype.handleTouchStart=function(n){this.stopTouch(n,!0);this.isTouching=!0;this.trigger("touchstart",n)},n.prototype.handleTouchMove=function(n){this.isTouching&&this.trigger("touchmove",n)},n.prototype.handleTouchCancel=function(n){this.isTouching&&(this.trigger("touchcancel",n),this.stopTouch(n))},n.prototype.handleTouchEnd=function(n){this.stopTouch(n)},n.prototype.handleMouseDown=function(n){this.shouldIgnoreMouse()||this.trigger("mousedown",n)},n.prototype.handleMouseMove=function(n){this.shouldIgnoreMouse()||this.trigger("mousemove",n)},n.prototype.handleMouseUp=function(n){this.shouldIgnoreMouse()||this.trigger("mouseup",n)},n.prototype.handleClick=function(n){this.shouldIgnoreMouse()||this.trigger("click",n)},n.prototype.handleSelectStart=function(n){this.trigger("selectstart",n)},n.prototype.handleContextMenu=function(n){this.trigger("contextmenu",n)},n.prototype.handleScroll=function(n){this.trigger("scroll",n)},n.prototype.stopTouch=function(n,t){t===void 0&&(t=!1);this.isTouching&&(this.isTouching=!1,this.trigger("touchend",n),t||this.startTouchMouseIgnore())},n.prototype.startTouchMouseIgnore=function(){var t=this,n=o.touchMouseIgnoreWait;n&&(this.mouseIgnoreDepth++,setTimeout(function(){t.mouseIgnoreDepth--},n))},n.prototype.shouldIgnoreMouse=function(){return this.isTouching||Boolean(this.mouseIgnoreDepth)},n}();t.default=e;h.default.mixInto(e);s.default.mixInto(e)},function(n,t,i){function u(n,i){t.viewHash[n]=i}function f(n){return t.viewHash[n]}
102Object.defineProperty(t,"__esModule",{value:!0});var r=i(18);t.viewHash={};r.views=t.viewHash;t.defineView=u;t.getViewConfig=f},,,,,,,,function(n,t,i){function v(n){r.each(a,function(t,i){n[t]==null&&(n[t]=i(n))})}function y(n,i,u){var e=t.localeOptionHash[n]||(t.localeOptionHash[n]={}),f;e.isRTL=u.isRTL;e.weekNumberTitle=u.weekHeader;r.each(c,function(n,t){e[n]=t(u)});f=r.datepicker;f&&(f.regional[i]=f.regional[n]=u,f.regional.en=f.regional[""],f.setDefaults(u))}function o(n,i){var f,e;f=t.localeOptionHash[n]||(t.localeOptionHash[n]={});i&&(f=t.localeOptionHash[n]=u.mergeOptions([f,i]));e=s(n);r.each(l,function(n,t){f[n]==null&&(f[n]=t(e,f))});u.globalDefaults.locale=n}function s(n){return e.localeData(n)||e.localeData("en")}Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),e=i(0),h=i(18),u=i(33),f=i(4);t.localeOptionHash={};h.locales=t.localeOptionHash;var c={buttonText:function(n){return{prev:f.stripHtmlEntities(n.prevText),next:f.stripHtmlEntities(n.nextText),today:f.stripHtmlEntities(n.currentText)}},monthYearFormat:function(n){return n.showMonthAfterYear?"YYYY["+n.yearSuffix+"] MMMM":"MMMM YYYY["+n.yearSuffix+"]"}},l={dayOfMonthFormat:function(n,t){var i=n.longDateFormat("l");return i=i.replace(/^Y+[^\w\s]*|[^\w\s]*Y+$/g,""),t.isRTL?i+=" ddd":i="ddd "+i,i},mediumTimeFormat:function(n){return n.longDateFormat("LT").replace(/\s*a$/i,"a")},smallTimeFormat:function(n){return n.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"a")},extraSmallTimeFormat:function(n){return n.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"t")},hourFormat:function(n){return n.longDateFormat("LT").replace(":mm","").replace(/(\Wmm)$/,"").replace(/\s*a$/i,"a")},noMeridiemTimeFormat:function(n){return n.longDateFormat("LT").replace(/\s*a$/i,"")}},a={smallDayDateFormat:function(n){return n.isRTL?"D dd":"dd D"},weekFormat:function(n){return n.isRTL?"w[ "+n.weekNumberTitle+"]":"["+n.weekNumberTitle+" ]w"},smallWeekFormat:function(n){return n.isRTL?"w["+n.weekNumberTitle+"]":"["+n.weekNumberTitle+"]w"}};t.populateInstanceComputableOptions=v;t.datepickerLocale=y;t.locale=o;t.getMomentLocaleData=s;o("en",u.englishDefaults)},function(n,t,i){function f(n){return r.mergeProps(n,u)}var r,u;Object.defineProperty(t,"__esModule",{value:!0});r=i(4);t.globalDefaults={titleRangeSeparator:" – ",monthYearFormat:"MMMM YYYY",defaultTimedEventDuration:"02:00:00",defaultAllDayEventDuration:{days:1},forceEventDuration:!1,nextDayThreshold:"09:00:00",columnHeader:!0,defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberTitle:"W",weekNumberCalculation:"local",scrollTime:"06:00:00",minTime:"00:00:00",maxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timezoneParam:"timezone",timezone:!1,locale:null,isRTL:!1,buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day"},allDayText:"all-day",agendaEventMinHeight:0,theme:!1,dragOpacity:.75,dragRevertDuration:500,dragScroll:!0,unselectAuto:!0,dropAccept:"*",eventOrder:"title",eventLimit:!1,eventLimitText:"more",eventLimitClick:"popover",dayPopoverFormat:"LL",handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3};t.englishDefaults={dayPopoverFormat:"dddd, MMMM D"};t.rtlDefaults={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"right-single-arrow",next:"left-single-arrow",prevYear:"right-double-arrow",nextYear:"left-double-arrow"},themeButtonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w",nextYear:"seek-prev",prevYear:"seek-next"}};u=["header","footer","buttonText","buttonIcons","themeButtonIcons"];t.mergeOptions=f},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n,t,i){this.componentFootprint=n;this.eventDef=t;i&&(this.eventInstance=i)}return n.prototype.getEventLegacy=function(){return(this.eventInstance||this.eventDef).toLegacy()},n}();t.default=i}
102,function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),r=i(4),f=function(){function n(){}return n.extend=function(n){var t=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t}(this);return r.copyOwnProps(n,t.prototype),t},n.mixin=function(n){r.copyOwnProps(n,this.prototype)},n}();t.default=f},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),u=i(4),f=i(9),e=i(54);t.default={parse:function(n,t){return u.isTimeString(n.start)||r.isDuration(n.start)||u.isTimeString(n.end)||r.isDuration(n.end)?e.default.parse(n,t):f.default.parse(n,t)}}},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),u=i(52),f=function(){function n(n){this.source=n;this.className=[];this.miscProps={}}return n.parse=function(n,t){var i=new this(t);return i.applyProps(n)?i:!1},n.normalizeId=function(n){return String(n)},n.generateId=function(){return"_fc"+n.uuid++},n.prototype.clone=function(){var t=new this.constructor(this.source);return t.id=this.id,t.rawId=this.rawId,t.uid=this.uid,n.copyVerbatimStandardProps(this,t),t.className=this.className.slice(),t.miscProps=r.extend({},this.miscProps),t},n.prototype.hasInverseRendering=function(){return this.getRendering()==="inverse-background"},n.prototype.hasBgRendering=function(){var n=this.getRendering();return n==="inverse-background"||n==="background"},n.prototype.getRendering=function(){return this.rendering!=null?this.rendering:this.source.rendering},n.prototype.getConstraint=function(){return this.constraint!=null?this.constraint:this.source.constraint!=null?this.source.constraint:this.source.calendar.opt("eventConstraint")},n.prototype.getOverlap=function(){return this.overlap!=null?this.overlap:this.source.overlap!=null?this.source.overlap:this.source.calendar.opt("eventOverlap")},n.prototype.isStartExplicitlyEditable=function(){return this.startEditable!=null?this.startEditable:this.source.startEditable},n.prototype.isDurationExplicitlyEditable=function(){return this.durationEditable!=null?this.durationEditable:this.source.durationEditable},n.prototype.isExplicitlyEditable=function(){return this.editable!=null?this.editable:this.source.editable},n.prototype.toLegacy=function(){var t=r.extend({},this.miscProps);return t._id=this.uid,t.source=this.source,t.className=this.className.slice(),t.allDay=this.isAllDay(),this.rawId!=null&&(t.id=this.rawId),n.copyVerbatimStandardProps(this,t),t},n.prototype.applyManualStandardProps=function(t){return this.id=t.id!=null?n.normalizeId(this.rawId=t.id):n.generateId(),this.uid=t._id!=null?String(t._id):n.generateId(),r.isArray(t.className)&&(this.className=t.className),typeof t.className=="string"&&(this.className=t.className.split(/\s+/)),!0},n.prototype.applyMiscProps=function(n){r.extend(this.miscProps,n)},n.uuid=0,n.defineStandardProps=u.default.defineStandardProps,n.copyVerbatimStandardProps=u.default.copyVerbatimStandardProps,n}();t.default=f;u.default.mixInto(f);f.defineStandardProps({_id:!1,id:!1,className:!1,source:!1,title:!0,url:!0,rendering:!0,constraint:!0,overlap:!0,editable:!0,startEditable:!0,durationEditable:!0,color:!0,backgroundColor:!0,borderColor:!0,textColor:!0})},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={sourceClasses:[],registerClass:function(n){this.sourceClasses.unshift(n)},parse:function(n,t){for(var u=this.sourceClasses,r,i=0;i<u.length;i++)if(r=u[i].parse(n,t),r)return r}}},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var f=i(4),r=i(16),u=i(37),e=i(40),o=i(9),s=function(){function n(){}return n.createFromRawProps=function(t,i,o){var l=t.def,y={},c={},p={},w={},b=null,k=null,s,a,v,h;for(s in i)r.default.isStandardProp(s)?y[s]=i[s]:l.isStandardProp(s)?c[s]=i[s]:l.miscProps[s]!==i[s]&&(p[s]=i[s]);return a=r.default.parse(y,l.source),a&&(v=e.default.createFromDiff(t.dateProfile,a,o)),c.id!==l.id&&(b=c.id),f.isArraysEqual(c.className,l.className)||(k=c.className),u.default.copyVerbatimStandardProps(c,w),h=new n,h.eventDefId=b,h.className=k,h.verbatimStandardProps=w,h.miscProps=p,v&&(h.dateMutation=v),h},n.prototype.mutateSingle=function(n){var t;return this.dateMutation&&(t=n.dateProfile,n.dateProfile=this.dateMutation.buildNewDateProfile(t,n.source.calendar)),this.eventDefId!=null&&(n.id=u.default.normalizeId(n.rawId=this.eventDefId)),this.className&&(n.className=this.className),this.verbatimStandardProps&&o.default.copyVerbatimStandardProps(this.verbatimStandardProps,n),this.miscProps&&n.applyMiscProps(this.miscProps),t?function(){n.dateProfile=t}:function(){}},n.prototype.setDateMutation=function(n){this.dateMutation=n&&!n.isEmpty()?n:null},n.prototype.isEmpty=function(){return!this.dateMutation},n}();t.default=s}
102,function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(4),u=i(16),f=function(){function n(){this.clearEnd=!1;this.forceTimed=!1;this.forceAllDay=!1}return n.createFromDiff=function(t,i,u){function h(n,t){return u?r.diffByUnit(n,t,u):i.isAllDay()?r.diffDay(n,t):r.diffDayTime(n,t)}var c=t.end&&!i.end,l=t.isAllDay()&&!i.isAllDay(),a=!t.isAllDay()&&i.isAllDay(),e,o,s,f;return e=h(i.start,t.start),i.end&&(o=h(i.unzonedRange.getEnd(),t.unzonedRange.getEnd()),s=o.subtract(e)),f=new n,f.clearEnd=c,f.forceTimed=l,f.forceAllDay=a,f.setDateDelta(e),f.setEndDelta(s),f},n.prototype.buildNewDateProfile=function(n,t){var r=n.start.clone(),i=null,f=!1;return n.end&&!this.clearEnd?i=n.end.clone():this.endDelta&&!i&&(i=t.getDefaultEventEnd(n.isAllDay(),r)),this.forceTimed?(f=!0,r.hasTime()||r.time(0),i&&!i.hasTime()&&i.time(0)):this.forceAllDay&&(r.hasTime()&&r.stripTime(),i&&i.hasTime()&&i.stripTime()),this.dateDelta&&(f=!0,r.add(this.dateDelta),i&&i.add(this.dateDelta)),this.endDelta&&(f=!0,i.add(this.endDelta)),this.startDelta&&(f=!0,r.add(this.startDelta)),f&&(r=t.applyTimezone(r),i&&(i=t.applyTimezone(i))),!i&&t.opt("forceEventDuration")&&(i=t.getDefaultEventEnd(n.isAllDay(),r)),new u.default(r,i,t)},n.prototype.setDateDelta=function(n){this.dateDelta=n&&n.valueOf()?n:null},n.prototype.setStartDelta=function(n){this.startDelta=n&&n.valueOf()?n:null},n.prototype.setEndDelta=function(n){this.endDelta=n&&n.valueOf()?n:null},n.prototype.isEmpty=function(){return!this.clearEnd&&!this.forceTimed&&!this.forceAllDay&&!this.dateDelta&&!this.startDelta&&!this.endDelta},n}();t.default=f},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(3),f=i(4),e=i(35),o=function(n){function t(t){var i=n.call(this)||this;return t=t||{},i.overflowX=t.overflowX||t.overflow||"auto",i.overflowY=t.overflowY||t.overflow||"auto",i}return r.__extends(t,n),t.prototype.render=function(){this.el=this.renderEl();this.applyOverflow()},t.prototype.renderEl=function(){return this.scrollEl=u('<div class="fc-scroller"><\/div>')},t.prototype.clear=function(){this.setHeight("auto");this.applyOverflow()},t.prototype.destroy=function(){this.el.remove()},t.prototype.applyOverflow=function(){this.scrollEl.css({"overflow-x":this.overflowX,"overflow-y":this.overflowY})},t.prototype.lockOverflow=function(n){var t=this.overflowX,i=this.overflowY;n=n||this.getScrollbarWidths();t==="auto"&&(t=n.top||n.bottom||this.scrollEl[0].scrollWidth-1>this.scrollEl[0].clientWidth?"scroll":"hidden");i==="auto"&&(i=n.left||n.right||this.scrollEl[0].scrollHeight-1>this.scrollEl[0].clientHeight?"scroll":"hidden");this.scrollEl.css({"overflow-x":t,"overflow-y":i})},t.prototype.setHeight=function(n){this.scrollEl.height(n)},t.prototype.getScrollTop=function(){return this.scrollEl.scrollTop()},t.prototype.setScrollTop=function(n){this.scrollEl.scrollTop(n)},t.prototype.getClientWidth=function(){return this.scrollEl[0].clientWidth},t.prototype.getClientHeight=function(){return this.scrollEl[0].clientHeight},t.prototype.getScrollbarWidths=function(){return f.getScrollbarWidths(this.scrollEl)},t}(e.default);t.default=o},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),u=i(3),r=i(4),e=i(231),o=i(23),s=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.segSelector=".fc-event-container > *",r.dateSelectingClass&&(r.dateClicking=new r.dateClickingClass(r)),r.dateSelectingClass&&(r.dateSelecting=new r.dateSelectingClass(r)),r.eventPointingClass&&(r.eventPointing=new r.eventPointingClass(r)),r.eventDraggingClass&&r.eventPointing&&(r.eventDragging=new r.eventDraggingClass(r,r.eventPointing)),r.eventResizingClass&&r.eventPointing&&(r.eventResizing=new r.eventResizingClass(r,r.eventPointing)),r.externalDroppingClass&&(r.externalDropping=new r.externalDroppingClass(r)),r}return f.__extends(t,n),t.prototype.setElement=function(t){n.prototype.setElement.call(this,t);this.dateClicking&&this.dateClicking.bindToEl(t);this.dateSelecting&&this.dateSelecting.bindToEl(t);this.bindAllSegHandlersToEl(t)},t.prototype.removeElement=function(){this.endInteractions();n.prototype.removeElement.call(this)},t.prototype.executeEventUnrender=function(){this.endInteractions();n.prototype.executeEventUnrender.call(this)},t.prototype.bindGlobalHandlers=function(){n.prototype.bindGlobalHandlers.call(this);this.externalDropping&&this.externalDropping.bindToDocument()},t.prototype.unbindGlobalHandlers=function(){n.prototype.unbindGlobalHandlers.call(this);this.externalDropping&&this.externalDropping.unbindFromDocument()},t.prototype.bindDateHandlerToEl=function(n,t,i){var r=this;this.el.on(t,function(n){if(!u(n.target).is(r.segSelector+":not(.fc-helper),"+r.segSelector+":not(.fc-helper) *,.fc-more,a[data-goto]"))return i.call(r,n)})},t.prototype.bindAllSegHandlersToEl=function(n){[this.eventPointing,this.eventDragging,this.eventResizing].forEach(function(t){t&&t.bindToEl(n)})},t.prototype.bindSegHandlerToEl=function(n,t,i){var r=this;n.on(t,this.segSelector,function(n){var f=u(n.currentTarget),t;if(!f.is(".fc-helper")&&(t=f.data("fc-seg"),t&&!r.shouldIgnoreEventPointing()))return i.call(r,t,n)})},t.prototype.shouldIgnoreMouse=function(){return o.default.get().shouldIgnoreMouse()},t.prototype.shouldIgnoreTouch=function(){var n=this._getView();return n.isSelected||n.selectedEvent},t.prototype.shouldIgnoreEventPointing=function(){return this.eventDragging&&this.eventDragging.isDragging||this.eventResizing&&this.eventResizing.isResizing},t.prototype.canStartSelection=function(n,t){return r.getEvIsTouch(t)&&!this.canStartResize(n,t)&&(this.isEventDefDraggable(n.footprint.eventDef)||this.isEventDefResizable(n.footprint.eventDef))},t.prototype.canStartDrag=function(n,t){return!this.canStartResize(n,t)&&this.isEventDefDraggable(n.footprint.eventDef)},t.prototype.canStartResize=function(n,t){var f=this._getView(),i=n.footprint.eventDef;return(!r.getEvIsTouch(t)||f.isEventDefSelected(i))&&this.isEventDefResizable(i)&&u(t.target).is(".fc-resizer")},t.prototype.endInteractions=function(){[this.dateClicking,this.dateSelecting,this.eventPointing,this.eventDragging,this.eventResizing].forEach(function(n){n&&n.end()})},t.prototype.isEventDefDraggable=function(n){return this.isEventDefStartEditable(n)},t.prototype.isEventDefStartEditable=function(n){var t=n.isStartExplicitlyEditable();return t==null&&(t=this.opt("eventStartEditable"),t==null&&(t=this.isEventDefGenerallyEditable(n))),t},t.prototype.isEventDefGenerallyEditable=function(n){var t=n.isExplicitlyEditable();return t==null&&(t=this.opt("editable")),t},t.prototype.isEventDefResizableFromStart=function(n){return this.opt("eventResizableFromStart")&&this.isEventDefResizable(n)},t.prototype.isEventDefResizableFromEnd=function(n){return this.isEventDefResizable(n)},t.prototype.isEventDefResizable=function(n){var t=n.isDurationExplicitlyEditable();return t==null&&(t=this.opt("eventDurationEditable"),t==null&&(t=this.isEventDefGenerallyEditable(n))),t},t.prototype.diffDates=function(n,t){return this.largeUnit?r.diffByUnit(n,t,this.largeUnit):r.diffDayTime(n,t)},t.prototype.isEventInstanceGroupAllowed=function(n){for(var r=this._getView(),u=this.dateProfile,i=this.eventRangesToEventFootprints(n.getAllEventRanges()),t=0;t<i.length;t++)if(!u.validUnzonedRange.containsRange(i[t].componentFootprint.unzonedRange))return!1;return r.calendar.constraints.isEventInstanceGroupAllowed(n)},t.prototype.isExternalInstanceGroupAllowed=function(n){for(var r=this._getView(),u=this.dateProfile,i=this.eventRangesToEventFootprints(n.getAllEventRanges()),t=0;t<i.length;t++)if(!u.validUnzonedRange.containsRange(i[t].componentFootprint.unzonedRange))return!1;for(t=0;t<i.length;t++)if(!r.calendar.constraints.isSelectionFootprintAllowed(i[t].componentFootprint))return!1;return!0},t}(e.default);t.default=s}
102,function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var s=i(2),u=i(3),f=i(0),e=i(4),h=i(229),c=i(55),l=i(42),o=i(23),a=i(5),r=function(n){function t(t,i){var r=n.call(this,null,i.options)||this;return r.batchRenderDepth=0,r.isSelected=!1,r.calendar=t,r.viewSpec=i,r.type=i.type,r.name=r.type,r.initRenderQueue(),r.initHiddenDays(),r.dateProfileGenerator=new r.dateProfileGeneratorClass(r),r.bindBaseRenderHandlers(),r.eventOrderSpecs=e.parseFieldSpecs(r.opt("eventOrder")),r.initialize&&r.initialize(),r}return s.__extends(t,n),t.prototype._getView=function(){return this},t.prototype.opt=function(n){return this.options[n]},t.prototype.initRenderQueue=function(){this.renderQueue=new h.default({event:this.opt("eventRenderWait")});this.renderQueue.on("start",this.onRenderQueueStart.bind(this));this.renderQueue.on("stop",this.onRenderQueueStop.bind(this));this.on("before:change",this.startBatchRender);this.on("change",this.stopBatchRender)},t.prototype.onRenderQueueStart=function(){this.calendar.freezeContentHeight();this.addScroll(this.queryScroll())},t.prototype.onRenderQueueStop=function(){this.calendar.updateViewSize()&&this.popScroll();this.calendar.thawContentHeight()},t.prototype.startBatchRender=function(){this.batchRenderDepth++||this.renderQueue.pause()},t.prototype.stopBatchRender=function(){--this.batchRenderDepth||this.renderQueue.resume()},t.prototype.requestRender=function(n,t,i){this.renderQueue.queue(n,t,i)},t.prototype.whenSizeUpdated=function(n){if(this.renderQueue.isRunning)this.renderQueue.one("stop",n.bind(this));else n.call(this)},t.prototype.computeTitle=function(n){var t;return t=/^(year|month)$/.test(n.currentRangeUnit)?n.currentUnzonedRange:n.activeUnzonedRange,this.formatRange({start:this.calendar.msToMoment(t.startMs,n.isRangeAllDay),end:this.calendar.msToMoment(t.endMs,n.isRangeAllDay)},n.isRangeAllDay,this.opt("titleFormat")||this.computeTitleFormat(n),this.opt("titleRangeSeparator"))},t.prototype.computeTitleFormat=function(n){var t=n.currentRangeUnit;return t==="year"?"YYYY":t==="month"?this.opt("monthYearFormat"):n.currentUnzonedRange.as("days")>1?"ll":"LL"},t.prototype.setDate=function(n){var t=this.get("dateProfile"),i=this.dateProfileGenerator.build(n,undefined,!0);t&&t.activeUnzonedRange.equals(i.activeUnzonedRange)||this.set("dateProfile",i)},t.prototype.unsetDate=function(){this.unset("dateProfile")},t.prototype.fetchInitialEvents=function(n){var t=this.calendar,i=n.isRangeAllDay&&!this.usesMinMaxTime;return t.requestEvents(t.msToMoment(n.activeUnzonedRange.startMs,i),t.msToMoment(n.activeUnzonedRange.endMs,i))},t.prototype.bindEventChanges=function(){this.listenTo(this.calendar,"eventsReset",this.resetEvents)},t.prototype.unbindEventChanges=function(){this.stopListeningTo(this.calendar,"eventsReset")},t.prototype.setEvents=function(n){this.set("currentEvents",n);this.set("hasEvents",!0)},t.prototype.unsetEvents=function(){this.unset("currentEvents");this.unset("hasEvents")},t.prototype.resetEvents=function(n){this.startBatchRender();this.unsetEvents();this.setEvents(n);this.stopBatchRender()},t.prototype.requestDateRender=function(n){var t=this;this.requestRender(function(){t.executeDateRender(n)},"date","init")},t.prototype.requestDateUnrender=function(){var n=this;this.requestRender(function(){n.executeDateUnrender()},"date","destroy")},t.prototype.executeDateRender=function(t){n.prototype.executeDateRender.call(this,t);this.render&&this.render();this.trigger("datesRendered");this.addScroll({isDateInit:!0});this.startNowIndicator()},t.prototype.executeDateUnrender=function(){this.unselect();this.stopNowIndicator();this.trigger("before:datesUnrendered");this.destroy&&this.destroy();n.prototype.executeDateUnrender.call(this)},t.prototype.bindBaseRenderHandlers=function(){var n=this;this.on("datesRendered",function(){n.whenSizeUpdated(n.triggerViewRender)});this.on("before:datesUnrendered",function(){n.triggerViewDestroy()})},t.prototype.triggerViewRender=function(){this.publiclyTrigger("viewRender",{context:this,args:[this,this.el]})},t.prototype.triggerViewDestroy=function(){this.publiclyTrigger("viewDestroy",{context:this,args:[this,this.el]})},t.prototype.requestEventsRender=function(n){var t=this;this.requestRender(function(){t.executeEventRender(n);t.whenSizeUpdated(t.triggerAfterEventsRendered)},"event","init")},t.prototype.requestEventsUnrender=function(){var n=this;this.requestRender(function(){n.triggerBeforeEventsDestroyed();n.executeEventUnrender()},"event","destroy")},t.prototype.requestBusinessHoursRender=function(n){var t=this;this.requestRender(function(){t.renderBusinessHours(n)},"businessHours","init")},t.prototype.requestBusinessHoursUnrender=function(){var n=this;this.requestRender(function(){n.unrenderBusinessHours()},"businessHours","destroy")},t.prototype.bindGlobalHandlers=function(){n.prototype.bindGlobalHandlers.call(this);this.listenTo(o.default.get(),{touchstart:this.processUnselect,mousedown:this.handleDocumentMousedown})},t.prototype.unbindGlobalHandlers=function(){n.prototype.unbindGlobalHandlers.call(this);this.stopListeningTo(o.default.get())},t.prototype.startNowIndicator=function(){var r=this,t,i,n;this.opt("nowIndicator")&&(t=this.getNowIndicatorUnit(),t&&(i=e.proxy(this,"updateNowIndicator"),this.initialNowDate=this.calendar.getNow(),this.initialNowQueriedMs=(new Date).valueOf(),n=this.initialNowDate.clone().startOf(t).add(1,t).valueOf()-this.initialNowDate.valueOf(),this.nowIndicatorTimeoutID=setTimeout(function(){r.nowIndicatorTimeoutID=null;i();n=+f.duration(1,t);n=Math.max(100,n);r.nowIndicatorIntervalID=setInterval(i,n)}
102,n)))},t.prototype.updateNowIndicator=function(){this.isDatesRendered&&this.initialNowDate&&(this.unrenderNowIndicator(),this.renderNowIndicator(this.initialNowDate.clone().add((new Date).valueOf()-this.initialNowQueriedMs)),this.isNowIndicatorRendered=!0)},t.prototype.stopNowIndicator=function(){this.isNowIndicatorRendered&&(this.nowIndicatorTimeoutID&&(clearTimeout(this.nowIndicatorTimeoutID),this.nowIndicatorTimeoutID=null),this.nowIndicatorIntervalID&&(clearInterval(this.nowIndicatorIntervalID),this.nowIndicatorIntervalID=null),this.unrenderNowIndicator(),this.isNowIndicatorRendered=!1)},t.prototype.updateSize=function(t,i,r){this.setHeight?this.setHeight(t,i):n.prototype.updateSize.call(this,t,i,r);this.updateNowIndicator()},t.prototype.addScroll=function(n){var t=this.queuedScroll||(this.queuedScroll={});u.extend(t,n)},t.prototype.popScroll=function(){this.applyQueuedScroll();this.queuedScroll=null},t.prototype.applyQueuedScroll=function(){this.queuedScroll&&this.applyScroll(this.queuedScroll)},t.prototype.queryScroll=function(){var n={};return this.isDatesRendered&&u.extend(n,this.queryDateScroll()),n},t.prototype.applyScroll=function(n){n.isDateInit&&this.isDatesRendered&&u.extend(n,this.computeInitialDateScroll());this.isDatesRendered&&this.applyDateScroll(n)},t.prototype.computeInitialDateScroll=function(){return{}},t.prototype.queryDateScroll=function(){return{}},t.prototype.applyDateScroll=function(){},t.prototype.reportEventDrop=function(n,t,i,r){var e=this.calendar.eventManager,o=e.mutateEventsWithId(n.def.id,t),u=t.dateMutation;u&&(n.dateProfile=u.buildNewDateProfile(n.dateProfile,this.calendar));this.triggerEventDrop(n,u&&u.dateDelta||f.duration(),o,i,r)},t.prototype.triggerEventDrop=function(n,t,i,r,u){this.publiclyTrigger("eventDrop",{context:r[0],args:[n.toLegacy(),t,i,u,{},this]})},t.prototype.reportExternalDrop=function(n,t,i,r,u,f){t&&this.calendar.eventManager.addEventDef(n,i);this.triggerExternalDrop(n,t,r,u,f)},t.prototype.triggerExternalDrop=function(n,t,i,r,u){this.publiclyTrigger("drop",{context:i[0],args:[n.dateProfile.start.clone(),r,u,this]});t&&this.publiclyTrigger("eventReceive",{context:this,args:[n.buildInstance().toLegacy(),this]})},t.prototype.reportEventResize=function(n,t,i,r){var f=this.calendar.eventManager,e=f.mutateEventsWithId(n.def.id,t),u;n.dateProfile=t.dateMutation.buildNewDateProfile(n.dateProfile,this.calendar);u=t.dateMutation.endDelta||t.dateMutation.startDelta;this.triggerEventResize(n,u,e,i,r)},t.prototype.triggerEventResize=function(n,t,i,r,u){this.publiclyTrigger("eventResize",{context:r[0],args:[n.toLegacy(),t,i,u,{},this]})},t.prototype.select=function(n,t){this.unselect(t);this.renderSelectionFootprint(n);this.reportSelection(n,t)},t.prototype.renderSelectionFootprint=function(t){this.renderSelection?this.renderSelection(t.toLegacy(this.calendar)):n.prototype.renderSelectionFootprint.call(this,t)},t.prototype.reportSelection=function(n,t){this.isSelected=!0;this.triggerSelect(n,t)},t.prototype.triggerSelect=function(n,t){var i=this.calendar.footprintToDateProfile(n);this.publiclyTrigger("select",{context:this,args:[i.start,i.end,t,this]})},t.prototype.unselect=function(n){this.isSelected&&(this.isSelected=!1,this.destroySelection&&this.destroySelection(),this.unrenderSelection(),this.publiclyTrigger("unselect",{context:this,args:[n,this]}))},t.prototype.selectEventInstance=function(n){this.selectedEventInstance&&this.selectedEventInstance===n||(this.unselectEventInstance(),this.getEventSegs().forEach(function(t){t.footprint.eventInstance===n&&t.el&&t.el.addClass("fc-selected")}),this.selectedEventInstance=n)},t.prototype.unselectEventInstance=function(){this.selectedEventInstance&&(this.getEventSegs().forEach(function(n){n.el&&n.el.removeClass("fc-selected")}),this.selectedEventInstance=null)},t.prototype.isEventDefSelected=function(n){return this.selectedEventInstance&&this.selectedEventInstance.def.id===n.id},t.prototype.handleDocumentMousedown=function(n){e.isPrimaryMouseButton(n)&&this.processUnselect(n)},t.prototype.processUnselect=function(n){this.processRangeUnselect(n);this.processEventUnselect(n)},t.prototype.processRangeUnselect=function(n){var t;this.isSelected&&this.opt("unselectAuto")&&(t=this.opt("unselectCancel"),t&&u(n.target).closest(t).length||this.unselect(n))},t.prototype.processEventUnselect=function(n){this.selectedEventInstance&&(u(n.target).closest(".fc-selected").length||this.unselectEventInstance())},t.prototype.triggerBaseRendered=function(){this.publiclyTrigger("viewRender",{context:this,args:[this,this.el]})},t.prototype.triggerBaseUnrendered=function(){this.publiclyTrigger("viewDestroy",{context:this,args:[this,this.el]})},t.prototype.triggerDayClick=function(n,t,i){var r=this.calendar.footprintToDateProfile(n);this.publiclyTrigger("dayClick",{context:t,args:[r.start,i,this]})},t.prototype.isDateInOtherMonth=function(){return!1},t.prototype.getUnzonedRangeOption=function(n){var t=this.opt(n);return typeof t=="function"&&(t=t.apply(null,Array.prototype.slice.call(arguments,1
102))),t?this.calendar.parseUnzonedRange(t):void 0},t.prototype.initHiddenDays=function(){var t=this.opt("hiddenDays")||[],i=[],r=0,n;for(this.opt("weekends")===!1&&t.push(0,6),n=0;n<7;n++)(i[n]=u.inArray(n,t)!==-1)||r++;if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=i},t.prototype.trimHiddenDays=function(n){var t=n.getStart(),i=n.getEnd();return(t&&(t=this.skipHiddenDays(t)),i&&(i=this.skipHiddenDays(i,-1,!0)),t===null||i===null||t<i)?new a.default(t,i):null},t.prototype.isHiddenDay=function(n){return f.isMoment(n)&&(n=n.day()),this.isHiddenDayHash[n]},t.prototype.skipHiddenDays=function(n,t,i){t===void 0&&(t=1);i===void 0&&(i=!1);for(var r=n.clone();this.isHiddenDayHash[(r.day()+(i?t:0)+7)%7];)r.add(t,"days");return r},t}(l.default);t.default=r;r.prototype.usesMinMaxTime=!1;r.prototype.dateProfileGeneratorClass=c.default;r.watch("displayingDates",["isInDom","dateProfile"],function(n){this.requestDateRender(n.dateProfile)},function(){this.requestDateUnrender()});r.watch("displayingBusinessHours",["displayingDates","businessHourGenerator"],function(n){this.requestBusinessHoursRender(n.businessHourGenerator)},function(){this.requestBusinessHoursUnrender()});r.watch("initialEvents",["dateProfile"],function(n){return this.fetchInitialEvents(n.dateProfile)});r.watch("bindingEvents",["initialEvents"],function(n){this.setEvents(n.initialEvents);this.bindEventChanges()},function(){this.unbindEventChanges();this.unsetEvents()});r.watch("displayingEvents",["displayingDates","hasEvents"],function(){this.requestEventsRender(this.get("currentEvents"))},function(){this.requestEventsUnrender()});r.watch("title",["dateProfile"],function(n){return this.title=this.computeTitle(n.dateProfile)});r.watch("legacyDateProps",["dateProfile"],function(n){var i=this.calendar,t=n.dateProfile;this.start=i.msToMoment(t.activeUnzonedRange.startMs,t.isRangeAllDay);this.end=i.msToMoment(t.activeUnzonedRange.endMs,t.isRangeAllDay);this.intervalStart=i.msToMoment(t.currentUnzonedRange.startMs,t.isRangeAllDay);this.intervalEnd=i.msToMoment(t.currentUnzonedRange.endMs,t.isRangeAllDay)})},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),u=i(4),f=function(){function n(n,t){this.view=n._getView();this.component=n;this.fillRenderer=t}return n.prototype.opt=function(n){return this.view.opt(n)},n.prototype.rangeUpdated=function(){var n,t;this.eventTimeFormat=this.opt("eventTimeFormat")||this.opt("timeFormat")||this.computeEventTimeFormat();n=this.opt("displayEventTime");n==null&&(n=this.computeDisplayEventTime());t=this.opt("displayEventEnd");t==null&&(t=this.computeDisplayEventEnd());this.displayEventTime=n;this.displayEventEnd=t},n.prototype.render=function(n){var e=this.component._getDateProfile(),f,t,i,r=[],u=[];for(f in n)t=n[f],i=t.sliceRenderRanges(e.activeUnzonedRange),t.getEventDef().hasBgRendering()?r.push.apply(r,i):u.push.apply(u,i);this.renderBgRanges(r);this.renderFgRanges(u)},n.prototype.unrender=function(){this.unrenderBgRanges();this.unrenderFgRanges()},n.prototype.renderFgRanges=function(n){var i=this.component.eventRangesToEventFootprints(n),t=this.component.eventFootprintsToSegs(i);t=this.renderFgSegEls(t);this.renderFgSegs(t)!==!1&&(this.fgSegs=t)},n.prototype.unrenderFgRanges=function(){this.unrenderFgSegs(this.fgSegs||[]);this.fgSegs=null},n.prototype.renderBgRanges=function(n){var i=this.component.eventRangesToEventFootprints(n),t=this.component.eventFootprintsToSegs(i);this.renderBgSegs(t)!==!1&&(this.bgSegs=t)},n.prototype.unrenderBgRanges=function(){this.unrenderBgSegs();this.bgSegs=null},n.prototype.getSegs=function(){return(this.bgSegs||[]).concat(this.fgSegs||[])},n.prototype.renderFgSegs=function(){return!1},n.prototype.unrenderFgSegs=function(){},n.prototype.renderBgSegs=function(n){var t=this;if(this.fillRenderer)this.fillRenderer.renderSegs("bgEvent",n,{getClasses:function(n){return t.getBgClasses(n.footprint.eventDef)},getCss:function(n){return{"background-color":t.getBgColor(n.footprint.eventDef)}},filterEl:function(n,i){return t.filterEventRenderEl(n.footprint,i)}});else return!1},n.prototype.unrenderBgSegs=function(){this.fillRenderer&&this.fillRenderer.unrender("bgEvent")},n.prototype.renderFgSegEls=function(n,t){var e=this;t===void 0&&(t=!1);var o=this.view.hasPublicHandlers("eventRender"),u="",f=[],i;if(n.length){for(i=0;i<n.length;i++)this.beforeFgSegHtml(n[i]),u+=this.fgSegHtml(n[i],t);r(u).each(function(t,i){var s=n[t],u=r(i);o&&(u=e.filterEventRenderEl(s.footprint,u));
102u&&(u.data("fc-seg",s),s.el=u,f.push(s))})}return f},n.prototype.beforeFgSegHtml=function(){},n.prototype.fgSegHtml=function(){},n.prototype.getSegClasses=function(n,t,i){var r=["fc-event",n.isStart?"fc-start":"fc-not-start",n.isEnd?"fc-end":"fc-not-end"].concat(this.getClasses(n.footprint.eventDef));return t&&r.push("fc-draggable"),i&&r.push("fc-resizable"),this.view.isEventDefSelected(n.footprint.eventDef)&&r.push("fc-selected"),r},n.prototype.filterEventRenderEl=function(n,t){var u=n.getEventLegacy(),i=this.view.publiclyTrigger("eventRender",{context:u,args:[u,t,this.view]});return i===!1?t=null:i&&i!==!0&&(t=r(i)),t},n.prototype.getTimeText=function(n,t,i){return this._getTimeText(n.eventInstance.dateProfile.start,n.eventInstance.dateProfile.end,n.componentFootprint.isAllDay,t,i)},n.prototype._getTimeText=function(n,t,i,r,u){return(r==null&&(r=this.eventTimeFormat),u==null&&(u=this.displayEventEnd),this.displayEventTime&&!i)?u&&t?this.view.formatRange({start:n,end:t},!1,r):n.format(r):""},n.prototype.computeEventTimeFormat=function(){return this.opt("smallTimeFormat")},n.prototype.computeDisplayEventTime=function(){return!0},n.prototype.computeDisplayEventEnd=function(){return!0},n.prototype.getBgClasses=function(n){var t=this.getClasses(n);return t.push("fc-bgevent"),t},n.prototype.getClasses=function(n){for(var i=this.getStylingObjs(n),r=[],t=0;t<i.length;t++)r.push.apply(r,i[t].eventClassName||i[t].className||[]);return r},n.prototype.getSkinCss=function(n){return{"background-color":this.getBgColor(n),"border-color":this.getBorderColor(n),color:this.getTextColor(n)}},n.prototype.getBgColor=function(n){for(var i=this.getStylingObjs(n),r,t=0;t<i.length&&!r;t++)r=i[t].eventBackgroundColor||i[t].eventColor||i[t].backgroundColor||i[t].color;return r||(r=this.opt("eventBackgroundColor")||this.opt("eventColor")),r},n.prototype.getBorderColor=function(n){for(var i=this.getStylingObjs(n),r,t=0;t<i.length&&!r;t++)r=i[t].eventBorderColor||i[t].eventColor||i[t].borderColor||i[t].color;return r||(r=this.opt("eventBorderColor")||this.opt("eventColor")),r},n.prototype.getTextColor=function(n){for(var r=this.getStylingObjs(n),i,t=0;t<r.length&&!i;t++)i=r[t].eventTextColor||r[t].textColor;return i||(i=this.opt("eventTextColor")),i},n.prototype.getStylingObjs=function(n){var t=this.getFallbackStylingObjs(n);return t.unshift(n),t},n.prototype.getFallbackStylingObjs=function(n){return[n.source]},n.prototype.sortEventSegs=function(n){n.sort(u.proxy(this,"compareEventSegs"))},n.prototype.compareEventSegs=function(n,t){var i=n.footprint,r=t.footprint,o=i.componentFootprint,s=r.componentFootprint,f=o.unzonedRange,e=s.unzonedRange;return f.startMs-e.startMs||e.endMs-e.startMs-(f.endMs-f.startMs)||s.isAllDay-o.isAllDay||u.compareByFieldSpecs(i.eventDef,r.eventDef,this.view.eventOrderSpecs,i.eventDef.miscProps,r.eventDef.miscProps)},n}();t.default=f},,,,,function(n,t,i){function u(n){return n.locale()!=="en"?n.clone().locale("en"):n}function v(n,t){return it(y(t).fakeFormatString,n)}function g(n,t,i,u,f){var e;return n=r.default.parseZone(n),t=r.default.parseZone(t),e=n.localeData(),i=e.longDateFormat(i)||i,nt(y(i),n,t,u||" - ",f)}function nt(n,t,i,r,u){for(var o=n.sameUnits,y=t.clone().stripZone(),p=i.clone().stripZone(),c=s(n.fakeFormatString,t),d=s(n.fakeFormatString,i),w="",e,v="",h,l="",a="",b="",f=0;f<o.length&&(!o[f]||y.isSame(p,o[f]));f++)w+=c[f];for(e=o.length-1;e>f&&(!o[e]||y.isSame(p,o[e]));e--){if(e-1===f&&c[e]===".")break;v=c[e]+v}for(h=f;h<=e;h++)l+=c[h],a+=d[h];return(l||a)&&(b=u?a+r+l:l+r+a),k(w+b+v)}function y(n){return e[n]||(e[n]=tt(n))}function tt(n){var t=o(n);return{fakeFormatString:w(t),sameUnits:b(t)}}function o(n){for(var i=[],t,r=/\[([^\]]*)\]|\(([^\)]*)\)|(LTS|LT|(\w)\4*o?)|([^\w\[\(]+)/g;t=r.exec(n);)t[1]?i.push.apply(i,p(t[1])):t[2]?i.push({maybe:o(t[2])}):t[3]?i.push({token:t[3]}):t[5]&&i.push.apply(i,p(t[5]));return i}function p(n){return n===". "?["."," "]:[n]}function w(n){for(var i=[],t,r=0;r<n.length;r++)t=n[r],typeof t=="string"?i.push("["+t+"]"):t.token?t.token in l?i.push(c+"["+t.token+"]"):i.push(t.token):t.maybe&&i.push(f+w(t.maybe)+f);return i.join(h)}function b(n){for(var t=[],i,u,r=0;r<n.length;r++)i=n[r],i.token?(u=a[i.token.charAt(0)],t.push(u?u.unit:"second")):i.maybe?t.push.apply(t,b(i.maybe)):t.push(null);return t}function it(n,t){return k(s(n,t).join(""))}function s(n,t){for(var f=[],o=r.oldMomentFormat(t,n),e=o.split(h),u,i=0;i<e.length;i++)u=e[i],u.charAt(0)===c?f.push(l[u.substring(1)](t)):f.push(u);return f}function k(n){return n.replace(d,function(n,t){return t.match(/[1-9]/)?t:""})}function rt(n){for(var f=o(n),u,r,t,i=0;i<f.length;i++)u=f[i],u.token&&(r=a[u.token.charAt(0)],r&&(!t||r.value>t.value)&&(t=r));return t?t.unit:null}var r,e;
102Object.defineProperty(t,"__esModule",{value:!0});r=i(11);r.newMomentProto.format=function(){return this._fullCalendar&&arguments[0]?v(this,arguments[0]):this._ambigTime?r.oldMomentFormat(u(this),"YYYY-MM-DD"):this._ambigZone?r.oldMomentFormat(u(this),"YYYY-MM-DD[T]HH:mm:ss"):this._fullCalendar?r.oldMomentFormat(u(this)):r.oldMomentProto.format.apply(this,arguments)};r.newMomentProto.toISOString=function(){return this._ambigTime?r.oldMomentFormat(u(this),"YYYY-MM-DD"):this._ambigZone?r.oldMomentFormat(u(this),"YYYY-MM-DD[T]HH:mm:ss"):this._fullCalendar?r.oldMomentProto.toISOString.apply(u(this),arguments):r.oldMomentProto.toISOString.apply(this,arguments)};var h="\x0b",c="\x1f",f="\x1e",d=new RegExp(f+"([^"+f+"]*)"+f,"g"),l={t:function(n){return r.oldMomentFormat(n,"a").charAt(0)},T:function(n){return r.oldMomentFormat(n,"A").charAt(0)}},a={Y:{value:1,unit:"year"},M:{value:2,unit:"month"},W:{value:3,unit:"week"},w:{value:3,unit:"week"},D:{value:4,unit:"day"},d:{value:4,unit:"day"}};t.formatDate=v;t.formatRange=g;e={};t.queryMostGranularFormatUnit=rt},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n,t,i){this.unzonedRange=n;this.eventDef=t;i&&(this.eventInstance=i)}return n}();t.default=i},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(35),e=i(13),o=i(7),r=function(n){function t(){var t=n.call(this)||this;return t._watchers={},t._props={},t.applyGlobalWatchers(),t.constructed(),t}return u.__extends(t,n),t.watch=function(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];this.prototype.hasOwnProperty("_globalWatchArgs")||(this.prototype._globalWatchArgs=Object.create(this.prototype._globalWatchArgs));this.prototype._globalWatchArgs[n]=i},t.prototype.constructed=function(){},t.prototype.applyGlobalWatchers=function(){var n=this._globalWatchArgs;for(var t in n)this.watch.apply(this,[t].concat(n[t]))},t.prototype.has=function(n){return n in this._props},t.prototype.get=function(n){return n===undefined?this._props:this._props[n]},t.prototype.set=function(n,t){var i;typeof n=="string"?(i={},i[n]=t===undefined?null:t):i=n;this.setProps(i)},t.prototype.reset=function(n){var r=this._props,i={};for(var t in r)i[t]=undefined;for(t in n)i[t]=n[t];this.setProps(i)},t.prototype.unset=function(n){for(var r={},i=typeof n=="string"?[n]:n,t=0;t<i.length;t++)r[i[t]]=undefined;this.setProps(r)},t.prototype.setProps=function(n){var r={},u=0,t,i;for(t in n)i=n[t],(typeof i=="object"||i!==this._props[t])&&(r[t]=i,u++);if(u){this.trigger("before:batchChange",r);for(t in r)i=r[t],this.trigger("before:change",t,i),this.trigger("before:change:"+t,i);for(t in r)i=r[t],i===undefined?delete this._props[t]:this._props[t]=i,this.trigger("change:"+t,i),this.trigger("change",t,i);this.trigger("batchChange",r)}},t.prototype.watch=function(n,t,i,r){var u=this;this.unwatch(n);this._watchers[n]=this._watchDeps(t,function(t){var r=i.call(u,t);r&&r.then?(u.unset(n),r.then(function(t){u.set(n,t)})):u.set(n,r)},function(t){u.unset(n);r&&r.call(u,t)})},t.prototype.unwatch=function(n){var t=this._watchers[n];t&&(delete this._watchers[n],t.teardown())},t.prototype._watchDeps=function(n,t,i){var o=this,s=0,f=n.length,r=0,u={},e=[],h=!1,l=function(){s++;s===1&&r===f&&(h=!0,i(u),h=!1)},a=function(n,i,e){i===undefined?(e||u[n]===undefined||r--,delete u[n]):(e||u[n]!==undefined||r++,u[n]=i);s--;s||r===f&&(h||t(u))},c=function(n,t){o.on(n,t);e.push([n,t])};return n.forEach(function(n){var t=!1;n.charAt(0)==="?"&&(n=n.substring(1),t=!0);c("before:change:"+n,function(i){l(n,i,t)});c("change:"+n,function(i){a(n,i,t)})}),n.forEach(function(n){var t=!1;n.charAt(0)==="?"&&(n=n.substring(1),t=!0);o.has(n)?(u[n]=o.get(n),r++):t&&r++}),r===f&&t(u),{teardown:function(){for(var n=0;n<e.length;n++)o.off(e[n][0],e[n][1]);e=null;r===f&&i()},flash:function(){r===f&&(i(),t(u))}}},t.prototype.flash=function(n){var t=this._watchers[n];t&&t.flash()},t}(f.default);t.default=r;r.prototype._globalWatchArgs={};e.default.mixInto(r);o.default.mixInto(r)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(4),e=i(15),r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t.defineStandardProps=function(n){var t=this.prototype;t.hasOwnProperty("standardPropMap")||(t.standardPropMap=Object.create(t.standardPropMap));f.copyOwnProps(n,t.standardPropMap)},t.copyVerbatimStandardProps=function(n,t){var r=this.prototype.standardPropMap;for(var i in r)n[i]!=null&&r[i]===!0&&(t[i]=n[i])},t.prototype.applyProps=function(n){var i=this.standardPropMap,r={},u={};for(var t in n)i[t]===!0?this[t]=n[t]:i[t]===!1?r[t]=n[t]:u[t]=n[t];return this.applyMiscProps(u),this.applyManualStandardProps(r)}
102,t.prototype.applyManualStandardProps=function(){return!0},t.prototype.applyMiscProps=function(){},t.prototype.isStandardProp=function(n){return n in this.standardPropMap},t}(e.default);t.default=r;r.prototype.standardPropMap={}},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n,t){this.def=n;this.dateProfile=t}return n.prototype.toLegacy=function(){var n=this.dateProfile,t=this.def.toLegacy();return t.start=n.start.clone(),t.end=n.end?n.end.clone():null,t},n}();t.default=i},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var e=i(2),o=i(3),r=i(0),f=i(37),s=i(53),h=i(16),u=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return e.__extends(t,n),t.prototype.isAllDay=function(){return!this.startTime&&!this.endTime},t.prototype.buildInstances=function(n){for(var f=this.source.calendar,t=n.getStart(),o=n.getEnd(),r,i,u,e=[];t.isBefore(o);)(!this.dowHash||this.dowHash[t.day()])&&(r=f.applyTimezone(t),i=r.clone(),u=null,this.startTime?i.time(this.startTime):i.stripTime(),this.endTime&&(u=r.clone().time(this.endTime)),e.push(new s.default(this,new h.default(i,u,f)))),t.add(1,"days");return e},t.prototype.setDow=function(n){this.dowHash||(this.dowHash={});for(var t=0;t<n.length;t++)this.dowHash[n[t]]=!0},t.prototype.clone=function(){var t=n.prototype.clone.call(this);return t.startTime&&(t.startTime=r.duration(this.startTime)),t.endTime&&(t.endTime=r.duration(this.endTime)),this.dowHash&&(t.dowHash=o.extend({},this.dowHash)),t},t}(f.default);t.default=u;u.prototype.applyProps=function(n){var t=f.default.prototype.applyProps.call(this,n);return n.start&&(this.startTime=r.duration(n.start)),n.end&&(this.endTime=r.duration(n.end)),n.dow&&this.setDow(n.dow),t};u.defineStandardProps({start:!1,end:!1,dow:!1})},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),f=i(4),u=i(5),e=function(){function n(n){this._view=n}return n.prototype.opt=function(n){return this._view.opt(n)},n.prototype.trimHiddenDays=function(n){return this._view.trimHiddenDays(n)},n.prototype.msToUtcMoment=function(n,t){return this._view.calendar.msToUtcMoment(n,t)},n.prototype.buildPrev=function(n){var t=n.date.clone().startOf(n.currentRangeUnit).subtract(n.dateIncrement);return this.build(t,-1)},n.prototype.buildNext=function(n){var t=n.date.clone().startOf(n.currentRangeUnit).add(n.dateIncrement);return this.build(t,1)},n.prototype.build=function(n,t,i){i===void 0&&(i=!1);var l=!n.hasTime(),e,s=null,h=null,f,c,o,u,a;return e=this.buildValidRange(),e=this.trimHiddenDays(e),i&&(n=this.msToUtcMoment(e.constrainDate(n),l)),f=this.buildCurrentRangeInfo(n,t),c=/^(year|month|week|day)$/.test(f.unit),o=this.buildRenderRange(this.trimHiddenDays(f.unzonedRange),f.unit,c),o=this.trimHiddenDays(o),u=o.clone(),this.opt("showNonCurrentDates")||(u=u.intersect(f.unzonedRange)),s=r.duration(this.opt("minTime")),h=r.duration(this.opt("maxTime")),u=this.adjustActiveRange(u,s,h),u=u.intersect(e),u&&(n=this.msToUtcMoment(u.constrainDate(n),l)),a=f.unzonedRange.intersectsWith(e),{validUnzonedRange:e,currentUnzonedRange:f.unzonedRange,currentRangeUnit:f.unit,isRangeAllDay:c,activeUnzonedRange:u,renderUnzonedRange:o,minTime:s,maxTime:h,isValid:a,date:n,dateIncrement:this.buildDateIncrement(f.duration)}},n.prototype.buildValidRange=function(){return this._view.getUnzonedRangeOption("validRange",this._view.calendar.getNow())||new u.default},n.prototype.buildCurrentRangeInfo=function(n,t){var e=this._view.viewSpec,u=null,i=null,r=null,o;return e.duration?(u=e.duration,i=e.durationUnit,r=this.buildRangeFromDuration(n,t,u,i)):(o=this.opt("dayCount"))?(i="day",r=this.buildRangeFromDayCount(n,t,o)):(r=this.buildCustomVisibleRange(n))?i=f.computeGreatestUnit(r.getStart(),r.getEnd()):(u=this.getFallbackDuration(),i=f.computeGreatestUnit(u),r=this.buildRangeFromDuration(n,t,u,i)),{duration:u,unit:i,unzonedRange:r}},n.prototype.getFallbackDuration=function(){return r.duration({days:1})},n.prototype.adjustActiveRange=function(n,t,i){var r=n.getStart(),f=n.getEnd();return this._view.usesMinMaxTime&&(t<0&&r.time(0).add(t),i>864e5&&f.time(i-864e5)),new u.default(r,f)},n.prototype.buildRangeFromDuration=function(n,t,i,e){function v(){o=n.clone().startOf(s);a=o.clone().add(i);l=new u.default(o,a)}var s=this.opt("dateAlignment"),h,c,o,a,l;return s||(h=this.opt("dateIncrement"),h?(c=r.duration(h),s=c<i?f.computeDurationGreatestUnit(c,h):e):s=e),i.as("days")<=1&&this._view.isHiddenD
102ay(o)&&(o=this._view.skipHiddenDays(o,t),o.startOf("day")),v(),this.trimHiddenDays(l)||(n=this._view.skipHiddenDays(n,t),v()),l},n.prototype.buildRangeFromDayCount=function(n,t,i){var o=this.opt("dateAlignment"),e=0,r,f;if(o||t!==-1){r=n.clone();o&&r.startOf(o);r.startOf("day");r=this._view.skipHiddenDays(r);f=r.clone();do f.add(1,"day"),this._view.isHiddenDay(f)||e++;while(e<i)}else{f=n.clone().startOf("day").add(1,"day");f=this._view.skipHiddenDays(f,-1,!0);r=f.clone();do r.add(-1,"day"),this._view.isHiddenDay(r)||e++;while(e<i)}return new u.default(r,f)},n.prototype.buildCustomVisibleRange=function(n){var t=this._view.getUnzonedRangeOption("visibleRange",this._view.calendar.applyTimezone(n));return t&&(t.startMs==null||t.endMs==null)?null:t},n.prototype.buildRenderRange=function(n){return n.clone()},n.prototype.buildDateIncrement=function(n){var t=this.opt("dateIncrement"),i;return t?r.duration(t):(i=this.opt("dateAlignment"))?r.duration(1,i):n?n:r.duration({days:1})},n}();t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var e=i(2),r=i(3),o=i(4),s=i(21),u=i(6),h=i(9),f=function(n){function t(t){var i=n.call(this,t)||this;return i.eventDefs=[],i}return e.__extends(t,n),t.parse=function(n,t){var i;return(r.isArray(n.events)?i=n:r.isArray(n)&&(i={events:n}),i)?u.default.parse.call(this,i,t):!1},t.prototype.setRawEventDefs=function(n){this.rawEventDefs=n;this.eventDefs=this.parseEventDefs(n)},t.prototype.fetch=function(n,t,i){var u=this.eventDefs,r;if(this.currentTimezone!=null&&this.currentTimezone!==i)for(r=0;r<u.length;r++)u[r]instanceof h.default&&u[r].rezone();return this.currentTimezone=i,s.default.resolve(u)},t.prototype.addEventDef=function(n){this.eventDefs.push(n)},t.prototype.removeEventDefsById=function(n){return o.removeMatching(this.eventDefs,function(t){return t.id===n})},t.prototype.removeAllEventDefs=function(){this.eventDefs=[]},t.prototype.getPrimitive=function(){return this.rawEventDefs},t.prototype.applyManualStandardProps=function(t){var i=n.prototype.applyManualStandardProps.call(this,t);return this.setRawEventDefs(t.events),i},t}(u.default);t.default=f;f.defineStandardProps({events:!1})},function(n,t,i){function e(n,t){r[n]=t}function o(n){return n?n===!0?f.default:r[n]:u.default}Object.defineProperty(t,"__esModule",{value:!0});var u=i(221),f=i(222),r={};t.defineThemeSystem=e;t.getThemeSystemClass=o},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),u=i(4),f=function(){function n(n){this.isHorizontal=!1;this.isVertical=!1;this.els=r(n.els);this.isHorizontal=n.isHorizontal;this.isVertical=n.isVertical;this.forcedOffsetParentEl=n.offsetParent?r(n.offsetParent):null}return n.prototype.build=function(){var n=this.forcedOffsetParentEl;!n&&this.els.length>0&&(n=this.els.eq(0).offsetParent());this.origin=n?n.offset():null;
102this.boundingRect=this.queryBoundingRect();this.isHorizontal&&this.buildElHorizontals();this.isVertical&&this.buildElVerticals()},n.prototype.clear=function(){this.origin=null;this.boundingRect=null;this.lefts=null;this.rights=null;this.tops=null;this.bottoms=null},n.prototype.ensureBuilt=function(){this.origin||this.build()},n.prototype.buildElHorizontals=function(){var n=[],t=[];this.els.each(function(i,u){var f=r(u),e=f.offset().left,o=f.outerWidth();n.push(e);t.push(e+o)});this.lefts=n;this.rights=t},n.prototype.buildElVerticals=function(){var n=[],t=[];this.els.each(function(i,u){var f=r(u),e=f.offset().top,o=f.outerHeight();n.push(e);t.push(e+o)});this.tops=n;this.bottoms=t},n.prototype.getHorizontalIndex=function(n){this.ensureBuilt();for(var i=this.lefts,r=this.rights,u=i.length,t=0;t<u;t++)if(n>=i[t]&&n<r[t])return t},n.prototype.getVerticalIndex=function(n){this.ensureBuilt();for(var i=this.tops,r=this.bottoms,u=i.length,t=0;t<u;t++)if(n>=i[t]&&n<r[t])return t},n.prototype.getLeftOffset=function(n){return this.ensureBuilt(),this.lefts[n]},n.prototype.getLeftPosition=function(n){return this.ensureBuilt(),this.lefts[n]-this.origin.left},n.prototype.getRightOffset=function(n){return this.ensureBuilt(),this.rights[n]},n.prototype.getRightPosition=function(n){return this.ensureBuilt(),this.rights[n]-this.origin.left},n.prototype.getWidth=function(n){return this.ensureBuilt(),this.rights[n]-this.lefts[n]},n.prototype.getTopOffset=function(n){return this.ensureBuilt(),this.tops[n]},n.prototype.getTopPosition=function(n){return this.ensureBuilt(),this.tops[n]-this.origin.top},n.prototype.getBottomOffset=function(n){return this.ensureBuilt(),this.bottoms[n]},n.prototype.getBottomPosition=function(n){return this.ensureBuilt(),this.bottoms[n]-this.origin.top},n.prototype.getHeight=function(n){return this.ensureBuilt(),this.bottoms[n]-this.tops[n]},n.prototype.queryBoundingRect=function(){var n;return this.els.length>0&&(n=u.getScrollParent(this.els.eq(0)),!n.is(document)&&!n.is("html,body"))?u.getClientRect(n):null},n.prototype.isPointInBounds=function(n,t){return this.isLeftInBounds(n)&&this.isTopInBounds(t)},n.prototype.isLeftInBounds=function(n){return!this.boundingRect||n>=this.boundingRect.left&&n<this.boundingRect.right},n.prototype.isTopInBounds=function(n){return!this.boundingRect||n>=this.boundingRect.top&&n<this.boundingRect.bottom},n}();t.default=f},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(3),r=i(4),o=i(7),f=i(23),e=function(){function n(n){this.isInteracting=!1;this.isDistanceSurpassed=!1;this.isDelayEnded=!1;this.isDragging=!1;this.isTouch=!1;this.isGeneric=!1;this.shouldCancelTouchScroll=!0;this.scrollAlwaysKills=!1;this.isAutoScroll=!1;this.scrollSensitivity=30;this.scrollSpeed=200;this.scrollIntervalMs=50;this.options=n||{}}return n.prototype.startInteraction=function(n,t){if(t===void 0&&(t={}),n.type==="mousedown"){if(f.default.get().shouldIgnoreMouse())return;if(r.isPrimaryMouseButton(n))n.preventDefault();else return}this.isInteracting||(this.delay=r.firstDefined(t.delay,this.options.delay,0),this.minDistance=r.firstDefined(t.distance,this.options.distance,0),this.subjectEl=this.options.subjectEl,r.preventSelection(u("body")),this.isInteracting=!0,this.isTouch=r.getEvIsTouch(n),this.isGeneric=n.type==="dragstart",this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.originX=r.getEvX(n),this.originY=r.getEvY(n),this.scrollEl=r.getScrollParent(u(n.target)),this.bindHandlers(),this.initAutoScroll(),this.handleInteractionStart(n),this.startDelay(n),this.minDistance||this.handleDistanceSurpassed(n))},n.prototype.handleInteractionStart=function(n){this.trigger("interactionStart",n)},n.prototype.endInteraction=function(n,t){this.isInteracting&&(this.endDrag(n),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null),this.destroyAutoScroll(),this.unbindHandlers(),this.isInteracting=!1,this.handleInteractionEnd(n,t),r.allowSelection(u("body")))},n.prototype.handleInteractionEnd=function(n,t){this.trigger("interactionEnd",n,t||!1)},n.prototype.bindHandlers=function(){var n=f.default.get();this.isGeneric?this.listenTo(u(document),{drag:this.handleMove,dragstop:this.endInteraction}):this.isTouch?this.listenTo(n,{touchmove:this.handleTouchMove,touchend:this.endInteraction,scroll:this.handleTouchScroll}):this.listenTo(n,{mousemove:this.handleMouseMove,mouseup:this.endInteraction});this.listenTo(n,{selectstart:r.preventDefault,contextmenu:r.preventDefault})},n.prototype.unbindHandlers=function(){this.stopListeningTo(f.default.get());this.stopListeningTo(u(document))},n.prototype.startDrag=function(n,t){this.startInteraction(n,t);this.isDragging||(this.isDragging=!0,this.handleDragStart(n))},n.prototype.handleDragStart=function(n){this.trigger("dragStart",n)},n.prototype.handleMove=function(n){var t=r.getEvX(n)-this.originX,i=r.getEvY(n)-this.originY,u=this.minDistance,f;this.isDistanceSurpassed||(f=t*t+i*i,f>=u*u&&this.handleDistanceSurpassed(n));this.isDragging&&this.handleDrag(t,i,n)},n.prototype.handleDrag=function(n,t,i){this.trigger("drag",n,t,i);this.updateAutoScroll(i)},n.prototype.endDrag=function(n){this.isDragging&&(this.isDragging=!1,this.handleDragEnd(n))},n.prototype.handleDragEnd=function(n){this.trigger("dragEnd",n)},n.prototype.startDelay=function(n){var t=this;this.delay?this.delayTimeoutId=setTimeout(function(){t.handleDelayEnd(n)},this.delay):this.handleDelayEnd(n)},n.prototype.handleDelayEnd=function(n){this.isDelayEnded=!0;this.isDistanceSurpassed&&this.startDrag(n)},n.prototype.handleDistanceSurpassed=function(n){this.isDistanceSurpassed=!0;this.isDelayEnded&&this.startDrag(n)},n.prototype.handleTouchMove=function(n){this.isDragging&&this.shouldCancelTouchScroll&&n.preventDefault();this.handleMove(n)},n.prototype.handleMouseMove=function(n){this.handleMove(n)},n.prototype.handleTouchScroll=function(n){(!this.isDragging||this.scrollAlwaysKills)&&this.endInteraction(n,!0)},n.prototype.trigger=function(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];this.options[n]&&this.options[n].apply(this,i);this["_"+n]&&this["_"+n].apply(this,i)},n.prototype.initAutoScroll=function(){var n=this.scrollEl;
102this.isAutoScroll=this.options.scroll&&n&&!n.is(window)&&!n.is(document);this.isAutoScroll&&this.listenTo(n,"scroll",r.debounce(this.handleDebouncedScroll,100))},n.prototype.destroyAutoScroll=function(){this.endAutoScroll();this.isAutoScroll&&this.stopListeningTo(this.scrollEl,"scroll")},n.prototype.computeScrollBounds=function(){this.isAutoScroll&&(this.scrollBounds=r.getOuterRect(this.scrollEl))},n.prototype.updateAutoScroll=function(n){var t=this.scrollSensitivity,i=this.scrollBounds,u,f,e,o,s=0,h=0;i&&(u=(t-(r.getEvY(n)-i.top))/t,f=(t-(i.bottom-r.getEvY(n)))/t,e=(t-(r.getEvX(n)-i.left))/t,o=(t-(i.right-r.getEvX(n)))/t,u>=0&&u<=1?s=u*this.scrollSpeed*-1:f>=0&&f<=1&&(s=f*this.scrollSpeed),e>=0&&e<=1?h=e*this.scrollSpeed*-1:o>=0&&o<=1&&(h=o*this.scrollSpeed));this.setScrollVel(s,h)},n.prototype.setScrollVel=function(n,t){this.scrollTopVel=n;this.scrollLeftVel=t;this.constrainScrollVel();(this.scrollTopVel||this.scrollLeftVel)&&!this.scrollIntervalId&&(this.scrollIntervalId=setInterval(r.proxy(this,"scrollIntervalFunc"),this.scrollIntervalMs))},n.prototype.constrainScrollVel=function(){var n=this.scrollEl;this.scrollTopVel<0?n.scrollTop()<=0&&(this.scrollTopVel=0):this.scrollTopVel>0&&n.scrollTop()+n[0].clientHeight>=n[0].scrollHeight&&(this.scrollTopVel=0);this.scrollLeftVel<0?n.scrollLeft()<=0&&(this.scrollLeftVel=0):this.scrollLeftVel>0&&n.scrollLeft()+n[0].clientWidth>=n[0].scrollWidth&&(this.scrollLeftVel=0)},n.prototype.scrollIntervalFunc=function(){var n=this.scrollEl,t=this.scrollIntervalMs/1e3;this.scrollTopVel&&n.scrollTop(n.scrollTop()+this.scrollTopVel*t);this.scrollLeftVel&&n.scrollLeft(n.scrollLeft()+this.scrollLeftVel*t);this.constrainScrollVel();this.scrollTopVel||this.scrollLeftVel||this.endAutoScroll()},n.prototype.endAutoScroll=function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.handleScrollEnd())},n.prototype.handleDebouncedScroll=function(){this.scrollIntervalId||this.handleScrollEnd()},n.prototype.handleScrollEnd=function(){},n}();t.default=e;o.default.mixInto(e)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),r=i(4),f=i(15),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t.prototype.updateDayTable=function(){for(var r=this,o=r.view,s=o.calendar,i=s.msToUtcMoment(r.dateProfile.renderUnzonedRange.startMs,!0),c=s.msToUtcMoment(r.dateProfile.renderUnzonedRange.endMs,!0),u=-1,f=[],n=[],t,h,e;i.isBefore(c);)o.isHiddenDay(i)?f.push(u+.5):(u++,f.push(u),n.push(i.clone())),i.add(1,"days");if(this.breakOnWeeks){for(h=n[0].day(),t=1;t<n.length;t++)if(n[t].day()===h)break;e=Math.ceil(n.length/t)}else e=1,t=n.length;this.dayDates=n;this.dayIndices=f;this.daysPerRow=t;this.rowCnt=e;this.updateDayTableCols()},t.prototype.updateDayTableCols=function(){this.colCnt=this.computeColCnt();this.colHeadFormat=this.opt("columnHeaderFormat")||this.opt("columnFormat")||this.computeColHeadFormat()},t.prototype.computeColCnt=function(){return this.daysPerRow},t.prototype.getCellDate=function(n,t){return this.dayDates[this.getCellDayIndex(n,t)].clone()},t.prototype.getCellRange=function(n,t){var i=this.getCellDate(n,t),r=i.clone().add(1,"days");return{start:i,end:r}},t.prototype.getCellDayIndex=function(n,t){return n*this.daysPerRow+this.getColDayIndex(t)},t.prototype.getColDayIndex=function(n){return this.isRTL?this.colCnt-1-n:n},t.prototype.getDateDayIndex=function(n){var t=this.dayIndices,i=n.diff(this.dayDates[0],"days");return i<0?t[0]-1:i>=t.length?t[t.length-1]+1:t[i]},t.prototype.computeColHeadFormat=function(){return this.rowCnt>1||this.colCnt>10?"ddd":this.colCnt>1?this.opt("dayOfMonthFormat"):"dddd"},t.prototype.sliceRangeByRow=function(n){for(var f=this.daysPerRow,e=this.view.computeDayRange(n),o=this.getDateDayIndex(e.start),s=this.getDateDayIndex(e.end.clone().subtract(1,"days")),h=[],u,c,t,i,r=0;r<this.rowCnt;r++)u=r*f,c=u+f-1,t=Math.max(o,u),i=Math.min(s,c),t=Math.ceil(t),i=Math.floor(i),t<=i&&h.push({row:r,firstRowDayIndex:t-u,lastRowDayIndex:i-u,isStart:t===o,isEnd:i===s});return h},t.prototype.sliceRangeByDay=function(n){for(var e=this.daysPerRow,o=this.view.computeDayRange(n),s=this.getDateDayIndex(o.start),h=this.getDateDayIndex(o.end.clone().subtract(1,"days")),c=[],u,l,f,t,i,r=0;r<this.rowCnt;r++)for(u=r*e,l=u+e-1,f=u;f<=l;f++)t=Math.max(s,f),i=Math.min(h,f),t=Math.ceil(t),i=Math.floor(i),t<=i&&c.push({row:r,firstRowDayIndex:t-u,lastRowDayIndex:i-u,isStart:t===s,isEnd:i===h});return c},t.prototype.renderHeadHtml=function(){var n=this.view.calendar.theme;return'<div class="fc-row '+n.getClass("headerRow")+'"><table class="'+n.getClass("tableGrid")+'"><thead>'+this.renderHeadTrHtml()+"<\/thead><\/table><\/div>"},t.prototype.renderHeadIntroHtml=function(){return this.renderIntroHtml()},t.prototype.renderHeadTrHtml=function(){return"<tr>"+(this.isRTL?"":this.renderHeadIntroHtml())+this.renderHeadDateCellsHtml()+(this.isRTL?this.renderHeadIntroHtml():"")+"<\/tr>"},t.prototype.renderHeadDateCellsHtml=function(){for(var t=[],i,n=0;n<this.colCnt;n++)i=this.getCellDate(0,n),t.push(this.renderHeadDateCellHtml(i));return t.join("")},t.prototype.renderHeadDateCellHtml=function(n,t,i){var u=this,o=u.view,s=u.dateProfile.activeUnzonedRange.containsDate(n),f=["fc-day-header",o.calendar.theme.getClass("widgetHeader")],e;return e=typeof u.opt("columnHeaderHtml")=="function"?u.opt("columnHeaderHtml")(n):typeof u.opt("columnHeaderText")=="function"?r.htmlEscape(u.opt("columnHeaderText")(n)):r.htmlEscape(n.format(u.colHeadFormat)),u.rowCnt===1?f=f.concat(u.getDayClasses(n,!0)):f.push("fc-"+r.dayIDs[n.day()]),'<th class="'+f.join(" ")+'"'+((s&&u.rowCnt)===1?' data-date="'+n.format("YYYY-MM-DD")+'"':"")+(t>1?' colspan="'+t+'"':"")+(i?" "+i:"")+">"+(s?o.buildGotoAnchorHtml({date:n,forceOff:u.rowCnt>1||u.colCnt===1},e):e)+"<\/th>"},t.prototype.renderBgTrHtml=function(n){return"<tr>"+(this.isRTL?"":this.renderBgIntroHtml(n))+this.renderBgCellsHtml(n)+(this.isRTL?this.renderBgIntroHtml(n):"")+"<\/tr>"},t.prototype.renderBgIntroHtml=function(){return this.renderIntroHtml()},t.prototype.renderBgCellsHtml=function(n){for(var i=[],r,t=0;t<this.colCnt;t++)r=this.getCellDate(n,t),i.push(this.renderBgCellHtml(r));return i.join("")},t.prototype.renderBgCellHtml=function(n,t){var i=this,u=i.view,f=i.dateProfile.activeUnzonedRange.containsDate(n),r=i.getDayClasses(n);return r.unshift("fc-day",u.calendar.theme.getClass("widgetContent")),'<td class="'+r.join(" ")+'"'+(f?' data-date="'+n.format("YYYY-MM-DD")+'"':"")+(t?" "+t:"")+"><\/td>"},t.prototype.renderIntroHtml=function(){},t.prototype.bookendCells=function(n){var t=this.renderIntroHtml();t&&(this.isRTL?n.append(t):n.prepend(t))},t}(f.default);t.default=e}
102,function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n,t){this.component=n;this.fillRenderer=t}return n.prototype.render=function(n){var t=this.component,i=t._getDateProfile().activeUnzonedRange,r=n.buildEventInstanceGroup(t.hasAllDayBusinessHours,i),u=r?t.eventRangesToEventFootprints(r.sliceRenderRanges(i)):[];this.renderEventFootprints(u)},n.prototype.renderEventFootprints=function(n){var t=this.component.eventFootprintsToSegs(n);this.renderSegs(t);this.segs=t},n.prototype.renderSegs=function(n){this.fillRenderer&&this.fillRenderer.renderSegs("businessHours",n,{getClasses:function(){return["fc-nonbusiness","fc-bgevent"]}})},n.prototype.unrender=function(){this.fillRenderer&&this.fillRenderer.unrender("businessHours");this.segs=null},n.prototype.getSegs=function(){return this.segs||[]},n}();t.default=i},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),u=i(4),f=function(){function n(n){this.fillSegTag="div";this.component=n;this.elsByFill={}}return n.prototype.renderFootprint=function(n,t,i){this.renderSegs(n,this.component.componentFootprintToSegs(t),i)},n.prototype.renderSegs=function(n,t,i){var r;return t=this.buildSegEls(n,t,i),r=this.attachSegEls(n,t),r&&this.reportEls(n,r),t},n.prototype.unrender=function(n){var t=this.elsByFill[n];t&&(t.remove(),delete this.elsByFill[n])},n.prototype.buildSegEls=function(n,t,i){var o=this,f="",e=[],u;if(t.length){for(u=0;u<t.length;u++)f+=this.buildSegHtml(n,t[u],i);r(f).each(function(n,u){var s=t[n],f=r(u);i.filterEl&&(f=i.filterEl(s,f));f&&(f=r(f),f.is(o.fillSegTag)&&(s.el=f,e.push(s)))})}return e},n.prototype.buildSegHtml=function(n,t,i){var r=i.getClasses?i.getClasses(t):[],f=u.cssToStr(i.getCss?i.getCss(t):{});return"<"+this.fillSegTag+(r.length?' class="'+r.join(" ")+'"':"")+(f?' style="'+f+'"':"")+"><\/"+this.fillSegTag+">"},n.prototype.attachSegEls=function(){},n.prototype.reportEls=function(n,t){this.elsByFill[n]=this.elsByFill[n]?this.elsByFill[n].add(t):r(t)},n}();t.default=f},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(9),u=i(34),f=i(6),e=function(){function n(n,t){this.view=n._getView();this.component=n;this.eventRenderer=t}return n.prototype.renderComponentFootprint=function(n){this.renderEventFootprints([this.fabricateEventFootprint(n)])},n.prototype.renderEventDraggingFootprints=function(n,t,i){this.renderEventFootprints(n,t,"fc-dragging",i?null:this.view.opt("dragOpacity"))},n.prototype.renderEventResizingFootprints=function(n,t){this.renderEventFootprints(n,t,"fc-resizing")},n.prototype.renderEventFootprints=function(n,t,i,r){for(var f=this.component.eventFootprintsToSegs(n),e="fc-helper "+(i||""),f=this.eventRenderer.renderFgSegEls(f),u=0;u<f.length;u++)f[u].el.addClass(e);if(r!=null)for(u=0;u<f.length;u++)f[u].el.css("opacity",r);this.helperEls=this.renderSegs(f,t)},n.prototype.renderSegs=function(){},n.prototype.unrender=function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},n.prototype.fabricateEventFootprint=function(n){var i=this.view.calendar,o=i.footprintToDateProfile(n),t=new r.default(new f.default(i)),e;return t.dateProfile=o,e=t.buildInstance(),new u.default(n,t,e)},n}();t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(23),f=i(14),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.bindToEl=function(n){var t=this.component;t.bindSegHandlerToEl(n,"click",this.handleClick.bind(this));t.bindSegHandlerToEl(n,"mouseenter",this.handleMouseover.bind(this));t.bindSegHandlerToEl(n,"mouseleave",this.handleMouseout.bind(this))},t.prototype.handleClick=function(n,t){var i=this.component.publiclyTrigger("eventClick",{context:n.el[0],args:[n.footprint.getEventLegacy(),t,this.view]});i===!1&&t.preventDefault()},t.prototype.handleMouseover=function(n,t){u.default.get().shouldIgnoreMouse()||this.mousedOverSeg||(this.mousedOverSeg=n,this.view.isEventDefResizable(n.footprint.eventDef)&&n.el.addClass("fc-allow-mouse-resize"),this.component.publiclyTrigger("eventMouseover",{context:n.el[0],args:[n.footprint.getEventLegacy(),t,this.view]}))},t.prototype.handleMouseout=function(n,t){this.mousedOverSeg&&(this.mousedOverSeg=null,this.view.isEventDefResizable(n.footprint.eventDef)&&n.el.removeClass("fc-allow-mouse-resize"),this.component.publiclyTrigger("eventMouseout",{context:n.el[0],args:[n.footprint.getEventLegacy(),t||{},this.view]}))},t.prototype.end=function(){this.mousedOverSeg&&this.handleMouseout(this.mousedOverSeg)},t}(f.default);t.default=e}
102,function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(15),e=i(237),o=i(236),s=i(64),h=i(235),c=i(234),l=i(233),r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t}(f.default);t.default=r;r.prototype.dateClickingClass=e.default;r.prototype.dateSelectingClass=o.default;r.prototype.eventPointingClass=s.default;r.prototype.eventDraggingClass=h.default;r.prototype.eventResizingClass=c.default;r.prototype.externalDroppingClass=l.default},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var s=i(2),r=i(3),h=i(4),f=i(58),c=i(227),e=i(5),o=i(12),l=i(34),a=i(61),v=i(65),y=i(42),p=i(60),w=i(243),b=i(244),k=i(245),u=function(n){function t(t){var i=n.call(this,t)||this;return i.cellWeekNumbersVisible=!1,i.bottomCoordPadding=0,i.isRigid=!1,i.hasAllDayBusinessHours=!0,i}return s.__extends(t,n),t.prototype.componentFootprintToSegs=function(n){for(var r=this.sliceRangeByRow(n.unzonedRange),t,i=0;i<r.length;i++)t=r[i],this.isRTL?(t.leftCol=this.daysPerRow-1-t.lastRowDayIndex,t.rightCol=this.daysPerRow-1-t.firstRowDayIndex):(t.leftCol=t.firstRowDayIndex,t.rightCol=t.lastRowDayIndex);return r},t.prototype.renderDates=function(n){this.dateProfile=n;this.updateDayTable();this.renderGrid()},t.prototype.unrenderDates=function(){this.removeSegPopover()},t.prototype.renderGrid=function(){var i=this.view,r=this.rowCnt,e=this.colCnt,u="",n,t;for(this.headContainerEl&&this.headContainerEl.html(this.renderHeadHtml()),n=0;n<r;n++)u+=this.renderDayRowHtml(n,this.isRigid);for(this.el.html(u),this.rowEls=this.el.find(".fc-row"),this.cellEls=this.el.find(".fc-day, .fc-disabled-day"),this.rowCoordCache=new f.default({els:this.rowEls,isVertical:!0}),this.colCoordCache=new f.default({els:this.cellEls.slice(0,this.colCnt),isHorizontal:!0}),n=0;n<r;n++)for(t=0;t<e;t++)this.publiclyTrigger("dayRender",{context:i,args:[this.getCellDate(n,t),this.getCellEl(n,t),i]})},t.prototype.renderDayRowHtml=function(n,t){var i=this.view.calendar.theme,r=["fc-row","fc-week",i.getClass("dayRow")];return t&&r.push("fc-rigid"),'<div class="'+r.join(" ")+'"><div class="fc-bg"><table class="'+i.getClass("tableGrid")+'">'+this.renderBgTrHtml(n)+'<\/table><\/div><div class="fc-content-skeleton"><table>'+(this.getIsNumbersVisible()?"<thead>"+this.renderNumberTrHtml(n)+"<\/thead>":"")+"<\/table><\/div><\/div>"},t.prototype.getIsNumbersVisible=function(){return this.getIsDayNumbersVisible()||this.cellWeekNumbersVisible},t.prototype.getIsDayNumbersVisible=function(){return this.rowCnt>1},t.prototype.renderNumberTrHtml=function(n){return"<tr>"+(this.isRTL?"":this.renderNumberIntroHtml(n))+this.renderNumberCellsHtml(n)+(this.isRTL?this.renderNumberIntroHtml(n):"")+"<\/tr>"},t.prototype.renderNumberIntroHtml=function(){return this.renderIntroHtml()},t.prototype.renderNumberCellsHtml=function(n){for(var i=[],r,t=0;t<this.colCnt;t++)r=this.getCellDate(n,t),i.push(this.renderNumberCellHtml(r));return i.join("")},t.prototype.renderNumberCellHtml=function(n){var r=this.view,t="",u=this.dateProfile.activeUnzonedRange.containsDate(n),f=this.getIsDayNumbersVisible()&&u,i,e;return!f&&!this.cellWeekNumbersVisible?"<td><\/td>":(i=this.getDayClasses(n),i.unshift("fc-day-top"),this.cellWeekNumbersVisible&&(e=n._locale._fullCalendar_weekCalc==="ISO"?1:n._locale.firstDayOfWeek()),t+='<td class="'+i.join(" ")+'"'+(u?' data-date="'+n.format()+'"':"")+">",this.cellWeekNumbersVisible&&n.day()===e&&(t+=r.buildGotoAnchorHtml({date:n,type:"week"},{"class":"fc-week-number"},n.format("w"))),f&&(t+=r.buildGotoAnchorHtml(n,{"class":"fc-day-number"},n.format("D"))),t+"<\/td>")},t.prototype.prepareHits=function(){this.colCoordCache.build();this.rowCoordCache.build();this.rowCoordCache.bottoms[this.rowCnt-1]+=this.bottomCoordPadding},t.prototype.releaseHits=function(){this.colCoordCache.clear();this.rowCoordCache.clear()},t.prototype.queryHit=function(n,t){if(this.colCoordCache.isLeftInBounds(n)&&this.rowCoordCache.isTopInBounds(t)){var i=this.colCoordCache.getHorizontalIndex(n),r=this.rowCoordCache.getVerticalIndex(t);if(r!=null&&i!=null)return this.getCellHit(r,i)}},t.prototype.getHitFootprint=function(n){var t=this.getCellRange(n.row,n.col);
102return new o.default(new e.default(t.start,t.end),!0)},t.prototype.getHitEl=function(n){return this.getCellEl(n.row,n.col)},t.prototype.getCellHit=function(n,t){return{row:n,col:t,component:this,left:this.colCoordCache.getLeftOffset(t),right:this.colCoordCache.getRightOffset(t),top:this.rowCoordCache.getTopOffset(n),bottom:this.rowCoordCache.getBottomOffset(n)}},t.prototype.getCellEl=function(n,t){return this.cellEls.eq(n*this.colCnt+t)},t.prototype.executeEventUnrender=function(){this.removeSegPopover();n.prototype.executeEventUnrender.call(this)},t.prototype.getOwnEventSegs=function(){return n.prototype.getOwnEventSegs.call(this).concat(this.popoverSegs||[])},t.prototype.renderDrag=function(n,t,i){for(var r=0;r<n.length;r++)this.renderHighlight(n[r].componentFootprint);if(n.length&&t&&t.component!==this)return this.helperRenderer.renderEventDraggingFootprints(n,t,i),!0},t.prototype.unrenderDrag=function(){this.unrenderHighlight();this.helperRenderer.unrender()},t.prototype.renderEventResize=function(n,t,i){for(var r=0;r<n.length;r++)this.renderHighlight(n[r].componentFootprint);this.helperRenderer.renderEventResizingFootprints(n,t,i)},t.prototype.unrenderEventResize=function(){this.unrenderHighlight();this.helperRenderer.unrender()},t.prototype.removeSegPopover=function(){this.segPopover&&this.segPopover.hide()},t.prototype.limitRows=function(n){for(var r=this.eventRenderer.rowStructs||[],i,t=0;t<r.length;t++)this.unlimitRow(t),i=n?typeof n=="number"?n:this.computeRowLevelLimit(t):!1,i!==!1&&this.limitRow(t,i)},t.prototype.computeRowLevelLimit=function(n){function s(n,t){i=Math.max(i,r(t).outerHeight())}for(var e=this.rowEls.eq(n),o=e.height(),f=this.eventRenderer.rowStructs[n].tbodyEl.children(),u,i,t=0;t<f.length;t++)if(u=f.eq(t).removeClass("fc-limited"),i=0,u.find("> td > :first-child").each(s),u.position().top+i>o)return t;return!1},t.prototype.limitRow=function(n,t){var g=this,f=this.eventRenderer.rowStructs[n],y=[],i=0,p,w,b,c,e,u,k,l,o,nt,d,s,a,h,v,tt=function(f){while(i<f)u=g.getCellSegs(n,i,t),u.length&&(o=w[t-1][i],v=g.renderMoreLink(n,i,u),h=r("<div>").append(v),o.append(h),y.push(h[0])),i++};if(t&&t<f.segLevels.length){for(p=f.segLevels[t-1],w=f.cellMatrix,b=f.tbodyEl.children().slice(t).addClass("fc-limited").get(),c=0;c<p.length;c++){for(e=p[c],tt(e.leftCol),l=[],k=0;i<=e.rightCol;)u=this.getCellSegs(n,i,t),l.push(u),k+=u.length,i++;if(k){for(o=w[t-1][e.leftCol],nt=o.attr("rowspan")||1,d=[],s=0;s<l.length;s++)a=r('<td class="fc-more-cell">').attr("rowspan",nt),u=l[s],v=this.renderMoreLink(n,e.leftCol+s,[e].concat(u)),h=r("<div>").append(v),a.append(h),d.push(a[0]),y.push(a[0]);o.addClass("fc-limited").after(r(d));b.push(o[0])}}tt(this.colCnt);f.moreEls=r(y);f.limitedEls=r(b)}},t.prototype.unlimitRow=function(n){var t=this.eventRenderer.rowStructs[n];t.moreEls&&(t.moreEls.remove(),t.moreEls=null);t.limitedEls&&(t.limitedEls.removeClass("fc-limited"),t.limitedEls=null)},t.prototype.renderMoreLink=function(n,t,i){var u=this,f=this.view;return r('<a class="fc-more">').text(this.getMoreLinkText(i.length)).on("click",function(e){var o=u.opt("eventLimitClick"),s=u.getCellDate(n,t),h=r(e.currentTarget),l=u.getCellEl(n,t),a=u.getCellSegs(n,t),c=u.resliceDaySegs(a,s),v=u.resliceDaySegs(i,s);typeof o=="function"&&(o=u.publiclyTrigger("eventLimitClick",{context:f,args:[{date:s.clone(),dayEl:l,moreEl:h,segs:c,hiddenSegs:v},e,f]}));o==="popover"?u.showSegPopover(n,t,h,c):typeof o=="string"&&f.calendar.zoomTo(s,o)})},t.prototype.showSegPopover=function(n,t,i,r){var u=this,e=this.view,o=i.parent(),s,f;s=this.rowCnt===1?e.el:this.rowEls.eq(n);f={className:"fc-more-popover "+e.calendar.theme.getClass("popover"),content:this.renderSegPopoverContent(n,t,r),parentEl:e.el,top:s.offset().top,autoHide:!0,viewportConstrain:this.opt("popoverViewportConstrain"),hide:function(){u.popoverSegs&&u.triggerBeforeEventSegsDestroyed(u.popoverSegs);u.segPopover.removeElement();u.segPopover=null;u.popoverSegs=null}};this.isRTL?f.right=o.offset().left+o.outerWidth()+1:f.left=o.offset().left-1;this.segPopover=new c.default(f);this.segPopover.show();this.bindAllSegHandlersToEl(this.segPopover.el);this.triggerAfterEventSegsRendered(r)},t.prototype.renderSegPopoverContent=function(n,t,i){var o=this.view,f=o.calendar.theme,s=this.getCellDate(n,t).format(this.opt("dayPopoverFormat")),e=r('<div class="fc-header '+f.getClass("popoverHeader")+'"><span class="fc-close '+f.getIconClass("close")+'"><\/span><span class="fc-title">'+h.htmlEscape(s)+'<\/span><div class="fc-clear"><\/div><\/div><div class="fc-body '+f.getClass("popoverContent")+'"><div class="fc-event-container"><\/div><\/div>'),c=e.find(".fc-event-container"),u;
102for(i=this.eventRenderer.renderFgSegEls(i,!0),this.popoverSegs=i,u=0;u<i.length;u++)this.hitsNeeded(),i[u].hit=this.getCellHit(n,t),this.hitsNotNeeded(),c.append(i[u].el);return e},t.prototype.resliceDaySegs=function(n,t){for(var h=t.clone(),c=h.clone().add(1,"days"),a=new e.default(h,c),s=[],i,u,f=0;f<n.length;f++)i=n[f],u=i.footprint.componentFootprint.unzonedRange.intersect(a),u&&s.push(r.extend({},i,{footprint:new l.default(new o.default(u,i.footprint.componentFootprint.isAllDay),i.footprint.eventDef,i.footprint.eventInstance),isStart:i.isStart&&u.isStart,isEnd:i.isEnd&&u.isEnd}));return this.eventRenderer.sortEventSegs(s),s},t.prototype.getMoreLinkText=function(n){var t=this.opt("eventLimitText");return typeof t=="function"?t(n):"+"+n+" "+t},t.prototype.getCellSegs=function(n,t,i){for(var f=this.eventRenderer.rowStructs[n].segMatrix,r=i||0,e=[],u;r<f.length;)u=f[r][t],u&&e.push(u),r++;return e},t}(y.default);t.default=u;u.prototype.eventRendererClass=w.default;u.prototype.businessHourRendererClass=a.default;u.prototype.helperRendererClass=b.default;u.prototype.fillRendererClass=k.default;v.default.mixInto(u);p.default.mixInto(u)},function(n,t,i){function l(n){return function(n){function t(){var t=n!==null&&n.apply(this,arguments)||this;return t.colWeekNumbersVisible=!1,t}return f.__extends(t,n),t.prototype.renderHeadIntroHtml=function(){var n=this.view;return this.colWeekNumbersVisible?'<th class="fc-week-number '+n.calendar.theme.getClass("widgetHeader")+'" '+n.weekNumberStyleAttr()+"><span>"+r.htmlEscape(this.opt("weekNumberTitle"))+"<\/span><\/th>":""},t.prototype.renderNumberIntroHtml=function(n){var t=this.view,i=this.getCellDate(n,0);return this.colWeekNumbersVisible?'<td class="fc-week-number" '+t.weekNumberStyleAttr()+">"+t.buildGotoAnchorHtml({date:i,type:"week",forceOff:this.colCnt===1},i.format("w"))+"<\/td>":""},t.prototype.renderBgIntroHtml=function(){var n=this.view;return this.colWeekNumbersVisible?'<td class="fc-week-number '+n.calendar.theme.getClass("widgetContent")+'" '+n.weekNumberStyleAttr()+"><\/td>":""},t.prototype.renderIntroHtml=function(){var n=this.view;return this.colWeekNumbersVisible?'<td class="fc-week-number" '+n.weekNumberStyleAttr()+"><\/td>":""},t.prototype.getIsNumbersVisible=function(){return e.default.prototype.getIsNumbersVisible.apply(this,arguments)||this.colWeekNumbersVisible},t}(n)}Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),o=i(3),r=i(4),s=i(41),h=i(43),c=i(68),e=i(66),u=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.dayGrid=r.instantiateDayGrid(),r.dayGrid.isRigid=r.hasRigidRows(),r.opt("weekNumbers")&&(r.opt("weekNumbersWithinDays")?(r.dayGrid.cellWeekNumbersVisible=!0,r.dayGrid.colWeekNumbersVisible=!1):(r.dayGrid.cellWeekNumbersVisible=!1,r.dayGrid.colWeekNumbersVisible=!0)),r.addChild(r.dayGrid),r.scroller=new s.default({overflowX:"hidden",overflowY:"auto"}),r}return f.__extends(t,n),t.prototype.instantiateDayGrid=function(){var n=l(this.dayGridClass);return new n(this)},t.prototype.executeDateRender=function(t){this.dayGrid.breakOnWeeks=/year|month|week/.test(t.currentRangeUnit);n.prototype.executeDateRender.call(this,t)},t.prototype.renderSkeleton=function(){var n,t;this.el.addClass("fc-basic-view").html(this.renderSkeletonHtml());this.scroller.render();n=this.scroller.el.addClass("fc-day-grid-container");t=o('<div class="fc-day-grid">').appendTo(n);this.el.find(".fc-body > tr > td").append(n);this.dayGrid.headContainerEl=this.el.find(".fc-head-container");this.dayGrid.setElement(t)},t.prototype.unrenderSkeleton=function(){this.dayGrid.removeElement();this.scroller.destroy()},t.prototype.renderSkeletonHtml=function(){var n=this.calendar.theme;return'<table class="'+n.getClass("tableGrid")+'">'+(this.opt("columnHeader")?'<thead class="fc-head"><tr><td class="fc-head-container '+n.getClass("widgetHeader")+'">&nbsp;<\/td><\/tr><\/thead>':"")+'<tbody class="fc-body"><tr><td class="'+n.getClass("widgetContent")+'"><\/td><\/tr><\/tbody><\/table>'},t.prototype.weekNumberStyleAttr=function(){return this.weekNumberWidth!=null?'style="width:'+this.weekNumberWidth+'px"':""},t.prototype.hasRigidRows=function(){var n=this.opt("eventLimit");return n&&typeof n!="number"},t.prototype.updateSize=function(t,i,u){var e=this.opt("eventLimit"),s=this.dayGrid.headContainerEl.find(".fc-row"),f,o;if(!this.dayGrid.rowEls){i||(f=this.computeScrollerHeight(t),this.scroller.setHeight(f));return}n.prototype.updateSize.call(this,t,i,u);this.dayGrid.colWeekNumbersVisible&&(this.weekNumberWidth=r.matchCellWidths(this.el.find(".fc-week-number")));this.scroller.clear();r.uncompensateScroll(s);this.dayGrid.removeSegPopover();e&&typeof e=="number"&&this.dayGrid.limitRows(e);f=this.computeScrollerHeight(t);this.setGridHeight(f,i);e&&typeof e!="number"&&this.dayGrid.limitRows(e);i||(this.scroller.setHeight(f),o=this.scroller.getScrollbarWidths(),(o.left||o.right)&&(r.compensateScroll(s,o),f=this.computeScrollerHeight(t),this.scroller.setHeight(f)),this.scroller.lockOverflow(o))},t.prototype.computeScrollerHeight=function(n){return n-r.subtractInnerElHe
102ight(this.el,this.scroller.el)},t.prototype.setGridHeight=function(n,t){t?r.undistributeHeight(this.dayGrid.rowEls):r.distributeHeight(this.dayGrid.rowEls,n,!0)},t.prototype.computeInitialDateScroll=function(){return{top:0}},t.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},t.prototype.applyDateScroll=function(n){n.top!==undefined&&this.scroller.setScrollTop(n.top)},t}(h.default);t.default=u;u.prototype.dateProfileGeneratorClass=c.default;u.prototype.dayGridClass=e.default},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(5),f=i(55),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.buildRenderRange=function(t,i,r){var e=n.prototype.buildRenderRange.call(this,t,i,r),o=this.msToUtcMoment(e.startMs,r),f=this.msToUtcMoment(e.endMs,r);return/^(year|month)$/.test(i)&&(o.startOf("week"),f.weekday()&&f.add(1,"week").startOf("week")),new u.default(o,f)},t}(f.default);t.default=e},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(n,t,i){function h(n,t,i){for(var r=0;r<n.length;r++)if(!t(n[r].eventInstance.toLegacy(),i?i.toLegacy():null))return!1;return!0}function c(n,t){for(var e=t.toLegacy(),u,f,r,i=0;i<n.length;i++)if((u=n[i].eventInstance,f=u.def,r=f.getOverlap(),r===!1)||typeof r=="function"&&!r(u.toLegacy(),e))return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0});var u=i(5),f=i(12),e=i(36),o=i(6),r=i(19),s=function(){function n(n,t){this.eventManager=n;this._calendar=t}return n.prototype.opt=function(n){return this._calendar.opt(n)},n.prototype.isEventInstanceGroupAllowed=function(n){for(var u=n.getEventDef(),i=this.eventRangesToEventFootprints(n.getAllEventRanges()),e=this.getPeerEventInstances(u),o=e.map(r.eventInstanceToEventRange),s=this.eventRangesToEventFootprints(o),h=u.getConstraint(),c=u.getOverlap(),f=this.opt("eventAllow"),t=0;t<i.length;t++)if(!this.isFootprintAllowed(i[t].componentFootprint,s,h,c,i[t].eventInstance))return!1;if(f)for(t=0;t<i.length;t++)if(f(i[t].componentFootprint.toLegacy(this._calendar),i[t].getEventLegacy())===!1)return!1;return!0},n.prototype.getPeerEventInstances=function(n){return this.eventManager.getEventInstancesWithoutId(n.id)},n.prototype.isSelectionFootprintAllowed=function(n){var i=this.eventManager.getEventInstances(),u=i.map(r.eventInstanceToEventRange),f=this.eventRangesToEventFootprints(u),t;return this.isFootprintAllowed(n,f,this.opt("selectConstraint"),this.opt("selectOverlap"))?(t=this.opt("selectAllow"),t?t(n.toLegacy(this._calendar))!==!1:!0):!1},n.prototype.isFootprintAllowed=function(n,t,i,r,u){var e,f;if(i!=null&&(e=this.constraintValToFootprints(i,n.isAllDay),!this.isFootprintWithinConstraints(n,e)))return!1;if(f=this.collectOverlapEventFootprints(t,n),r===!1){if(f.length)return!1}else if(typeof r=="function"&&!h(f,r,u))return!1;return u&&!c(f,u)?!1:!0},n.prototype.isFootprintWithinConstraints=function(n,t){for(var i=0;i<t.length;i++)if(this.footprintContainsFootprint(t[i],n))return!0;return!1},n.prototype.constraintValToFootprints=function(n,t){var i;return n==="businessHours"?this.buildCurrentBusinessFootprints(t):typeof n=="object"?(i=this.parseEventDefToInstances(n),i?this.eventInstancesToFootprints(i):this.parseFootprints(n)):n!=null?(i=this.eventManager.getEventInstancesWithId(n),this.eventInstancesToFootprints(i)):void 0},n.prototype.buildCurrentBusinessFootprints=function(n){var t=this._calendar.view,r=t.get("businessHourGenerator"),u=t.dateProfile.activeUnzonedRange,i=r.buildEventInstanceGroup(n,u);return i?this.eventInstancesToFootprints(i.eventInstances):[]},n.prototype.eventInstancesToFootprints=function(n){var t=n.map(r.eventInstanceToEventRange),i=this.eventRangesToEventFootprints(t);return i.map(r.eventFootprintToComponentFootprint)},n.prototype.collectOverlapEventFootprints=function(n,t){for(var r=[],i=0;i<n.length;i++)this.footprintsIntersect(t,n[i].componentFootprint)&&r.push(n[i]);return r},n.prototype.parseEventDefToInstances=function(n){var i=this.eventManager,t=e.default.parse(n,new o.default(this._calendar));return t?t.buildInstances(i.currentPeriod.unzonedRange):!1},n.prototype.eventRangesToEventFootprints=function(n){for(var i=[],t=0;t<n.length;t++)i.push.apply(i,this.eventRangeToEventFootprints(n[t]));return i},n.prototype.eventRangeToEventFootprints=function(n){return[r.eventRangeToEventFootprint(n)]},n.prototype.parseFootprints=function(n){var t,i;return n.start&&(t=this._calendar.moment(n.start),t.isValid()||(t=null)),n.end&&(i=this._calendar.moment(n.end),i.isValid()||(i=null)),[new f.default(new u.default(t,i),t&&!t.hasTime()||i&&!i.hasTime())]},n.prototype.footprintContainsFootprint=function(n,t){return n.unzonedRange.containsRange(t.unzonedRange)},n.prototype.footprintsIntersect=function(n,t){return n.unzonedRange.intersectsWith(t.unzonedRange)},n}();t.default=s}
102,function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),u=i(19),f=i(20),e=i(54),o=i(6),s={start:"09:00",end:"17:00",dow:[1,2,3,4,5],rendering:"inverse-background"},h=function(){function n(n,t){this.rawComplexDef=n;this.calendar=t}return n.prototype.buildEventInstanceGroup=function(n,t){var i=this.buildEventDefs(n),r;if(i.length)return r=new f.default(u.eventDefsToEventInstances(i,t)),r.explicitEventDef=i[0],r},n.prototype.buildEventDefs=function(n){var i=this.rawComplexDef,t=[],f=!1,u,e=[];for(i===!0?t=[{}]:r.isPlainObject(i)?t=[i]:r.isArray(i)&&(t=i,f=!0),u=0;u<t.length;u++)(!f||t[u].dow)&&e.push(this.buildEventDef(n,t[u]));return e},n.prototype.buildEventDef=function(n,t){var i=r.extend({},s,t);return n&&(i.start=null,i.end=null),e.default.parse(i,new o.default(this.calendar))},n}();t.default=h},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var e=i(3),r=i(4),u=i(21),o=i(13),s=i(5),h=i(20),f=function(){function n(n,t,i){this.pendingCnt=0;this.freezeDepth=0;this.stuntedReleaseCnt=0;this.releaseCnt=0;this.start=n;this.end=t;this.timezone=i;this.unzonedRange=new s.default(n.clone().stripZone(),t.clone().stripZone());this.requestsByUid={};this.eventDefsByUid={};this.eventDefsById={};this.eventInstanceGroupsById={}}return n.prototype.isWithinRange=function(n,t){return!n.isBefore(this.start)&&!t.isAfter(this.end)},n.prototype.requestSources=function(n){this.freeze();for(var t=0;t<n.length;t++)this.requestSource(n[t]);this.thaw()},n.prototype.requestSource=function(n){var i=this,t={source:n,status:"pending",eventDefs:null};this.requestsByUid[n.uid]=t;this.pendingCnt+=1;n.fetch(this.start,this.end,this.timezone).then(function(n){t.status!=="cancelled"&&(t.status="completed",t.eventDefs=n,i.addEventDefs(n),i.pendingCnt--,i.tryRelease())},function(){t.status!=="cancelled"&&(t.status="failed",i.pendingCnt--,i.tryRelease())})},n.prototype.purgeSource=function(n){var t=this.requestsByUid[n.uid];t&&(delete this.requestsByUid[n.uid],t.status==="pending"?(t.status="cancelled",this.pendingCnt--,this.tryRelease()):t.status==="completed"&&t.eventDefs.forEach(this.removeEventDef.bind(this)))},n.prototype.purgeAllSources=function(){var t=this.requestsByUid,i,n,r=0;for(i in t)n=t[i],n.status==="pending"?n.status="cancelled":n.status==="completed"&&r++;this.requestsByUid={};this.pendingCnt=0;r&&this.removeAllEventDefs()},n.prototype.getEventDefByUid=function(n){return this.eventDefsByUid[n]},n.prototype.getEventDefsById=function(n){var t=this.eventDefsById[n];return t?t.slice():[]},n.prototype.addEventDefs=function(n){for(var t=0;t<n.length;t++)this.addEventDef(n[t])},n.prototype.addEventDef=function(n){var r=this.eventDefsById,i=n.id,f=r[i]||(r[i]=[]),u=n.buildInstances(this.unzonedRange),t;for(f.push(n),this.eventDefsByUid[n.uid]=n,t=0;t<u.length;t++)this.addEventInstance(u[t],i)},n.prototype.removeEventDefsById=function(n){var t=this;this.getEventDefsById(n).forEach(function(n){t.removeEventDef(n)})},n.prototype.removeAllEventDefs=function(){var n=e.isEmptyObject(this.eventDefsByUid);this.eventDefsByUid={};this.eventDefsById={};this.eventInstanceGroupsById={};n||this.tryRelease()},n.prototype.removeEventDef=function(n){var i=this.eventDefsById,t=i[n.id];delete this.eventDefsByUid[n.uid];t&&(r.removeExact(t,n),t.length||delete i[n.id],this.removeEventInstancesForDef(n))},n.prototype.getEventInstances=function(){var t=this.eventInstanceGroupsById,n=[];for(var i in t)n.push.apply(n,t[i].eventInstances);return n},n.prototype.getEventInstancesWithId=function(n){var t=this.eventInstanceGroupsById[n];return t?t.eventInstances.slice():[]},n.prototype.getEventInstancesWithoutId=function(n){var i=this.eventInstanceGroupsById,t=[];for(var r in i)r!==n&&t.push.apply(t,i[r].eventInstances);return t},n.prototype.addEventInstance=function(n,t){var i=this.eventInstanceGroupsById,r=i[t]||(i[t]=new h.default);r.eventInstances.push(n);this.tryRelease()},n.prototype.removeEventInstancesForDef=function(n){var i=this.eventInstanceGroupsById,t=i[n.id],u;t&&(u=r.removeMatching(t.eventInstances,function(t){return t.def===n}),t.eventInstances.length||delete i[n.id],u&&this.tryRelease())},n.prototype.tryRelease=function(){this.pendingCnt||(this.freezeDepth?this.stuntedReleaseCnt++:this.release()
102)},n.prototype.release=function(){this.releaseCnt++;this.trigger("release",this.eventInstanceGroupsById)},n.prototype.whenReleased=function(){var n=this;return this.releaseCnt?u.default.resolve(this.eventInstanceGroupsById):u.default.construct(function(t){n.one("release",t)})},n.prototype.freeze=function(){this.freezeDepth++||(this.stuntedReleaseCnt=0)},n.prototype.thaw=function(){--this.freezeDepth||!this.stuntedReleaseCnt||this.pendingCnt||this.release()},n}();t.default=f;o.default.mixInto(f)},function(n,t,i){function y(n,t){return n.getPrimitive()===t.getPrimitive()}Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),f=i(4),e=i(219),o=i(56),s=i(6),h=i(38),c=i(9),l=i(20),a=i(13),v=i(7),u=function(){function n(n){this.calendar=n;this.stickySource=new o.default(n);this.otherSources=[]}return n.prototype.requestEvents=function(n,t,i,r){return!r&&this.currentPeriod&&this.currentPeriod.isWithinRange(n,t)&&i===this.currentPeriod.timezone||this.setPeriod(new e.default(n,t,i)),this.currentPeriod.whenReleased()},n.prototype.addSource=function(n){this.otherSources.push(n);this.currentPeriod&&this.currentPeriod.requestSource(n)},n.prototype.removeSource=function(n){f.removeExact(this.otherSources,n);this.currentPeriod&&this.currentPeriod.purgeSource(n)},n.prototype.removeAllSources=function(){this.otherSources=[];this.currentPeriod&&this.currentPeriod.purgeAllSources()},n.prototype.refetchSource=function(n){var t=this.currentPeriod;t&&(t.freeze(),t.purgeSource(n),t.requestSource(n),t.thaw())},n.prototype.refetchAllSources=function(){var n=this.currentPeriod;n&&(n.freeze(),n.purgeAllSources(),n.requestSources(this.getSources()),n.thaw())},n.prototype.getSources=function(){return[this.stickySource].concat(this.otherSources)},n.prototype.multiQuerySources=function(n){n?r.isArray(n)||(n=[n]):n=[];for(var i=[],t=0;t<n.length;t++)i.push.apply(i,this.querySources(n[t]));return i},n.prototype.querySources=function(n){for(var u=this.otherSources,t,i=0;i<u.length;i++)if(t=u[i],t===n)return[t];return(t=this.getSourceById(s.default.normalizeId(n)),t)?[t]:(n=h.default.parse(n,this.calendar),n?r.grep(u,function(t){return y(n,t)}):void 0)},n.prototype.getSourceById=function(n){return r.grep(this.otherSources,function(t){return t.id&&t.id===n})[0]},n.prototype.setPeriod=function(n){this.currentPeriod&&(this.unbindPeriod(this.currentPeriod),this.currentPeriod=null);this.currentPeriod=n;this.bindPeriod(n);n.requestSources(this.getSources())},n.prototype.bindPeriod=function(n){this.listenTo(n,"release",function(n){this.trigger("release",n)})},n.prototype.unbindPeriod=function(n){this.stopListeningTo(n)},n.prototype.getEventDefByUid=function(n){if(this.currentPeriod)return this.currentPeriod.getEventDefByUid(n)},n.prototype.addEventDef=function(n,t){t&&this.stickySource.addEventDef(n);this.currentPeriod&&this.currentPeriod.addEventDef(n)},n.prototype.removeEventDefsById=function(n){this.getSources().forEach(function(t){t.removeEventDefsById(n)});this.currentPeriod&&this.currentPeriod.removeEventDefsById(n)},n.prototype.removeAllEventDefs=function(){this.getSources().forEach(function(n){n.removeAllEventDefs()});this.currentPeriod&&this.currentPeriod.removeAllEventDefs()},n.prototype.mutateEventsWithId=function(n,t){var i=this.currentPeriod,r,u=[];return i?(i.freeze(),r=i.getEventDefsById(n),r.forEach(function(n){i.removeEventDef(n);u.push(t.mutateSingle(n));i.addEventDef(n)}),i.thaw(),function(){i.freeze();for(var n=0;n<r.length;n++)i.removeEventDef(r[n]),u[n](),i.addEventDef(r[n]);i.thaw()}):function(){}},n.prototype.buildMutatedEventInstanceGroup=function(n,t){for(var f=this.getEventDefsById(n),r,u=[],i=0;i<f.length;i++)r=f[i].clone(),r instanceof c.default&&(t.mutateSingle(r),u.push.apply(u,r.buildInstances()));return new l.default(u)},n.prototype.freeze=function(){this.currentPeriod&&this.currentPeriod.freeze()},n.prototype.thaw=function(){this.currentPeriod&&this.currentPeriod.thaw()},n.prototype.getEventDefsById=function(n){return this.currentPeriod.getEventDefsById(n)},n.prototype.getEventInstances=function(){return this.currentPeriod.getEventInstances()},n.prototype.getEventInstancesWithId=function(n){return this.currentPeriod.getEventInstancesWithId(n)},n.prototype.getEventInstancesWithoutId=function(n){return this.currentPeriod.getEventInstancesWithoutId(n)},n}();t.default=u;a.default.mixInto(u);v.default.mixInto(u)}
102,function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(22),r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t}(f.default);t.default=r;r.prototype.classes={widget:"fc-unthemed",widgetHeader:"fc-widget-header",widgetContent:"fc-widget-content",buttonGroup:"fc-button-group",button:"fc-button",cornerLeft:"fc-corner-left",cornerRight:"fc-corner-right",stateDefault:"fc-state-default",stateActive:"fc-state-active",stateDisabled:"fc-state-disabled",stateHover:"fc-state-hover",stateDown:"fc-state-down",popoverHeader:"fc-widget-header",popoverContent:"fc-widget-content",headerRow:"fc-widget-header",dayRow:"fc-widget-content",listView:"fc-widget-content"};r.prototype.baseIconClass="fc-icon";r.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-left-single-arrow",next:"fc-icon-right-single-arrow",prevYear:"fc-icon-left-double-arrow",nextYear:"fc-icon-right-double-arrow"};r.prototype.iconOverrideOption="buttonIcons";r.prototype.iconOverrideCustomButtonOption="icon";r.prototype.iconOverridePrefix="fc-icon-"},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(22),r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t}(f.default);t.default=r;r.prototype.classes={widget:"ui-widget",widgetHeader:"ui-widget-header",widgetContent:"ui-widget-content",buttonGroup:"fc-button-group",button:"ui-button",cornerLeft:"ui-corner-left",cornerRight:"ui-corner-right",stateDefault:"ui-state-default",stateActive:"ui-state-active",stateDisabled:"ui-state-disabled",stateHover:"ui-state-hover",stateDown:"ui-state-down",today:"ui-state-highlight",popoverHeader:"ui-widget-header",popoverContent:"ui-widget-content",headerRow:"ui-widget-header",dayRow:"ui-widget-content",listView:"ui-widget-content"};r.prototype.baseIconClass="ui-icon";r.prototype.iconClasses={close:"ui-icon-closethick",prev:"ui-icon-circle-triangle-w",next:"ui-icon-circle-triangle-e",prevYear:"ui-icon-seek-prev",nextYear:"ui-icon-seek-next"};r.prototype.iconOverrideOption="themeButtonIcons";r.prototype.iconOverrideCustomButtonOption="themeIcon";r.prototype.iconOverridePrefix="ui-icon-"},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var e=i(2),r=i(3),o=i(21),u=i(6),f=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return e.__extends(t,n),t.parse=function(n,t){var i;return(r.isFunction(n.events)?i=n:r.isFunction(n)&&(i={events:n}),i)?u.default.parse.call(this,i,t):!1},t.prototype.fetch=function(n,t,i){var r=this;return this.calendar.pushLoading(),o.default.construct(function(u){r.func.call(r.calendar,n.clone(),t.clone(),i,function(n){r.calendar.popLoading();u(r.parseEventDefs(n))})})},t.prototype.getPrimitive=function(){return this.func},t.prototype.applyManualStandardProps=function(t){var i=n.prototype.applyManualStandardProps.call(this,t);return this.func=t.events,i},t}(u.default);t.default=f;f.defineStandardProps({events:!1})},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var o=i(2),r=i(3),u=i(4),s=i(21),f=i(6),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return o.__extends(t,n),t.parse=function(n,t){var i;return(typeof n.url=="string"?i=n:typeof n=="string"&&(i={url:n}),i)?f.default.parse.call(this,i,t):!1},t.prototype.fetch=function(n,i,f){var e=this,o=this.ajaxSettings,h=o.success,c=o.error,l=this.buildRequestParams(n,i,f);return this.calendar.pushLoading(),s.default.construct(function(n,i){r.ajax(r.extend({},t.AJAX_DEFAULTS,o,{url:e.url,data:l,success:function(t,f,o){var s;e.calendar.popLoading();t?(s=u.applyAll(h,e,[t,f,o]),r.isArray(s)&&(t=s),n(e.parseEventDefs(t))):i()},error:function(n,t,r){e.calendar.popLoading();u.applyAll(c,e,[n,t,r]);i()}}))})},t.prototype.buildRequestParams=function(n,t,i){var s=this.calendar,h=this.ajaxSettings,f,e,o,c,u={};return f=this.startParam,f==null&&(f=s.opt("startParam")),e=this.endParam,e==null&&(e=s.opt("endParam")),o=this.timezoneParam,o==null&&(o=s.opt("timezoneParam")),c=r.isFunction(h.data)?h.data():h.data||{},r.extend(u,c),u[f]=n.format(),u[e]=t.format(),i&&i!=="local"&&(u[o]=i),u},t.prototype.getPrimitive=function(){return this.url},t.prototype.applyMiscProps=function(n){this.ajaxSettings=n},t.AJAX_DEFAULTS={dataType:"json",cache:!1},t}(f.default);t.default=e;e.defineStandardProps({url:!0,startParam:!0,endParam:!0,timezoneParam:!0})}
102,function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n){this.items=n||[]}return n.prototype.proxyCall=function(n){for(var i,r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];return i=[],this.items.forEach(function(t){i.push(t[n].apply(t,r))}),i},n}();t.default=i},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(3),r=i(4),e=i(7),f=function(){function n(n,t){this.isFollowing=!1;this.isHidden=!1;this.isAnimating=!1;this.options=t=t||{};this.sourceEl=n;this.parentEl=t.parentEl?u(t.parentEl):n.parent()}return n.prototype.start=function(n){this.isFollowing||(this.isFollowing=!0,this.y0=r.getEvY(n),this.x0=r.getEvX(n),this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),r.getEvIsTouch(n)?this.listenTo(u(document),"touchmove",this.handleMove):this.listenTo(u(document),"mousemove",this.handleMove))},n.prototype.stop=function(n,t){var i=this,r=this.options.revertDuration,f=function(){i.isAnimating=!1;i.removeElement();i.top0=i.left0=null;t&&t()};this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,this.stopListeningTo(u(document)),n&&r&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:r,complete:f})):f())},n.prototype.getEl=function(){var n=this.el;return n||(n=this.el=this.sourceEl.clone().addClass(this.options.additionalClass||"").css({position:"absolute",visibility:"",display:this.isHidden?"none":"",margin:0,right:"auto",bottom:"auto",width:this.sourceEl.width(),height:this.sourceEl.height(),opacity:this.options.opacity||"",zIndex:this.options.zIndex}),n.addClass("fc-unselectable"),n.appendTo(this.parentEl)),n},n.prototype.removeElement=function(){this.el&&(this.el.remove(),this.el=null)},n.prototype.updatePosition=function(){var n,t;this.getEl();this.top0==null&&(n=this.sourceEl.offset(),t=this.el.offsetParent().offset(),this.top0=n.top-t.top,this.left0=n.left-t.left);this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},n.prototype.handleMove=function(n){this.topDelta=r.getEvY(n)-this.y0;this.leftDelta=r.getEvX(n)-this.x0;this.isHidden||this.updatePosition()},n.prototype.hide=function(){this.isHidden||(this.isHidden=!0,this.el&&this.el.hide())},n.prototype.show=function(){this.isHidden&&(this.isHidden=!1,this.updatePosition(),this.getEl().show())},n}();t.default=f;e.default.mixInto(f)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),f=i(4),e=i(7),u=function(){function n(n){this.isHidden=!0;this.margin=10;this.options=n||{}}return n.prototype.show=function(){this.isHidden&&(this.el||this.render(),this.el.show(),this.position(),this.isHidden=!1,this.trigger("show"))},n.prototype.hide=function(){this.isHidden||(this.el.hide(),this.isHidden=!0,this.trigger("hide"))},n.prototype.render=function(){var t=this,n=this.options;this.el=r('<div class="fc-popover">').addClass(n.className||"").css({top:0,left:0}).append(n.content).appendTo(n.parentEl);this.el.on("click",".fc-close",function(){t.hide()});n.autoHide&&this.listenTo(r(document),"mousedown",this.documentMousedown)},n.prototype.documentMousedown=function(n){this.el&&!r(n.target).closest(this.el).length&&this.hide()},n.prototype.removeElement=function(){this.hide();this.el&&(this.el.remove(),this.el=null);this.stopListeningTo(r(document),"mousedown")},n.prototype.position=function(){var n=this.options,c=this.el.offsetParent().offset(),l=this.el.outerWidth(),a=this.el.outerHeight(),s=r(window),t=f.getScrollParent(this.el),e,o,h,i,u;i=n.top||0;u=n.left!==undefined?n.left:n.right!==undefined?n.right-l:0;t.is(window)||t.is(document)?(t=s,e=0,o=0):(h=t.offset(),e=h.top,o=h.left);e+=s.scrollTop();o+=s.scrollLeft();n.viewportConstrain!==!1&&(i=Math.min(i,e+t.outerHeight()-a-this.margin),i=Math.max(i,e+this.margin),u=Math.min(u,o+t.outerWidth()-l-this.margin),u=Math.max(u,o+this.margin));this.el.css({top:i-c.top,left:u-c.left})},n.prototype.trigger=function(n){this.options[n]&&this.options[n].apply(this,Array.prototype.slice.call(arguments,1))},n}();t.default=u;e.default.mixInto(u)}
102,function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(13),r=function(){function n(){this.q=[];this.isPaused=!1;this.isRunning=!1}return n.prototype.queue=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.q.push.apply(this.q,t);this.tryStart()},n.prototype.pause=function(){this.isPaused=!0},n.prototype.resume=function(){this.isPaused=!1;this.tryStart()},n.prototype.getIsIdle=function(){return!this.isRunning&&!this.isPaused},n.prototype.tryStart=function(){!this.isRunning&&this.canRunNext()&&(this.isRunning=!0,this.trigger("start"),this.runRemaining())},n.prototype.canRunNext=function(){return!this.isPaused&&this.q.length},n.prototype.runRemaining=function(){var t=this,i,n;do if(i=this.q.shift(),n=this.runTask(i),n&&n.then){n.then(function(){t.canRunNext()&&t.runRemaining()});return}while(this.canRunNext());this.trigger("stop");this.isRunning=!1;this.tryStart()},n.prototype.runTask=function(n){return n()},n}();t.default=r;u.default.mixInto(r)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(228),f=function(n){function t(t){var i=n.call(this)||this;return i.waitsByNamespace=t||{},i}return r.__extends(t,n),t.prototype.queue=function(n,t,i){var u={func:n,namespace:t,type:i},r;t&&(r=this.waitsByNamespace[t]);this.waitNamespace&&(t===this.waitNamespace&&r!=null?this.delayWait(r):(this.clearWait(),this.tryStart()));this.compoundTask(u)&&(this.waitNamespace||r==null?this.tryStart():this.startWait(t,r))},t.prototype.startWait=function(n,t){this.waitNamespace=n;this.spawnWait(t)},t.prototype.delayWait=function(n){clearTimeout(this.waitId);this.spawnWait(n)},t.prototype.spawnWait=function(n){var t=this;this.waitId=setTimeout(function(){t.waitNamespace=null;t.tryStart()},n)},t.prototype.clearWait=function(){this.waitNamespace&&(clearTimeout(this.waitId),this.waitId=null,this.waitNamespace=null)},t.prototype.canRunNext=function(){var i,t;if(!n.prototype.canRunNext.call(this))return!1;if(this.waitNamespace){for(i=this.q,t=0;t<i.length;t++)if(i[t].namespace!==this.waitNamespace)return!0;return!1}return!0},t.prototype.runTask=function(n){n.func()},t.prototype.compoundTask=function(n){var i=this.q,r=!0,t,u;if(n.namespace&&n.type==="destroy")for(t=i.length-1;t>=0;t--)if(u=i[t],u.namespace===n.namespace)switch(u.type){case"init":r=!1;case"add":case"remove":i.splice(t,1)}return r&&i.push(n),r},t}(u.default);t.default=f},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(51),f=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.setElement=function(n){this.el=n;this.bindGlobalHandlers();this.renderSkeleton();this.set("isInDom",!0)},t.prototype.removeElement=function(){this.unset("isInDom");this.unrenderSkeleton();this.unbindGlobalHandlers();this.el.remove()},t.prototype.bindGlobalHandlers=function(){},t.prototype.unbindGlobalHandlers=function(){},t.prototype.renderSkeleton=function(){},t.prototype.unrenderSkeleton=function(){},t}(u.default);t.default=f},function(n,t,i){function a(n){var r,i,u=[],t;for(r in n)for(i=n[r].eventInstances,t=0;t<i.length;t++)u.push(i[t].toLegacy());return u}Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(3),e=i(0),r=i(4),o=i(11),s=i(49),h=i(230),c=i(19),l=function(n){function t(i,r){var u=n.call(this)||this;return u.isRTL=!1,u.hitsNeededDepth=0,u.hasAllDayBusinessHours=!1,u.isDatesRendered=!1,i&&(u.view=i),r&&(u.options=r),u.uid=String(t.guid++),u.childrenByUid={},u.nextDayThreshold=e.duration(u.opt("nextDayThreshold")),u.isRTL=u.opt("isRTL"),u.fillRendererClass&&(u.fillRenderer=new u.fillRendererClass(u)),u.eventRendererClass&&(u.eventRenderer=new u.eventRendererClass(u,u.fillRenderer)),u.helperRendererClass&&u.eventRenderer&&(u.helperRenderer=new u.helperRendererClass(u,u.eventRenderer)),u.businessHourRendererClass&&u.fillRenderer&&(u.businessHourRenderer=new u.businessHourRendererClass(u,u.fillRenderer)),u}return u.__extends(t,n),t.prototype.addChild=function(n){return this.childrenByUid[n.uid]?!1:(this.childrenByUid[n.uid]=n,!0)},t.prototype.removeChild=function(n){return this.childrenByUid[n.uid]?(delete this.childrenByUid[n.uid],!0):!1},t.prototype.updateSize=function(){this.callChildren("updateSize",arguments)},t.prototype.opt=function(n){return this._getView().opt(n)},t.prototype.publiclyTrigger=function(){for(var t,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];
102return t=this._getCalendar(),t.publiclyTrigger.apply(t,i)},t.prototype.hasPublicHandlers=function(){for(var t,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return t=this._getCalendar(),t.hasPublicHandlers.apply(t,i)},t.prototype.executeDateRender=function(n){this.dateProfile=n;this.renderDates(n);this.isDatesRendered=!0;this.callChildren("executeDateRender",arguments)},t.prototype.executeDateUnrender=function(){this.callChildren("executeDateUnrender",arguments);this.dateProfile=null;this.unrenderDates();this.isDatesRendered=!1},t.prototype.renderDates=function(){},t.prototype.unrenderDates=function(){},t.prototype.getNowIndicatorUnit=function(){},t.prototype.renderNowIndicator=function(){this.callChildren("renderNowIndicator",arguments)},t.prototype.unrenderNowIndicator=function(){this.callChildren("unrenderNowIndicator",arguments)},t.prototype.renderBusinessHours=function(n){this.businessHourRenderer&&this.businessHourRenderer.render(n);this.callChildren("renderBusinessHours",arguments)},t.prototype.unrenderBusinessHours=function(){this.callChildren("unrenderBusinessHours",arguments);this.businessHourRenderer&&this.businessHourRenderer.unrender()},t.prototype.executeEventRender=function(n){this.eventRenderer?(this.eventRenderer.rangeUpdated(),this.eventRenderer.render(n)):this.renderEvents&&this.renderEvents(a(n));this.callChildren("executeEventRender",arguments)},t.prototype.executeEventUnrender=function(){this.callChildren("executeEventUnrender",arguments);this.eventRenderer?this.eventRenderer.unrender():this.destroyEvents&&this.destroyEvents()},t.prototype.getBusinessHourSegs=function(){var n=this.getOwnBusinessHourSegs();return this.iterChildren(function(t){n.push.apply(n,t.getBusinessHourSegs())}),n},t.prototype.getOwnBusinessHourSegs=function(){return this.businessHourRenderer?this.businessHourRenderer.getSegs():[]},t.prototype.getEventSegs=function(){var n=this.getOwnEventSegs();return this.iterChildren(function(t){n.push.apply(n,t.getEventSegs())}),n},t.prototype.getOwnEventSegs=function(){return this.eventRenderer?this.eventRenderer.getSegs():[]},t.prototype.triggerAfterEventsRendered=function(){this.triggerAfterEventSegsRendered(this.getEventSegs());this.publiclyTrigger("eventAfterAllRender",{context:this,args:[this]})},t.prototype.triggerAfterEventSegsRendered=function(n){var t=this;this.hasPublicHandlers("eventAfterRender")&&n.forEach(function(n){var i;n.el&&(i=n.footprint.getEventLegacy(),t.publiclyTrigger("eventAfterRender",{context:i,args:[i,n.el,t]}))})},t.prototype.triggerBeforeEventsDestroyed=function(){this.triggerBeforeEventSegsDestroyed(this.getEventSegs())},t.prototype.triggerBeforeEventSegsDestroyed=function(n){var t=this;this.hasPublicHandlers("eventDestroy")&&n.forEach(function(n){var i;n.el&&(i=n.footprint.getEventLegacy(),t.publiclyTrigger("eventDestroy",{context:i,args:[i,n.el,t]}))})},t.prototype.showEventsWithId=function(n){this.getEventSegs().forEach(function(t){t.footprint.eventDef.id===n&&t.el&&t.el.css("visibility","")});this.callChildren("showEventsWithId",arguments)},t.prototype.hideEventsWithId=function(n){this.getEventSegs().forEach(function(t){t.footprint.eventDef.id===n&&t.el&&t.el.css("visibility","hidden")});this.callChildren("hideEventsWithId",arguments)},t.prototype.renderDrag=function(n,t,i){var r=!1;return this.iterChildren(function(u){u.renderDrag(n,t,i)&&(r=!0)}),r},t.prototype.unrenderDrag=function(){this.callChildren("unrenderDrag",arguments)},t.prototype.renderEventResize=function(){this.callChildren("renderEventResize",arguments)},t.prototype.unrenderEventResize=function(){this.callChildren("unrenderEventResize",arguments)},t.prototype.renderSelectionFootprint=function(n){this.renderHighlight(n);this.callChildren("renderSelectionFootprint",arguments)},t.prototype.unrenderSelection=function(){this.unrenderHighlight();this.callChildren("unrenderSelection",arguments)},t.prototype.renderHighlight=function(n){this.fillRenderer&&this.fillRenderer.renderFootprint("highlight",n,{getClasses:function(){return["fc-highlight"]}});this.callChildren("renderHighlight",arguments)},t.prototype.unrenderHighlight=function(){this.fillRenderer&&this.fillRenderer.unrender("highlight");this.callChildren("unrenderHighlight",arguments)},t.prototype.hitsNeeded=function(){this.hitsNeededDepth++||this.prepareHits();this.callChildren("hitsNeeded",arguments)},t.prototype.hitsNotNeeded=function(){this.hitsNeededDepth&&!--this.hitsNeededDepth&&this.releaseHits();this.callChildren("hitsNotNeeded",arguments)},t.prototype.prepareHits=function(){},t.prototype.releaseHits=function(){},t.prototype.queryHit=function(n,t){var r=this.childrenByUid,u,i;for(u in r)if(i=r[u].queryHit(n,t),i)break;return i},t.prototype.getSafeHitFootprint=function(n){var t=this.getHitFootprint(n);return this.dateProfile.activeUnzonedRange.containsRange(t.unzonedRange)?t:null},t.prototype.getHitFootprint=function(){},t.prototype.getHitEl=function(){},t.prototype.eventRangesToEventFootprints=function(n){for(var i=[],t=0;t<n.length;t++)i.push.apply(i,this.eventRangeToEventFootprints(n[t]));return i},t.prototype.eventRangeToEventFootprints=function(n){return[c.eventRangeToEventFootprint(n)]},t.prototype.eventFootprintsToSegs=function(n){for(var i=[],t=0;t<n.length;t++)i.push.apply(i,this.eventFootprintToSegs(n[t]));return i},t.prototype.eventFootprintToSegs=function(n){for(var u=n.componentFootprint.unzonedRange,r,t=this.componentFootprintToSegs(n.componentFootprint),i=0;i<t.length;i++)r=t[i],u.isStart||(r.isStart=!1),u.isEnd||(r.isEnd=!1),r.footprint=n;return t},t.prototype.componentFootprintToSegs=function(){return[]},t.prototype.callChildren=function(n,t){this.iterChildren(function(i){i[n].apply(i,t)})},t.prototype.iterChildren=function(n){var t=this.childrenByUid;for(var i in t)n(t[i])},t.prototype._getCalendar=function(){var n=this;return n.calendar||n.view.calendar},t.prototype._getView=function(){return this.view},t.prototype._getDateProfile=function(){return this._getView().get("dateProfile")},t.prototype.buildGotoAnchorHtml=function(n,t,i){var u,e,s,h;return f.isPlainObject(n)?(u=n.date,e=n.type,s=n.forceOff):u=n,u=o.default(u),h={date:u.format("YYYY-MM-DD"),type:e||"day"},typeof t=="string"&&(i=t,t=null),t=t?" "+r.attrsToStr(t):"",i=i||"",!s&&this.opt("navLinks")?"<a"+t+' data-goto="'+r.htmlEscape(JSON.stringify(h))+'">'+i+"<\/a>":"<span"+t+">"+i+"<\/span>"},t.prototype.getAllDayHtml=function(){return this.opt("allDayHtml")||r.htmlEscape(this.opt("allDayText"))},t.prototype.getDayClasses=function(n,t){var u=this._getView(),i=[],f;return this.dateProfile.activeUnzonedRange.containsDate(n)?(i.push("fc-"+r.dayIDs[n.day()]),u.isDateInOtherMonth(n,this.dateProfile)&&i.push("fc-other-month"),f=u.calendar.getNow(),n.isSame(f,"day")?(i.push("fc-today"),t!==!0&&i.push(u.calendar.theme.getClass("today"))):n<f?i.push("fc-past"):i.push("fc-future")):i.push("fc-disabled-day"),i},t.prototype.formatRange=function(n,t,i,r){var u=n.end;return t&&(u=u.clone().subtract(1)),s.formatRange(n.start,u,i,r,this.isRTL)},t.prototype.currentRangeAs=function(n){return this._getDateProfile().currentUnzonedRange.as(n)},t.prototype.computeDayRange=function(n){var r=this._getCalendar(
102),i=r.msToUtcMoment(n.startMs,!0),u=r.msToUtcMoment(n.endMs),f=+u.time(),t=u.clone().stripTime();return f&&f>=this.nextDayThreshold&&t.add(1,"days"),t<=i&&(t=i.clone().add(1,"days")),{start:i,end:t}},t.prototype.isMultiDayRange=function(n){var t=this.computeDayRange(n);return t.end.diff(t.start,"days")>1},t.guid=0,t}(h.default);t.default=l},function(n,t,i){function v(n,t){return t==null?n:r.isFunction(t)?n.filter(t):(t+="",n.filter(function(n){return n.id==t||n._id===t}))}Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),f=i(0),s=i(4),e=i(33),y=i(225),h=i(23),p=i(13),w=i(7),c=i(257),b=i(258),k=i(259),d=i(217),g=i(32),u=i(11),l=i(5),nt=i(12),tt=i(16),it=i(220),rt=i(218),a=i(38),ut=i(36),ft=i(9),et=i(39),ot=i(6),st=i(57),o=function(){function n(n,t){this.loadingLevel=0;this.ignoreUpdateViewSize=0;this.freezeContentHeightDepth=0;h.default.needed();this.el=n;this.viewsByType={};this.optionsManager=new b.default(this,t);this.viewSpecManager=new k.default(this.optionsManager,this);this.initMomentInternals();this.initCurrentDate();this.initEventManager();this.constraints=new d.default(this.eventManager,this);this.constructed()}return n.prototype.constructed=function(){},n.prototype.getView=function(){return this.view},n.prototype.publiclyTrigger=function(n,t){var f=this.opt(n),u,i;return r.isPlainObject(t)?(u=t.context,i=t.args):r.isArray(t)&&(i=t),u==null&&(u=this.el[0]),i||(i=[]),this.triggerWith(n,u,i),f?f.apply(u,i):void 0},n.prototype.hasPublicHandlers=function(n){return this.hasHandlers(n)||this.opt(n)},n.prototype.option=function(n,t){var i;if(typeof n=="string"){if(t===undefined)return this.optionsManager.get(n);i={};i[n]=t;this.optionsManager.add(i)}else typeof n=="object"&&this.optionsManager.add(n)},n.prototype.opt=function(n){return this.optionsManager.get(n)},n.prototype.instantiateView=function(n){var t=this.viewSpecManager.getViewSpec(n);if(!t)throw new Error('View type "'+n+'" is not valid');return new t["class"](this,t)},n.prototype.isValidViewType=function(n){return Boolean(this.viewSpecManager.getViewSpec(n))},n.prototype.changeView=function(n,t){t&&(t.start&&t.end?this.optionsManager.recordOverrides({visibleRange:t}):this.currentDate=this.moment(t).stripZone());this.renderView(n)},n.prototype.zoomTo=function(n,t){var i;t=t||"day";i=this.viewSpecManager.getViewSpec(t)||this.viewSpecManager.getUnitViewSpec(t);this.currentDate=n.clone();this.renderView(i?i.type:null)},n.prototype.initCurrentDate=function(){var n=this.opt("defaultDate");this.currentDate=n!=null?this.moment(n).stripZone():this.getNow()},n.prototype.prev=function(){var n=this.view,t=n.dateProfileGenerator.buildPrev(n.get("dateProfile"));t.isValid&&(this.currentDate=t.date,this.renderView())},n.prototype.next=function(){var n=this.view,t=n.dateProfileGenerator.buildNext(n.get("dateProfile"));t.isValid&&(this.currentDate=t.date,this.renderView())},n.prototype.prevYear=function(){this.currentDate.add(-1,"years");this.renderView()},n.prototype.nextYear=function(){this.currentDate.add(1,"years");this.renderView()},n.prototype.today=function(){this.currentDate=this.getNow();this.renderView()},n.prototype.gotoDate=function(n){this.currentDate=this.moment(n).stripZone();this.renderView()},n.prototype.incrementDate=function(n){this.currentDate.add(f.duration(n));this.renderView()},n.prototype.getDate=function(){return this.applyTimezone(this.currentDate)},n.prototype.pushLoading=function(){this.loadingLevel++||this.publiclyTrigger("loading",[!0,this.view])},n.prototype.popLoading=function(){--this.loadingLevel||this.publiclyTrigger("loading",[!1,this.view])},n.prototype.render=function(){this.contentEl?this.elementVisible()&&(this.calcSize(),this.updateViewSize()):this.initialRender()},n.prototype.initialRender=function(){var n=this,t=this.el;t.addClass("fc");t.on("click.fc","a[data-goto]",function(t){var o=r(t.currentTarget),f=o.data("goto"),e=n.moment(f.date),u=f.type,i=n.view.opt("navLink"+s.capitaliseFirstLetter(u)+"Click");typeof i=="function"?i(e,t):(typeof i=="string"&&(u=i),n.zoomTo(e,u))});this.optionsManager.watch("settingTheme",["?theme","?themeSystem"],function(i){var f=st.getThemeSystemClass(i.themeSystem||i.theme),r=new f(n.optionsManager),u=r.getClass("widget");n.theme=r;u&&t.addClass(u)},function(){var i=n.theme.getClass("widget");n.theme=null;i&&t.removeClass(i)});this.optionsManager.watch("settingBusinessHourGenerator",["?businessHours"],function(t){n.businessHourGenerator=new rt.default(t.businessHours,n);n.view&&n.view.set("businessHourGenerator",n.businessHourGenerator)},function(){n.businessHourGenerator=null});this.optionsManager.watch("applyingDirClasses",["?isRTL","?locale"],function(n){t.toggleClass("fc-ltr",!n.isRTL);t.toggleClass("fc-rtl",n.isRTL)});this.contentEl=r("<div class='fc-view-container'>").prependTo(t);this.initToolbars();this.renderHeader();this.renderFooter();this.renderView(this.opt("defaultView"));this.opt("handleWindowResize")&&r(window).resize(this.windowResizeProxy=s.debounce(this.windowResize.bind(this),this.opt("windowResizeDelay")))},n.prototype.destroy=function(){this.view&&this.clearView();this.toolbarsManager.proxyCall("removeElement");this.contentEl.remove();this.el.removeClass("fc fc-ltr fc-rtl");this.optionsManager.unwatch("settingTheme");this.optionsManager.unwatch("settingBusinessHourGenerator");this.el.off(".fc");this.windowResizeProxy&&(r(window).unbind("resize",this.windowResizeProxy),this.windowResizeProxy=null);h.default.unneeded()},n.prototype.elementVisible=function(){return this.el.is(":visible")},n.prototype.bindViewHandlers=function(n){var t=this;n.watch("titleForCalendar",["title"],function(i){n===t.view&&t.setToolbarsTitle(i.title)});n.watch("dateProfileForCalendar",["dateProfile"],function(i){n===t.view&&(t.currentDate=i.dateProfile.date,t.updateToolbarButtons(i.dateProfile))})},n.prototype.unbindViewHandlers=function(n){n.unwatch("titleForCalendar");n.unwatch("dateProfileForCalendar")},n.prototype.renderView=function(n){var i=this.view,t;this.freezeContentHeight();i&&n&&i.type!==n&&this.clearView();!this.view&&n&&(t=this.view=this.viewsByType[n]||(this.viewsByType[n]=this.instantiateView(n)),this.bindViewHandlers(t),t.startBatchRender(),t.setElement(r("<
102div class='fc-view fc-"+n+"-view'>").appendTo(this.contentEl)),this.toolbarsManager.proxyCall("activateButton",n));this.view&&(this.view.get("businessHourGenerator")!==this.businessHourGenerator&&this.view.set("businessHourGenerator",this.businessHourGenerator),this.view.setDate(this.currentDate),t&&t.stopBatchRender());this.thawContentHeight()},n.prototype.clearView=function(){var n=this.view;this.toolbarsManager.proxyCall("deactivateButton",n.type);this.unbindViewHandlers(n);n.removeElement();n.unsetDate();this.view=null},n.prototype.reinitView=function(){var n=this.view,t=n.queryScroll();this.freezeContentHeight();this.clearView();this.calcSize();this.renderView(n.type);this.view.applyScroll(t);this.thawContentHeight()},n.prototype.getSuggestedViewHeight=function(){return this.suggestedViewHeight==null&&this.calcSize(),this.suggestedViewHeight},n.prototype.isHeightAuto=function(){return this.opt("contentHeight")==="auto"||this.opt("height")==="auto"},n.prototype.updateViewSize=function(n){n===void 0&&(n=!1);var t=this.view,i;if(!this.ignoreUpdateViewSize&&t)return n&&(this.calcSize(),i=t.queryScroll()),this.ignoreUpdateViewSize++,t.updateSize(this.getSuggestedViewHeight(),this.isHeightAuto(),n),this.ignoreUpdateViewSize--,n&&t.applyScroll(i),!0},n.prototype.calcSize=function(){this.elementVisible()&&this._calcSize()},n.prototype._calcSize=function(){var t=this.opt("contentHeight"),n=this.opt("height");this.suggestedViewHeight=typeof t=="number"?t:typeof t=="function"?t():typeof n=="number"?n-this.queryToolbarsHeight():typeof n=="function"?n()-this.queryToolbarsHeight():n==="parent"?this.el.parent().height()-this.queryToolbarsHeight():Math.round(this.contentEl.width()/Math.max(this.opt("aspectRatio"),.5))},n.prototype.windowResize=function(n){n.target===window&&this.view&&this.view.isDatesRendered&&this.updateViewSize(!0)&&this.publiclyTrigger("windowResize",[this.view])},n.prototype.freezeContentHeight=function(){this.freezeContentHeightDepth++||this.forceFreezeContentHeight()},n.prototype.forceFreezeContentHeight=function(){this.contentEl.css({width:"100%",height:this.contentEl.height(),overflow:"hidden"})},n.prototype.thawContentHeight=function(){this.freezeContentHeightDepth--;this.contentEl.css({width:"",height:"",overflow:""});this.freezeContentHeightDepth&&this.forceFreezeContentHeight()},n.prototype.initToolbars=function(){this.header=new c.default(this,this.computeHeaderOptions());this.footer=new c.default(this,this.computeFooterOptions());this.toolbarsManager=new y.default([this.header,this.footer])},n.prototype.computeHeaderOptions=function(){return{extraClasses:"fc-header-toolbar",layout:this.opt("header")}},n.prototype.computeFooterOptions=function(){return{extraClasses:"fc-footer-toolbar",layout:this.opt("footer")}},n.prototype.renderHeader=function(){var n=this.header;n.setToolbarOptions(this.computeHeaderOptions());n.render();n.el&&this.el.prepend(n.el)},n.prototype.renderFooter=function(){var n=this.footer;n.setToolbarOptions(this.computeFooterOptions());n.render();n.el&&this.el.append(n.el)},n.prototype.setToolbarsTitle=function(n){this.toolbarsManager.proxyCall("updateTitle",n)},n.prototype.updateToolbarButtons=function(n){var i=this.getNow(),t=this.view,r=t.dateProfileGenerator.build(i),u=t.dateProfileGenerator.buildPrev(t.get("dateProfile")),f=t.dateProfileGenerator.buildNext(t.get("dateProfile"));this.toolbarsManager.proxyCall(r.isValid&&!n.currentUnzonedRange.containsDate(i)?"enableButton":"disableButton","today");this.toolbarsManager.proxyCall(u.isValid?"enableButton":"disableButton","prev");this.toolbarsManager.proxyCall(f.isValid?"enableButton":"disableButton","next")},n.prototype.queryToolbarsHeight=function(){return this.toolbarsManager.items.reduce(function(n,t){var i=t.el?t.el.outerHeight(!0):0;return n+i},0)},n.prototype.select=function(){this.view.select(this.buildSelectFootprint.apply(this,arguments))},n.prototype.unselect=function(){this.view&&this.view.unselect()},n.prototype.buildSelectFootprint=function(n,t){var i=this.moment(n).stripZone(),r;return r=t?this.moment(t).stripZone():i.hasTime()?i.clone().add(this.defaultTimedEventDuration):i.clone().add(this.defaultAllDayEventDuration),new nt.default(new l.default(i,r),!i.hasTime())},n.prototype.initMomentInternals=function(){var n=this;this.defaultAllDayEventDuration=f.duration(this.opt("defaultAllDayEventDuration"));this.defaultTimedEventDuration=f.duration(this.opt("defaultTimedEventDuration"));this.optionsManager.watch("buildingMomentLocale",["?locale","?monthNames","?monthNamesShort","?dayNames","?dayNamesShort","?firstDay","?weekNumberCalculation"],function(t){var r=t.weekNumberCalculation,u=t.firstDay,f,i;r==="iso"&&(r="ISO");i=Object.create(g.getMomentLocaleData(t.locale));t.monthNames&&(i._months=t.monthNames);t.monthNamesShort&&(i._monthsShort=t.monthNamesShort);t.dayNames&&(i._weekdays=t.dayNames);t.dayNamesShort&&(i._weekdaysShort=t.dayNamesShort);u==null&&r==="ISO"&&(u=1);u!=null&&(f=Object.create(i._week),f.dow=u,i._week=f);(r==="ISO"||r==="local"||typeof r=="function")&&(i._fullCalendar_weekCalc=r);n.localeData=i;n.currentDate&&n.localizeMoment(n.currentDate)})},n.prototype.moment=function(){for(var n,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return this.opt("timezone")==="local"?(n=u.default.apply(null,t),n.hasTime()&&n.local()):n=this.opt("timezone")==="UTC"?u.default.utc.apply(null,t):u.default.parseZone.apply(null,t),this.localizeMoment(n),n},n.prototype.msToMoment=function(n,t){var i=u.default.utc(n);return t?i.stripTime():i=this.applyTimezone(i),this.localizeMoment(i),i},n.prototype.msToUtcMoment=function(n,t){var i=u.default.utc(n);return t&&i.stripTime(),this.localizeMoment(i),i},n.prototype.localizeMoment=function(n){n._locale=this.localeData},n.prototype.getIsAmbigTimezone=function(){return this.opt("timezone")!=="local"&&this.opt("timezone")!=="UTC"},n.prototype.applyTimezone=function(n){if(!n.hasTime())return n.clone();var t=this.moment(n.toArray()),r=n.time().asMilliseconds()-t.time().asMilliseconds(),i;return r&&(i=t.clone().add(r),n.time().asMilliseconds()-i.time().asMilliseconds()==0&&(t=i)),t},n.prototype.footprintToDateProfile=function(n,t){t===void 0&&(t=!1);var r=u.default.utc(n.unzonedRange.startMs),i;return t||(i=u.default.utc(n.unzonedRange.endMs)),n.isAllDay?(r.stripTime(),i&&i.stripTime()):(r=this.applyTimezone(r),i&&(i=this.applyTimezone(i))),this.localizeMoment(r),i&&this.localizeMoment(i),new tt.default(r,i,this)},n.prototype.getNow=function(){var n=this.opt("now");return typeof n=="function"&&(n=n()),this.moment(n).stripZone()},n.prototype.humanizeDuration=function(n){return n.locale(this.opt("locale")).humanize()},n.prototype.parseUnzonedRange=function(n){var t=null,i=null;return(n.start&&(t=this.moment(n.start).stripZone()),n.end&&(i=this.moment(n.end).str
102ipZone()),!t&&!i)?null:t&&i&&i.isBefore(t)?null:new l.default(t,i)},n.prototype.initEventManager=function(){var t=this,n=new it.default(this),i=this.opt("eventSources")||[],r=this.opt("events");this.eventManager=n;r&&i.unshift(r);n.on("release",function(n){t.trigger("eventsReset",n)});n.freeze();i.forEach(function(i){var r=a.default.parse(i,t);r&&n.addSource(r)});n.thaw()},n.prototype.requestEvents=function(n,t){return this.eventManager.requestEvents(n,t,this.opt("timezone"),!this.opt("lazyFetching"))},n.prototype.getEventEnd=function(n){return n.end?n.end.clone():this.getDefaultEventEnd(n.allDay,n.start)},n.prototype.getDefaultEventEnd=function(n,t){var i=t.clone();return n?i.stripTime().add(this.defaultAllDayEventDuration):i.add(this.defaultTimedEventDuration),this.getIsAmbigTimezone()&&i.stripZone(),i},n.prototype.rerenderEvents=function(){this.view.flash("displayingEvents")},n.prototype.refetchEvents=function(){this.eventManager.refetchAllSources()},n.prototype.renderEvents=function(n,t){this.eventManager.freeze();for(var i=0;i<n.length;i++)this.renderEvent(n[i],t);this.eventManager.thaw()},n.prototype.renderEvent=function(n,t){t===void 0&&(t=!1);var i=this.eventManager,r=ut.default.parse(n,n.source||i.stickySource);r&&i.addEventDef(r,t)},n.prototype.removeEvents=function(n){var i=this.eventManager,r=[],u={},f,t;if(n==null)i.removeAllEventDefs();else{for(i.getEventInstances().forEach(function(n){r.push(n.toLegacy())}),r=v(r,n),t=0;t<r.length;t++)f=this.eventManager.getEventDefByUid(r[t]._id),u[f.id]=!0;i.freeze();for(t in u)i.removeEventDefsById(t);i.thaw()}},n.prototype.clientEvents=function(n){var t=[];return this.eventManager.getEventInstances().forEach(function(n){t.push(n.toLegacy())}),v(t,n)},n.prototype.updateEvents=function(n){this.eventManager.freeze();for(var t=0;t<n.length;t++)this.updateEvent(n[t]);this.eventManager.thaw()},n.prototype.updateEvent=function(n){var t=this.eventManager.getEventDefByUid(n._id),i,r;t instanceof ft.default&&(i=t.buildInstance(),r=et.default.createFromRawProps(i,n,null),this.eventManager.mutateEventsWithId(t.id,r))},n.prototype.getEventSources=function(){return this.eventManager.otherSources.slice()},n.prototype.getEventSourceById=function(n){return this.eventManager.getSourceById(ot.default.normalizeId(n))},n.prototype.addEventSource=function(n){var t=a.default.parse(n,this);t&&this.eventManager.addSource(t)},n.prototype.removeEventSources=function(n){var t=this.eventManager,r,i;if(n==null)this.eventManager.removeAllSources();else{for(r=t.multiQuerySources(n),t.freeze(),i=0;i<r.length;i++)t.removeSource(r[i]);t.thaw()}},n.prototype.removeEventSource=function(n){var t=this.eventManager,r=t.querySources(n),i;for(t.freeze(),i=0;i<r.length;i++)t.removeSource(r[i]);t.thaw()},n.prototype.refetchEventSources=function(n){var t=this.eventManager,r=t.multiQuerySources(n),i;for(t.freeze(),i=0;i<r.length;i++)t.refetchSource(r[i]);t.thaw()},n.defaults=e.globalDefaults,n.englishDefaults=e.englishDefaults,n.rtlDefaults=e.rtlDefaults,n}();t.default=o;p.default.mixInto(o);w.default.mixInto(o)},function(n,t,i){function w(n){var e=f.dataAttrPrefix,t,i,o,s;return e&&(e+="-"),t=n.data(e+"event")||null,t&&(t=typeof t=="object"?r.extend({},t):{},i=t.start,i==null&&(i=t.time),o=t.duration,s=t.stick,delete t.start,delete t.time,delete t.duration,delete t.stick),i==null&&(i=n.data(e+"start")),i==null&&(i=n.data(e+"time")),o==null&&(o=n.data(e+"duration")),s==null&&(s=n.data(e+"stick")),i=i!=null?u.duration(i):null,o=o!=null?u.duration(o):null,s=Boolean(s),{eventProps:t,startTime:i,duration:o,stick:s}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(2),r=i(3),u=i(0),f=i(18),e=i(4),h=i(11),c=i(7),l=i(17),a=i(9),v=i(20),y=i(6),p=i(14),o=function(n){function t(){var t=n!==null&&n.apply(this,arguments)||this;return t.isDragging=!1,t}return s.__extends(t,n),t.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},t.prototype.bindToDocument=function(){this.listenTo(r(document),{dragstart:this.handleDragStart,sortstart:this.handleDragStart})},t.prototype.unbindFromDocument=function(){this.stopListeningTo(r(document))},t.prototype.handleDragStart=function(n,t){var i,u;this.opt("droppable")&&(i=r((t?t.item:null)||n.target),u=this.opt("dropAccept"),(r.isFunction(u)?u.call(i[0],i):i.is(u))&&(this.isDragging||this.listenToExternalDrag(i,n,t)))},t.prototype.listenToExternalDrag=function(n,t,i){var f=this,u=this.component,s=this.view,o=w(n),r,h=this.dragListener=new l.default(u,{interactionStart:function(){f.isDragging=!0},hitOver:function(n){var t=!0,h=n.component.getSafeHitFootprint(n),i;h?(r=f.computeExternalDrop(h,o),r?(i=new v.default(r.buildInstances()),t=o.eventProps?u.isEventInstanceGroupAllowed(i):u.isExternalInstanceGroupAllowed(i)):t=!1):t=!1;
102t||(r=null,e.disableCursor());r&&u.renderDrag(u.eventRangesToEventFootprints(i.sliceRenderRanges(u.dateProfile.renderUnzonedRange,s.calendar)))},hitOut:function(){r=null},hitDone:function(){e.enableCursor();u.unrenderDrag()},interactionEnd:function(t){r&&s.reportExternalDrop(r,Boolean(o.eventProps),Boolean(o.stick),n,t,i);f.isDragging=!1;f.dragListener=null}});h.startDrag(t)},t.prototype.computeExternalDrop=function(n,t){var f=this.view.calendar,i=h.default.utc(n.unzonedRange.startMs).stripZone(),u;return n.isAllDay&&(t.startTime?i.time(t.startTime):i.stripTime()),t.duration&&(u=i.clone().add(t.duration)),i=f.applyTimezone(i),u&&(u=f.applyTimezone(u)),a.default.parse(r.extend({},t.eventProps,{start:i,end:u}),new y.default(f))},t}(p.default);t.default=o;c.default.mixInto(o);f.dataAttrPrefix=""},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var o=i(2),r=i(3),u=i(4),f=i(39),e=i(40),s=i(17),h=i(14),c=function(n){function t(t,i){var r=n.call(this,t)||this;return r.isResizing=!1,r.eventPointing=i,r}return o.__extends(t,n),t.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},t.prototype.bindToEl=function(n){var t=this.component;t.bindSegHandlerToEl(n,"mousedown",this.handleMouseDown.bind(this));t.bindSegHandlerToEl(n,"touchstart",this.handleTouchStart.bind(this))},t.prototype.handleMouseDown=function(n,t){this.component.canStartResize(n,t)&&this.buildDragListener(n,r(t.target).is(".fc-start-resizer")).startInteraction(t,{distance:5})},t.prototype.handleTouchStart=function(n,t){this.component.canStartResize(n,t)&&this.buildDragListener(n,r(t.target).is(".fc-start-resizer")).startInteraction(t)},t.prototype.buildDragListener=function(n,t){var r=this,f=this.component,e=this.view,h=e.calendar,l=h.eventManager,c=n.el,a=n.footprint.eventDef,v=n.footprint.eventInstance,o,i;return this.dragListener=new s.default(f,{scroll:this.opt("dragScroll"),subjectEl:c,interactionStart:function(){o=!1},dragStart:function(t){o=!0;r.eventPointing.handleMouseout(n,t);r.segResizeStart(n,t)},hitOver:function(o,s,c){var v=!0,y=f.getSafeHitFootprint(c),p=f.getSafeHitFootprint(o),w;y&&p?(i=t?r.computeEventStartResizeMutation(y,p,n.footprint):r.computeEventEndResizeMutation(y,p,n.footprint),i?(w=l.buildMutatedEventInstanceGroup(a.id,i),v=f.isEventInstanceGroupAllowed(w)):v=!1):v=!1;v?i.isEmpty()&&(i=null):(i=null,u.disableCursor());i&&(e.hideEventsWithId(n.footprint.eventDef.id),e.renderEventResize(f.eventRangesToEventFootprints(w.sliceRenderRanges(f.dateProfile.renderUnzonedRange,h)),n))},hitOut:function(){i=null},hitDone:function(){e.unrenderEventResize(n);e.showEventsWithId(n.footprint.eventDef.id);u.enableCursor()},interactionEnd:function(t){o&&r.segResizeStop(n,t);i&&e.reportEventResize(v,i,c,t);r.dragListener=null}})},t.prototype.segResizeStart=function(n,t){this.isResizing=!0;this.component.publiclyTrigger("eventResizeStart",{context:n.el[0],args:[n.footprint.getEventLegacy(),t,{},this.view]})},t.prototype.segResizeStop=function(n,t){this.isResizing=!1;this.component.publiclyTrigger("eventResizeStop",{context:n.el[0],args:[n.footprint.getEventLegacy(),t,{},this.view]})},t.prototype.computeEventStartResizeMutation=function(n,t,i){var o=i.componentFootprint.unzonedRange,s=this.component.diffDates(t.unzonedRange.getStart(),n.unzonedRange.getStart()),r,u;return o.getStart().add(s)<o.getEnd()?(r=new e.default,r.setStartDelta(s),u=new f.default,u.setDateMutation(r),u):!1},t.prototype.computeEventEndResizeMutation=function(n,t,i){var o=i.componentFootprint.unzonedRange,s=this.component.diffDates(t.unzonedRange.getEnd(),n.unzonedRange.getEnd()),r,u;return o.getEnd().add(s)>o.getStart()?(r=new e.default,r.setEndDelta(s),u=new f.default,u.setDateMutation(r),u):!1},t}(h.default);t.default=c},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),r=i(4),f=i(39),e=i(40),o=i(59),s=i(17),h=i(226),c=i(14),l=function(n){function t(t,i){var r=n.call(this,t)||this;return r.isDragging=!1,r.eventPointing=i,r}return u.__extends(t,n),t.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},t.prototype.getSelectionDelay=function(){var n=this.opt("eventLongPressDelay");return n==null&&(n=this.opt("longPressDelay")),n},t.prototype.bindToEl=function(n){var t=this.component;t.bindSegHandlerToEl(n,"mousedown",this.handleMousedown.bind(this));t.bindSegHandlerToEl(n,"touchstart",this.handleTouchStart.bind(this))},t.prototype.handleMousedown=function(n,t){!this.component.shouldIgnoreMouse()&&this.component.canStartDrag(n,t)&&this.buildDragListener(n).startInteraction(t,{distance:5})},t.prototype.handleTouchStart=function(n,t){var i=this.component,r={delay:this.view.isEventDefSelected(n.footprint.eventDef)?0:this.getSelectionDelay()};i.canStartDrag(n,t)?this.buildDragListener(n).startInteraction(t,r):i.canStartSelection(n,t)&&this.buildSelectListener(n).startInteraction(t,r)},t.prototype.buildSelectListener=function(n){var u=this,t=this.view,f=n.footprint.eventDef,i=n.footprint.eventInstance,r;return this.dragListener?this.dragListener:r=this.dragListener=new o.default({dragStart:function(){r.isTouch&&!t.isEventDefSelected(f)&&i&&t.selectEventInstance(i)},interactionEnd:function(){u.dragListener=null}})},t.prototype.buildDragListener=function(n){var u=this,e=this.component,t=this.view,v=t.calendar,p=v.eventManager,y=n.el,c=n.footprint.eventDef,l=n.footprint.eventInstance,a,f,i,o;return this.dragListener?this.dragListener:o=this.dragListener=new s.default(t,{scroll:this.opt("dragScroll"),subjectEl:y,subjectCenter:!0,interactionStart:function(i){n.component=e;a=!1;f=new h.default(n.el,{additionalClass:"fc-dragging",parentEl:t.el,opacity:o.isTouch?null:u.opt("dragOpacity"),revertDuration:u.opt("dragRevertDuration"),zIndex:2});f.hide();f.start(i)},dragStart:function(i){o.isTouch&&!t.isEventDefSelected(c)&&l&&t.selectEventInstance(l);a=!0;u.eventPointing.handleMouseout(n,i);u.segDragStart(n,i);t.hideEventsWithId(n.footprint.eventDef.id)},hitOver:function(s,h,l){var a=!0,y,w,b;n.hit&&(l=n.hit);y=l.component.getSafeHitFootprint(l);w=s.component.getSafeHitFootprint(s);y&&w?(i=u.computeEventDropMutation(y,w,c),i?(b=p.buildMutatedEventInstanceGroup(c.id,i),a=e.isEventInstanceGroupAllowed(b)):a=!1):a=!1;
102a||(i=null,r.disableCursor());i&&t.renderDrag(e.eventRangesToEventFootprints(b.sliceRenderRanges(e.dateProfile.renderUnzonedRange,v)),n,o.isTouch)?f.hide():f.show();h&&(i=null)},hitOut:function(){t.unrenderDrag(n);f.show();i=null},hitDone:function(){r.enableCursor()},interactionEnd:function(r){delete n.component;f.stop(!i,function(){a&&(t.unrenderDrag(n),u.segDragStop(n,r));t.showEventsWithId(n.footprint.eventDef.id);i&&t.reportEventDrop(l,i,y,r)});u.dragListener=null}})},t.prototype.segDragStart=function(n,t){this.isDragging=!0;this.component.publiclyTrigger("eventDragStart",{context:n.el[0],args:[n.footprint.getEventLegacy(),t,{},this.view]})},t.prototype.segDragStop=function(n,t){this.isDragging=!1;this.component.publiclyTrigger("eventDragStop",{context:n.el[0],args:[n.footprint.getEventLegacy(),t,{},this.view]})},t.prototype.computeEventDropMutation=function(n,t){var i=new f.default;return i.setDateMutation(this.computeEventDateMutation(n,t)),i},t.prototype.computeEventDateMutation=function(n,t){var r=n.unzonedRange.getStart(),h=t.unzonedRange.getStart(),u=!1,f=!1,o=!1,s,i;return n.isAllDay!==t.isAllDay&&(u=!0,t.isAllDay?(o=!0,r.stripTime()):f=!0),s=this.component.diffDates(h,r),i=new e.default,i.clearEnd=u,i.forceTimed=f,i.forceAllDay=o,i.setDateDelta(s),i},t}(c.default);t.default=l},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),r=i(4),f=i(17),e=i(12),o=i(5),s=i(14),h=function(n){function t(t){var i=n.call(this,t)||this;return i.dragListener=i.buildDragListener(),i}return u.__extends(t,n),t.prototype.end=function(){this.dragListener.endInteraction()},t.prototype.getDelay=function(){var n=this.opt("selectLongPressDelay");return n==null&&(n=this.opt("longPressDelay")),n},t.prototype.bindToEl=function(n){var t=this,i=this.component,u=this.dragListener;i.bindDateHandlerToEl(n,"mousedown",function(n){t.opt("selectable")&&!i.shouldIgnoreMouse()&&u.startInteraction(n,{distance:t.opt("selectMinDistance")})});i.bindDateHandlerToEl(n,"touchstart",function(n){t.opt("selectable")&&!i.shouldIgnoreTouch()&&u.startInteraction(n,{delay:t.getDelay()})});r.preventSelection(n)},t.prototype.buildDragListener=function(){var i=this,t=this.component,n;return new f.default(t,{scroll:this.opt("dragScroll"),interactionStart:function(){n=null},dragStart:function(n){i.view.unselect(n)},hitOver:function(u,f,e){var o,s;e&&(o=t.getSafeHitFootprint(e),s=t.getSafeHitFootprint(u),n=o&&s?i.computeSelection(o,s):null,n?t.renderSelectionFootprint(n):n===!1&&r.disableCursor())},hitOut:function(){n=null;t.unrenderSelection()},hitDone:function(){r.enableCursor()},interactionEnd:function(t,r){!r&&n&&i.view.reportSelection(n,t)}})},t.prototype.computeSelection=function(n,t){var i=this.computeSelectionFootprint(n,t);return i&&!this.isSelectionFootprintAllowed(i)?!1:i},t.prototype.computeSelectionFootprint=function(n,t){var i=[n.unzonedRange.startMs,n.unzonedRange.endMs,t.unzonedRange.startMs,t.unzonedRange.endMs];return i.sort(r.compareNumbers),new e.default(new o.default(i[0],i[3]),n.isAllDay)},t.prototype.isSelectionFootprintAllowed=function(n){return this.component.dateProfile.validUnzonedRange.containsRange(n.unzonedRange)&&this.view.calendar.constraints.isSelectionFootprintAllowed(n)},t}(s.default);t.default=h},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(17),f=i(14),e=function(n){function t(t){var i=n.call(this,t)||this;return i.dragListener=i.buildDragListener(),i}return r.__extends(t,n),t.prototype.end=function(){this.dragListener.endInteraction()},t.prototype.bindToEl=function(n){var t=this.component,i=this.dragListener;t.bindDateHandlerToEl(n,"mousedown",function(n){t.shouldIgnoreMouse()||i.startInteraction(n)});t.bindDateHandlerToEl(n,"touchstart",function(n){t.shouldIgnoreTouch()||i.startInteraction(n)})},t.prototype.buildDragListener=function(){var r=this,i=this.component,n,t=new u.default(i,{scroll:this.opt("dragScroll"),interactionStart:function(){n=t.origHit},hitOver:function(t,i){i||(n=null)},hitOut:function(){n=null},interactionEnd:function(t,u){var f;!u&&n&&(f=i.getSafeHitFootprint(n),f&&r.view.triggerDayClick(f,i.getHitEl(n),t))}});return t.shouldCancelTouchScroll=!1,t.scrollAlwaysKills=!0,t},t}(f.default);t.default=e},function(n,t,i){function o(n){for(var i=[],r=[],t=0;t<n.length;t++)n[t].componentFootprint.isAllDay?i.push(n[t]):r.push(n[t]);return{allDay:i,timed:r}}
102Object.defineProperty(t,"__esModule",{value:!0});var s=i(2),h=i(0),c=i(3),r=i(4),l=i(41),a=i(43),v=i(239),y=i(66),p=5,f,e,u=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.usesMinMaxTime=!0,r.timeGrid=r.instantiateTimeGrid(),r.addChild(r.timeGrid),r.opt("allDaySlot")&&(r.dayGrid=r.instantiateDayGrid(),r.addChild(r.dayGrid)),r.scroller=new l.default({overflowX:"hidden",overflowY:"auto"}),r}return s.__extends(t,n),t.prototype.instantiateTimeGrid=function(){var n=new this.timeGridClass(this);return r.copyOwnProps(f,n),n},t.prototype.instantiateDayGrid=function(){var n=new this.dayGridClass(this);return r.copyOwnProps(e,n),n},t.prototype.renderSkeleton=function(){var n,t;this.el.addClass("fc-agenda-view").html(this.renderSkeletonHtml());this.scroller.render();n=this.scroller.el.addClass("fc-time-grid-container");t=c('<div class="fc-time-grid">').appendTo(n);this.el.find(".fc-body > tr > td").append(n);this.timeGrid.headContainerEl=this.el.find(".fc-head-container");this.timeGrid.setElement(t);this.dayGrid&&(this.dayGrid.setElement(this.el.find(".fc-day-grid")),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight())},t.prototype.unrenderSkeleton=function(){this.timeGrid.removeElement();this.dayGrid&&this.dayGrid.removeElement();this.scroller.destroy()},t.prototype.renderSkeletonHtml=function(){var n=this.calendar.theme;return'<table class="'+n.getClass("tableGrid")+'">'+(this.opt("columnHeader")?'<thead class="fc-head"><tr><td class="fc-head-container '+n.getClass("widgetHeader")+'">&nbsp;<\/td><\/tr><\/thead>':"")+'<tbody class="fc-body"><tr><td class="'+n.getClass("widgetContent")+'">'+(this.dayGrid?'<div class="fc-day-grid"><\/div><hr class="fc-divider '+n.getClass("widgetHeader")+'"><\/hr>':"")+"<\/td><\/tr><\/tbody><\/table>"},t.prototype.axisStyleAttr=function(){return this.axisWidth!=null?'style="width:'+this.axisWidth+'px"':""},t.prototype.getNowIndicatorUnit=function(){return this.timeGrid.getNowIndicatorUnit()},t.prototype.updateSize=function(t,i,u){var e,f,o,s;if(n.prototype.updateSize.call(this,t,i,u),this.axisWidth=r.matchCellWidths(this.el.find(".fc-axis")),!this.timeGrid.colEls){i||(f=this.computeScrollerHeight(t),this.scroller.setHeight(f));return}s=this.el.find(".fc-row:not(.fc-scroller *)");this.timeGrid.bottomRuleEl.hide();this.scroller.clear();r.uncompensateScroll(s);this.dayGrid&&(this.dayGrid.removeSegPopover(),e=this.opt("eventLimit"),e&&typeof e!="number"&&(e=p),e&&this.dayGrid.limitRows(e));i||(f=this.computeScrollerHeight(t),this.scroller.setHeight(f),o=this.scroller.getScrollbarWidths(),(o.left||o.right)&&(r.compensateScroll(s,o),f=this.computeScrollerHeight(t),this.scroller.setHeight(f)),this.scroller.lockOverflow(o),this.timeGrid.getTotalSlatHeight()<f&&this.timeGrid.bottomRuleEl.show())},t.prototype.computeScrollerHeight=function(n){return n-r.subtractInnerElHeight(this.el,this.scroller.el)},t.prototype.computeInitialDateScroll=function(){var t=h.duration(this.opt("scrollTime")),n=this.timeGrid.computeTimeTop(t);return n=Math.ceil(n),n&&n++,{top:n}},t.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},t.prototype.applyDateScroll=function(n){n.top!==undefined&&this.scroller.setScrollTop(n.top)},t.prototype.getHitFootprint=function(n){return n.component.getHitFootprint(n)},t.prototype.getHitEl=function(n){return n.component.getHitEl(n)},t.prototype.executeEventRender=function(n){var r={},u={},t,i;for(t in n)i=n[t],i.getEventDef().isAllDay()?r[t]=i:u[t]=i;this.timeGrid.executeEventRender(u);this.dayGrid&&this.dayGrid.executeEventRender(r)},t.prototype.renderDrag=function(n,t,i){var u=o(n),r=!1;return r=this.timeGrid.renderDrag(u.timed,t,i),this.dayGrid&&(r=this.dayGrid.renderDrag(u.allDay,t,i)||r),r},t.prototype.renderEventResize=function(n,t,i){var r=o(n);this.timeGrid.renderEventResize(r.timed,t,i);this.dayGrid&&this.dayGrid.renderEventResize(r.allDay,t,i)},t.prototype.renderSelectionFootprint=function(n){n.isAllDay?this.dayGrid&&this.dayGrid.renderSelectionFootprint(n):this.timeGrid.renderSelectionFootprint(n)},t}(a.default);t.default=u;u.prototype.timeGridClass=v.default;u.prototype.dayGridClass=y.default;f={renderHeadIntroHtml:function(){var n=this.view,t=n.calendar,i=t.msToUtcMoment(this.dateProfile.renderUnzonedRange.startMs,!0),u;return this.opt("weekNumbers")?(u=i.format(this.opt("smallWeekFormat")),'<th class="fc-axis fc-week-number '+t.theme.getClass("widgetHeader")+'" '+n.axisStyleAttr()+">"+n.buildGotoAnchorHtml({date:i,type:"week",forceOff:this.colCnt>1},r.htmlEscape(u))+"<\/th>"):'<th class="fc-axis '+t.theme.getClass("widgetHeader")+'" '+n.axisStyleAttr()+"><\/th>"},renderBgIntroHtml:function(){var n=this.view;return'<td class="fc-axis '+n.calendar.theme.getClass("widgetContent")+'" '+n.axisStyleAttr()+"><\/td>"},renderIntroHtml:function(){var n=this.view;return'<td class="fc-axis" '+n.axisStyleAttr()+"><\/td>"}};e={renderBgIntroHtml:function(){var n=this.view;return'<td class="fc-axis '+n.calendar.theme.getClass("widgetContent")+'" '+n.axisStyleAttr()+"><span>"+n.getAllDayHtml()+"<\/span><\/td>"},renderIntroHtml:function(){var n=this.view;return'<td class="fc-axis" '+n.axisStyleAttr()+"><\/td>"}}}
102,function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var l=i(2),f=i(3),r=i(0),e=i(4),a=i(42),v=i(61),y=i(65),p=i(60),s=i(58),o=i(5),h=i(12),w=i(240),b=i(241),k=i(242),c=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}],u=function(n){function t(t){var i=n.call(this,t)||this;return i.processOptions(),i}return l.__extends(t,n),t.prototype.componentFootprintToSegs=function(n){for(var i=this.sliceRangeByTimes(n.unzonedRange),t=0;t<i.length;t++)i[t].col=this.isRTL?this.daysPerRow-1-i[t].dayIndex:i[t].dayIndex;return i},t.prototype.sliceRangeByTimes=function(n){for(var r=[],t,i=0;i<this.daysPerRow;i++)t=n.intersect(this.dayRanges[i]),t&&r.push({startMs:t.startMs,endMs:t.endMs,isStart:t.isStart,isEnd:t.isEnd,dayIndex:i});return r},t.prototype.processOptions=function(){var t=this.opt("slotDuration"),i=this.opt("snapDuration"),n;t=r.duration(t);i=i?r.duration(i):t;this.slotDuration=t;this.snapDuration=i;this.snapsPerSlot=t/i;n=this.opt("slotLabelFormat");f.isArray(n)&&(n=n[n.length-1]);this.labelFormat=n||this.opt("smallTimeFormat");n=this.opt("slotLabelInterval");this.labelInterval=n?r.duration(n):this.computeLabelInterval(t)},t.prototype.computeLabelInterval=function(n){for(var i,u,t=c.length-1;t>=0;t--)if(i=r.duration(c[t]),u=e.divideDurationByDuration(i,n),e.isInt(u)&&u>1)return i;return r.duration(n)},t.prototype.renderDates=function(n){this.dateProfile=n;this.updateDayTable();this.renderSlats();this.renderColumns()},t.prototype.unrenderDates=function(){this.unrenderColumns()},t.prototype.renderSkeleton=function(){var n=this.view.calendar.theme;this.el.html('<div class="fc-bg"><\/div><div class="fc-slats"><\/div><hr class="fc-divider '+n.getClass("widgetHeader")+'" style="display:none"><\/hr>');this.bottomRuleEl=this.el.find("hr")},t.prototype.renderSlats=function(){var n=this.view.calendar.theme;this.slatContainerEl=this.el.find("> .fc-slats").html('<table class="'+n.getClass("tableGrid")+'">'+this.renderSlatRowHtml()+"<\/table>");this.slatEls=this.slatContainerEl.find("tr");this.slatCoordCache=new s.default({els:this.slatEls,isVertical:!0})},t.prototype.renderSlatRowHtml=function(){for(var o=this.view,s=o.calendar,h=s.theme,c=this.isRTL,n=this.dateProfile,l="",t=r.duration(+n.minTime),a=r.duration(0),i,u,f;t<n.maxTime;)i=s.msToUtcMoment(n.renderUnzonedRange.startMs).time(t),u=e.isInt(e.divideDurationByDuration(a,this.labelInterval)),f='<td class="fc-axis fc-time '+h.getClass("widgetContent")+'" '+o.axisStyleAttr()+">"+(u?"<span>"+e.htmlEscape(i.format(this.labelFormat))+"<\/span>":"")+"<\/td>",l+='<tr data-time="'+i.format("HH:mm:ss")+'"'+(u?"":' class="fc-minor"')+">"+(c?"":f)+'<td class="'+h.getClass("widgetContent")+'"><\/td>'+(c?f:"")+"<\/tr>",t.add(this.slotDuration),a.add(this.slotDuration);return l},t.prototype.renderColumns=function(){var n=this.dateProfile,t=this.view.calendar.theme;this.dayRanges=this.dayDates.map(function(t){return new o.default(t.clone().add(n.minTime),t.clone().add(n.maxTime))});this.headContainerEl&&this.headContainerEl.html(this.renderHeadHtml());this.el.find("> .fc-bg").html('<table class="'+t.getClass("tableGrid")+'">'+this.renderBgTrHtml(0)+"<\/table>");this.colEls=this.el.find(".fc-day, .fc-disabled-day");this.colCoordCache=new s.default({els:this.colEls,isHorizontal:!0});this.renderContentSkeleton()},t.prototype.unrenderColumns=function(){this.unrenderContentSkeleton()},t.prototype.renderContentSkeleton=function(){for(var i="",n,t=0;t<this.colCnt;t++)i+='<td><div class="fc-content-col"><div class="fc-event-container fc-helper-container"><\/div><div class="fc-event-container"><\/div><div class="fc-highlight-container"><\/div><div class="fc-bgevent-container"><\/div><div class="fc-business-container"><\/div><\/div><\/td>';n=this.contentSkeletonEl=f('<div class="fc-content-skeleton"><table><tr>'+i+"<\/tr><\/table><\/div>");this.colContainerEls=n.find(".fc-content-col");this.helperContainerEls=n.find(".fc-helper-container");this.fgContainerEls=n.find(".fc-event-container:not(.fc-helper-container)");this.bgContainerEls=n.find(".fc-bgevent-container");this.highlightContainerEls=n.find(".fc-highlight-container");this.businessContainerEls=n.find(".fc-business-container");this.bookendCells(n.find("tr"));this.el.append(n)},t.prototype.unrenderContentSkeleton=function(){this.contentSkeletonEl&&(this.contentSkeletonEl.remove(),this.contentSkeletonEl=null,this.colContainerEls=null,this.helperContainerEls=null,this.fgContainerEls=null,this.bgContainerEls=null,this.highlightContainerEls=null,this.businessContainerEls=null)},t.prototype.groupSegsByCol=function(n){for(var i=[],t=0;t<this.colCnt;t++)i.push([]);for(t=0;t<n.length;t++)i[n[t].col].push(n[t]);return i},t.prototype.attachSegsByCol=function(n,t){for(var u,r,i=0;i<this.colCnt;i++)for(u=n[i],r=0;r<u.length;r++)t.eq(i).append(u[r].el)},t.prototype.getNowIndicatorUnit=function(){return"minute"},t.prototype.renderNowIndicator=function(n){if(this.colContainerEls){for(var i=this.componentFootprintToSegs(new h.default(new o.default(n,n.valueOf()+1),!1)),u=this.computeDateTop(n,n),r=[],t=0;t<i.length;t++)r.push(f('<div class="fc-now-indicator fc-now-indicator-line"><\/div>').css("top",u).appendTo(this.colContainerEls.eq(i[t].col))[0]);i.length>0&&r.push(f('<div class="fc-now-indicator fc-now-indicator-arrow"><\/div>').css("top",u).appendTo(this.el.find(".fc-content-skeleton"))[0]);this.nowIndicatorEls=f(r)}},t.prototype.unrenderNowIndicator=function(){this.nowIndicatorEls&&(this.nowIndicatorEls.remove(),this.nowIndicatorEls=null)},t.prototype.updateSize=function(t,i,r){n.prototype.updateSize.call(this,t,i,r);
102this.slatCoordCache.build();r&&this.updateSegVerticals([].concat(this.eventRenderer.getSegs(),this.businessSegs||[]))},t.prototype.getTotalSlatHeight=function(){return this.slatContainerEl.outerHeight()},t.prototype.computeDateTop=function(n,t){return this.computeTimeTop(r.duration(n-t.clone().stripTime()))},t.prototype.computeTimeTop=function(n){var r=this.slatEls.length,f=this.dateProfile,t=(n-f.minTime)/this.slotDuration,i,u;return t=Math.max(0,t),t=Math.min(r,t),i=Math.floor(t),i=Math.min(i,r-1),u=t-i,this.slatCoordCache.getTopPosition(i)+this.slatCoordCache.getHeight(i)*u},t.prototype.updateSegVerticals=function(n){this.computeSegVerticals(n);this.assignSegVerticals(n)},t.prototype.computeSegVerticals=function(n){for(var u=this.opt("agendaEventMinHeight"),t,r,i=0;i<n.length;i++)t=n[i],r=this.dayDates[t.dayIndex],t.top=this.computeDateTop(t.startMs,r),t.bottom=Math.max(t.top+u,this.computeDateTop(t.endMs,r))},t.prototype.assignSegVerticals=function(n){for(var i,t=0;t<n.length;t++)i=n[t],i.el.css(this.generateSegVerticalCss(i))},t.prototype.generateSegVerticalCss=function(n){return{top:n.top,bottom:-n.bottom}},t.prototype.prepareHits=function(){this.colCoordCache.build();this.slatCoordCache.build()},t.prototype.releaseHits=function(){this.colCoordCache.clear()},t.prototype.queryHit=function(n,t){var u=this.snapsPerSlot,f=this.colCoordCache,e=this.slatCoordCache,i,r;if(f.isLeftInBounds(n)&&e.isTopInBounds(t)&&(i=f.getHorizontalIndex(n),r=e.getVerticalIndex(t),i!=null&&r!=null)){var o=e.getTopOffset(r),s=e.getHeight(r),c=(t-o)/s,h=Math.floor(c*u),l=r*u+h,a=o+h/u*s,v=o+(h+1)/u*s;return{col:i,snap:l,component:this,left:f.getLeftOffset(i),right:f.getRightOffset(i),top:a,bottom:v}}},t.prototype.getHitFootprint=function(n){var t=this.getCellDate(0,n.col),r=this.computeSnapTime(n.snap),i;return t.time(r),i=t.clone().add(this.snapDuration),new h.default(new o.default(t,i),!1)},t.prototype.computeSnapTime=function(n){return r.duration(this.dateProfile.minTime+this.snapDuration*n)},t.prototype.getHitEl=function(n){return this.colEls.eq(n.col)},t.prototype.renderDrag=function(n,t,i){var r;if(t){if(n.length)return this.helperRenderer.renderEventDraggingFootprints(n,t,i),!0}else for(r=0;r<n.length;r++)this.renderHighlight(n[r].componentFootprint)},t.prototype.unrenderDrag=function(){this.unrenderHighlight();this.helperRenderer.unrender()},t.prototype.renderEventResize=function(n,t,i){this.helperRenderer.renderEventResizingFootprints(n,t,i)},t.prototype.unrenderEventResize=function(){this.helperRenderer.unrender()},t.prototype.renderSelectionFootprint=function(n){this.opt("selectHelper")?this.helperRenderer.renderComponentFootprint(n):this.renderHighlight(n)},t.prototype.unrenderSelection=function(){this.helperRenderer.unrender();this.unrenderHighlight()},t}(a.default);t.default=u;u.prototype.eventRendererClass=w.default;u.prototype.businessHourRendererClass=v.default;u.prototype.helperRendererClass=b.default;u.prototype.fillRendererClass=k.default;y.default.mixInto(u);p.default.mixInto(u)},function(n,t,i){function h(n){for(var i=[],u,t,r=0;r<n.length;r++){for(u=n[r],t=0;t<i.length;t++)if(!f(u,i[t]).length)break;u.level=t;(i[t]||(i[t]=[])).push(u)}return i}function c(n){for(var e,i,r,u,t=0;t<n.length;t++)for(e=n[t],i=0;i<e.length;i++)for(r=e[i],r.forwardSegs=[],u=t+1;u<n.length;u++)f(r,n[u],r.forwardSegs)}function u(n){var f=n.forwardSegs,i=0,t,r;if(n.forwardPressure===undefined){for(t=0;t<f.length;t++)r=f[t],u(r),i=Math.max(i,1+r.forwardPressure);n.forwardPressure=i}}function f(n,t,i){i===void 0&&(i=[]);for(var r=0;r<t.length;r++)l(n,t[r])&&i.push(t[r]);return i}function l(n,t){return n.bottom>t.top&&n.top<t.bottom}Object.defineProperty(t,"__esModule",{value:!0});var e=i(2),r=i(4),o=i(44),s=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.timeGrid=t,r}return e.__extends(t,n),t.prototype.renderFgSegs=function(n){this.renderFgSegsIntoContainers(n,this.timeGrid.fgContainerEls)},t.prototype.renderFgSegsIntoContainers=function(n,t){for(var r=this.timeGrid.groupSegsByCol(n),i=0;i<this.timeGrid.colCnt;i++)this.updateFgSegCoords(r[i]);this.timeGrid.attachSegsByCol(r,t)},t.prototype.unrenderFgSegs=function(){this.fgSegs&&this.fgSegs.forEac
102h(function(n){n.el.remove()})},t.prototype.computeEventTimeFormat=function(){return this.opt("noMeridiemTimeFormat")},t.prototype.computeDisplayEventEnd=function(){return!0},t.prototype.fgSegHtml=function(n,t){var u=this.view,l=u.calendar,a=n.footprint.componentFootprint,s=a.isAllDay,i=n.footprint.eventDef,w=u.isEventDefDraggable(i),b=!t&&n.isStart&&u.isEventDefResizableFromStart(i),v=!t&&n.isEnd&&u.isEventDefResizableFromEnd(i),y=this.getSegClasses(n,w,b||v),p=r.cssToStr(this.getSkinCss(i)),f,h,c,e,o;return y.unshift("fc-time-grid-event","fc-v-event"),u.isMultiDayRange(a.unzonedRange)?(n.isStart||n.isEnd)&&(e=l.msToMoment(n.startMs),o=l.msToMoment(n.endMs),f=this._getTimeText(e,o,s),h=this._getTimeText(e,o,s,"LT"),c=this._getTimeText(e,o,s,null,!1)):(f=this.getTimeText(n.footprint),h=this.getTimeText(n.footprint,"LT"),c=this.getTimeText(n.footprint,null,!1)),'<a class="'+y.join(" ")+'"'+(i.url?' href="'+r.htmlEscape(i.url)+'"':"")+(p?' style="'+p+'"':"")+'><div class="fc-content">'+(f?'<div class="fc-time" data-start="'+r.htmlEscape(c)+'" data-full="'+r.htmlEscape(h)+'"><span>'+r.htmlEscape(f)+"<\/span><\/div>":"")+(i.title?'<div class="fc-title">'+r.htmlEscape(i.title)+"<\/div>":"")+'<\/div><div class="fc-bg"><\/div>'+(v?'<div class="fc-resizer fc-end-resizer"><\/div>':"")+"<\/a>"},t.prototype.updateFgSegCoords=function(n){this.timeGrid.computeSegVerticals(n);this.computeFgSegHorizontals(n);this.timeGrid.assignSegVerticals(n);this.assignFgSegHorizontals(n)},t.prototype.computeFgSegHorizontals=function(n){var r,i,t;if(this.sortEventSegs(n),r=h(n),c(r),i=r[0]){for(t=0;t<i.length;t++)u(i[t]);for(t=0;t<i.length;t++)this.computeFgSegForwardBack(i[t],0,0)}},t.prototype.computeFgSegForwardBack=function(n,t,i){var r=n.forwardSegs,u;if(n.forwardCoord===undefined)for(r.length?(this.sortForwardSegs(r),this.computeFgSegForwardBack(r[0],t+1,i),n.forwardCoord=r[0].backwardCoord):n.forwardCoord=1,n.backwardCoord=n.forwardCoord-(n.forwardCoord-i)/(t+1),u=0;u<r.length;u++)this.computeFgSegForwardBack(r[u],0,n.forwardCoord)},t.prototype.sortForwardSegs=function(n){n.sort(r.proxy(this,"compareForwardSegs"))},t.prototype.compareForwardSegs=function(n,t){return t.forwardPressure-n.forwardPressure||(n.backwardCoord||0)-(t.backwardCoord||0)||this.compareEventSegs(n,t)},t.prototype.assignFgSegHorizontals=function(n){for(var t,i=0;i<n.length;i++)t=n[i],t.el.css(this.generateFgSegHorizontalCss(t)),t.footprint.eventDef.title&&t.bottom-t.top<30&&t.el.addClass("fc-short")},t.prototype.generateFgSegHorizontalCss=function(n){var e=this.opt("slotEventOverlap"),i=n.backwardCoord,r=n.forwardCoord,t=this.timeGrid.generateSegVerticalCss(n),o=this.timeGrid.isRTL,u,f;return e&&(r=Math.min(1,i+(r-i)*2)),o?(u=1-r,f=i):(u=i,f=1-r),t.zIndex=n.level+1,t.left=u*100+"%",t.right=f*100+"%",e&&n.forwardPressure&&(t[o?"marginLeft":"marginRight"]=20),t},t}(o.default);t.default=s},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(3),f=i(63),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.renderSegs=function(n,t){var e=[],r,f,i;for(this.eventRenderer.renderFgSegsIntoContainers(n,this.component.helperContainerEls),r=0;r<n.length;r++)f=n[r],t&&t.col===f.col&&(i=t.el,f.el.css({left:i.css("left"),right:i.css("right"),"margin-left":i.css("margin-left"),"margin-right":i.css("margin-right")})),e.push(f.el[0]);return u(e)},t}(f.default);t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(62),f=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.attachSegEls=function(n,t){var i=this.component,r;return n==="bgEvent"?r=i.bgContainerEls:n==="businessHours"?r=i.businessContainerEls:n==="highlight"&&(r=i.highlightContainerEls),i.updateSegVerticals(t),i.attachSegsByCol(i.groupSegsByCol(t),r),t.map(function(n){return n.el[0]})},t}(u.default);t.default=f},function(n,t,i){function s(n,t){for(var r,i=0;i<t.length;i++)if(r=t[i],r.leftCol<=n.rightCol&&r.rightCol>=n.leftCol)return!0;return!1}function h(n,t){return n.leftCol-t.leftCol}
102Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),r=i(3),u=i(4),e=i(44),o=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.dayGrid=t,r}return f.__extends(t,n),t.prototype.renderBgRanges=function(t){t=r.grep(t,function(n){return n.eventDef.isAllDay()});n.prototype.renderBgRanges.call(this,t)},t.prototype.renderFgSegs=function(n){var t=this.rowStructs=this.renderSegRows(n);this.dayGrid.rowEls.each(function(n,i){r(i).find(".fc-content-skeleton > table").append(t[n].tbodyEl)})},t.prototype.unrenderFgSegs=function(){for(var t=this.rowStructs||[],n;n=t.pop();)n.tbodyEl.remove();this.rowStructs=null},t.prototype.renderSegRows=function(n){for(var r=[],i=this.groupSegRows(n),t=0;t<i.length;t++)r.push(this.renderSegRow(t,i[t]));return r},t.prototype.renderSegRow=function(n,t){function p(n){while(u<n)i=(h[f-1]||[])[u],i?i.attr("rowspan",parseInt(i.attr("rowspan")||1,10)+1):(i=r("<td>"),o.append(i)),s[f][u]=i,h[f][u]=i,u++}for(var w=this.dayGrid.colCnt,a=this.buildSegLevels(t),b=Math.max(1,a.length),y=r("<tbody>"),v=[],s=[],h=[],c,u,o,l,e,i,f=0;f<b;f++){if(c=a[f],u=0,o=r("<tr>"),v.push([]),s.push([]),h.push([]),c)for(l=0;l<c.length;l++){for(e=c[l],p(e.leftCol),i=r('<td class="fc-event-container">').append(e.el),e.leftCol!==e.rightCol?i.attr("colspan",e.rightCol-e.leftCol+1):h[f][u]=i;u<=e.rightCol;)s[f][u]=i,v[f][u]=e,u++;o.append(i)}p(w);this.dayGrid.bookendCells(o);y.append(o)}return{row:n,tbodyEl:y,cellMatrix:s,segMatrix:v,segLevels:a,segs:t}},t.prototype.buildSegLevels=function(n){var i=[],r,u,t;for(this.sortEventSegs(n),r=0;r<n.length;r++){for(u=n[r],t=0;t<i.length;t++)if(!s(u,i[t]))break;u.level=t;(i[t]||(i[t]=[])).push(u)}for(t=0;t<i.length;t++)i[t].sort(h);return i},t.prototype.groupSegRows=function(n){for(var i=[],t=0;t<this.dayGrid.rowCnt;t++)i.push([]);for(t=0;t<n.length;t++)i[n[t].row].push(n[t]);return i},t.prototype.computeEventTimeFormat=function(){return this.opt("extraSmallTimeFormat")},t.prototype.computeDisplayEventEnd=function(){return this.dayGrid.colCnt===1},t.prototype.fgSegHtml=function(n,t){var r=this.view,i=n.footprint.eventDef,s=n.footprint.componentFootprint.isAllDay,v=r.isEventDefDraggable(i),h=!t&&s&&n.isStart&&r.isEventDefResizableFromStart(i),c=!t&&s&&n.isEnd&&r.isEventDefResizableFromEnd(i),l=this.getSegClasses(n,v,h||c),a=u.cssToStr(this.getSkinCss(i)),f="",e,o;return l.unshift("fc-day-grid-event","fc-h-event"),n.isStart&&(e=this.getTimeText(n.footprint),e&&(f='<span class="fc-time">'+u.htmlEscape(e)+"<\/span>")),o='<span class="fc-title">'+(u.htmlEscape(i.title||"")||"&nbsp;")+"<\/span>",'<a class="'+l.join(" ")+'"'+(i.url?' href="'+u.htmlEscape(i.url)+'"':"")+(a?' style="'+a+'"':"")+'><div class="fc-content">'+(this.dayGrid.isRTL?o+" "+f:f+" "+o)+"<\/div>"+(h?'<div class="fc-resizer fc-start-resizer"><\/div>':"")+(c?'<div class="fc-resizer fc-end-resizer"><\/div>':"")+"<\/a>"},t}(e.default);t.default=o},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),r=i(3),f=i(63),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t.prototype.renderSegs=function(n,t){var i=[],u;return u=this.eventRenderer.renderSegRows(n),this.component.rowEls.each(function(n,f){var o=r(f),s=r('<div class="fc-helper-skeleton"><table><\/table><\/div>'),e,h;t&&t.row===n?h=t.el.position().top:(e=o.find(".fc-content-skeleton tbody"),e.length||(e=o.find(".fc-content-skeleton table")),h=e.position().top);s.css("top",h).find("table").append(u[n].tbodyEl);o.append(s);i.push(s[0])}),r(i)},t}(f.default);t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(3),f=i(62),e=function(n){function t(){var t=n!==null&&n.apply(this,arguments)||this;return t.fillSegTag="td",t}return r.__extends(t,n),t.prototype.attachSegEls=function(n,t){for(var f=[],r,u,i=0;i<t.length;i++)r=t[i],u=this.renderFillRow(n,r),this.component.rowEls.eq(r.row).append(u),f.push(u[0]);return f},t.prototype.renderFillRow=function(n,t){var o=this.component.colCnt,r=t.leftCol,f=t.rightCol+1,s,e,i;return s=n==="businessHours"?"bgevent":n.toLowerCase(),e=u('<div class="fc-'+s+'-skeleton"><table><tr><\/tr><\/table><\/div>'),i=e.find("tr"),r>0&&i.append(new Array(r+1).join("<td><\/td>")),i.append(t.el.attr("colspan",f-r)),f<o&&i.append(new Array(o-f+1).join("<td><\/td>")),this.component.bookendCells(i),e},t}(f.default);t.default=e}
102,function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(0),e=i(4),o=i(67),s=i(247),r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t.prototype.setGridHeight=function(n,t){t&&(n*=this.dayGrid.rowCnt/6);e.distributeHeight(this.dayGrid.rowEls,n,!t)},t.prototype.isDateInOtherMonth=function(n,t){return n.month()!==f.utc(t.currentUnzonedRange.startMs).month()},t}(o.default);t.default=r;r.prototype.dateProfileGeneratorClass=s.default},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(68),f=i(5),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.buildRenderRange=function(t,i,r){var e=n.prototype.buildRenderRange.call(this,t,i,r),o=this.msToUtcMoment(e.startMs,r),u=this.msToUtcMoment(e.endMs,r),s;return this.opt("fixedWeekCount")&&(s=Math.ceil(u.diff(o,"weeks",!0)),u.add(6-s,"weeks")),new f.default(o,u)},t}(u.default);t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),e=i(3),r=i(4),o=i(5),s=i(43),h=i(41),c=i(249),l=i(250),u=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.segSelector=".fc-list-item",r.scroller=new h.default({overflowX:"hidden",overflowY:"auto"}),r}return f.__extends(t,n),t.prototype.renderSkeleton=function(){this.el.addClass("fc-list-view "+this.calendar.theme.getClass("listView"));this.scroller.render();this.scroller.el.appendTo(this.el);this.contentEl=this.scroller.scrollEl},t.prototype.unrenderSkeleton=function(){this.scroller.destroy()},t.prototype.updateSize=function(t,i,r){n.prototype.updateSize.call(this,t,i,r);this.scroller.clear();i||this.scroller.setHeight(this.computeScrollerHeight(t))},t.prototype.computeScrollerHeight=function(n){return n-r.subtractInnerElHeight(this.el,this.scroller.el)},t.prototype.renderDates=function(n){for(var i=this.calendar,t=i.msToUtcMoment(n.renderUnzonedRange.startMs,!0),f=i.msToUtcMoment(n.renderUnzonedRange.endMs,!0),r=[],u=[];t<f;)r.push(t.clone()),u.push(new o.default(t,t.clone().add(1,"day"))),t.add(1,"day");this.dayDates=r;this.dayRanges=u},t.prototype.componentFootprintToSegs=function(n){for(var u=this.dayRanges,i,r,f=[],t=0;t<u.length;t++)if(i=n.unzonedRange.intersect(u[t]),i&&(r={startMs:i.startMs,endMs:i.endMs,isStart:i.isStart,isEnd:i.isEnd,dayIndex:t},f.push(r),!r.isEnd&&!n.isAllDay&&t+1<u.length&&n.unzonedRange.endMs<u[t+1].startMs+this.nextDayThreshold)){r.endMs=n.unzonedRange.endMs;r.isEnd=!0;break}return f},t.prototype.renderEmptyMessage=function(){this.contentEl.html('<div class="fc-list-empty-wrap2"><div class="fc-list-empty-wrap1"><div class="fc-list-empty">'+r.htmlEscape(this.opt("noEventsMessage"))+"<\/div><\/div><\/div>")},t.prototype.renderSegList=function(n){for(var u=this.groupSegsByDay(n),i,r,f=e('<table class="fc-list-table '+this.calendar.theme.getClass("tableList")+'"><tbody><\/tbody><\/table>'),o=f.find("tbody"),t=0;t<u.length;t++)if(i=u[t],i)for(o.append(this.dayHeaderHtml(this.dayDates[t])),this.eventRenderer.sortEventSegs(i),r=0;r<i.length;r++)o.append(i[r].el);this.contentEl.empty().append(f)},t.prototype.groupSegsByDay=function(n){for(var r=[],i,t=0;t<n.length;t++)i=n[t],(r[i.dayIndex]||(r[i.dayIndex]=[])).push(i);return r},t.prototype.dayHeaderHtml=function(n){var t=this.opt("listDayFormat"),i=this.opt("listDayAltFormat");return'<tr class="fc-list-heading" data-date="'+n.format("YYYY-MM-DD")+'"><td class="'+(this.calendar.theme.getClass("tableListHeading")||this.calendar.theme.getClass("widgetHeader"))+'" colspan="3">'+(t?this.buildGotoAnchorHtml(n,{"class":"fc-list-heading-main"},r.htmlEscape(n.format(t))):"")+(i?this.buildGotoAnchorHtml(n,{"class":"fc-list-heading-alt"},r.htmlEscape(n.format(i))):"")+"<\/td><\/tr>"},t}(s.default);t.default=u;u.prototype.eventRendererClass=c.default;u.prototype.eventPointingClass=l.default},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),r=i(4),f=i(44),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t.prototype.renderFgSegs=function(n){n.length?this.component.render
102SegList(n):this.component.renderEmptyMessage()},t.prototype.fgSegHtml=function(n){var t=this.view,u=t.calendar,f=u.theme,e=n.footprint,i=e.eventDef,o=e.componentFootprint,s=i.url,h=["fc-list-item"].concat(this.getClasses(i)),c=this.getBgColor(i),l;return l=o.isAllDay?t.getAllDayHtml():t.isMultiDayRange(o.unzonedRange)?n.isStart||n.isEnd?r.htmlEscape(this._getTimeText(u.msToMoment(n.startMs),u.msToMoment(n.endMs),o.isAllDay)):t.getAllDayHtml():r.htmlEscape(this.getTimeText(e)),s&&h.push("fc-has-url"),'<tr class="'+h.join(" ")+'">'+(this.displayEventTime?'<td class="fc-list-item-time '+f.getClass("widgetContent")+'">'+(l||"")+"<\/td>":"")+'<td class="fc-list-item-marker '+f.getClass("widgetContent")+'"><span class="fc-event-dot"'+(c?' style="background-color:'+c+'"':"")+'><\/span><\/td><td class="fc-list-item-title '+f.getClass("widgetContent")+'"><a'+(s?' href="'+r.htmlEscape(s)+'"':"")+">"+r.htmlEscape(i.title||"")+"<\/a><\/td><\/tr>"},t.prototype.computeEventTimeFormat=function(){return this.opt("mediumTimeFormat")},t}(f.default);t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(3),f=i(64),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.handleClick=function(t,i){var r;n.prototype.handleClick.call(this,t,i);u(i.target).closest("a[href]").length||(r=t.footprint.eventDef.url,r&&!i.isDefaultPrevented()&&(window.location.href=r))},t}(f.default);t.default=e},,,,,,function(n,t,i){var r=i(3),u=i(18),f=i(4),e=i(232);i(11);i(49);i(260);i(261);i(264);i(265);i(266);i(267);r.fullCalendar=u;r.fn.fullCalendar=function(n){var i=Array.prototype.slice.call(arguments,1),t=this;return this.each(function(u,o){var h=r(o),s=h.data("fullCalendar"),c;typeof n=="string"?n==="getCalendar"?u||(t=s):n==="destroy"?s&&(s.destroy(),h.removeData("fullCalendar")):s?r.isFunction(s[n])?(c=s[n].apply(s,i),u||(t=c),n==="destroy"&&h.removeData("fullCalendar")):f.warn("'"+n+"' is an unknown FullCalendar method."):f.warn("Attempting to call a FullCalendar method on an element with no calendar."):s||(s=new e.default(h,n),h.data("fullCalendar",s),s.render())}),t};n.exports=u},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),u=i(4),f=function(){function n(n,t){this.el=null;this.viewsWithButtons=[];this.calendar=n;this.toolbarOptions=t}return n.prototype.setToolbarOptions=function(n){this.toolbarOptions=n},n.prototype.render=function(){var t=this.toolbarOptions.layout,n=this.el;t?(n?n.empty():n=this.el=r("<div class='fc-toolbar "+this.toolbarOptions.extraClasses+"'>"),n.append(this.renderSection("left")).append(this.renderSection("right")).append(this.renderSection("center")).append('<div class="fc-clear"><\/div>')):this.removeElement()},n.prototype.removeElement=function(){this.el&&(this.el.remove(),this.el=null)},n.prototype.renderSection=function(n){var s=this,i=this.calendar,t=i.theme,f=i.optionsManager,h=i.viewSpecManager,e=r('<div class="fc-'+n+'">'),o=this.toolbarOptions.layout[n],c=f.get("customButtons")||{},l=f.overrides.buttonText||{},a=f.get("buttonText")||{};return o&&r.each(o.split(" "),function(n,f){var o=r(),y=!0,v;r.each(f.split(","),function(n,f){var w,k,b,p,v,d,nt,e,g;f==="title"?(o=o.add(r("<h2>&nbsp;<\/h2>")),y=!1):((w=c[f])?(b=function(n){w.click&&w.click.call(e[0],n)},(p=t.getCustomButtonIconClass(w))||(p=t.getIconClass(f))||(v=w.text)):(k=h.getViewSpec(f))?(s.viewsWithButtons.push(f),b=function(){i.changeView(f)},(v=k.buttonTextOverride)||(p=t.getIconClass(f))||(v=k.buttonTextDefault)):i[f]&&(b=function(){i[f]()},(v=l[f])||(p=t.getIconClass(f))||(v=a[f])),b&&(nt=["fc-"+f+"-button",t.getClass("button"),t.getClass("stateDefault")],v?(d=u.htmlEscape(v),g=""):p&&(d="<span class='"+p+"'><\/span>",g=' aria-label="'+f+'"'),e=r('<button type="button" class="'+nt.join(" ")+'"'+g+">"+d+"<\/button>").click(function(n){e.hasClass(t.getClass("stateDisabled"))||(b(n),(e.hasClass(t.getClass("stateActive"))||e.hasClass(t.getClass("stateDisabled")))&&e.removeClass(t.getClass("stateHover")))}).mousedown(function(){e.not("."+t.getClass("stateActive")).not("."+t.getClass("stateDisabled")).addClass(t.getClass("stateDown"))}).mouseup(function(){e.removeClass(t.getClass("stateDown"))}).hover(function(){e.not("."+t.getClass("stateActive")).not("."+t.getClass("stateDisabled")).addClass(t.getClass("stateHover"))},function(){e.removeClass(t.getClass("stateHover")).removeClass(t.getClass("stateDown"))}),o=o.add(e)))});
102y&&o.first().addClass(t.getClass("cornerLeft")).end().last().addClass(t.getClass("cornerRight")).end();o.length>1?(v=r("<div>"),y&&v.addClass(t.getClass("buttonGroup")),v.append(o),e.append(v)):e.append(o)}),e},n.prototype.updateTitle=function(n){this.el&&this.el.find("h2").text(n)},n.prototype.activateButton=function(n){this.el&&this.el.find(".fc-"+n+"-button").addClass(this.calendar.theme.getClass("stateActive"))},n.prototype.deactivateButton=function(n){this.el&&this.el.find(".fc-"+n+"-button").removeClass(this.calendar.theme.getClass("stateActive"))},n.prototype.disableButton=function(n){this.el&&this.el.find(".fc-"+n+"-button").prop("disabled",!0).addClass(this.calendar.theme.getClass("stateDisabled"))},n.prototype.enableButton=function(n){this.el&&this.el.find(".fc-"+n+"-button").prop("disabled",!1).removeClass(this.calendar.theme.getClass("stateDisabled"))},n.prototype.getViewsWithButtons=function(){return this.viewsWithButtons},n}();t.default=f},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var e=i(2),o=i(3),f=i(4),r=i(33),u=i(32),s=i(51),h=function(n){function t(t,i){var r=n.call(this)||this;return r._calendar=t,r.overrides=o.extend({},i),r.dynamicOverrides={},r.compute(),r}return e.__extends(t,n),t.prototype.add=function(n){var i=0,t;this.recordOverrides(n);for(t in n)i++;if(i===1){if(t==="height"||t==="contentHeight"||t==="aspectRatio"){this._calendar.updateViewSize(!0);return}if(t==="defaultDate")return;if(t==="businessHours")return;if(/^(event|select)(Overlap|Constraint|Allow)$/.test(t))return;if(t==="timezone"){this._calendar.view.flash("initialEvents");return}}this._calendar.renderHeader();this._calendar.renderFooter();this._calendar.viewsByType={};this._calendar.reinitView()},t.prototype.compute=function(){var t,n,o,i,e;t=f.firstDefined(this.dynamicOverrides.locale,this.overrides.locale);n=u.localeOptionHash[t];n||(t=r.globalDefaults.locale,n=u.localeOptionHash[t]||{});o=f.firstDefined(this.dynamicOverrides.isRTL,this.overrides.isRTL,n.isRTL,r.globalDefaults.isRTL);i=o?r.rtlDefaults:{};this.dirDefaults=i;this.localeDefaults=n;e=r.mergeOptions([r.globalDefaults,i,n,this.overrides,this.dynamicOverrides]);u.populateInstanceComputableOptions(e);this.reset(e)},t.prototype.recordOverrides=function(n){for(var t in n)this.dynamicOverrides[t]=n[t];this._calendar.viewSpecManager.clearCache();this.compute()},t}(s.default);t.default=h},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var o=i(0),f=i(3),e=i(24),u=i(4),r=i(33),s=i(32),h=function(){function n(n,t){this.optionsManager=n;this._calendar=t;this.clearCache()}return n.prototype.clearCache=function(){this.viewSpecCache={}},n.prototype.getViewSpec=function(n){var t=this.viewSpecCache;return t[n]||(t[n]=this.buildViewSpec(n))},n.prototype.getUnitViewSpec=function(n){var t,i,r;if(f.inArray(n,u.unitsDesc)!==-1)for(t=this._calendar.header.getViewsWithButtons(),f.each(e.viewHash,function(n){t.push(n)}),i=0;i<t.length;i++)if(r=this.getViewSpec(t[i]),r&&r.singleUnit===n)return r},n.prototype.buildViewSpec=function(n){for(var a=this.optionsManager.overrides.views||{},v=[],y=[],l=[],f=n,t,s,i,h,c;f;)t=e.viewHash[f],s=a[f],f=null,typeof t=="function"&&(t={"class":t}),t&&(v.unshift(t),y.unshift(t.defaults||{}),i=i||t.duration,f=f||t.type),s&&(l.unshift(s),i=i||s.duration,f=f||s.type);return(t=u.mergeProps(v),t.type=n,!t["class"])?!1:(i=i||this.optionsManager.dynamicOverrides.duration||this.optionsManager.overrides.duration,i&&(h=o.duration(i),h.valueOf()&&(c=u.computeDurationGreatestUnit(h,i),t.duration=h,t.durationUnit=c,h.as(c)===1&&(t.singleUnit=c,l.unshift(a[c]||{})))),t.defaults=r.mergeOptions(y),t.overrides=r.mergeOptions(l),this.buildViewSpecOptions(t),this.buildViewSpecButtonText(t,n),t)},n.prototype.buildViewSpecOptions=function(n){var t=this.optionsManager;n.options=r.mergeOptions([r.globalDefaults,n.defaults,t.dirDefaults,t.localeDefaults,t.overrides,n.overrides,t.dynamicOverrides]);s.populateInstanceComputableOptions(n.options)},n.prototype.buildViewSpecButtonText=function(n,t){function i(i){var r=i.buttonText||{};return r[t]||(n.buttonTextKey?r[n.buttonTextKey]:null)||(n.singleUnit?r[n.singleUnit]:null)}var u=this.optionsManager;n.buttonTextOverride=i(u.dynamicOverrides)||i(u.overrides)||n.overrides.buttonText;n.buttonTextDefault=i(u.localeDefaults)||i(u.dirDefaults)||n.defaults.buttonText||i(r.globalDefaults)||(n.duration?this._calendar.humanizeDuration(n.duration):null)||t},n}();t.default=h}
102,function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(38),u=i(56),f=i(223),e=i(224);r.default.registerClass(u.default);r.default.registerClass(f.default);r.default.registerClass(e.default)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(57),u=i(221),f=i(222),e=i(262),o=i(263);r.defineThemeSystem("standard",u.default);r.defineThemeSystem("jquery-ui",f.default);r.defineThemeSystem("bootstrap3",e.default);r.defineThemeSystem("bootstrap4",o.default)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(22),r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t}(f.default);t.default=r;r.prototype.classes={widget:"fc-bootstrap3",tableGrid:"table-bordered",tableList:"table",tableListHeading:"active",buttonGroup:"btn-group",button:"btn btn-default",stateActive:"active",stateDisabled:"disabled",today:"alert alert-info",popover:"panel panel-default",popoverHeader:"panel-heading",popoverContent:"panel-body",headerRow:"panel-default",dayRow:"panel-default",listView:"panel panel-default"};r.prototype.baseIconClass="glyphicon";r.prototype.iconClasses={close:"glyphicon-remove",prev:"glyphicon-chevron-left",next:"glyphicon-chevron-right",prevYear:"glyphicon-backward",nextYear:"glyphicon-forward"};r.prototype.iconOverrideOption="bootstrapGlyphicons";r.prototype.iconOverrideCustomButtonOption="bootstrapGlyphicon";r.prototype.iconOverridePrefix="glyphicon-"},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(22),r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t}(f.default);t.default=r;r.prototype.classes={widget:"fc-bootstrap4",tableGrid:"table-bordered",tableList:"table",tableListHeading:"table-active",buttonGroup:"btn-group",button:"btn btn-primary",stateActive:"active",stateDisabled:"disabled",today:"alert alert-info",popover:"card card-primary",popoverHeader:"card-header",popoverContent:"card-body",headerRow:"table-bordered",dayRow:"table-bordered",listView:"card card-primary"};r.prototype.baseIconClass="fa";r.prototype.iconClasses={close:"fa-times",prev:"fa-chevron-left",next:"fa-chevron-right",prevYear:"fa-angle-double-left",nextYear:"fa-angle-double-right"};r.prototype.iconOverrideOption="bootstrapFontAwesome";r.prototype.iconOverrideCustomButtonOption="bootstrapFontAwesome";r.prototype.iconOverridePrefix="fa-"},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(24),u=i(67),f=i(246);r.defineView("basic",{"class":u.default});r.defineView("basicDay",{type:"basic",duration:{days:1}});r.defineView("basicWeek",{type:"basic",duration:{weeks:1}});r.defineView("month",{"class":f.default,duration:{months:1},defaults:{fixedWeekCount:!0}})},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(24),u=i(238);r.defineView("agenda",{"class":u.default,defaults:{allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0}});r.defineView("agendaDay",{type:"agenda",duration:{days:1}});r.defineView("agendaWeek",{type:"agenda",duration:{weeks:1}})},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(24),u=i(248);r.defineView("list",{"class":u.default,buttonTextKey:"list",defaults:{buttonText:"list",listDayFormat:"LL",noEventsMessage:"No events to display"}});r.defineView("listDay",{type:"list",duration:{days:1},defaults:{listDayFormat:"dddd"}});r.defineView("listWeek",{type:"list",duration:{weeks:1},defaults:{listDayFormat:"dddd",listDayAltFormat:"LL"}});r.defineView("listMonth",{type:"list",duration:{month:1},defaults:{listDayAltFormat:"dddd"}});r.defineView("listYear",{type:"list",duration:{year:1},defaults:{listDayAltFormat:"dddd"}})},function(n,t){Object.defineProperty(t,"__esModule",{value:!0})}])});!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("moment"),require("fullcalendar")):"function"==typeof define&&define.amd?define(["moment","fullcalendar"],t):"object"==typeof exports?t(require("moment"),require("fullcalendar")):t(n.moment,n.FullCalendar)}("undefined"!=typeof self?self:this,function(n,t){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var i={};return t.m=n,t.c=i,t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=97)}({0:function(t){t.exports=n},1:function(n){n.exports=t}
102,97:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});i(98);var r=i(1);r.datepickerLocale("da","da",{closeText:"Luk",prevText:"&#x3C;Forrige",nextText:"Næste&#x3E;",currentText:"Idag",monthNames:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],dayNames:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],dayNamesShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayNamesMin:["Sø","Ma","Ti","On","To","Fr","Lø"],weekHeader:"Uge",dateFormat:"dd-mm-yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""});r.locale("da",{buttonText:{month:"Måned",week:"Uge",day:"Dag",list:"Liste"},allDayText:"Hele dagen",eventLimitText:"flere",noEventsMessage:"Ingen arrangementer at vise"})},98:function(n,t,i){!function(n,t){t(i(0))}(0,function(n){return n.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})}})});$(function(){if($(".theme_BigMenu_wrap").length){$(".theme_BigMenu_wrap").appendTo($("#siteWrap"));var n=$(".topNavigation").offset().top+$(".topNavigation").height();$(".theme_BigMenu_wrap").css("top",n)}$(document).on("mouseover",".theme_BigMenu_topLevelLi",function(){var n="menuItem_"+$(this).data("no"),e=$(this).offset().top+$(this).height(),t,u,r;$(".theme_BigMenu_wrap").each(function(){n!="menuItem_"?$(this).hasClass(n)==!1&&($(this).hide(),$(this).removeClass("activeMenuWrap")):$(".theme_BigMenu_wrap").hide()});var o=$(this).data("no"),f=$("."+n),i=[];if(f.find(".theme_BigMenu_ItemContainer").empty(),$(".theme_BigMenu_MenuItem").each(function(){$(this).data("parent")===o&&i.push($(this))}),i.length){for(t=$("<div>"),t.addClass("theme_BigMenu_SubItemContainer"),t.data("level",1),f.find(".theme_BigMenu_ItemContainer").append(t),u=$("<div>"),u.addClass("backButton"),u.appendTo(t),r=0;r<i.length;r++)i[r].clone().appendTo(t);$("."+n).show()}$("."+n).addClass("activeMenuWrap");$("."+n).css("top",e)});$(document).on("click",".theme_BigMenu_MenuItem",function(n){var u,t,f,r;if($(this).hasClass("active")==!1&&$(this).hasClass("hasChildren")){n.stopPropagation();n.preventDefault();var e=$(this).data("id"),o=$(this),i=[];if($(".theme_BigMenu_MenuItemBox").find(".theme_BigMenu_MenuItem").each(function(){$(this).data("parent")===e&&i.push($(this))}),$(".theme_BigMenu_MenuItem").removeClass("active"),$(this).addClass("active"),u=$(this).parent().data("level"),$(".theme_BigMenu_SubItemContainer").each(function(){$(this).data("level")>u&&$(this).remove()}),i.length){for(t=$("<div>"),t.css("display","none"),t.addClass("theme_BigMenu_SubItemContainer"),t.data("level",u+1),t.appendTo($(".activeMenuWrap").find(".theme_BigMenu_ItemContainer")),f=$("<div>"),f.addClass("backButton"),f.appendTo(t),r=0;r<i.length;r++)$(i[r]).clone().appendTo(t);t.fadeIn()}$(this).parent().addClass("cascaded")}});$(document).on("mouseout",".theme_BigMenu_wrap",function(){var n=this;setTimeout(function(){$(n).is(":hover")==!1&&$(n).fadeOut()},500)});$(".theme_BigMenu_subUl ul").each(function(){var n=$(this).closest("theme_BigMenu_wrap").scrollTop()});$(".theme_BigMenu_MenuItem").each(function(){$(this).appendTo(".theme_BigMenu_MenuItemBox");var n=!1,t=$(this).data("id");$(".theme_BigMenu_MenuItem").each(function(){$(this).data("parent")===t&&(n=!0)});n&&$(this).addClass("hasChildren")});$(".theme_BigMenu_subUl ul").css({display:"none"});$(".theme_BigMenu_subUl li").hover(function(){$(this).siblings().find("ul:first").hide();$(this).find("ul:first").css({display:"inline-block"});$(this).parent().css({display:"inline-block"})},function(){var n=this;setTimeout(function(){$(n).is(":hover")==!1&&$(n).find("ul:first").fadeOut()},500)});$(document).on("click",".theme_BigMenu_wrap .backButton",function(){$(this).parent().removeClass("cascaded");$(this).parent().nextAll(".theme_BigMenu_SubItemContainer").fadeOut().remove();$(".theme_BigMenu_MenuItem.active").removeClass("active")})});$(function(){$(".dropDownNav li ul:not(:has(li))").remove();var n=$(".dropDownNav li").has("ul").find("a:first");n.append("<div style='display:inline;'><icon class='fa fa-angle-right'><\/icon><\/div>");$(".dropDownNav a .noLink").on("click",function(n){return n.preventDefault(),!1});$(".dropDownNav li").has("ul").hover(function(){$(this).find("icon:first").addClass("fa-angle-down");$(this).find("ul:first").stop().show();$(this).find("ul > li > ul").css("display","none");var n=$(this).offset().left,t=$(this).width(),r=$(".topNavigation").offset().left+$(".topNavigation").width(),i=$(window).width();t+n>i-200?$(this).parents("ul").length>1&&$(this).addClass("dropdownRight"):$(this).removeClass("dropdownRight");$(this).hasClass(".dropdownRight")},function(){$(this).find("icon:first").removeClass("fa-angle-down");var n=$(this);n.find("ul:first").stop().hide("fast")})});$(function(){if($(".theme_MegaMenu_wrap").length){$(".theme_MegaMenu_wrap").appendTo($("#siteWrap"));var n=$(".topNavigation").offset().top+$(".topNavigation").height();$(".theme_MegaMenu_wrap").css("top",n)}$(document).on("mouseover",".theme_MegaMenu_topLevelLi",function(){var n="menuItem_"+$(this).data("no"),t=$(this).offset().top+$(this).height(),i,r;$(".theme_MegaMenu_wrap").each(function(){n!="menuItem_"?$(this).hasClass(n)==!1&&($(this).hide(),$(this).removeClass("activeMenuWrap")):$(".theme_MegaMenu_wrap").hide()});i=$(this).data("no");r=$("."+n);$("."+n).find("li").length&&($("."+n).show(),$("."+n).addClass("activeMenuWrap"),$("."+n).css("top",t))});$(document).on("mouseout",".theme_MegaMenu_wrap",function(){var n=this;setTimeout(function(){$(n).is(":hover")==!1}
102,500)});$(".megaMenuItem").each(function(){$(this).find("ul li").length&&($(this).parent().parent().hasClass("theme_MegaMenu_ItemContainer")||$(this).find("> a:first, > span:first").append("<icon class='fa fa-chevron-right'><\/icon>"))});$(".theme_MegaMenu_ItemContainer li").has("ul").hover(function(){$(this).find("ul:first").parent().parent().parent().hasClass("theme_MegaMenu_ItemContainer")||($(this).find("ul:first ul").css("display","none"),$(this).find("ul:first").show())},function(){$(this).find("ul:first").parent().parent().parent().hasClass("theme_MegaMenu_ItemContainer")||$(this).find("ul:first").fadeOut().css("display","none")});$(".theme_MegaMenu_wrap").hover(function(){},function(){$(this).fadeOut().css("display","none")})});$(function(){if($(".field-bookings").length){$(".field-bookings").each(function(){GetBookings($(this))});$(document).on("change",".field-select",function(){GetBookings($(this).closest(".field-bookings"))});$(document).on("click",".booking-cell",function(n){$(n.target).hasClass("week-event")||ShowBookingInfo($(this).closest(".field-bookings"),$(n.target))});$(document).on("change",".switch-dayweek",function(){ToggleDayWeek($(this).closest(".field-bookings"))})}});!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){function u(t,r){var u,h;this.element=t;this.$element=n(this.element);this.doc=n(document);this.win=n(window);this.settings=n.extend({},e,r);"object"==typeof this.$element.data("tipso")&&n.extend(this.settings,this.$element.data("tipso"));for(var s=Object.keys(this.$element.data()),c={},f=0;f<s.length;f++)if(u=s[f].replace(i,""),""!==u){u=u.charAt(0).toLowerCase()+u.slice(1);c[u]=this.$element.data(s[f]);for(h in this.settings)h.toLowerCase()==u&&(this.settings[h]=c[u])}this._defaults=e;this._name=i;this._title=this.$element.attr("title");this.mode="hide";this.ieFade=!o;this.settings.preferedPosition=this.settings.position;this.init()}function t(t){var i=t.clone(),r,u;return i.css("visibility","hidden"),n("body").append(i),r=i.outerHeight(),u=i.outerWidth(),i.remove(),{width:u,height:r}}function r(n){n.removeClass("top_right_corner bottom_right_corner top_left_corner bottom_left_corner");n.find(".tipso_title").removeClass("top_right_corner bottom_right_corner top_left_corner bottom_left_corner")}function f(i){var c,s,v,u=i.tooltip(),o=i.$element,e=i,h=n(window),l=10,a=e.settings.background,p=e.titleContent(),y;switch(void 0!==p&&""!==p&&(a=e.settings.titleBackground),o.parent().outerWidth()>h.outerWidth()&&(h=o.parent()),e.settings.position){case"top-right":s=o.offset().left+o.outerWidth();c=o.offset().top-t(u).height-l;u.find(".tipso_arrow").css({marginLeft:-e.settings.arrowWidth,marginTop:""});c<h.scrollTop()?(c=o.offset().top+o.outerHeight()+l,u.find(".tipso_arrow").css({"border-bottom-color":a,"border-top-color":"transparent","border-left-color":"transparent","border-right-color":"transparent"}),r(u),u.addClass("bottom_right_corner"),u.find(".tipso_title").addClass("bottom_right_corner"),u.find(".tipso_arrow").css({"border-left-color":a}),u.removeClass("top-right top bottom left right"),u.addClass("bottom")):(u.find(".tipso_arrow").css({"border-top-color":e.settings.background,"border-bottom-color":"transparent ","border-left-color":"transparent","border-right-color":"transparent"}),r(u),u.addClass("top_right_corner"),u.find(".tipso_arrow").css({"border-left-color":e.settings.background}),u.removeClass("top bottom left right"),u.addClass("top"));break;case"top-left":s=o.offset().left-t(u).width;c=o.offset().top-t(u).height-l;u.find(".tipso_arrow").css({marginLeft:-e.settings.arrowWidth,marginTop:""});c<h.scrollTop()?(c=o.offset().top+o.outerHeight()+l,u.find(".tipso_arrow").css({"border-bottom-color":a,"border-top-color":"transparent","border-left-color":"transparent","border-right-color":"transparent"}),r(u),u.addClass("bottom_left_corner"),u.find(".tipso_title").addClass("bottom_left_corner"),u.find(".tipso_arrow").css({"border-right-color":a}),u.removeClass("top-right top bottom left right"),u.addClass("bottom")):(u.find(".tipso_arrow").css({"border-top-color":e.settings.background,"border-bottom-color":"transparent ","border-left-color":"transparent","border-right-color":"transparent"}),r(u),u.addClass("top_left_corner"),u.find(".tipso_arrow").css({"border-right-color":e.settings.background}),u.removeClass("top bottom left right"),u.addClass("top"));break;case"bottom-right":s=o.offset().left+o.outerWidth();c=o.offset().top+o.outerHeight()+l;u.find(".tipso_arrow").css({marginLeft:-e.settings.arrowWidth,marginTop:""});c+t(u).height>h.scrollTop()+h.outerHeight()?(c=o.offset().top-t(u).height-l,u.find(".tipso_arrow").css({"border-bottom-color":"transparent","border-top-color":e.settings.background,"border-left-color":"transparent","border-right-color":"transparent"}),r(u),u.addClass("top_right_corner"),u.find(".tipso_title").addClass("top_left_corner"),u.find(".tipso_arrow").css({"border-left-color":e.settings.background}),u.removeClass("top-right top bottom left right"),u.addClass("top")):(u.find(".tipso_arrow").css({"border-top-color":"transparent","border-bottom-color":a,"border-left-color":"transparent","border-right-color":"transparent"}),r(u),u.addClass("bottom_right_corner"),u.find(".tipso_title").addClass("bottom_right_corner"),u.find(".tipso_arrow").css({"border-left-color":a}),u.removeClass("top bottom left right"),u.addClass("bottom"));break;case"bottom-left":s=o.offset().left-t(u).width;c=o.offset().top+o.outerHeight()+l;u.find(".tipso_arrow").css({marginLeft:-e.settings.arrowWidth,marginTop:""});c+t(u).height>h.scrollTop()+h.outerHeight()?(c=o.offset().top-t(u).height-l,u.find(".tipso_arrow").css({"border-bottom-color":"transparent","border-top-color":e.settings.background,"border-left-color":"transparent","border-right-color":"transparent"}),r(u),u.addClass("top_left_corner"),u.find(".tipso_title").addClass("top_left_corner"),u.find(".tipso_arrow").css({"border-right-color":e.settings.background}),u.removeClass("top-right top bottom left right"),u.addClass("top")):(u.find(".tipso_arrow").css({"border-top-color":"transparent","border-bottom-color":a,"border-left-color":"transparent","border-right-color":"transparent"}),r(u),u.addClass("bottom_left_corner"),u.find(".tipso_title").addClass("bottom_left_corner"),u.find(".tipso_arrow").css({"border-right-color":a}),u.removeClass("top bottom left right"),u.addClass("bottom"));break;case"top":s=o.offset().left+o.outerWidth()/2-t(u).width/2;c=o.offset().top-t(u).height-l;u.find(".tipso_arrow").css({marginLeft:-e.settings.arrowWidth,marginTop:""});c<h.scrollTop()?(c=o.offset().top+o.outerHeight()+l,u.find(".tipso_arrow").css({"border-bottom-color":a,"border-top-color":"transparent","border-left-color":"transparent","border-right-color":"transparent"}),u.removeClass("top bottom left right"),u.addClass("bottom")):(u.find(".tipso_arrow").css({"border-top-color":e.settings.background,"border-bottom-color":"transparent","border-left-color":"transparent","border-right-color":"transparent"}),u.removeClass("top bottom left right"),u.addClass("top"));break;case"bottom":s=o.offset().left+o.outerWidth()/2-t(u).width/2;c=o.offset().top+o.outerHeight()+l;u.find(".tipso_arrow").css({marginLeft:-e.settings.arrowWidth,marginTop:""});c+t(u).height>h.scrollTop()+h.outerHeight()?(c=o.offset().top-t(u).height-l,u.find(".tipso_arrow").css({"border-top-color":e.settings.background,"border-bottom-color":"transparent","border-left-color":"transparent","border-right-color":"transparent"}),u.removeClass("top bottom left right"),u.addClass("top")):(u.find(".tipso_arrow").css({"border-bottom-color":a,"border-top-color":"transparent","border-left-color":"transparent","border-right-color":"transparent"}),u.removeClass("top bottom left right"),u.addClass(e.settings.position));break;case"left":s=o.offset().left-t(u).width-l;c=o.offset().top+o.outerHeight()/2-t(u).height/2;u.find(".tipso_arrow").css({marginTop:-e.settings.arrowWidth,marginLeft:""});s<h.scrollLeft()?(s=o.offset().left+o.outerWidth()+l,u.find(".tipso_arrow").css({"border-right-color":e.settings.background,"border-left-color":"transparent","border-top-color":"transparent","border-bottom-color":"transparent"}),u.removeClass("top bottom left right"),u.addClass("right")):(u.find(".tipso_arrow").css({"border-left-color":e.settings.background,"border-right-color":"transparent","border-top-color":"transparent","border-bottom-color":"transparent"}),u.removeClass("top bottom left right"),u.addClass(e.settings.position));break;case"right":s=o.offset().left+o.outerWidth()+l;c=o.offset().top+o.outerHeight()/2-t(u).height/2;u.find(".tipso_arrow").css({marginTop:-e.settings.arrowWidth,marginLeft:""});s+l+e.settings.width>h.scrollLeft()+h.outerWidth()?(s=o.offset().left-t(u).width-l,u.find(".tipso_arrow").css({"border-left-color":e.settings.background,"border-right-color":"transparent","border-top-color":"transparent","border-bottom-color":"transparent"}),u.removeClass("top bottom left right"),u.addClass("left")):(u.find(".tipso_arrow").css({"border-right-color":e.settings.background,"border-left-color":"transparent","border-top-color":"transparent","border-bottom-color":"transparent"}),u.removeClass("top bottom left right"),u.addClass(e.settings.position))}("top-right"===e.settings.position&&u.find(".tipso_arrow").css({"margin-left":-e.settings.width/2}),"top-left"===e.settings.position)&&(y=u.find(".tipso_arrow").eq(0),y.css({"margin-left":e.settings.width/2-2*e.settings.arrowWidth}));"bottom-right"===e.settings.position&&(y=u.find(".tipso_arrow").eq(0),y.css({"margin-left":-e.settings.width/2,"margin-top":""}));"bottom-left"===e.settings.position&&(y=u.find(".tipso_arrow").eq(0),y.css({"margin-left":e.settings.width/2-2*e.settings.arrowWidth,"margin-top":""}));s<h.scrollLeft()&&("bottom"===e.settings.position||"top"===e.settings.position)&&(u.find(".tipso_arrow").css({marginLeft:s-e.settings.arrowWidth}),s=0);s+e.settings.width>h.outerWidth()&&("bottom"===e.settings.position||"top"===e.settings.position)&&(v=h.outerWidth()-(s+e.settings.width),u.find(".tipso_arrow").css({marginLeft:-v-e.settings.arrowWidth,marginTop:""}),s+=v);s<h.scrollLeft()&&("left"===e.settings.position||"right"===e.settings.position||"top-right"===e.settings.position||"top-left"===e.settings.position||"bottom-right"===e.settings.position||"bottom-left"===e.settings.position)&&(s=o.offset().left+o.outerWidth()/2-t(u).width/2,u.find(".tipso_arrow").css({marginLeft:-e.settings.arrowWidth,marginTop:""}),c=o.offset().top-t(u).height-l,c<h.scrollTop()?(c=o.offset().top+o.outerHeight()+l,u.find(".tipso_arrow").css({"border-bottom-color":a,"border-top-color":"transparent","border-left-color":"transparent","border-right-color":"transparent"}),u.removeClass("top bottom left right"),r(u),u.addClass("bottom")):(u.find(".tipso_arrow").css({"border-top-color":e.settings.background,"border-bottom-color":"transparent","border-left-color":"transparent","border-right-color":"transparent"}),u.removeClass("top bottom left right"),r(u),u.addClass("top")),s+e.settings.width>h.outerWidth()&&(v=h.outerWidth()-(s+e.settings.width),u.find(".tipso_arrow").css({marginLeft:-v-e.settings.arrowWidth,marginTop:""}),s+=v),s<h.scrollLeft()&&(u.find(".tipso_arrow").css({marginLeft:s-e.settings.arrowWidth}),s=0));s+e.settings.width>h.outerWidth()&&("left"===e.settings.position||"right"===e.settings.position||"top-right"===e.settings.position||"top-left"===e.settings.position||"bottom-right"===e.settings.position||"bottom-right"===e.settings.position)&&(s=o.offset().left+o.outerWidth()/2-t(u).width/2,u.find(".tipso_arrow").css({marginLeft:-e.settings.arrowWidth,marginTop:""}),c=o.offset().top-t(u).height-l,c<h.scrollTop()?(c=o.offset().top+o.outerHeight()+l,u.find(".tipso_arrow").css({"border-bottom-color":a,"border-top-color":"transparent","border-left-color":"transparent","border-right-color":"transparent"}),r(u),u.removeClass("top bottom left right"),u.addClass("bottom")):(u.find(".tipso_arrow").css({"border-top-color":e.settings.background,"border-bottom-color":"transparent","border-left-color":"transparent","border-right-color":"transparent"}),r(u),u.removeClass("top bottom left right"),u.addClass("top")),s+e.settings.width>h.outerWidth()&&(v=h.outerWidth()-(s+e.settings.width),u.find(".tipso_arrow").css({marginLeft:-v-e.settings.arrowWidth,marginTop:""}),s+=v),s<h.scrollLeft()&&(u.find(".tipso_arrow").css({marginLeft:s-e.settings.arrowWidth}),s=0));u.css({left:s+e.settings.offsetX,top:c+e.settings.offsetY});c<h.scrollTop()&&("right"===e.settings.position||"left"===e.settings.position)&&(o.tipso("update","position","bottom"),f(e));c+t(u).height>h.scrollTop()+h.outerHeight()&&("right"===e.settings.position||"left"===e.settings.position)&&(o.tipso("update","position","top"),f(e))}
102var i="tipso",e={speed:400,background:"#55b555",titleBackground:"#333333",color:"#ffffff",titleColor:"#ffffff",titleContent:"",showArrow:!0,position:"top",width:200,maxWidth:"",delay:200,hideDelay:0,animationIn:"",animationOut:"",offsetX:0,offsetY:0,arrowWidth:8,tooltipHover:!1,content:null,ajaxContentUrl:null,ajaxContentBuffer:0,contentElementId:null,useTitle:!1,templateEngineFunc:null,onBeforeShow:null,onShow:null,onHide:null},o;n.extend(u.prototype,{init:function(){var n=this,r=this.$element,t,u;this.doc;(r.addClass("tipso_style").removeAttr("title"),n.settings.tooltipHover)?(t=null,u=null,r.on("mouseover."+i,function(){clearTimeout(t);clearTimeout(u);u=setTimeout(function(){n.show()},150)}),r.on("mouseout."+i,function(){clearTimeout(t);clearTimeout(u);t=setTimeout(function(){n.hide()},200);n.tooltip().on("mouseover."+i,function(){n.mode="tooltipHover"}).on("mouseout."+i,function(){n.mode="show";clearTimeout(t);t=setTimeout(function(){n.hide()},200)})})):(r.on("mouseover."+i,function(){n.show()}),r.on("mouseout."+i,function(){n.hide()}));n.settings.ajaxContentUrl&&(n.ajaxContent=null)},tooltip:function(){return this.tipso_bubble||(this.tipso_bubble=n('<div class="tipso_bubble"><div class="tipso_title"><\/div><div class="tipso_content"><\/div><div class="tipso_arrow"><\/div><\/div>')),this.tipso_bubble},show:function(){var r=this.tooltip(),t=this,u=this.win;t.settings.showArrow===!1?r.find(".tipso_arrow").hide():r.find(".tipso_arrow").show();"hide"===t.mode&&(n.isFunction(t.settings.onBeforeShow)&&t.settings.onBeforeShow(t.$element,t.element,t),t.settings.size&&r.addClass(t.settings.size),t.settings.width?r.css({background:t.settings.background,color:t.settings.color,width:t.settings.width}).hide():t.settings.maxWidth?r.css({background:t.settings.background,color:t.settings.color,maxWidth:t.settings.maxWidth}).hide():r.css({background:t.settings.background,color:t.settings.color,width:200}).hide(),r.find(".tipso_title").css({background:t.settings.titleBackground,color:t.settings.titleColor}),r.find(".tipso_content").html(t.content()),r.find(".tipso_title").html(t.titleContent()),f(t),u.on("resize."+i,function(){t.settings.position=t.settings.preferedPosition;f(t)}),window.clearTimeout(t.timeout),t.timeout=null,t.timeout=window.setTimeout(function(){t.ieFade||""===t.settings.animationIn||""===t.settings.animationOut?r.appendTo("body").stop(!0,!0).fadeIn(t.settings.speed,function(){t.mode="show";n.isFunction(t.settings.onShow)&&t.settings.onShow(t.$element,t.element,t)}):r.remove().appendTo("body").stop(!0,!0).removeClass("animated "+t.settings.animationOut).addClass("noAnimation").removeClass("noAnimation").addClass("animated "+t.settings.animationIn).fadeIn(t.settings.speed,function(){n(this).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){n(this).removeClass("animated "+t.settings.animationIn)});t.mode="show";n.isFunction(t.settings.onShow)&&t.settings.onShow(t.$element,t.element,t);u.off("resize."+i,null,"tipsoResizeHandler")})},t.settings.delay))},hide:function(t){var r=this,u=this.win,f=this.tooltip(),e=r.settings.hideDelay;t&&(e=0,r.mode="show");window.clearTimeout(r.timeout);r.timeout=null;r.timeout=window.setTimeout(function(){"tooltipHover"!==r.mode&&(r.ieFade||""===r.settings.animationIn||""===r.settings.animationOut?f.stop(!0,!0).fadeOut(r.settings.speed,function(){n(this).remove();n.isFunction(r.settings.onHide)&&"show"===r.mode&&r.settings.onHide(r.$element,r.element,r);r.mode="hide";u.off("resize."+i,null,"tipsoResizeHandler")}):f.stop(!0,!0).removeClass("animated "+r.settings.animationIn).addClass("noAnimation").removeClass("noAnimation").addClass("animated "+r.settings.animationOut).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){n(this).removeClass("animated "+r.settings.animationOut).remove();n.isFunction(r.settings.onHide)&&"show"===r.mode&&r.settings.onHide(r.$element,r.element,r);r.mode="hide";u.off("resize."+i,null,"tipsoResizeHandler")}))},e)},close:function(){this.hide(!0)},destroy:function(){var n=this.$element,t=this.win;this.doc;n.off("."+i);t.off("resize."+i,null,"tipsoResizeHandler");n.removeData(i);n.removeClass("tipso_style").attr("title",this._title)},titleContent:function(){var t=this.$element,n=this;return n.settings.titleContent?n.settings.titleContent:t.data("tipso-title")},content:function(){var i,r=this.$element,t=this,u=this._title;
102return t.settings.ajaxContentUrl?t._ajaxContent?i=t._ajaxContent:(t._ajaxContent=i=n.ajax({type:"GET",url:t.settings.ajaxContentUrl,"async":!1}).responseText,t.settings.ajaxContentBuffer>0?setTimeout(function(){t._ajaxContent=null},t.settings.ajaxContentBuffer):t._ajaxContent=null):t.settings.contentElementId?i=n("#"+t.settings.contentElementId).text():t.settings.content?i=t.settings.content:t.settings.useTitle===!0?i=u:"string"==typeof r.data("tipso")&&(i=r.data("tipso")),null!==t.settings.templateEngineFunc&&(i=t.settings.templateEngineFunc(i)),i},update:function(n,t){var i=this;return t?void(i.settings[n]=t):i.settings[n]}});o=function(){var n=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(""===n.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in n)return!0;return!1}();n[i]=n.fn[i]=function(t){var f=arguments,r;return void 0===t||"object"==typeof t?(this instanceof n||n.extend(e,t),this.each(function(){n.data(this,"plugin_"+i)||n.data(this,"plugin_"+i,new u(this,t))})):"string"==typeof t&&"_"!==t[0]&&"init"!==t?(this.each(function(){var e=n.data(this,"plugin_"+i);e||(e=n.data(this,"plugin_"+i,new u(this,t)));e instanceof u&&"function"==typeof e[t]&&(r=e[t].apply(e,Array.prototype.slice.call(f,1)));"destroy"===t&&n.data(this,"plugin_"+i,null)}),void 0!==r?r:this):void 0}});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.