UNPKG

vue3-jalali-calendar

Version:
8 lines 102 kB
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";#persian-calendar{font-weight:400;font-size:1em;direction:rtl;-webkit-user-select:none;user-select:none}#persian-calendar *{padding:0;margin:0;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;outline:none;text-transform:none;text-decoration:none}#persian-calendar #vpc_header{padding:20px 15px;display:flex}#persian-calendar #vpc_header #vpc_date-control{display:flex;justify-content:flex-start;font-size:1em}#persian-calendar #vpc_header #vpc_date-control .vpc_control-btn{width:1em;height:1em;padding:.3em;border-radius:9999px!important;cursor:pointer!important;background-color:#7367f0!important;color:#fff!important}#persian-calendar #vpc_header #vpc_date-control .vpc_control-btn[disabled]{background-color:#ccc!important;cursor:not-allowed!important}#persian-calendar #vpc_header #vpc_date-control .vpc_now-date{margin:auto .75em;white-space:nowrap;width:215px;text-align:center}#persian-calendar #vpc_header #vpc_date-control .vpc_today-btn{display:flex;justify-content:center;align-items:center;height:1em;margin:0 10px;height:1.3em;line-height:1em;vertical-align:middle;padding:.2em 1.2em;border-radius:15px!important;cursor:pointer!important;background-color:#7367f0!important;color:#fff!important;font-size:16px!important}#persian-calendar #vpc_header .vpc_period-control{margin-right:auto;display:flex;justify-content:space-between}#persian-calendar #vpc_header .vpc_period-control .vpc_period-btn{display:flex;justify-content:center;align-items:center;height:1em;margin:0 10px;height:1.3em;line-height:1em;vertical-align:middle;padding:.2em 1.2em;border-radius:15px!important;border:0;cursor:pointer!important;background-color:#7367f0!important;color:#fff!important;font-size:16px!important}#persian-calendar #vpc_calendar{border-radius:15px;box-shadow:0 4px 25px #0000001a}#persian-calendar #vpc_calendar #vpc_days-header{display:flex;justify-content:flex-start;width:100%;flex-grow:1;flex-shrink:1;flex-basis:0;flex-flow:row nowrap;border-width:0;position:relative;overflow-y:auto;-ms-overflow-style:none}#persian-calendar #vpc_calendar #vpc_days-header div{width:100%;overflow:hidden;padding:.5em;border-right:1px solid #ddd;border-top:1px solid #ddd;-webkit-user-select:none;user-select:none;background:#fff;color:#626262;font-size:.9em;line-height:.6em;text-align:center;cursor:default}#persian-calendar #vpc_calendar #vpc_days-header div:first-child{border-top-right-radius:15px}#persian-calendar #vpc_calendar #vpc_days-header div:last-child{border-top-left-radius:15px;border-left:1px solid #ddd}#persian-calendar #vpc_calendar .vpc_week{display:flex;justify-content:flex-start;width:100%;flex-grow:1;flex-shrink:1;flex-basis:0;flex-flow:row nowrap;border-width:0;position:relative;overflow-y:auto;-ms-overflow-style:none;scrollbar-width:none}#persian-calendar #vpc_calendar .vpc_week::-webkit-scrollbar{display:none}#persian-calendar #vpc_calendar .vpc_week .week_events{position:absolute;overflow:auto;overflow-x:hidden;height:calc(100% - 2em);width:100%;top:2em}#persian-calendar #vpc_calendar .vpc_week .week_events::-webkit-scrollbar{width:5px}#persian-calendar #vpc_calendar .vpc_week .week_events::-webkit-scrollbar-track{background:#f1f1f1}#persian-calendar #vpc_calendar .vpc_week .week_events::-webkit-scrollbar-thumb{background:#888}#persian-calendar #vpc_calendar .vpc_week .week_events::-webkit-scrollbar-thumb:hover{background:#555}#persian-calendar #vpc_calendar .vpc_week .week_events .more_event_btn{z-index:1;position:sticky!important;max-width:9.5rem;padding:8px 0!important;border-radius:0!important}#persian-calendar #vpc_calendar .vpc_week .vpc_day{width:100%;overflow:hidden;padding:.5em;border-right:1px solid #ddd;border-top:1px solid #ddd;-webkit-user-select:none;user-select:none;background:#fff;min-height:120px;cursor:pointer}#persian-calendar #vpc_calendar .vpc_week .vpc_day:hover{background-color:#e6e6e6}#persian-calendar #vpc_calendar .vpc_week .vpc_day.vpc_past{background-color:#fafafa}#persian-calendar #vpc_calendar .vpc_week .vpc_day.vpc_past .vpc_day-number{background-color:#565656;color:transparent;text-shadow:0px 1px 1px rgba(255,255,255,.5);-webkit-background-clip:text;-moz-background-clip:text;background-clip:text;cursor:default}#persian-calendar #vpc_calendar .vpc_week .vpc_day.vpc_not-current-month{background-color:#ececec}#persian-calendar #vpc_calendar .vpc_week .vpc_day.vpc_not-current-month .vpc_day-number{background-color:#565656;color:transparent;text-shadow:0px 1px 1px rgba(255,255,255,.5);-webkit-background-clip:text;-moz-background-clip:text;background-clip:text}#persian-calendar #vpc_calendar .vpc_week .vpc_day.vpc_week-period-day{min-height:600px}#persian-calendar #vpc_calendar .vpc_week .vpc_day.vpc_week-period-day .vpc_day-number{justify-content:center;font-size:1.4em;text-align:center;width:auto!important}#persian-calendar #vpc_calendar .vpc_week .vpc_day.vpc_today .vpc_day-number{line-height:1.5em;height:1.2em;padding:0;border-radius:9999px!important;background-color:#019183!important;color:#fff!important;justify-content:center;text-align:center;width:auto!important;margin:3px}#persian-calendar #vpc_calendar .vpc_week .vpc_day.vpc_day-disable,#persian-calendar #vpc_calendar .vpc_week .vpc_day.vpc_weekend{background-color:#ececec!important}#persian-calendar #vpc_calendar .vpc_week .vpc_day.vpc_vacation{background-color:#ff00001a!important}#persian-calendar #vpc_calendar .vpc_week .vpc_day .vpc_day-number{display:flex;flex-direction:row-reverse;justify-content:space-between;align-items:center}#persian-calendar #vpc_calendar .vpc_week .vpc_day .vpc_day-number .vpc_vacations-description{font-size:.6rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}#persian-calendar #vpc_calendar .vpc_week .vpc_day:last-child{border-left:1px solid #ddd}#persian-calendar #vpc_calendar .vpc_week .vpc_event{display:flex;justify-content:center;align-items:center;height:1em;font-size:.7em;height:1.3em;padding-left:.78em;border-color:#e0e0f0;border-radius:.5em;text-overflow:ellipsis;position:absolute;white-space:nowrap;overflow:hidden;background-color:#666;color:#fff;-webkit-user-select:none;user-select:none}#persian-calendar #vpc_calendar .vpc_week .vpc_event:hover{opacity:80%;cursor:pointer}#persian-calendar #vpc_calendar .vpc_week .vpc_event:focus{box-shadow:none}#persian-calendar #vpc_calendar .vpc_week .vpc_event.offset0{right:0}#persian-calendar #vpc_calendar .vpc_week .vpc_event.span1{text-align:center;width:calc((100% / 7) - .75em)}#persian-calendar #vpc_calendar .vpc_week .vpc_event.offset1{right:calc(100% / 7)}#persian-calendar #vpc_calendar .vpc_week .vpc_event.span2{text-align:center;width:calc((200% / 7) - .75em)}#persian-calendar #vpc_calendar .vpc_week .vpc_event.offset2{right:calc(200% / 7)}#persian-calendar #vpc_calendar .vpc_week .vpc_event.span3{text-align:center;width:calc((300% / 7) - .75em)}#persian-calendar #vpc_calendar .vpc_week .vpc_event.offset3{right:calc(300% / 7)}#persian-calendar #vpc_calendar .vpc_week .vpc_event.span4{text-align:center;width:calc((400% / 7) - .75em)}#persian-calendar #vpc_calendar .vpc_week .vpc_event.offset4{right:calc(400% / 7)}#persian-calendar #vpc_calendar .vpc_week .vpc_event.span5{text-align:center;width:calc((500% / 7) - .75em)}#persian-calendar #vpc_calendar .vpc_week .vpc_event.offset5{right:calc(500% / 7)}#persian-calendar #vpc_calendar .vpc_week .vpc_event.span6{text-align:center;width:calc((600% / 7) - .75em)}#persian-calendar #vpc_calendar .vpc_week .vpc_event.offset6{right:calc(600% / 7)}#persian-calendar #vpc_calendar .vpc_week .vpc_event.span7{text-align:center;width:calc(100% - .75em)}#persian-calendar #vpc_calendar .vpc_week .vpc_event.offset7{right:100%}#persian-calendar #vpc_calendar .vpc_week .vpc_event.isHovered{filter:brightness(95%)}#persian-calendar #vpc_calendar .vpc_week .vpc_event.continued{border-right-style:none;border-top-right-radius:0;border-bottom-right-radius:0}#persian-calendar #vpc_calendar .vpc_week .vpc_event.continued:not(.toBeContinued) .vpc_event-end-time{display:block}#persian-calendar #vpc_calendar .vpc_week .vpc_event.continued.span1 .vpc_event-start-date{display:none}#persian-calendar #vpc_calendar .vpc_week .vpc_event.continued .vpc_event-start-date{display:block}#persian-calendar #vpc_calendar .vpc_week .vpc_event.toBeContinued{border-left-style:none;border-top-left-radius:0;border-bottom-left-radius:0}#persian-calendar #vpc_calendar .vpc_week .vpc_event.toBeContinued:not(.continued) .vpc_event-start-time{display:block}#persian-calendar #vpc_calendar .vpc_week .vpc_event.toBeContinued.span1 .vpc_event-end-date{display:none}#persian-calendar #vpc_calendar .vpc_week .vpc_event.toBeContinued .vpc_event-end-date{display:block}#persian-calendar #vpc_calendar .vpc_week .vpc_event.continued:before,#persian-calendar #vpc_calendar .vpc_week .vpc_event.toBeContinued:after{content:" ⇠";padding:0 .1em}#persian-calendar #vpc_calendar .vpc_week .vpc_event:not(.continued):not(.toBeContinued) .vpc_event-start-time,#persian-calendar #vpc_calendar .vpc_week .vpc_event:not(.continued):not(.toBeContinued) .vpc_event-end-time{display:block}#persian-calendar #vpc_calendar .vpc_week .vpc_event.oneDay{background-color:unset!important;color:#262626!important}#persian-calendar #vpc_calendar .vpc_week .vpc_event.oneDay .vpc_event-title{justify-content:inherit;margin-right:0;width:100%}#persian-calendar #vpc_calendar .vpc_week .vpc_event.oneDay .vpc_event-ball{width:10px;height:10px;margin:0 .1em;border-radius:999px}#persian-calendar #vpc_calendar .vpc_week .vpc_event.oneDay .vpc_event-end-time{display:none!important}#persian-calendar #vpc_calendar .vpc_week .vpc_event .vpc_event-title{text-overflow:ellipsis;overflow:hidden;margin:0 auto}#persian-calendar #vpc_calendar .vpc_week .vpc_event .vpc_event-start-time,#persian-calendar #vpc_calendar .vpc_week .vpc_event .vpc_event-start-time span,#persian-calendar #vpc_calendar .vpc_week .vpc_event .vpc_event-end-time,#persian-calendar #vpc_calendar .vpc_week .vpc_event .vpc_event-start-date,#persian-calendar #vpc_calendar .vpc_week .vpc_event .vpc_event-end-date{margin:0 .2em;display:none}#persian-calendar #vpc_calendar .vpc_week .vpc_event .startTime,#persian-calendar #vpc_calendar .vpc_week .vpc_event .endTime{font-weight:700;color:#666}#persian-calendar #vpc_calendar .vpc_week.vpc_week-period .vpc_event{height:1.4em}#persian-calendar #vpc_calendar .vpc_week.vpc_week-period .vpc_event.oneDay{display:block;height:2em;line-height:1em}#persian-calendar #vpc_calendar .vpc_week.vpc_week-period .vpc_event.oneDay .vpc_event-ball{position:absolute;top:.1em}#persian-calendar #vpc_calendar .vpc_week.vpc_week-period .vpc_event.oneDay .vpc_event-start-time span{display:contents}#persian-calendar #vpc_calendar .vpc_week.vpc_week-period .vpc_event.oneDay .vpc_event-title{margin:0 .8em}#persian-calendar #vpc_calendar .vpc_week:last-child .vpc_day{border-bottom:1px solid #ddd}#persian-calendar .slide-left-enter-active,#persian-calendar .slide-right-enter-active{transition:all .2s ease}#persian-calendar .slide-left-leave-active,#persian-calendar .slide-right-leave-active{transition:all .2s cubic-bezier(1,.5,.8,1)}#persian-calendar .slide-left-enter,#persian-calendar .slide-right-leave-to{transform:translate(10px);opacity:0}#persian-calendar .slide-left-leave-to,#persian-calendar .slide-right-enter{transform:translate(-10px);opacity:0}#persian-calendar .popover-show-event-details{width:250px}#persian-calendar .popover-show-event-details .popover-body .card-header-class .event-title{font-size:.65rem;max-width:75%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#persian-calendar .popover-show-event-details .popover-body .card-header-class .event-action .fa-pencil-square-o,#persian-calendar .popover-show-event-details .popover-body .card-header-class .event-action .fa-trash-o{font-size:1rem;margin:0 .2rem;cursor:pointer}#persian-calendar .popover-show-event-details .popover-body .card-header-class .event-action .fa-pencil-square-o:hover{color:#0093ee}#persian-calendar .popover-show-event-details .popover-body .card-header-class .event-action .fa-trash-o:hover{color:#f5365c}#persian-calendar .popover-show-event-details .popover-body .card-body-class,#persian-calendar .popover-show-event-details .popover-body .card-footer-class{font-size:.7rem}#persian-calendar .popover-show-vacation-description{width:150px}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
(function(Pe,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],f):(Pe=typeof globalThis<"u"?globalThis:Pe||self,f(Pe.jalaliCalendar={},Pe.Vue))})(this,function(Pe,f){"use strict";var Yr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bs(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function pr(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var kr={exports:{}};(function(n,i){(function(d,l){n.exports=l()})(Yr,function(){var d;function l(){return d.apply(null,arguments)}function c(e){d=e}function M(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function k(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function _(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function O(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(_(e,t))return!1;return!0}function x(e){return e===void 0}function V(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function A(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function q(e,t){var r=[],s,a=e.length;for(s=0;s<a;++s)r.push(t(e[s],s));return r}function ue(e,t){for(var r in t)_(t,r)&&(e[r]=t[r]);return _(t,"toString")&&(e.toString=t.toString),_(t,"valueOf")&&(e.valueOf=t.valueOf),e}function ae(e,t,r,s){return os(e,t,r,s,!0).utc()}function Dt(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function S(e){return e._pf==null&&(e._pf=Dt()),e._pf}var tt;Array.prototype.some?tt=Array.prototype.some:tt=function(e){var t=Object(this),r=t.length>>>0,s;for(s=0;s<r;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1};function U(e){if(e._isValid==null){var t=S(e),r=tt.call(t.parsedDateParts,function(a){return a!=null}),s=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(s=s&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=s;else return s}return e._isValid}function Ie(e){var t=ae(NaN);return e!=null?ue(S(t),e):S(t).userInvalidated=!0,t}var Ve=l.momentProperties=[],rt=!1;function _e(e,t){var r,s,a,o=Ve.length;if(x(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),x(t._i)||(e._i=t._i),x(t._f)||(e._f=t._f),x(t._l)||(e._l=t._l),x(t._strict)||(e._strict=t._strict),x(t._tzm)||(e._tzm=t._tzm),x(t._isUTC)||(e._isUTC=t._isUTC),x(t._offset)||(e._offset=t._offset),x(t._pf)||(e._pf=S(t)),x(t._locale)||(e._locale=t._locale),o>0)for(r=0;r<o;r++)s=Ve[r],a=t[s],x(a)||(e[s]=a);return e}function Oe(e){_e(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),rt===!1&&(rt=!0,l.updateOffset(this),rt=!1)}function K(e){return e instanceof Oe||e!=null&&e._isAMomentObject!=null}function Mt(e){l.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function ee(e,t){var r=!0;return ue(function(){if(l.deprecationHandler!=null&&l.deprecationHandler(null,e),r){var s=[],a,o,u,w=arguments.length;for(o=0;o<w;o++){if(a="",typeof arguments[o]=="object"){a+=`
[`+o+"] ";for(u in arguments[0])_(arguments[0],u)&&(a+=u+": "+arguments[0][u]+", ");a=a.slice(0,-2)}else a=arguments[o];s.push(a)}Mt(e+`
Arguments: `+Array.prototype.slice.call(s).join("")+`
`+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var Yt={};function pt(e,t){l.deprecationHandler!=null&&l.deprecationHandler(e,t),Yt[e]||(Mt(t),Yt[e]=!0)}l.suppressDeprecationWarnings=!1,l.deprecationHandler=null;function ne(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Zt(e){var t,r;for(r in e)_(e,r)&&(t=e[r],ne(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function st(e,t){var r=ue({},e),s;for(s in t)_(t,s)&&(k(e[s])&&k(t[s])?(r[s]={},ue(r[s],e[s]),ue(r[s],t[s])):t[s]!=null?r[s]=t[s]:delete r[s]);for(s in e)_(e,s)&&!_(t,s)&&k(e[s])&&(r[s]=ue({},r[s]));return r}function at(e){e!=null&&this.set(e)}var nt;Object.keys?nt=Object.keys:nt=function(e){var t,r=[];for(t in e)_(e,t)&&r.push(t);return r};var Jt={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function qt(e,t,r){var s=this._calendar[e]||this._calendar.sameElse;return ne(s)?s.call(t,r):s}function ie(e,t,r){var s=""+Math.abs(e),a=t-s.length,o=e>=0;return(o?r?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+s}var Te=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Le=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,y={},Y={};function m(e,t,r,s){var a=s;typeof s=="string"&&(a=function(){return this[s]()}),e&&(Y[e]=a),t&&(Y[t[0]]=function(){return ie(a.apply(this,arguments),t[1],t[2])}),r&&(Y[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function T(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Q(e){var t=e.match(Te),r,s;for(r=0,s=t.length;r<s;r++)Y[t[r]]?t[r]=Y[t[r]]:t[r]=T(t[r]);return function(a){var o="",u;for(u=0;u<s;u++)o+=ne(t[u])?t[u].call(a,e):t[u];return o}}function fe(e,t){return e.isValid()?(t=Ue(t,e.localeData()),y[t]=y[t]||Q(t),y[t](e)):e.localeData().invalidDate()}function Ue(e,t){var r=5;function s(a){return t.longDateFormat(a)||a}for(Le.lastIndex=0;r>=0&&Le.test(e);)e=e.replace(Le,s),Le.lastIndex=0,r-=1;return e}var Fe={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"};function H(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(Te).map(function(s){return s==="MMMM"||s==="MM"||s==="DD"||s==="dddd"?s.slice(1):s}).join(""),this._longDateFormat[e])}var it="Invalid date";function He(){return this._invalidDate}var Qt="%d",kt=/\d{1,2}/;function Me(e){return this._ordinal.replace("%d",e)}var Ge={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Da(e,t,r,s){var a=this._relativeTime[r];return ne(a)?a(e,t,r,s):a.replace(/%d/i,e)}function Ma(e,t){var r=this._relativeTime[e>0?"future":"past"];return ne(r)?r(t):r.replace(/%s/i,t)}var ot={};function $(e,t){var r=e.toLowerCase();ot[r]=ot[r+"s"]=ot[t]=e}function oe(e){return typeof e=="string"?ot[e]||ot[e.toLowerCase()]:void 0}function Xt(e){var t={},r,s;for(s in e)_(e,s)&&(r=oe(s),r&&(t[r]=e[s]));return t}var Ir={};function Z(e,t){Ir[e]=t}function Ya(e){var t=[],r;for(r in e)_(e,r)&&t.push({unit:r,priority:Ir[r]});return t.sort(function(s,a){return s.priority-a.priority}),t}function wt(e){return e%4===0&&e%100!==0||e%400===0}function le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function b(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=le(t)),r}function Be(e,t){return function(r){return r!=null?(Vr(this,e,r),l.updateOffset(this,t),this):gt(this,e)}}function gt(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Vr(e,t,r){e.isValid()&&!isNaN(r)&&(t==="FullYear"&&wt(e.year())&&e.month()===1&&e.date()===29?(r=b(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),xt(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}function pa(e){return e=oe(e),ne(this[e])?this[e]():this}function ka(e,t){if(typeof e=="object"){e=Xt(e);var r=Ya(e),s,a=r.length;for(s=0;s<a;s++)this[r[s].unit](e[r[s].unit])}else if(e=oe(e),ne(this[e]))return this[e](t);return this}var Ur=/\d/,re=/\d\d/,Hr=/\d{3}/,Kt=/\d{4}/,vt=/[+-]?\d{6}/,E=/\d\d?/,Gr=/\d\d\d\d?/,Br=/\d\d\d\d\d\d?/,St=/\d{1,3}/,er=/\d{1,4}/,jt=/[+-]?\d{1,6}/,ze=/\d+/,Ot=/[+-]?\d+/,wa=/Z|[+-]\d\d:?\d\d/gi,Tt=/Z|[+-]\d\d(?::?\d\d)?/gi,ga=/[+-]?\d+(\.\d{1,3})?/,lt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,bt;bt={};function p(e,t,r){bt[e]=ne(t)?t:function(s,a){return s&&r?r:t}}function va(e,t){return _(bt,e)?bt[e](t._strict,t._locale):new RegExp(Sa(e))}function Sa(e){return se(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,s,a,o){return r||s||a||o}))}function se(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var tr={};function L(e,t){var r,s=t,a;for(typeof e=="string"&&(e=[e]),V(t)&&(s=function(o,u){u[t]=b(o)}),a=e.length,r=0;r<a;r++)tr[e[r]]=s}function dt(e,t){L(e,function(r,s,a,o){a._w=a._w||{},t(r,a._w,a,o)})}function ja(e,t,r){t!=null&&_(tr,e)&&tr[e](t,r._a,r,e)}var J=0,Ye=1,ye=2,B=3,ce=4,pe=5,Ce=6,Oa=7,Ta=8;function ba(e,t){return(e%t+t)%t}var G;Array.prototype.indexOf?G=Array.prototype.indexOf:G=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function xt(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=ba(t,12);return e+=(t-r)/12,r===1?wt(e)?29:28:31-r%7%2}m("M",["MM",2],"Mo",function(){return this.month()+1}),m("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),m("MMMM",0,0,function(e){return this.localeData().months(this,e)}),$("month","M"),Z("month",8),p("M",E),p("MM",E,re),p("MMM",function(e,t){return t.monthsShortRegex(e)}),p("MMMM",function(e,t){return t.monthsRegex(e)}),L(["M","MM"],function(e,t){t[Ye]=b(e)-1}),L(["MMM","MMMM"],function(e,t,r,s){var a=r._locale.monthsParse(e,s,r._strict);a!=null?t[Ye]=a:S(r).invalidMonth=e});var xa="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),zr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),$r=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Na=lt,Pa=lt;function Wa(e,t){return e?M(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||$r).test(t)?"format":"standalone"][e.month()]:M(this._months)?this._months:this._months.standalone}function La(e,t){return e?M(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[$r.test(t)?"format":"standalone"][e.month()]:M(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Fa(e,t,r){var s,a,o,u=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)o=ae([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(o,"").toLocaleLowerCase();return r?t==="MMM"?(a=G.call(this._shortMonthsParse,u),a!==-1?a:null):(a=G.call(this._longMonthsParse,u),a!==-1?a:null):t==="MMM"?(a=G.call(this._shortMonthsParse,u),a!==-1?a:(a=G.call(this._longMonthsParse,u),a!==-1?a:null)):(a=G.call(this._longMonthsParse,u),a!==-1?a:(a=G.call(this._shortMonthsParse,u),a!==-1?a:null))}function Ca(e,t,r){var s,a,o;if(this._monthsParseExact)return Fa.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(a=ae([2e3,s]),r&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!r&&!this._monthsParse[s]&&(o="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[s]=new RegExp(o.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[s].test(e))return s;if(r&&t==="MMM"&&this._shortMonthsParse[s].test(e))return s;if(!r&&this._monthsParse[s].test(e))return s}}function Zr(e,t){var r;if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=b(t);else if(t=e.localeData().monthsParse(t),!V(t))return e}return r=Math.min(e.date(),xt(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,r),e}function Jr(e){return e!=null?(Zr(this,e),l.updateOffset(this,!0),this):gt(this,"Month")}function Ea(){return xt(this.year(),this.month())}function Ra(e){return this._monthsParseExact?(_(this,"_monthsRegex")||qr.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(_(this,"_monthsShortRegex")||(this._monthsShortRegex=Na),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Aa(e){return this._monthsParseExact?(_(this,"_monthsRegex")||qr.call(this),e?this._monthsStrictRegex:this._monthsRegex):(_(this,"_monthsRegex")||(this._monthsRegex=Pa),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function qr(){function e(u,w){return w.length-u.length}var t=[],r=[],s=[],a,o;for(a=0;a<12;a++)o=ae([2e3,a]),t.push(this.monthsShort(o,"")),r.push(this.months(o,"")),s.push(this.months(o,"")),s.push(this.monthsShort(o,""));for(t.sort(e),r.sort(e),s.sort(e),a=0;a<12;a++)t[a]=se(t[a]),r[a]=se(r[a]);for(a=0;a<24;a++)s[a]=se(s[a]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}m("Y",0,0,function(){var e=this.year();return e<=9999?ie(e,4):"+"+e}),m(0,["YY",2],0,function(){return this.year()%100}),m(0,["YYYY",4],0,"year"),m(0,["YYYYY",5],0,"year"),m(0,["YYYYYY",6,!0],0,"year"),$("year","y"),Z("year",1),p("Y",Ot),p("YY",E,re),p("YYYY",er,Kt),p("YYYYY",jt,vt),p("YYYYYY",jt,vt),L(["YYYYY","YYYYYY"],J),L("YYYY",function(e,t){t[J]=e.length===2?l.parseTwoDigitYear(e):b(e)}),L("YY",function(e,t){t[J]=l.parseTwoDigitYear(e)}),L("Y",function(e,t){t[J]=parseInt(e,10)});function ut(e){return wt(e)?366:365}l.parseTwoDigitYear=function(e){return b(e)+(b(e)>68?1900:2e3)};var Qr=Be("FullYear",!0);function Ia(){return wt(this.year())}function Va(e,t,r,s,a,o,u){var w;return e<100&&e>=0?(w=new Date(e+400,t,r,s,a,o,u),isFinite(w.getFullYear())&&w.setFullYear(e)):w=new Date(e,t,r,s,a,o,u),w}function ft(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Nt(e,t,r){var s=7+t-r,a=(7+ft(e,0,s).getUTCDay()-t)%7;return-a+s-1}function Xr(e,t,r,s,a){var o=(7+r-s)%7,u=Nt(e,s,a),w=1+7*(t-1)+o+u,j,F;return w<=0?(j=e-1,F=ut(j)+w):w>ut(e)?(j=e+1,F=w-ut(e)):(j=e,F=w),{year:j,dayOfYear:F}}function ct(e,t,r){var s=Nt(e.year(),t,r),a=Math.floor((e.dayOfYear()-s-1)/7)+1,o,u;return a<1?(u=e.year()-1,o=a+ke(u,t,r)):a>ke(e.year(),t,r)?(o=a-ke(e.year(),t,r),u=e.year()+1):(u=e.year(),o=a),{week:o,year:u}}function ke(e,t,r){var s=Nt(e,t,r),a=Nt(e+1,t,r);return(ut(e)-s+a)/7}m("w",["ww",2],"wo","week"),m("W",["WW",2],"Wo","isoWeek"),$("week","w"),$("isoWeek","W"),Z("week",5),Z("isoWeek",5),p("w",E),p("ww",E,re),p("W",E),p("WW",E,re),dt(["w","ww","W","WW"],function(e,t,r,s){t[s.substr(0,1)]=b(e)});function Ua(e){return ct(e,this._week.dow,this._week.doy).week}var Ha={dow:0,doy:6};function Ga(){return this._week.dow}function Ba(){return this._week.doy}function za(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function $a(e){var t=ct(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}m("d",0,"do","day"),m("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),m("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),m("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),m("e",0,0,"weekday"),m("E",0,0,"isoWeekday"),$("day","d"),$("weekday","e"),$("isoWeekday","E"),Z("day",11),Z("weekday",11),Z("isoWeekday",11),p("d",E),p("e",E),p("E",E),p("dd",function(e,t){return t.weekdaysMinRegex(e)}),p("ddd",function(e,t){return t.weekdaysShortRegex(e)}),p("dddd",function(e,t){return t.weekdaysRegex(e)}),dt(["dd","ddd","dddd"],function(e,t,r,s){var a=r._locale.weekdaysParse(e,s,r._strict);a!=null?t.d=a:S(r).invalidWeekday=e}),dt(["d","e","E"],function(e,t,r,s){t[s]=b(e)});function Za(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Ja(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function rr(e,t){return e.slice(t,7).concat(e.slice(0,t))}var qa="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Kr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qa="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xa=lt,Ka=lt,en=lt;function tn(e,t){var r=M(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?rr(r,this._week.dow):e?r[e.day()]:r}function rn(e){return e===!0?rr(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function sn(e){return e===!0?rr(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function an(e,t,r){var s,a,o,u=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)o=ae([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(o,"").toLocaleLowerCase();return r?t==="dddd"?(a=G.call(this._weekdaysParse,u),a!==-1?a:null):t==="ddd"?(a=G.call(this._shortWeekdaysParse,u),a!==-1?a:null):(a=G.call(this._minWeekdaysParse,u),a!==-1?a:null):t==="dddd"?(a=G.call(this._weekdaysParse,u),a!==-1||(a=G.call(this._shortWeekdaysParse,u),a!==-1)?a:(a=G.call(this._minWeekdaysParse,u),a!==-1?a:null)):t==="ddd"?(a=G.call(this._shortWeekdaysParse,u),a!==-1||(a=G.call(this._weekdaysParse,u),a!==-1)?a:(a=G.call(this._minWeekdaysParse,u),a!==-1?a:null)):(a=G.call(this._minWeekdaysParse,u),a!==-1||(a=G.call(this._weekdaysParse,u),a!==-1)?a:(a=G.call(this._shortWeekdaysParse,u),a!==-1?a:null))}function nn(e,t,r){var s,a,o;if(this._weekdaysParseExact)return an.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(a=ae([2e3,1]).day(s),r&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(o="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[s]=new RegExp(o.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[s].test(e))return s;if(r&&t==="ddd"&&this._shortWeekdaysParse[s].test(e))return s;if(r&&t==="dd"&&this._minWeekdaysParse[s].test(e))return s;if(!r&&this._weekdaysParse[s].test(e))return s}}function on(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=Za(e,this.localeData()),this.add(e-t,"d")):t}function ln(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function dn(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Ja(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function un(e){return this._weekdaysParseExact?(_(this,"_weekdaysRegex")||sr.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(_(this,"_weekdaysRegex")||(this._weekdaysRegex=Xa),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function fn(e){return this._weekdaysParseExact?(_(this,"_weekdaysRegex")||sr.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(_(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ka),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function cn(e){return this._weekdaysParseExact?(_(this,"_weekdaysRegex")||sr.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(_(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=en),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function sr(){function e(X,je){return je.length-X.length}var t=[],r=[],s=[],a=[],o,u,w,j,F;for(o=0;o<7;o++)u=ae([2e3,1]).day(o),w=se(this.weekdaysMin(u,"")),j=se(this.weekdaysShort(u,"")),F=se(this.weekdays(u,"")),t.push(w),r.push(j),s.push(F),a.push(w),a.push(j),a.push(F);t.sort(e),r.sort(e),s.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function ar(){return this.hours()%12||12}function hn(){return this.hours()||24}m("H",["HH",2],0,"hour"),m("h",["hh",2],0,ar),m("k",["kk",2],0,hn),m("hmm",0,0,function(){return""+ar.apply(this)+ie(this.minutes(),2)}),m("hmmss",0,0,function(){return""+ar.apply(this)+ie(this.minutes(),2)+ie(this.seconds(),2)}),m("Hmm",0,0,function(){return""+this.hours()+ie(this.minutes(),2)}),m("Hmmss",0,0,function(){return""+this.hours()+ie(this.minutes(),2)+ie(this.seconds(),2)});function es(e,t){m(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}es("a",!0),es("A",!1),$("hour","h"),Z("hour",13);function ts(e,t){return t._meridiemParse}p("a",ts),p("A",ts),p("H",E),p("h",E),p("k",E),p("HH",E,re),p("hh",E,re),p("kk",E,re),p("hmm",Gr),p("hmmss",Br),p("Hmm",Gr),p("Hmmss",Br),L(["H","HH"],B),L(["k","kk"],function(e,t,r){var s=b(e);t[B]=s===24?0:s}),L(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),L(["h","hh"],function(e,t,r){t[B]=b(e),S(r).bigHour=!0}),L("hmm",function(e,t,r){var s=e.length-2;t[B]=b(e.substr(0,s)),t[ce]=b(e.substr(s)),S(r).bigHour=!0}),L("hmmss",function(e,t,r){var s=e.length-4,a=e.length-2;t[B]=b(e.substr(0,s)),t[ce]=b(e.substr(s,2)),t[pe]=b(e.substr(a)),S(r).bigHour=!0}),L("Hmm",function(e,t,r){var s=e.length-2;t[B]=b(e.substr(0,s)),t[ce]=b(e.substr(s))}),L("Hmmss",function(e,t,r){var s=e.length-4,a=e.length-2;t[B]=b(e.substr(0,s)),t[ce]=b(e.substr(s,2)),t[pe]=b(e.substr(a))});function mn(e){return(e+"").toLowerCase().charAt(0)==="p"}var _n=/[ap]\.?m?\.?/i,yn=Be("Hours",!0);function Dn(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var rs={calendar:Jt,longDateFormat:Fe,invalidDate:it,ordinal:Qt,dayOfMonthOrdinalParse:kt,relativeTime:Ge,months:xa,monthsShort:zr,week:Ha,weekdays:qa,weekdaysMin:Qa,weekdaysShort:Kr,meridiemParse:_n},I={},ht={},mt;function Mn(e,t){var r,s=Math.min(e.length,t.length);for(r=0;r<s;r+=1)if(e[r]!==t[r])return r;return s}function ss(e){return e&&e.toLowerCase().replace("_","-")}function Yn(e){for(var t=0,r,s,a,o;t<e.length;){for(o=ss(e[t]).split("-"),r=o.length,s=ss(e[t+1]),s=s?s.split("-"):null;r>0;){if(a=Pt(o.slice(0,r).join("-")),a)return a;if(s&&s.length>=r&&Mn(o,s)>=r-1)break;r--}t++}return mt}function pn(e){return e.match("^[^/\\\\]*$")!=null}function Pt(e){var t=null,r;if(I[e]===void 0&&n&&n.exports&&pn(e))try{t=mt._abbr,r=pr,r("./locale/"+e),be(t)}catch{I[e]=null}return I[e]}function be(e,t){var r;return e&&(x(t)?r=we(e):r=nr(e,t),r?mt=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),mt._abbr}function nr(e,t){if(t!==null){var r,s=rs;if(t.abbr=e,I[e]!=null)pt("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=I[e]._config;else if(t.parentLocale!=null)if(I[t.parentLocale]!=null)s=I[t.parentLocale]._config;else if(r=Pt(t.parentLocale),r!=null)s=r._config;else return ht[t.parentLocale]||(ht[t.parentLocale]=[]),ht[t.parentLocale].push({name:e,config:t}),null;return I[e]=new at(st(s,t)),ht[e]&&ht[e].forEach(function(a){nr(a.name,a.config)}),be(e),I[e]}else return delete I[e],null}function kn(e,t){if(t!=null){var r,s,a=rs;I[e]!=null&&I[e].parentLocale!=null?I[e].set(st(I[e]._config,t)):(s=Pt(e),s!=null&&(a=s._config),t=st(a,t),s==null&&(t.abbr=e),r=new at(t),r.parentLocale=I[e],I[e]=r),be(e)}else I[e]!=null&&(I[e].parentLocale!=null?(I[e]=I[e].parentLocale,e===be()&&be(e)):I[e]!=null&&delete I[e]);return I[e]}function we(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return mt;if(!M(e)){if(t=Pt(e),t)return t;e=[e]}return Yn(e)}function wn(){return nt(I)}function ir(e){var t,r=e._a;return r&&S(e).overflow===-2&&(t=r[Ye]<0||r[Ye]>11?Ye:r[ye]<1||r[ye]>xt(r[J],r[Ye])?ye:r[B]<0||r[B]>24||r[B]===24&&(r[ce]!==0||r[pe]!==0||r[Ce]!==0)?B:r[ce]<0||r[ce]>59?ce:r[pe]<0||r[pe]>59?pe:r[Ce]<0||r[Ce]>999?Ce:-1,S(e)._overflowDayOfYear&&(t<J||t>ye)&&(t=ye),S(e)._overflowWeeks&&t===-1&&(t=Oa),S(e)._overflowWeekday&&t===-1&&(t=Ta),S(e).overflow=t),e}var gn=/^\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)?)?$/,vn=/^\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)?)?$/,Sn=/Z|[+-]\d\d(?::?\d\d)?/,Wt=[["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}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],or=[["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/]],jn=/^\/?Date\((-?\d+)/i,On=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Tn={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function as(e){var t,r,s=e._i,a=gn.exec(s)||vn.exec(s),o,u,w,j,F=Wt.length,X=or.length;if(a){for(S(e).iso=!0,t=0,r=F;t<r;t++)if(Wt[t][1].exec(a[1])){u=Wt[t][0],o=Wt[t][2]!==!1;break}if(u==null){e._isValid=!1;return}if(a[3]){for(t=0,r=X;t<r;t++)if(or[t][1].exec(a[3])){w=(a[2]||" ")+or[t][0];break}if(w==null){e._isValid=!1;return}}if(!o&&w!=null){e._isValid=!1;return}if(a[4])if(Sn.exec(a[4]))j="Z";else{e._isValid=!1;return}e._f=u+(w||"")+(j||""),dr(e)}else e._isValid=!1}function bn(e,t,r,s,a,o){var u=[xn(e),zr.indexOf(t),parseInt(r,10),parseInt(s,10),parseInt(a,10)];return o&&u.push(parseInt(o,10)),u}function xn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Nn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Pn(e,t,r){if(e){var s=Kr.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(s!==a)return S(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function Wn(e,t,r){if(e)return Tn[e];if(t)return 0;var s=parseInt(r,10),a=s%100,o=(s-a)/100;return o*60+a}function ns(e){var t=On.exec(Nn(e._i)),r;if(t){if(r=bn(t[4],t[3],t[2],t[5],t[6],t[7]),!Pn(t[1],r,e))return;e._a=r,e._tzm=Wn(t[8],t[9],t[10]),e._d=ft.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),S(e).rfc2822=!0}else e._isValid=!1}function Ln(e){var t=jn.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(as(e),e._isValid===!1)delete e._isValid;else return;if(ns(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:l.createFromInputFallback(e)}l.createFromInputFallback=ee("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function $e(e,t,r){return e??t??r}function Fn(e){var t=new Date(l.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function lr(e){var t,r,s=[],a,o,u;if(!e._d){for(a=Fn(e),e._w&&e._a[ye]==null&&e._a[Ye]==null&&Cn(e),e._dayOfYear!=null&&(u=$e(e._a[J],a[J]),(e._dayOfYear>ut(u)||e._dayOfYear===0)&&(S(e)._overflowDayOfYear=!0),r=ft(u,0,e._dayOfYear),e._a[Ye]=r.getUTCMonth(),e._a[ye]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=s[t]=a[t];for(;t<7;t++)e._a[t]=s[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[B]===24&&e._a[ce]===0&&e._a[pe]===0&&e._a[Ce]===0&&(e._nextDay=!0,e._a[B]=0),e._d=(e._useUTC?ft:Va).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[B]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(S(e).weekdayMismatch=!0)}}function Cn(e){var t,r,s,a,o,u,w,j,F;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,u=4,r=$e(t.GG,e._a[J],ct(R(),1,4).year),s=$e(t.W,1),a=$e(t.E,1),(a<1||a>7)&&(j=!0)):(o=e._locale._week.dow,u=e._locale._week.doy,F=ct(R(),o,u),r=$e(t.gg,e._a[J],F.year),s=$e(t.w,F.week),t.d!=null?(a=t.d,(a<0||a>6)&&(j=!0)):t.e!=null?(a=t.e+o,(t.e<0||t.e>6)&&(j=!0)):a=o),s<1||s>ke(r,o,u)?S(e)._overflowWeeks=!0:j!=null?S(e)._overflowWeekday=!0:(w=Xr(r,s,a,o,u),e._a[J]=w.year,e._dayOfYear=w.dayOfYear)}l.ISO_8601=function(){},l.RFC_2822=function(){};function dr(e){if(e._f===l.ISO_8601){as(e);return}if(e._f===l.RFC_2822){ns(e);return}e._a=[],S(e).empty=!0;var t=""+e._i,r,s,a,o,u,w=t.length,j=0,F,X;for(a=Ue(e._f,e._locale).match(Te)||[],X=a.length,r=0;r<X;r++)o=a[r],s=(t.match(va(o,e))||[])[0],s&&(u=t.substr(0,t.indexOf(s)),u.length>0&&S(e).unusedInput.push(u),t=t.slice(t.indexOf(s)+s.length),j+=s.length),Y[o]?(s?S(e).empty=!1:S(e).unusedTokens.push(o),ja(o,s,e)):e._strict&&!s&&S(e).unusedTokens.push(o);S(e).charsLeftOver=w-j,t.length>0&&S(e).unusedInput.push(t),e._a[B]<=12&&S(e).bigHour===!0&&e._a[B]>0&&(S(e).bigHour=void 0),S(e).parsedDateParts=e._a.slice(0),S(e).meridiem=e._meridiem,e._a[B]=En(e._locale,e._a[B],e._meridiem),F=S(e).era,F!==null&&(e._a[J]=e._locale.erasConvertYear(F,e._a[J])),lr(e),ir(e)}function En(e,t,r){var s;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(s=e.isPM(r),s&&t<12&&(t+=12),!s&&t===12&&(t=0)),t)}function Rn(e){var t,r,s,a,o,u,w=!1,j=e._f.length;if(j===0){S(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<j;a++)o=0,u=!1,t=_e({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],dr(t),U(t)&&(u=!0),o+=S(t).charsLeftOver,o+=S(t).unusedTokens.length*10,S(t).score=o,w?o<s&&(s=o,r=t):(s==null||o<s||u)&&(s=o,r=t,u&&(w=!0));ue(e,r||t)}function An(e){if(!e._d){var t=Xt(e._i),r=t.day===void 0?t.date:t.day;e._a=q([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(s){return s&&parseInt(s,10)}),lr(e)}}function In(e){var t=new Oe(ir(is(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function is(e){var t=e._i,r=e._f;return e._locale=e._locale||we(e._l),t===null||r===void 0&&t===""?Ie({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),K(t)?new Oe(ir(t)):(A(t)?e._d=t:M(r)?Rn(e):r?dr(e):Vn(e),U(e)||(e._d=null),e))}function Vn(e){var t=e._i;x(t)?e._d=new Date(l.now()):A(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Ln(e):M(t)?(e._a=q(t.slice(0),function(r){return parseInt(r,10)}),lr(e)):k(t)?An(e):V(t)?e._d=new Date(t):l.createFromInputFallback(e)}function os(e,t,r,s,a){var o={};return(t===!0||t===!1)&&(s=t,t=void 0),(r===!0||r===!1)&&(s=r,r=void 0),(k(e)&&O(e)||M(e)&&e.length===0)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=a,o._l=r,o._i=e,o._f=t,o._strict=s,In(o)}function R(e,t,r,s){return os(e,t,r,s,!1)}var Un=ee("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=R.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Ie()}),Hn=ee("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=R.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Ie()});function ls(e,t){var r,s;if(t.length===1&&M(t[0])&&(t=t[0]),!t.length)return R();for(r=t[0],s=1;s<t.length;++s)(!t[s].isValid()||t[s][e](r))&&(r=t[s]);return r}function Gn(){var e=[].slice.call(arguments,0);return ls("isBefore",e)}function Bn(){var e=[].slice.call(arguments,0);return ls("isAfter",e)}var zn=function(){return Date.now?Date.now():+new Date},_t=["year","quarter","month","week","day","hour","minute","second","millisecond"];function $n(e){var t,r=!1,s,a=_t.length;for(t in e)if(_(e,t)&&!(G.call(_t,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(s=0;s<a;++s)if(e[_t[s]]){if(r)return!1;parseFloat(e[_t[s]])!==b(e[_t[s]])&&(r=!0)}return!0}function Zn(){return this._isValid}function Jn(){return he(NaN)}function Lt(e){var t=Xt(e),r=t.year||0,s=t.quarter||0,a=t.month||0,o=t.week||t.isoWeek||0,u=t.day||0,w=t.hour||0,j=t.minute||0,F=t.second||0,X=t.millisecond||0;this._isValid=$n(t),this._milliseconds=+X+F*1e3+j*6e4+w*1e3*60*60,this._days=+u+o*7,this._months=+a+s*3+r*12,this._data={},this._locale=we(),this._bubble()}function Ft(e){return e instanceof Lt}function ur(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function qn(e,t,r){var s=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),o=0,u;for(u=0;u<s;u++)(r&&e[u]!==t[u]||!r&&b(e[u])!==b(t[u]))&&o++;return o+a}function ds(e,t){m(e,0,0,function(){var r=this.utcOffset(),s="+";return r<0&&(r=-r,s="-"),s+ie(~~(r/60),2)+t+ie(~~r%60,2)})}ds("Z",":"),ds("ZZ",""),p("Z",Tt),p("ZZ",Tt),L(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=fr(Tt,e)});var Qn=/([\+\-]|\d\d)/gi;function fr(e,t){var r=(t||"").match(e),s,a,o;return r===null?null:(s=r[r.length-1]||[],a=(s+"").match(Qn)||["-",0,0],o=+(a[1]*60)+b(a[2]),o===0?0:a[0]==="+"?o:-o)}function cr(e,t){var r,s;return t._isUTC?(r=t.clone(),s=(K(e)||A(e)?e.valueOf():R(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+s),l.updateOffset(r,!1),r):R(e).local()}function hr(e){return-Math.round(e._d.getTimezoneOffset())}l.updateOffset=function(){};function Xn(e,t,r){var s=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=fr(Tt,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(a=hr(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),s!==e&&(!t||this._changeInProgress?hs(this,he(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,l.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?s:hr(this)}function Kn(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function ei(e){return this.utcOffset(0,e)}function ti(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(hr(this),"m")),this}function ri(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=fr(wa,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function si(e){return this.isValid()?(e=e?R(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function ai(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function ni(){if(!x(this._isDSTShifted))return this._isDSTShifted;var e={},t;return _e(e,this),e=is(e),e._a?(t=e._isUTC?ae(e._a):R(e._a),this._isDSTShifted=this.isValid()&&qn(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function ii(){return this.isValid()?!this._isUTC:!1}function oi(){return this.isValid()?this._isUTC:!1}function us(){return this.isValid()?this._isUTC&&this._offset===0:!1}var li=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,di=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function he(e,t){var r=e,s=null,a,o,u;return Ft(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:V(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(s=li.exec(e))?(a=s[1]==="-"?-1:1,r={y:0,d:b(s[ye])*a,h:b(s[B])*a,m:b(s[ce])*a,s:b(s[pe])*a,ms:b(ur(s[Ce]*1e3))*a}):(s=di.exec(e))?(a=s[1]==="-"?-1:1,r={y:Ee(s[2],a),M:Ee(s[3],a),w:Ee(s[4],a),d:Ee(s[5],a),h:Ee(s[6],a),m:Ee(s[7],a),s:Ee(s[8],a)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(u=ui(R(r.from),R(r.to)),r={},r.ms=u.milliseconds,r.M=u.months),o=new Lt(r),Ft(e)&&_(e,"_locale")&&(o._locale=e._locale),Ft(e)&&_(e,"_isValid")&&(o._isValid=e._isValid),o}he.fn=Lt.prototype,he.invalid=Jn;function Ee(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function fs(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function ui(e,t){var r;return e.isValid()&&t.isValid()?(t=cr(t,e),e.isBefore(t)?r=fs(e,t):(r=fs(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function cs(e,t){return function(r,s){var a,o;return s!==null&&!isNaN(+s)&&(pt(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=r,r=s,s=o),a=he(r,s),hs(this,a,e),this}}function hs(e,t,r,s){var a=t._milliseconds,o=ur(t._days),u=ur(t._months);e.isValid()&&(s=s??!0,u&&Zr(e,gt(e,"Month")+u*r),o&&Vr(e,"Date",gt(e,"Date")+o*r),a&&e._d.setTime(e._d.valueOf()+a*r),s&&l.updateOffset(e,o||u))}var fi=cs(1,"add"),ci=cs(-1,"subtract");function ms(e){return typeof e=="string"||e instanceof String}function hi(e){return K(e)||A(e)||ms(e)||V(e)||_i(e)||mi(e)||e===null||e===void 0}function mi(e){var t=k(e)&&!O(e),r=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,o,u=s.length;for(a=0;a<u;a+=1)o=s[a],r=r||_(e,o);return t&&r}function _i(e){var t=M(e),r=!1;return t&&(r=e.filter(function(s){return!V(s)&&ms(e)}).length===0),t&&r}function yi(e){var t=k(e)&&!O(e),r=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,o;for(a=0;a<s.length;a+=1)o=s[a],r=r||_(e,o);return t&&r}function Di(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function Mi(e,t){arguments.length===1&&(arguments[0]?hi(arguments[0])?(e=arguments[0],t=void 0):yi(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||R(),s=cr(r,this).startOf("day"),a=l.calendarFormat(this,s)||"sameElse",o=t&&(ne(t[a])?t[a].call(this,r):t[a]);return this.format(o||this.localeData().calendar(a,this,R(r)))}function Yi(){return new Oe(this)}function pi(e,t){var r=K(e)?e:R(e);return this.isValid()&&r.isValid()?(t=oe(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function ki(e,t){var r=K(e)?e:R(e);return this.isValid()&&r.isValid()?(t=oe(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function wi(e,t,r,s){var a=K(e)?e:R(e),o=K(t)?t:R(t);return this.isValid()&&a.isValid()&&o.isValid()?(s=s||"()",(s[0]==="("?this.isAfter(a,r):!this.isBefore(a,r))&&(s[1]===")"?this.isBefore(o,r):!this.isAfter(o,r))):!1}function gi(e,t){var r=K(e)?e:R(e),s;return this.isValid()&&r.isValid()?(t=oe(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(s=r.valueOf(),this.clone().startOf(t).valueOf()<=s&&s<=this.clone().endOf(t).valueOf())):!1}function vi(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Si(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function ji(e,t,r){var s,a,o;if(!this.isValid())return NaN;if(s=cr(e,this),!s.isValid())return NaN;switch(a=(s.utcOffset()-this.utcOffset())*6e4,t=oe(t),t){case"year":o=Ct(this,s)/12;break;case"month":o=Ct(this,s);break;case"quarter":o=Ct(this,s)/3;break;case"second":o=(this-s)/1e3;break;case"minute":o=(this-s)/6e4;break;case"hour":o=(this-s)/36e5;break;case"day":o=(this-s-a)/864e5;break;case"week":o=(this-s-a)/6048e5;break;default:o=this-s}return r?o:le(o)}function Ct(e,t){if(e.date()<t.date())return-Ct(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),s=e.clone().add(r,"months"),a,o;return t-s<0?(a=e.clone().add(r-1,"months"),o=(t-s)/(s-a)):(a=e.clone().add(r+1,"months"),o=(t-s)/(a-s)),-(r+o)||0}l.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",l.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Oi(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Ti(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?fe(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ne(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",fe(r,"Z")):fe(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function bi(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,s,a,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(r+s+a+o)}function xi(e){e||(e=this.isUtc()?l.defaultFormatUtc:l.defaultFormat);var t=fe(this,e);return this.localeData().postformat(t)}function Ni(e,t){return this.isValid()&&(K(e)&&e.isValid()||R(e).isValid())?he({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Pi(e){return this.from(R(),e)}function Wi(e,t){return this.isValid()&&(K(e)&&e.isValid()||R(e).isValid())?he({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Li(e){return this.to(R(),e)}function _s(e){var t;return e===void 0?this._locale._abbr:(t=we(e),t!=null&&(this._locale=t),this)}var ys=ee("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Ds(){return this._locale}var Et=1e3,Ze=60*Et,Rt=60*Ze,Ms=(365*400+97)*24*Rt;function Je(e,t){return(e%t+t)%t}function Ys(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-Ms:new Date(e,t,r).valueOf()}function ps(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-Ms:Date.UTC(e,t,r)}function Fi(e){var t,r;if(e=oe(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?ps:Ys,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Je(t+(this._isUTC?0:this.utcOffset()*Ze),Rt);break;case"minute":t=this._d.valueOf(),t-=Je(t,Ze);break;case"second":t=this._d.valueOf(),t-=Je(t,Et);break}return this._d.setTime(t),l.updateOffset(this,!0),this}function Ci(e){var t,r;if(e=oe(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?ps:Ys,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Rt-Je(t+(this._isUTC?0:this.utcOffset()*Ze),Rt)-1;break;case"minute":t=this._d.valueOf(),t+=Ze-Je(t,Ze)-1;break;case"second":t=this._d.valueOf(),t+=Et-Je(t,Et)-1;break}return this._d.setTime(t),l.updateOffset(this,!0),this}function Ei(){return this._d.valueOf()-(this._offset||0)*6e4}function Ri(){return Math.floor(this.valueOf()/1e3)}function Ai(){return new Date(this.valueOf())}function Ii(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Vi(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ui(){return this.isValid()?this.toISOString():null}function Hi(){return U(this)}function Gi(){return ue({},S(this))}function Bi(){return S(this).overflow}function zi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}m("N",0,0,"eraAbbr"),m("NN",0,0,"eraAbbr"),m("NNN",0,0,"eraAbbr"),m("NNNN",0,0,"eraName"),m("NNNNN",0,0,"eraNarrow"),m("y",["y",1],"yo","eraYear"),m("y",["yy",2],0,"eraYear"),m("y",["yyy",3],0,"eraYear"),m("y",["yyyy",4],0,"eraYear"),p("N",mr),p("NN",mr),p("NNN",mr),p("NNNN",so),p("NNNNN",ao),L(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,s){var a=r._locale.erasParse(e,s,r._strict);a?S(r).era=a:S(r).invalidEra=e}),p("y",ze),p("yy",ze),p("yyy",ze),p("yyyy",ze),p("yo",no),L(["y","yy","yyy","yyyy"],J),L(["yo"],function(e,t,r,s){var a;r._locale._eraYearOrdinalRegex&&(a=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[J]=r._locale.eraYearOrdinalParse(e,a):t[J]=parseInt(e,10)});function $i(e,t){var r,s,a,o=this._eras||we("en")._eras;for(r=0,s=o.length;r<s;++r){switch(typeof o[r].since){case"string":a=l(o[r].since).startOf("day"),o[r].since=a.valueOf();break}switch(typeof o[r].until){case"undefined":o[r].until=1/0;break;case"string":a=l(o[r].until).startOf("day").valueOf(),o[r].until=a.valueOf();break}}return o}function Zi(e,t,r){var s,a,o=this.eras(),u,w,j;for(e=e.toUpperCase(),s=0,a=o.length;s<a;++s)if(u=o[s].name.toUpperCase(),w=o[s].abbr.toUpperCase(),j=o[s].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(w===e)return o[s];break;case"NNNN":if(u===e)return o[s];break;case"NNNNN":if(j===e)return o[s];break}else if([u,w,j].indexOf(e)>=0)return o[s]}function Ji(e,t){var r=e.since<=e.until?1:-1;return t===void 0?l(e.since).year():l(e.since).year()+(t-e.offset)*r}function qi(){var e,t,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return s[e].name;return""}function Qi(){var e,t,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return s[e].narrow;return""}function Xi(){var e,t,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return s[e].abbr;return""}function Ki(){var e,t,r,s,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=a[e].since<=a[e].until?1:-1,s=this.clone().startOf("day").valueOf(),a[e].since<=s&&s<=a[e].until||a[e].until<=s&&s<=a[e].since)return(this.year()-l(a[e].since).year())*r+a[e].offset;return this.year()}function eo(e){return _(this,"_erasNameRegex")||_r.call(this),e?this._erasNameRegex:this._erasRegex}function to(e){return _(this,"_erasAbbrRegex")||_r.call(this),e?this._erasAbbrRegex:this._erasRegex}function ro(e){return _(this,"_erasNarrowRegex")||_r.call(this),e?this._erasNarrowRegex:this._erasRegex}function mr(e,t){return t.erasAbbrRegex(e)}function so(e,t){return t.erasNameRegex(e)}function ao(e,t){return t.erasNarrowRegex(e)}function no(e,t){return t._eraYearOrdinalRegex||ze}function _r(){var e=[],t=[],r=[],s=[],a,o,u=this.eras();for(a=0,o=u.length;a<o;++a)t.push(se(u[a].name)),e.push(se(u[a].abbr)),r.push(se(u[a].narrow)),s.push(se(u[a].name)),s.push(se(u[a].abbr)),s.push(se(u[a].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}m(0,["gg",2],0,function(){return this.weekYear()%100}),m(0,["GG",2],0,function(){return this.isoWeekYear()%100});function At(e,t){m(0,[e,e.length],0,t)}At("gggg","weekYear"),At("ggggg","weekYear"),At("GGGG","isoWeekYear"),At("GGGGG","isoWeekYear"),$("weekYear","gg"),$("isoWeekYear","GG"),Z("weekYear",1),Z("isoWeekYear",1),p("G",Ot),p("g",Ot),p("GG",E,re),p("gg",E,re),p("GGGG",er,Kt),p("gggg",er,Kt),p("GGGGG",jt,vt),p("ggggg",jt,vt),dt(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,s){t[s.substr(0,2)]=b(e)}),dt(["gg","GG"],function(e,t,r,s){t[s]=l.parseTwoDigitYear(e)});function io(e){return ks.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function oo(e){return ks.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function lo(){return ke(this.year(),1,4)}function uo(){return ke(this.isoWeekYear(),1,4)}function fo(){var e=this.localeData()._week;return ke(this.year(),e.dow,e.doy)}function co(){var e=this.localeData()._week;return ke(this.weekYear(),e.dow,e.doy)}function ks(e,t,r,s,a){var o;return e==null?ct(this,s,a).year:(o=ke(e,s,a),t>o&&(t=o),ho.call(this,e,t,r,s,a))}function ho(e,t,r,s,a){var o=Xr(e,t,r,s,a),u=ft(o.year,0,o.dayOfYear);return this.year(u.getUTCFullYear()),this.month(u.getUTCMonth()),this.date(u.getUTCDate()),this}m("Q",0,"Qo","quarter"),$("quarter","Q"),Z("quarter",7),p("Q",Ur),L("Q",function(e,t){t[Ye]=(b(e)-1)*3});function mo(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}m("D",["DD",2],"Do","date"),$("date","D"),Z("date",9),p("D",E),p("DD",E,re),p("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),L(["D","DD"],ye),L("Do",function(e,t){t[ye]=b(e.match(E)[0])});var ws=Be("Date",!0);m("DDD",["DDDD",3],"DDDo","dayOfYear"),$("dayOfYear","DDD"),Z("dayOfYear",4),p("DDD",St),p("DDDD",Hr),L(["DDD","DDDD"],function(e,t,r){r._dayOfYear=b(e)});function _o(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}m("m",["mm",2],0,"minute"),$("minute","m"),Z("minute",14),p("m",E),p("mm",E,re),L(["m","mm"],ce);var yo=Be("Minutes",!1);m("s",["ss",2],0,"second"),$("second","s"),Z("second",15),p("s",E),p("ss",E,re),L(["s","ss"],pe);var Do=Be("Seconds",!1);m("S",0,0,function(){return~~(this.millisecond()/100)}),m(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),m(0,["SSS",3],0,"millisecond"),m(0,["SSSS",4],0,function(){return this.millisecond()*10}),m(0,["SSSSS",5],0,function(){return this.millisecond()*100}),m(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),m(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),m(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),m(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),$("millisecond","ms"),Z("millisecond",16),p("S",St,Ur),p("SS",St,re),p("SSS",St,Hr);var xe,gs;for(xe="SSSS";xe.length<=9;xe+="S")p(xe,ze);function Mo(e,t){t[Ce]=b(("0."+e)*1e3)}for(xe="S";xe.length<=9;xe+="S")L(xe,Mo);gs=Be("Milliseconds",!1),m("z",0,0,"zoneAbbr"),m("zz",0,0,"zoneName");function Yo(){return this._isUTC?"UTC":""}function po(){return this._isUTC?"Coordinated Universal Time":""}var h=Oe.prototype;h.add=fi,h.calendar=Mi,h.clone=Yi,h.diff=ji,h.endOf=Ci,h.format=xi,h.from=Ni,h.fromNow=Pi,h.to=Wi,h.toNow=Li,h.get=pa,h.invalidAt=Bi,h.isAfter=pi,h.isBefore=ki,h.isBetween=wi,h.isSame=gi,h.isSameOrAfter=vi,h.isSameOrBefore=Si,h.isValid=Hi,h.lang=ys,h.locale=_s,h.localeData=Ds,h.max=Hn,h.min=Un,h.parsingFlags=Gi,h.set=ka,h.startOf=Fi,h.subtract=ci,h.toArray=Ii,h.toObject=Vi,h.toDate=Ai,h.toISOString=Ti,h.inspect=bi,typeof Symbol<"u"&&Symbol.for!=null&&(h[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),h.toJSON=Ui,h.toString=Oi,h.unix=Ri,h.valueOf=Ei,h.creationData=zi,h.eraName=qi,h.eraNarrow=Qi,h.eraAbbr=Xi,h.eraYear=Ki,h.year=Qr,h.isLeapYear=Ia,h.weekYear=io,h.isoWeekYear=oo,h.quarter=h.quarters=mo,h.month=Jr,h.daysInMonth=Ea,h.week=h.weeks=za,h.isoWeek=h.isoWeeks=$a,h.weeksInYear=fo,h.weeksInWeekYear=co,h.isoWeeksInYear=lo,h.isoWeeksInISOWeekYear=uo,h.date=ws,h.day=h.days=on,h.weekday=ln,h.isoWeekday=dn,h.dayOfYear=_o,h.hour=h.hours=yn,h.minute=h.minutes=yo,h.second=h.seconds=Do,h.millisecond=h.milliseconds=gs,h.utcOffset=Xn,h.utc=ei,h.local=ti,h.parseZone=ri,h.hasAlignedHourOffset=si,h.isDST=ai,h.isLocal=ii,h.isUtcOffset=oi,h.isUtc=us,h.isUTC=us,h.zoneAbbr=Yo,h.zoneName=po,h.dates=ee("dates accessor is deprecated. Use date instead.",ws),h.months=ee("months accessor is deprecated. Use month instead",Jr),h.years=ee("years accessor is deprecated. Use year instead",Qr),h.zone=ee("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Kn),h.isDSTShifted=ee("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",ni);function ko(e){return R(e*1e3)}function wo(){return R.apply(null,arguments).parseZone()}function vs(e){return e}var W=at.prototype;W.calendar=qt,W.longDateFormat=H,W.invalidDate=He,W.ordinal=Me,W.preparse=vs,W.postformat=vs,W.relativeTime=Da,W.pastFuture=Ma,W.set=Zt,W.eras=$i,W.erasParse=Zi,W.erasConvertYear=Ji,W.erasAbbrRegex=to,W.erasNameRegex=eo,W.erasNarrowRegex=ro,W.months=Wa,W.monthsShort=La,W.monthsParse=Ca,W.monthsRegex=Aa,W.monthsShortRegex=Ra,W.week=Ua,W.firstDayOfYear=Ba,W.firstDayOfWeek=Ga,W.weekdays=tn,W.weekdaysMin=sn,W.weekdaysShort=rn,W.weekdaysParse=nn,W.weekdaysRegex=un,W.weekdaysShortRegex=fn,W.weekdaysMinRegex=cn,W.isPM=mn,W.meridiem=Dn;function It(e,t,r,s){var a=we(),o=ae().set(s,t);return a[r](o,e)}function Ss(e,t,r){if(V(e)&&(t=e,e=void 0),e=e||"",t!=null)return It(e,t,r,"month");var s,a=[];for(s=0;s<12;s++)a[s]=It(e,s,r,"month");return a}function yr(e,t,r,s){typeof e=="boolean"?(V(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,V(t)&&(r=t,t=void 0),t=t||"");var a=we(),o=e?a._week.dow:0,u,w=[];if(r!=null)return It(t,(r+o)%7,s,"day");for(u=0;u<7;u++)w[u]=It(t,(u+o)%7,s,"day");return w}function go(e,t){return Ss(e,t,"months")}function vo(e,t){return Ss(e,t,"monthsShort")}function So(e,t,r){return yr(e,t,r,"weekdays")}function jo(e,t,r){return yr(e,t,r,"weekdaysShort")}function Oo(e,t,r){return yr(e,t,r,"weekdaysMin")}be("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=b(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}}),l.lang=ee("moment.lang is deprecated. Use moment.locale instead.",be),l.langData=ee("moment.langData is deprecated. Use moment.localeData instead.",we);var ge=Math.abs;function To(){var e=this._data;return this._milliseconds=ge(this._milliseconds),this._days=ge(this._days),this._months=ge(this._months),e.milliseconds=ge(e.milliseconds),e.seconds=ge(e.seconds),e.minutes=ge(e.minutes),e.hours=ge(e.hours),e.months=ge(e.months),e.years=ge(e.years),this}function js(e,t,r,s){var a=he(t,r);return e._milliseconds+=s*a._milliseconds,e._days+=s*a._days,e._months+=s*a._months,e._bubble()}function bo(e,t){return js(this,e,t,1)}function xo(e,t){return js(this,e,t,-1)}function Os(e){return e<0?Math.floor(e):Math.ceil(e)}function No(){var e=this._milliseconds,t=this._days,r=this._months,s=this._data,a,o,u,w,j;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=Os(Dr(r)+t)*864e5,t=0,r=0),s.milliseconds=e%1e3,a=le(e/1e3),s.seconds=a%60,o=le(a/60),s.minutes=o%60,u=le(o/60),s.hours=u%24,t+=le(u/24),j=le(Ts(t)),r+=j,t-=Os(Dr(j)),w=le(r/12),r%=12,s.days=t,s.months=r,s.years=w,this}function Ts(e){return e*4800/146097}function Dr(e){return e*146097/4800}function Po(e){if(!this.isValid())return NaN;var t,r,s=this._milliseconds;if(e=oe(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+s/864e5,r=this._months+Ts(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(Dr(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return t*24+s/36e5;case"minute":return t*1440+s/6e4;case"second":return t*86400+s/1e3;case"millisecond":return Math.floor(t*864e5)+s;default:throw new Error("Unknown unit "+e)}}function Wo(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+b(this._months/12)*31536e6:NaN}function ve(e){return function(){return this.as(e)}}var Lo=ve("ms"),Fo=ve("s"),Co=ve("m"),Eo=ve("h"),Ro=ve("d"),Ao=ve("w"),Io=ve("M"),Vo=ve("Q"),Uo=ve("y");function Ho(){return he(this)}function Go(e){return e=oe(e),this.isValid()?this[e+"s"]():NaN}function Re(e){return function(){return this.isValid()?this._data[e]:NaN}}var Bo=Re("milliseconds"),zo=Re("seconds"),$o=Re("minutes"),Zo=Re("hours"),Jo=Re("days"),qo=Re("months"),Qo=Re("years");function Xo(){return le(this.days()/7)}var Se=Math.round,qe={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ko(e,t,r,s,a){return a.relativeTime(t||1,!!r,e,s)}function el(e,t,r,s){var a=he(e).abs(),o=Se(a.as("s")),u=Se(a.as("m")),w=Se(a.as("h")),j=Se(a.as("d")),F=Se(a.as("M")),X=Se(a.as("w")),je=Se(a.as("y")),Ne=o<=r.ss&&["s",o]||o<r.s&&["ss",o]||u<=1&&["m"]||u<r.m&&["mm",u]||w<=1&&["h"]||w<r.h&&["hh",w]||j<=1&&["d"]||j<r.d&&["dd",j];return r.w!=null&&(Ne=Ne||X<=1&&["w"]||X<r.w&&["ww",X]),Ne=Ne||F<=1&&["M"]||F<r.M&&["MM",F]||je<=1&&["y"]||["yy",je],Ne[2]=t,Ne[3]=+e>0,Ne[4]=s,Ko.apply(null,Ne)}function tl(e){return e===void 0?Se:typeof e=="function"?(Se=e,!0):!1}function rl(e,t){return qe[e]===void 0?!1:t===void 0?qe[e]:(qe[e]=t,e==="s"&&(qe.ss=t-1),!0)}function sl(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,s=qe,a,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(s=Object.assign({},qe,t),t.s!=null&&t.ss==null&&(s.ss=t.s-1)),a=this.localeData(),o=el(this,!r,s,a),r&&(o=a.pastFuture(+this,o)),a.postformat(o)}var Mr=Math.abs;function Qe(e){return(e>0)-(e<0)||+e}function Vt(){if(!this.isValid())return this.localeData().invalidDate();var e=Mr(this._milliseconds)/1e3,t=Mr(this._days),r=Mr(this._months),s,a,o,u,w=this.asSeconds(),j,F,X,je;return w?(s=le(e/60),a=le(s/60),e%=60,s%=60,o=le(r/12),r%=12,u=e?e.toFixed(3).replace(/\.?0+$/,""):"",j=w<0?"-":"",F=Qe(this._months)!==Qe(w)?"-":"",X=Qe(this._days)!==Qe(w)?"-":"",je=Qe(this._milliseconds)!==Qe(w)?"-":"",j+"P"+(o?F+o+"Y":"")+(r?F+r+"M":"")+(t?X+t+"D":"")+(a||s||e?"T":"")+(a?je+a+"H":"")+(s?je+s+"M":"")+(e?je+u+"S":"")):"P0D"}var N=Lt.prototype;N.isValid=Zn,N.abs=To,N.add=bo,N.subtract=xo,N.as=Po,N.asMilliseconds=Lo,N.asSeconds=Fo,N.asMinutes=Co,N.asHours=Eo,N.asDays=Ro,N.asWeeks=Ao,N.asMonths=Io,N.asQuarters=Vo,N.asYears=Uo,N.valueOf=Wo,N._bubble=No,N.clone=Ho,N.get=Go,N.milliseconds=Bo,N.seconds=zo,N.minutes=$o,N.hours=Zo,N.days=Jo,N.weeks=Xo,N.months=qo,N.years=Qo,N.humanize=sl,N.toISOString=Vt,N.toString=Vt,N.toJSON=Vt,N.locale=_s,N.localeData=Ds,N.toIsoString=ee("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Vt),N.lang=ys,m("X",0,0,"unix"),m("x",0,0,"valueOf"),p("x",Ot),p("X",ga),L("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)}),L("x",function(e,t,r){r._d=new Date(b(e))});//! moment.js
return l.version="2.29.4",c(R),l.fn=h,l.min=Gn,l.max=Bn,l.now=zn,l.utc=ae,l.unix=ko,l.months=go,l.isDate=A,l.locale=be,l.invalid=Ie,l.duration=he,l.isMoment=K,l.weekdays=So,l.parseZone=wo,l.localeData=we,l.isDuration=Ft,l.monthsShort=vo,l.weekdaysMin=Oo,l.defineLocale=nr,l.updateLocale=kn,l.locales=wn,l.weekdaysShort=jo,l.normalizeUnits=oe,l.relativeTimeRounding=tl,l.relativeTimeThreshold=rl,l.calendarFormat=Di,l.prototype=h,l.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},l})})(kr);var wr=kr.exports;(function(n,i){(function(d,l){l(typeof pr=="function"?wr:d.moment)})(Yr,function(d){//! moment.js locale configuration
var l={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},c={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"},M=d.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,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(k){return/بعد از ظهر/.test(k)},meridiem:function(k,_,O){return k<12?"قبل از ظهر":"بعد از ظهر"},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 سال"},preparse:function(k){return k.replace(/[۰-۹]/g,function(_){return c[_]}).replace(/،/g,",")},postformat:function(k){return k.replace(/\d/g,function(_){return l[_]}).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}});return M})})();var xs=D,g=wr,Ut=/(\[[^\[]*\])|(\\)?j(Mo|MM?M?M?|Do|DDDo|DD?D?D?|w[o|w]?|YYYYY|YYYY|YY|gg(ggg?)?|)|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|SS?S?|X|zz?|ZZ?|.)/g,gr=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,vr=/\d\d?/,Sr=/\d{1,3}/,jr=/\d{3}/,Or=/\d{1,4}/,Tr=/[+\-]?\d{1,6}/,br=/[0-9]*["a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Ns=/Z|[\+\-]\d\d:?\d\d/i,Ps=/T/i,Ws=/[\+\-]?\d+(\.\d{1,3})?/,Ls={jm:"jmonth",jmonths:"jmonth",jy:"jyear",jyears:"jyear"},Ht={},xr="DDD w M D".split(" "),Nr="M D w".split(" "),Xe={Jalali:1,Gregorian:2},me={jM:function(){return this.jMonth()+1},jMMM:function(n){return this.localeData().jMonthsShort(this,n)},jMMMM:function(n){return this.localeData().jMonths(this,n)},jD:function(){return this.jDate()},jDDD:function(){return this.jDayOfYear()},jw:function(){return this.jWeek()},jYY:function(){return De(this.jYear()%100,2)},jYYYY:function(){return De(this.jYear(),4)},jYYYYY:function(){return De(this.jYear(),5)},jgg:function(){return De(this.jWeekYear()%100,2)},jgggg:function(){return this.jWeekYear()},jggggg:function(){return De(this.jWeekYear(),5)}};function Pr(n,i){return function(d){return De(n.call(this,d),i)}}function Fs(n,i){return function(d){return this.localeData().ordinal(n.call(this,d),i)}}(function(){for(var n;xr.length;)n=xr.pop(),me["j"+n+"o"]=Fs(me["j"+n],n);for(;Nr.length;)n=Nr.pop(),me["j"+n+n]=Pr(me["j"+n],2);me.jDDDD=Pr(me.jDDD,3)})();function Gt(n,i){var d;for(d in i)i.hasOwnProperty(d)&&(n[d]=i[d]);return n}function De(n,i){for(var d=n+"";d.length<i;)d="0"+d;return d}function Cs(n){return Object.prototype.toString.call(n)==="[object Array]"}function Wr(n){for(var i=0;i<n.length;i++)(!i||n[i-1]!=="j"&&n[i-1]!==n[i])&&(n[i]==="Y"||n[i]==="M"||n[i]==="D"||n[i]==="g")&&(n=n.slice(0,i)+"j"+n.slice(i));return n}function Es(n){switch(n){case"week":return"jWeek";case"year":return"jYear";case"month":return"jMonth";case"months":return"jMonths";case"monthName":return"jMonthsShort";case"monthsShort":return"jMonthsShort"}return n}function We(n,i){if(de(i)&&(n=Es(n)),n){var d=n.toLowerCase();d.startsWith("j")&&(n=Ls[d]||d),n==="jday"?n="day":n==="jd"&&(n="d")}return n}function Bt(n,i,d,l){var c=n._d;n._isUTC?n._d=new Date(Date.UTC(i,d,l,c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds())):n._d=new Date(i,d,l,c.getHours(),c.getMinutes(),c.getSeconds(),c.getMilliseconds())}function Lr(n){function i(){}return i.prototype=n,new i}function Rs(n){return Object.getPrototypeOf?Object.getPrototypeOf(n):"".__proto__?n.__proto__:n.constructor.prototype}Gt(Rs(g.localeData()),{_jMonths:["Farvardin","Ordibehesht","Khordaad","Tir","Mordaad","Shahrivar","Mehr","Aabaan","Aazar","Dey","Bahman","Esfand"],jMonths:function(n){return n?this._jMonths[n.jMonth()]:this._jMonths},_jMonthsShort:["Far","Ord","Kho","Tir","Amo","Sha","Meh","Aab","Aaz","Dey","Bah","Esf"],jMonthsShort:function(n){return n?this._jMonthsShort[n.jMonth()]:this._jMonthsShort},jMonthsParse:function(n){var i,d,l;for(this._jMonthsParse||(this._jMonthsParse=[]),i=0;i<12;i+=1)if(this._jMonthsParse[i]||(d=D([2e3,(2+i)%12,25]),l="^"+this.jMonths(d,"")+"|^"+this.jMonthsShort(d,""),this._jMonthsParse[i]=new RegExp(l.replace(".",""),"i")),this._jMonthsParse[i].test(n))return i}});function As(n){var i=n.match(Ut),d=i.length,l;for(l=0;l<d;l+=1)me[i[l]]&&(i[l]=me[i[l]]);return function(c){var M="";for(l=0;l<d;l+=1)M+=i[l]instanceof Function?"["+i[l].call(c,n)+"]":i[l];return M}}function Fr(n,i){switch(n){case"jDDDD":return jr;case"jYYYY":return Or;case"jYYYYY":return Tr;case"jDDD":return Sr;case"jMMM":case"jMMMM":return br;case"jMM":case"jDD":case"jYY":case"jM":case"jD":return vr;case"DDDD":return jr;case"YYYY":return Or;case"YYYYY":return Tr;case"S":case"SS":case"SSS":case"DDD":return Sr;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return br;case"a":case"A":return g.localeData(i._l)._meridiemParse;case"X":return Ws;case"Z":case"ZZ":return Ns;case"T":return Ps;case"MM":case"DD":case"YY":case"HH":case"hh":case"mm":case"ss":case"M":case"D":case"d":case"H":case"h":case"m":case"s":return vr;default:return new RegExp(n.replace("\\",""))}}function z(n){return n==null}function Is(n,i,d){var l,c=d._a;switch(n){case"jM":case"jMM":c[1]=z(i)?0:~~i-1;break;case"jMMM":case"jMMMM":l=g.localeData(d._l).jMonthsParse(i),z(l)?d._isValid=!1:c[1]=l;break;case"jD":case"jDD":case"jDDD":case"jDDDD":z(i)||(c[2]=~~i);break;case"jYY":c[0]=~~i+(~~i>47?1300:1400);break;case"jYYYY":case"jYYYYY":c[0]=~~i}z(i)&&(d._isValid=!1)}function Vs(n){var i,d,l=n._a[0],c=n._a[1],M=n._a[2];if(!(z(l)&&z(c)&&z(M)))return l=z(l)?0:l,c=z(c)?0:c,M=z(M)?1:M,(M<1||M>D.jDaysInMonth(l,c)||c<0||c>11)&&(n._isValid=!1),i=et(l,c,M),d=yt(i.gy,i.gm,i.gd),n._jDiff=0,~~d.jy!==l&&(n._jDiff+=1),~~d.jm!==c&&(n._jDiff+=1),~~d.jd!==M&&(n._jDiff+=1),[i.gy,i.gm,i.gd]}function Us(n){var i=n._f.match(Ut),d=n._i+"",l=i.length,c,M,k;for(n._a=[],c=0;c<l;c+=1)M=i[c],k=(Fr(M,n).exec(d)||[])[0],k&&(d=d.slice(d.indexOf(k)+k.length)),me[M]&&Is(M,k,n);return d&&(n._il=d),Vs(n)}function Hs(n,i){var d=n._f.length,l,c,M,k,_,O;if(d===0)return Ke(new Date(NaN));for(l=0;l<d;l+=1)c=n._f[l],_=0,M=Ke(n._i,c,n._l,n._strict,i),M.isValid()&&(_+=M._jDiff,M._il&&(_+=M._il.length),(z(O)||_<O)&&(O=_,k=M));return k}function Gs(n){var i=n._i+"",d="",l="",c=n._f.match(Ut),M=c.length,k,_,O;for(k=0;k<M;k+=1)_=c[k],O=(Fr(_,n).exec(i)||[])[0],O&&(i=i.slice(i.indexOf(O)+O.length)),me[_]instanceof Function||(l+=_,O&&(d+=O));n._i=d,n._f=l}function Cr(n,i,d){var l=d-i,c=d-n.day(),M;return c>l&&(c-=7),c<l-7&&(c+=7),M=D(n).add(c,"d"),{week:Math.ceil(M.jDayOfYear()/7),year:M.jYear()}}function de(n){return n&&n.calSystem===Xe.Jalali||g.justUseJalali&&n.calSystem!==Xe.Gregorian}function Bs(n,i,d){return g.justUseJalali||i&&i.calSystem===Xe.Jalali}function Ke(n,i,d,l,c){typeof d=="boolean"&&(c=c||l,l=d,d=void 0),g.ISO_8601===i&&(i="YYYY-MM-DDTHH:mm:ss.SSSZ");const M=Bs(i,this);n&&typeof n=="string"&&!i&&M&&!g.useGregorianParser&&(n=n.replace(/\//g,"-"),/\d{4}\-\d{2}\-\d{2}/.test(n)?i="jYYYY-jMM-jDD":/\d{4}\-\d{2}\-\d{1}/.test(n)?i="jYYYY-jMM-jD":/\d{4}\-\d{1}\-\d{1}/.test(n)?i="jYYYY-jM-jD":/\d{4}\-\d{1}\-\d{2}/.test(n)?i="jYYYY-jM-jDD":/\d{4}\-W\d{2}\-\d{2}/.test(n)?i="jYYYY-jW-jDD":/\d{4}\-\d{3}/.test(n)?i="jYYYY-jDDD":/\d{8}/.test(n)?i="jYYYYjMMjDD":/\d{4}W\d{2}\d{1}/.test(n)?i="jYYYYjWWjD":/\d{4}W\d{2}/.test(n)?i="jYYYYjWW":/\d{4}\d{3}/.test(n)&&(i="jYYYYjDDD")),i&&M&&(i=Wr(i)),i&&typeof i=="string"&&(i=Er(i,g));var k={_i:n,_f:i,_l:d,_strict:l,_isUTC:c},_,O,x,V=n,A=i;if(i){if(Cs(i))return Hs(k,c);_=Us(k),Gs(k),_&&(i="YYYY-MM-DD-"+k._f,n=De(_[0],4)+"-"+De(_[1]+1,2)+"-"+De(_[2],2)+"-"+k._i)}return c?O=g.utc(n,i,d,l):O=g(n,i,d,l),(k._isValid===!1||n&&n._isAMomentObject&&!n._isValid)&&(O._isValid=!1),O._jDiff=k._jDiff||0,x=Lr(D.fn),Gt(x,O),l&&x.isValid()&&(x._isValid=x.format(A)===V),n&&n.calSystem&&(x.calSystem=n.calSystem),x}function D(n,i,d,l){return Ke(n,i,d,l,!1)}Gt(D,g),D.fn=Lr(g.fn),D.utc=function(n,i,d,l){return Ke(n,i,d,l,!0)},D.unix=function(n){return Ke(n*1e3)};function Er(n,i){for(var d=5,l=function(c){return i.localeData().longDateFormat(c)||c};d>0&&gr.test(n);)d-=1,n=n.replace(gr,l);return n}D.fn.format=function(n){n=n||D.defaultFormat,n&&(de(this)&&(n=Wr(n)),n=Er(n,this),Ht[n]||(Ht[n]=As(n)),n=Ht[n](this));var i=g.fn.format.call(this,n);return i},D.fn.year=function(n){return de(this)?D.fn.jYear.call(this,n):g.fn.year.call(this,n)},D.fn.jYear=function(n){var i,d,l;return typeof n=="number"?(d=Ae(this),i=Math.min(d.jd,D.jDaysInMonth(n,d.jm)),l=et(n,d.jm,i),Bt(this,l.gy,l.gm,l.gd),g.updateOffset(this),this):Ae(this).jy},D.fn.month=function(n){return de(this)?D.fn.jMonth.call(this,n):g.fn.month.call(this,n)},D.fn.jMonth=function(n){var i,d,l;return z(n)?Ae(this).jm:typeof n=="string"&&(n=this.localeData().jMonthsParse(n),typeof n!="number")?this:(d=Ae(this),i=Math.min(d.jd,D.jDaysInMonth(d.jy,n)),this.jYear(d.jy+C(n,12)),n=te(n,12),n<0&&(n+=12,this.jYear(this.jYear()-1)),l=et(this.jYear(),n,i),Bt(this,l.gy,l.gm,l.gd),g.updateOffset(this),this)},D.fn.date=function(n){return de(this)?D.fn.jDate.call(this,n):g.fn.date.call(this,n)};function Ae(n){var i=n._d;return n._isUTC?yt(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()):yt(i.getFullYear(),i.getMonth(),i.getDate())}D.fn.jDate=function(n){var i,d;return typeof n=="number"?(i=Ae(this),d=et(i.jy,i.jm,n),Bt(this,d.gy,d.gm,d.gd),g.updateOffset(this),this):Ae(this).jd},D.fn.jDay=function(n){return typeof n=="number"?g.fn.day.call(this,n-1):(g.fn.day.call(this)+1)%7},D.fn.diff=function(n,i,d){if(!de(this))return g.fn.diff.call(this,n,i,d);var l;switch(i){case"year":l=c(this,n)/12;break;case"month":l=c(this,n);break;case"quarter":l=c(this,n)/3;break;default:l=g.fn.diff.call(this,n,i,d)}return d?l:l<0?Math.ceil(l)||0:Math.floor(l);function c(M,k){if(M.date()<k.date())return-c(k,M);var _=(k.jYear()-M.jYear())*12+(k.jMonth()-M.jMonth()),O=M.clone().add(_,"months"),x,V;return k-O<0?(x=M.clone().add(_-1,"months"),V=(k-O)/(O-x)):(x=M.clone().add(_+1,"months"),V=(k-O)/(x-O)),-(_+V)||0}},D.fn.dayOfYear=function(n){return de(this)?D.fn.jDayOfYear.call(this,n):g.fn.dayOfYear.call(this,n)},D.fn.jDayOfYear=function(n){var i=Math.round((D(this).startOf("day")-D(this).startOf("jYear"))/864e5)+1;return z(n)?i:this.add(n-i,"d")},D.fn.week=function(n){return de(this)?D.fn.jWeek.call(this,n):g.fn.week.call(this,n)},D.fn.jWeek=function(n){var i=Cr(this,6,12).week;return z(n)?i:this.add((n-i)*7,"d")},D.fn.weekYear=function(n){return de(this)?D.fn.jWeekYear.call(this,n):g.fn.weekYear.call(this,n)},D.fn.jWeekYear=function(n){var i=Cr(this,6,12).year;return z(n)?i:this.add(n-i,"jyear")},D.fn.add=function(n,i){var d;return!z(i)&&!isNaN(+i)&&(d=n,n=i,i=d),i=We(i,this),(i==="jweek"||i==="isoweek")&&(i="week"),i==="jyear"?this.jYear(this.jYear()+n):i==="jmonth"?this.jMonth(this.jMonth()+n):g.fn.add.call(this,n,i),this},D.fn.subtract=function(n,i){var d;return!z(i)&&!isNaN(+i)&&(d=n,n=i,i=d),i=We(i,this),i==="jyear"?this.jYear(this.jYear()-n):i==="jmonth"?this.jMonth(this.jMonth()-n):g.fn.subtract.call(this,n,i),this},D.fn.startOf=function(n){var i=We(n,this);return i==="jweek"?this.startOf("day").subtract(this.jDay(),"day"):(i==="jyear"&&(this.jMonth(0),i="jmonth"),i==="jmonth"&&(this.jDate(1),i="day"),i==="day"?(this.hours(0),this.minutes(0),this.seconds(0),this.milliseconds(0),this):g.fn.startOf.call(this,n))},D.fn.endOf=function(n){return n=We(n,this),n===void 0||n==="milisecond"?this:this.startOf(n).add(1,n).subtract(1,"ms")},D.fn.isSame=function(n,i){return i=We(i,this),i==="jyear"||i==="jmonth"?g.fn.isSame.call(this.clone().startOf(i),n.clone().startOf(i)):g.fn.isSame.call(this,n,i)},D.fn.isBefore=function(n,i){return i=We(i,this),i==="jyear"||i==="jmonth"?g.fn.isBefore.call(this.clone().startOf(i),n.clone().startOf(i)):g.fn.isBefore.call(this,n,i)},D.fn.isAfter=function(n,i){return i=We(i,this),i==="jyear"||i==="jmonth"?g.fn.isAfter.call(this.clone().startOf(i),n.clone().startOf(i)):g.fn.isAfter.call(this,n,i)},D.fn.clone=function(){return D(this)},D.fn.doAsJalali=function(){return this.calSystem=Xe.Jalali,this},D.fn.doAsGregorian=function(){return this.calSystem=Xe.Gregorian,this},D.fn.jYears=D.fn.jYear,D.fn.jMonths=D.fn.jMonth,D.fn.jDates=D.fn.jDate,D.fn.jWeeks=D.fn.jWeek,D.fn.daysInMonth=function(){return de(this)?this.jDaysInMonth():g.fn.daysInMonth.call(this)},D.fn.jDaysInMonth=function(){var n=this.jMonth(),i=this.jYear();return n<6?31:n<11||D.jIsLeapYear(i)?30:29},D.fn.isLeapYear=function(){return de(this)?this.jIsLeapYear():g.fn.isLeapYear.call(this)},D.fn.jIsLeapYear=function(){var n=this.jYear();return Rr(n)},D.fn.locale=function(n){return n&&g.changeCalendarSystemByItsLocale&&(n==="fa"?this.doAsJalali():this.doAsGregorian()),g.fn.locale.call(this,n)},D.locale=function(n,i){return n&&g.changeCalendarSystemByItsLocale&&(n==="fa"?this.useJalaliSystemPrimarily(i):this.useJalaliSystemSecondary()),g.locale.call(this,n)},D.from=function(n,i,d){var l=D.locale();D.locale(i);var c=D(n,d);return c.locale(l),D.locale(l),c},D.bindCalendarSystemAndLocale=function(){g.changeCalendarSystemByItsLocale=!0},D.unBindCalendarSystemAndLocale=function(){g.changeCalendarSystemByItsLocale=!1},D.useJalaliSystemPrimarily=function(n){g.justUseJalali=!0;var i=!1;n&&(i=n.useGregorianParser),g.useGregorianParser=i},D.useJalaliSystemSecondary=function(){g.justUseJalali=!1},D.jDaysInMonth=function(n,i){return n+=C(i,12),i=te(i,12),i<0&&(i+=12,n-=1),i<6?31:i<11||D.jIsLeapYear(n)?30:29},D.jIsLeapYear=Rr,g.updateLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),longDateFormat:{LT:"HH:mm",L:"jYYYY/jMM/jDD",LL:"jD jMMMM jYYYY",LLL:"jD jMMMM jYYYY LT",LLLL:"dddd، jD jMMMM jYYYY LT"},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 سال"},ordinal:"%dم",preparse:function(n){return n},postformat:function(n){return n},week:{dow:6,doy:12},meridiem:function(n){return n<12?"ق.ظ":"ب.ظ"},jMonths:"فروردین_اردیبهشت_خرداد_تیر_مرداد_شهریور_مهر_آبان_آذر_دی_بهمن_اسفند".split("_"),jMonthsShort:"فروردین_اردیبهشت_خرداد_تیر_مرداد_شهریور_مهر_آبان_آذر_دی_بهمن_اسفند".split("_")}),D.bindCalendarSystemAndLocale(),g.locale("en"),D.jConvert={toJalali:yt,toGregorian:et};function yt(n,i,d){var l=zs(n,i+1,d);return l.jm-=1,l}function et(n,i,d){var l=$s(n,i+1,d);return l.gm-=1,l}function C(n,i){return~~(n/i)}function te(n,i){return n-~~(n/i)*i}function zs(n,i,d){return Object.prototype.toString.call(n)==="[object Date]"&&(d=n.getDate(),i=n.getMonth()+1,n=n.getFullYear()),Js($t(n,i,d))}function $s(n,i,d){return Ar(Zs(n,i,d))}function Rr(n){return zt(n).leap===0}function zt(n){var i=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178],d=i.length,l=n+621,c=-14,M=i[0],k,_,O,x,V,A,q;if(n<M||n>=i[d-1])throw new Error("Invalid Jalali year "+n);for(q=1;q<d&&(k=i[q],_=k-M,!(n<k));q+=1)c=c+C(_,33)*8+C(te(_,33),4),M=k;return A=n-M,c=c+C(A,33)*8+C(te(A,33)+3,4),te(_,33)===4&&_-A===4&&(c+=1),x=C(l,4)-C((C(l,100)+1)*3,4)-150,V=20+c-x,_-A<6&&(A=A-_+C(_+4,33)*33),O=te(te(A+1,33)-1,4),O===-1&&(O=4),{leap:O,gy:l,march:V}}function Zs(n,i,d){var l=zt(n);return $t(l.gy,3,l.march)+(i-1)*31-C(i,7)*(i-7)+d-1}function Js(n){var i=Ar(n).gy,d=i-621,l=zt(d),c=$t(i,3,l.march),M,k,_;if(_=n-c,_>=0){if(_<=185)return k=1+C(_,31),M=te(_,31)+1,{jy:d,jm:k,jd:M};_-=186}else d-=1,_+=179,l.leap===1&&(_+=1);return k=7+C(_,30),M=te(_,30)+1,{jy:d,jm:k,jd:M}}function $t(n,i,d){var l=C((n+C(i-8,6)+100100)*1461,4)+C(153*te(i+9,12)+2,5)+d-34840408;return l=l-C(C(n+100100+C(i-8,6),100)*3,4)+752,l}function Ar(n){var i,d,l,c,M;return i=4*n+139361631,i=i+C(C(4*n+183187720,146097)*3,4)*4-3908,d=C(te(i,1461),4)*5+308,l=C(te(d,153),5)+1,c=te(C(d,153),12)+1,M=C(i,1461)-100100+C(8-c,6),{gy:M,gm:c,gd:l}}const v=bs(xs),qs={id:"persian-calendar"},Qs={id:"vpc_header",slot:"header"},Xs={id:"vpc_date-control"},Ks=["disabled"],ea=[f.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[f.createElementVNode("polyline",{points:"9 18 15 12 9 6"})],-1)],ta=["disabled"],ra=[f.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[f.createElementVNode("polyline",{points:"15 18 9 12 15 6"})],-1)],sa={key:0,class:"vpc_period-control"},aa={key:0},na={id:"vpc_calendar"},ia=f.createElementVNode("div",{id:"vpc_days-header"},[f.createElementVNode("div",null,"شنبه"),f.createElementVNode("div",null,"یکشنبه"),f.createElementVNode("div",null,"دوشنبه"),f.createElementVNode("div",null,"سه شنبه"),f.createElementVNode("div",null,"چهار شنبه"),f.createElementVNode("div",null,"پنج شنبه"),f.createElementVNode("div",null,"جمعه")],-1),oa=["onClick"],la={key:0,class:"vpc_event-start-time"},da={key:1,class:"vpc_event-start-date"},ua={class:"vpc_event-title"},fa={key:2,class:"vpc_event-end-time"},ca={key:3,class:"vpc_event-end-date"},ha=["id","onClick"],ma={class:"vpc_day-number"},_a={class:"vpc_vacations-description"},P="jYYYY-jM-jD",ya=f.defineComponent({__name:"jalaliCalendar",props:{dateFormat:{type:String,default:"jYYYYDD"},showDate:{type:[Object,String],default:new Date},eventsList:{type:Array,default:[]},vacationsList:{type:Array,default:[]},minDate:[Object,String],maxDate:[Object,String],hideEventTimes:{type:Boolean,default:!1},disableToday:{type:Boolean,default:!1},disablePeriod:{type:Boolean,default:!1},hideMonthShadow:{type:Boolean,default:!1},hidePastDaysShadow:{type:Boolean,default:!1},disablePastDays:{type:Boolean,default:!1},addEventButton:Boolean},emits:["startAndEndOfWeekPeriod","startAndEndOfMonthPeriod","on-page-add","on-page-subtract","on-display-period","dayClick"],setup(n,{emit:i}){const d=n,l=()=>v().locale("fa").format(P),c=f.ref(l()),M=f.ref(),k=f.ref(),_=f.ref(!0),O=f.ref("slide-right"),x=f.ref("week"),V=f.ref([]),A=f.ref(null),q=f.ref(null),ue=f.computed({get(){return v(c.value).format("M")},set(y){c.value=y}}),ae=f.computed({get(){return v(c.value).format("YYYY")},set(y){c.value=y}}),Dt=f.computed(()=>{const y=[];let Y=v(`${ae.value}-${ue.value}-1`,P).locale("fa");do y.push(Y),Y=v(Y).add(1,"days");while(v(Y).format("M")===ue.value);Y=v(y[0]);const m=0,T=6;if(Y.jDay()!==m)do Y=v(Y).subtract(1,"days"),y.unshift(Y);while(Y.jDay()!==m);if(Y=v(y[y.length-1]),Y.jDay()!==T)do Y=v(Y).add(1,"days"),y.push(Y);while(Y.jDay()!==T);return y}),S=f.computed(()=>{const y=M,Y=[y.value.format(P)];for(let m=1;m<=6;m++)Y[m]=y.value.add(1,"day").format(P);return Y}),tt=()=>{const y=[];let Y=[];for(let m=0;m<Dt.value.length;m++)Y.push(Dt.value[m]),Y.length===7&&(y.push(Y),Y=[]);return y},U=f.computed(()=>x.value==="week"),Ie=f.computed(()=>{M.value=v(c.value,P).locale("fa").startOf(U.value?"week":"month"),k.value=v(c.value,P).locale("fa").endOf(U.value?"week":"month");let y="DD";return M.value.isSame(k.value,"month")||(y="DD MMMM"),M.value.isSame(k.value,"year")||(y="DD MMMM YYYY"),U.value?`${M.value.format(y)} - ${k.value.format("DD MMMM YYYY")}`:v(c.value,P).locale("fa").format("MMMM YYYY")}),Ve=f.ref(!0),rt=f.computed(()=>({vpc_week:!0,"vpc_week-period":U.value}));f.watch(c,()=>_.value=!1),f.watch(()=>d.showDate,y=>c.value=_e(y)),f.watch(d.eventsList,y=>V.value=y),f.watch(()=>d.minDate,y=>_e(y)),f.watch(()=>d.maxDate,y=>_e(y)),f.onMounted(()=>{f.watch([M,x],()=>{Ve.value=v().locale("fa").isBetween(v(M.value.format(P),P),v(k.value.format(P),P))}),c.value=_e(d.showDate),d.minDate&&(A.value=_e(d.minDate)),d.maxDate&&(q.value=_e(d.maxDate)),V.value=d.eventsList});function _e(y){try{if(typeof y=="string")return v(y).format(P);if(typeof y=="object")return v(y).format(P)}catch{throw new TypeError("[VuePersianCalendar Error]: showDate property value is not valid")}}function Oe(){if(!q.value)return;const Y=v(c.value).add(1,U.value?"weeks":"months").startOf(U.value?"jWeek":"jMonth");return q.value.isValid()&&Y.isAfter(q.value)}function K(){if(!A.value)return;const y=v(c.value).subtract(1,U.value?"weeks":"months"),Y=v(A.value).startOf(U.value?"jWeek":"jMonth");return A.value.isValid()&&Y.isAfter(y)}function Mt(){Oe()||(O.value="slide-left",c.value=v(c.value,P).add(1,U.value?"week":"jmonth").format(P),i("on-page-add",c.value))}function ee(){K()||(O.value="slide-right",c.value=v(c.value,P).subtract(1,U.value?"week":"jmonth").format(P),i("on-page-subtract",c.value))}function Yt(){const y=v(c.value,P);Ve.value||(y.isBefore(v(),"month")||U.value&&y.isBefore(v().startOf("jWeek"))?(O.value="slide-left",c.value=l()):(y.isAfter(v(),"month")||U.value&&y.isAfter(v(),"week"))&&(O.value="slide-right",c.value=l()))}function pt(){x.value=U.value?"month":"week",_.value=!1}function ne(y){return v(y,P).locale("en").format("YYYY-MM-DD")}function Zt(y){const Y=d.vacationsList.find(m=>m.date.format(P)===v(y,P).format(P));return Y?Y.title:""}function st(y){const Y=y.clone();return!v(c.value,P).isBetween(v(Y.startOf("month").format(P),P),v(Y.endOf("month").format(P),P))}function at(y){typeof y=="string"&&(y=v(y,P));const Y=y.format(P)===l(),m=d.vacationsList.some(Q=>Q.date===ne(y));let T=!1;return A&&(T=A.value&&y.isBefore(A.value,"day")||T),q&&(T=q.value&&y.isAfter(q.value,"day")||T),{vpc_day:!0,vpc_today:Y&&!d.disableToday,vpc_past:d.disablePastDays&&y.isBefore(v(l(),P)),"vpc_not-current-month":!U.value&&st(y),"vpc_week-period-day":U.value,"vpc_day-disable":T,vpc_vacation:m}}function nt(y,Y){return y.startDateTime.isBefore(Y.startDateTime)?-1:Y.startDateTime.isBefore(y.startDateTime)?1:y.endDateTime.isAfter(Y.endDateTime)?-1:Y.endDateTime.isAfter(y.endDateTime)?1:y.id<Y.id?-1:1}function Jt(y,Y){return d.eventsList.filter(m=>m.endDateTime.isSameOrAfter(y)&&m.startDateTime.isSameOrBefore(Y)).sort(nt)}function qt(y,Y){const m=typeof Y=="string"?v(Y,P):Y,T=typeof y=="string"?v(y,P):y,Q=Jt(T,m),fe=[],Ue=[[],[],[],[],[],[],[]];for(let Fe=0;Fe<Q.length;Fe++){const H=Object.assign({},Q[Fe],{classes:Q[Fe].classes?[...Q[Fe].classes]:[],eventRow:0}),it=H.startDateTime.isBefore(T),He=it?0:Te(H.startDateTime,T),Qt=it?Te(H.endDateTime,T)+1:Te(H.endDateTime,H.startDateTime)+1,kt=Math.min(7-He,Qt);it&&H.classes.push("continued"),Te(H.endDateTime,T)>6&&H.classes.push("toBeContinued"),H.endDateTime.isBefore(v(l(),P))&&H.classes.push("past"),H.endDateTime.isBetween(v(H.startDateTime),v(H.startDateTime).endOf("day"),void 0,"[]")&&H.classes.push("oneDay");for(let Me=0;Me<7;Me++)if(Me===He){let Ge=0;for(;Ue[Me][Ge];)Ge++;H.eventRow=Ge,Ue[Me][Ge]=!0}else Me<He+kt&&(Ue[Me][H.eventRow]=!0);H.classes.push(`offset${He}`),H.classes.push(`span${kt}`),fe.push(H)}return fe}function ie(y){const Y=y+1,m=U.value?"2.6em":"1.3em";return`calc( 0em + ${Y}*${m} + ${Y}*2px)`}function Te(y,Y){const m=v(Y).locale("fa"),T=v(y).locale("fa"),Q=m.clone().startOf("day").add(T.diff(m,"m"),"m").locale("fa"),fe=T.diff(m,"day");return Q.isBefore(T,"day")?fe+1:fe}function Le(y,Y){i("dayClick",{day:y,event:Y})}return(y,Y)=>(f.openBlock(),f.createElementBlock("div",qs,[f.createElementVNode("div",Qs,[f.createElementVNode("div",Xs,[f.createElementVNode("div",{class:"vpc_control-btn",onClick:ee,disabled:K()},ea,8,Ks),f.createElementVNode("span",{class:"vpc_now-date",style:f.normalizeStyle(U.value?"":"width: 80px")},f.toDisplayString(Ie.value),5),f.createElementVNode("div",{class:"vpc_control-btn",onClick:Mt,disabled:Oe()},ra,8,ta),n.disableToday?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("div",{key:0,class:"vpc_today-btn",style:f.normalizeStyle(Ve.value?"background-color: #ccc !important;cursor: not-allowed !important  ":""),onClick:Yt}," امروز ",4))]),n.disablePeriod?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("div",sa,[n.addEventButton?(f.openBlock(),f.createElementBlock("button",{key:0,class:"vpc_period-btn",onClick:Y[0]||(Y[0]=m=>Le())}," رویداد جدید ")):f.createCommentVNode("",!0),f.createElementVNode("div",{class:"vpc_period-btn",onClick:pt},f.toDisplayString(x.value==="week"?"ماه":"هفته"),1)]))]),f.createVNode(f.Transition,{name:O.value,onAfterLeave:Y[1]||(Y[1]=m=>_.value=!0)},{default:f.withCtx(()=>[_.value?(f.openBlock(),f.createElementBlock("div",aa,[f.createElementVNode("div",na,[ia,(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(x.value==="week"?[S.value]:tt(),m=>(f.openBlock(),f.createElementBlock("div",{key:Math.random(),class:f.normalizeClass(rt.value)},[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(qt(m[0],m[6]),(T,Q)=>f.renderSlot(y.$slots,"default",{value:T},()=>[(f.openBlock(),f.createElementBlock("div",{key:Q,class:f.normalizeClass([T.classes,"vpc_event"]),style:f.normalizeStyle(`top:${ie(Q+1)};background-color:${T.color};`),onClick:fe=>y.$emit("on-event-click",T)},[f.createElementVNode("div",{style:f.normalizeStyle({"background-color":T.color}),class:"vpc_event-ball"},null,4),n.hideEventTimes?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("span",la,[f.createTextVNode(f.toDisplayString(T.startDateTime.format("HH:mm")),1),f.createElementVNode("span",null," - "+f.toDisplayString(T.endDateTime.format("HH:mm")),1)])),n.hideEventTimes?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("span",da,f.toDisplayString(T.startDateTime.format("jMM/jDD")),1)),f.createElementVNode("span",ua,f.toDisplayString(T.title),1),n.hideEventTimes?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("span",fa,f.toDisplayString(T.endDateTime.format("HH:mm")),1)),n.hideEventTimes?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("span",ca,f.toDisplayString(T.endDateTime.format("jMM/jDD")),1))],14,oa))])),256)),(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(m,T=>(f.openBlock(),f.createElementBlock("div",{key:Math.random(),class:f.normalizeClass(at(T)),id:`popover-show-vacation-description_${Math.random()}`,onClick:Q=>Le(T,Q)},[f.createElementVNode("div",ma,[f.createElementVNode("div",null,f.toDisplayString(f.unref(v)(T).format("D")),1),f.createElementVNode("div",_a,f.toDisplayString(Zt(T)),1)])],10,ha))),128))],2))),128))])])):f.createCommentVNode("",!0)]),_:3},8,["name"])]))}}),il="";Pe.jalaliCalendar=ya,Object.defineProperty(Pe,Symbol.toStringTag,{value:"Module"})});