r3ui-lib 1.2.32 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/login.es.js +1426 -1388
  3. package/dist/login.umd.js +5 -5
  4. package/dist/r3ui-lib.css +1 -1
  5. package/dist/r3ui-lib.es.js +3589 -3504
  6. package/dist/r3ui-lib.umd.js +28 -28
  7. package/dist/types/components/SsoLoginScreen.vue.d.ts.map +1 -1
  8. package/dist/types/components/notifications/Toast.vue.d.ts.map +1 -1
  9. package/dist/types/components/tables/Table.vue.d.ts.map +1 -1
  10. package/dist/types/composables/table/useRemoteTable.d.ts +6 -1
  11. package/dist/types/composables/table/useRemoteTable.d.ts.map +1 -1
  12. package/dist/types/main.d.ts +1 -1
  13. package/dist/types/main.d.ts.map +1 -1
  14. package/dist/types/utils/auth/exchangePasswordToken.d.ts.map +1 -1
  15. package/dist/types/utils/auth/handlePkceCallback.d.ts.map +1 -1
  16. package/dist/types/utils/auth/logout.d.ts +1 -1
  17. package/dist/types/utils/auth/logout.d.ts.map +1 -1
  18. package/dist/types/utils/auth/runLogoutHandler.d.ts.map +1 -1
  19. package/dist/types/utils/auth/signInWithSSO.d.ts +1 -0
  20. package/dist/types/utils/auth/signInWithSSO.d.ts.map +1 -1
  21. package/dist/types/utils/tableAjaxRequest.d.ts +1 -0
  22. package/dist/types/utils/tableAjaxRequest.d.ts.map +1 -1
  23. package/dist/types/utils/upstreamHttpStatus.d.ts +9 -0
  24. package/dist/types/utils/upstreamHttpStatus.d.ts.map +1 -0
  25. package/nuxt-errors/app/error.vue +85 -0
  26. package/nuxt-errors/composables/presentPageError.ts +21 -0
  27. package/nuxt-errors/error.vue +85 -0
  28. package/nuxt-errors/nuxt.config.ts +6 -0
  29. package/nuxt-errors/plugins/app-error-log.client.ts +21 -0
  30. package/nuxt-errors/utils/classifyTransport.ts +56 -0
  31. package/nuxt-errors/utils/cloneJson.ts +17 -0
  32. package/nuxt-errors/utils/extractHttpStatus.ts +51 -0
  33. package/nuxt-errors/utils/extractLaravel.ts +73 -0
  34. package/nuxt-errors/utils/extractRequestId.ts +53 -0
  35. package/nuxt-errors/utils/isHttpStatus.ts +3 -0
  36. package/nuxt-errors/utils/logAppError.ts +68 -0
  37. package/nuxt-errors/utils/normalizeAppError.ts +178 -0
  38. package/nuxt-errors/utils/presentAppError.ts +115 -0
  39. package/nuxt-errors/utils/publicHttpMessage.ts +23 -0
  40. package/nuxt-errors/utils/serializeCause.ts +25 -0
  41. package/nuxt-errors/utils/types.ts +55 -0
  42. package/package.json +4 -1
package/dist/login.umd.js CHANGED
@@ -1,10 +1,10 @@
1
- (function(N,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(N=typeof globalThis<"u"?globalThis:N||self,o(N.R3uiLibLogin={},N.Vue))})(this,(function(N,o){"use strict";const be=(e,t)=>{const r=e.__vccOpts||e;for(const[s,n]of t)r[s]=n;return r},Fr={class:"custom-dropdown"},Vr={style:{"border-bottom":"2px solid #000"}},Ur={class:"dropdown-list-wrapper"},Hr={key:0,class:"custom-dropdown-menu"},Gr=["disabled","onClick","onKeydown"],jr=be({__name:"DefaultDropDown",props:{links:{type:Array,required:!0},title:{type:String,default:"Actions"},type:{type:String,default:"actions",validator:function(e){return["actions","profile"].includes(e)}}},setup(e){const t=e,r=o.ref(!1),s=u=>{u&&(u.preventDefault(),u.stopPropagation()),r.value=!r.value},n=u=>{if(typeof u!="function"){s();return}u(),s()},a=u=>{u&&(u.preventDefault(),u.stopPropagation()),setTimeout(()=>{r.value=!1},100)},i=o.computed(()=>t.type==="profile");return(u,h)=>(o.openBlock(),o.createElementBlock("div",Fr,[i.value?(o.openBlock(),o.createElementBlock("a",{key:0,href:"#",class:"cursor-pointer nav-link dropdown-toggle d-flex align-items-center border rounded p-2",onClick:s,onBlur:a},[h[1]||(h[1]=o.createElementVNode("div",{class:"circl"},null,-1)),o.createTextVNode(" "+o.toDisplayString(e.title),1)],32)):(o.openBlock(),o.createElementBlock("a",{key:1,href:"#",class:"link-dark",type:"button",onClick:s,onBlur:a},[o.createElementVNode("span",Vr,o.toDisplayString(e.title),1),h[2]||(h[2]=o.createElementVNode("i",{class:"bi bi-chevron-up dropdown-edit",style:{"font-size":"12px","padding-inline-start":"5px"}},null,-1))],32)),o.createElementVNode("div",Ur,[r.value?(o.openBlock(),o.createElementBlock("ul",Hr,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.links,(m,O)=>(o.openBlock(),o.createElementBlock("li",{key:O},[m.hidden?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:0,type:"button",class:o.normalizeClass(["dropdown-item",{disabled:m?.disabled}]),disabled:!!m?.disabled,onMousedown:h[0]||(h[0]=o.withModifiers(()=>{},["prevent"])),onClick:x=>n(m?.action),onKeydown:[o.withKeys(o.withModifiers(x=>n(m?.action),["prevent"]),["enter"]),o.withKeys(o.withModifiers(x=>n(m?.action),["prevent"]),["space"])]},o.toDisplayString(m?.title),43,Gr))]))),128))])):o.createCommentVNode("",!0)])]))}},[["__scopeId","data-v-93106856"]]),zr="data:image/svg+xml,%3csvg%20width='222'%20height='72'%20viewBox='0%200%20222%2072'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='222'%20height='72'%20fill='url(%23pattern0)'/%3e%3cdefs%3e%3cpattern%20id='pattern0'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_3427_23538'%20transform='matrix(0.00490002%200%200%200.0151084%200%20-0.00125339)'/%3e%3c/pattern%3e%3cimage%20id='image0_3427_23538'%20width='205'%20height='59'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM0AAAA7CAYAAADYdw5tAAAQ9UlEQVR4nO1dzW7bSLb+DinJns69uOzF4Cod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RwXC/mT0GaEdA0rcr1/W850nzPzfxGRF3YHbdsGgNETlnPSfKLISTM7lsNFo5Ikk+KmSZt55LjAyJ/uPAPknmkWEVmTSnnCyiIAMMdL7nN8GshJczJILCUaQVXXWN1SKMcng5w0M0DKx6Pqg2bSwjf5bBq1bH7mkqIc54OcNLNjlOyziOh5eG80x3EsmeCMlbBPuyQhx8VBLjnPCCk57yBeNqMWlY4hF6ZN/SSCHBcDmg1qckwDz/P6V69ePQTwN+WjpCJRr1QqPfA87+D0rctxGshJcwL48ccfX129evUDgCUAiymnuqVS6V7+FOZPG7l7doIYVQfgYx1cX75cIcRm/kjA+cC/AdgTzC0pucD7AAAAAElFTkSuQmCC'/%3e%3c/defs%3e%3c/svg%3e",Br=["src","alt"],Qe=be(o.defineComponent({__name:"Logo",props:{src:{default:zr},alt:{default:"Logo"},width:{default:154},height:{default:50},className:{default:"logo"},style:{default:()=>({})},brandText:{default:void 0},textSize:{default:12},textColor:{default:"#000"},textWeight:{default:"normal"},showText:{type:Boolean,default:!0}},setup(e){const t=e,r=o.computed(()=>t.src?.startsWith("~/")?t.src.replace("~/","/"):t.src),s=o.computed(()=>{const u="r3ui-logo";return t.className?`${u} ${t.className}`:u}),n=o.computed(()=>({width:typeof t.width=="number"?`${t.width}px`:t.width,height:typeof t.height=="number"?`${t.height}px`:t.height,...t.style})),a=o.computed(()=>"r3ui-logo-container"),i=o.computed(()=>({fontSize:typeof t.textSize=="number"?`${t.textSize}px`:t.textSize,color:t.textColor,fontWeight:t.textWeight}));return(u,h)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["r3ui-logo-container",a.value])},[o.createElementVNode("img",{src:r.value,alt:u.alt,class:o.normalizeClass(s.value),style:o.normalizeStyle(n.value)},null,14,Br),u.brandText&&u.brandText.trim()&&u.showText?(o.openBlock(),o.createElementBlock("span",{key:0,class:"r3ui-logo-text",style:o.normalizeStyle(i.value)},o.toDisplayString(u.brandText),5)):o.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-57bc5457"]]),Zr={class:"navbar navbar-expand-md navbar-light bg-white border-bottom hide-to-print r3ui-header"},qr={class:"row align-items-center"},Qr={class:"col-auto pe-0"},Jr={class:"col-auto ps-0 text-wrap mx-3 r3ui-header-label"},Kr={class:"row"},$r={class:"col-auto d-flex align-items-center"},Xr={key:1,class:"text-muted"},es={class:"col-auto"},Wt=be(o.defineComponent({__name:"Header",props:{isAuthenticated:{type:Boolean,default:!1},user:{type:Object,default:null},brandText:{type:String,required:!0},loginText:{type:String,default:"Authorization"},rawDropdownLinks:{type:Array,default:()=>[]}},emits:["navigate","logout"],setup(e,{emit:t}){const r=e,s=t,n=o.computed(()=>r.rawDropdownLinks.map(a=>a.name==="logout"?{...a,action:()=>s("logout")}:a.name.includes("http")?{...a,action:()=>s("navigate",a.name,{external:!0})}:{...a,action:()=>s("navigate",`/${a.name}`)}));return(a,i)=>(o.openBlock(),o.createElementBlock("div",Zr,[o.createElementVNode("div",{class:o.normalizeClass([r.isAuthenticated?"container-fluid":"container"])},[o.createElementVNode("a",{href:"/",onClick:i[0]||(i[0]=o.withModifiers(()=>s("navigate","/"),["prevent"])),class:"text-decoration-none r3ui-header-link"},[o.createElementVNode("div",qr,[o.createElementVNode("div",Qr,[o.renderSlot(a.$slots,"logo",{},()=>[o.createVNode(Qe,{class:"r3ui-header-logo",brandText:r.brandText},null,8,["brandText"])],!0)]),o.createElementVNode("div",Jr,o.toDisplayString(r.brandText),1)])]),o.createElementVNode("div",Kr,[o.createElementVNode("div",$r,[r.isAuthenticated?(o.openBlock(),o.createBlock(jr,{key:0,type:"profile",title:r.user?.name||"",links:n.value},null,8,["title","links"])):o.createCommentVNode("",!0),r.isAuthenticated?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Xr,o.toDisplayString(r.loginText),1))]),o.createElementVNode("div",es,[o.renderSlot(a.$slots,"language-selector",{},void 0,!0)])])],2)]))}}),[["__scopeId","data-v-a63a7e7f"]]);//! moment.js
1
+ (function(N,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(N=typeof globalThis<"u"?globalThis:N||self,o(N.R3uiLibLogin={},N.Vue))})(this,(function(N,o){"use strict";const be=(e,t)=>{const r=e.__vccOpts||e;for(const[s,n]of t)r[s]=n;return r},Gr={class:"custom-dropdown"},jr={style:{"border-bottom":"2px solid #000"}},zr={class:"dropdown-list-wrapper"},Br={key:0,class:"custom-dropdown-menu"},Zr=["disabled","onClick","onKeydown"],qr=be({__name:"DefaultDropDown",props:{links:{type:Array,required:!0},title:{type:String,default:"Actions"},type:{type:String,default:"actions",validator:function(e){return["actions","profile"].includes(e)}}},setup(e){const t=e,r=o.ref(!1),s=u=>{u&&(u.preventDefault(),u.stopPropagation()),r.value=!r.value},n=u=>{if(typeof u!="function"){s();return}u(),s()},a=u=>{u&&(u.preventDefault(),u.stopPropagation()),setTimeout(()=>{r.value=!1},100)},i=o.computed(()=>t.type==="profile");return(u,c)=>(o.openBlock(),o.createElementBlock("div",Gr,[i.value?(o.openBlock(),o.createElementBlock("a",{key:0,href:"#",class:"cursor-pointer nav-link dropdown-toggle d-flex align-items-center border rounded p-2",onClick:s,onBlur:a},[c[1]||(c[1]=o.createElementVNode("div",{class:"circl"},null,-1)),o.createTextVNode(" "+o.toDisplayString(e.title),1)],32)):(o.openBlock(),o.createElementBlock("a",{key:1,href:"#",class:"link-dark",type:"button",onClick:s,onBlur:a},[o.createElementVNode("span",jr,o.toDisplayString(e.title),1),c[2]||(c[2]=o.createElementVNode("i",{class:"bi bi-chevron-up dropdown-edit",style:{"font-size":"12px","padding-inline-start":"5px"}},null,-1))],32)),o.createElementVNode("div",zr,[r.value?(o.openBlock(),o.createElementBlock("ul",Br,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.links,(m,Y)=>(o.openBlock(),o.createElementBlock("li",{key:Y},[m.hidden?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:0,type:"button",class:o.normalizeClass(["dropdown-item",{disabled:m?.disabled}]),disabled:!!m?.disabled,onMousedown:c[0]||(c[0]=o.withModifiers(()=>{},["prevent"])),onClick:x=>n(m?.action),onKeydown:[o.withKeys(o.withModifiers(x=>n(m?.action),["prevent"]),["enter"]),o.withKeys(o.withModifiers(x=>n(m?.action),["prevent"]),["space"])]},o.toDisplayString(m?.title),43,Zr))]))),128))])):o.createCommentVNode("",!0)])]))}},[["__scopeId","data-v-93106856"]]),Qr="data:image/svg+xml,%3csvg%20width='222'%20height='72'%20viewBox='0%200%20222%2072'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='222'%20height='72'%20fill='url(%23pattern0)'/%3e%3cdefs%3e%3cpattern%20id='pattern0'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_3427_23538'%20transform='matrix(0.00490002%200%200%200.0151084%200%20-0.00125339)'/%3e%3c/pattern%3e%3cimage%20id='image0_3427_23538'%20width='205'%20height='59'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM0AAAA7CAYAAADYdw5tAAAQ9UlEQVR4nO1dzW7bSLb+DinJns69uOzF4CodIKMM0EkHdxFl0YAjqhFmN7s4TxD5CaJ+AstPEPsJojxBO08QGonkAFlYvRh42hlMGDQa7eAuWsHt221bYp1ZsKSQxSJFWf6Lmh+ghSiqeETVV3XOd04VCTk+KTiOYw0Gg3VmZsMwnr58+dI9b5v+aKDzNiDH8VCr1VaJqMXMHhG1Op3O0/O26Y+CnDSfMGq1WoOIHgOwmNkTQtx79eqVd952zTty0nzicBynMhgMngOoyEPrxWJxzXXd/nnaNc/ISTMHkMT5DkAVAJjZA/Cg2+32ztey+YRx3gbkmB2u63rFYvEegB4AEFGFiHbq9XrrnE2bS+QzzRxBzjg7AKzQ4fVOp/Ptedk0j8hJM2f45ptvloUQ34WPMfNmqVRayeOck0Huns0ZXrx4sQ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Jr=["src","alt"],Je=be(o.defineComponent({__name:"Logo",props:{src:{default:Qr},alt:{default:"Logo"},width:{default:154},height:{default:50},className:{default:"logo"},style:{default:()=>({})},brandText:{default:void 0},textSize:{default:12},textColor:{default:"#000"},textWeight:{default:"normal"},showText:{type:Boolean,default:!0}},setup(e){const t=e,r=o.computed(()=>t.src?.startsWith("~/")?t.src.replace("~/","/"):t.src),s=o.computed(()=>{const u="r3ui-logo";return t.className?`${u} ${t.className}`:u}),n=o.computed(()=>({width:typeof t.width=="number"?`${t.width}px`:t.width,height:typeof t.height=="number"?`${t.height}px`:t.height,...t.style})),a=o.computed(()=>"r3ui-logo-container"),i=o.computed(()=>({fontSize:typeof t.textSize=="number"?`${t.textSize}px`:t.textSize,color:t.textColor,fontWeight:t.textWeight}));return(u,c)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["r3ui-logo-container",a.value])},[o.createElementVNode("img",{src:r.value,alt:u.alt,class:o.normalizeClass(s.value),style:o.normalizeStyle(n.value)},null,14,Jr),u.brandText&&u.brandText.trim()&&u.showText?(o.openBlock(),o.createElementBlock("span",{key:0,class:"r3ui-logo-text",style:o.normalizeStyle(i.value)},o.toDisplayString(u.brandText),5)):o.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-57bc5457"]]),Kr={class:"navbar navbar-expand-md navbar-light bg-white border-bottom hide-to-print r3ui-header"},$r={class:"row align-items-center"},Xr={class:"col-auto pe-0"},es={class:"col-auto ps-0 text-wrap mx-3 r3ui-header-label"},ts={class:"row"},rs={class:"col-auto d-flex align-items-center"},ss={key:1,class:"text-muted"},ns={class:"col-auto"},At=be(o.defineComponent({__name:"Header",props:{isAuthenticated:{type:Boolean,default:!1},user:{type:Object,default:null},brandText:{type:String,required:!0},loginText:{type:String,default:"Authorization"},rawDropdownLinks:{type:Array,default:()=>[]}},emits:["navigate","logout"],setup(e,{emit:t}){const r=e,s=t,n=o.computed(()=>r.rawDropdownLinks.map(a=>a.name==="logout"?{...a,action:()=>s("logout")}:a.name.includes("http")?{...a,action:()=>s("navigate",a.name,{external:!0})}:{...a,action:()=>s("navigate",`/${a.name}`)}));return(a,i)=>(o.openBlock(),o.createElementBlock("div",Kr,[o.createElementVNode("div",{class:o.normalizeClass([r.isAuthenticated?"container-fluid":"container"])},[o.createElementVNode("a",{href:"/",onClick:i[0]||(i[0]=o.withModifiers(()=>s("navigate","/"),["prevent"])),class:"text-decoration-none r3ui-header-link"},[o.createElementVNode("div",$r,[o.createElementVNode("div",Xr,[o.renderSlot(a.$slots,"logo",{},()=>[o.createVNode(Je,{class:"r3ui-header-logo",brandText:r.brandText},null,8,["brandText"])],!0)]),o.createElementVNode("div",es,o.toDisplayString(r.brandText),1)])]),o.createElementVNode("div",ts,[o.createElementVNode("div",rs,[r.isAuthenticated?(o.openBlock(),o.createBlock(qr,{key:0,type:"profile",title:r.user?.name||"",links:n.value},null,8,["title","links"])):o.createCommentVNode("",!0),r.isAuthenticated?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",ss,o.toDisplayString(r.loginText),1))]),o.createElementVNode("div",ns,[o.renderSlot(a.$slots,"language-selector",{},void 0,!0)])])],2)]))}}),[["__scopeId","data-v-a63a7e7f"]]);//! moment.js
2
2
  //! version : 2.30.1
3
3
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
4
4
  //! license : MIT
5
5
  //! momentjs.com
6
- var At;function d(){return At.apply(null,arguments)}function ts(e){At=e}function E(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function re(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function w(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Je(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(w(e,t))return!1;return!0}function v(e){return e===void 0}function j(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function ye(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Et(e,t){var r=[],s,n=e.length;for(s=0;s<n;++s)r.push(t(e[s],s));return r}function X(e,t){for(var r in t)w(t,r)&&(e[r]=t[r]);return w(t,"toString")&&(e.toString=t.toString),w(t,"valueOf")&&(e.valueOf=t.valueOf),e}function V(e,t,r,s){return lr(e,t,r,s,!0).utc()}function rs(){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 y(e){return e._pf==null&&(e._pf=rs()),e._pf}var Ke;Array.prototype.some?Ke=Array.prototype.some:Ke=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 $e(e){var t=null,r=!1,s=e._d&&!isNaN(e._d.getTime());if(s&&(t=y(e),r=Ke.call(t.parsedDateParts,function(n){return n!=null}),s=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),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 Te(e){var t=V(NaN);return e!=null?X(y(t),e):y(t).userInvalidated=!0,t}var Rt=d.momentProperties=[],Xe=!1;function et(e,t){var r,s,n,a=Rt.length;if(v(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),v(t._i)||(e._i=t._i),v(t._f)||(e._f=t._f),v(t._l)||(e._l=t._l),v(t._strict)||(e._strict=t._strict),v(t._tzm)||(e._tzm=t._tzm),v(t._isUTC)||(e._isUTC=t._isUTC),v(t._offset)||(e._offset=t._offset),v(t._pf)||(e._pf=y(t)),v(t._locale)||(e._locale=t._locale),a>0)for(r=0;r<a;r++)s=Rt[r],n=t[s],v(n)||(e[s]=n);return e}function _e(e){et(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Xe===!1&&(Xe=!0,d.updateOffset(this),Xe=!1)}function R(e){return e instanceof _e||e!=null&&e._isAMomentObject!=null}function Lt(e){d.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function P(e,t){var r=!0;return X(function(){if(d.deprecationHandler!=null&&d.deprecationHandler(null,e),r){var s=[],n,a,i,u=arguments.length;for(a=0;a<u;a++){if(n="",typeof arguments[a]=="object"){n+=`
7
- [`+a+"] ";for(i in arguments[0])w(arguments[0],i)&&(n+=i+": "+arguments[0][i]+", ");n=n.slice(0,-2)}else n=arguments[a];s.push(n)}Lt(e+`
6
+ var Lt;function d(){return Lt.apply(null,arguments)}function as(e){Lt=e}function R(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function re(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function w(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ke(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(w(e,t))return!1;return!0}function v(e){return e===void 0}function j(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function ye(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function It(e,t){var r=[],s,n=e.length;for(s=0;s<n;++s)r.push(t(e[s],s));return r}function X(e,t){for(var r in t)w(t,r)&&(e[r]=t[r]);return w(t,"toString")&&(e.toString=t.toString),w(t,"valueOf")&&(e.valueOf=t.valueOf),e}function V(e,t,r,s){return cr(e,t,r,s,!0).utc()}function is(){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 y(e){return e._pf==null&&(e._pf=is()),e._pf}var $e;Array.prototype.some?$e=Array.prototype.some:$e=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 Xe(e){var t=null,r=!1,s=e._d&&!isNaN(e._d.getTime());if(s&&(t=y(e),r=$e.call(t.parsedDateParts,function(n){return n!=null}),s=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),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 Te(e){var t=V(NaN);return e!=null?X(y(t),e):y(t).userInvalidated=!0,t}var Ft=d.momentProperties=[],et=!1;function tt(e,t){var r,s,n,a=Ft.length;if(v(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),v(t._i)||(e._i=t._i),v(t._f)||(e._f=t._f),v(t._l)||(e._l=t._l),v(t._strict)||(e._strict=t._strict),v(t._tzm)||(e._tzm=t._tzm),v(t._isUTC)||(e._isUTC=t._isUTC),v(t._offset)||(e._offset=t._offset),v(t._pf)||(e._pf=y(t)),v(t._locale)||(e._locale=t._locale),a>0)for(r=0;r<a;r++)s=Ft[r],n=t[s],v(n)||(e[s]=n);return e}function _e(e){tt(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),et===!1&&(et=!0,d.updateOffset(this),et=!1)}function A(e){return e instanceof _e||e!=null&&e._isAMomentObject!=null}function Vt(e){d.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function C(e,t){var r=!0;return X(function(){if(d.deprecationHandler!=null&&d.deprecationHandler(null,e),r){var s=[],n,a,i,u=arguments.length;for(a=0;a<u;a++){if(n="",typeof arguments[a]=="object"){n+=`
7
+ [`+a+"] ";for(i in arguments[0])w(arguments[0],i)&&(n+=i+": "+arguments[0][i]+", ");n=n.slice(0,-2)}else n=arguments[a];s.push(n)}Vt(e+`
8
8
  Arguments: `+Array.prototype.slice.call(s).join("")+`
9
- `+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var It={};function Ft(e,t){d.deprecationHandler!=null&&d.deprecationHandler(e,t),It[e]||(Lt(t),It[e]=!0)}d.suppressDeprecationWarnings=!1,d.deprecationHandler=null;function U(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function ss(e){var t,r;for(r in e)w(e,r)&&(t=e[r],U(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 tt(e,t){var r=X({},e),s;for(s in t)w(t,s)&&(re(e[s])&&re(t[s])?(r[s]={},X(r[s],e[s]),X(r[s],t[s])):t[s]!=null?r[s]=t[s]:delete r[s]);for(s in e)w(e,s)&&!w(t,s)&&re(e[s])&&(r[s]=X({},r[s]));return r}function rt(e){e!=null&&this.set(e)}var st;Object.keys?st=Object.keys:st=function(e){var t,r=[];for(t in e)w(e,t)&&r.push(t);return r};var ns={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function as(e,t,r){var s=this._calendar[e]||this._calendar.sameElse;return U(s)?s.call(t,r):s}function H(e,t,r){var s=""+Math.abs(e),n=t-s.length,a=e>=0;return(a?r?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+s}var nt=/(\[[^\[]*\])|(\\)?([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,xe=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,at={},ie={};function f(e,t,r,s){var n=s;typeof s=="string"&&(n=function(){return this[s]()}),e&&(ie[e]=n),t&&(ie[t[0]]=function(){return H(n.apply(this,arguments),t[1],t[2])}),r&&(ie[r]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function is(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function os(e){var t=e.match(nt),r,s;for(r=0,s=t.length;r<s;r++)ie[t[r]]?t[r]=ie[t[r]]:t[r]=is(t[r]);return function(n){var a="",i;for(i=0;i<s;i++)a+=U(t[i])?t[i].call(n,e):t[i];return a}}function ve(e,t){return e.isValid()?(t=Vt(t,e.localeData()),at[t]=at[t]||os(t),at[t](e)):e.localeData().invalidDate()}function Vt(e,t){var r=5;function s(n){return t.longDateFormat(n)||n}for(xe.lastIndex=0;r>=0&&xe.test(e);)e=e.replace(xe,s),xe.lastIndex=0,r-=1;return e}var ls={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 us(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(nt).map(function(s){return s==="MMMM"||s==="MM"||s==="DD"||s==="dddd"?s.slice(1):s}).join(""),this._longDateFormat[e])}var ds="Invalid date";function cs(){return this._invalidDate}var hs="%d",fs=/\d{1,2}/;function ms(e){return this._ordinal.replace("%d",e)}var ys={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 _s(e,t,r,s){var n=this._relativeTime[r];return U(n)?n(e,t,r,s):n.replace(/%d/i,e)}function gs(e,t){var r=this._relativeTime[e>0?"future":"past"];return U(r)?r(t):r.replace(/%s/i,t)}var Ut={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function W(e){return typeof e=="string"?Ut[e]||Ut[e.toLowerCase()]:void 0}function it(e){var t={},r,s;for(s in e)w(e,s)&&(r=W(s),r&&(t[r]=e[s]));return t}var ws={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ps(e){var t=[],r;for(r in e)w(e,r)&&t.push({unit:r,priority:ws[r]});return t.sort(function(s,n){return s.priority-n.priority}),t}var Ht=/\d/,C=/\d\d/,Gt=/\d{3}/,ot=/\d{4}/,Ne=/[+-]?\d{6}/,S=/\d\d?/,jt=/\d\d\d\d?/,zt=/\d\d\d\d\d\d?/,Ce=/\d{1,3}/,lt=/\d{1,4}/,Pe=/[+-]?\d{1,6}/,oe=/\d+/,We=/[+-]?\d+/,ks=/Z|[+-]\d\d:?\d\d/gi,Ae=/Z|[+-]\d\d(?::?\d\d)?/gi,Ss=/[+-]?\d+(\.\d{1,3})?/,ge=/[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=/^[1-9]\d?/,ut=/^([1-9]\d|\d)/,Ee;Ee={};function c(e,t,r){Ee[e]=U(t)?t:function(s,n){return s&&r?r:t}}function Ms(e,t){return w(Ee,e)?Ee[e](t._strict,t._locale):new RegExp(Ds(e))}function Ds(e){return z(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,s,n,a){return r||s||n||a}))}function z(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function A(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function _(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=A(t)),r}var dt={};function k(e,t){var r,s=t,n;for(typeof e=="string"&&(e=[e]),j(t)&&(s=function(a,i){i[t]=_(a)}),n=e.length,r=0;r<n;r++)dt[e[r]]=s}function we(e,t){k(e,function(r,s,n,a){n._w=n._w||{},t(r,n._w,n,a)})}function Ys(e,t,r){t!=null&&w(dt,e)&&dt[e](t,r._a,r,e)}function Re(e){return e%4===0&&e%100!==0||e%400===0}var T=0,B=1,G=2,b=3,L=4,Z=5,se=6,Os=7,bs=8;f("Y",0,0,function(){var e=this.year();return e<=9999?H(e,4):"+"+e}),f(0,["YY",2],0,function(){return this.year()%100}),f(0,["YYYY",4],0,"year"),f(0,["YYYYY",5],0,"year"),f(0,["YYYYYY",6,!0],0,"year"),c("Y",We),c("YY",S,C),c("YYYY",lt,ot),c("YYYYY",Pe,Ne),c("YYYYYY",Pe,Ne),k(["YYYYY","YYYYYY"],T),k("YYYY",function(e,t){t[T]=e.length===2?d.parseTwoDigitYear(e):_(e)}),k("YY",function(e,t){t[T]=d.parseTwoDigitYear(e)}),k("Y",function(e,t){t[T]=parseInt(e,10)});function pe(e){return Re(e)?366:365}d.parseTwoDigitYear=function(e){return _(e)+(_(e)>68?1900:2e3)};var Bt=ue("FullYear",!0);function Ts(){return Re(this.year())}function ue(e,t){return function(r){return r!=null?(Zt(this,e,r),d.updateOffset(this,t),this):ke(this,e)}}function ke(e,t){if(!e.isValid())return NaN;var r=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return s?r.getUTCSeconds():r.getSeconds();case"Minutes":return s?r.getUTCMinutes():r.getMinutes();case"Hours":return s?r.getUTCHours():r.getHours();case"Date":return s?r.getUTCDate():r.getDate();case"Day":return s?r.getUTCDay():r.getDay();case"Month":return s?r.getUTCMonth():r.getMonth();case"FullYear":return s?r.getUTCFullYear():r.getFullYear();default:return NaN}}function Zt(e,t,r){var s,n,a,i,u;if(!(!e.isValid()||isNaN(r))){switch(s=e._d,n=e._isUTC,t){case"Milliseconds":return void(n?s.setUTCMilliseconds(r):s.setMilliseconds(r));case"Seconds":return void(n?s.setUTCSeconds(r):s.setSeconds(r));case"Minutes":return void(n?s.setUTCMinutes(r):s.setMinutes(r));case"Hours":return void(n?s.setUTCHours(r):s.setHours(r));case"Date":return void(n?s.setUTCDate(r):s.setDate(r));case"FullYear":break;default:return}a=r,i=e.month(),u=e.date(),u=u===29&&i===1&&!Re(a)?28:u,n?s.setUTCFullYear(a,i,u):s.setFullYear(a,i,u)}}function xs(e){return e=W(e),U(this[e])?this[e]():this}function vs(e,t){if(typeof e=="object"){e=it(e);var r=ps(e),s,n=r.length;for(s=0;s<n;s++)this[r[s].unit](e[r[s].unit])}else if(e=W(e),U(this[e]))return this[e](t);return this}function Ns(e,t){return(e%t+t)%t}var Y;Array.prototype.indexOf?Y=Array.prototype.indexOf:Y=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function ct(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=Ns(t,12);return e+=(t-r)/12,r===1?Re(e)?29:28:31-r%7%2}f("M",["MM",2],"Mo",function(){return this.month()+1}),f("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),f("MMMM",0,0,function(e){return this.localeData().months(this,e)}),c("M",S,le),c("MM",S,C),c("MMM",function(e,t){return t.monthsShortRegex(e)}),c("MMMM",function(e,t){return t.monthsRegex(e)}),k(["M","MM"],function(e,t){t[B]=_(e)-1}),k(["MMM","MMMM"],function(e,t,r,s){var n=r._locale.monthsParse(e,s,r._strict);n!=null?t[B]=n:y(r).invalidMonth=e});var Cs="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),qt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Qt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ps=ge,Ws=ge;function As(e,t){return e?E(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Qt).test(t)?"format":"standalone"][e.month()]:E(this._months)?this._months:this._months.standalone}function Es(e,t){return e?E(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Qt.test(t)?"format":"standalone"][e.month()]:E(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Rs(e,t,r){var s,n,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)a=V([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(a,"").toLocaleLowerCase();return r?t==="MMM"?(n=Y.call(this._shortMonthsParse,i),n!==-1?n:null):(n=Y.call(this._longMonthsParse,i),n!==-1?n:null):t==="MMM"?(n=Y.call(this._shortMonthsParse,i),n!==-1?n:(n=Y.call(this._longMonthsParse,i),n!==-1?n:null)):(n=Y.call(this._longMonthsParse,i),n!==-1?n:(n=Y.call(this._shortMonthsParse,i),n!==-1?n:null))}function Ls(e,t,r){var s,n,a;if(this._monthsParseExact)return Rs.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(n=V([2e3,s]),r&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),!r&&!this._monthsParse[s]&&(a="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[s]=new RegExp(a.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 Jt(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=_(t);else if(t=e.localeData().monthsParse(t),!j(t))return e}var r=t,s=e.date();return s=s<29?s:Math.min(s,ct(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,s):e._d.setMonth(r,s),e}function Kt(e){return e!=null?(Jt(this,e),d.updateOffset(this,!0),this):ke(this,"Month")}function Is(){return ct(this.year(),this.month())}function Fs(e){return this._monthsParseExact?(w(this,"_monthsRegex")||$t.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(w(this,"_monthsShortRegex")||(this._monthsShortRegex=Ps),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Vs(e){return this._monthsParseExact?(w(this,"_monthsRegex")||$t.call(this),e?this._monthsStrictRegex:this._monthsRegex):(w(this,"_monthsRegex")||(this._monthsRegex=Ws),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function $t(){function e(h,m){return m.length-h.length}var t=[],r=[],s=[],n,a,i,u;for(n=0;n<12;n++)a=V([2e3,n]),i=z(this.monthsShort(a,"")),u=z(this.months(a,"")),t.push(i),r.push(u),s.push(u),s.push(i);t.sort(e),r.sort(e),s.sort(e),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")}function Us(e,t,r,s,n,a,i){var u;return e<100&&e>=0?(u=new Date(e+400,t,r,s,n,a,i),isFinite(u.getFullYear())&&u.setFullYear(e)):u=new Date(e,t,r,s,n,a,i),u}function Se(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 Le(e,t,r){var s=7+t-r,n=(7+Se(e,0,s).getUTCDay()-t)%7;return-n+s-1}function Xt(e,t,r,s,n){var a=(7+r-s)%7,i=Le(e,s,n),u=1+7*(t-1)+a+i,h,m;return u<=0?(h=e-1,m=pe(h)+u):u>pe(e)?(h=e+1,m=u-pe(e)):(h=e,m=u),{year:h,dayOfYear:m}}function Me(e,t,r){var s=Le(e.year(),t,r),n=Math.floor((e.dayOfYear()-s-1)/7)+1,a,i;return n<1?(i=e.year()-1,a=n+q(i,t,r)):n>q(e.year(),t,r)?(a=n-q(e.year(),t,r),i=e.year()+1):(i=e.year(),a=n),{week:a,year:i}}function q(e,t,r){var s=Le(e,t,r),n=Le(e+1,t,r);return(pe(e)-s+n)/7}f("w",["ww",2],"wo","week"),f("W",["WW",2],"Wo","isoWeek"),c("w",S,le),c("ww",S,C),c("W",S,le),c("WW",S,C),we(["w","ww","W","WW"],function(e,t,r,s){t[s.substr(0,1)]=_(e)});function Hs(e){return Me(e,this._week.dow,this._week.doy).week}var Gs={dow:0,doy:6};function js(){return this._week.dow}function zs(){return this._week.doy}function Bs(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Zs(e){var t=Me(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}f("d",0,"do","day"),f("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),f("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),f("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),f("e",0,0,"weekday"),f("E",0,0,"isoWeekday"),c("d",S),c("e",S),c("E",S),c("dd",function(e,t){return t.weekdaysMinRegex(e)}),c("ddd",function(e,t){return t.weekdaysShortRegex(e)}),c("dddd",function(e,t){return t.weekdaysRegex(e)}),we(["dd","ddd","dddd"],function(e,t,r,s){var n=r._locale.weekdaysParse(e,s,r._strict);n!=null?t.d=n:y(r).invalidWeekday=e}),we(["d","e","E"],function(e,t,r,s){t[s]=_(e)});function qs(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Qs(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ht(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Js="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),er="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ks="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$s=ge,Xs=ge,en=ge;function tn(e,t){var r=E(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?ht(r,this._week.dow):e?r[e.day()]:r}function rn(e){return e===!0?ht(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function sn(e){return e===!0?ht(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function nn(e,t,r){var s,n,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)a=V([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(a,"").toLocaleLowerCase();return r?t==="dddd"?(n=Y.call(this._weekdaysParse,i),n!==-1?n:null):t==="ddd"?(n=Y.call(this._shortWeekdaysParse,i),n!==-1?n:null):(n=Y.call(this._minWeekdaysParse,i),n!==-1?n:null):t==="dddd"?(n=Y.call(this._weekdaysParse,i),n!==-1||(n=Y.call(this._shortWeekdaysParse,i),n!==-1)?n:(n=Y.call(this._minWeekdaysParse,i),n!==-1?n:null)):t==="ddd"?(n=Y.call(this._shortWeekdaysParse,i),n!==-1||(n=Y.call(this._weekdaysParse,i),n!==-1)?n:(n=Y.call(this._minWeekdaysParse,i),n!==-1?n:null)):(n=Y.call(this._minWeekdaysParse,i),n!==-1||(n=Y.call(this._weekdaysParse,i),n!==-1)?n:(n=Y.call(this._shortWeekdaysParse,i),n!==-1?n:null))}function an(e,t,r){var s,n,a;if(this._weekdaysParseExact)return nn.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(n=V([2e3,1]).day(s),r&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(a="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[s]=new RegExp(a.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=ke(this,"Day");return e!=null?(e=qs(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 un(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Qs(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function dn(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||ft.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(w(this,"_weekdaysRegex")||(this._weekdaysRegex=$s),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function cn(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||ft.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(w(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Xs),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function hn(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||ft.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(w(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=en),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ft(){function e(O,x){return x.length-O.length}var t=[],r=[],s=[],n=[],a,i,u,h,m;for(a=0;a<7;a++)i=V([2e3,1]).day(a),u=z(this.weekdaysMin(i,"")),h=z(this.weekdaysShort(i,"")),m=z(this.weekdays(i,"")),t.push(u),r.push(h),s.push(m),n.push(u),n.push(h),n.push(m);t.sort(e),r.sort(e),s.sort(e),n.sort(e),this._weekdaysRegex=new RegExp("^("+n.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 mt(){return this.hours()%12||12}function fn(){return this.hours()||24}f("H",["HH",2],0,"hour"),f("h",["hh",2],0,mt),f("k",["kk",2],0,fn),f("hmm",0,0,function(){return""+mt.apply(this)+H(this.minutes(),2)}),f("hmmss",0,0,function(){return""+mt.apply(this)+H(this.minutes(),2)+H(this.seconds(),2)}),f("Hmm",0,0,function(){return""+this.hours()+H(this.minutes(),2)}),f("Hmmss",0,0,function(){return""+this.hours()+H(this.minutes(),2)+H(this.seconds(),2)});function tr(e,t){f(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}tr("a",!0),tr("A",!1);function rr(e,t){return t._meridiemParse}c("a",rr),c("A",rr),c("H",S,ut),c("h",S,le),c("k",S,le),c("HH",S,C),c("hh",S,C),c("kk",S,C),c("hmm",jt),c("hmmss",zt),c("Hmm",jt),c("Hmmss",zt),k(["H","HH"],b),k(["k","kk"],function(e,t,r){var s=_(e);t[b]=s===24?0:s}),k(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),k(["h","hh"],function(e,t,r){t[b]=_(e),y(r).bigHour=!0}),k("hmm",function(e,t,r){var s=e.length-2;t[b]=_(e.substr(0,s)),t[L]=_(e.substr(s)),y(r).bigHour=!0}),k("hmmss",function(e,t,r){var s=e.length-4,n=e.length-2;t[b]=_(e.substr(0,s)),t[L]=_(e.substr(s,2)),t[Z]=_(e.substr(n)),y(r).bigHour=!0}),k("Hmm",function(e,t,r){var s=e.length-2;t[b]=_(e.substr(0,s)),t[L]=_(e.substr(s))}),k("Hmmss",function(e,t,r){var s=e.length-4,n=e.length-2;t[b]=_(e.substr(0,s)),t[L]=_(e.substr(s,2)),t[Z]=_(e.substr(n))});function mn(e){return(e+"").toLowerCase().charAt(0)==="p"}var yn=/[ap]\.?m?\.?/i,_n=ue("Hours",!0);function gn(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var sr={calendar:ns,longDateFormat:ls,invalidDate:ds,ordinal:hs,dayOfMonthOrdinalParse:fs,relativeTime:ys,months:Cs,monthsShort:qt,week:Gs,weekdays:Js,weekdaysMin:Ks,weekdaysShort:er,meridiemParse:yn},D={},De={},Ye;function wn(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 nr(e){return e&&e.toLowerCase().replace("_","-")}function pn(e){for(var t=0,r,s,n,a;t<e.length;){for(a=nr(e[t]).split("-"),r=a.length,s=nr(e[t+1]),s=s?s.split("-"):null;r>0;){if(n=Ie(a.slice(0,r).join("-")),n)return n;if(s&&s.length>=r&&wn(a,s)>=r-1)break;r--}t++}return Ye}function kn(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Ie(e){var t=null,r;if(D[e]===void 0&&typeof module<"u"&&module&&module.exports&&kn(e))try{t=Ye._abbr,r=require,r("./locale/"+e),ee(t)}catch{D[e]=null}return D[e]}function ee(e,t){var r;return e&&(v(t)?r=Q(e):r=yt(e,t),r?Ye=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ye._abbr}function yt(e,t){if(t!==null){var r,s=sr;if(t.abbr=e,D[e]!=null)Ft("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=D[e]._config;else if(t.parentLocale!=null)if(D[t.parentLocale]!=null)s=D[t.parentLocale]._config;else if(r=Ie(t.parentLocale),r!=null)s=r._config;else return De[t.parentLocale]||(De[t.parentLocale]=[]),De[t.parentLocale].push({name:e,config:t}),null;return D[e]=new rt(tt(s,t)),De[e]&&De[e].forEach(function(n){yt(n.name,n.config)}),ee(e),D[e]}else return delete D[e],null}function Sn(e,t){if(t!=null){var r,s,n=sr;D[e]!=null&&D[e].parentLocale!=null?D[e].set(tt(D[e]._config,t)):(s=Ie(e),s!=null&&(n=s._config),t=tt(n,t),s==null&&(t.abbr=e),r=new rt(t),r.parentLocale=D[e],D[e]=r),ee(e)}else D[e]!=null&&(D[e].parentLocale!=null?(D[e]=D[e].parentLocale,e===ee()&&ee(e)):D[e]!=null&&delete D[e]);return D[e]}function Q(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ye;if(!E(e)){if(t=Ie(e),t)return t;e=[e]}return pn(e)}function Mn(){return st(D)}function _t(e){var t,r=e._a;return r&&y(e).overflow===-2&&(t=r[B]<0||r[B]>11?B:r[G]<1||r[G]>ct(r[T],r[B])?G:r[b]<0||r[b]>24||r[b]===24&&(r[L]!==0||r[Z]!==0||r[se]!==0)?b:r[L]<0||r[L]>59?L:r[Z]<0||r[Z]>59?Z:r[se]<0||r[se]>999?se:-1,y(e)._overflowDayOfYear&&(t<T||t>G)&&(t=G),y(e)._overflowWeeks&&t===-1&&(t=Os),y(e)._overflowWeekday&&t===-1&&(t=bs),y(e).overflow=t),e}var Dn=/^\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)?)?$/,Yn=/^\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)?)?$/,On=/Z|[+-]\d\d(?::?\d\d)?/,Fe=[["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]],gt=[["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/]],bn=/^\/?Date\((-?\d+)/i,Tn=/^(?:(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}))$/,xn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ar(e){var t,r,s=e._i,n=Dn.exec(s)||Yn.exec(s),a,i,u,h,m=Fe.length,O=gt.length;if(n){for(y(e).iso=!0,t=0,r=m;t<r;t++)if(Fe[t][1].exec(n[1])){i=Fe[t][0],a=Fe[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(n[3]){for(t=0,r=O;t<r;t++)if(gt[t][1].exec(n[3])){u=(n[2]||" ")+gt[t][0];break}if(u==null){e._isValid=!1;return}}if(!a&&u!=null){e._isValid=!1;return}if(n[4])if(On.exec(n[4]))h="Z";else{e._isValid=!1;return}e._f=i+(u||"")+(h||""),pt(e)}else e._isValid=!1}function vn(e,t,r,s,n,a){var i=[Nn(e),qt.indexOf(t),parseInt(r,10),parseInt(s,10),parseInt(n,10)];return a&&i.push(parseInt(a,10)),i}function Nn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Cn(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=er.indexOf(e),n=new Date(t[0],t[1],t[2]).getDay();if(s!==n)return y(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function Wn(e,t,r){if(e)return xn[e];if(t)return 0;var s=parseInt(r,10),n=s%100,a=(s-n)/100;return a*60+n}function ir(e){var t=Tn.exec(Cn(e._i)),r;if(t){if(r=vn(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=Se.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0}else e._isValid=!1}function An(e){var t=bn.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(ar(e),e._isValid===!1)delete e._isValid;else return;if(ir(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:d.createFromInputFallback(e)}d.createFromInputFallback=P("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 de(e,t,r){return e??t??r}function En(e){var t=new Date(d.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function wt(e){var t,r,s=[],n,a,i;if(!e._d){for(n=En(e),e._w&&e._a[G]==null&&e._a[B]==null&&Rn(e),e._dayOfYear!=null&&(i=de(e._a[T],n[T]),(e._dayOfYear>pe(i)||e._dayOfYear===0)&&(y(e)._overflowDayOfYear=!0),r=Se(i,0,e._dayOfYear),e._a[B]=r.getUTCMonth(),e._a[G]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=s[t]=n[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[L]===0&&e._a[Z]===0&&e._a[se]===0&&(e._nextDay=!0,e._a[b]=0),e._d=(e._useUTC?Se:Us).apply(null,s),a=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!==a&&(y(e).weekdayMismatch=!0)}}function Rn(e){var t,r,s,n,a,i,u,h,m;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,i=4,r=de(t.GG,e._a[T],Me(M(),1,4).year),s=de(t.W,1),n=de(t.E,1),(n<1||n>7)&&(h=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,m=Me(M(),a,i),r=de(t.gg,e._a[T],m.year),s=de(t.w,m.week),t.d!=null?(n=t.d,(n<0||n>6)&&(h=!0)):t.e!=null?(n=t.e+a,(t.e<0||t.e>6)&&(h=!0)):n=a),s<1||s>q(r,a,i)?y(e)._overflowWeeks=!0:h!=null?y(e)._overflowWeekday=!0:(u=Xt(r,s,n,a,i),e._a[T]=u.year,e._dayOfYear=u.dayOfYear)}d.ISO_8601=function(){},d.RFC_2822=function(){};function pt(e){if(e._f===d.ISO_8601){ar(e);return}if(e._f===d.RFC_2822){ir(e);return}e._a=[],y(e).empty=!0;var t=""+e._i,r,s,n,a,i,u=t.length,h=0,m,O;for(n=Vt(e._f,e._locale).match(nt)||[],O=n.length,r=0;r<O;r++)a=n[r],s=(t.match(Ms(a,e))||[])[0],s&&(i=t.substr(0,t.indexOf(s)),i.length>0&&y(e).unusedInput.push(i),t=t.slice(t.indexOf(s)+s.length),h+=s.length),ie[a]?(s?y(e).empty=!1:y(e).unusedTokens.push(a),Ys(a,s,e)):e._strict&&!s&&y(e).unusedTokens.push(a);y(e).charsLeftOver=u-h,t.length>0&&y(e).unusedInput.push(t),e._a[b]<=12&&y(e).bigHour===!0&&e._a[b]>0&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(e).meridiem=e._meridiem,e._a[b]=Ln(e._locale,e._a[b],e._meridiem),m=y(e).era,m!==null&&(e._a[T]=e._locale.erasConvertYear(m,e._a[T])),wt(e),_t(e)}function Ln(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 In(e){var t,r,s,n,a,i,u=!1,h=e._f.length;if(h===0){y(e).invalidFormat=!0,e._d=new Date(NaN);return}for(n=0;n<h;n++)a=0,i=!1,t=et({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[n],pt(t),$e(t)&&(i=!0),a+=y(t).charsLeftOver,a+=y(t).unusedTokens.length*10,y(t).score=a,u?a<s&&(s=a,r=t):(s==null||a<s||i)&&(s=a,r=t,i&&(u=!0));X(e,r||t)}function Fn(e){if(!e._d){var t=it(e._i),r=t.day===void 0?t.date:t.day;e._a=Et([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(s){return s&&parseInt(s,10)}),wt(e)}}function Vn(e){var t=new _e(_t(or(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function or(e){var t=e._i,r=e._f;return e._locale=e._locale||Q(e._l),t===null||r===void 0&&t===""?Te({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),R(t)?new _e(_t(t)):(ye(t)?e._d=t:E(r)?In(e):r?pt(e):Un(e),$e(e)||(e._d=null),e))}function Un(e){var t=e._i;v(t)?e._d=new Date(d.now()):ye(t)?e._d=new Date(t.valueOf()):typeof t=="string"?An(e):E(t)?(e._a=Et(t.slice(0),function(r){return parseInt(r,10)}),wt(e)):re(t)?Fn(e):j(t)?e._d=new Date(t):d.createFromInputFallback(e)}function lr(e,t,r,s,n){var a={};return(t===!0||t===!1)&&(s=t,t=void 0),(r===!0||r===!1)&&(s=r,r=void 0),(re(e)&&Je(e)||E(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=n,a._l=r,a._i=e,a._f=t,a._strict=s,Vn(a)}function M(e,t,r,s){return lr(e,t,r,s,!1)}var Hn=P("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=M.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Te()}),Gn=P("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=M.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Te()});function ur(e,t){var r,s;if(t.length===1&&E(t[0])&&(t=t[0]),!t.length)return M();for(r=t[0],s=1;s<t.length;++s)(!t[s].isValid()||t[s][e](r))&&(r=t[s]);return r}function jn(){var e=[].slice.call(arguments,0);return ur("isBefore",e)}function zn(){var e=[].slice.call(arguments,0);return ur("isAfter",e)}var Bn=function(){return Date.now?Date.now():+new Date},Oe=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Zn(e){var t,r=!1,s,n=Oe.length;for(t in e)if(w(e,t)&&!(Y.call(Oe,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(s=0;s<n;++s)if(e[Oe[s]]){if(r)return!1;parseFloat(e[Oe[s]])!==_(e[Oe[s]])&&(r=!0)}return!0}function qn(){return this._isValid}function Qn(){return I(NaN)}function Ve(e){var t=it(e),r=t.year||0,s=t.quarter||0,n=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,u=t.hour||0,h=t.minute||0,m=t.second||0,O=t.millisecond||0;this._isValid=Zn(t),this._milliseconds=+O+m*1e3+h*6e4+u*1e3*60*60,this._days=+i+a*7,this._months=+n+s*3+r*12,this._data={},this._locale=Q(),this._bubble()}function Ue(e){return e instanceof Ve}function kt(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Jn(e,t,r){var s=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),a=0,i;for(i=0;i<s;i++)_(e[i])!==_(t[i])&&a++;return a+n}function dr(e,t){f(e,0,0,function(){var r=this.utcOffset(),s="+";return r<0&&(r=-r,s="-"),s+H(~~(r/60),2)+t+H(~~r%60,2)})}dr("Z",":"),dr("ZZ",""),c("Z",Ae),c("ZZ",Ae),k(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=St(Ae,e)});var Kn=/([\+\-]|\d\d)/gi;function St(e,t){var r=(t||"").match(e),s,n,a;return r===null?null:(s=r[r.length-1]||[],n=(s+"").match(Kn)||["-",0,0],a=+(n[1]*60)+_(n[2]),a===0?0:n[0]==="+"?a:-a)}function Mt(e,t){var r,s;return t._isUTC?(r=t.clone(),s=(R(e)||ye(e)?e.valueOf():M(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+s),d.updateOffset(r,!1),r):M(e).local()}function Dt(e){return-Math.round(e._d.getTimezoneOffset())}d.updateOffset=function(){};function $n(e,t,r){var s=this._offset||0,n;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=St(Ae,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(n=Dt(this)),this._offset=e,this._isUTC=!0,n!=null&&this.add(n,"m"),s!==e&&(!t||this._changeInProgress?mr(this,I(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,d.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?s:Dt(this)}function Xn(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function ea(e){return this.utcOffset(0,e)}function ta(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Dt(this),"m")),this}function ra(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=St(ks,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function sa(e){return this.isValid()?(e=e?M(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function na(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function aa(){if(!v(this._isDSTShifted))return this._isDSTShifted;var e={},t;return et(e,this),e=or(e),e._a?(t=e._isUTC?V(e._a):M(e._a),this._isDSTShifted=this.isValid()&&Jn(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function ia(){return this.isValid()?!this._isUTC:!1}function oa(){return this.isValid()?this._isUTC:!1}function cr(){return this.isValid()?this._isUTC&&this._offset===0:!1}var la=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ua=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function I(e,t){var r=e,s=null,n,a,i;return Ue(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:j(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(s=la.exec(e))?(n=s[1]==="-"?-1:1,r={y:0,d:_(s[G])*n,h:_(s[b])*n,m:_(s[L])*n,s:_(s[Z])*n,ms:_(kt(s[se]*1e3))*n}):(s=ua.exec(e))?(n=s[1]==="-"?-1:1,r={y:ne(s[2],n),M:ne(s[3],n),w:ne(s[4],n),d:ne(s[5],n),h:ne(s[6],n),m:ne(s[7],n),s:ne(s[8],n)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(i=da(M(r.from),M(r.to)),r={},r.ms=i.milliseconds,r.M=i.months),a=new Ve(r),Ue(e)&&w(e,"_locale")&&(a._locale=e._locale),Ue(e)&&w(e,"_isValid")&&(a._isValid=e._isValid),a}I.fn=Ve.prototype,I.invalid=Qn;function ne(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function hr(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 da(e,t){var r;return e.isValid()&&t.isValid()?(t=Mt(t,e),e.isBefore(t)?r=hr(e,t):(r=hr(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function fr(e,t){return function(r,s){var n,a;return s!==null&&!isNaN(+s)&&(Ft(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."),a=r,r=s,s=a),n=I(r,s),mr(this,n,e),this}}function mr(e,t,r,s){var n=t._milliseconds,a=kt(t._days),i=kt(t._months);e.isValid()&&(s=s??!0,i&&Jt(e,ke(e,"Month")+i*r),a&&Zt(e,"Date",ke(e,"Date")+a*r),n&&e._d.setTime(e._d.valueOf()+n*r),s&&d.updateOffset(e,a||i))}var ca=fr(1,"add"),ha=fr(-1,"subtract");function yr(e){return typeof e=="string"||e instanceof String}function fa(e){return R(e)||ye(e)||yr(e)||j(e)||ya(e)||ma(e)||e===null||e===void 0}function ma(e){var t=re(e)&&!Je(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"],n,a,i=s.length;for(n=0;n<i;n+=1)a=s[n],r=r||w(e,a);return t&&r}function ya(e){var t=E(e),r=!1;return t&&(r=e.filter(function(s){return!j(s)&&yr(e)}).length===0),t&&r}function _a(e){var t=re(e)&&!Je(e),r=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n,a;for(n=0;n<s.length;n+=1)a=s[n],r=r||w(e,a);return t&&r}function ga(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 wa(e,t){arguments.length===1&&(arguments[0]?fa(arguments[0])?(e=arguments[0],t=void 0):_a(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||M(),s=Mt(r,this).startOf("day"),n=d.calendarFormat(this,s)||"sameElse",a=t&&(U(t[n])?t[n].call(this,r):t[n]);return this.format(a||this.localeData().calendar(n,this,M(r)))}function pa(){return new _e(this)}function ka(e,t){var r=R(e)?e:M(e);return this.isValid()&&r.isValid()?(t=W(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function Sa(e,t){var r=R(e)?e:M(e);return this.isValid()&&r.isValid()?(t=W(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function Ma(e,t,r,s){var n=R(e)?e:M(e),a=R(t)?t:M(t);return this.isValid()&&n.isValid()&&a.isValid()?(s=s||"()",(s[0]==="("?this.isAfter(n,r):!this.isBefore(n,r))&&(s[1]===")"?this.isBefore(a,r):!this.isAfter(a,r))):!1}function Da(e,t){var r=R(e)?e:M(e),s;return this.isValid()&&r.isValid()?(t=W(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 Ya(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Oa(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function ba(e,t,r){var s,n,a;if(!this.isValid())return NaN;if(s=Mt(e,this),!s.isValid())return NaN;switch(n=(s.utcOffset()-this.utcOffset())*6e4,t=W(t),t){case"year":a=He(this,s)/12;break;case"month":a=He(this,s);break;case"quarter":a=He(this,s)/3;break;case"second":a=(this-s)/1e3;break;case"minute":a=(this-s)/6e4;break;case"hour":a=(this-s)/36e5;break;case"day":a=(this-s-n)/864e5;break;case"week":a=(this-s-n)/6048e5;break;default:a=this-s}return r?a:A(a)}function He(e,t){if(e.date()<t.date())return-He(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),s=e.clone().add(r,"months"),n,a;return t-s<0?(n=e.clone().add(r-1,"months"),a=(t-s)/(s-n)):(n=e.clone().add(r+1,"months"),a=(t-s)/(n-s)),-(r+a)||0}d.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",d.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Ta(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function xa(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?ve(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):U(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ve(r,"Z")):ve(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function va(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,s,n,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(r+s+n+a)}function Na(e){e||(e=this.isUtc()?d.defaultFormatUtc:d.defaultFormat);var t=ve(this,e);return this.localeData().postformat(t)}function Ca(e,t){return this.isValid()&&(R(e)&&e.isValid()||M(e).isValid())?I({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Pa(e){return this.from(M(),e)}function Wa(e,t){return this.isValid()&&(R(e)&&e.isValid()||M(e).isValid())?I({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Aa(e){return this.to(M(),e)}function _r(e){var t;return e===void 0?this._locale._abbr:(t=Q(e),t!=null&&(this._locale=t),this)}var gr=P("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 wr(){return this._locale}var Ge=1e3,ce=60*Ge,je=60*ce,pr=(365*400+97)*24*je;function he(e,t){return(e%t+t)%t}function kr(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-pr:new Date(e,t,r).valueOf()}function Sr(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-pr:Date.UTC(e,t,r)}function Ea(e){var t,r;if(e=W(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Sr:kr,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-=he(t+(this._isUTC?0:this.utcOffset()*ce),je);break;case"minute":t=this._d.valueOf(),t-=he(t,ce);break;case"second":t=this._d.valueOf(),t-=he(t,Ge);break}return this._d.setTime(t),d.updateOffset(this,!0),this}function Ra(e){var t,r;if(e=W(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Sr:kr,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+=je-he(t+(this._isUTC?0:this.utcOffset()*ce),je)-1;break;case"minute":t=this._d.valueOf(),t+=ce-he(t,ce)-1;break;case"second":t=this._d.valueOf(),t+=Ge-he(t,Ge)-1;break}return this._d.setTime(t),d.updateOffset(this,!0),this}function La(){return this._d.valueOf()-(this._offset||0)*6e4}function Ia(){return Math.floor(this.valueOf()/1e3)}function Fa(){return new Date(this.valueOf())}function Va(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ua(){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 Ha(){return this.isValid()?this.toISOString():null}function Ga(){return $e(this)}function ja(){return X({},y(this))}function za(){return y(this).overflow}function Ba(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}f("N",0,0,"eraAbbr"),f("NN",0,0,"eraAbbr"),f("NNN",0,0,"eraAbbr"),f("NNNN",0,0,"eraName"),f("NNNNN",0,0,"eraNarrow"),f("y",["y",1],"yo","eraYear"),f("y",["yy",2],0,"eraYear"),f("y",["yyy",3],0,"eraYear"),f("y",["yyyy",4],0,"eraYear"),c("N",Yt),c("NN",Yt),c("NNN",Yt),c("NNNN",si),c("NNNNN",ni),k(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,s){var n=r._locale.erasParse(e,s,r._strict);n?y(r).era=n:y(r).invalidEra=e}),c("y",oe),c("yy",oe),c("yyy",oe),c("yyyy",oe),c("yo",ai),k(["y","yy","yyy","yyyy"],T),k(["yo"],function(e,t,r,s){var n;r._locale._eraYearOrdinalRegex&&(n=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[T]=r._locale.eraYearOrdinalParse(e,n):t[T]=parseInt(e,10)});function Za(e,t){var r,s,n,a=this._eras||Q("en")._eras;for(r=0,s=a.length;r<s;++r){switch(typeof a[r].since){case"string":n=d(a[r].since).startOf("day"),a[r].since=n.valueOf();break}switch(typeof a[r].until){case"undefined":a[r].until=1/0;break;case"string":n=d(a[r].until).startOf("day").valueOf(),a[r].until=n.valueOf();break}}return a}function qa(e,t,r){var s,n,a=this.eras(),i,u,h;for(e=e.toUpperCase(),s=0,n=a.length;s<n;++s)if(i=a[s].name.toUpperCase(),u=a[s].abbr.toUpperCase(),h=a[s].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(u===e)return a[s];break;case"NNNN":if(i===e)return a[s];break;case"NNNNN":if(h===e)return a[s];break}else if([i,u,h].indexOf(e)>=0)return a[s]}function Qa(e,t){var r=e.since<=e.until?1:-1;return t===void 0?d(e.since).year():d(e.since).year()+(t-e.offset)*r}function Ja(){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 Ka(){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 $a(){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 Xa(){var e,t,r,s,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=n[e].since<=n[e].until?1:-1,s=this.clone().startOf("day").valueOf(),n[e].since<=s&&s<=n[e].until||n[e].until<=s&&s<=n[e].since)return(this.year()-d(n[e].since).year())*r+n[e].offset;return this.year()}function ei(e){return w(this,"_erasNameRegex")||Ot.call(this),e?this._erasNameRegex:this._erasRegex}function ti(e){return w(this,"_erasAbbrRegex")||Ot.call(this),e?this._erasAbbrRegex:this._erasRegex}function ri(e){return w(this,"_erasNarrowRegex")||Ot.call(this),e?this._erasNarrowRegex:this._erasRegex}function Yt(e,t){return t.erasAbbrRegex(e)}function si(e,t){return t.erasNameRegex(e)}function ni(e,t){return t.erasNarrowRegex(e)}function ai(e,t){return t._eraYearOrdinalRegex||oe}function Ot(){var e=[],t=[],r=[],s=[],n,a,i,u,h,m=this.eras();for(n=0,a=m.length;n<a;++n)i=z(m[n].name),u=z(m[n].abbr),h=z(m[n].narrow),t.push(i),e.push(u),r.push(h),s.push(i),s.push(u),s.push(h);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")}f(0,["gg",2],0,function(){return this.weekYear()%100}),f(0,["GG",2],0,function(){return this.isoWeekYear()%100});function ze(e,t){f(0,[e,e.length],0,t)}ze("gggg","weekYear"),ze("ggggg","weekYear"),ze("GGGG","isoWeekYear"),ze("GGGGG","isoWeekYear"),c("G",We),c("g",We),c("GG",S,C),c("gg",S,C),c("GGGG",lt,ot),c("gggg",lt,ot),c("GGGGG",Pe,Ne),c("ggggg",Pe,Ne),we(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,s){t[s.substr(0,2)]=_(e)}),we(["gg","GG"],function(e,t,r,s){t[s]=d.parseTwoDigitYear(e)});function ii(e){return Mr.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function oi(e){return Mr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function li(){return q(this.year(),1,4)}function ui(){return q(this.isoWeekYear(),1,4)}function di(){var e=this.localeData()._week;return q(this.year(),e.dow,e.doy)}function ci(){var e=this.localeData()._week;return q(this.weekYear(),e.dow,e.doy)}function Mr(e,t,r,s,n){var a;return e==null?Me(this,s,n).year:(a=q(e,s,n),t>a&&(t=a),hi.call(this,e,t,r,s,n))}function hi(e,t,r,s,n){var a=Xt(e,t,r,s,n),i=Se(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}f("Q",0,"Qo","quarter"),c("Q",Ht),k("Q",function(e,t){t[B]=(_(e)-1)*3});function fi(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}f("D",["DD",2],"Do","date"),c("D",S,le),c("DD",S,C),c("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),k(["D","DD"],G),k("Do",function(e,t){t[G]=_(e.match(S)[0])});var Dr=ue("Date",!0);f("DDD",["DDDD",3],"DDDo","dayOfYear"),c("DDD",Ce),c("DDDD",Gt),k(["DDD","DDDD"],function(e,t,r){r._dayOfYear=_(e)});function mi(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}f("m",["mm",2],0,"minute"),c("m",S,ut),c("mm",S,C),k(["m","mm"],L);var yi=ue("Minutes",!1);f("s",["ss",2],0,"second"),c("s",S,ut),c("ss",S,C),k(["s","ss"],Z);var _i=ue("Seconds",!1);f("S",0,0,function(){return~~(this.millisecond()/100)}),f(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),f(0,["SSS",3],0,"millisecond"),f(0,["SSSS",4],0,function(){return this.millisecond()*10}),f(0,["SSSSS",5],0,function(){return this.millisecond()*100}),f(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),f(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),f(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),f(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),c("S",Ce,Ht),c("SS",Ce,C),c("SSS",Ce,Gt);var te,Yr;for(te="SSSS";te.length<=9;te+="S")c(te,oe);function gi(e,t){t[se]=_(("0."+e)*1e3)}for(te="S";te.length<=9;te+="S")k(te,gi);Yr=ue("Milliseconds",!1),f("z",0,0,"zoneAbbr"),f("zz",0,0,"zoneName");function wi(){return this._isUTC?"UTC":""}function pi(){return this._isUTC?"Coordinated Universal Time":""}var l=_e.prototype;l.add=ca,l.calendar=wa,l.clone=pa,l.diff=ba,l.endOf=Ra,l.format=Na,l.from=Ca,l.fromNow=Pa,l.to=Wa,l.toNow=Aa,l.get=xs,l.invalidAt=za,l.isAfter=ka,l.isBefore=Sa,l.isBetween=Ma,l.isSame=Da,l.isSameOrAfter=Ya,l.isSameOrBefore=Oa,l.isValid=Ga,l.lang=gr,l.locale=_r,l.localeData=wr,l.max=Gn,l.min=Hn,l.parsingFlags=ja,l.set=vs,l.startOf=Ea,l.subtract=ha,l.toArray=Va,l.toObject=Ua,l.toDate=Fa,l.toISOString=xa,l.inspect=va,typeof Symbol<"u"&&Symbol.for!=null&&(l[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),l.toJSON=Ha,l.toString=Ta,l.unix=Ia,l.valueOf=La,l.creationData=Ba,l.eraName=Ja,l.eraNarrow=Ka,l.eraAbbr=$a,l.eraYear=Xa,l.year=Bt,l.isLeapYear=Ts,l.weekYear=ii,l.isoWeekYear=oi,l.quarter=l.quarters=fi,l.month=Kt,l.daysInMonth=Is,l.week=l.weeks=Bs,l.isoWeek=l.isoWeeks=Zs,l.weeksInYear=di,l.weeksInWeekYear=ci,l.isoWeeksInYear=li,l.isoWeeksInISOWeekYear=ui,l.date=Dr,l.day=l.days=on,l.weekday=ln,l.isoWeekday=un,l.dayOfYear=mi,l.hour=l.hours=_n,l.minute=l.minutes=yi,l.second=l.seconds=_i,l.millisecond=l.milliseconds=Yr,l.utcOffset=$n,l.utc=ea,l.local=ta,l.parseZone=ra,l.hasAlignedHourOffset=sa,l.isDST=na,l.isLocal=ia,l.isUtcOffset=oa,l.isUtc=cr,l.isUTC=cr,l.zoneAbbr=wi,l.zoneName=pi,l.dates=P("dates accessor is deprecated. Use date instead.",Dr),l.months=P("months accessor is deprecated. Use month instead",Kt),l.years=P("years accessor is deprecated. Use year instead",Bt),l.zone=P("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Xn),l.isDSTShifted=P("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",aa);function ki(e){return M(e*1e3)}function Si(){return M.apply(null,arguments).parseZone()}function Or(e){return e}var p=rt.prototype;p.calendar=as,p.longDateFormat=us,p.invalidDate=cs,p.ordinal=ms,p.preparse=Or,p.postformat=Or,p.relativeTime=_s,p.pastFuture=gs,p.set=ss,p.eras=Za,p.erasParse=qa,p.erasConvertYear=Qa,p.erasAbbrRegex=ti,p.erasNameRegex=ei,p.erasNarrowRegex=ri,p.months=As,p.monthsShort=Es,p.monthsParse=Ls,p.monthsRegex=Vs,p.monthsShortRegex=Fs,p.week=Hs,p.firstDayOfYear=zs,p.firstDayOfWeek=js,p.weekdays=tn,p.weekdaysMin=sn,p.weekdaysShort=rn,p.weekdaysParse=an,p.weekdaysRegex=dn,p.weekdaysShortRegex=cn,p.weekdaysMinRegex=hn,p.isPM=mn,p.meridiem=gn;function Be(e,t,r,s){var n=Q(),a=V().set(s,t);return n[r](a,e)}function br(e,t,r){if(j(e)&&(t=e,e=void 0),e=e||"",t!=null)return Be(e,t,r,"month");var s,n=[];for(s=0;s<12;s++)n[s]=Be(e,s,r,"month");return n}function bt(e,t,r,s){typeof e=="boolean"?(j(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,j(t)&&(r=t,t=void 0),t=t||"");var n=Q(),a=e?n._week.dow:0,i,u=[];if(r!=null)return Be(t,(r+a)%7,s,"day");for(i=0;i<7;i++)u[i]=Be(t,(i+a)%7,s,"day");return u}function Mi(e,t){return br(e,t,"months")}function Di(e,t){return br(e,t,"monthsShort")}function Yi(e,t,r){return bt(e,t,r,"weekdays")}function Oi(e,t,r){return bt(e,t,r,"weekdaysShort")}function bi(e,t,r){return bt(e,t,r,"weekdaysMin")}ee("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=_(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}}),d.lang=P("moment.lang is deprecated. Use moment.locale instead.",ee),d.langData=P("moment.langData is deprecated. Use moment.localeData instead.",Q);var J=Math.abs;function Ti(){var e=this._data;return this._milliseconds=J(this._milliseconds),this._days=J(this._days),this._months=J(this._months),e.milliseconds=J(e.milliseconds),e.seconds=J(e.seconds),e.minutes=J(e.minutes),e.hours=J(e.hours),e.months=J(e.months),e.years=J(e.years),this}function Tr(e,t,r,s){var n=I(t,r);return e._milliseconds+=s*n._milliseconds,e._days+=s*n._days,e._months+=s*n._months,e._bubble()}function xi(e,t){return Tr(this,e,t,1)}function vi(e,t){return Tr(this,e,t,-1)}function xr(e){return e<0?Math.floor(e):Math.ceil(e)}function Ni(){var e=this._milliseconds,t=this._days,r=this._months,s=this._data,n,a,i,u,h;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=xr(Tt(r)+t)*864e5,t=0,r=0),s.milliseconds=e%1e3,n=A(e/1e3),s.seconds=n%60,a=A(n/60),s.minutes=a%60,i=A(a/60),s.hours=i%24,t+=A(i/24),h=A(vr(t)),r+=h,t-=xr(Tt(h)),u=A(r/12),r%=12,s.days=t,s.months=r,s.years=u,this}function vr(e){return e*4800/146097}function Tt(e){return e*146097/4800}function Ci(e){if(!this.isValid())return NaN;var t,r,s=this._milliseconds;if(e=W(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+s/864e5,r=this._months+vr(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(Tt(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 K(e){return function(){return this.as(e)}}var Nr=K("ms"),Pi=K("s"),Wi=K("m"),Ai=K("h"),Ei=K("d"),Ri=K("w"),Li=K("M"),Ii=K("Q"),Fi=K("y"),Vi=Nr;function Ui(){return I(this)}function Hi(e){return e=W(e),this.isValid()?this[e+"s"]():NaN}function ae(e){return function(){return this.isValid()?this._data[e]:NaN}}var Gi=ae("milliseconds"),ji=ae("seconds"),zi=ae("minutes"),Bi=ae("hours"),Zi=ae("days"),qi=ae("months"),Qi=ae("years");function Ji(){return A(this.days()/7)}var $=Math.round,fe={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ki(e,t,r,s,n){return n.relativeTime(t||1,!!r,e,s)}function $i(e,t,r,s){var n=I(e).abs(),a=$(n.as("s")),i=$(n.as("m")),u=$(n.as("h")),h=$(n.as("d")),m=$(n.as("M")),O=$(n.as("w")),x=$(n.as("y")),F=a<=r.ss&&["s",a]||a<r.s&&["ss",a]||i<=1&&["m"]||i<r.m&&["mm",i]||u<=1&&["h"]||u<r.h&&["hh",u]||h<=1&&["d"]||h<r.d&&["dd",h];return r.w!=null&&(F=F||O<=1&&["w"]||O<r.w&&["ww",O]),F=F||m<=1&&["M"]||m<r.M&&["MM",m]||x<=1&&["y"]||["yy",x],F[2]=t,F[3]=+e>0,F[4]=s,Ki.apply(null,F)}function Xi(e){return e===void 0?$:typeof e=="function"?($=e,!0):!1}function eo(e,t){return fe[e]===void 0?!1:t===void 0?fe[e]:(fe[e]=t,e==="s"&&(fe.ss=t-1),!0)}function to(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,s=fe,n,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(s=Object.assign({},fe,t),t.s!=null&&t.ss==null&&(s.ss=t.s-1)),n=this.localeData(),a=$i(this,!r,s,n),r&&(a=n.pastFuture(+this,a)),n.postformat(a)}var xt=Math.abs;function me(e){return(e>0)-(e<0)||+e}function Ze(){if(!this.isValid())return this.localeData().invalidDate();var e=xt(this._milliseconds)/1e3,t=xt(this._days),r=xt(this._months),s,n,a,i,u=this.asSeconds(),h,m,O,x;return u?(s=A(e/60),n=A(s/60),e%=60,s%=60,a=A(r/12),r%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",h=u<0?"-":"",m=me(this._months)!==me(u)?"-":"",O=me(this._days)!==me(u)?"-":"",x=me(this._milliseconds)!==me(u)?"-":"",h+"P"+(a?m+a+"Y":"")+(r?m+r+"M":"")+(t?O+t+"D":"")+(n||s||e?"T":"")+(n?x+n+"H":"")+(s?x+s+"M":"")+(e?x+i+"S":"")):"P0D"}var g=Ve.prototype;g.isValid=qn,g.abs=Ti,g.add=xi,g.subtract=vi,g.as=Ci,g.asMilliseconds=Nr,g.asSeconds=Pi,g.asMinutes=Wi,g.asHours=Ai,g.asDays=Ei,g.asWeeks=Ri,g.asMonths=Li,g.asQuarters=Ii,g.asYears=Fi,g.valueOf=Vi,g._bubble=Ni,g.clone=Ui,g.get=Hi,g.milliseconds=Gi,g.seconds=ji,g.minutes=zi,g.hours=Bi,g.days=Zi,g.weeks=Ji,g.months=qi,g.years=Qi,g.humanize=to,g.toISOString=Ze,g.toString=Ze,g.toJSON=Ze,g.locale=_r,g.localeData=wr,g.toIsoString=P("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ze),g.lang=gr,f("X",0,0,"unix"),f("x",0,0,"valueOf"),c("x",We),c("X",Ss),k("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)}),k("x",function(e,t,r){r._d=new Date(_(e))});//! moment.js
10
- d.version="2.30.1",ts(M),d.fn=l,d.min=jn,d.max=zn,d.now=Bn,d.utc=V,d.unix=ki,d.months=Mi,d.isDate=ye,d.locale=ee,d.invalid=Te,d.duration=I,d.isMoment=R,d.weekdays=Yi,d.parseZone=Si,d.localeData=Q,d.isDuration=Ue,d.monthsShort=Di,d.weekdaysMin=bi,d.defineLocale=yt,d.updateLocale=Sn,d.locales=Mn,d.weekdaysShort=Oi,d.normalizeUnits=W,d.relativeTimeRounding=Xi,d.relativeTimeThreshold=eo,d.calendarFormat=ga,d.prototype=l,d.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"};const ro={class:"d-flex align-items-center justify-content-center bg-white shadow-sm py-3"},Cr=o.defineComponent({__name:"Footer",props:{copyrightText:{type:String,required:!0}},setup(e){const t=e;return(r,s)=>(o.openBlock(),o.createElementBlock("footer",ro,o.toDisplayString(t.copyrightText)+" "+o.toDisplayString(o.unref(d)().year()),1))}}),so=o.defineComponent({__name:"LoginLayoutFrame",props:{loginText:{},brandText:{},copyrightText:{},mainClass:{default:"my-5"}},setup(e){const t=e;if(typeof t.loginText!="string")throw new Error("LoginLayoutFrame: loginText обязателен");if(!t.brandText.trim())throw new Error("LoginLayoutFrame: brandText обязателен");if(!t.copyrightText.trim())throw new Error("LoginLayoutFrame: copyrightText обязателен");return(r,s)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(Wt,{"is-authenticated":!1,"login-text":r.loginText,"raw-dropdown-links":[],"brand-text":r.brandText},{logo:o.withCtx(()=>[o.createVNode(Qe)]),"language-selector":o.withCtx(()=>[o.renderSlot(r.$slots,"language-selector")]),_:3},8,["login-text","brand-text"]),o.createElementVNode("main",{class:o.normalizeClass(r.mainClass),style:{"min-height":"80vh"}},[o.renderSlot(r.$slots,"default")],2),o.createVNode(Cr,{"copyright-text":r.copyrightText},null,8,["copyright-text"])],64))}}),no={__name:"Spinner",props:{isSmall:{type:Boolean,default:!1}},setup(e){return(t,r)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["spinner-border",{"spinner-border-sm":e.isSmall}]),role:"status"},null,2))}},ao={class:"container","data-test":"SsoLoginPending"},io={class:"row justify-content-center"},oo={class:"col-md-8"},lo={class:"card"},uo={class:"card-header"},co={class:"card-body"},ho={class:"login-spinner text-center",role:"status","aria-live":"polite"},fo={class:"visually-hidden","data-test":"SsoLoginPending-status"},Pr=be(o.defineComponent({__name:"SsoLoginPending",props:{title:{},statusText:{}},setup(e){const t=e;if(!t.title.trim())throw new Error("SsoLoginPending: title обязателен");if(!t.statusText.trim())throw new Error("SsoLoginPending: statusText обязателен");return(r,s)=>(o.openBlock(),o.createElementBlock("div",ao,[o.createElementVNode("div",io,[o.createElementVNode("div",oo,[o.createElementVNode("div",lo,[o.createElementVNode("div",uo,o.toDisplayString(r.title),1),o.createElementVNode("div",co,[o.createElementVNode("div",ho,[o.createVNode(no),o.createElementVNode("span",fo,o.toDisplayString(r.statusText),1)])])])])])]))}}),[["__scopeId","data-v-6eb41b83"]]),Wr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";function Ar(){const e=globalThis.crypto;if(!e)throw new Error("Web Crypto API is not available.");if(!e.getRandomValues)throw new Error("Web Crypto getRandomValues is not available.");if(!e.subtle?.digest)throw new Error("Web Crypto subtle digest is not available.");return e}function Er(e){const t=Ar(),r=new Uint8Array(e);t.getRandomValues(r);let s="";return r.forEach(n=>{s+=Wr[n%Wr.length]}),s}function mo(e){const t=new Uint8Array(e);let r="";return t.forEach(s=>{r+=String.fromCharCode(s)}),btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,"")}function yo(e=64){if(!Number.isInteger(e)||e<43||e>128)throw new Error("PKCE code_verifier length must be between 43 and 128.");return Er(e)}async function _o(e){const t=Ar(),s=new TextEncoder().encode(e),n=await t.subtle.digest("SHA-256",s);return mo(n)}async function go(e=64){const t=yo(e),r=await _o(t);return{codeVerifier:t,codeChallenge:r}}function wo(e=32){if(!Number.isInteger(e)||e<16||e>128)throw new Error("OAuth state length must be between 16 and 128.");return Er(e)}const po="Web Crypto API недоступен. Используйте HTTPS или обновите браузер.",ko="NUXT_PUBLIC_ORIGIN не совпадает с адресом вкладки. Откройте приложение по origin из конфига.",vt="r3ui-sso-start-lock",Nt="r3ui-sso-auth-url";let qe=!1;function So(){try{return sessionStorage.getItem(vt)==="1"}catch{return!1}}function Mo(){try{const e=sessionStorage.getItem(Nt);return typeof e=="string"&&e.length>0?e:null}catch{return null}}function Rr(){try{sessionStorage.setItem(vt,"1")}catch{}}function Do(e){try{sessionStorage.setItem(Nt,e)}catch{}}function Ct(){qe=!1;try{sessionStorage.removeItem(vt),sessionStorage.removeItem(Nt)}catch{}}async function Lr(e){if(!e||typeof e.setLoading!="function")throw new Error("signInWithSSO: deps.setLoading обязателен");if(typeof e.getPublicConfig!="function")throw new Error("signInWithSSO: deps.getPublicConfig обязателен");if(typeof e.useCookie!="function")throw new Error("signInWithSSO: deps.useCookie обязателен");if(typeof e.showError!="function")throw new Error("signInWithSSO: deps.showError обязателен");if(typeof window>"u")return;const t=e.redirectTo??(h=>{window.location.href=h}),s={maxAge:300,sameSite:"lax",secure:(e.isSecure??(()=>window.location.protocol==="https:"))(),path:"/"},n=()=>{const h=e.useCookie("pkce_state",s).value;return typeof h=="string"&&h.length>0?h:null},a=()=>{const h=Mo();return n()?(qe=!0,Rr(),h&&t(h),!0):!1};if(qe)return;if(So()){if(a())return;Ct()}e.setLoading(!0);const i=e.generatePkcePair??go,u=e.generateState??wo;try{const{authApiUrl:h,ssoClientId:m,origin:O}=e.getPublicConfig();if(!h||!m)throw new Error("Не настроены CLIENT_ID или NUXT_AUTH_API_URL");if(typeof O!="string"||O!==window.location.origin){e.setLoading(!1),e.showError({statusCode:400,statusMessage:ko});return}if(a()){e.setLoading(!1);return}qe=!0,Rr();let x,F,Pt;try{({codeVerifier:x,codeChallenge:F}=await i()),Pt=u()}catch{Ct(),e.setLoading(!1),e.showError({statusCode:500,statusMessage:po});return}e.useCookie("pkce_verifier",s).value=x,e.useCookie("pkce_state",s).value=Pt;const Oo=`${O}/api/auth/callback`,Ir=`${h}/oauth/authorize?`+new URLSearchParams({client_id:m,redirect_uri:Oo,response_type:"code",scope:"*",code_challenge:F,code_challenge_method:"S256",state:Pt});Do(Ir),t(Ir)}catch{Ct(),e.setLoading(!1)}}const Yo=o.defineComponent({__name:"SsoLoginScreen",props:{title:{},statusText:{},getPublicConfig:{type:Function},useCookie:{type:Function},showError:{type:Function}},setup(e){const t=e;if(!t.title.trim())throw new Error("SsoLoginScreen: title обязателен");if(!t.statusText.trim())throw new Error("SsoLoginScreen: statusText обязателен");if(typeof t.getPublicConfig!="function")throw new Error("SsoLoginScreen: getPublicConfig обязателен");if(typeof t.useCookie!="function")throw new Error("SsoLoginScreen: useCookie обязателен");if(typeof t.showError!="function")throw new Error("SsoLoginScreen: showError обязателен");return Lr({setLoading:()=>{},getPublicConfig:t.getPublicConfig,useCookie:t.useCookie,showError:t.showError}),(r,s)=>(o.openBlock(),o.createBlock(Pr,{title:r.title,"status-text":r.statusText},null,8,["title","status-text"]))}});N.Footer=Cr,N.Header=Wt,N.LoginLayoutFrame=so,N.Logo=Qe,N.SsoLoginPending=Pr,N.SsoLoginScreen=Yo,N.signInWithSSO=Lr,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})}));
9
+ `+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var Ut={};function Ht(e,t){d.deprecationHandler!=null&&d.deprecationHandler(e,t),Ut[e]||(Vt(t),Ut[e]=!0)}d.suppressDeprecationWarnings=!1,d.deprecationHandler=null;function U(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function os(e){var t,r;for(r in e)w(e,r)&&(t=e[r],U(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 rt(e,t){var r=X({},e),s;for(s in t)w(t,s)&&(re(e[s])&&re(t[s])?(r[s]={},X(r[s],e[s]),X(r[s],t[s])):t[s]!=null?r[s]=t[s]:delete r[s]);for(s in e)w(e,s)&&!w(t,s)&&re(e[s])&&(r[s]=X({},r[s]));return r}function st(e){e!=null&&this.set(e)}var nt;Object.keys?nt=Object.keys:nt=function(e){var t,r=[];for(t in e)w(e,t)&&r.push(t);return r};var ls={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function us(e,t,r){var s=this._calendar[e]||this._calendar.sameElse;return U(s)?s.call(t,r):s}function H(e,t,r){var s=""+Math.abs(e),n=t-s.length,a=e>=0;return(a?r?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+s}var at=/(\[[^\[]*\])|(\\)?([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,xe=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,it={},ie={};function h(e,t,r,s){var n=s;typeof s=="string"&&(n=function(){return this[s]()}),e&&(ie[e]=n),t&&(ie[t[0]]=function(){return H(n.apply(this,arguments),t[1],t[2])}),r&&(ie[r]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function ds(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function cs(e){var t=e.match(at),r,s;for(r=0,s=t.length;r<s;r++)ie[t[r]]?t[r]=ie[t[r]]:t[r]=ds(t[r]);return function(n){var a="",i;for(i=0;i<s;i++)a+=U(t[i])?t[i].call(n,e):t[i];return a}}function ve(e,t){return e.isValid()?(t=Gt(t,e.localeData()),it[t]=it[t]||cs(t),it[t](e)):e.localeData().invalidDate()}function Gt(e,t){var r=5;function s(n){return t.longDateFormat(n)||n}for(xe.lastIndex=0;r>=0&&xe.test(e);)e=e.replace(xe,s),xe.lastIndex=0,r-=1;return e}var fs={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 hs(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(at).map(function(s){return s==="MMMM"||s==="MM"||s==="DD"||s==="dddd"?s.slice(1):s}).join(""),this._longDateFormat[e])}var ms="Invalid date";function ys(){return this._invalidDate}var _s="%d",gs=/\d{1,2}/;function ws(e){return this._ordinal.replace("%d",e)}var ps={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 ks(e,t,r,s){var n=this._relativeTime[r];return U(n)?n(e,t,r,s):n.replace(/%d/i,e)}function Ss(e,t){var r=this._relativeTime[e>0?"future":"past"];return U(r)?r(t):r.replace(/%s/i,t)}var jt={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function W(e){return typeof e=="string"?jt[e]||jt[e.toLowerCase()]:void 0}function ot(e){var t={},r,s;for(s in e)w(e,s)&&(r=W(s),r&&(t[r]=e[s]));return t}var Ms={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Ds(e){var t=[],r;for(r in e)w(e,r)&&t.push({unit:r,priority:Ms[r]});return t.sort(function(s,n){return s.priority-n.priority}),t}var zt=/\d/,P=/\d\d/,Bt=/\d{3}/,lt=/\d{4}/,Ne=/[+-]?\d{6}/,S=/\d\d?/,Zt=/\d\d\d\d?/,qt=/\d\d\d\d\d\d?/,Pe=/\d{1,3}/,ut=/\d{1,4}/,Ce=/[+-]?\d{1,6}/,oe=/\d+/,We=/[+-]?\d+/,Ys=/Z|[+-]\d\d:?\d\d/gi,Ee=/Z|[+-]\d\d(?::?\d\d)?/gi,Os=/[+-]?\d+(\.\d{1,3})?/,ge=/[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=/^[1-9]\d?/,dt=/^([1-9]\d|\d)/,Re;Re={};function f(e,t,r){Re[e]=U(t)?t:function(s,n){return s&&r?r:t}}function bs(e,t){return w(Re,e)?Re[e](t._strict,t._locale):new RegExp(Ts(e))}function Ts(e){return z(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,s,n,a){return r||s||n||a}))}function z(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function E(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function _(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=E(t)),r}var ct={};function k(e,t){var r,s=t,n;for(typeof e=="string"&&(e=[e]),j(t)&&(s=function(a,i){i[t]=_(a)}),n=e.length,r=0;r<n;r++)ct[e[r]]=s}function we(e,t){k(e,function(r,s,n,a){n._w=n._w||{},t(r,n._w,n,a)})}function xs(e,t,r){t!=null&&w(ct,e)&&ct[e](t,r._a,r,e)}function Ae(e){return e%4===0&&e%100!==0||e%400===0}var T=0,B=1,G=2,b=3,L=4,Z=5,se=6,vs=7,Ns=8;h("Y",0,0,function(){var e=this.year();return e<=9999?H(e,4):"+"+e}),h(0,["YY",2],0,function(){return this.year()%100}),h(0,["YYYY",4],0,"year"),h(0,["YYYYY",5],0,"year"),h(0,["YYYYYY",6,!0],0,"year"),f("Y",We),f("YY",S,P),f("YYYY",ut,lt),f("YYYYY",Ce,Ne),f("YYYYYY",Ce,Ne),k(["YYYYY","YYYYYY"],T),k("YYYY",function(e,t){t[T]=e.length===2?d.parseTwoDigitYear(e):_(e)}),k("YY",function(e,t){t[T]=d.parseTwoDigitYear(e)}),k("Y",function(e,t){t[T]=parseInt(e,10)});function pe(e){return Ae(e)?366:365}d.parseTwoDigitYear=function(e){return _(e)+(_(e)>68?1900:2e3)};var Qt=ue("FullYear",!0);function Ps(){return Ae(this.year())}function ue(e,t){return function(r){return r!=null?(Jt(this,e,r),d.updateOffset(this,t),this):ke(this,e)}}function ke(e,t){if(!e.isValid())return NaN;var r=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return s?r.getUTCSeconds():r.getSeconds();case"Minutes":return s?r.getUTCMinutes():r.getMinutes();case"Hours":return s?r.getUTCHours():r.getHours();case"Date":return s?r.getUTCDate():r.getDate();case"Day":return s?r.getUTCDay():r.getDay();case"Month":return s?r.getUTCMonth():r.getMonth();case"FullYear":return s?r.getUTCFullYear():r.getFullYear();default:return NaN}}function Jt(e,t,r){var s,n,a,i,u;if(!(!e.isValid()||isNaN(r))){switch(s=e._d,n=e._isUTC,t){case"Milliseconds":return void(n?s.setUTCMilliseconds(r):s.setMilliseconds(r));case"Seconds":return void(n?s.setUTCSeconds(r):s.setSeconds(r));case"Minutes":return void(n?s.setUTCMinutes(r):s.setMinutes(r));case"Hours":return void(n?s.setUTCHours(r):s.setHours(r));case"Date":return void(n?s.setUTCDate(r):s.setDate(r));case"FullYear":break;default:return}a=r,i=e.month(),u=e.date(),u=u===29&&i===1&&!Ae(a)?28:u,n?s.setUTCFullYear(a,i,u):s.setFullYear(a,i,u)}}function Cs(e){return e=W(e),U(this[e])?this[e]():this}function Ws(e,t){if(typeof e=="object"){e=ot(e);var r=Ds(e),s,n=r.length;for(s=0;s<n;s++)this[r[s].unit](e[r[s].unit])}else if(e=W(e),U(this[e]))return this[e](t);return this}function Es(e,t){return(e%t+t)%t}var O;Array.prototype.indexOf?O=Array.prototype.indexOf:O=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function ft(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=Es(t,12);return e+=(t-r)/12,r===1?Ae(e)?29:28:31-r%7%2}h("M",["MM",2],"Mo",function(){return this.month()+1}),h("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),h("MMMM",0,0,function(e){return this.localeData().months(this,e)}),f("M",S,le),f("MM",S,P),f("MMM",function(e,t){return t.monthsShortRegex(e)}),f("MMMM",function(e,t){return t.monthsRegex(e)}),k(["M","MM"],function(e,t){t[B]=_(e)-1}),k(["MMM","MMMM"],function(e,t,r,s){var n=r._locale.monthsParse(e,s,r._strict);n!=null?t[B]=n:y(r).invalidMonth=e});var Rs="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Kt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),$t=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,As=ge,Ls=ge;function Is(e,t){return e?R(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||$t).test(t)?"format":"standalone"][e.month()]:R(this._months)?this._months:this._months.standalone}function Fs(e,t){return e?R(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[$t.test(t)?"format":"standalone"][e.month()]:R(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Vs(e,t,r){var s,n,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)a=V([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(a,"").toLocaleLowerCase();return r?t==="MMM"?(n=O.call(this._shortMonthsParse,i),n!==-1?n:null):(n=O.call(this._longMonthsParse,i),n!==-1?n:null):t==="MMM"?(n=O.call(this._shortMonthsParse,i),n!==-1?n:(n=O.call(this._longMonthsParse,i),n!==-1?n:null)):(n=O.call(this._longMonthsParse,i),n!==-1?n:(n=O.call(this._shortMonthsParse,i),n!==-1?n:null))}function Us(e,t,r){var s,n,a;if(this._monthsParseExact)return Vs.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(n=V([2e3,s]),r&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),!r&&!this._monthsParse[s]&&(a="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[s]=new RegExp(a.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 Xt(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=_(t);else if(t=e.localeData().monthsParse(t),!j(t))return e}var r=t,s=e.date();return s=s<29?s:Math.min(s,ft(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,s):e._d.setMonth(r,s),e}function er(e){return e!=null?(Xt(this,e),d.updateOffset(this,!0),this):ke(this,"Month")}function Hs(){return ft(this.year(),this.month())}function Gs(e){return this._monthsParseExact?(w(this,"_monthsRegex")||tr.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(w(this,"_monthsShortRegex")||(this._monthsShortRegex=As),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function js(e){return this._monthsParseExact?(w(this,"_monthsRegex")||tr.call(this),e?this._monthsStrictRegex:this._monthsRegex):(w(this,"_monthsRegex")||(this._monthsRegex=Ls),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function tr(){function e(c,m){return m.length-c.length}var t=[],r=[],s=[],n,a,i,u;for(n=0;n<12;n++)a=V([2e3,n]),i=z(this.monthsShort(a,"")),u=z(this.months(a,"")),t.push(i),r.push(u),s.push(u),s.push(i);t.sort(e),r.sort(e),s.sort(e),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")}function zs(e,t,r,s,n,a,i){var u;return e<100&&e>=0?(u=new Date(e+400,t,r,s,n,a,i),isFinite(u.getFullYear())&&u.setFullYear(e)):u=new Date(e,t,r,s,n,a,i),u}function Se(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 Le(e,t,r){var s=7+t-r,n=(7+Se(e,0,s).getUTCDay()-t)%7;return-n+s-1}function rr(e,t,r,s,n){var a=(7+r-s)%7,i=Le(e,s,n),u=1+7*(t-1)+a+i,c,m;return u<=0?(c=e-1,m=pe(c)+u):u>pe(e)?(c=e+1,m=u-pe(e)):(c=e,m=u),{year:c,dayOfYear:m}}function Me(e,t,r){var s=Le(e.year(),t,r),n=Math.floor((e.dayOfYear()-s-1)/7)+1,a,i;return n<1?(i=e.year()-1,a=n+q(i,t,r)):n>q(e.year(),t,r)?(a=n-q(e.year(),t,r),i=e.year()+1):(i=e.year(),a=n),{week:a,year:i}}function q(e,t,r){var s=Le(e,t,r),n=Le(e+1,t,r);return(pe(e)-s+n)/7}h("w",["ww",2],"wo","week"),h("W",["WW",2],"Wo","isoWeek"),f("w",S,le),f("ww",S,P),f("W",S,le),f("WW",S,P),we(["w","ww","W","WW"],function(e,t,r,s){t[s.substr(0,1)]=_(e)});function Bs(e){return Me(e,this._week.dow,this._week.doy).week}var Zs={dow:0,doy:6};function qs(){return this._week.dow}function Qs(){return this._week.doy}function Js(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Ks(e){var t=Me(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}h("d",0,"do","day"),h("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),h("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),h("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),h("e",0,0,"weekday"),h("E",0,0,"isoWeekday"),f("d",S),f("e",S),f("E",S),f("dd",function(e,t){return t.weekdaysMinRegex(e)}),f("ddd",function(e,t){return t.weekdaysShortRegex(e)}),f("dddd",function(e,t){return t.weekdaysRegex(e)}),we(["dd","ddd","dddd"],function(e,t,r,s){var n=r._locale.weekdaysParse(e,s,r._strict);n!=null?t.d=n:y(r).invalidWeekday=e}),we(["d","e","E"],function(e,t,r,s){t[s]=_(e)});function $s(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Xs(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ht(e,t){return e.slice(t,7).concat(e.slice(0,t))}var en="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),sr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),tn="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),rn=ge,sn=ge,nn=ge;function an(e,t){var r=R(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?ht(r,this._week.dow):e?r[e.day()]:r}function on(e){return e===!0?ht(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function ln(e){return e===!0?ht(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function un(e,t,r){var s,n,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)a=V([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(a,"").toLocaleLowerCase();return r?t==="dddd"?(n=O.call(this._weekdaysParse,i),n!==-1?n:null):t==="ddd"?(n=O.call(this._shortWeekdaysParse,i),n!==-1?n:null):(n=O.call(this._minWeekdaysParse,i),n!==-1?n:null):t==="dddd"?(n=O.call(this._weekdaysParse,i),n!==-1||(n=O.call(this._shortWeekdaysParse,i),n!==-1)?n:(n=O.call(this._minWeekdaysParse,i),n!==-1?n:null)):t==="ddd"?(n=O.call(this._shortWeekdaysParse,i),n!==-1||(n=O.call(this._weekdaysParse,i),n!==-1)?n:(n=O.call(this._minWeekdaysParse,i),n!==-1?n:null)):(n=O.call(this._minWeekdaysParse,i),n!==-1||(n=O.call(this._weekdaysParse,i),n!==-1)?n:(n=O.call(this._shortWeekdaysParse,i),n!==-1?n:null))}function dn(e,t,r){var s,n,a;if(this._weekdaysParseExact)return un.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(n=V([2e3,1]).day(s),r&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(a="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[s]=new RegExp(a.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 cn(e){if(!this.isValid())return e!=null?this:NaN;var t=ke(this,"Day");return e!=null?(e=$s(e,this.localeData()),this.add(e-t,"d")):t}function fn(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 hn(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Xs(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function mn(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||mt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(w(this,"_weekdaysRegex")||(this._weekdaysRegex=rn),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function yn(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||mt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(w(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=sn),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function _n(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||mt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(w(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nn),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function mt(){function e(Y,x){return x.length-Y.length}var t=[],r=[],s=[],n=[],a,i,u,c,m;for(a=0;a<7;a++)i=V([2e3,1]).day(a),u=z(this.weekdaysMin(i,"")),c=z(this.weekdaysShort(i,"")),m=z(this.weekdays(i,"")),t.push(u),r.push(c),s.push(m),n.push(u),n.push(c),n.push(m);t.sort(e),r.sort(e),s.sort(e),n.sort(e),this._weekdaysRegex=new RegExp("^("+n.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 yt(){return this.hours()%12||12}function gn(){return this.hours()||24}h("H",["HH",2],0,"hour"),h("h",["hh",2],0,yt),h("k",["kk",2],0,gn),h("hmm",0,0,function(){return""+yt.apply(this)+H(this.minutes(),2)}),h("hmmss",0,0,function(){return""+yt.apply(this)+H(this.minutes(),2)+H(this.seconds(),2)}),h("Hmm",0,0,function(){return""+this.hours()+H(this.minutes(),2)}),h("Hmmss",0,0,function(){return""+this.hours()+H(this.minutes(),2)+H(this.seconds(),2)});function nr(e,t){h(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}nr("a",!0),nr("A",!1);function ar(e,t){return t._meridiemParse}f("a",ar),f("A",ar),f("H",S,dt),f("h",S,le),f("k",S,le),f("HH",S,P),f("hh",S,P),f("kk",S,P),f("hmm",Zt),f("hmmss",qt),f("Hmm",Zt),f("Hmmss",qt),k(["H","HH"],b),k(["k","kk"],function(e,t,r){var s=_(e);t[b]=s===24?0:s}),k(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),k(["h","hh"],function(e,t,r){t[b]=_(e),y(r).bigHour=!0}),k("hmm",function(e,t,r){var s=e.length-2;t[b]=_(e.substr(0,s)),t[L]=_(e.substr(s)),y(r).bigHour=!0}),k("hmmss",function(e,t,r){var s=e.length-4,n=e.length-2;t[b]=_(e.substr(0,s)),t[L]=_(e.substr(s,2)),t[Z]=_(e.substr(n)),y(r).bigHour=!0}),k("Hmm",function(e,t,r){var s=e.length-2;t[b]=_(e.substr(0,s)),t[L]=_(e.substr(s))}),k("Hmmss",function(e,t,r){var s=e.length-4,n=e.length-2;t[b]=_(e.substr(0,s)),t[L]=_(e.substr(s,2)),t[Z]=_(e.substr(n))});function wn(e){return(e+"").toLowerCase().charAt(0)==="p"}var pn=/[ap]\.?m?\.?/i,kn=ue("Hours",!0);function Sn(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var ir={calendar:ls,longDateFormat:fs,invalidDate:ms,ordinal:_s,dayOfMonthOrdinalParse:gs,relativeTime:ps,months:Rs,monthsShort:Kt,week:Zs,weekdays:en,weekdaysMin:tn,weekdaysShort:sr,meridiemParse:pn},D={},De={},Ye;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 or(e){return e&&e.toLowerCase().replace("_","-")}function Dn(e){for(var t=0,r,s,n,a;t<e.length;){for(a=or(e[t]).split("-"),r=a.length,s=or(e[t+1]),s=s?s.split("-"):null;r>0;){if(n=Ie(a.slice(0,r).join("-")),n)return n;if(s&&s.length>=r&&Mn(a,s)>=r-1)break;r--}t++}return Ye}function Yn(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Ie(e){var t=null,r;if(D[e]===void 0&&typeof module<"u"&&module&&module.exports&&Yn(e))try{t=Ye._abbr,r=require,r("./locale/"+e),ee(t)}catch{D[e]=null}return D[e]}function ee(e,t){var r;return e&&(v(t)?r=Q(e):r=_t(e,t),r?Ye=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ye._abbr}function _t(e,t){if(t!==null){var r,s=ir;if(t.abbr=e,D[e]!=null)Ht("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=D[e]._config;else if(t.parentLocale!=null)if(D[t.parentLocale]!=null)s=D[t.parentLocale]._config;else if(r=Ie(t.parentLocale),r!=null)s=r._config;else return De[t.parentLocale]||(De[t.parentLocale]=[]),De[t.parentLocale].push({name:e,config:t}),null;return D[e]=new st(rt(s,t)),De[e]&&De[e].forEach(function(n){_t(n.name,n.config)}),ee(e),D[e]}else return delete D[e],null}function On(e,t){if(t!=null){var r,s,n=ir;D[e]!=null&&D[e].parentLocale!=null?D[e].set(rt(D[e]._config,t)):(s=Ie(e),s!=null&&(n=s._config),t=rt(n,t),s==null&&(t.abbr=e),r=new st(t),r.parentLocale=D[e],D[e]=r),ee(e)}else D[e]!=null&&(D[e].parentLocale!=null?(D[e]=D[e].parentLocale,e===ee()&&ee(e)):D[e]!=null&&delete D[e]);return D[e]}function Q(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ye;if(!R(e)){if(t=Ie(e),t)return t;e=[e]}return Dn(e)}function bn(){return nt(D)}function gt(e){var t,r=e._a;return r&&y(e).overflow===-2&&(t=r[B]<0||r[B]>11?B:r[G]<1||r[G]>ft(r[T],r[B])?G:r[b]<0||r[b]>24||r[b]===24&&(r[L]!==0||r[Z]!==0||r[se]!==0)?b:r[L]<0||r[L]>59?L:r[Z]<0||r[Z]>59?Z:r[se]<0||r[se]>999?se:-1,y(e)._overflowDayOfYear&&(t<T||t>G)&&(t=G),y(e)._overflowWeeks&&t===-1&&(t=vs),y(e)._overflowWeekday&&t===-1&&(t=Ns),y(e).overflow=t),e}var Tn=/^\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)?)?$/,xn=/^\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=/Z|[+-]\d\d(?::?\d\d)?/,Fe=[["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]],wt=[["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/]],Nn=/^\/?Date\((-?\d+)/i,Pn=/^(?:(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}))$/,Cn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function lr(e){var t,r,s=e._i,n=Tn.exec(s)||xn.exec(s),a,i,u,c,m=Fe.length,Y=wt.length;if(n){for(y(e).iso=!0,t=0,r=m;t<r;t++)if(Fe[t][1].exec(n[1])){i=Fe[t][0],a=Fe[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(n[3]){for(t=0,r=Y;t<r;t++)if(wt[t][1].exec(n[3])){u=(n[2]||" ")+wt[t][0];break}if(u==null){e._isValid=!1;return}}if(!a&&u!=null){e._isValid=!1;return}if(n[4])if(vn.exec(n[4]))c="Z";else{e._isValid=!1;return}e._f=i+(u||"")+(c||""),kt(e)}else e._isValid=!1}function Wn(e,t,r,s,n,a){var i=[En(e),Kt.indexOf(t),parseInt(r,10),parseInt(s,10),parseInt(n,10)];return a&&i.push(parseInt(a,10)),i}function En(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Rn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function An(e,t,r){if(e){var s=sr.indexOf(e),n=new Date(t[0],t[1],t[2]).getDay();if(s!==n)return y(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function Ln(e,t,r){if(e)return Cn[e];if(t)return 0;var s=parseInt(r,10),n=s%100,a=(s-n)/100;return a*60+n}function ur(e){var t=Pn.exec(Rn(e._i)),r;if(t){if(r=Wn(t[4],t[3],t[2],t[5],t[6],t[7]),!An(t[1],r,e))return;e._a=r,e._tzm=Ln(t[8],t[9],t[10]),e._d=Se.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0}else e._isValid=!1}function In(e){var t=Nn.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(lr(e),e._isValid===!1)delete e._isValid;else return;if(ur(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:d.createFromInputFallback(e)}d.createFromInputFallback=C("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 de(e,t,r){return e??t??r}function Fn(e){var t=new Date(d.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function pt(e){var t,r,s=[],n,a,i;if(!e._d){for(n=Fn(e),e._w&&e._a[G]==null&&e._a[B]==null&&Vn(e),e._dayOfYear!=null&&(i=de(e._a[T],n[T]),(e._dayOfYear>pe(i)||e._dayOfYear===0)&&(y(e)._overflowDayOfYear=!0),r=Se(i,0,e._dayOfYear),e._a[B]=r.getUTCMonth(),e._a[G]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=s[t]=n[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[L]===0&&e._a[Z]===0&&e._a[se]===0&&(e._nextDay=!0,e._a[b]=0),e._d=(e._useUTC?Se:zs).apply(null,s),a=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!==a&&(y(e).weekdayMismatch=!0)}}function Vn(e){var t,r,s,n,a,i,u,c,m;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,i=4,r=de(t.GG,e._a[T],Me(M(),1,4).year),s=de(t.W,1),n=de(t.E,1),(n<1||n>7)&&(c=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,m=Me(M(),a,i),r=de(t.gg,e._a[T],m.year),s=de(t.w,m.week),t.d!=null?(n=t.d,(n<0||n>6)&&(c=!0)):t.e!=null?(n=t.e+a,(t.e<0||t.e>6)&&(c=!0)):n=a),s<1||s>q(r,a,i)?y(e)._overflowWeeks=!0:c!=null?y(e)._overflowWeekday=!0:(u=rr(r,s,n,a,i),e._a[T]=u.year,e._dayOfYear=u.dayOfYear)}d.ISO_8601=function(){},d.RFC_2822=function(){};function kt(e){if(e._f===d.ISO_8601){lr(e);return}if(e._f===d.RFC_2822){ur(e);return}e._a=[],y(e).empty=!0;var t=""+e._i,r,s,n,a,i,u=t.length,c=0,m,Y;for(n=Gt(e._f,e._locale).match(at)||[],Y=n.length,r=0;r<Y;r++)a=n[r],s=(t.match(bs(a,e))||[])[0],s&&(i=t.substr(0,t.indexOf(s)),i.length>0&&y(e).unusedInput.push(i),t=t.slice(t.indexOf(s)+s.length),c+=s.length),ie[a]?(s?y(e).empty=!1:y(e).unusedTokens.push(a),xs(a,s,e)):e._strict&&!s&&y(e).unusedTokens.push(a);y(e).charsLeftOver=u-c,t.length>0&&y(e).unusedInput.push(t),e._a[b]<=12&&y(e).bigHour===!0&&e._a[b]>0&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(e).meridiem=e._meridiem,e._a[b]=Un(e._locale,e._a[b],e._meridiem),m=y(e).era,m!==null&&(e._a[T]=e._locale.erasConvertYear(m,e._a[T])),pt(e),gt(e)}function Un(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 Hn(e){var t,r,s,n,a,i,u=!1,c=e._f.length;if(c===0){y(e).invalidFormat=!0,e._d=new Date(NaN);return}for(n=0;n<c;n++)a=0,i=!1,t=tt({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[n],kt(t),Xe(t)&&(i=!0),a+=y(t).charsLeftOver,a+=y(t).unusedTokens.length*10,y(t).score=a,u?a<s&&(s=a,r=t):(s==null||a<s||i)&&(s=a,r=t,i&&(u=!0));X(e,r||t)}function Gn(e){if(!e._d){var t=ot(e._i),r=t.day===void 0?t.date:t.day;e._a=It([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(s){return s&&parseInt(s,10)}),pt(e)}}function jn(e){var t=new _e(gt(dr(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function dr(e){var t=e._i,r=e._f;return e._locale=e._locale||Q(e._l),t===null||r===void 0&&t===""?Te({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),A(t)?new _e(gt(t)):(ye(t)?e._d=t:R(r)?Hn(e):r?kt(e):zn(e),Xe(e)||(e._d=null),e))}function zn(e){var t=e._i;v(t)?e._d=new Date(d.now()):ye(t)?e._d=new Date(t.valueOf()):typeof t=="string"?In(e):R(t)?(e._a=It(t.slice(0),function(r){return parseInt(r,10)}),pt(e)):re(t)?Gn(e):j(t)?e._d=new Date(t):d.createFromInputFallback(e)}function cr(e,t,r,s,n){var a={};return(t===!0||t===!1)&&(s=t,t=void 0),(r===!0||r===!1)&&(s=r,r=void 0),(re(e)&&Ke(e)||R(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=n,a._l=r,a._i=e,a._f=t,a._strict=s,jn(a)}function M(e,t,r,s){return cr(e,t,r,s,!1)}var Bn=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=M.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Te()}),Zn=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=M.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Te()});function fr(e,t){var r,s;if(t.length===1&&R(t[0])&&(t=t[0]),!t.length)return M();for(r=t[0],s=1;s<t.length;++s)(!t[s].isValid()||t[s][e](r))&&(r=t[s]);return r}function qn(){var e=[].slice.call(arguments,0);return fr("isBefore",e)}function Qn(){var e=[].slice.call(arguments,0);return fr("isAfter",e)}var Jn=function(){return Date.now?Date.now():+new Date},Oe=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Kn(e){var t,r=!1,s,n=Oe.length;for(t in e)if(w(e,t)&&!(O.call(Oe,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(s=0;s<n;++s)if(e[Oe[s]]){if(r)return!1;parseFloat(e[Oe[s]])!==_(e[Oe[s]])&&(r=!0)}return!0}function $n(){return this._isValid}function Xn(){return I(NaN)}function Ve(e){var t=ot(e),r=t.year||0,s=t.quarter||0,n=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,u=t.hour||0,c=t.minute||0,m=t.second||0,Y=t.millisecond||0;this._isValid=Kn(t),this._milliseconds=+Y+m*1e3+c*6e4+u*1e3*60*60,this._days=+i+a*7,this._months=+n+s*3+r*12,this._data={},this._locale=Q(),this._bubble()}function Ue(e){return e instanceof Ve}function St(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function ea(e,t,r){var s=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),a=0,i;for(i=0;i<s;i++)_(e[i])!==_(t[i])&&a++;return a+n}function hr(e,t){h(e,0,0,function(){var r=this.utcOffset(),s="+";return r<0&&(r=-r,s="-"),s+H(~~(r/60),2)+t+H(~~r%60,2)})}hr("Z",":"),hr("ZZ",""),f("Z",Ee),f("ZZ",Ee),k(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Mt(Ee,e)});var ta=/([\+\-]|\d\d)/gi;function Mt(e,t){var r=(t||"").match(e),s,n,a;return r===null?null:(s=r[r.length-1]||[],n=(s+"").match(ta)||["-",0,0],a=+(n[1]*60)+_(n[2]),a===0?0:n[0]==="+"?a:-a)}function Dt(e,t){var r,s;return t._isUTC?(r=t.clone(),s=(A(e)||ye(e)?e.valueOf():M(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+s),d.updateOffset(r,!1),r):M(e).local()}function Yt(e){return-Math.round(e._d.getTimezoneOffset())}d.updateOffset=function(){};function ra(e,t,r){var s=this._offset||0,n;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Mt(Ee,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(n=Yt(this)),this._offset=e,this._isUTC=!0,n!=null&&this.add(n,"m"),s!==e&&(!t||this._changeInProgress?gr(this,I(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,d.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?s:Yt(this)}function sa(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function na(e){return this.utcOffset(0,e)}function aa(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Yt(this),"m")),this}function ia(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Mt(Ys,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function oa(e){return this.isValid()?(e=e?M(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function la(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function ua(){if(!v(this._isDSTShifted))return this._isDSTShifted;var e={},t;return tt(e,this),e=dr(e),e._a?(t=e._isUTC?V(e._a):M(e._a),this._isDSTShifted=this.isValid()&&ea(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function da(){return this.isValid()?!this._isUTC:!1}function ca(){return this.isValid()?this._isUTC:!1}function mr(){return this.isValid()?this._isUTC&&this._offset===0:!1}var fa=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ha=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function I(e,t){var r=e,s=null,n,a,i;return Ue(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:j(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(s=fa.exec(e))?(n=s[1]==="-"?-1:1,r={y:0,d:_(s[G])*n,h:_(s[b])*n,m:_(s[L])*n,s:_(s[Z])*n,ms:_(St(s[se]*1e3))*n}):(s=ha.exec(e))?(n=s[1]==="-"?-1:1,r={y:ne(s[2],n),M:ne(s[3],n),w:ne(s[4],n),d:ne(s[5],n),h:ne(s[6],n),m:ne(s[7],n),s:ne(s[8],n)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(i=ma(M(r.from),M(r.to)),r={},r.ms=i.milliseconds,r.M=i.months),a=new Ve(r),Ue(e)&&w(e,"_locale")&&(a._locale=e._locale),Ue(e)&&w(e,"_isValid")&&(a._isValid=e._isValid),a}I.fn=Ve.prototype,I.invalid=Xn;function ne(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function yr(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 ma(e,t){var r;return e.isValid()&&t.isValid()?(t=Dt(t,e),e.isBefore(t)?r=yr(e,t):(r=yr(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function _r(e,t){return function(r,s){var n,a;return s!==null&&!isNaN(+s)&&(Ht(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."),a=r,r=s,s=a),n=I(r,s),gr(this,n,e),this}}function gr(e,t,r,s){var n=t._milliseconds,a=St(t._days),i=St(t._months);e.isValid()&&(s=s??!0,i&&Xt(e,ke(e,"Month")+i*r),a&&Jt(e,"Date",ke(e,"Date")+a*r),n&&e._d.setTime(e._d.valueOf()+n*r),s&&d.updateOffset(e,a||i))}var ya=_r(1,"add"),_a=_r(-1,"subtract");function wr(e){return typeof e=="string"||e instanceof String}function ga(e){return A(e)||ye(e)||wr(e)||j(e)||pa(e)||wa(e)||e===null||e===void 0}function wa(e){var t=re(e)&&!Ke(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"],n,a,i=s.length;for(n=0;n<i;n+=1)a=s[n],r=r||w(e,a);return t&&r}function pa(e){var t=R(e),r=!1;return t&&(r=e.filter(function(s){return!j(s)&&wr(e)}).length===0),t&&r}function ka(e){var t=re(e)&&!Ke(e),r=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n,a;for(n=0;n<s.length;n+=1)a=s[n],r=r||w(e,a);return t&&r}function Sa(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 Ma(e,t){arguments.length===1&&(arguments[0]?ga(arguments[0])?(e=arguments[0],t=void 0):ka(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||M(),s=Dt(r,this).startOf("day"),n=d.calendarFormat(this,s)||"sameElse",a=t&&(U(t[n])?t[n].call(this,r):t[n]);return this.format(a||this.localeData().calendar(n,this,M(r)))}function Da(){return new _e(this)}function Ya(e,t){var r=A(e)?e:M(e);return this.isValid()&&r.isValid()?(t=W(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function Oa(e,t){var r=A(e)?e:M(e);return this.isValid()&&r.isValid()?(t=W(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function ba(e,t,r,s){var n=A(e)?e:M(e),a=A(t)?t:M(t);return this.isValid()&&n.isValid()&&a.isValid()?(s=s||"()",(s[0]==="("?this.isAfter(n,r):!this.isBefore(n,r))&&(s[1]===")"?this.isBefore(a,r):!this.isAfter(a,r))):!1}function Ta(e,t){var r=A(e)?e:M(e),s;return this.isValid()&&r.isValid()?(t=W(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 xa(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function va(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Na(e,t,r){var s,n,a;if(!this.isValid())return NaN;if(s=Dt(e,this),!s.isValid())return NaN;switch(n=(s.utcOffset()-this.utcOffset())*6e4,t=W(t),t){case"year":a=He(this,s)/12;break;case"month":a=He(this,s);break;case"quarter":a=He(this,s)/3;break;case"second":a=(this-s)/1e3;break;case"minute":a=(this-s)/6e4;break;case"hour":a=(this-s)/36e5;break;case"day":a=(this-s-n)/864e5;break;case"week":a=(this-s-n)/6048e5;break;default:a=this-s}return r?a:E(a)}function He(e,t){if(e.date()<t.date())return-He(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),s=e.clone().add(r,"months"),n,a;return t-s<0?(n=e.clone().add(r-1,"months"),a=(t-s)/(s-n)):(n=e.clone().add(r+1,"months"),a=(t-s)/(n-s)),-(r+a)||0}d.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",d.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Pa(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Ca(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?ve(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):U(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ve(r,"Z")):ve(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Wa(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,s,n,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(r+s+n+a)}function Ea(e){e||(e=this.isUtc()?d.defaultFormatUtc:d.defaultFormat);var t=ve(this,e);return this.localeData().postformat(t)}function Ra(e,t){return this.isValid()&&(A(e)&&e.isValid()||M(e).isValid())?I({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Aa(e){return this.from(M(),e)}function La(e,t){return this.isValid()&&(A(e)&&e.isValid()||M(e).isValid())?I({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ia(e){return this.to(M(),e)}function pr(e){var t;return e===void 0?this._locale._abbr:(t=Q(e),t!=null&&(this._locale=t),this)}var kr=C("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 Sr(){return this._locale}var Ge=1e3,ce=60*Ge,je=60*ce,Mr=(365*400+97)*24*je;function fe(e,t){return(e%t+t)%t}function Dr(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-Mr:new Date(e,t,r).valueOf()}function Yr(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-Mr:Date.UTC(e,t,r)}function Fa(e){var t,r;if(e=W(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Yr:Dr,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-=fe(t+(this._isUTC?0:this.utcOffset()*ce),je);break;case"minute":t=this._d.valueOf(),t-=fe(t,ce);break;case"second":t=this._d.valueOf(),t-=fe(t,Ge);break}return this._d.setTime(t),d.updateOffset(this,!0),this}function Va(e){var t,r;if(e=W(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Yr:Dr,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+=je-fe(t+(this._isUTC?0:this.utcOffset()*ce),je)-1;break;case"minute":t=this._d.valueOf(),t+=ce-fe(t,ce)-1;break;case"second":t=this._d.valueOf(),t+=Ge-fe(t,Ge)-1;break}return this._d.setTime(t),d.updateOffset(this,!0),this}function Ua(){return this._d.valueOf()-(this._offset||0)*6e4}function Ha(){return Math.floor(this.valueOf()/1e3)}function Ga(){return new Date(this.valueOf())}function ja(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function za(){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 Ba(){return this.isValid()?this.toISOString():null}function Za(){return Xe(this)}function qa(){return X({},y(this))}function Qa(){return y(this).overflow}function Ja(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}h("N",0,0,"eraAbbr"),h("NN",0,0,"eraAbbr"),h("NNN",0,0,"eraAbbr"),h("NNNN",0,0,"eraName"),h("NNNNN",0,0,"eraNarrow"),h("y",["y",1],"yo","eraYear"),h("y",["yy",2],0,"eraYear"),h("y",["yyy",3],0,"eraYear"),h("y",["yyyy",4],0,"eraYear"),f("N",Ot),f("NN",Ot),f("NNN",Ot),f("NNNN",oi),f("NNNNN",li),k(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,s){var n=r._locale.erasParse(e,s,r._strict);n?y(r).era=n:y(r).invalidEra=e}),f("y",oe),f("yy",oe),f("yyy",oe),f("yyyy",oe),f("yo",ui),k(["y","yy","yyy","yyyy"],T),k(["yo"],function(e,t,r,s){var n;r._locale._eraYearOrdinalRegex&&(n=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[T]=r._locale.eraYearOrdinalParse(e,n):t[T]=parseInt(e,10)});function Ka(e,t){var r,s,n,a=this._eras||Q("en")._eras;for(r=0,s=a.length;r<s;++r){switch(typeof a[r].since){case"string":n=d(a[r].since).startOf("day"),a[r].since=n.valueOf();break}switch(typeof a[r].until){case"undefined":a[r].until=1/0;break;case"string":n=d(a[r].until).startOf("day").valueOf(),a[r].until=n.valueOf();break}}return a}function $a(e,t,r){var s,n,a=this.eras(),i,u,c;for(e=e.toUpperCase(),s=0,n=a.length;s<n;++s)if(i=a[s].name.toUpperCase(),u=a[s].abbr.toUpperCase(),c=a[s].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(u===e)return a[s];break;case"NNNN":if(i===e)return a[s];break;case"NNNNN":if(c===e)return a[s];break}else if([i,u,c].indexOf(e)>=0)return a[s]}function Xa(e,t){var r=e.since<=e.until?1:-1;return t===void 0?d(e.since).year():d(e.since).year()+(t-e.offset)*r}function ei(){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 ti(){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 ri(){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 si(){var e,t,r,s,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=n[e].since<=n[e].until?1:-1,s=this.clone().startOf("day").valueOf(),n[e].since<=s&&s<=n[e].until||n[e].until<=s&&s<=n[e].since)return(this.year()-d(n[e].since).year())*r+n[e].offset;return this.year()}function ni(e){return w(this,"_erasNameRegex")||bt.call(this),e?this._erasNameRegex:this._erasRegex}function ai(e){return w(this,"_erasAbbrRegex")||bt.call(this),e?this._erasAbbrRegex:this._erasRegex}function ii(e){return w(this,"_erasNarrowRegex")||bt.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ot(e,t){return t.erasAbbrRegex(e)}function oi(e,t){return t.erasNameRegex(e)}function li(e,t){return t.erasNarrowRegex(e)}function ui(e,t){return t._eraYearOrdinalRegex||oe}function bt(){var e=[],t=[],r=[],s=[],n,a,i,u,c,m=this.eras();for(n=0,a=m.length;n<a;++n)i=z(m[n].name),u=z(m[n].abbr),c=z(m[n].narrow),t.push(i),e.push(u),r.push(c),s.push(i),s.push(u),s.push(c);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")}h(0,["gg",2],0,function(){return this.weekYear()%100}),h(0,["GG",2],0,function(){return this.isoWeekYear()%100});function ze(e,t){h(0,[e,e.length],0,t)}ze("gggg","weekYear"),ze("ggggg","weekYear"),ze("GGGG","isoWeekYear"),ze("GGGGG","isoWeekYear"),f("G",We),f("g",We),f("GG",S,P),f("gg",S,P),f("GGGG",ut,lt),f("gggg",ut,lt),f("GGGGG",Ce,Ne),f("ggggg",Ce,Ne),we(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,s){t[s.substr(0,2)]=_(e)}),we(["gg","GG"],function(e,t,r,s){t[s]=d.parseTwoDigitYear(e)});function di(e){return Or.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function ci(e){return Or.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function fi(){return q(this.year(),1,4)}function hi(){return q(this.isoWeekYear(),1,4)}function mi(){var e=this.localeData()._week;return q(this.year(),e.dow,e.doy)}function yi(){var e=this.localeData()._week;return q(this.weekYear(),e.dow,e.doy)}function Or(e,t,r,s,n){var a;return e==null?Me(this,s,n).year:(a=q(e,s,n),t>a&&(t=a),_i.call(this,e,t,r,s,n))}function _i(e,t,r,s,n){var a=rr(e,t,r,s,n),i=Se(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}h("Q",0,"Qo","quarter"),f("Q",zt),k("Q",function(e,t){t[B]=(_(e)-1)*3});function gi(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}h("D",["DD",2],"Do","date"),f("D",S,le),f("DD",S,P),f("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),k(["D","DD"],G),k("Do",function(e,t){t[G]=_(e.match(S)[0])});var br=ue("Date",!0);h("DDD",["DDDD",3],"DDDo","dayOfYear"),f("DDD",Pe),f("DDDD",Bt),k(["DDD","DDDD"],function(e,t,r){r._dayOfYear=_(e)});function wi(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}h("m",["mm",2],0,"minute"),f("m",S,dt),f("mm",S,P),k(["m","mm"],L);var pi=ue("Minutes",!1);h("s",["ss",2],0,"second"),f("s",S,dt),f("ss",S,P),k(["s","ss"],Z);var ki=ue("Seconds",!1);h("S",0,0,function(){return~~(this.millisecond()/100)}),h(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),h(0,["SSS",3],0,"millisecond"),h(0,["SSSS",4],0,function(){return this.millisecond()*10}),h(0,["SSSSS",5],0,function(){return this.millisecond()*100}),h(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),h(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),h(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),h(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),f("S",Pe,zt),f("SS",Pe,P),f("SSS",Pe,Bt);var te,Tr;for(te="SSSS";te.length<=9;te+="S")f(te,oe);function Si(e,t){t[se]=_(("0."+e)*1e3)}for(te="S";te.length<=9;te+="S")k(te,Si);Tr=ue("Milliseconds",!1),h("z",0,0,"zoneAbbr"),h("zz",0,0,"zoneName");function Mi(){return this._isUTC?"UTC":""}function Di(){return this._isUTC?"Coordinated Universal Time":""}var l=_e.prototype;l.add=ya,l.calendar=Ma,l.clone=Da,l.diff=Na,l.endOf=Va,l.format=Ea,l.from=Ra,l.fromNow=Aa,l.to=La,l.toNow=Ia,l.get=Cs,l.invalidAt=Qa,l.isAfter=Ya,l.isBefore=Oa,l.isBetween=ba,l.isSame=Ta,l.isSameOrAfter=xa,l.isSameOrBefore=va,l.isValid=Za,l.lang=kr,l.locale=pr,l.localeData=Sr,l.max=Zn,l.min=Bn,l.parsingFlags=qa,l.set=Ws,l.startOf=Fa,l.subtract=_a,l.toArray=ja,l.toObject=za,l.toDate=Ga,l.toISOString=Ca,l.inspect=Wa,typeof Symbol<"u"&&Symbol.for!=null&&(l[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),l.toJSON=Ba,l.toString=Pa,l.unix=Ha,l.valueOf=Ua,l.creationData=Ja,l.eraName=ei,l.eraNarrow=ti,l.eraAbbr=ri,l.eraYear=si,l.year=Qt,l.isLeapYear=Ps,l.weekYear=di,l.isoWeekYear=ci,l.quarter=l.quarters=gi,l.month=er,l.daysInMonth=Hs,l.week=l.weeks=Js,l.isoWeek=l.isoWeeks=Ks,l.weeksInYear=mi,l.weeksInWeekYear=yi,l.isoWeeksInYear=fi,l.isoWeeksInISOWeekYear=hi,l.date=br,l.day=l.days=cn,l.weekday=fn,l.isoWeekday=hn,l.dayOfYear=wi,l.hour=l.hours=kn,l.minute=l.minutes=pi,l.second=l.seconds=ki,l.millisecond=l.milliseconds=Tr,l.utcOffset=ra,l.utc=na,l.local=aa,l.parseZone=ia,l.hasAlignedHourOffset=oa,l.isDST=la,l.isLocal=da,l.isUtcOffset=ca,l.isUtc=mr,l.isUTC=mr,l.zoneAbbr=Mi,l.zoneName=Di,l.dates=C("dates accessor is deprecated. Use date instead.",br),l.months=C("months accessor is deprecated. Use month instead",er),l.years=C("years accessor is deprecated. Use year instead",Qt),l.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",sa),l.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",ua);function Yi(e){return M(e*1e3)}function Oi(){return M.apply(null,arguments).parseZone()}function xr(e){return e}var p=st.prototype;p.calendar=us,p.longDateFormat=hs,p.invalidDate=ys,p.ordinal=ws,p.preparse=xr,p.postformat=xr,p.relativeTime=ks,p.pastFuture=Ss,p.set=os,p.eras=Ka,p.erasParse=$a,p.erasConvertYear=Xa,p.erasAbbrRegex=ai,p.erasNameRegex=ni,p.erasNarrowRegex=ii,p.months=Is,p.monthsShort=Fs,p.monthsParse=Us,p.monthsRegex=js,p.monthsShortRegex=Gs,p.week=Bs,p.firstDayOfYear=Qs,p.firstDayOfWeek=qs,p.weekdays=an,p.weekdaysMin=ln,p.weekdaysShort=on,p.weekdaysParse=dn,p.weekdaysRegex=mn,p.weekdaysShortRegex=yn,p.weekdaysMinRegex=_n,p.isPM=wn,p.meridiem=Sn;function Be(e,t,r,s){var n=Q(),a=V().set(s,t);return n[r](a,e)}function vr(e,t,r){if(j(e)&&(t=e,e=void 0),e=e||"",t!=null)return Be(e,t,r,"month");var s,n=[];for(s=0;s<12;s++)n[s]=Be(e,s,r,"month");return n}function Tt(e,t,r,s){typeof e=="boolean"?(j(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,j(t)&&(r=t,t=void 0),t=t||"");var n=Q(),a=e?n._week.dow:0,i,u=[];if(r!=null)return Be(t,(r+a)%7,s,"day");for(i=0;i<7;i++)u[i]=Be(t,(i+a)%7,s,"day");return u}function bi(e,t){return vr(e,t,"months")}function Ti(e,t){return vr(e,t,"monthsShort")}function xi(e,t,r){return Tt(e,t,r,"weekdays")}function vi(e,t,r){return Tt(e,t,r,"weekdaysShort")}function Ni(e,t,r){return Tt(e,t,r,"weekdaysMin")}ee("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=_(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}}),d.lang=C("moment.lang is deprecated. Use moment.locale instead.",ee),d.langData=C("moment.langData is deprecated. Use moment.localeData instead.",Q);var J=Math.abs;function Pi(){var e=this._data;return this._milliseconds=J(this._milliseconds),this._days=J(this._days),this._months=J(this._months),e.milliseconds=J(e.milliseconds),e.seconds=J(e.seconds),e.minutes=J(e.minutes),e.hours=J(e.hours),e.months=J(e.months),e.years=J(e.years),this}function Nr(e,t,r,s){var n=I(t,r);return e._milliseconds+=s*n._milliseconds,e._days+=s*n._days,e._months+=s*n._months,e._bubble()}function Ci(e,t){return Nr(this,e,t,1)}function Wi(e,t){return Nr(this,e,t,-1)}function Pr(e){return e<0?Math.floor(e):Math.ceil(e)}function Ei(){var e=this._milliseconds,t=this._days,r=this._months,s=this._data,n,a,i,u,c;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=Pr(xt(r)+t)*864e5,t=0,r=0),s.milliseconds=e%1e3,n=E(e/1e3),s.seconds=n%60,a=E(n/60),s.minutes=a%60,i=E(a/60),s.hours=i%24,t+=E(i/24),c=E(Cr(t)),r+=c,t-=Pr(xt(c)),u=E(r/12),r%=12,s.days=t,s.months=r,s.years=u,this}function Cr(e){return e*4800/146097}function xt(e){return e*146097/4800}function Ri(e){if(!this.isValid())return NaN;var t,r,s=this._milliseconds;if(e=W(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+s/864e5,r=this._months+Cr(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(xt(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 K(e){return function(){return this.as(e)}}var Wr=K("ms"),Ai=K("s"),Li=K("m"),Ii=K("h"),Fi=K("d"),Vi=K("w"),Ui=K("M"),Hi=K("Q"),Gi=K("y"),ji=Wr;function zi(){return I(this)}function Bi(e){return e=W(e),this.isValid()?this[e+"s"]():NaN}function ae(e){return function(){return this.isValid()?this._data[e]:NaN}}var Zi=ae("milliseconds"),qi=ae("seconds"),Qi=ae("minutes"),Ji=ae("hours"),Ki=ae("days"),$i=ae("months"),Xi=ae("years");function eo(){return E(this.days()/7)}var $=Math.round,he={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function to(e,t,r,s,n){return n.relativeTime(t||1,!!r,e,s)}function ro(e,t,r,s){var n=I(e).abs(),a=$(n.as("s")),i=$(n.as("m")),u=$(n.as("h")),c=$(n.as("d")),m=$(n.as("M")),Y=$(n.as("w")),x=$(n.as("y")),F=a<=r.ss&&["s",a]||a<r.s&&["ss",a]||i<=1&&["m"]||i<r.m&&["mm",i]||u<=1&&["h"]||u<r.h&&["hh",u]||c<=1&&["d"]||c<r.d&&["dd",c];return r.w!=null&&(F=F||Y<=1&&["w"]||Y<r.w&&["ww",Y]),F=F||m<=1&&["M"]||m<r.M&&["MM",m]||x<=1&&["y"]||["yy",x],F[2]=t,F[3]=+e>0,F[4]=s,to.apply(null,F)}function so(e){return e===void 0?$:typeof e=="function"?($=e,!0):!1}function no(e,t){return he[e]===void 0?!1:t===void 0?he[e]:(he[e]=t,e==="s"&&(he.ss=t-1),!0)}function ao(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,s=he,n,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(s=Object.assign({},he,t),t.s!=null&&t.ss==null&&(s.ss=t.s-1)),n=this.localeData(),a=ro(this,!r,s,n),r&&(a=n.pastFuture(+this,a)),n.postformat(a)}var vt=Math.abs;function me(e){return(e>0)-(e<0)||+e}function Ze(){if(!this.isValid())return this.localeData().invalidDate();var e=vt(this._milliseconds)/1e3,t=vt(this._days),r=vt(this._months),s,n,a,i,u=this.asSeconds(),c,m,Y,x;return u?(s=E(e/60),n=E(s/60),e%=60,s%=60,a=E(r/12),r%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=u<0?"-":"",m=me(this._months)!==me(u)?"-":"",Y=me(this._days)!==me(u)?"-":"",x=me(this._milliseconds)!==me(u)?"-":"",c+"P"+(a?m+a+"Y":"")+(r?m+r+"M":"")+(t?Y+t+"D":"")+(n||s||e?"T":"")+(n?x+n+"H":"")+(s?x+s+"M":"")+(e?x+i+"S":"")):"P0D"}var g=Ve.prototype;g.isValid=$n,g.abs=Pi,g.add=Ci,g.subtract=Wi,g.as=Ri,g.asMilliseconds=Wr,g.asSeconds=Ai,g.asMinutes=Li,g.asHours=Ii,g.asDays=Fi,g.asWeeks=Vi,g.asMonths=Ui,g.asQuarters=Hi,g.asYears=Gi,g.valueOf=ji,g._bubble=Ei,g.clone=zi,g.get=Bi,g.milliseconds=Zi,g.seconds=qi,g.minutes=Qi,g.hours=Ji,g.days=Ki,g.weeks=eo,g.months=$i,g.years=Xi,g.humanize=ao,g.toISOString=Ze,g.toString=Ze,g.toJSON=Ze,g.locale=pr,g.localeData=Sr,g.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ze),g.lang=kr,h("X",0,0,"unix"),h("x",0,0,"valueOf"),f("x",We),f("X",Os),k("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)}),k("x",function(e,t,r){r._d=new Date(_(e))});//! moment.js
10
+ d.version="2.30.1",as(M),d.fn=l,d.min=qn,d.max=Qn,d.now=Jn,d.utc=V,d.unix=Yi,d.months=bi,d.isDate=ye,d.locale=ee,d.invalid=Te,d.duration=I,d.isMoment=A,d.weekdays=xi,d.parseZone=Oi,d.localeData=Q,d.isDuration=Ue,d.monthsShort=Ti,d.weekdaysMin=Ni,d.defineLocale=_t,d.updateLocale=On,d.locales=bn,d.weekdaysShort=vi,d.normalizeUnits=W,d.relativeTimeRounding=so,d.relativeTimeThreshold=no,d.calendarFormat=Sa,d.prototype=l,d.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"};const io={class:"d-flex align-items-center justify-content-center bg-white shadow-sm py-3"},Er=o.defineComponent({__name:"Footer",props:{copyrightText:{type:String,required:!0}},setup(e){const t=e;return(r,s)=>(o.openBlock(),o.createElementBlock("footer",io,o.toDisplayString(t.copyrightText)+" "+o.toDisplayString(o.unref(d)().year()),1))}}),oo=o.defineComponent({__name:"LoginLayoutFrame",props:{loginText:{},brandText:{},copyrightText:{},mainClass:{default:"my-5"}},setup(e){const t=e;if(typeof t.loginText!="string")throw new Error("LoginLayoutFrame: loginText обязателен");if(!t.brandText.trim())throw new Error("LoginLayoutFrame: brandText обязателен");if(!t.copyrightText.trim())throw new Error("LoginLayoutFrame: copyrightText обязателен");return(r,s)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(At,{"is-authenticated":!1,"login-text":r.loginText,"raw-dropdown-links":[],"brand-text":r.brandText},{logo:o.withCtx(()=>[o.createVNode(Je)]),"language-selector":o.withCtx(()=>[o.renderSlot(r.$slots,"language-selector")]),_:3},8,["login-text","brand-text"]),o.createElementVNode("main",{class:o.normalizeClass(r.mainClass),style:{"min-height":"80vh"}},[o.renderSlot(r.$slots,"default")],2),o.createVNode(Er,{"copyright-text":r.copyrightText},null,8,["copyright-text"])],64))}}),lo={__name:"Spinner",props:{isSmall:{type:Boolean,default:!1}},setup(e){return(t,r)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["spinner-border",{"spinner-border-sm":e.isSmall}]),role:"status"},null,2))}},uo={class:"container","data-test":"SsoLoginPending"},co={class:"row justify-content-center"},fo={class:"col-md-8"},ho={class:"card"},mo={class:"card-header"},yo={class:"card-body"},_o={class:"login-spinner text-center",role:"status","aria-live":"polite"},go={class:"visually-hidden","data-test":"SsoLoginPending-status"},Rr=be(o.defineComponent({__name:"SsoLoginPending",props:{title:{},statusText:{}},setup(e){const t=e;if(!t.title.trim())throw new Error("SsoLoginPending: title обязателен");if(!t.statusText.trim())throw new Error("SsoLoginPending: statusText обязателен");return(r,s)=>(o.openBlock(),o.createElementBlock("div",uo,[o.createElementVNode("div",co,[o.createElementVNode("div",fo,[o.createElementVNode("div",ho,[o.createElementVNode("div",mo,o.toDisplayString(r.title),1),o.createElementVNode("div",yo,[o.createElementVNode("div",_o,[o.createVNode(lo),o.createElementVNode("span",go,o.toDisplayString(r.statusText),1)])])])])])]))}}),[["__scopeId","data-v-6eb41b83"]]),Ar="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";function Lr(){const e=globalThis.crypto;if(!e)throw new Error("Web Crypto API is not available.");if(!e.getRandomValues)throw new Error("Web Crypto getRandomValues is not available.");if(!e.subtle?.digest)throw new Error("Web Crypto subtle digest is not available.");return e}function Ir(e){const t=Lr(),r=new Uint8Array(e);t.getRandomValues(r);let s="";return r.forEach(n=>{s+=Ar[n%Ar.length]}),s}function wo(e){const t=new Uint8Array(e);let r="";return t.forEach(s=>{r+=String.fromCharCode(s)}),btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,"")}function po(e=64){if(!Number.isInteger(e)||e<43||e>128)throw new Error("PKCE code_verifier length must be between 43 and 128.");return Ir(e)}async function ko(e){const t=Lr(),s=new TextEncoder().encode(e),n=await t.subtle.digest("SHA-256",s);return wo(n)}async function So(e=64){const t=po(e),r=await ko(t);return{codeVerifier:t,codeChallenge:r}}function Mo(e=32){if(!Number.isInteger(e)||e<16||e>128)throw new Error("OAuth state length must be between 16 and 128.");return Ir(e)}function qe(e){return Number.isInteger(e)&&Number(e)>=400&&Number(e)<600}function Nt(e,t=new Set){if(e==null)return;if(typeof e=="number")return qe(e)?e:void 0;if(typeof e!="object"||t.has(e))return;if(t.add(e),typeof Response<"u"&&e instanceof Response)return qe(e.status)?e.status:void 0;const r=e;if(qe(r.status))return r.status;if(qe(r.statusCode))return r.statusCode;const s=Nt(r.response,t);return s!==void 0?s:Nt(r.cause,t)}function Fr(e){return e===400?"Bad Request":e===401?"Unauthorized":e===403?"Forbidden":e===404?"Not Found":e===409?"Conflict":e===422?"Unprocessable Entity":e===429?"Too Many Requests":e===502?"Bad Gateway":e===503?"Service Unavailable":e===504?"Gateway Timeout":e>=500?"Internal Server Error":"Request failed"}function Pt(e,t=500){return Nt(e)??t}const Do="Web Crypto API недоступен. Используйте HTTPS или обновите браузер.",Yo="NUXT_PUBLIC_ORIGIN не совпадает с адресом вкладки. Откройте приложение по origin из конфига.",Ct="r3ui-sso-start-lock",Wt="r3ui-sso-auth-url";let Qe=!1;function Oo(){try{return sessionStorage.getItem(Ct)==="1"}catch{return!1}}function bo(){try{const e=sessionStorage.getItem(Wt);return typeof e=="string"&&e.length>0?e:null}catch{return null}}function Vr(){try{sessionStorage.setItem(Ct,"1")}catch{}}function To(e){try{sessionStorage.setItem(Wt,e)}catch{}}function Et(){Qe=!1;try{sessionStorage.removeItem(Ct),sessionStorage.removeItem(Wt)}catch{}}async function Ur(e){if(!e||typeof e.setLoading!="function")throw new Error("signInWithSSO: deps.setLoading обязателен");if(typeof e.getPublicConfig!="function")throw new Error("signInWithSSO: deps.getPublicConfig обязателен");if(typeof e.useCookie!="function")throw new Error("signInWithSSO: deps.useCookie обязателен");if(typeof e.showError!="function")throw new Error("signInWithSSO: deps.showError обязателен");if(typeof window>"u")return;const t=e.redirectTo??(c=>{window.location.href=c}),s={maxAge:300,sameSite:"lax",secure:(e.isSecure??(()=>window.location.protocol==="https:"))(),path:"/"},n=()=>{const c=e.useCookie("pkce_state",s).value;return typeof c=="string"&&c.length>0?c:null},a=()=>{const c=bo();return n()?(Qe=!0,Vr(),c&&t(c),!0):!1};if(Qe)return;if(Oo()){if(a())return;Et()}e.setLoading(!0);const i=e.generatePkcePair??So,u=e.generateState??Mo;try{const{authApiUrl:c,ssoClientId:m,origin:Y}=e.getPublicConfig();if(!c||!m)throw new Error("Не настроены CLIENT_ID или NUXT_AUTH_API_URL");if(typeof Y!="string"||Y!==window.location.origin){e.setLoading(!1),e.showError({statusCode:400,statusMessage:Yo});return}if(a()){e.setLoading(!1);return}Qe=!0,Vr();let x,F,Rt;try{({codeVerifier:x,codeChallenge:F}=await i()),Rt=u()}catch{Et(),e.setLoading(!1),e.showError({statusCode:500,statusMessage:Do});return}e.useCookie("pkce_verifier",s).value=x,e.useCookie("pkce_state",s).value=Rt;const vo=`${Y}/api/auth/callback`,Hr=`${c}/oauth/authorize?`+new URLSearchParams({client_id:m,redirect_uri:vo,response_type:"code",scope:"*",code_challenge:F,code_challenge_method:"S256",state:Rt});To(Hr),t(Hr)}catch(c){Et(),e.setLoading(!1);const m=Pt(c,500),Y=c instanceof Error&&c.message.trim()?c.message:Fr(m);e.showError({statusCode:m,statusMessage:Y,cause:c})}}const xo=o.defineComponent({__name:"SsoLoginScreen",props:{title:{},statusText:{},getPublicConfig:{type:Function},useCookie:{type:Function},showError:{type:Function}},setup(e){const t=e;if(!t.title.trim())throw new Error("SsoLoginScreen: title обязателен");if(!t.statusText.trim())throw new Error("SsoLoginScreen: statusText обязателен");if(typeof t.getPublicConfig!="function")throw new Error("SsoLoginScreen: getPublicConfig обязателен");if(typeof t.useCookie!="function")throw new Error("SsoLoginScreen: useCookie обязателен");if(typeof t.showError!="function")throw new Error("SsoLoginScreen: showError обязателен");return Ur({setLoading:()=>{},getPublicConfig:t.getPublicConfig,useCookie:t.useCookie,showError:t.showError}).catch(r=>{t.showError({statusCode:Pt(r,500),statusMessage:r instanceof Error&&r.message.trim()?r.message:Fr(Pt(r,500)),cause:r})}),(r,s)=>(o.openBlock(),o.createBlock(Rr,{title:r.title,"status-text":r.statusText},null,8,["title","status-text"]))}});N.Footer=Er,N.Header=At,N.LoginLayoutFrame=oo,N.Logo=Je,N.SsoLoginPending=Rr,N.SsoLoginScreen=xo,N.signInWithSSO=Ur,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})}));