!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["jalali-moment"]=t():e["jalali-moment"]=t()}(window,function(){return function(e){var t={};function a(s){if(t[s])return t[s].exports;var n=t[s]={i:s,l:!1,exports:{}};return e[s].call(n.exports,n,n.exports,a),n.l=!0,n.exports}return a.m=e,a.c=t,a.d=function(e,t,s){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(a.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(s,n,function(t){return e[t]}.bind(null,n));return s},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=125)}([function(e,t,a){(function(e){e.exports=function(){"use strict";var t,s;function n(){return t.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function d(e){return void 0===e}function _(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function o(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var a,s=[];for(a=0;a>>0,s=0;swe(e)?(r=e+1,d-we(e)):(r=e,d),{year:r,dayOfYear:i}}function Ge(e,t,a){var s,n,r=Ce(e.year(),t,a),i=Math.floor((e.dayOfYear()-r-1)/7)+1;return i<1?s=i+Ue(n=e.year()-1,t,a):i>Ue(e.year(),t,a)?(s=i-Ue(e.year(),t,a),n=e.year()+1):(n=e.year(),s=i),{week:s,year:n}}function Ue(e,t,a){var s=Ce(e,t,a),n=Ce(e+1,t,a);return(we(e)-s+n)/7}G("w",["ww",2],"wo","week"),G("W",["WW",2],"Wo","isoWeek"),W("week","w"),W("isoWeek","W"),z("week",5),z("isoWeek",5),ue("w",Q),ue("ww",Q,B),ue("W",Q),ue("WW",Q,B),he(["w","ww","W","WW"],function(e,t,a,s){t[s.substr(0,1)]=T(e)}),G("d",0,"do","day"),G("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),G("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),G("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),G("e",0,0,"weekday"),G("E",0,0,"isoWeekday"),W("day","d"),W("weekday","e"),W("isoWeekday","E"),z("day",11),z("weekday",11),z("isoWeekday",11),ue("d",Q),ue("e",Q),ue("E",Q),ue("dd",function(e,t){return t.weekdaysMinRegex(e)}),ue("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ue("dddd",function(e,t){return t.weekdaysRegex(e)}),he(["dd","ddd","dddd"],function(e,t,a,s){var n=a._locale.weekdaysParse(e,s,a._strict);null!=n?t.d=n:c(a).invalidWeekday=e}),he(["d","e","E"],function(e,t,a,s){t[s]=T(e)});var Ve="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ze="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Be="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var Ke=_e,$e=_e,qe=_e;function Qe(){function e(e,t){return t.length-e.length}var t,a,s,n,r,i=[],d=[],_=[],o=[];for(t=0;t<7;t++)a=M([2e3,1]).day(t),s=this.weekdaysMin(a,""),n=this.weekdaysShort(a,""),r=this.weekdays(a,""),i.push(s),d.push(n),_.push(r),o.push(s),o.push(n),o.push(r);for(i.sort(e),d.sort(e),_.sort(e),o.sort(e),t=0;t<7;t++)d[t]=le(d[t]),_[t]=le(_[t]),o[t]=le(o[t]);this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Xe(){return this.hours()%12||12}function et(e,t){G(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function tt(e,t){return t._meridiemParse}G("H",["HH",2],0,"hour"),G("h",["hh",2],0,Xe),G("k",["kk",2],0,function(){return this.hours()||24}),G("hmm",0,0,function(){return""+Xe.apply(this)+J(this.minutes(),2)}),G("hmmss",0,0,function(){return""+Xe.apply(this)+J(this.minutes(),2)+J(this.seconds(),2)}),G("Hmm",0,0,function(){return""+this.hours()+J(this.minutes(),2)}),G("Hmmss",0,0,function(){return""+this.hours()+J(this.minutes(),2)+J(this.seconds(),2)}),et("a",!0),et("A",!1),W("hour","h"),z("hour",13),ue("a",tt),ue("A",tt),ue("H",Q),ue("h",Q),ue("k",Q),ue("HH",Q,B),ue("hh",Q,B),ue("kk",Q,B),ue("hmm",X),ue("hmmss",ee),ue("Hmm",X),ue("Hmmss",ee),ce(["H","HH"],fe),ce(["k","kk"],function(e,t,a){var s=T(e);t[fe]=24===s?0:s}),ce(["a","A"],function(e,t,a){a._isPm=a._locale.isPM(e),a._meridiem=e}),ce(["h","hh"],function(e,t,a){t[fe]=T(e),c(a).bigHour=!0}),ce("hmm",function(e,t,a){var s=e.length-2;t[fe]=T(e.substr(0,s)),t[pe]=T(e.substr(s)),c(a).bigHour=!0}),ce("hmmss",function(e,t,a){var s=e.length-4,n=e.length-2;t[fe]=T(e.substr(0,s)),t[pe]=T(e.substr(s,2)),t[De]=T(e.substr(n)),c(a).bigHour=!0}),ce("Hmm",function(e,t,a){var s=e.length-2;t[fe]=T(e.substr(0,s)),t[pe]=T(e.substr(s))}),ce("Hmmss",function(e,t,a){var s=e.length-4,n=e.length-2;t[fe]=T(e.substr(0,s)),t[pe]=T(e.substr(s,2)),t[De]=T(e.substr(n))});var at,st=He("Hours",!0),nt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:We,monthsShort:Ee,week:{dow:0,doy:6},weekdays:Ve,weekdaysMin:Be,weekdaysShort:Ze,meridiemParse:/[ap]\.?m?\.?/i},rt={},it={};function dt(e){return e?e.toLowerCase().replace("_","-"):e}function _t(t){var s=null;if(!rt[t]&&void 0!==e&&e&&e.exports)try{s=at._abbr,a(127)("./"+t),ot(s)}catch(t){}return rt[t]}function ot(e,t){var a;return e&&((a=d(t)?mt(e):ut(e,t))?at=a:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function ut(e,t){if(null===t)return delete rt[e],null;var a,s=nt;if(t.abbr=e,null!=rt[e])H("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=rt[e]._config;else if(null!=t.parentLocale)if(null!=rt[t.parentLocale])s=rt[t.parentLocale]._config;else{if(null==(a=_t(t.parentLocale)))return it[t.parentLocale]||(it[t.parentLocale]=[]),it[t.parentLocale].push({name:e,config:t}),null;s=a._config}return rt[e]=new O(x(s,t)),it[e]&&it[e].forEach(function(e){ut(e.name,e.config)}),ot(e),rt[e]}function mt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return at;if(!r(e)){if(t=_t(e))return t;e=[e]}return function(e){for(var t,a,s,n,r=0;r=t&&g(n,a,!0)>=t-1)break;t--}r++}return at}(e)}function lt(e){var t,a=e._a;return a&&-2===c(e).overflow&&(t=a[Ye]<0||11Oe(a[Le],a[Ye])?ye:a[fe]<0||24Ue(a,r,i)?c(e)._overflowWeeks=!0:null!=_?c(e)._overflowWeekday=!0:(d=Re(a,s,n,r,i),e._a[Le]=d.year,e._dayOfYear=d.dayOfYear)}(e),null!=e._dayOfYear&&(i=Mt(e._a[Le],s[Le]),(e._dayOfYear>we(i)||0===e._dayOfYear)&&(c(e)._overflowDayOfYear=!0),a=Ie(i,0,e._dayOfYear),e._a[Ye]=a.getUTCMonth(),e._a[ye]=a.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=s[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[fe]&&0===e._a[pe]&&0===e._a[De]&&0===e._a[ke]&&(e._nextDay=!0,e._a[fe]=0),e._d=(e._useUTC?Ie:function(e,t,a,s,n,r,i){var d=new Date(e,t,a,s,n,r,i);return e<100&&0<=e&&isFinite(d.getFullYear())&&d.setFullYear(e),d}).apply(null,o),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[fe]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(c(e).weekdayMismatch=!0)}}var ht=/^\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)?)?$/,Lt=/^\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)?)?$/,Yt=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["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}/]],ft=[["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/]],pt=/^\/?Date\((\-?\d+)/i;function Dt(e){var t,a,s,n,r,i,d=e._i,_=ht.exec(d)||Lt.exec(d);if(_){for(c(e).iso=!0,t=0,a=yt.length;ta.valueOf():a.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},oa.isLocal=function(){return!!this.isValid()&&!this._isUTC},oa.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},oa.isUtc=It,oa.isUTC=It,oa.zoneAbbr=function(){return this._isUTC?"UTC":""},oa.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},oa.dates=j("dates accessor is deprecated. Use date instead.",sa),oa.months=j("months accessor is deprecated. Use month instead",Fe),oa.years=j("years accessor is deprecated. Use year instead",Se),oa.zone=j("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),oa.isDSTShifted=j("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!d(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=jt(e))._a){var t=e._isUTC?M(e._a):St(e._a);this._isDSTShifted=this.isValid()&&0W.jDaysInMonth(_,o)||o<0||11