BBnepal-Accounts/assets_admin/js/nepali.datepicker.v3.7.min.js

1 line
32 KiB
JavaScript
Raw Normal View History

2024-07-10 12:43:19 +00:00
var NepaliFunctions=function(){"use strict";function e(){function e(){return p}function t(){return f}function n(e){var t=0;return e.forEach(function(e){t+=e}),t}function a(e,t){var n=Date.UTC(e.year,e.month-1,e.day),r=Date.UTC(t.year,t.month-1,t.day);return Math.abs((r-n)/864e5)}function o(e,t){var r=0,a=0;for(a=e.year;a<=t.year;a+=1)r+=n(c[a]);for(a=0;a<e.month;a+=1)r-=c[e.year][a];for(r+=c[e.year][11],a=t.month-1;a<12;a+=1)r-=c[t.year][a];return r-=e.day+1,r+=t.day-1}function i(e,t){var n=new Date(r(e,"MM/DD/YYYY"));return n.setDate(n.getDate()+t),{year:n.getFullYear(),month:n.getMonth()+1,day:n.getDate()}}function u(e,t){for(e.day+=t;e.day>c[e.year][e.month-1];)e.day-=c[e.year][e.month-1],e.month+=1,e.month>12&&(e.month=1,e.year+=1);return{year:e.year,month:e.month,day:e.day}}function d(e){var t=o(m,e);return i(h,t)}function l(e){var t=a(h,e);return u(m,t)}function s(e,t){return c[e][t-1]}var c=[],m={year:2e3,month:9,day:17},h={year:1944,month:1,day:1};c[1970]=[31,31,32,31,31,31,30,29,30,29,30,30],c[1971]=[31,31,32,31,32,30,30,29,30,29,30,30],c[1972]=[31,32,31,32,31,30,30,30,29,29,30,31],c[1973]=[30,32,31,32,31,30,30,30,29,30,29,31],c[1974]=[31,31,32,31,31,31,30,29,30,29,30,30],c[1975]=[31,31,32,32,31,30,30,29,30,29,30,30],c[1976]=[31,32,31,32,31,30,30,30,29,29,30,31],c[1977]=[30,32,31,32,31,31,29,30,29,30,29,31],c[1978]=[31,31,32,31,31,31,30,29,30,29,30,30],c[1979]=[31,31,32,32,31,30,30,29,30,29,30,30],c[1980]=[31,32,31,32,31,30,30,30,29,29,30,31],c[1981]=[31,31,31,32,31,31,29,30,30,29,30,30],c[1982]=[31,31,32,31,31,31,30,29,30,29,30,30],c[1983]=[31,31,32,32,31,30,30,29,30,29,30,30],c[1984]=[31,32,31,32,31,30,30,30,29,29,30,31],c[1985]=[31,31,31,32,31,31,29,30,30,29,30,30],c[1986]=[31,31,32,31,31,31,30,29,30,29,30,30],c[1987]=[31,32,31,32,31,30,30,29,30,29,30,30],c[1988]=[31,32,31,32,31,30,30,30,29,29,30,31],c[1989]=[31,31,31,32,31,31,30,29,30,29,30,30],c[1990]=[31,31,32,31,31,31,30,29,30,29,30,30],c[1991]=[31,32,31,32,31,30,30,30,29,29,30,30],c[1992]=[31,32,31,32,31,30,30,30,29,30,29,31],c[1993]=[31,31,31,32,31,31,30,29,30,29,30,30],c[1994]=[31,31,32,31,31,31,30,29,30,29,30,30],c[1995]=[31,32,31,32,31,30,30,30,29,29,30,30],c[1996]=[31,32,31,32,31,30,30,30,29,30,29,31],c[1997]=[31,31,32,31,31,31,30,29,30,29,30,30],c[1998]=[31,31,32,31,31,31,30,29,30,29,30,30],c[1999]=[31,32,31,32,31,30,30,30,29,29,30,31],c[2e3]=[30,32,31,32,31,30,30,30,29,30,29,31],c[2001]=[31,31,32,31,31,31,30,29,30,29,30,30],c[2002]=[31,31,32,32,31,30,30,29,30,29,30,30],c[2003]=[31,32,31,32,31,30,30,30,29,29,30,31],c[2004]=[30,32,31,32,31,30,30,30,29,30,29,31],c[2005]=[31,31,32,31,31,31,30,29,30,29,30,30],c[2006]=[31,31,32,32,31,30,30,29,30,29,30,30],c[2007]=[31,32,31,32,31,30,30,30,29,29,30,31],c[2008]=[31,31,31,32,31,31,29,30,30,29,29,31],c[2009]=[31,31,32,31,31,31,30,29,30,29,30,30],c[2010]=[31,31,32,32,31,30,30,29,30,29,30,30],c[2011]=[31,32,31,32,31,30,30,30,29,29,30,31],c[2012]=[31,31,31,32,31,31,29,30,30,29,30,30],c[2013]=[31,31,32,31,31,31,30,29,30,29,30,30],c[2014]=[31,31,32,32,31,30,30,29,30,29,30,30],c[2015]=[31,32,31,32,31,30,30,30,29,29,30,31],c[2016]=[31,31,31,32,31,31,29,30,30,29,30,30],c[2017]=[31,31,32,31,31,31,30,29,30,29,30,30],c[2018]=[31,32,31,32,31,30,30,29,30,29,30,30],c[2019]=[31,32,31,32,31,30,30,30,29,30,29,31],c[2020]=[31,31,31,32,31,31,30,29,30,29,30,30],c[2021]=[31,31,32,31,31,31,30,29,30,29,30,30],c[2022]=[31,32,31,32,31,30,30,30,29,29,30,30],c[2023]=[31,32,31,32,31,30,30,30,29,30,29,31],c[2024]=[31,31,31,32,31,31,30,29,30,29,30,30],c[2025]=[31,31,32,31,31,31,30,29,30,29,30,30],c[2026]=[31,32,31,32,31,30,30,30,29,29,30,31],c[2027]=[30,32,31,32,31,30,30,30,29,30,29,31],c[2028]=[31,31,32,31,31,31,30,29,30,29,30,30],c[2029]=[31,31,32,31,32,30,30,29,30,29,30,30],c[2030]=[31,32,31,32,31,30,30,30,29,29,30,31],c[2031]=[30,32,31,32,31,30,30,30,29,30,29,31],c[2032]=[31,31,32,31,31,31,30,29,30,29,30,30],c[2033]=[31,31,32,32,31,30,30,29,30,29,30,30],c[2034]=[31,32,31,32,31,30,30,30,29,29,30,31],c[2035]=[30,32,31,32,31,31,29,30,30,29,29,31],c[2036]=[31,31,32,31,31,31,30,29,30,29,30,30],c[2037]=[31,31,32,32,31,30,30,29,30,29,30,30