All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ureport-asserts.js.preview.bundle.js Maven / Gradle / Ivy

There is a newer version: 2.2.9
Show newest version
!function(e){var t={};function a(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},a.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},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=377)}([function(e,t,a){"use strict";a.d(t,"l",function(){return o}),a.d(t,"e",function(){return s}),a.d(t,"j",function(){return d}),a.d(t,"a",function(){return l}),a.d(t,"m",function(){return u}),a.d(t,"d",function(){return f}),a.d(t,"f",function(){return p}),a.d(t,"g",function(){return g}),a.d(t,"h",function(){return M}),a.d(t,"k",function(){return L}),a.d(t,"i",function(){return v}),a.d(t,"c",function(){return b}),a.d(t,"b",function(){return k}),a.d(t,"n",function(){return Y});var n=a(165),i=a.n(n),r=a(2);function o(){const e=window._server+"/res/ureport-asserts/icons/loading.gif",t=$(window).height()/2,a=$(window).width()/2,n=$(`
`);$(document.body).append(n);const i=$(`
\n
打印数据加载中...
`);$(document.body).append(i)}function s(){$(".ureport-loading-cover").remove(),$(".ureport-loading").remove()}function d(e){const t=e.countCols(),a=e.countRows(),n=e.context,i=[];for(let r=0;r13?e+=t.substring(0,10)+"..)":e+=t+")",a.push(e)}else if("expression"===e){let e=n.value||"";e.length>16&&(e=e.substring(0,13)+"..."),a.push(e)}else a.push(n.value||"")}else a.push("")}i.push(a)}e.loadData(i)}function l(e,t){return{rowNumber:e,columnNumber:t,expand:"None",cellStyle:{fontSize:9,forecolor:"0,0,0",fontFamily:"宋体",align:"center",valign:"middle"},value:{type:"simple",value:""}}}function u(e){const t=e.hot,a=t.countRows(),n=t.countCols();let i='',o="",s="";const d=e.rowHeaders;for(let e=0;e`:``}for(let e=0;e`}let l="",u=[];for(let i=0;i-1)continue;let n=e.getCell(i,a);if(!n)continue;let o=e.getCellName(i,a);l+=`1&&(l+=` row-span="${d}"`),f>1&&(l+=` col-span="${f}"`),n.linkUrl&&""!==n.linkUrl&&(l+=` link-url="${n.linkUrl}"`),n.linkTargetWindow&&""!==n.linkTargetWindow&&(l+=` link-target-window="${n.linkTargetWindow}"`),l+=">",l+=m(n.cellStyle),n.linkParameters&&n.linkParameters.length>0)for(let e of n.linkParameters)l+=``,l+=``,l+="";const y=n.value;if("dataset"===y.type){let e=null;if(y.datasetName||(e=`${o}单元格数据集属性不能为空!`),e||y.property||(e=`${o}单元格属性不能为空!`),e||y.aggregate||(e=`${o}单元格聚合方式属性不能为空!`),e)throw Object(r.a)(e),e;const t=y.mappingType||"simple";if(l+=``;for(let e of t.conditions)l+=``:l+=">",l+=``,l+="";l+=""}}if("simple"===t){const e=y.mappingItems;if(e&&e.length>0)for(let t of e)l+=``}l+=""}else if("expression"===y.type){if(!y.value||""===y.value){const e=`${o}单元格表达式不能为空`;throw Object(r.a)(e),e}l+="",l+=``,l+=""}else if("simple"===y.type)l+="",l+=``,l+="";else if("image"===y.type)l+=``,l+="",l+="";else if("zxing"===y.type)l+=``,l+="",l+="";else if("slash"===y.type){l+="";const e=y.slashes;for(let t of e)l+=``;l+="",l+=``,l+="",l+=""}else if("chart"===y.type){l+="";const e=y.chart,t=e.dataset;l+=``),e.linkParameters&&e.linkParameters.length>0)for(let t of e.linkParameters)l+=``,l+=``,l+="";const i=e.cellStyle;i&&(l+=m(i,!0)),l+=_(e.conditions),l+=""}l+=""}i+=l,i+=o,i+=s;const f=e.reportDef.header;f&&(f.left||f.center||f.right)&&(i+="
`),f.center&&(i+=`
`),f.right&&(i+=``),i+="
");const p=e.reportDef.footer;p&&(p.left||p.center||p.right)&&(i+="
`),p.center&&(i+=`
`),p.right&&(i+=``),i+="
");let g="";const M=e.reportDef.datasources;for(let e of M){let t=``,t+=``;for(let e of a.fields)t+=``;for(let e of a.parameters)t+=``;t+=""}}else if("spring"===a){t+=` bean="${e.beanId}">`;for(let a of e.datasets){t+=``;for(let e of a.fields)t+=``;t+=""}}else if("buildin"===a){t+=">";for(let a of e.datasets){t+=``,t+=``;for(let e of a.fields)t+=``;for(let e of a.parameters)t+=``;t+=""}}g+=t+=""}i+=g;const L=e.reportDef.paper;let v=0;return null!==L.htmlIntervalRefreshValue&&void 0!==L.htmlIntervalRefreshValue&&(v=L.htmlIntervalRefreshValue),i+=`",encodeURIComponent(i)}function c(e,t,a){const n=e.getSettings().mergeCells||[];for(let e of n)if(e.row===t&&e.col===a)return e;return{rowspan:0,colspan:0}}function _(e){let t="";if(e)for(let a of e)a.type&&"property"!==a.type?(t+=``:t+=">",t+=``,t+=``):(a.left?t+=``:t+=">",t+=``),t+="";return t}function m(e,t){let a="`);let i=e.rightBorder;i&&"none"!==i.style&&(a+=``);let r=e.topBorder;r&&"none"!==r.style&&(a+=``);let o=e.bottomBorder;return o&&"none"!==o.style&&(a+=``),a+""}function h(e){return e.replace(/[<>&"]/g,function(e){return{"<":"<",">":">","&":"&",'"':"""}[e]})}function f(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),a=window.location.search.substr(1).match(t);return null!=a?a[2]:null}function p(e){let t=2.834646*e;return Math.round(t)}function g(e){let t=.352778*e;return Math.round(t)}function M(e){const t=1.33*e;return Math.round(t)}function y(e){const t=.75*e;return Math.round(t)}function L(){$("#__save_btn").removeClass("disabled")}function v(){$("#__save_btn").addClass("disabled")}function b(e,t){if("number"==typeof e&&(e=new Date(e)),"string"==typeof e)return e;var a={"M+":e.getMonth()+1,"d+":e.getDate(),"H+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds()};for(var n in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),a)new RegExp("("+n+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?a[n]:("00"+a[n]).substr((""+a[n]).length)));return t}function k(){return{A0:{width:841,height:1189},A1:{width:594,height:841},A2:{width:420,height:594},A3:{width:297,height:420},A4:{width:210,height:297},A5:{width:148,height:210},A6:{width:105,height:148},A7:{width:74,height:105},A8:{width:52,height:74},A9:{width:37,height:52},A10:{width:26,height:37},B0:{width:1e3,height:1414},B1:{width:707,height:1e3},B2:{width:500,height:707},B3:{width:353,height:500},B4:{width:250,height:353},B5:{width:176,height:250},B6:{width:125,height:176},B7:{width:88,height:125},B8:{width:62,height:88},B9:{width:44,height:62},B10:{width:31,height:44}}}const Y=new i.a},function(e,t,a){(function(e){e.exports=function(){"use strict";var t,n;function i(){return t.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var a,n=[];for(a=0;a>>0,n=0;n0)for(a=0;a=0?a?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+n}var E=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,R=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,$={},N={};function B(e,t,a,n){var i=n;"string"==typeof n&&(i=function(){return this[n]()}),e&&(N[e]=i),t&&(N[t[0]]=function(){return z(i.apply(this,arguments),t[1],t[2])}),a&&(N[a]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function V(e,t){return e.isValid()?(t=J(t,e.localeData()),$[t]=$[t]||function(e){var t,a,n,i=e.match(E);for(t=0,a=i.length;t=0&&R.test(e);)e=e.replace(R,n),R.lastIndex=0,a-=1;return e}var U=/\d/,G=/\d\d/,q=/\d{3}/,K=/\d{4}/,Z=/[+-]?\d{6}/,X=/\d\d?/,Q=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ae=/\d{1,4}/,ne=/[+-]?\d{1,6}/,ie=/\d+/,re=/[+-]?\d+/,oe=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,de=/[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,le={};function ue(e,t,a){le[e]=H(t)?t:function(e,n){return e&&a?a:t}}function ce(e,t){return c(le,e)?le[e](t._strict,t._locale):new RegExp(_e(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,a,n,i){return t||a||n||i})))}function _e(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var me={};function he(e,t){var a,n=t;for("string"==typeof e&&(e=[e]),d(t)&&(n=function(e,a){a[t]=k(e)}),a=0;a68?1900:2e3)};var Te,Se=He("FullYear",!0);function He(e,t){return function(a){return null!=a?(Pe(this,e,a),i.updateOffset(this,t),this):je(this,e)}}function je(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Pe(e,t,a){e.isValid()&&!isNaN(a)&&("FullYear"===t&&xe(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](a,e.month(),Oe(a,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](a))}function Oe(e,t){if(isNaN(e)||isNaN(t))return NaN;var a=(t%12+12)%12;return e+=(t-a)/12,1===a?xe(e)?29:28:31-a%7%2}Te=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Ne(e,t,a){var n=7+t-a;return-((7+$e(e,0,n).getUTCDay()-t)%7)+n-1}function Be(e,t,a,n,i){var r,o,s=1+7*(t-1)+(7+a-n)%7+Ne(e,n,i);return s<=0?o=De(r=e-1)+s:s>De(e)?(r=e+1,o=s-De(e)):(r=e,o=s),{year:r,dayOfYear:o}}function Ve(e,t,a){var n,i,r=Ne(e.year(),t,a),o=Math.floor((e.dayOfYear()-r-1)/7)+1;return o<1?n=o+Je(i=e.year()-1,t,a):o>Je(e.year(),t,a)?(n=o-Je(e.year(),t,a),i=e.year()+1):(i=e.year(),n=o),{week:n,year:i}}function Je(e,t,a){var n=Ne(e,t,a),i=Ne(e+1,t,a);return(De(e)-n+i)/7}B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),A("week","w"),A("isoWeek","W"),I("week",5),I("isoWeek",5),ue("w",X),ue("ww",X,G),ue("W",X),ue("WW",X,G),fe(["w","ww","W","WW"],function(e,t,a,n){t[n.substr(0,1)]=k(e)}),B("d",0,"do","day"),B("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),B("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),B("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),A("day","d"),A("weekday","e"),A("isoWeekday","E"),I("day",11),I("weekday",11),I("isoWeekday",11),ue("d",X),ue("e",X),ue("E",X),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)}),fe(["dd","ddd","dddd"],function(e,t,a,n){var i=a._locale.weekdaysParse(e,n,a._strict);null!=i?t.d=i:h(a).invalidWeekday=e}),fe(["d","e","E"],function(e,t,a,n){t[n]=k(e)});var Ue="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ge="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ke=de,Ze=de,Xe=de;function Qe(){function e(e,t){return t.length-e.length}var t,a,n,i,r,o=[],s=[],d=[],l=[];for(t=0;t<7;t++)a=m([2e3,1]).day(t),n=this.weekdaysMin(a,""),i=this.weekdaysShort(a,""),r=this.weekdays(a,""),o.push(n),s.push(i),d.push(r),l.push(n),l.push(i),l.push(r);for(o.sort(e),s.sort(e),d.sort(e),l.sort(e),t=0;t<7;t++)s[t]=_e(s[t]),d[t]=_e(d[t]),l[t]=_e(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function et(){return this.hours()%12||12}function tt(e,t){B(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function at(e,t){return t._meridiemParse}B("H",["HH",2],0,"hour"),B("h",["hh",2],0,et),B("k",["kk",2],0,function(){return this.hours()||24}),B("hmm",0,0,function(){return""+et.apply(this)+z(this.minutes(),2)}),B("hmmss",0,0,function(){return""+et.apply(this)+z(this.minutes(),2)+z(this.seconds(),2)}),B("Hmm",0,0,function(){return""+this.hours()+z(this.minutes(),2)}),B("Hmmss",0,0,function(){return""+this.hours()+z(this.minutes(),2)+z(this.seconds(),2)}),tt("a",!0),tt("A",!1),A("hour","h"),I("hour",13),ue("a",at),ue("A",at),ue("H",X),ue("h",X),ue("k",X),ue("HH",X,G),ue("hh",X,G),ue("kk",X,G),ue("hmm",Q),ue("hmmss",ee),ue("Hmm",Q),ue("Hmmss",ee),he(["H","HH"],Le),he(["k","kk"],function(e,t,a){var n=k(e);t[Le]=24===n?0:n}),he(["a","A"],function(e,t,a){a._isPm=a._locale.isPM(e),a._meridiem=e}),he(["h","hh"],function(e,t,a){t[Le]=k(e),h(a).bigHour=!0}),he("hmm",function(e,t,a){var n=e.length-2;t[Le]=k(e.substr(0,n)),t[ve]=k(e.substr(n)),h(a).bigHour=!0}),he("hmmss",function(e,t,a){var n=e.length-4,i=e.length-2;t[Le]=k(e.substr(0,n)),t[ve]=k(e.substr(n,2)),t[be]=k(e.substr(i)),h(a).bigHour=!0}),he("Hmm",function(e,t,a){var n=e.length-2;t[Le]=k(e.substr(0,n)),t[ve]=k(e.substr(n))}),he("Hmmss",function(e,t,a){var n=e.length-4,i=e.length-2;t[Le]=k(e.substr(0,n)),t[ve]=k(e.substr(n,2)),t[be]=k(e.substr(i))});var nt,it=He("Hours",!0),rt={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:Ce,monthsShort:Fe,week:{dow:0,doy:6},weekdays:Ue,weekdaysMin:qe,weekdaysShort:Ge,meridiemParse:/[ap]\.?m?\.?/i},ot={},st={};function dt(e){return e?e.toLowerCase().replace("_","-"):e}function lt(t){var n=null;if(!ot[t]&&void 0!==e&&e&&e.exports)try{n=nt._abbr,a(206)("./"+t),ut(n)}catch(e){}return ot[t]}function ut(e,t){var a;return e&&((a=s(t)?_t(e):ct(e,t))?nt=a:"undefined"!=typeof console&&console.warn),nt._abbr}function ct(e,t){if(null!==t){var a,n=rt;if(t.abbr=e,null!=ot[e])S("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."),n=ot[e]._config;else if(null!=t.parentLocale)if(null!=ot[t.parentLocale])n=ot[t.parentLocale]._config;else{if(null==(a=lt(t.parentLocale)))return st[t.parentLocale]||(st[t.parentLocale]=[]),st[t.parentLocale].push({name:e,config:t}),null;n=a._config}return ot[e]=new P(j(n,t)),st[e]&&st[e].forEach(function(e){ct(e.name,e.config)}),ut(e),ot[e]}return delete ot[e],null}function _t(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return nt;if(!r(e)){if(t=lt(e))return t;e=[e]}return function(e){for(var t,a,n,i,r=0;r0;){if(n=lt(i.slice(0,t).join("-")))return n;if(a&&a.length>=t&&Y(i,a,!0)>=t-1)break;t--}r++}return nt}(e)}function mt(e){var t,a=e._a;return a&&-2===h(e).overflow&&(t=a[Me]<0||a[Me]>11?Me:a[ye]<1||a[ye]>Oe(a[ge],a[Me])?ye:a[Le]<0||a[Le]>24||24===a[Le]&&(0!==a[ve]||0!==a[be]||0!==a[ke])?Le:a[ve]<0||a[ve]>59?ve:a[be]<0||a[be]>59?be:a[ke]<0||a[ke]>999?ke:-1,h(e)._overflowDayOfYear&&(tye)&&(t=ye),h(e)._overflowWeeks&&-1===t&&(t=Ye),h(e)._overflowWeekday&&-1===t&&(t=we),h(e).overflow=t),e}function ht(e,t,a){return null!=e?e:null!=t?t:a}function ft(e){var t,a,n,r,o,s=[];if(!e._d){for(n=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[ye]&&null==e._a[Me]&&function(e){var t,a,n,i,r,o,s,d;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)r=1,o=4,a=ht(t.GG,e._a[ge],Ve(St(),1,4).year),n=ht(t.W,1),((i=ht(t.E,1))<1||i>7)&&(d=!0);else{r=e._locale._week.dow,o=e._locale._week.doy;var l=Ve(St(),r,o);a=ht(t.gg,e._a[ge],l.year),n=ht(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(d=!0):null!=t.e?(i=t.e+r,(t.e<0||t.e>6)&&(d=!0)):i=r}n<1||n>Je(a,r,o)?h(e)._overflowWeeks=!0:null!=d?h(e)._overflowWeekday=!0:(s=Be(a,n,i,r,o),e._a[ge]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=ht(e._a[ge],n[ge]),(e._dayOfYear>De(o)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),a=$e(o,0,e._dayOfYear),e._a[Me]=a.getUTCMonth(),e._a[ye]=a.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=n[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Le]&&0===e._a[ve]&&0===e._a[be]&&0===e._a[ke]&&(e._nextDay=!0,e._a[Le]=0),e._d=(e._useUTC?$e:function(e,t,a,n,i,r,o){var s=new Date(e,t,a,n,i,r,o);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}).apply(null,s),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Le]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(h(e).weekdayMismatch=!0)}}var pt=/^\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)?)?$/,gt=/^\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)?)?$/,Mt=/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}/]],Lt=[["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/]],vt=/^\/?Date\((\-?\d+)/i;function bt(e){var t,a,n,i,r,o,s=e._i,d=pt.exec(s)||gt.exec(s);if(d){for(h(e).iso=!0,t=0,a=yt.length;t0&&h(e).unusedInput.push(o),s=s.slice(s.indexOf(a)+a.length),l+=a.length),N[r]?(a?h(e).empty=!1:h(e).unusedTokens.push(r),pe(r,a,e)):e._strict&&!a&&h(e).unusedTokens.push(r);h(e).charsLeftOver=d-l,s.length>0&&h(e).unusedInput.push(s),e._a[Le]<=12&&!0===h(e).bigHour&&e._a[Le]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[Le]=(u=e._locale,c=e._a[Le],null==(_=e._meridiem)?c:null!=u.meridiemHour?u.meridiemHour(c,_):null!=u.isPM?((m=u.isPM(_))&&c<12&&(c+=12),m||12!==c||(c=0),c):c),ft(e),mt(e)}else wt(e);else bt(e);var u,c,_,m}function xt(e){var t=e._i,a=e._f;return e._locale=e._locale||_t(e._l),null===t||void 0===a&&""===t?p({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),v(t)?new L(mt(t)):(l(t)?e._d=t:r(a)?function(e){var t,a,n,i,r;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis?this:e:p()});function Pt(e,t){var a,n;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return St();for(a=t[0],n=1;n(r=Je(e,n,i))&&(t=r),function(e,t,a,n,i){var r=Be(e,t,a,n,i),o=$e(r.year,0,r.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}.call(this,e,t,a,n,i))}B(0,["gg",2],0,function(){return this.weekYear()%100}),B(0,["GG",2],0,function(){return this.isoWeekYear()%100}),aa("gggg","weekYear"),aa("ggggg","weekYear"),aa("GGGG","isoWeekYear"),aa("GGGGG","isoWeekYear"),A("weekYear","gg"),A("isoWeekYear","GG"),I("weekYear",1),I("isoWeekYear",1),ue("G",re),ue("g",re),ue("GG",X,G),ue("gg",X,G),ue("GGGG",ae,K),ue("gggg",ae,K),ue("GGGGG",ne,Z),ue("ggggg",ne,Z),fe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,a,n){t[n.substr(0,2)]=k(e)}),fe(["gg","GG"],function(e,t,a,n){t[n]=i.parseTwoDigitYear(e)}),B("Q",0,"Qo","quarter"),A("quarter","Q"),I("quarter",7),ue("Q",U),he("Q",function(e,t){t[Me]=3*(k(e)-1)}),B("D",["DD",2],"Do","date"),A("date","D"),I("date",9),ue("D",X),ue("DD",X,G),ue("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),he(["D","DD"],ye),he("Do",function(e,t){t[ye]=k(e.match(X)[0])});var ia=He("Date",!0);B("DDD",["DDDD",3],"DDDo","dayOfYear"),A("dayOfYear","DDD"),I("dayOfYear",4),ue("DDD",te),ue("DDDD",q),he(["DDD","DDDD"],function(e,t,a){a._dayOfYear=k(e)}),B("m",["mm",2],0,"minute"),A("minute","m"),I("minute",14),ue("m",X),ue("mm",X,G),he(["m","mm"],ve);var ra=He("Minutes",!1);B("s",["ss",2],0,"second"),A("second","s"),I("second",15),ue("s",X),ue("ss",X,G),he(["s","ss"],be);var oa,sa=He("Seconds",!1);for(B("S",0,0,function(){return~~(this.millisecond()/100)}),B(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,function(){return 10*this.millisecond()}),B(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),B(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),B(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),B(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),B(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),A("millisecond","ms"),I("millisecond",16),ue("S",te,U),ue("SS",te,G),ue("SSS",te,q),oa="SSSS";oa.length<=9;oa+="S")ue(oa,ie);function da(e,t){t[ke]=k(1e3*("0."+e))}for(oa="S";oa.length<=9;oa+="S")he(oa,da);var la=He("Milliseconds",!1);B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");var ua=L.prototype;function ca(e){return e}ua.add=Kt,ua.calendar=function(e,t){var a=e||St(),n=Et(a,this).startOf("day"),r=i.calendarFormat(this,n)||"sameElse",o=t&&(H(t[r])?t[r].call(this,a):t[r]);return this.format(o||this.localeData().calendar(r,this,St(a)))},ua.clone=function(){return new L(this)},ua.diff=function(e,t,a){var n,i,r;if(!this.isValid())return NaN;if(!(n=Et(e,this)).isValid())return NaN;switch(i=6e4*(n.utcOffset()-this.utcOffset()),t=C(t)){case"year":r=Xt(this,n)/12;break;case"month":r=Xt(this,n);break;case"quarter":r=Xt(this,n)/3;break;case"second":r=(this-n)/1e3;break;case"minute":r=(this-n)/6e4;break;case"hour":r=(this-n)/36e5;break;case"day":r=(this-n-i)/864e5;break;case"week":r=(this-n-i)/6048e5;break;default:r=this-n}return a?r:b(r)},ua.endOf=function(e){return void 0===(e=C(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},ua.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=V(this,e);return this.localeData().postformat(t)},ua.from=function(e,t){return this.isValid()&&(v(e)&&e.isValid()||St(e).isValid())?Vt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ua.fromNow=function(e){return this.from(St(),e)},ua.to=function(e,t){return this.isValid()&&(v(e)&&e.isValid()||St(e).isValid())?Vt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ua.toNow=function(e){return this.to(St(),e)},ua.get=function(e){return H(this[e=C(e)])?this[e]():this},ua.invalidAt=function(){return h(this).overflow},ua.isAfter=function(e,t){var a=v(e)?e:St(e);return!(!this.isValid()||!a.isValid())&&("millisecond"===(t=C(s(t)?"millisecond":t))?this.valueOf()>a.valueOf():a.valueOf()9999?V(a,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):H(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(a,"Z")):V(a,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ua.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var a="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(a+n+"-MM-DD[T]HH:mm:ss.SSS"+i)},ua.toJSON=function(){return this.isValid()?this.toISOString():null},ua.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ua.unix=function(){return Math.floor(this.valueOf()/1e3)},ua.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ua.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ua.year=Se,ua.isLeapYear=function(){return xe(this.year())},ua.weekYear=function(e){return na.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ua.isoWeekYear=function(e){return na.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},ua.quarter=ua.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},ua.month=Ie,ua.daysInMonth=function(){return Oe(this.year(),this.month())},ua.week=ua.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},ua.isoWeek=ua.isoWeeks=function(e){var t=Ve(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},ua.weeksInYear=function(){var e=this.localeData()._week;return Je(this.year(),e.dow,e.doy)},ua.isoWeeksInYear=function(){return Je(this.year(),1,4)},ua.date=ia,ua.day=ua.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},ua.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},ua.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},ua.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},ua.hour=ua.hours=it,ua.minute=ua.minutes=ra,ua.second=ua.seconds=sa,ua.millisecond=ua.milliseconds=la,ua.utcOffset=function(e,t,a){var n,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=zt(se,e)))return this}else Math.abs(e)<16&&!a&&(e*=60);return!this._isUTC&&t&&(n=Rt(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==e&&(!t||this._changeInProgress?qt(this,Vt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Rt(this)},ua.utc=function(e){return this.utcOffset(0,e)},ua.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Rt(this),"m")),this},ua.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=zt(oe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},ua.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?St(e).utcOffset():0,(this.utcOffset()-e)%60==0)},ua.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ua.isLocal=function(){return!!this.isValid()&&!this._isUTC},ua.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ua.isUtc=$t,ua.isUTC=$t,ua.zoneAbbr=function(){return this._isUTC?"UTC":""},ua.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ua.dates=D("dates accessor is deprecated. Use date instead.",ia),ua.months=D("months accessor is deprecated. Use month instead",Ie),ua.years=D("years accessor is deprecated. Use year instead",Se),ua.zone=D("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()}),ua.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(M(e,this),(e=xt(e))._a){var t=e._isUTC?m(e._a):St(e._a);this._isDSTShifted=this.isValid()&&Y(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var _a=P.prototype;function ma(e,t,a,n){var i=_t(),r=m().set(n,t);return i[a](r,e)}function ha(e,t,a){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return ma(e,t,a,"month");var n,i=[];for(n=0;n<12;n++)i[n]=ma(e,n,a,"month");return i}function fa(e,t,a,n){"boolean"==typeof e?(d(t)&&(a=t,t=void 0),t=t||""):(a=t=e,e=!1,d(t)&&(a=t,t=void 0),t=t||"");var i,r=_t(),o=e?r._week.dow:0;if(null!=a)return ma(t,(a+o)%7,n,"day");var s=[];for(i=0;i<7;i++)s[i]=ma(t,(i+o)%7,n,"day");return s}_a.calendar=function(e,t,a){var n=this._calendar[e]||this._calendar.sameElse;return H(n)?n.call(t,a):n},_a.longDateFormat=function(e){var t=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];return t||!a?t:(this._longDateFormat[e]=a.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},_a.invalidDate=function(){return this._invalidDate},_a.ordinal=function(e){return this._ordinal.replace("%d",e)},_a.preparse=ca,_a.postformat=ca,_a.relativeTime=function(e,t,a,n){var i=this._relativeTime[a];return H(i)?i(e,t,a,n):i.replace(/%d/i,e)},_a.pastFuture=function(e,t){var a=this._relativeTime[e>0?"future":"past"];return H(a)?a(t):a.replace(/%s/i,t)},_a.set=function(e){var t,a;for(a in e)H(t=e[a])?this[a]=t:this["_"+a]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},_a.months=function(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ae).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone},_a.monthsShort=function(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ae.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},_a.monthsParse=function(e,t,a){var n,i,r;if(this._monthsParseExact)return function(e,t,a){var n,i,r,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)r=m([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(r,"").toLocaleLowerCase();return a?"MMM"===t?-1!==(i=Te.call(this._shortMonthsParse,o))?i:null:-1!==(i=Te.call(this._longMonthsParse,o))?i:null:"MMM"===t?-1!==(i=Te.call(this._shortMonthsParse,o))?i:-1!==(i=Te.call(this._longMonthsParse,o))?i:null:-1!==(i=Te.call(this._longMonthsParse,o))?i:-1!==(i=Te.call(this._shortMonthsParse,o))?i:null}.call(this,e,t,a);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(i=m([2e3,n]),a&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),a||this._monthsParse[n]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[n]=new RegExp(r.replace(".",""),"i")),a&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(a&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!a&&this._monthsParse[n].test(e))return n}},_a.monthsRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||Re.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Ee),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},_a.monthsShortRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||Re.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=ze),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},_a.week=function(e){return Ve(e,this._week.dow,this._week.doy).week},_a.firstDayOfYear=function(){return this._week.doy},_a.firstDayOfWeek=function(){return this._week.dow},_a.weekdays=function(e,t){return e?r(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:r(this._weekdays)?this._weekdays:this._weekdays.standalone},_a.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},_a.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},_a.weekdaysParse=function(e,t,a){var n,i,r;if(this._weekdaysParseExact)return function(e,t,a){var n,i,r,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)r=m([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(r,"").toLocaleLowerCase();return a?"dddd"===t?-1!==(i=Te.call(this._weekdaysParse,o))?i:null:"ddd"===t?-1!==(i=Te.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=Te.call(this._minWeekdaysParse,o))?i:null:"dddd"===t?-1!==(i=Te.call(this._weekdaysParse,o))?i:-1!==(i=Te.call(this._shortWeekdaysParse,o))?i:-1!==(i=Te.call(this._minWeekdaysParse,o))?i:null:"ddd"===t?-1!==(i=Te.call(this._shortWeekdaysParse,o))?i:-1!==(i=Te.call(this._weekdaysParse,o))?i:-1!==(i=Te.call(this._minWeekdaysParse,o))?i:null:-1!==(i=Te.call(this._minWeekdaysParse,o))?i:-1!==(i=Te.call(this._weekdaysParse,o))?i:-1!==(i=Te.call(this._shortWeekdaysParse,o))?i:null}.call(this,e,t,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(i=m([2e3,1]).day(n),a&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[n]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[n]=new RegExp(r.replace(".",""),"i")),a&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(a&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(a&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!a&&this._weekdaysParse[n].test(e))return n}},_a.weekdaysRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Ke),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},_a.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},_a.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Xe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},_a.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},_a.meridiem=function(e,t,a){return e>11?a?"pm":"PM":a?"am":"AM"},ut("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===k(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=D("moment.lang is deprecated. Use moment.locale instead.",ut),i.langData=D("moment.langData is deprecated. Use moment.localeData instead.",_t);var pa=Math.abs;function ga(e,t,a,n){var i=Vt(t,a);return e._milliseconds+=n*i._milliseconds,e._days+=n*i._days,e._months+=n*i._months,e._bubble()}function Ma(e){return e<0?Math.floor(e):Math.ceil(e)}function ya(e){return 4800*e/146097}function La(e){return 146097*e/4800}function va(e){return function(){return this.as(e)}}var ba=va("ms"),ka=va("s"),Ya=va("m"),wa=va("h"),Da=va("d"),xa=va("w"),Ta=va("M"),Sa=va("y");function Ha(e){return function(){return this.isValid()?this._data[e]:NaN}}var ja=Ha("milliseconds"),Pa=Ha("seconds"),Oa=Ha("minutes"),Aa=Ha("hours"),Ca=Ha("days"),Fa=Ha("months"),Wa=Ha("years"),Ia=Math.round,za={ss:44,s:45,m:45,h:22,d:26,M:11},Ea=Math.abs;function Ra(e){return(e>0)-(e<0)||+e}function $a(){if(!this.isValid())return this.localeData().invalidDate();var e,t,a=Ea(this._milliseconds)/1e3,n=Ea(this._days),i=Ea(this._months);t=b((e=b(a/60))/60),a%=60,e%=60;var r=b(i/12),o=i%=12,s=n,d=t,l=e,u=a?a.toFixed(3).replace(/\.?0+$/,""):"",c=this.asSeconds();if(!c)return"P0D";var _=c<0?"-":"",m=Ra(this._months)!==Ra(c)?"-":"",h=Ra(this._days)!==Ra(c)?"-":"",f=Ra(this._milliseconds)!==Ra(c)?"-":"";return _+"P"+(r?m+r+"Y":"")+(o?m+o+"M":"")+(s?h+s+"D":"")+(d||l||u?"T":"")+(d?f+d+"H":"")+(l?f+l+"M":"")+(u?f+u+"S":"")}var Na=At.prototype;return Na.isValid=function(){return this._isValid},Na.abs=function(){var e=this._data;return this._milliseconds=pa(this._milliseconds),this._days=pa(this._days),this._months=pa(this._months),e.milliseconds=pa(e.milliseconds),e.seconds=pa(e.seconds),e.minutes=pa(e.minutes),e.hours=pa(e.hours),e.months=pa(e.months),e.years=pa(e.years),this},Na.add=function(e,t){return ga(this,e,t,1)},Na.subtract=function(e,t){return ga(this,e,t,-1)},Na.as=function(e){if(!this.isValid())return NaN;var t,a,n=this._milliseconds;if("month"===(e=C(e))||"year"===e)return t=this._days+n/864e5,a=this._months+ya(t),"month"===e?a:a/12;switch(t=this._days+Math.round(La(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},Na.asMilliseconds=ba,Na.asSeconds=ka,Na.asMinutes=Ya,Na.asHours=wa,Na.asDays=Da,Na.asWeeks=xa,Na.asMonths=Ta,Na.asYears=Sa,Na.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},Na._bubble=function(){var e,t,a,n,i,r=this._milliseconds,o=this._days,s=this._months,d=this._data;return r>=0&&o>=0&&s>=0||r<=0&&o<=0&&s<=0||(r+=864e5*Ma(La(s)+o),o=0,s=0),d.milliseconds=r%1e3,e=b(r/1e3),d.seconds=e%60,t=b(e/60),d.minutes=t%60,a=b(t/60),d.hours=a%24,s+=i=b(ya(o+=b(a/24))),o-=Ma(La(i)),n=b(s/12),s%=12,d.days=o,d.months=s,d.years=n,this},Na.clone=function(){return Vt(this)},Na.get=function(e){return e=C(e),this.isValid()?this[e+"s"]():NaN},Na.milliseconds=ja,Na.seconds=Pa,Na.minutes=Oa,Na.hours=Aa,Na.days=Ca,Na.weeks=function(){return b(this.days()/7)},Na.months=Fa,Na.years=Wa,Na.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),a=function(e,t,a){var n=Vt(e).abs(),i=Ia(n.as("s")),r=Ia(n.as("m")),o=Ia(n.as("h")),s=Ia(n.as("d")),d=Ia(n.as("M")),l=Ia(n.as("y")),u=i<=za.ss&&["s",i]||i0,u[4]=a,function(e,t,a,n,i){return i.relativeTime(t||1,!!a,e,n)}.apply(null,u)}(this,!e,t);return e&&(a=t.pastFuture(+this,a)),t.postformat(a)},Na.toISOString=$a,Na.toString=$a,Na.toJSON=$a,Na.locale=Qt,Na.localeData=ta,Na.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",$a),Na.lang=ea,B("X",0,0,"unix"),B("x",0,0,"valueOf"),ue("x",re),ue("X",/[+-]?\d+(\.\d{1,3})?/),he("X",function(e,t,a){a._d=new Date(1e3*parseFloat(e,10))}),he("x",function(e,t,a){a._d=new Date(k(e))}),i.version="2.22.1",t=St,i.fn=ua,i.min=function(){return Pt("isBefore",[].slice.call(arguments,0))},i.max=function(){return Pt("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=m,i.unix=function(e){return St(1e3*e)},i.months=function(e,t){return ha(e,t,"months")},i.isDate=l,i.locale=ut,i.invalid=p,i.duration=Vt,i.isMoment=v,i.weekdays=function(e,t,a){return fa(e,t,a,"weekdays")},i.parseZone=function(){return St.apply(null,arguments).parseZone()},i.localeData=_t,i.isDuration=Ct,i.monthsShort=function(e,t){return ha(e,t,"monthsShort")},i.weekdaysMin=function(e,t,a){return fa(e,t,a,"weekdaysMin")},i.defineLocale=ct,i.updateLocale=function(e,t){if(null!=t){var a,n,i=rt;null!=(n=lt(e))&&(i=n._config),(a=new P(t=j(i,t))).parentLocale=ot[e],ot[e]=a,ut(e)}else null!=ot[e]&&(null!=ot[e].parentLocale?ot[e]=ot[e].parentLocale:null!=ot[e]&&delete ot[e]);return ot[e]},i.locales=function(){return x(ot)},i.weekdaysShort=function(e,t,a){return fa(e,t,a,"weekdaysShort")},i.normalizeUnits=C,i.relativeTimeRounding=function(e){return void 0===e?Ia:"function"==typeof e&&(Ia=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==za[e]&&(void 0===t?za[e]:(za[e]=t,"s"===e&&(za.ss=t-1),!0))},i.calendarFormat=function(e,t){var a=e.diff(t,"days",!0);return a<-6?"sameElse":a<-1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<7?"nextWeek":"sameElse"},i.prototype=ua,i.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:"YYYY-[W]WW",MONTH:"YYYY-MM"},i}()}).call(this,a(159)(e))},function(e,t,a){"use strict";function n(e){o("消息提示",e).modal("show")}function i(e,t){o("确认提示",e,[{name:"确认",click:function(){t.call(this)}}]).modal("show")}function r(e,t,a){o(e,t,[{name:"确认",click:function(){a.call(this)}}]).modal("show")}function o(e,t,a,n){const i="modal-dialog"+(n?" modal-lg":"");let r=$(''),o=$(`
`);r.append(o);let s=$(`




© 2015 - 2025 Weber Informatics LLC | Privacy Policy