PageSourceSearch

https://aloolahma.com/_nuxt/CTGbj3Ik.js

js aloolahma.com collected 2026-09-25 03:28:12 UTC 120,475 bytes, 1 lines download raw bytes

1import{Q as e,X as t}from"./DvoGqnBY.js";import{A as s,At as i,H as n,Nt as a,R as r,S as o,V as l,X as u,Y as h,Z as d,b as c,ct as m,d as f,f as p,ht as y,m as g,ot as v,p as _,q as k,r as b,rt as w,u as S,v as D,y as T}from"./D6oMQSai.js";import{$ as x,Q as M,et as C}from"./CP6IJJg1.js";import{t as Y}from"./BFpA9URj.js";import{f as O,i as I,m as R,p as H,t as N,v as V}from"#entry";import{t as A}from"./Dguosda-.js";import{n as L,t as P}from"./C2P4zwBr.js";import{t as F}from"./CvJ_JxEa.js";import{t as E}from"./C2_yQhNO.js";import{t as $}from"./CEX5nuLg.js";import{t as U}from"./CIH9iezj.js";import{n as W}from"./BvMqoMo_.js";import{t as B}from"./_fYu78QA.js";import{s as j}from"./BnZmtmvK.js";import{t as G}from"./CI1dnt7A.js";import{t as z}from"./DYY_lUcY.js";import{t as K}from"./iwRyItez.js";import{t as J}from"./C8VEHNRd.js";import{t as Z}from"./CAQ_gy_J.js";import{t as q}from"./DZ8S0lCE.js";import{t as Q}from"./e0i_c5fa.js";import{t as X}from"./DjmiQ-C4.js";import{t as ee}from"./DRoM9oMC.js";import{t as te}from"./B9bss3Xw.js";import{a as se,i as ie}from"./DKUr-1Hw.js";import{n as ne,t as ae}from"./DPW4ulkG.js";import{t as re}from"./BMMP1-sO.js";var oe,le,ue={class:"block w-full rounded-xl bg-white p-4 shadow-[0_12px_0_0_var(--color-primary)]"},he={class:"mb-4 flex items-center justify-between gap-2"},de={class:"text-base font-bold"},ce={class:"grid grid-cols-7 gap-1 text-center text-xs font-bold text-neutral-500"},me={class:"grid grid-cols-7 gap-1"},fe=o({__name:"BaseCalendar",props:{modelValue:{},minDate:{default:void 0}},emits:["update:modelValue","date-select"],setup(e,{emit:t}){const s=e,n=t,o=m(new Date(s.modelValue||s.minDate||new Date)),h=S(()=>o.value.toLocaleDateString(void 0,{month:"long",year:"numeric"})),d=S(()=>{const e=new Date(2026,0,4);return Array.from({length:7},(t,s)=>{const i=new Date(e);return i.setDate(e.getDate()+s),i.toLocaleDateString(void 0,{weekday:"short"})})}),v=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),_=(e,t)=>Boolean(e&&t&&v(e).getTime()===v(t).getTime()),k=e=>!!s.minDate&&v(e)<v(s.minDate),w=S(()=>{const e=o.value.getFullYear(),t=o.value.getMonth(),i=new Date(e,t,1),n=new Date(i);return n.setDate(i.getDate()-i.getDay()),Array.from({length:42},(e,i)=>{const a=new Date(n);return a.setDate(n.getDate()+i),{date:a,inMonth:a.getMonth()===t,today:_(a,new Date),selected:_(a,s.modelValue),disabled:k(a)}})}),D=e=>{o.value=new Date(o.value.getFullYear(),o.value.getMonth()+e,1)};return(e,t)=>(r(),g("div",ue,[f("div",he,[c(E,{type:"button",variant:"unstyled",class:"grid h-9 w-9 place-items-center rounded-lg hover:bg-secondary",onClick:t[0]||(t[0]=e=>D(-1))},{default:u(()=>[c(y(L),{class:"h-4 w-4 rtl:rotate-180"})]),_:1}),f("h3",de,a(y(h)),1),c(E,{type:"button",variant:"unstyled",class:"grid h-9 w-9 place-items-center rounded-lg hover:bg-secondary",onClick:t[1]||(t[1]=e=>D(1))},{default:u(()=>[c(y(P),{class:"h-4 w-4 rtl:rotate-180"})]),_:1})]),f("div",ce,[(r(!0),g(b,null,l(y(d),e=>(r(),g("span",{key:e,class:"py-2"},a(e),1))),128))]),f("div",me,[(r(!0),g(b,null,l(y(w),e=>(r(),p(E,{key:e.date.toISOString(),type:"button",variant:"unstyled",class:i(["grid h-12 w-full place-items-center rounded-xl text-sm font-bold transition disabled:cursor-not-allowed disabled:opacity-30",[e.inMonth?"text-neutral-900":"text-neutral-400",e.today&&!e.selected?"border-2 border-primary bg-primary-8":"",e.selected?"bg-primary text-white":"hover:bg-secondary"]]),disabled:e.disabled,onClick:t=>{return s=e.date,void(k(s)||(n("update:modelValue",s),n("date-select",s)));var s}},{default:u(()=>[T(a(e.date.getDate()),1)]),_:2},1032,["class","disabled","onClick"]))),128))])]))}}),pe=Object.assign(fe,{__name:"BaseCalendar"});function ye(){return oe.apply(null,arguments)}function ge(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function ve(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function _e(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ke(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(_e(e,t))return!1;return!0}function be(e){return void 0===e}function we(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function Se(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function De(e,t){var s,i=[],n=e.length;for(s=0;s<n;++s)i.push(t(e[s],s));return i}function Te(e,t){for(var s in t)_e(t,s)&&(e[s]=t[s]);return _e(t,"toString")&&(e.toString=t.toString),_e(t,"valueOf")&&(e.valueOf=t.valueOf),e}function xe(e,t,s,i){return ei(e,t,s,i,!0).utc()}function Me(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invali
vendor: 59,277 bytes, line 1
1dMonth:null,invalidOffset:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function Ce(e){var t=null,s=!1,i=e._d&&!isNaN(e._d.getTime());return i&&(t=Me(e),s=le.call(t.parsedDateParts,function(e){return null!=e}),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidOffset&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&s),e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?i:(e._isValid=i,e._isValid)}function Ye(e){var t=xe(NaN);return null!=e?Te(Me(t),e):Me(t).userInvalidated=!0,t}le=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),s=t.length>>>0,i=0;i<s;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};var Oe=ye.momentProperties=[],Ie=!1;function Re(e,t){var s,i,n,a=Oe.length;if(be(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),be(t._i)||(e._i=t._i),be(t._f)||(e._f=t._f),be(t._l)||(e._l=t._l),be(t._strict)||(e._strict=t._strict),be(t._tzm)||(e._tzm=t._tzm),be(t._isUTC)||(e._isUTC=t._isUTC),be(t._offset)||(e._offset=t._offset),be(t._pf)||(e._pf=Me(t)),be(t._locale)||(e._locale=t._locale),a>0)for(s=0;s<a;s++)be(n=t[i=Oe[s]])||(e[i]=n);return e}function He(e){Re(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Ie&&(Ie=!0,ye.updateOffset(this),Ie=!1)}function Ne(e){return e instanceof He||null!=e&&null!=e._isAMomentObject}function Ve(e){!1===ye.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn}function Ae(e,t){var s=!0;return Te(function(){if(null!=ye.deprecationHandler&&ye.deprecationHandler(null,e),s){var i,n,a,r=[],o=arguments.length;for(n=0;n<o;n++){if(i="","object"==typeof arguments[n]){for(a in i+="\n["+n+"] ",arguments[0])_e(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[n];r.push(i)}Ve((Array.prototype.slice.call(r).join(""),(new Error).stack)),s=!1}return t.apply(this,arguments)},t)}var Le={};function Pe(e,t){null!=ye.deprecationHandler&&ye.deprecationHandler(e,t),Le[e]||(Ve((new Error).stack),Le[e]=!0)}function Fe(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}ye.suppressDeprecationWarnings=!1,ye.deprecationHandler=null;var Ee={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 $e(e){return"string"==typeof e?Ee[e]||Ee[e.toLowerCase()]:void 0}function Ue(e){var t,s,i={};for(s in e)_e(e,s)&&(t=$e(s))&&(i[t]=e[s]);return i}var We={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 Be(e,t,s){var i=""+Math.abs(e),n=t-i.length;return(e>=0?s?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+i}var je=/(\[[^\[]*\])|(\\e)|(\\)?(eHHmm|[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,Ge=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ze={},Ke={};function Je(e,t,s,i){var n=i;"string"==typeof i&&(n=function(){return this[i]()}),e&&(Ke[e]=n),t&&(Ke[t[0]]=function(){return Be(n.apply(this,arguments),t[1],t[2])}),s&&(Ke[s]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function Ze(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function qe(e,t){if(!e.isValid())return e.localeData().invalidDate();var s="$"+(t=Qe(t,e.localeData()));return _e(ze,s)||(ze[s]=function(e){for(var t=e.match(je),s=0,i=t.length;s<i;s++)Ke[t[s]]?t[s]=Ke[t[s]]:t[s]=Ze(t[s]);return function(s){for(var n="",a=0;a<i;a++)n+=Fe(t[a])?t[a].call(s,e):t[a];return n}}(t)),ze[s](e)}function Qe(e,t){var s=5;function i(e){return t.longDateFormat(e)||e}for(Ge.lastIndex=0;s>=0&&Ge.test(e);)e=e.replace(Ge,i),Ge.lastIndex=0,s-=1;return e}var Xe=/\d/,et=/\d\d/,tt=/\d{3}/,st=/\d{4}/,it=/[+-]?\d{6}/,nt=/\d\d?/,at=/\d\d\d\d?/,rt=/\d\d\d\d\d\d?/,ot=/\d{1,3}/,lt=/\d{1,4}/,ut=/[+-]?\d{1,6}/,ht=/\d+/,dt=/[+-]?\d+/,ct=/Z|[+-]\d\d:?\d\d/gi,mt=/Z|[+-]\d\d(?::?\d\d)?/gi,ft=/[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,pt=/^[1-9]\d?/,yt=/^([1-9]\d|\d)/,gt={};function vt(e,t,s){gt[e]=Fe(t)?t:function(e,i){return e&&s?s:t}}function _t(e,t){return _e(gt,e)?gt[e](t._strict,t._locale):new RegExp(kt(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,s,i,n){return t||s||i||n})))}function kt(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function bt(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function wt(e){var t=+e,s=0;return 0!==t&&isFinite(t)&&(s=bt(t)),s}var St={};function Dt(e,t){var s,i,n=t;for("string"==typeof e&&(e=[e]),we(t)&&(n=function(e,s){s[t]=wt(e)}),i=e.length,s=0;s<i;s++)St[e[s]]=n}function Tt(e,t){Dt(e,function(e,s,i,n){i._w=i._w||{},t(e,i._w,i,n)})}function xt(e,t,s){null!=t&&_e(St,e)&&St[e](t,s._a,s,e)}function Mt(e){return e%4==0&&e%100!=0||e%400==0}var Ct=0,Yt=1,Ot=2,It=3,Rt=4,Ht=5,Nt=6,Vt=7,At=8;function Lt(e){return Mt(e)?366:365}Je("Y",0,0,function(){var e=this.year();return e<=9999?Be(e,4):"+"+e}),Je(0,["YY",2],0,function(){return this.year()%100}),Je(0,["YYYY",4],0,"year"),Je(0,["YYYYY",5],0,"year"),Je(0,["YYYYYY",6,!0],0,"year"),vt("Y",dt),vt("YY",nt,et),vt("YYYY",lt,st),vt("YYYYY",ut,it),vt("YYYYYY",ut,it),Dt(["YYYYY","YYYYYY"],Ct),Dt("YYYY",function(e,t){t[Ct]=2===e.length?ye.parseTwoDigitYear(e):wt(e)}),Dt("YY",function(e,t){t[Ct]=ye.parseTwoDigitYear(e)}),Dt("Y",function(e,t){t[Ct]=parseInt(e,10)}),ye.parseTwoDigitYear=function(e){return wt(e)+(wt(e)>68?1900:2e3)};var Pt,Ft=Et("FullYear",!0);function Et(e,t){return function(s){return null!=s?(Ut(this,e,s),ye.updateOffset(this,t),this):$t(this,e)}}function $t(e,t){if(!e.isValid())return NaN;var s=e._d,i=e._isUTC;switch(t){case"Milliseconds":return i?s.getUTCMilliseconds():s.getMilliseconds();case"Seconds":return i?s.getUTCSeconds():s.getSeconds();case"Minutes":return i?s.getUTCMinutes():s.getMinutes();case"Hours":return i?s.getUTCHours():s.getHours();case"Date":return i?s.getUTCDate():s.getDate();case"Day":return i?s.getUTCDay():s.getDay();case"Month":return i?s.getUTCMonth():s.getMonth();case"FullYear":return i?s.getUTCFullYear():s.getFullYear();default:return NaN}}function Ut(e,t,s){var i,n,a,r,o;if(e.isValid()&&!isNaN(s)){switch(i=e._d,n=e._isUTC,t){case"Milliseconds":return void(n?i.setUTCMilliseconds(s):i.setMilliseconds(s));case"Seconds":return void(n?i.setUTCSeconds(s):i.setSeconds(s));case"Minutes":return void(n?i.setUTCMinutes(s):i.setMinutes(s));case"Hours":return void(n?i.setUTCHours(s):i.setHours(s));case"Date":return void(n?i.setUTCDate(s):i.setDate(s));case"FullYear":break;default:return}a=s,r=e.month(),o=29!==(o=e.date())||1!==r||Mt(a)?o:28,n?i.setUTCFullYear(a,r,o):i.setFullYear(a,r,o)}}function Wt(e,t){if(isNaN(e)||isNaN(t))return NaN;var s=(t%12+12)%12;return e+=(t-s)/12,1===s?Mt(e)?29:28:31-s%7%2}Pt=Array.prototype.indexOf?Array.prototype.indexOf:function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},Je("M",["MM",2],"Mo",function(){return this.month()+1}),Je("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),Je("MMMM",0,0,function(e){return this.localeData().months(this,e)}),vt("M",nt,pt),vt("MM",nt,et),vt("MMM",function(e,t){return t.monthsShortRegex(e)}),vt("MMMM",function(e,t){return t.monthsRegex(e)}),Dt(["M","MM"],function(e,t){t[Yt]=wt(e)-1}),Dt(["MMM","MMMM"],function(e,t,s,i){var n=s._locale.monthsParse(e,i,s._strict);null!=n?t[Yt]=n:Me(s).invalidMonth=e});var Bt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),jt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Gt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,zt=ft,Kt=ft,Jt=["monthsParse","longMonthsParse","shortMonthsParse","monthsRegex","monthsShortRegex","monthsStrictRegex","monthsShortStrictRegex"];function Zt(e,t,s){var i,n,a,r=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)a=xe([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(a,"").toLocaleLowerCase();return s?"MMM"===t?-1!==(n=Pt.call(this._shortMonthsParse,r))?n:null:-1!==(n=Pt.call(this._longMonthsParse,r))?n:null:"MMM"===t?-1!==(n=Pt.call(this._shortMonthsParse,r))||-1!==(n=Pt.call(this._longMonthsParse,r))?n:null:-1!==(n=Pt.call(this._longMonthsParse,r))||-1!==(n=Pt.call(this._shortMonthsParse,r))?n:null}function qt(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=wt(t);else if(!we(t=e.localeData().monthsParse(t)))return e;var s=t,i=e.date();return i=i<29?i:Math.min(i,Wt(e.year(),s)),e._isUTC?e._d.setUTCMonth(s,i):e._d.setMonth(s,i),e}function Qt(e){return null!=e?(qt(this,e),ye.updateOffset(this,!0),this):$t(this,"Month")}function Xt(){function e(e,t){return t.length-e.length}for(var t,s,i,n=[],a=[],r=[],o=0;o<12;o++)t=xe([2e3,o]),s=kt(this.monthsShort(t,"")),i=kt(this.months(t,"")),n.push(s),a.push(i),r.push(i),r.push(s);n.sort(e),a.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function es(e,t){return e.slice(t,7).concat(e.slice(0,t))}Je("d",0,"do","day"),Je("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),Je("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),Je("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),Je("e",0,0,"weekday"),Je("E",0,0,"isoWeekday"),Je("eHHmm",0,0,function(){return""+this.weekday()+Be(this.hours(),2)+Be(this.minutes(),2)}),vt("d",nt),vt("e",nt),vt("E",nt),vt("eHHmm",rt),vt("dd",function(e,t){return t.weekdaysMinRegex(e)}),vt("ddd",function(e,t){return t.weekdaysShortRegex(e)}),vt("dddd",function(e,t){return t.weekdaysRegex(e)}),Tt(["dd","ddd","dddd"],function(e,t,s,i){var n=s._locale.weekdaysParse(e,i,s._strict);null!=n?t.d=n:Me(s).invalidWeekday=e}),Tt(["d","e","E"],function(e,t,s,i){t[i]=wt(e)}),Tt("eHHmm",function(e,t,s){var i=e.length-4;t.e=wt(e.substr(0,i)),s._a[It]=wt(e.substr(i,2)),s._a[Rt]=wt(e.substr(i+2))});var ts,ss="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),is="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ns="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),as=ft,rs=ft,os=ft,ls=["weekdaysParse","fullWeekdaysParse","shortWeekdaysParse","minWeekdaysParse","weekdaysRegex","weekdaysShortRegex","weekdaysMinRegex","weekdaysStrictRegex","weekdaysShortStrictRegex","weekdaysMinStrictRegex"];function us(e,t,s){var i,n,a,r=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)a=xe([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(a,"").toLocaleLowerCase();return s?"dddd"===t?-1!==(n=Pt.call(this._weekdaysParse,r))?n:null:"ddd"===t?-1!==(n=Pt.call(this._shortWeekdaysParse,r))?n:null:-1!==(n=Pt.call(this._minWeekdaysParse,r))?n:null:"dddd"===t?-1!==(n=Pt.call(this._weekdaysParse,r))||-1!==(n=Pt.call(this._shortWeekdaysParse,r))||-1!==(n=Pt.call(this._minWeekdaysParse,r))?n:null:"ddd"===t?-1!==(n=Pt.call(this._shortWeekdaysParse,r))||-1!==(n=Pt.call(this._weekdaysParse,r))||-1!==(n=Pt.call(this._minWeekdaysParse,r))?n:null:-1!==(n=Pt.call(this._minWeekdaysParse,r))||-1!==(n=Pt.call(this._weekdaysParse,r))||-1!==(n=Pt.call(this._shortWeekdaysParse,r))?n:null}function hs(){function e(e,t){return t.length-e.length}for(var t,s,i,n,a=[],r=[],o=[],l=[],u=0;u<7;u++)t=xe([2e3,1]).day(u),s=kt(this.weekdaysMin(t,"")),i=kt(this.weekdaysShort(t,"")),n=kt(this.weekdays(t,"")),a.push(s),r.push(i),o.push(n),l.push(s),l.push(i),l.push(n);a.sort(e),r.sort(e),o.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ds(e,t){var s,i=Te({},e);for(s in t)_e(t,s)&&(ve(e[s])&&ve(t[s])?(i[s]={},Te(i[s],e[s]),Te(i[s],t[s])):null!=t[s]?i[s]=t[s]:delete i[s]);for(s in e)_e(e,s)&&!_e(t,s)&&ve(e[s])&&(i[s]=Te({},i[s]));return i}function cs(e){null!=e&&this.set(e)}function ms(e,t,s,i){var n=this._relativeTime[s];return Fe(n)?n(e,t,s,i):n.replace(/%d/i,e)}function fs(e,t){var s=this._relativeTime[e>0?"future":"past"];return Fe(s)?s(t):s.replace(/%s/i,t)}function ps(e,t,s,i,n,a,r){var o;return e<100&&e>=0?(o=new Date(e+400,t,s,i,n,a,r),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,s,i,n,a,r),o}function ys(e){var t,s;return e<100&&e>=0?((s=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,s)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function gs(e,t,s){var i=7+t-s;return-(7+ys(e,0,i).getUTCDay()-t)%7+i-1}function vs(e,t,s,i,n){var a,r,o=1+7*(t-1)+(7+s-i)%7+gs(e,i,n);return o<=0?r=Lt(a=e-1)+o:o>Lt(e)?(a=e+1,r=o-Lt(e)):(a=e,r=o),{year:a,dayOfYear:r}}function _s(e,t,s,i){var n,a,r=gs(e,s,i),o=Math.floor((t-r-1)/7)+1;return o<1?n=o+ws(a=e-1,s,i):o>ws(e,s,i)?(n=o-ws(e,s,i),a=e+1):(a=e,n=o),{week:n,year:a}}function ks(e,t,s){return _s(e.year(),e.dayOfYear(),t,s)}function bs(e,t,s,i,n){return _s(e,Math.round((ys(e,t,s)-ys(e,0,1))/864e5)+1,i,n)}function ws(e,t,s){var i=gs(e,t,s),n=gs(e+1,t,s);return(Lt(e)-i+n)/7}function Ss(){return this.hours()%12||12}function Ds(e,t){Je(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ts(e,t){return t._meridiemParse}ts=Object.keys?Object.keys:function(e){var t,s=[];for(t in e)_e(e,t)&&s.push(t);return s},Je("w",["ww",2],"wo","week"),Je("W",["WW",2],"Wo","isoWeek"),vt("w",nt,pt),vt("ww",nt,et),vt("W",nt,pt),vt("WW",nt,et),Tt(["w","ww","W","WW"],function(e,t,s,i){t[i.substr(0,1)]=wt(e)}),Je("H",["HH",2],0,"hour"),Je("h",["hh",2],0,Ss),Je("k",["kk",2],0,function(){return this.hours()||24}),Je("hmm",0,0,function(){return""+Ss.apply(this)+Be(this.minutes(),2)}),Je("hmmss",0,0,function(){return""+Ss.apply(this)+Be(this.minutes(),2)+Be(this.seconds(),2)}),Je("Hmm",0,0,function(){return""+this.hours()+Be(this.minutes(),2)}),Je("Hmmss",0,0,function(){return""+this.hours()+Be(this.minutes(),2)+Be(this.seconds(),2)}),Ds("a",!0),Ds("A",!1),vt("a",Ts),vt("A",Ts),vt("H",nt,yt),vt("h",nt,pt),vt("k",nt,pt),vt("HH",nt,et),vt("hh",nt,et),vt("kk",nt,et),vt("hmm",at),vt("hmmss",rt),vt("Hmm",at),vt("Hmmss",rt),Dt(["H","HH"],It),Dt(["k","kk"],function(e,t,s){var i=wt(e);t[It]=24===i?0:i}),Dt(["a","A"],function(e,t,s){s._isPm=s._locale.isPM(e),s._meridiem=e}),Dt(["h","hh"],function(e,t,s){t[It]=wt(e),Me(s).bigHour=!0}),Dt("hmm",function(e,t,s){var i=e.length-2;t[It]=wt(e.substr(0,i)),t[Rt]=wt(e.substr(i)),Me(s).bigHour=!0}),Dt("hmmss",function(e,t,s){var i=e.length-4,n=e.length-2;t[It]=wt(e.substr(0,i)),t[Rt]=wt(e.substr(i,2)),t[Ht]=wt(e.substr(n)),Me(s).bigHour=!0}),Dt("Hmm",function(e,t,s){var i=e.length-2;t[It]=wt(e.substr(0,i)),t[Rt]=wt(e.substr(i))}),Dt("Hmmss",function(e,t,s){var i=e.length-4,n=e.length-2;t[It]=wt(e.substr(0,i)),t[Rt]=wt(e.substr(i,2)),t[Ht]=wt(e.substr(n))});var xs,Ms=Et("Hours",!0),Cs={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Bt,monthsShort:jt,week:{dow:0,doy:6},weekdays:ss,weekdaysMin:ns,weekdaysShort:is,meridiemParse:/[ap]\.?m?\.?/i},Ys={},Os={};function Is(e,t){var s,i=Math.min(e.length,t.length);for(s=0;s<i;s+=1)if(e[s]!==t[s])return s;return i}function Rs(e){return e?e.toLowerCase().replace("_","-"):e}function Hs(e){var t,s=null;if(_e(Ys,e))return Ys[e];if(t=Rs(e),_e(Ys,t))return Ys[t];if("undefined"!=typeof module&&module&&module.exports&&function(e){return"string"==typeof e&&/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(e)}(t))try{s=xs._abbr,V("./locale/"+t),Ns(s)}catch(i){Ys[t]=null}return _e(Ys,t)?Ys[t]:void 0}function Ns(e,t){var s;return e&&((s=be(t)?As(e):Vs(e,t))?xs=s:"undefined"!=typeof console&&console.warn),xs._abbr}function Vs(e,t){if(null!==t){var s,i=Cs;if(t.abbr=e,null!=Ys[e])Pe("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."),i=Ys[e]._config;else if(null!=t.parentLocale)if(null!=Ys[t.parentLocale])i=Ys[t.parentLocale]._config;else{if(null==(s=Hs(t.parentLocale)))return Os[t.parentLocale]||(Os[t.parentLocale]=[]),Os[t.parentLocale].push({name:e,config:t}),null;i=s._config}return Ys[e]=new cs(ds(i,t)),Os[e]&&Os[e].forEach(function(e){Vs(e.name,e.config)}),Ns(e),Ys[e]}return delete Ys[e],null}function As(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return xs;if(!ge(e)){if(t=Hs(e))return t;e=[e]}return function(e){for(var t,s,i,n,a=0;a<e.length;){for(t=(n=Rs(e[a]).split("-")).length,s=(s=Rs(e[a+1]))?s.split("-"):null;t>0;){if(i=Hs(n.slice(0,t).join("-")))return i;if(s&&s.length>=t&&Is(n,s)>=t-1)break;t--}a++}return xs}(e)}function Ls(e){var t,s=e._a;return s&&-2===Me(e).overflow&&(t=s[Yt]<0||s[Yt]>11?Yt:s[Ot]<1||s[Ot]>Wt(s[Ct],s[Yt])?Ot:s[It]<0||s[It]>24||24===s[It]&&(0!==s[Rt]||0!==s[Ht]||0!==s[Nt])?It:s[Rt]<0||s[Rt]>59?Rt:s[Ht]<0||s[Ht]>59?Ht:s[Nt]<0||s[Nt]>999?Nt:-1,Me(e)._overflowDayOfYear&&(t<Ct||t>Ot)&&(t=Ot),Me(e)._overflowWeeks&&-1===t&&(t=Vt),Me(e)._overflowWeekday&&-1===t&&(t=At),Me(e).overflow=t),e}var Ps=/^\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)?)?$/,Fs=/^\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)?)?$/,Es=/Z|[+-]\d\d(?::?\d\d)?/,$s=[["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]],Us=[["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/]],Ws=/^\/?Date\((-?\d+)/i,Bs=/^(?:(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}))$/,js={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Gs(e){var t,s,i,n,a,r,o=e._i,l=Ps.exec(o)||Fs.exec(o),u=$s.length,h=Us.length;if(l){for(Me(e).iso=!0,t=0,s=u;t<s;t++)if($s[t][1].exec(l[1])){n=$s[t][0],i=!1!==$s[t][2];break}if(null==n)return void(e._isValid=!1);if(l[3]){for(t=0,s=h;t<s;t++)if(Us[t][1].exec(l[3])){a=(l[2]||" ")+Us[t][0];break}if(null==a)return void(e._isValid=!1)}if(!i&&null!=a)return void(e._isValid=!1);if(l[4]){if(!Es.exec(l[4]))return void(e._isValid=!1);r="Z"}e._f=n+(a||"")+(r||""),Qs(e)}else e._isValid=!1}function zs(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Ks(e){var t,s,i,n,a,r,o,l,u=Bs.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){if(s=u[4],i=u[3],n=u[2],a=u[5],r=u[6],o=u[7],l=[zs(s),jt.indexOf(i),parseInt(n,10),parseInt(a,10),parseInt(r,10)],o&&l.push(parseInt(o,10)),t=l,!function(e,t,s){return!e||is.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(Me(s).weekdayMismatch=!0,s._isValid=!1,!1)}(u[1],t,e))return;e._a=t,e._tzm=function(e,t,s){if(e)return js[e];if(t)return 0;var i=parseInt(s,10),n=i%100;return(i-n)/100*60+n}(u[8],u[9],u[10]),e._d=ys.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Me(e).rfc2822=!0}else e._isValid=!1}function Js(e,t,s){return null!=e?e:null!=t?t:s}function Zs(e,t,s){var i=Object.prototype.hasOwnProperty.call(e,"_isDefaultDatePartsForWeek"),n=e._isDefaultDatePartsForWeek;e._isDefaultDatePartsForWeek=!!s;try{return ye._getDefaultDateParts(e,t,s)}finally{i?e._isDefaultDatePartsForWeek=n:delete e._isDefaultDatePartsForWeek}}function qs(e){var t,s,i,n,a,r,o,l=[];if(!e._d){for(null!=e._a[Ct]&&null!=e._a[Yt]&&null!=e._a[Ot]||(i=function(e){var t=e._defaultDatePartsNow;return t?(t.hasValue||(t.value=ye.now(),t.hasValue=!0),t.value):ye.now()}(e),n=Zs(e,i)),e._w&&null==e._a[Ot]&&null==e._a[Yt]&&function(e,t){var s,i,n,a,r,o,l,u,h=e._w;null!=h.GG||null!=h.W||null!=h.E?(a=1,r=4,s=Js(h.GG,e._a[Ct],bs(t[Ct],t[Yt],t[Ot],1,4).year),i=Js(h.W,1),((n=Js(h.E,1))<1||n>7)&&(l=!0)):(a=e._locale._week.dow,r=e._locale._week.doy,u=bs(t[Ct],t[Yt],t[Ot],a,r),s=Js(h.gg,e._a[Ct],u.year),i=Js(h.w,u.week),null!=h.d?((n=h.d)<0||n>6)&&(l=!0):null!=h.e?(n=h.e+a,(h.e<0||h.e>6)&&(l=!0)):n=a),i<1||i>ws(s,a,r)?Me(e)._overflowWeeks=!0:null!=l?Me(e)._overflowWeekday=!0:(o=vs(s,i,n,a,r),e._a[Ct]=o.year,e._dayOfYear=o.dayOfYear)}(e,Zs(e,i,!0)),null!=e._dayOfYear&&(r=null!=e._a[Ct]?e._a[Ct]:n[Ct],(e._dayOfYear>Lt(r)||0===e._dayOfYear)&&(Me(e)._overflowDayOfYear=!0),s=ys(r,0,e._dayOfYear),e._a[Yt]=s.getUTCMonth(),e._a[Ot]=s.getUTCDate()),o=null==e._a[Ct]||null==e._a[Yt]||null==e._a[Ot],t=0;t<3&&null==e._a[t];++t)e._a[t]=l[t]=n[t];for(;t<7;t++)e._a[t]=l[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[It]&&0===e._a[Rt]&&0===e._a[Ht]&&0===e._a[Nt]&&(e._nextDay=!0,e._a[It]=0),e._d=(e._useUTC?ys:ps).apply(null,l),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[It]=24),e._w&&void 0!==e._w.d&&!o&&e._w.d!==a&&(Me(e).weekdayMismatch=!0)}}function Qs(e){if(e._f!==ye.ISO_8601)if(e._f!==ye.RFC_2822){e._a=[],Me(e).empty=!0;var t,s,i,n,a,r,o,l=""+e._i,u=l.length,h=0;for(o=(i=Qe(e._f,e._locale).match(je)||[]).length,t=0;t<o;t++)n=i[t],(s=(l.match(_t(n,e))||[])[0])&&((a=l.substr(0,l.indexOf(s))).length>0&&Me(e).unusedInput.push(a),l=l.slice(l.indexOf(s)+s.length),h+=s.length),Ke[n]?(s?Me(e).empty=!1:Me(e).unusedTokens.push(n),xt(n,s,e)):e._strict&&!s&&Me(e).unusedTokens.push(n);Me(e).charsLeftOver=u-h,l.length>0&&Me(e).unusedInput.push(l),e._a[It]<=12&&!0===Me(e).bigHour&&e._a[It]>0&&(Me(e).bigHour=void 0),Me(e).parsedDateParts=e._a.slice(0),Me(e).meridiem=e._meridiem,e._a[It]=function(e,t,s){var i;return null==s?t:null!=e.meridiemHour?e.meridiemHour(t,s):null!=e.isPM?((i=e.isPM(s))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}(e._locale,e._a[It],e._meridiem),null!==(r=Me(e).era)&&(e._a[Ct]=e._locale.erasConvertYear(r,e._a[Ct])),qs(e),Ls(e)}else Ks(e);else Gs(e)}function Xs(e){var t=e._i,s=e._f;return e._locale=e._locale||As(e._l),null===t||void 0===s&&""===t?Ye({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),Ne(t)?new He(Ls(t)):(Se(t)?e._d=t:ge(s)?function(e){var t,s,i,n,a,r,o=!1,l={},u=e._f.length;if(0===u)return Me(e).invalidFormat=!0,void(e._d=new Date(NaN));for(n=0;n<u;n++)a=0,r=!1,t=Re({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._defaultDatePartsNow=l,t._f=e._f[n],Qs(t),Ce(t)&&(r=!0),a+=Me(t).charsLeftOver,a+=10*Me(t).unusedTokens.length,Me(t).score=a,o?a<i&&(i=a,s=t):(null==i||a<i||r)&&(i=a,s=t,r&&(o=!0));Te(e,s||t)}(e):s?Qs(e):function(e){var t=e._i;be(t)?e._d=new Date(ye.now()):Se(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=Ws.exec(e._i);null===t?(Gs(e),!1===e._isValid&&(delete e._isValid,Ks(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:ye.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):ge(t)?(e._a=De(t.slice(0),function(e){return parseInt(e,10)}),qs(e)):ve(t)?function(e){if(!e._d){var t=Ue(e._i),s=void 0===t.day?t.date:t.day;e._a=De([t.year,t.month,s,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),qs(e)}}(e):we(t)?e._d=new Date(t):ye.createFromInputFallback(e)}(e),Ce(e)||(e._d=null),e))}function ei(e,t,s,i,n){var a,r={};return!0!==t&&!1!==t||(i=t,t=void 0),!0!==s&&!1!==s||(i=s,s=void 0),(ve(e)&&ke(e)||ge(e)&&0===e.length)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=n,r._l=s,r._i=e,r._f=t,r._strict=i,(a=new He(Ls(Xs(r))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function ti(e,t,s,i){return ei(e,t,s,i,!1)}ye.createFromInputFallback=Ae("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":""))}),ye._getDefaultDateParts=function(e,t,s){var i=s||e._isDefaultDatePartsForWeek,n=i?ti(t):new Date(t);return i?[n.year(),n.month(),n.date()]:e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]},ye.ISO_8601=function(){},ye.RFC_2822=function(){};var si=Ae("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ti.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Ye()}),ii=Ae("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ti.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Ye()});function ni(e,t){var s,i;if(1===t.length&&ge(t[0])&&(t=t[0]),!t.length)return ti();for(i=0;i<t.length;++i)if(Ne(t[i])){s=t[i];break}if(!s)return Ye();for(++i;i<t.length;++i)!Ne(t[i])||t[i].isValid()&&!t[i][e](s)||(s=t[i]);return s}var ai=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ri(e){var t=Ue(e),s=t.year||0,i=t.quarter||0,n=t.month||0,a=t.week||t.isoWeek||0,r=t.day||0,o=t.hour||0,l=t.minute||0,u=t.second||0,h=t.millisecond||0;this._isValid=function(e){var t,s,i=!1,n=ai.length;for(t in e)if(_e(e,t)&&(-1===Pt.call(ai,t)||null!=e[t]&&isNaN(e[t])))return!1;for(s=0;s<n;++s)if(e[ai[s]]){if(i)return!1;parseFloat(e[ai[s]])!==wt(e[ai[s]])&&(i=!0)}return!0}(t),this._milliseconds=+h+1e3*u+6e4*l+1e3*o*60*60,this._days=+r+7*a,this._months=+n+3*i+12*s,this._data={},this._locale=As(),this._bubble()}function oi(e){return e instanceof ri}function li(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function ui(e,t){Je(e,0,0,function(){var e=this.utcOffset(),s="+";return e<0&&(e=-e,s="-"),s+Be(~~(e/60),2)+t+Be(~~e%60,2)})}ui("Z",":"),ui("ZZ",""),vt("Z",mt),vt("ZZ",mt),Dt(["Z","ZZ"],function(e,t,s){var i=di(mt,e);s._useUTC=!0,s._tzm=i,null===i&&(Me(s).invalidOffset=e)});var hi=/([\+\-]|\d\d)/gi;function di(e,t){var s,i,n=(t||"").match(e);return null===n?null:(i=60*(s=((n[n.length-1]||[])+"").match(hi)||["-",0,0])[1]+wt(s[2]),wt(s[2])>59||("+"===s[0]?i>840:i>720)?null:0===i?0:"+"===s[0]?i:-i)}function ci(e,t){var s,i;return t._isUTC?(s=t.clone(),i=(Ne(e)||Se(e)?e.valueOf():ti(e).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+i),ye.updateOffset(s,!1),s):ti(e).local()}function mi(e){return-Math.round(e._d.getTimezoneOffset())}function fi(){return!!this.isValid()&&this._isUTC&&0===this._offset}ye.updateOffset=function(){};var pi=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,yi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function gi(e,t){var s,i,n,a,r,o,l=e,u=null;return oi(e)?l={ms:e._milliseconds,d:e._days,M:e._months}:we(e)||!isNaN(+e)?(l={},t?l[t]=+e:l.milliseconds=+e):(u=pi.exec(e))?(s="-"===u[1]?-1:1,l={y:0,d:wt(u[Ot])*s,h:wt(u[It])*s,m:wt(u[Rt])*s,s:wt(u[Ht])*s,ms:wt(li(1e3*u[Nt]))*s}):(u=yi.exec(e))?(s="-"===u[1]?-1:1,l={y:vi(u[2],s),M:vi(u[3],s),w:vi(u[4],s),d:vi(u[5],s),h:vi(u[6],s),m:vi(u[7],s),s:vi(u[8],s)}):null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(a=ti(l.from),r=ti(l.to),n=a.isValid()&&r.isValid()?(r=ci(r,a),a.isBefore(r)?o=_i(a,r):((o=_i(r,a)).milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0},(l={}).ms=n.milliseconds,l.M=n.months),i=new ri(l),oi(e)&&_e(e,"_locale")&&(i._locale=e._locale),oi(e)&&_e(e,"_isValid")&&(i._isValid=e._isValid),i}function vi(e,t){var s=e&&parseFloat(e.replace(",","."));return(isNaN(s)?0:s)*t}function _i(e,t){var s={};return s.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(s.months,"M").isAfter(t)&&--s.months,s.milliseconds=+t-+e.clone().add(s.months,"M"),s}function ki(e,t){return function(s,i){var n;return null===i||isNaN(+i)||(Pe(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."),n=s,s=i,i=n),bi(this,gi(s,i),e),this}}function bi(e,t,s,i){var n=t._milliseconds,a=li(t._days),r=li(t._months);e.isValid()&&(i=null==i||i,r&&qt(e,$t(e,"Month")+r*s),a&&Ut(e,"Date",$t(e,"Date")+a*s),n&&e._d.setTime(e._d.valueOf()+n*s),i&&ye.updateOffset(e,a||r))}gi.fn=ri.prototype,gi.invalid=function(){return gi(NaN)};var wi=ki(1,"add"),Si=ki(-1,"subtract");function Di(e){return"string"==typeof e||e instanceof String}function Ti(e,t){if(e.date()<t.date())return-Ti(t,e);var s=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(s,"months");return-(s+(t-i<0?(t-i)/(i-e.clone().add(s-1,"months")):(t-i)/(e.clone().add(s+1,"months")-i)))||0}function xi(e){var t;return void 0===e?this._locale._abbr:(null!=(t=As(e))&&(this._locale=t),this)}ye.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",ye.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Mi=Ae("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Ci(){return this._locale}var Yi=1e3,Oi=6e4,Ii=36e5,Ri=126227808e5;function Hi(e,t){return(e%t+t)%t}function Ni(e,t,s){return e<100&&e>=0?new Date(e+400,t,s)-Ri:new Date(e,t,s).valueOf()}function Vi(e,t,s){return e<100&&e>=0?Date.UTC(e+400,t,s)-Ri:Date.UTC(e,t,s)}function Ai(e,t){return t.erasAbbrRegex(e)}function Li(){var e,t,s,i,n,a=[],r=[],o=[],l=[],u=this.eras();for(e=0,t=u.length;e<t;++e)s=kt(u[e].name),i=kt(u[e].abbr),n=kt(u[e].narrow),r.push(s),a.push(i),o.push(n),l.push(s),l.push(i),l.push(n);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function Pi(e,t){Je(0,[e,e.length],0,t)}function Fi(e,t,s,i,n){var a;return null==e?ks(this,i,n).year:(t>(a=ws(e,i,n))&&(t=a),Ei.call(this,e,t,s,i,n))}function Ei(e,t,s,i,n){var a=vs(e,t,s,i,n),r=ys(a.year,0,a.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}Je("N",0,0,"eraAbbr"),Je("NN",0,0,"eraAbbr"),Je("NNN",0,0,"eraAbbr"),Je("NNNN",0,0,"eraName"),Je("NNNNN",0,0,"eraNarrow"),Je("y",["y",1],"yo","eraYear"),Je("y",["yy",2],0,"eraYear"),Je("y",["yyy",3],0,"eraYear"),Je("y",["yyyy",4],0,"eraYear"),vt("N",Ai),vt("NN",Ai),vt("NNN",Ai),vt("NNNN",function(e,t){return t.erasNameRegex(e)}),vt("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),Dt(["N","NN","NNN","NNNN","NNNNN"],function(e,t,s,i){var n=s._locale.erasParse(e,i,s._strict);n?Me(s).era=n:Me(s).invalidEra=e}),vt("y",ht),vt("yy",ht),vt("yyy",ht),vt("yyyy",ht),vt("yo",function(e,t){return t._eraYearOrdinalRegex||ht}),Dt(["y","yy","yyy","yyyy"],Ct),Dt(["yo"],function(e,t,s,i){var n;s._locale._eraYearOrdinalRegex&&(n=e.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?t[Ct]=s._locale.eraYearOrdinalParse(e,n):t[Ct]=parseInt(e,10)}),Je(0,["gg",2],0,function(){return this.weekYear()%100}),Je(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Pi("gggg","weekYear"),Pi("ggggg","weekYear"),Pi("GGGG","isoWeekYear"),Pi("GGGGG","isoWeekYear"),vt("G",dt),vt("g",dt),vt("GG",nt,et),vt("gg",nt,et),vt("GGGG",lt,st),vt("gggg",lt,st),vt("GGGGG",ut,it),vt("ggggg",ut,it),Tt(["gggg","ggggg","GGGG","GGGGG"],function(e,t,s,i){t[i.substr(0,2)]=wt(e)}),Tt(["gg","GG"],function(e,t,s,i){t[i]=ye.parseTwoDigitYear(e)}),Je("Q",0,"Qo","quarter"),vt("Q",Xe),Dt("Q",function(e,t){t[Yt]=3*(wt(e)-1)}),Je("D",["DD",2],"Do","date"),vt("D",nt,pt),vt("DD",nt,et),vt("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Dt(["D","DD"],Ot),Dt("Do",function(e,t){t[Ot]=wt(e.match(nt)[0])});var $i=Et("Date",!0);Je("DDD",["DDDD",3],"DDDo","dayOfYear"),vt("DDD",ot),vt("DDDD",tt),Dt(["DDD","DDDD"],function(e,t,s){s._dayOfYear=wt(e)}),Je("m",["mm",2],0,"minute"),vt("m",nt,yt),vt("mm",nt,et),Dt(["m","mm"],Rt);var Ui=Et("Minutes",!1);Je("s",["ss",2],0,"second"),vt("s",nt,yt),vt("ss",nt,et),Dt(["s","ss"],Ht);var Wi=Et("Seconds",!1);Je("S",0,0,function(){return~~(this.millisecond()/100)}),Je(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Je(0,["SSS",3],0,"millisecond"),Je(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Je(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Je(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Je(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Je(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Je(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),vt("S",ot,Xe),vt("SS",ot,et),vt("SSS",ot,tt);for(var Bi,ji="SSSS";ji.length<=9;ji+="S")vt(ji,ht);function Gi(e,t){t[Nt]=wt(1e3*("0."+e))}for(ji="S";ji.length<=9;ji+="S")Dt(ji,Gi);Bi=Et("Milliseconds",!1),Je("z",0,0,"zoneAbbr"),Je("zz",0,0,"zoneName");var zi=He.prototype;function Ki(e){return e}zi.add=wi,zi.calendar=function(e,t){var s;1===arguments.length&&(arguments[0]?Ne(s=arguments[0])||Se(s)||Di(s)||we(s)||function(e){var t=ge(e),s=!1;return t&&(s=0===e.filter(function(t){return!we(t)&&Di(e)}).length),t&&s}(s)||function(e){var t,s=ve(e)&&!ke(e),i=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=n.length;for(t=0;t<a;t+=1)i=i||_e(e,n[t]);return s&&i}(s)||null==s?(e=arguments[0],t=void 0):function(e){for(var t=ve(e)&&!ke(e),s=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n=0;n<i.length;n+=1)s=s||_e(e,i[n]);return t&&s}(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var i=e||ti(),n=ci(i,this).startOf("day"),a=ye.calendarFormat(this,n)||"sameElse",r=t&&(Fe(t[a])?t[a].call(this,i):t[a]);return this.format(r||this.localeData().calendar(a,this,ti(i)))},zi.clone=function(){return new He(this)},zi.diff=function(e,t,s){var i,n,a;if(!this.isValid())return NaN;if(!(i=ci(e,this)).isValid())return NaN;switch(n=6e4*(i.utcOffset()-this.utcOffset()),t=$e(t)){case"year":a=Ti(this,i)/12;break;case"month":a=Ti(this,i);break;case"quarter":a=Ti(this,i)/3;break;case"second":a=(this-i)/1e3;break;case"minute":a=(this-i)/6e4;break;case"hour":a=(this-i)/36e5;break;case"day":a=(this-i-n)/864e5;break;case"week":a=(this-i-n)/6048e5;break;default:a=this-i}return s?a:bt(a)},zi.endOf=function(e){var t,s;if(void 0===(e=$e(e))||"millisecond"===e||!this.isValid())return this;switch(s=this._isUTC?Vi:Ni,e){case"year":t=s(this.year()+1,0,1)-1;break;case"quarter":t=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=s(this.year(),this.month()+1,1)-1;break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Ii-Hi(t+(this._isUTC?0:this.utcOffset()*Oi),Ii)-1;break;case"minute":t=this._d.valueOf(),t+=Oi-Hi(t,Oi)-1;break;case"second":t=this._d.valueOf(),t+=Yi-Hi(t,Yi)-1}return this._d.setTime(t),ye.updateOffset(this,!0),this},zi.format=function(e){e||(e=this.isUtc()?ye.defaultFormatUtc:ye.defaultFormat);var t=qe(this,e);return this.localeData().postformat(t)},zi.from=function(e,t){return this.isValid()&&(Ne(e)&&e.isValid()||ti(e).isValid())?gi({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},zi.fromNow=function(e){return this.from(ti(),e)},zi.to=function(e,t){return this.isValid()&&(Ne(e)&&e.isValid()||ti(e).isValid())?gi({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},zi.toNow=function(e){return this.to(ti(),e)},zi.get=function(e){return Fe(this[e=$e(e)])?this[e]():this},zi.invalidAt=function(){return Me(this).overflow},zi.isAfter=function(e,t){var s=Ne(e)?e:ti(e);return!(!this.isValid()||!s.isValid())&&("millisecond"===(t=$e(t)||"millisecond")?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(t).valueOf())},zi.isBefore=function(e,t){var s=Ne(e)?e:ti(e);return!(!this.isValid()||!s.isValid())&&("millisecond"===(t=$e(t)||"millisecond")?this.valueOf()<s.valueOf():this.clone().endOf(t).valueOf()<s.valueOf())},zi.isBetween=function(e,t,s,i){var n=Ne(e)?e:ti(e),a=Ne(t)?t:ti(t);return!!(this.isValid()&&n.isValid()&&a.isValid())&&("("===(i=i||"()")[0]?this.isAfter(n,s):!this.isBefore(n,s))&&(")"===i[1]?this.isBefore(a,s):!this.isAfter(a,s))},zi.isSame=function(e,t){var s,i=Ne(e)?e:ti(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=$e(t)||"millisecond")?this.valueOf()===i.valueOf():(s=i.valueOf(),this.clone().startOf(t).valueOf()<=s&&s<=this.clone().endOf(t).valueOf()))},zi.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},zi.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},zi.isValid=function(){return Ce(this)},zi.lang=Mi,zi.locale=xi,zi.localeData=Ci,zi.max=ii,zi.min=si,zi.parsingFlags=function(){return Te({},Me(this))},zi.set=function(e,t){if("object"==typeof e){var s,i=function(e){var t,s=[];for(t in e)_e(e,t)&&s.push({unit:t,priority:We[t]});return s.sort(function(e,t){return e.priority-t.priority}),s}(e=Ue(e)),n=i.length;for(s=0;s<n;s++)this[i[s].unit](e[i[s].unit])}else if(Fe(this[e=$e(e)]))return this[e](t);return this},zi.startOf=function(e){var t,s;if(void 0===(e=$e(e))||"millisecond"===e||!this.isValid())return this;switch(s=this._isUTC?Vi:Ni,e){case"year":t=s(this.year(),0,1);break;case"quarter":t=s(this.year(),this.month()-this.month()%3,1);break;case"month":t=s(this.year(),this.month(),1);break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=s(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Hi(t+(this._isUTC?0:this.utcOffset()*Oi),Ii);break;case"minute":t=this._d.valueOf(),t-=Hi(t,Oi);break;case"second":t=this._d.valueOf(),t-=Hi(t,Yi)}return this._d.setTime(t),ye.updateOffset(this,!0),this},zi.subtract=Si,zi.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},zi.toObject=function(){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()}},zi.toDate=function(){return new Date(this.valueOf())},zi.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,s=t?this.clone().utc():this;return s.year()<0||s.year()>9999?qe(s,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Fe(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",qe(s,"Z")):qe(s,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},zi.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,s,i="moment",n="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s=n+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+s)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(zi[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),zi.toJSON=function(){return this.isValid()?this.toISOString():null},zi.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},zi.unix=function(){return Math.floor(this.valueOf()/1e3)},zi.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},zi.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},zi.eraName=function(){var e,t,s,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(s=this.clone().startOf("day").valueOf(),i[e].since<=s&&s<=i[e].until)return i[e].name;if(i[e].until<=s&&s<=i[e].since)return i[e].name}return""},zi.eraNarrow=function(){var e,t,s,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(s=this.clone().startOf("day").valueOf(),i[e].since<=s&&s<=i[e].until)return i[e].narrow;if(i[e].until<=s&&s<=i[e].since)return i[e].narrow}return""},zi.eraAbbr=function(){var e,t,s,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(s=this.clone().startOf("day").valueOf(),i[e].since<=s&&s<=i[e].until)return i[e].abbr;if(i[e].until<=s&&s<=i[e].since)return i[e].abbr}return""},zi.eraYear=function(){var e,t,s,i,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(s=n[e].since<=n[e].until?1:-1,i=this.clone().startOf("day").valueOf(),n[e].since<=i&&i<=n[e].until||n[e].until<=i&&i<=n[e].since)return(this.year()-ye(n[e].since).year())*s+n[e].offset;return this.year()},zi.year=Ft,zi.isLeapYear=function(){return Mt(this.year())},zi.weekYear=function(e){return Fi.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},zi.isoWeekYear=function(e){return Fi.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},zi.quarter=zi.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},zi.month=Qt,zi.daysInMonth=function(){return Wt(this.year(),this.month())},zi.week=zi.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},zi.isoWeek=zi.isoWeeks=function(e){var t=ks(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},zi.weeksInYear=function(){var e=this.localeData()._week;return ws(this.year(),e.dow,e.doy)},zi.weeksInWeekYear=function(){var e=this.localeData()._week;return ws(this.weekYear(),e.dow,e.doy)},zi.isoWeeksInYear=function(){return ws(this.year(),1,4)},zi.isoWeeksInISOWeekYear=function(){return ws(this.isoWeekYear(),1,4)},zi.date=$i,zi.day=zi.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=$t(this,"Day");return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},zi.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},zi.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},zi.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},zi.hour=zi.hours=Ms,zi.minute=zi.minutes=Ui,zi.second=zi.seconds=Wi,zi.millisecond=zi.milliseconds=Bi,zi.utcOffset=function(e,t,s){var i,n=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=di(mt,e)))return this}else Math.abs(e)<16&&!s&&(e*=60);return!this._isUTC&&t&&(i=mi(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),n!==e&&(!t||this._changeInProgress?bi(this,gi(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ye.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?n:mi(this)},zi.utc=function(e){return this.utcOffset(0,e)},zi.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mi(this),"m")),this},zi.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=di(ct,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},zi.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?ti(e).utcOffset():0,(this.utcOffset()-e)%60==0)},zi.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},zi.isLocal=function(){return!!this.isValid()&&!this._isUTC},zi.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},zi.isUtc=fi,zi.isUTC=fi,zi.zoneAbbr=function(){return this._isUTC?"UTC":""},zi.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},zi.dates=Ae("dates accessor is deprecated. Use date instead.",$i),zi.months=Ae("months accessor is deprecated. Use month instead",Qt),zi.years=Ae("years accessor is deprecated. Use year instead",Ft),zi.zone=Ae("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),zi.isDSTShifted=Ae("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!be(this._isDSTShifted))return this._isDSTShifted;var e,t={};return Re(t,this),(t=Xs(t))._a?(e=t._isUTC?xe(t._a):ti(t._a),this._isDSTShifted=this.isValid()&&function(e,t){for(var s=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),n=0,a=0;a<s;a++)wt(e[a])!==wt(t[a])&&n++;return n+i}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var Ji=cs.prototype;function Zi(e,t,s,i){var n=As(),a=xe().set(i,t);return n[s](a,e)}function qi(e,t,s){if(we(e)&&(t=e,e=void 0),e=e||"",null!=t)return Zi(e,t,s,"month");var i,n=[];for(i=0;i<12;i++)n[i]=Zi(e,i,s,"month");return n}function Qi(e,t,s,i){"boolean"==typeof e?(we(t)&&(s=t,t=void 0),t=t||""):(s=t=e,e=!1,we(t)&&(s=t,t=void 0),t=t||"");var n,a=As(),r=e?a._week.dow:0,o=[];if(null!=s)return Zi(t,(s+r)%7,i,"day");for(n=0;n<7;n++)o[n]=Zi(t,(n+r)%7,i,"day");return o}Ji.calendar=function(e,t,s){var i=this._calendar[e]||this._calendar.sameElse;return Fe(i)?i.call(t,s):i},Ji.longDateFormat=function(e){var t=this._longDateFormat[e],s=this._longDateFormat[e.toUpperCase()],i=this._longDateFormatCache;return t||!s?t:i&&i[e]&&i[e].formatUpper===s?i[e].format:(t=s.match(je).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),i||(i=this._longDateFormatCache={}),i[e]={formatUpper:s,format:t},t)},Ji.invalidDate=function(){return this._invalidDate},Ji.ordinal=function(e){return this._ordinal.replace("%d",e)},Ji.preparse=Ki,Ji.postformat=Ki,Ji.relativeTime=function(e,t,s,i){return this.postformat(ms.call(this,e,t,s,i))},Ji.pastFuture=function(e,t){return this.postformat(fs.call(this,e,t))},Ji.set=function(e){var t,s;for(s in function(e,t){for(var s,i=0;i<Jt.length;i++)_e(t,s=Jt[i])||delete e["_"+s]}(this,e),function(e,t){for(var s,i=0;i<ls.length;i++)_e(t,s=ls[i])||delete e["_"+s]}(this,e),e)_e(e,s)&&(Fe(t=e[s])?this[s]=t:this["_"+s]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Ji.eras=function(e,t){var s,i,n,a=this._eras||As("en")._eras;for(s=0,i=a.length;s<i;++s)switch("string"==typeof a[s].since&&(n=ye(a[s].since).startOf("day"),a[s].since=n.valueOf()),typeof a[s].until){case"undefined":a[s].until=1/0;break;case"string":n=ye(a[s].until).startOf("day").valueOf(),a[s].until=n.valueOf()}return a},Ji.erasParse=function(e,t,s){var i,n,a,r,o,l=this.eras();for(e=e.toUpperCase(),i=0,n=l.length;i<n;++i)if(a=l[i].name.toUpperCase(),r=l[i].abbr.toUpperCase(),o=l[i].narrow.toUpperCase(),s)switch(t){case"N":case"NN":case"NNN":if(r===e)return l[i];break;case"NNNN":if(a===e)return l[i];break;case"NNNNN":if(o===e)return l[i]}else if([a,r,o].indexOf(e)>=0)return l[i]},Ji.erasConvertYear=function(e,t){var s=e.since<=e.until?1:-1;return void 0===t?ye(e.since).year():ye(e.since).year()+(t-e.offset)*s},Ji.erasAbbrRegex=function(e){return _e(this,"_erasAbbrRegex")||Li.call(this),e?this._erasAbbrRegex:this._erasRegex},Ji.erasNameRegex=function(e){return _e(this,"_erasNameRegex")||Li.call(this),e?this._erasNameRegex:this._erasRegex},Ji.erasNarrowRegex=function(e){return _e(this,"_erasNarrowRegex")||Li.call(this),e?this._erasNarrowRegex:this._erasRegex},Ji.months=function(e,t){return e?ge(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Gt).test(t)?"format":"standalone"][e.month()]:ge(this._months)?this._months:this._months.standalone},Ji.monthsShort=function(e,t){return e?ge(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Gt.test(t)?"format":"standalone"][e.month()]:ge(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Ji.monthsParse=function(e,t,s){var i,n,a;if(this._monthsParseExact)return Zt.call(this,e,t,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(n=xe([2e3,i]),s&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),s||this._monthsParse[i]||(a="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),s&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(s&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!s&&this._monthsParse[i].test(e))return i}},Ji.monthsRegex=function(e){return this._monthsParseExact?(_e(this,"_monthsRegex")||Xt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(_e(this,"_monthsRegex")||(this._monthsRegex=Kt),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Ji.monthsShortRegex=function(e){return this._monthsParseExact?(_e(this,"_monthsRegex")||Xt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(_e(this,"_monthsShortRegex")||(this._monthsShortRegex=zt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Ji.week=function(e){return ks(e,this._week.dow,this._week.doy).week},Ji.firstDayOfYear=function(){return this._week.doy},Ji.firstDayOfWeek=function(){return this._week.dow},Ji.weekdays=function(e,t){var s=ge(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?es(s,this._week.dow):e?s[e.day()]:s},Ji.weekdaysMin=function(e){return!0===e?es(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Ji.weekdaysShort=function(e){return!0===e?es(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Ji.weekdaysParse=function(e,t,s){var i,n,a;if(this._weekdaysParseExact)return us.call(this,e,t,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(n=xe([2e3,1]).day(i),s&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),s&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(s&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(s&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!s&&this._weekdaysParse[i].test(e))return i}},Ji.weekdaysRegex=function(e){return this._weekdaysParseExact?(_e(this,"_weekdaysRegex")||hs.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(_e(this,"_weekdaysRegex")||(this._weekdaysRegex=as),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Ji.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(_e(this,"_weekdaysRegex")||hs.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(_e(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=rs),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Ji.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(_e(this,"_weekdaysRegex")||hs.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(_e(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=os),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Ji.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Ji.meridiem=function(e,t,s){return e>11?s?"pm":"PM":s?"am":"AM"},Ns("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;return e+(1===wt(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),ye.lang=Ae("moment.lang is deprecated. Use moment.locale instead.",Ns),ye.langData=Ae("moment.langData is deprecated. Use moment.localeData instead.",As);var Xi=Math.abs;function en(e,t,s,i){var n=gi(t,s);return e._milliseconds+=i*n._milliseconds,e._days+=i*n._days,e._months+=i*n._months,e._bubble()}function tn(e){return e<0?Math.floor(e):Math.ceil(e)}function sn(e){return 4800*e/146097}function nn(e){return 146097*e/4800}function an(e){return function(){return this.as(e)}}var rn=an("ms"),on=an("s"),ln=an("m"),un=an("h"),hn=an("d"),dn=an("w"),cn=an("M"),mn=an("Q"),fn=an("y"),pn=rn;function yn(e){return function(){return this.isValid()?this._data[e]:NaN}}var gn=yn("milliseconds"),vn=yn("seconds"),_n=yn("minutes"),kn=yn("hours"),bn=yn("days"),wn=yn("months"),Sn=yn("years"),Dn=Math.round,Tn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function xn(e,t,s,i,n){return ms.call(n,t||1,!!s,e,i)}function Mn(e,t,s,i){var n=gi(e).abs(),a=Dn(n.as("s")),r=Dn(n.as("m")),o=Dn(n.as("h")),l=Dn(n.as("d")),u=Dn(n.as("M")),h=Dn(n.as("w")),d=Dn(n.as("y")),c=a<=s.ss&&["s",a]||a<s.s&&["ss",a]||r<=1&&["m"]||r<s.m&&["mm",r]||o<=1&&["h"]||o<s.h&&["hh",o]||l<=1&&["d"]||l<s.d&&["dd",l];return null!=s.w&&(c=c||h<=1&&["w"]||h<s.w&&["ww",h]),(c=c||u<=1&&["M"]||u<s.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=t,c[3]=+e>0,c[4]=i,xn.apply(null,c)}var Cn=Math.abs;function Yn(e){return(e>0)-(e<0)||+e}function On(){if(!this.isValid())return this.localeData().invalidDate();var e,t,s,i,n,a,r,o,l=Cn(this._milliseconds)/1e3,u=Cn(this._days),h=Cn(this._months),d=this.asSeconds();return d?(e=bt(l/60),t=bt(e/60),l%=60,e%=60,s=bt(h/12),h%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",n=d<0?"-":"",a=Yn(this._months)!==Yn(d)?"-":"",r=Yn(this._days)!==Yn(d)?"-":"",o=Yn(this._milliseconds)!==Yn(d)?"-":"",n+"P"+(s?a+s+"Y":"")+(h?a+h+"M":"")+(u?r+u+"D":"")+(t||e||l?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(l?o+i+"S":"")):"P0D"}var In=ri.prototype;In.isValid=function(){return this._isValid},In.abs=function(){var e=this._data;return this._milliseconds=Xi(this._milliseconds),this._days=Xi(this._days),this._months=Xi(this._months),e.milliseconds=Xi(e.milliseconds),e.seconds=Xi(e.seconds),e.minutes=Xi(e.minutes),e.hours=Xi(e.hours),e.months=Xi(e.months),e.years=Xi(e.years),this},In.add=function(e,t){return en(this,e,t,1)},In.subtract=function(e,t){return en(this,e,t,-1)},In.as=function(e){if(!this.isValid())return NaN;var t,s,i=this._milliseconds;if("month"===(e=$e(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,s=this._months+sn(t),e){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(t=this._days+Math.round(nn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},In.asMilliseconds=rn,In.asSeconds=on,In.asMinutes=ln,In.asHours=un,In.asDays=hn,In.asWeeks=dn,In.asMonths=cn,In.asQuarters=mn,In.asYears=fn,In.valueOf=pn,In._bubble=function(){var e,t,s,i,n,a=this._milliseconds,r=this._days,o=this._months,l=this._data;return a>=0&&r>=0&&o>=0||a<=0&&r<=0&&o<=0||(a+=864e5*tn(nn(o)+r),r=0,o=0),l.milliseconds=a%1e3,e=bt(a/1e3),l.seconds=e%60,t=bt(e/60),l.minutes=t%60,s=bt(t/60),l.hours=s%24,r+=bt(s/24),o+=n=bt(sn(r)),r-=tn(nn(n)),i=bt(o/12),o%=12,l.days=r,l.months=o,l.years=i,this},In.clone=function(){return gi(this)},In.get=function(e){return e=$e(e),this.isValid()?this[e+"s"]():NaN},In.milliseconds=gn,In.seconds=vn,In.minutes=_n,In.hours=kn,In.days=bn,In.weeks=function(){return bt(this.days()/7)},In.months=wn,In.years=Sn,In.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var s,i,n=!1,a=Tn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(a=Te(Te({},Tn),t||{}),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),i=Mn(this,!n,a,s=this.localeData()),n&&(i=fs.call(s,+this,i)),s.postformat(i)},In.toISOString=On,In.toString=On,In.toJSON=On,In.locale=xi,In.localeData=Ci,In.toIsoString=Ae("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",On),In.lang=Mi,Je("X",0,0,"unix"),Je("x",0,0,"valueOf"),vt("x",dt),vt("X",/[+-]?\d+(\.\d{1,3})?/),Dt("X",function(e,t,s){s._d=new Date(1e3*parseFloat(e))}),Dt("x",function(e,t,s){s._d=new Date(wt(e))}
1),ye.version="2.31.0",oe=ti,ye.fn=zi,ye.min=function(){return ni("isBefore",[].slice.call(arguments,0))},ye.max=function(){return ni("isAfter",[].slice.call(arguments,0))},ye.now=function(){return Date.now?Date.now():+new Date},ye.utc=xe,ye.unix=function(e){return ti(1e3*e)},ye.months=function(e,t){return qi(e,t,"months")},ye.isDate=Se,ye.locale=Ns,ye.invalid=Ye,ye.duration=gi,ye.isMoment=Ne,ye.weekdays=function(e,t,s){return Qi(e,t,s,"weekdays")},ye.parseZone=function(){return ti.apply(null,arguments).parseZone()},ye.localeData=As,ye.isDuration=oi,ye.monthsShort=function(e,t){return qi(e,t,"monthsShort")},ye.weekdaysMin=function(e,t,s){return Qi(e,t,s,"weekdaysMin")},ye.defineLocale=Vs,ye.updateLocale=function(e,t){var s,i=Hs(e),n=Cs;return null!=i&&(e=i._abbr),null!=t?(null!=Ys[e]&&null!=Ys[e].parentLocale?Ys[e].set(ds(Ys[e]._config,t)):(null!=i&&(n=i._config),t=ds(n,t),null==i&&(t.abbr=e),(s=new cs(t)).parentLocale=Ys[e],Ys[e]=s),Ns(e)):null!=Ys[e]&&(null!=Ys[e].parentLocale?(Ys[e]=Ys[e].parentLocale,e===Ns()&&Ns(e)):null!=Ys[e]&&delete Ys[e]),Ys[e]},ye.locales=function(){return ts(Ys)},ye.weekdaysShort=function(e,t,s){return Qi(e,t,s,"weekdaysShort")},ye.normalizeUnits=$e,ye.relativeTimeRounding=function(e){return void 0===e?Dn:"function"==typeof e&&(Dn=e,!0)},ye.relativeTimeThreshold=function(e,t){return void 0!==Tn[e]&&(void 0===t?Tn[e]:(Tn[e]=t,"s"===e&&(Tn.ss=t-1),!0))},ye.calendarFormat=function(e,t){var s=e.diff(t,"days",!0);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"},ye.prototype=zi,ye.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"};var Rn={HOUR_TOKENS:["HH","H","hh","h","kk","k"],MINUTE_TOKENS:["mm","m"],SECOND_TOKENS:["ss","s"],APM_TOKENS:["A","a"],BASIC_TYPES:["hour","minute","second","apm"]},Hn={format:"HH:mm",minuteInterval:1,secondInterval:1,hourRange:null,minuteRange:null,secondRange:null,hideDisabledHours:!1,hideDisabledMinutes:!1,hideDisabledSeconds:!1,hideDisabledItems:!1,advancedKeyboard:!1,hideDropdown:!1,blurDelay:300,manualInputTimeout:1e3,dropOffsetHeight:160},Nn={name:"VueTimepicker",props:{modelValue:{type:[Object,String]},format:{type:String},minuteInterval:{type:[Number,String]},secondInterval:{type:[Number,String]},hourRange:{type:Array},minuteRange:{type:Array},secondRange:{type:Array},hideDisabledHours:{type:Boolean,default:!1},hideDisabledMinutes:{type:Boolean,default:!1},hideDisabledSeconds:{type:Boolean,default:!1},hideDisabledItems:{type:Boolean,default:!1},hideClearButton:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},closeOnComplete:{type:Boolean,default:!1},id:{type:String},name:{type:String},inputClass:{type:[String,Object,Array]},placeholder:{type:String},tabindex:{type:[Number,String],default:0},inputWidth:{type:String},autocomplete:{type:String,default:"off"},hourLabel:{type:String},minuteLabel:{type:String},secondLabel:{type:String},apmLabel:{type:String},amText:{type:String},pmText:{type:String},blurDelay:{type:[Number,String]},advancedKeyboard:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},autoScroll:{type:Boolean,default:!1},dropDirection:{type:String,default:"down"},dropOffsetHeight:{type:[Number,String]},containerId:{type:String},manualInput:{type:Boolean,default:!1},manualInputTimeout:{type:[Number,String]},hideDropdown:{type:Boolean,default:!1},fixedDropdownButton:{type:Boolean,default:!1},debugMode:{type:Boolean,default:!1}},data:()=>({timeValue:{},hours:[],minutes:[],seconds:[],apms:[],isActive:!1,showDropdown:!1,isFocusing:!1,debounceTimer:void 0,hourType:"HH",minuteType:"mm",secondType:"",apmType:"",hour:"",minute:"",second:"",apm:"",fullValues:void 0,bakDisplayTime:void 0,doClearApmChecking:!1,selectionTimer:void 0,kbInputTimer:void 0,kbInputLog:"",bakCurrentPos:void 0,forceDropOnTop:!1}),emits:["update:modelValue","change","open","close","focus","blur","error"],computed:{opts(){const e=Object.assign({},Hn);return this.format&&this.format.length&&(e.format=String(this.format)),this.isNumber(this.minuteInterval)&&(e.minuteInterval=+this.minuteInterval),(!e.minuteInterval||e.minuteInterval<1||e.minuteInterval>60)&&(this.debugMode&&(e.minuteInterval>60?this.debugLog(`"minute-interval" should be less than 60. Current value is ${this.minuteInterval}`):(0===e.minuteInterval||e.minuteInterval<1)&&this.debugLog(`"minute-interval" should be NO less than 1. Current value is ${this.minuteInterval}`)),0===e.minuteInterval?e.minuteInterval=60:e.minuteInterval=1),this.isNumber(this.secondInterval)&&(e.secondInterval=+this.secondInterval),(!e.secondInterval||e.secondInterval<1||e.secondInterval>60)&&(this.debugMode&&(e.secondInterval>60?this.debugLog(`"second-interval" should be less than 60. Current value is ${this.secondInterval}`):(0===e.secondInterval||e.secondInterval<1)&&this.debugLog(`"second-interval" should be NO less than 1. Current value is ${this.secondInterval}`)),0===e.secondInterval?e.secondInterval=60:e.secondInterval=1),this.hourRange&&Array.isArray(this.hourRange)&&(e.hourRange=JSON.parse(JSON.stringify(this.hourRange)),!this.hourRange.length&&this.debugMode&&this.debugLog('The "hour-range" array is empty (length === 0)')),this.minuteRange&&Array.isArray(this.minuteRange)&&(e.minuteRange=JSON.parse(JSON.stringify(this.minuteRange)),!this.minuteRange.length&&this.debugMode&&this.debugLog('The "minute-range" array is empty (length === 0)')),this.secondRange&&Array.isArray(this.secondRange)&&(e.secondRange=JSON.parse(JSON.stringify(this.secondRange)),!this.secondRange.length&&this.debugMode&&this.debugLog('The "second-range" array is empty (length === 0)')),this.hideDisabledItems&&(e.hideDisabledItems=!0),(this.hideDisabledHours||this.hideDisabledItems)&&(e.hideDisabledHours=!0),(this.hideDisabledMinutes||this.hideDisabledItems)&&(e.hideDisabledMinutes=!0),(this.hideDisabledSeconds||this.hideDisabledItems)&&(e.hideDisabledSeconds=!0),this.hideDropdown&&(this.manualInput?e.hideDropdown=!0:this.debugMode&&this.debugLog('"hide-dropdown" only works with "manual-input" mode')),this.blurDelay&&+this.blurDelay>0&&(e.blurDelay=+this.blurDelay),this.manualInputTimeout&&+this.manualInputTimeout>0&&(e.manualInputTimeout=+this.manualInputTimeout),this.dropOffsetHeight&&+this.dropOffsetHeight>0&&(e.dropOffsetHeight=+this.dropOffsetHeight),e},useStringValue(){return"string"==typeof this.modelValue},formatString(){return this.opts.format||Hn.format},inUse(){const e=Rn.BASIC_TYPES.filter(e=>this.getTokenByType(e));e.sort((e,t)=>
1this.formatString.indexOf(this.getTokenByType(e)||null)-this.formatString.indexOf(this.getTokenByType(t)||null));const t=e.map(e=>this.getTokenByType(e));return{hour:!!this.hourType,minute:!!this.minuteType,second:!!this.secondType,apm:!!this.apmType,types:e||[],tokens:t||[]}},displayTime(){let e=String(this.formatString);return this.hour&&(e=e.replace(new RegExp(this.hourType,"g"),this.hour)),this.minute&&(e=e.replace(new RegExp(this.minuteType,"g"),this.minute)),this.second&&this.secondType&&(e=e.replace(new RegExp(this.secondType,"g"),this.second)),this.apm&&this.apmType&&(e=e.replace(new RegExp(this.apmType,"g"),this.apm)),e},customDisplayTime(){return this.amText||this.pmText?this.displayTime.replace(new RegExp(this.apm,"g"),this.apmDisplayText(this.apm)):this.displayTime},inputIsEmpty(){return this.formatString===this.displayTime},allValueSelected(){return!(this.inUse.hour&&!this.hour||this.inUse.minute&&!this.minute||this.inUse.second&&!this.second||this.inUse.apm&&!this.apm)},columnsSequence(){return this.inUse.types.map(e=>e)||[]},showClearBtn(){return!this.hideClearButton&&!this.disabled&&!this.inputIsEmpty},showDropdownBtn(){return!!this.fixedDropdownButton||!(!this.opts.hideDropdown||!this.isActive||this.showDropdown)},baseOn12Hours(){return"h"===this.hourType||"hh"===this.hourType},hourRangeIn24HrFormat(){if(!this.hourType||!this.opts.hourRange)return!1;if(!this.opts.hourRange.length)return[];const e=[];return this.opts.hourRange.forEach(t=>{if(t instanceof Array){t.length>2&&this.debugMode&&this.debugLog(`Nested array within "hour-range" must contain no more than two items. Only the first two items of ${JSON.stringify(t)} will be taken into account.`);let s=t[0],i=t[1]||t[0];this.is12hRange(s)&&(s=this.translate12hRange(s)),this.is12hRange(i)&&(i=this.translate12hRange(i));for(let t=+s;t<=+i;t++)t<0||t>24||e.includes(t)||e.push(t)}else{if((t=this.is12hRange(t)?this.translate12hRange(t):+t)<0||t>24)return;e.includes(t)||e.push(t)}}),e.sort((e,t)=>e-t),e},restrictedHourRange(){return!!this.hourRangeIn24HrFormat&&(this.baseOn12Hours?this.hourRangeIn24HrFormat.map(e=>12===e?"12p":24===e||0===e?"12a":e>12?e%12+"p":`${e}a`):this.hourRangeIn24HrFormat)},validHoursList(){if(!this.manualInput)return!1;if(this.restrictedHourRange){let e=[];
1if(this.baseOn12Hours){e=this.restrictedHourRange.map(e=>{const t=e.substr(0,e.length-1),s=e.substr(-1);return`${this.formatValue(this.hourType,t)}${s}`});const t=e.indexOf("12a");return t>0&&e.unshift(e.splice(t,1)[0]),e}return e=this.restrictedHourRange.map(e=>this.formatValue(this.hourType,e)),e.length>1&&e[0]&&"24"===e[0]&&e.push(e.shift()),e}return this.baseOn12Hours?[].concat([],this.hours.map(e=>`${e}a`),this.hours.map(e=>`${e}p`)):this.hours},has(){const e={customApmText:!1},t=!!this.apmType;if(t&&this.hourRangeIn24HrFormat&&this.hourRangeIn24HrFormat.length){const t=[].concat([],this.hourRangeIn24HrFormat);e.am=t.some(e=>e<12||24===e),e.pm=t.some(e=>e>=12&&e<24)}else e.am=t,e.pm=t;return(this.amText&&this.amText.length||this.pmText&&this.pmText.length)&&(e.customApmText=!0),e},minuteRangeList(){return!(!this.minuteType||!this.opts.minuteRange)&&(this.opts.minuteRange.length?this.renderRangeList(this.opts.minuteRange,"minute"):[])},secondRangeList(){return!(!this.secondType||!this.opts.secondRange)&&(this.opts.secondRange.length?this.renderRangeList(this.opts.secondRange,"second"):[])},hourLabelText(){return this.hourLabel||this.hourType},minuteLabelText(){return this.minuteLabel||this.minuteType},secondLabelText(){return this.secondLabel||this.secondType},apmLabelText(){return this.apmLabel||this.apmType},inputWidthStyle(){if(this.inputWidth&&this.inputWidth.length)return{width:this.inputWidth}},tokenRegexBase(){return this.inUse.tokens.join("|")},tokenChunks(){if(!this.manualInput&&!this.useStringValue)return!1;const e=String(this.formatString),t=`(${this.tokenRegexBase})+?`,s=this.getMatchAllByRegex(e,t),i=[];for(let n of s){const e=n[0],t={index:n.index,token:e,type:this.getTokenType(e),needsCalibrate:e.length<2,len:(e||"").length};i.push(t)}return i},needsPosCalibrate(){return!!this.manualInput&&this.tokenChunks.some(e=>e.needsCalibrate)},tokenChunksPos(){if(!this.manualInput)return!1;if(!this.needsPosCalibrate)return this.tokenChunks.map(e=>({token:e.token,type:e.type,start:e.index,end:e.index+e.len}));const e=[];let t=0;return this.tokenChunks.forEach(s=>{let i;if("apm"===s.type&&this.has.customApmText)if(this.apm&&this.apm.length){const e="am"===this.apm.toLowerCase()?this.amText:this.pmText;i=e&&e.length?e.length:s.len}else i=s.len;else i=this[s.type]&&this[s.type].length?this[s.type].length:s.len;e.push({token:s.token,type:s.type,start:s.index+t,end:s.index+t+i}),s.needsCalibrate&&i>s.len&&(t+=i-s.len)}),e},invalidValues(){if(this.inputIsEmpty)return[];if(!this.restrictedHourRange&&!this.minuteRangeList&&!this.secondRangeList&&1===this.opts.minuteInterval&&1===this.opts.secondInterval)return[];const e=[];return!this.inUse.hour||this.isEmptyValue(this.hourType,this.hour)||this.isValidValue(this.hourType,this.hour)&&!this.isDisabled("hour",this.hour)||e.push("hour"),!this.inUse.minute||this.isEmptyValue(this.minuteType,this.minute)||this.isValidValue(this.minuteType,this.minute)&&!this.isDisabled("minute",this.minute)&&!this.notInInterval("minute",this.minute)||e.push("minute"),!this.inUse.second||this.isEmptyValue(this.secondType,this.second)||this.isValidValue(this.secondType,this.second)&&!this.isDisabled("second",this.second)&&!this.notInInterval("second",this.second)||e.push("second"),!this.inUse.apm||this.isEmptyValue(this.apmType,this.apm)||this.isValidValue(this.apmType,this.apm)&&!this.isDisabled("apm",this.apm)||e.push("apm"),e.length?e:[]},hasInvalidInput(){return Boolean(this.invalidValues&&this.invalidValues.length)},autoDirectionEnabled(){return"auto"===this.dropDirection},dropdownDirClass(){return this.autoDirectionEnabled?this.forceDropOnTop?"drop-up":"drop-down":"up"===this.dropDirection?"drop-up":"drop-down"}},watch:{"opts.format"(e){this.renderFormat(e)},"opts.minuteInterval"(e){this.renderList("minute",e)},"opts.secondInterval"(e){this.renderList("second",e)},value:{deep:!0,handler(){this.readValues()}},displayTime(){this.fillValues()},disabled(e){e&&(this.isActive&&(this.isActive=!1),this.showDropdown&&(this.showDropdown=!1))},"invalidValues.length"(e,t){e&&e>=1?this.$emit("error",this.invalidValues):t&&t>=1&&this.$emit("error",[])}},methods:{formatValue(e,t){if(!this.isNumber(t))return"";switch(t=+t,e){case"H":case"h":case"k":case"m":case"s":return["h","k"].includes(e)&&0===t?"k"===e?"24":"12":String(t);case"HH":case"mm":case"ss":case"hh":case"kk":return["hh","kk"].includes(e)&&0===t?"kk"===e?"24":"12":t<10?`0${t}`:String(t);default:return""}},checkAcceptingType(e,t){if(!e||!t||!t.length)return"";for(let s=0;s<e.length;s++)if(t.indexOf(e[s])>-1)return e[s];return""},renderFormat(e){e=e||this.opts.format||Hn.format;let t=this.checkAcceptingType(Rn.HOUR_TOKENS,e),i=this.checkAcceptingType(Rn.MINUTE_TOKENS,e);this.secondType=this.checkAcceptingType(Rn.SECOND_TOKENS,e),this.apmType=this.checkAcceptingType(Rn.APM_TOKENS,e),t||i||this.secondType||this.apmType||(this.debugMode&&this.format&&this.debugLog(`No valid tokens found in your defined "format" string "${this.format}". Fallback to the default "HH:mm" format.`),t="HH",i="mm"),this.hourType=t,this.minuteType=i,this.hourType?this.renderHoursList():this.hours=[],this.minuteType?this.renderList("minute"):this.minutes=[],this.secondType?this.renderList("second"):this.seconds=[],this.apmType?this.renderApmList():this.apms=[],s(()=>{this.readValues()})},renderHoursList(){const e=this.baseOn12Hours?12:24,t=[];for(let s=0;s<e;s++)"k"===this.hourType||"kk"===this.hourType?t.push(this.formatValue(this.hourType,s+1)):t.push(this.formatValue(this.hourType,s));this.hours=t},renderList(e,t){if(!this.isMinuteOrSecond(e))return;const s="minute"===e;t=t||(s?this.opts.minuteInterval||Hn.minuteInterval:this.opts.secondInterval||Hn.secondInterval);const i=[];for(let n=0;n<60;n+=t)i.push(this.formatValue(s?this.minuteType:this.secondType,n));s?this.minutes=i:this.seconds=i},renderApmList(){this.apms="A"===this.apmType?["AM","PM"]:["am","pm"]},readValues(){this.useStringValue?(this.debugMode&&this.debugLog(`Received a string value: "${this.modelValue}"`),this.readStringValues(this.modelValue)):(this.debugMode&&this.debugLog(`Received an object value: "${JSON.stringify(this.modelValue||{})}"`),this.readObjectValues(this.modelValue))},readObjectValues(e){const t=JSON.parse(JSON.stringify(e||{})),s=Object.keys(t);
10!==s.length?(Rn.BASIC_TYPES.forEach(e=>{const i=this.getTokenByType(e);if(s.indexOf(i)>-1){const s=this.sanitizedValue(i,t[i]);this[e]=s,t[i]=s}else this[e]=""}),this.timeValue=t):this.addFallbackValues()},getMatchAllByRegex(e,t){const s="polyfillTest";return Boolean(!s.matchAll||"function"!=typeof s.matchAll)?this.polyfillMatchAll(e,t):e.matchAll(new RegExp(t,"g"))},readStringValues(e){if(!e||!e.length)return void this.addFallbackValues();const t=String(this.formatString),s=`(${this.tokenRegexBase})+?`,i=`[^(${this.tokenRegexBase})]+`,n=this.getMatchAllByRegex(t,s),a=this.getMatchAllByRegex(t,i),r=[],o=[];for(let u of n){const e={index:u.index,token:u[0],isValueToken:!0};r.push(e),o.push(e)}for(let u of a)r.push({index:u.index,token:u[0]});r.sort((e,t)=>e.index<t.index?-1:1);let l="";if(r.forEach(e=>{if(e.isValueToken){const t=this.getTokenRegex(e.token)||"";l+=t}else{const t=e.token.replace(/\\{0}(\*|\?|\.|\+)/g,"\\$1");l+=`(?:${t})`}}),new RegExp(l).test(e)){const t=e.match(new RegExp(l)).slice(1,o.length+1),s={};if(t.forEach((e,t)=>{if(o[t]){const i=o[t].token;s[i]=this.setValueFromString(e,i)}}),this.timeValue=s,this.debugMode){const e=o.map(e=>e&&e.token);this.debugLog(`Successfully parsed values ${JSON.stringify(t)}\nfor ${JSON.stringify(e)}\nin format pattern '${this.formatString}'`)}}else this.debugMode&&this.debugLog(`The input string in "v-model" does NOT match the "format" pattern\nformat: ${this.formatString}\nv-model: ${e}`)},polyfillMatchAll(e,t){const s=e.match(new RegExp(t,"g")),i=[],n=[];return s&&s.length&&s.forEach(t=>{const s=n.findIndex(e=>e.str===t);let a;if(s>=0)n[s]&&n[s].regex&&(a=n[s].regex.exec(e).index);else{const s=new RegExp(t,"g");a=s.exec(e).index,n.push({str:String(t),regex:s})}i.push({0:String(t),index:a})}),i},addFallbackValues(){const e={};this.inUse.types.forEach(t=>{e[this.getTokenByType(t)]=""}),this.timeValue=e},setValueFromString(e,t){if(!t||!e)return"";const s=this.getTokenType(t);if(!s||!s.length)return"";const i=e!==this.getTokenByType(s)?e:"";return this[s]=i,i},fillValues(e){const t={},s=this.hour,i=this.hourType;let n;if(i&&this.isNumber(s)){const e=+s,n=!(!this.baseOn12Hours||!this.apm)&&this.lowerCasedApm(this.apm);Rn.HOUR_TOKENS.forEach(a=>{if(a===i)return void(t[a]=s);let r,o;switch(a){case"H":case"HH":case"k":case"kk":r=this.baseOn12Hours?"pm"===n?e<12?e+12:e:["k","kk"].includes(a)?12===e?24:e:e%12:["k","kk"].includes(a)?0===e?24:e:e%24,t[a]=this.formatValue(a,r);break;case"h":case"hh":this.baseOn12Hours?(r=e,o=n||""):e>11&&e<24?(o="pm",r=12===e?12:e%12):(o="am",r=e%12==0?12:e),t[a]=this.formatValue(a,r),t.a=o,t.A=o.toUpperCase()}})}else Rn.HOUR_TOKENS.forEach(e=>t[e]=""),n=this.lowerCasedApm(this.apm||""),t.a=n,t.A=n.toUpperCase();t.m=this.formatValue("m",this.minute),t.mm=this.formatValue("mm",this.minute),t.s=this.formatValue("s",this.second),t.ss=this.formatValue("ss",this.second),this.fullValues=t,this.lazy&&!e||this.emitTimeValue(),this.closeOnComplete&&this.allValueSelected&&this.showDropdown&&this.toggleActive()},emitTimeValue(){if(!this.fullValues)return;if(this.lazy&&this.bakDisplayTime===this.displayTime)return void(this.debugMode&&this.debugLog("The value does not change on `lazy` mode. Skip the emitting `input` and `change` event."));const e=JSON.parse(JSON.stringify(this.fullValues));if(this.useStringValue)this.$emit("update:modelValue",this.inputIsEmpty?"":String(this.displayTime));else{const t=this.inUse.tokens||[],s={};t.forEach(t=>{s[t]=e[t]||""}),this.$emit("update:modelValue",JSON.parse(JSON.stringify(s)))}this.$emit("change",{data:e,displayTime:this.inputIsEmpty?"":String(this.displayTime)})},translate12hRange(e){const t=this.match12hRange(e);return 12===+t[1]?+t[1]+("p"===t[2].toLowerCase()?0:12):+t[1]+("p"===t[2].toLowerCase()?12:0)},isDisabled(e,t){if(!this.isBasicType(e)||!this.inUse[e])return!0;switch(e){case"hour":return this.isDisabledHour(t);case"minute":case"second":return!!this[`${e}RangeList`]&&!this[`${e}RangeList`].includes(t);case"apm":return!!this.restrictedHourRange&&!this.has[this.lowerCasedApm(t)];default:return!0}},isDisabledHour(e){if(!this.restrictedHourRange)return!1;if(this.baseOn12Hours){if(this.apm&&this.apm.length){const t="am"===this.apm.toLowerCase()?"a":"p";return!this.restrictedHourRange.includes(`${+e}${t}`)}return!1}return("HH"!==this.hourType&&"H"!==this.hourType||0!==+e||!this.restrictedHourRange.includes(24))&&!this.restrictedHourRange.includes(+e)},notInInterval(e,t){if(e&&this.isMinuteOrSecond(e))return 1!==this.opts[`${e}Interval`]&&+t%this.opts[`${e}Interval`]!==0},renderRangeList(e,t){if(!e||!t||!this.isMinuteOrSecond(t))return[];const s=[];let i;
1if(e.forEach(e=>{if(e instanceof Array){e.length>2&&this.debugMode&&this.debugLog(`Nested array within "${t}-range" must contain no more than two items. Only the first two items of ${JSON.stringify(e)} will be taken into account.`);const n=e[0],a=e[1]||e[0];for(let e=+n;e<=+a;e++)e<0||e>59||(i=this.formatValue(this.getTokenByType(t),e),s.includes(i)||s.push(i))}else{if(+e<0||+e>59)return;i=this.formatValue(this.getTokenByType(t),e),s.includes(i)||s.push(i)}}),s.sort((e,t)=>e-t),this.debugMode){const e=(("minute"===t?this.minutes:this.seconds)||[]).filter(e=>s.includes(e));e&&e.length||("minute"===t?this.debugLog(`The minute list is empty due to the "minute-range" config\nminute-range: ${JSON.stringify(this.minuteRange)}\nminute-interval: ${this.opts.minuteInterval}`):this.debugLog(`The second list is empty due to the "second-range" config\nsecond-range: ${JSON.stringify(this.secondRange)}\nsecond-interval: ${this.opts.secondInterval}`))}return s},forceApmSelection(){if(!this.manualInput&&this.apmType&&!this.apm&&(this.has.am||this.has.pm)){this.doClearApmChecking=!0;const e=this.has.am?"am":"pm";this.apm="A"===this.apmType?e.toUpperCase():e}},emptyApmSelection(){this.doClearApmChecking&&""===this.hour&&""===this.minute&&""===this.second&&(this.apm=""),this.doClearApmChecking=!1},apmDisplayText(e){return this.amText&&"am"===this.lowerCasedApm(e)?this.amText:this.pmText&&"pm"===this.lowerCasedApm(e)?this.pmText:e},toggleActive(){this.disabled||(this.isActive=!this.isActive,this.isActive?(this.isFocusing=!0,this.manualInput&&this.$emit("focus"),this.opts.hideDropdown||this.setDropdownState(!0),this.lazy&&(this.bakDisplayTime=String(this.displayTime||"")),this.manualInput&&!this.inputIsEmpty&&s(()=>{this.$refs.input&&0===this.$refs.input.selectionStart&&this.$refs.input.selectionEnd===this.displayTime.length&&this.selectFirstSlot()})):(this.showDropdown?this.setDropdownState(!1):this.manualInput&&this.$emit("blur"),this.isFocusing=!1,this.lazy&&(this.fillValues(!0),this.bakDisplayTime=void 0)),this.restrictedHourRange&&this.baseOn12Hours&&(this.showDropdown?this.forceApmSelection():this.emptyApmSelection()),this.showDropdown&&this.checkForAutoScroll())},setDropdownState(e,t=!1){e?(this.keepFocusing(),this.autoDirectionEnabled&&this.checkDropDirection(),this.showDropdown=!0,this.$emit("open"),t&&(this.fixedDropdownButton&&(this.isActive=!0),this.$emit("blur"),this.checkForAutoScroll())):(this.showDropdown=!1,this.$emit("close"))},blurEvent(){this.manualInput&&!this.opts.hideDropdown&&this.$emit("blur")},select(e,t){this.isBasicType(e)&&!this.isDisabled(e,t)&&(this[e]=t,this.doClearApmChecking&&(this.doClearApmChecking=!1))},clearTime(){this.disabled||(this.hour="",this.minute="",this.second="",this.apm="",this.manualInput&&this.$refs&&this.$refs.input&&this.$refs.input.value.length&&(this.$refs.input.value=""),this.lazy&&this.fillValues(!0))},checkForAutoScroll(){this.inputIsEmpty||(this.autoScroll?s(()=>{this.scrollToSelectedValues()}):this.advancedKeyboard&&s(()=>{const e=this.inUse.types[0];this.scrollToSelected(e,!0)}))},scrollToSelected(e,t=!1){if(!this.timeValue||this.inputIsEmpty)return;const s=this.$el.querySelectorAll(`ul.${e}s`)[0];let i=this.activeItemInCol(e)[0];!i&&t&&(i=this.validItemsInCol(e)[0]),s&&i&&(s.scrollTop=i.offsetTop||0,this.advancedKeyboard&&i.focus())},scrollToSelectedValues(){this.timeValue&&!this.inputIsEmpty&&this.inUse.types.forEach(e=>{this.scrollToSelected(e)})},onFocus(){this.disabled||(this.isFocusing||(this.isFocusing=!0),this.isActive||this.toggleActive())},escBlur(){if(this.disabled)return;window.clearTimeout(this.debounceTimer),this.isFocusing=!1;const e=this.$el.querySelectorAll("input.vue__time-picker-input")[0];e&&e.blur()},debounceBlur(){this.disabled||(this.isFocusing=!1,window.clearTimeout(this.debounceTimer),this.debounceTimer=window.setTimeout(()=>{window.clearTimeout(this.debounceTimer),this.onBlur()},this.opts.blurDelay))},onBlur(){this.disabled||this.isFocusing||!this.isActive||this.toggleActive()},keepFocusing(){this.disabled||(window.clearTimeout(this.debounceTimer),this.isFocusing||(this.isFocusing=!0))},validItemsInCol(e){const t=`${e}s`;return this.$el.querySelectorAll(`ul.${t} > li:not(.hint):not([disabled])`)},activeItemInCol(e){const t=`${e}s`;return this.$el.querySelectorAll(`ul.${t} > li.active:not(.hint)`)},getClosestSibling(e,t,s=!1){const i=this.validItemsInCol(e),n=Array.prototype.findIndex.call(i,e=>e.getAttribute("data-key")===t);return s&&0===n?i[i.length-1]:s||n!==i.length-1?n<0?i[0]:s?i[n-1]:i[n+1]:i[0]},prevItem(e,t,s=!1){const i=this.getClosestSibling(e,t,!0);if(i)return s?i:i.focus()},nextItem(e,t,s=!1){const i=this.getClosestSibling(e,t,!1);if(i)return s?i:i.focus()},getSideColumnName(e,t=!1){const s=this.inUse.types.indexOf(e);if(t&&s<=0)this.debugMode&&this.debugLog("You're in the leftmost list already");else{if(t||s!==this.inUse.types.length-1)return this.inUse.types[t?s-1:s+1];this.debugMode&&this.debugLog("You're in the rightmost list already")}},getFirstItemInSideColumn(e,t=!1){const s=this.getSideColumnName(e,t);if(!s)return;const i=this.validItemsInCol(s);return i&&i[0]?i[0]:void 0},getActiveItemInSideColumn(e,t=!1){const s=this.getSideColumnName(e,t);if(!s)return;const i=this.activeItemInCol(s);return i&&i[0]?i[0]:void 0},toLeftColumn(e){const t=this.getActiveItemInSideColumn(e,!0)||this.getFirstItemInSideColumn(e,!0);t&&t.focus()},toRightColumn(e){const t=this.getActiveItemInSideColumn(e,!1)||this.getFirstItemInSideColumn(e,!1);t&&t.focus()},onMouseDown(){this.manualInput&&(window.clearTimeout(this.selectionTimer),this.selectionTimer=window.setTimeout(()=>{if(window.clearTimeout(this.selectionTimer),this.$refs&&this.$refs.input){const e=this.getNearestChunkByPos(this.$refs.input.selectionStart||0);this.debounceSetInputSelection(e)}},50))}
1,keyDownHandler(e){if(e.isComposing||229===e.keyCode)return e.preventDefault(),e.stopPropagation(),!1;e.keyCode>=48&&e.keyCode<=57||e.keyCode>=96&&e.keyCode<=105?(e.preventDefault(),this.keyboardInput(e.key)):[65,80,77].includes(e.keyCode)?(e.preventDefault(),this.keyboardInput(e.key,!0)):e.keyCode>=37&&e.keyCode<=40?(e.preventDefault(),this.clearKbInputLog(),this.arrowHandler(e)):8===e.keyCode||46===e.keyCode?(e.preventDefault(),this.clearKbInputLog(),this.clearTime()):9===e.keyCode?(this.clearKbInputLog(),this.tabHandler(e)):27===e.keyCode||e.metaKey||e.ctrlKey||e.preventDefault()},onCompostionStart(e){return e.preventDefault(),e.stopPropagation(),this.bakCurrentPos=this.getCurrentTokenChunk(),!1},onCompostionEnd(e){e.preventDefault(),e.stopPropagation();const t=e.data;let i=!1;return this.has.customApmText&&(i=this.isCustomApmText(t)),i&&this.setSanitizedValueToSection("apm",i),this.$refs.input.value=this.has.customApmText?this.customDisplayTime:this.displayTime,s(()=>{if(this.bakCurrentPos){const e=JSON.parse(JSON.stringify(this.bakCurrentPos));i&&(e.end=e.start+t.length),this.debounceSetInputSelection(e),this.bakCurrentPos=null}}),!1},pasteHandler(e){e.preventDefault();let t=(e.clipboardData||window.clipboardData).getData("text");this.debugMode&&this.debugLog(`Pasting value "${t}" from clipboard`),t&&t.length&&(this.has.customApmText&&(t=this.replaceCustomApmText(t)),this.inputIsEmpty?this.readStringValues(t):(this.kbInputLog=t.substr(-2,2),this.setKbInput(),this.debounceClearKbLog()))},arrowHandler(e){const t={37:"L",38:"U",39:"R",40:"D"}[e.keyCode];if("U"===t||"D"===t)if(this.inputIsEmpty)this.selectFirstValidValue();else{const e=this.getCurrentTokenChunk();if(!e)return void this.selectFirstValidValue();const s=e.type;this.getClosestValidItemInCol(s,this[s],t);const i=this.getCurrentTokenChunk();this.debounceSetInputSelection(i)}else"R"===t?this.toLateralToken(!1):"L"===t&&this.toLateralToken(!0)},tabHandler(e){if(!this.inputIsEmpty&&this.tokenChunksPos&&this.tokenChunksPos.length){const t=this.getCurrentTokenChunk();if(!t)return;const s=this.tokenChunksPos[0],i=this.tokenChunksPos[this.tokenChunksPos.length-1];(e.shiftKey&&t.token!==s.token||!e.shiftKey&&t.token!==i.token)&&(e.preventDefault(),this.toLateralToken(e.shiftKey))}},keyboardInput(e,t=!1){const s=this.getCurrentTokenChunk();!s||"apm"!==s.type&&t||"apm"===s.type&&!t||(this.kbInputLog=`${this.kbInputLog.substr(-1)}${e}`,this.setKbInput(),this.debounceClearKbLog())},clearKbInputLog(){window.clearTimeout(this.kbInputTimer),this.kbInputLog=""},debounceClearKbLog(){window.clearTimeout(this.kbInputTimer),this.kbInputTimer=window.setTimeout(()=>{this.clearKbInputLog()},this.opts.manualInputTimeout)},setKbInput(e){e=e||this.kbInputLog;const t=this.getCurrentTokenChunk();if(!t||!e||!e.length)return;const s=t.type,i=t.token;let n;if("apm"===s)this.lowerCasedApm(e).includes("a")?n="am":this.lowerCasedApm(e).includes("p")&&(n="pm"),n&&(n="A"===i?n.toUpperCase():n);else if(this.isValidValue(i,e))n=e;else{const t=this.formatValue(i,e.substr(-1));this.isValidValue(i,t)&&(n=t)}if(n){this.setSanitizedValueToSection(s,n);const e=this.getCurrentTokenChunk();this.debounceSetInputSelection(e)}this.debugMode&&(n?this.debugLog(`Successfully set value "${n}" from latest input "${e}" for the "${s}" slot`):this.debugLog(`Value "${e}" is invalid in the "${s}" slot`))},onChange(){if(!this.manualInput||!this.$refs||!this.$refs.input)return;const e=this.$refs.input.value||"";e&&e.length&&this.readStringValues(e)},getNearestChunkByPos(e){if(!this.tokenChunksPos||!this.tokenChunksPos.length)return;let t,s=-1;for(let i=0;i<this.tokenChunksPos.length;i++){const n=JSON.parse(JSON.stringify(this.tokenChunksPos[i]));if(n.start===e)return n;const a=Math.abs(n.start-e);if(s<0)t=n,s=a;else{if(s<=a)return t;s=a,t=n}}return t},selectFirstValidValue(){if(!this.tokenChunksPos||!this.tokenChunksPos.length)return;const e=this.tokenChunksPos[0].type;"hour"===e?this.getClosestHourItem():this.getClosestValidItemInCol(e,this[e]),this.selectFirstSlot()},getClosestHourItem(e,t="U"){if(!this.validHoursList||!this.validHoursList.length)return void(this.debugMode&&this.debugLog(`No valid hour values found, please check your "hour-range" config\nhour-range: ${JSON.stringify(this.hourRange)}`));if(!e)return void this.setManualHour(this.validHoursList[0]);const s=this.validHoursList.findIndex(t=>this.baseOn12Hours?t===`${e}${"pm"===this.lowerCasedApm(this.apm)?"p":"a"}`:t===e);let i;i=-1===s?0:"D"===t?0===s?this.validHoursList.length-1:s-1:(s+1)%this.validHoursList.length;const n=this.validHoursList[i];this.setManualHour(n)},getClosestValidItemInCol(e,t,s="U"){if("hour"===e)this.getClosestHourItem(t,s);else{const t="D"===s?this.prevItem(e,this[e],!0):this.nextItem(e,this[e],!0);t&&this.select(e,t.getAttribute("data-key"))}},setSanitizedValueToSection(e,t){if(!e||!this.getTokenByType(e))return;const s=this.sanitizedValue(this.getTokenByType(e),t);this[e]=s},setManualHour(e){if(this.is12hRange(e)){const t=this.match12hRange(e),s="a"===t[2]?"AM":"PM";this.setSanitizedValueToSection("apm","a"===this.apmType?s.toLowerCase():s),this.setSanitizedValueToSection("hour",t[1])}else this.setSanitizedValueToSection("hour",e)},debounceSetInputSelection({start:e=0,end:t=0}){s(()=>{this.setInputSelectionRange(e,t)}),window.clearTimeout(this.selectionTimer),this.selectionTimer=window.setTimeout(()=>{window.clearTimeout(this.selectionTimer),!this.$refs.input||this.$refs.input.selectionStart===e&&this.$refs.input.selectionEnd===t||this.setInputSelectionRange(e,t)}
1,30)},setInputSelectionRange(e,t){this.$refs&&this.$refs.input&&this.$refs.input.setSelectionRange(e,t)},getCurrentTokenChunk(){return this.getNearestChunkByPos(this.$refs.input&&this.$refs.input.selectionStart||0)},selectFirstSlot(){const e=this.getNearestChunkByPos(0);this.debounceSetInputSelection(e)},toLateralToken(e){const t=this.getCurrentTokenChunk();if(!t)return void this.selectFirstValidValue();const s=this.tokenChunksPos.findIndex(e=>e.token===t.token);if(!e&&s>=this.tokenChunksPos.length-1||e&&0===s)return void(this.debugMode&&(e?this.debugLog("You're in the leftmost slot already"):this.debugLog("You're in the rightmost slot already")));const i=e?this.tokenChunksPos[s-1]:this.tokenChunksPos[s+1];this.debounceSetInputSelection(i)},isCustomApmText(e){return!(!e||!e.length)&&(this.amText&&this.amText===e?"A"===this.apmType?"AM":"am":!(!this.pmText||this.pmText!==e)&&("A"===this.apmType?"PM":"pm"))},replaceCustomApmText(e){return this.amText&&this.amText.length&&e.includes(this.amText)?e.replace(new RegExp(this.amText,"g"),"A"===this.apmType?"AM":"am"):this.pmText&&this.pmText.length&&e.includes(this.pmText)?e.replace(new RegExp(this.pmText,"g"),"A"===this.apmType?"PM":"pm"):e},checkDropDirection(){if(!this.$el)return;let e;this.containerId&&this.containerId.length&&(e=document.getElementById(this.containerId),!e&&this.debugMode&&this.debugLog(`Container with id "${this.containerId}" not found. Fallback to document body.`));const t=this.$el;let s;s=e&&e.offsetHeight?e.offsetTop+e.offsetHeight-(t.offsetTop+t.offsetHeight):Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)-(t.offsetTop+t.offsetHeight),this.forceDropOnTop=this.opts.dropOffsetHeight>s},is12hRange:e=>/^\d{1,2}(a|p|A|P)$/.test(e),match12hRange:e=>e.match(/^(\d{1,2})(a|p|A|P)$/),isNumber:e=>!isNaN(parseFloat(e))&&isFinite(e),isBasicType:e=>Rn.BASIC_TYPES.includes(e),lowerCasedApm:e=>(e||"").toLowerCase(),getTokenRegex(e){switch(e){case"HH":return"([01][0-9]|2[0-3]|H{2})";case"H":return"([0-9]{1}|1[0-9]|2[0-3]|H{1})";case"hh":return"(0[1-9]|1[0-2]|h{2})";case"h":return"([1-9]{1}|1[0-2]|h{1})";case"kk":return"(0[1-9]|1[0-9]|2[0-4]|k{2})";case"k":return"([1-9]{1}|1[0-9]|2[0-4]|k{1})";case"mm":return"([0-5][0-9]|m{2})";case"ss":return"([0-5][0-9]|s{2})";case"m":return"([0-9]{1}|[1-5][0-9]|m{1})";case"s":return"([0-9]{1}|[1-5][0-9]|s{1})";case"A":return"(AM|PM|A{1})";case"a":return"(am|pm|a{1})";default:return""}},isEmptyValue:(e,t)=>!t||!t.length||t&&t===e,isValidValue(e,t){if(!e||this.isEmptyValue(e,t))return!1;const s=this.getTokenRegex(e);return!(!s||!s.length)&&new RegExp(`^${s}$`).test(t)},sanitizedValue(e,t){return this.isValidValue(e,t)?t:""},getTokenType(e){return this.inUse.types[this.inUse.tokens.indexOf(e)]||""},getTokenByType(e){return this[`${e}Type`]||""},isMinuteOrSecond:e=>["minute","second"].includes(e),booleanAttr:(e=!1)=>!!e||null,debugLog(e){if(!e||!e.length)return;let t="";if(this.id&&(t+=`#${this.id}`),this.name&&(t+=`[name=${this.name}]`),this.inputClass){let e=[];"string"==typeof this.inputClass?e=this.inputClass.split(/\s/g):Array.isArray(this.inputClass)?e=[].concat([],this.inputClass):"object"==typeof this.inputClass&&Object.keys(this.inputClass).forEach(t=>{this.inputClass[t]&&e.push(t)});for(let s of e)s&&s.trim().length&&(t+=`.${s.trim()}`)}const s=`DEBUG: ${e}${t?`\n\t(${t})`:""}`;window.console.debug&&"function"==typeof window.console.debug?window.console.debug(s):window.console.log(s)}},mounted(){window.clearTimeout(this.debounceTimer),window.clearTimeout(this.selectionTimer),window.clearTimeout(this.kbInputTimer),this.renderFormat()},beforeUnmount(){window.clearTimeout(this.debounceTimer),window.clearTimeout(this.selectionTimer),window.clearTimeout(this.kbInputTimer)}},Vn={key:0,class:"controls",tabindex:"-1"},An=c("span",{class:"char"},"×",-1),Ln=c("span",{class:"char"},"▾",-1),Pn={key:1,class:"custom-icon"};Nn.render=function(e,t,s,i,o,u){return r(),p("span",{class:"vue__time-picker",style:u.inputWidthStyle},[c("input",{type:"text",class:["vue__time-picker-input",[s.inputClass,{"is-empty":u.inputIsEmpty,invalid:u.hasInvalidInput,"all-selected":u.allValueSelected,disabled:s.disabled,"has-custom-icon":e.$slots&&e.$slots.icon}]],ref:"input",style:u.inputWidthStyle,id:s.id,name:s.name,value:u.inputIsEmpty?null:u.customDisplayTime,placeholder:s.placeholder?s.placeholder:u.formatString,tabindex:s.disabled?-1:s.tabindex,disabled:u.booleanAttr(s.disabled),readonly:u.booleanAttr(!s.manualInput),autocomplete:s.autocomplete,onFocus:t[1]||(t[1]=(...e)=>u.onFocus(...e)),onChange:t[2]||(t[2]=(...e)=>u.onChange(...e)),onBlur:t[3]||(t[3]=e=>{u.debounceBlur(),u.blurEvent()}),onMousedown:t[4]||(t[4]=(...e)=>u.onMouseDown(...e)),onKeydown:[t[5]||(t[5]=(...e)=>u.keyDownHandler(...e)),t[9]||(t[9]=x(C((...e)=>u.escBlur(...e),["exact"]),["esc"]))],onCompositionstart:t[6]||(t[6]=(...e)=>u.onCompostionStart(...e)),onCompositionend:t[7]||(t[7]=(...e)=>u.onCompostionEnd(...e)),onPaste:t[8]||(t[8]=(...e)=>u.pasteHandler(...e))},null,46,["id","name","value","placeholder","tabindex","disabled","readonly","autocomplete"]),u.showClearBtn||u.showDropdownBtn?(r(),p("div",Vn,[!o.isActive&&u.showClearBtn?(r(),p("span",{key:0,class:["clear-btn",{"has-custom-btn":e.$slots&&e.$slots.clearButton}
1],tabindex:"-1",onClick:t[10]||(t[10]=(...e)=>u.clearTime(...e))},[n(e.$slots,"clearButton",{},()=>[An])],2)):_("v-if",!0),u.showDropdownBtn?(r(),p("span",{key:1,class:["dropdown-btn",{"has-custom-btn":e.$slots&&e.$slots.dropdownButton}],tabindex:"-1",onClick:t[11]||(t[11]=e=>u.setDropdownState(!s.fixedDropdownButton||!o.showDropdown,!0)),onMousedown:t[12]||(t[12]=(...e)=>u.keepFocusing(...e))},[n(e.$slots,"dropdownButton",{},()=>[Ln])],34)):_("v-if",!0)])):_("v-if",!0),e.$slots&&e.$slots.icon?(r(),p("div",Pn,[n(e.$slots,"icon")])):_("v-if",!0),o.showDropdown?(r(),p("div",{key:2,class:"time-picker-overlay",onClick:t[13]||(t[13]=(...e)=>u.toggleActive(...e)),tabindex:"-1"})):_("v-if",!0),d(c("div",{class:["dropdown",[u.dropdownDirClass]],tabindex:"-1",style:u.inputWidthStyle,onMouseup:t[42]||(t[42]=(...e)=>u.keepFocusing(...e)),onClick:t[43]||(t[43]=C(()=>{},["stop"]))},[c("div",{class:"select-list",style:u.inputWidthStyle,tabindex:"-1"},[_(" Common Keyboard Support: less event listeners "),s.advancedKeyboard?_("v-if",!0):(r(!0),p(b,{key:0},l(u.columnsSequence,e=>(r(),p(b,{key:e},["hour"===e?(r(),p("ul",{key:0,class:"hours",onScroll:t[14]||(t[14]=(...e)=>u.keepFocusing(...e))},[c("li",{class:"hint",textContent:a(u.hourLabelText)},null,8,["textContent"]),(r(!0),p(b,null,l(o.hours,(e,t)=>(r(),p(b,{key:t},[!u.opts.hideDisabledHours||u.opts.hideDisabledHours&&!u.isDisabled("hour",e)?(r(),p("li",{key:0,class:{active:o.hour===e},disabled:u.booleanAttr(u.isDisabled("hour",e)),"data-key":e,textContent:a(e),onClick:t=>u.select("hour",e)},null,10,["disabled","data-key","textContent","onClick"])):_("v-if",!0)],64))),128))],32)):_("v-if",!0),"minute"===e?(r(),p("ul",{key:1,class:"minutes",onScroll:t[15]||(t[15]=(...e)=>u.keepFocusing(...e))},[c("li",{class:"hint",textContent:a(u.minuteLabelText)},null,8,["textContent"]),(r(!0),p(b,null,l(o.minutes,(e,t)=>(r(),p(b,{key:t},[!u.opts.hideDisabledMinutes||u.opts.hideDisabledMinutes&&!u.isDisabled("minute",e)?(r(),p("li",{key:0,class:{active:o.minute===e},disabled:u.booleanAttr(u.isDisabled("minute",e)),"data-key":e,textContent:a(e),onClick:t=>u.select("minute",e)},null,10,["disabled","data-key","textContent","onClick"])):_("v-if",!0)],64))),128))],32)):_("v-if",!0),"second"===e?(r(),p("ul",{key:2,class:"seconds",onScroll:t[16]||(t[16]=(...e)=>u.keepFocusing(...e))},[c("li",{class:"hint",textContent:a(u.secondLabelText)},null,8,["textContent"]),(r(!0),p(b,null,l(o.seconds,(e,t)=>(r(),p(b,{key:t},[!u.opts.hideDisabledSeconds||u.opts.hideDisabledSeconds&&!u.isDisabled("second",e)?(r(),p("li",{key:0,class:{active:o.second===e},disabled:u.booleanAttr(u.isDisabled("second",e)),"data-key":e,textContent:a(e),onClick:t=>u.select("second",e)},null,10,["disabled","data-key","textContent","onClick"])):_("v-if",!0)],64))),128))],32)):_("v-if",!0),"apm"===e?(r(),p("ul",{key:3,class:"apms",onScroll:t[17]||(t[17]=(...e)=>u.keepFocusing(...e))},[c("li",{class:"hint",textContent:a(u.apmLabelText)},null,8,["textContent"]),(r(!0),p(b,null,l(o.apms,(e,t)=>(r(),p(b,{key:t},[!u.opts.hideDisabledHours||u.opts.hideDisabledHours&&!u.isDisabled("apm",e)?(r(),p("li",{key:0,class:{active:o.apm===e},disabled:u.booleanAttr(u.isDisabled("apm",e)),"data-key":e,textContent:a(u.apmDisplayText(e)),onClick:t=>u.select("apm",e)},null,10,["disabled","data-key","textContent","onClick"])):_("v-if",!0)],64))),128))],32)):_("v-if",!0)],64))),128)),_(" / Common Keyboard Support "),_("\n        Advanced Keyboard Support\n        Addeds hundreds of additional event lisenters\n      "),s.advancedKeyboard?(r(!0),p(b,{key:1},l(u.columnsSequence,e=>(r(),p(b,{key:e},["hour"===e?(r(),p("ul",{key:0,class:"hours",tabindex:"-1",onScroll:t[23]||(t[23]=(...e)=>u.keepFocusing(...e))},[c("li",{class:"hint",textContent:a(u.hourLabelText),tabindex:"-1"},null,8,["textContent"]),(r(!0),p(b,null,l(o.hours,(e,i)=>(r(),p(b,{key:i},[!u.opts.hideDisabledHours||u.opts.hideDisabledHours&&!u.isDisabled("hour",e)?(r(),p("li",{key:0,class:{active:o.hour===e},tabindex:u.isDisabled("hour",e)?-1:s.tabindex,"data-key":e,disabled:u.booleanAttr(u.isDisabled("hour",e)),textContent:a(e),onClick:t=>u.select("hour",e),onKeydown:[x(C(t=>u.select("hour",e),["prevent"]),["space"]),x(C(t=>u.select("hour",e),["prevent"]),["enter"]),x(C(t=>u.prevItem("hour",e),["prevent"]),["up"]),x(C(t=>u.nextItem("hour",e),["prevent"]),["down"]),t[18]||(t[18]=x(C(e=>u.toLeftColumn("hour"),["prevent"]),["left"])),t[19]||(t[19]=x(C(e=>u.toRightColumn("hour"),["prevent"]),["right"])),t[20]||(t[20]=x(C((...e)=>u.debounceBlur(...e),["exact"]),["esc"]))],onBlur:t[21]||(t[21]=(...e)=>u.debounceBlur(...e)),onFocus:t[22]||(t[22]=(...e)=>u.keepFocusing(...e))},null,42,["tabindex","data-key","disabled","textContent","onClick","onKeydown"])):_("v-if",!0)],64))),128))],32)):_("v-if",!0),"minute"===e?(r(
1),p("ul",{key:1,class:"minutes",tabindex:"-1",onScroll:t[29]||(t[29]=(...e)=>u.keepFocusing(...e))},[c("li",{class:"hint",textContent:a(u.minuteLabelText),tabindex:"-1"},null,8,["textContent"]),(r(!0),p(b,null,l(o.minutes,(e,i)=>(r(),p(b,{key:i},[!u.opts.hideDisabledMinutes||u.opts.hideDisabledMinutes&&!u.isDisabled("minute",e)?(r(),p("li",{key:0,class:{active:o.minute===e},tabindex:u.isDisabled("minute",e)?-1:s.tabindex,"data-key":e,disabled:u.booleanAttr(u.isDisabled("minute",e)),textContent:a(e),onClick:t=>u.select("minute",e),onKeydown:[x(C(t=>u.select("minute",e),["prevent"]),["space"]),x(C(t=>u.select("minute",e),["prevent"]),["enter"]),x(C(t=>u.prevItem("minute",e),["prevent"]),["up"]),x(C(t=>u.nextItem("minute",e),["prevent"]),["down"]),t[24]||(t[24]=x(C(e=>u.toLeftColumn("minute"),["prevent"]),["left"])),t[25]||(t[25]=x(C(e=>u.toRightColumn("minute"),["prevent"]),["right"])),t[26]||(t[26]=x(C((...e)=>u.debounceBlur(...e),["exact"]),["esc"]))],onBlur:t[27]||(t[27]=(...e)=>u.debounceBlur(...e)),onFocus:t[28]||(t[28]=(...e)=>u.keepFocusing(...e))},null,42,["tabindex","data-key","disabled","textContent","onClick","onKeydown"])):_("v-if",!0)],64))),128))],32)):_("v-if",!0),"second"===e?(r(),p("ul",{key:2,class:"seconds",tabindex:"-1",onScroll:t[35]||(t[35]=(...e)=>u.keepFocusing(...e))},[c("li",{class:"hint",textContent:a(u.secondLabelText),tabindex:"-1"},null,8,["textContent"]),(r(!0),p(b,null,l(o.seconds,(e,i)=>(r(),p(b,{key:i},[!u.opts.hideDisabledSeconds||u.opts.hideDisabledSeconds&&!u.isDisabled("second",e)?(r(),p("li",{key:0,class:{active:o.second===e},tabindex:u.isDisabled("second",e)?-1:s.tabindex,"data-key":e,disabled:u.booleanAttr(u.isDisabled("second",e)),textContent:a(e),onClick:t=>u.select("second",e),onKeydown:[x(C(t=>u.select("second",e),["prevent"]),["space"]),x(C(t=>u.select("second",e),["prevent"]),["enter"]),x(C(t=>u.prevItem("second",e),["prevent"]),["up"]),x(C(t=>u.nextItem("second",e),["prevent"]),["down"]),t[30]||(t[30]=x(C(e=>u.toLeftColumn("second"),["prevent"]),["left"])),t[31]||(t[31]=x(C(e=>u.toRightColumn("second"),["prevent"]),["right"])),t[32]||(t[32]=x(C((...e)=>u.debounceBlur(...e),["exact"]),["esc"]))],onBlur:t[33]||(t[33]=(...e)=>u.debounceBlur(...e)),onFocus:t[34]||(t[34]=(...e)=>u.keepFocusing(...e))},null,42,["tabindex","data-key","disabled","textContent","onClick","onKeydown"])):_("v-if",!0)],64))),128))],32)):_("v-if",!0),"apm"===e?(r(),p("ul",{key:3,class:"apms",tabindex:"-1",onScroll:t[41]||(t[41]=(...e)=>u.keepFocusing(...e))},[c("li",{class:"hint",textContent:a(u.apmLabelText),tabindex:"-1"},null,8,["textContent"]),(r(!0),p(b,null,l(o.apms,(e,i)=>(r(),p(b,{key:i},[!u.opts.hideDisabledHours||u.opts.hideDisabledHours&&!u.isDisabled("apm",e)?(r(),p("li",{key:0,class:{active:o.apm===e},tabindex:u.isDisabled("apm",e)?-1:s.tabindex,"data-key":e,disabled:u.booleanAttr(u.isDisabled("apm",e)),textContent:a(u.apmDisplayText(e)),onClick:t=>u.select("apm",e),onKeydown:[x(C(t=>u.select("apm",e),["prevent"]),["space"]),x(C(t=>u.select("apm",e),["prevent"]),["enter"]),x(C(t=>u.prevItem("apm",e),["prevent"]),["up"]),x(C(t=>u.nextItem("apm",e),["prevent"]),["down"]),t[36]||(t[36]=x(C(e=>u.toLeftColumn("apm"),["prevent"]),["left"])),t[37]||(t[37]=x(C(e=>u.toRightColumn("apm"),["prevent"]),["right"])),t[38]||(t[38]=x(C((...e)=>u.debounceBlur(...e),["exact"]),["esc"]))],onBlur:t[39]||(t[39]=(...e)=>u.debounceBlur(...e)),onFocus:t[40]||(t[40]=(...e)=>u.keepFocusing(...e))},null,42,["tabindex","data-key","disabled","textContent","onClick","onKeydown"])):_("v-if",!0)],64))),128))],32)):_("v-if",!0)],64))),128)):_("v-if",!0),_(" / Advanced Keyboard Support ")],4)],38),[[M,o.showDropdown]])],4)},Nn.__file="src/VueTimepicker.vue";var Fn={xmlns:"http://www.w3.org/2000/svg",width:"186",height:"187",fill:"none",viewBox:"0 0 186 187"},En=Object.assign(N({},[["render",function(e,t){return r(),g("svg",Fn,[...t[0]||(t[0]=[D('<g clip-path="url(#clip0_1828_13491)"><path fill="#F0F7FF" d="M171.412 43.828H22.16L0 55.15V187h142.043L186 154.129V55.15z"></path><path fill="#DFE7F4" d="M186 154.129V55.15l-14.588-11.322H93V187h49.043z"></path><path fill="#FF8066" d="M93 10.957H0V55.15h186V10.957z"></path><path fill="#FD435B" d="M93 10.957h93V55.15H93z"></path><path fill="#C7CFE1" d="M186 154.129v7.779L160.68 187h-18.637v-32.871z"></path><path fill="#463F3F" d="M109.348 0h10.898v32.871h-10.898zm43.593 0h10.899v32.871h-10.899z"></path><path fill="#FF8066" d="M93 77.43c-21.03 0-38.144 17.205-38.144 38.349s17.113 38.35 38.144 38.35 38.145-17.206 38.145-38.35S114.031 77.429 93 77.429m0 65.742c-15.023 0-27.246-12.289-27.246-27.393a27.3 27.3 0 0 1 4.54-15.082L93 123.526l15.001 15.082c-4.307 2.871-9.457 4.564-15.001 4.564m22.707-12.311L93 108.032 77.999 92.95c4.307-2.87 9.457-4.563 15.001-4.563 15.023 0 27.246 12.289 27.246 27.392a27.3 27.3 0 0 1-4.539 15.082"></path><path fill="#FD435B" d="M131.145 115.779c0-21.144-17.114-38.35-38.145-38.35v10.958c15.023 0 27.246 12.289 27.246 27.392a27.3 27.3 0 0 1-4.539 15.082L93 108.032v15.494l15.001 15.082c-4.307 2.871-9.457 4.564-15.001 4.564v10.957c21.031 0 38.145-17.206 38.145-38.35"></path><path fill="#5B5555" d="M22.16 0h10.9v32.871h-10.9zm43.594 0h10.898v32.871H65.754z"></path></g><defs><clipPath id="clip0_1828_13491"><path fill="#fff" d="M0 0h186v187H0z"></path></clipPath></defs>',2)])])}]]),{__name:"IconNoDate"}),$n={src:new URL("icon-selected-time-notice.BbxoQqlc.png",import.meta.url).href,alt:"icon-selected-time-notice",loading:"lazy",width:"226",height:"227"},Un=Object.assign(N({},[["render",function(e,t){return r(),g("img",$n)}]]),{__name:"IconSelectedTimeNotice"}),Wn={xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"none",viewBox:"0 0 22 22"},Bn=Object.assign(N({},[["render",function(e,t){return r(),g("svg",Wn,[...t[0]||(t[0]=[f("path",{stroke:"currentColor","stroke-width":"2",d:"M11 21c5.523 0 10-4.477 10-10S16.523 1 11 1 1 5.477 1 11s4.477 10 10 10Z"},null,-1),f("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11 7v4l2.5 2.5"},null,-1)])])}]]),{__name:"IconTime"}),jn={class:"mt-8 flex flex-wrap gap-4"},Gn={class:"flex w-full flex-col gap-4 md:flex-[2]"},zn={class:"flex items-center justify-between"},Kn={class:"flex items-center gap-2 font-bold md:text-lg"},Jn={key:1,class:"h-[153px] animate-pulse rounded-2xl bg-gray-100"},Zn={class:"font-bold"},qn={class:"font-almarai text-sm text-[#4E4E4E]"},Qn={key:2,class:"flex items-center gap-1 font-semibold text-red-500"},Xn={class:"flex items-center gap-2 border-b pb-2 font-bold md:text-lg"},ea={class:"font-medium"},ta={class:"font-medium"},sa={key:1,class:"h-[60px] animate-pulse rounded-2xl bg-gray-100"},ia={class:"flex w-full flex-col gap-4 md:flex-[1]"},na={class:"text-center text-xl font-bold"},aa={class:"my-14 flex w-full flex-col gap-4"},ra={key:0,class:"available-times flex flex-wrap items-center justify-between gap-4"},oa={key:1,class:"flex items-center justify-center"},la={class:"mt-4 flex w-full justify-between gap-2"},ua=o({__name:"CompletePurchasePage",async setup(s){let n,o;const d=e(),{t:D}=O(),x=Y(),M=H(),C=ne(),N=S(()=>String(d.params.type||"delivery")),V=v({date:"",time:null}),L=m(!1),P=m(!1),q=m(!1),oe=m(!1),le=m(!1),ue=m(""),he=m(""),de=m(null),ce=m(null),me=m(""),fe=S(()=>"store"===N.value?1:2),ge=S(()=>M.address),ve=e=>e?"string"==typeof e?e:String(e.id??e.name):"",_e=e=>ve(ce.value)===ve(e),ke=S(()=>"object"==typeof V.time?V.time?.id??null:null),be=S(()=>V.time?"object"==typeof V.time?V.time.name:V.time:D("cart.choose_time")),we=S(()=>{const e=ge.value;return{lat:e?.lat||e?.latitude,lng:e?.lng||e?.longitude}}),{data:Se}=([n,o]=h(()=>I("app-settings",K,{lazy:!0,server:!1})),n=await n,o(),n),{data:De}=([n,o]=h(()=>I("complete-purchase:addresses",()=>j(),{lazy:!0,server:!1})),n=await n,o(),n),{data:Te,pending:xe,refresh:Me}=([n,o]=h(async()=>I("complete-purchase:periods",async()=>
1{if("delivery"!==N.value||!V.date||!ge.value?.id)return[];try{return he.value="",await ie({date:V.date,shipping_id:ge.value.id})}catch(e){return he.value=e?.response?.data?.message||D("cart.selected_date_no_time_notice"),le.value=!0,[]}},{lazy:!0,server:!1,watch:[()=>V.date,ge]})),n=await n,o(),n),{data:Ce,pending:Ye}=([n,o]=h(()=>I("complete-purchase:cart",()=>W({delivery_type:fe.value,delivery_time_id:ke.value}),{lazy:!0,server:!1,watch:[fe,ke]})),n=await n,o(),n),Oe=S(()=>"delivery"===N.value?we.value:{lat:Se.value?.lat,lng:Se.value?.lng}),Ie=S(()=>"store"===N.value?Se.value?.address||"":ge.value?.address||D("cart.note_to_choose_address_for_delivery"));k(De,e=>{!ge.value&&e?.[0]&&(M.address=e[0])},{immediate:!0}),k(()=>V.date,()=>{V.time=null,Me()}),k(Te,e=>{if(!e?.length||"delivery"!==N.value)return;const t=ve(V.time);t&&(V.time=e.find(e=>ve(e)===t)||null);const s=ve(ce.value);s&&(ce.value=e.find(e=>ve(e)===s)||null)});const{logInitiateCheckout:Re}=R();B({title:D("cart.complete_purchase"),path:`/complete-purchase/receipt/${N.value}`});const He=async e=>{M.setAddress(e),V.time=null,L.value=!1,V.date&&(await Me(),Te.value?.length&&(q.value=!0))},Ne=e=>{de.value=e,V.date=(e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`)(e),P.value=!1},Ve=()=>{V.date&&!xe.value&&(ce.value=V.time,me.value="string"==typeof V.time?V.time:ye(`${V.date} ${Se.value?.startTime||""}`,"YYYY-MM-DD hh:mm A").format("hh:mm A"),q.value=!0)},Ae=()=>{if("delivery"!==N.value){const{hoursBeforeOrderForStore:e=0,startTime:t,endTime:s}=Se.value||{},i=ye(`${V.date} ${me.value}`,"YYYY-MM-DD hh:mm A"),n=ye(`${V.date} ${t}`,"YYYY-MM-DD hh:mm:ss A"),a=ye(`${V.date} ${s}`,"YYYY-MM-DD hh:mm:ss A"),r=i.diff(ye(),"hours");return me.value?t&&s&&(i.isBefore(n)||i.isAfter(a))?void(ue.value=D("The selected time must be in the work time, from: to:",{from:t,to:s})):r<Number(e||0)?void(ue.value=D("The selected time must be greater than hours from now",{count:e})):(V.time=me.value,void(q.value=!1)):void(ue.value=D("Please choose a time first"))}ce.value&&(V.time=ce.value,q.value=!1,"delivery"===N.value&&(oe.value=!0))},Le=async()=>{if(ue.value="","delivery"===N.value&&!ge.value?.id)return void(ue.value=D("Please choose an address first"));if(!V.date)return void(ue.value=D("Please choose a date first"));if(!V.time)return void(ue.value=D("Please choose a time first"));if(C.setCompletePurchase({user_id:ge.value?.userId||ge.value?.user_id||M.user?.id||null,shipping_id:ge.value?.id||null,delivery_type:fe.value,code:null,pay_type:null,delivery_date:V.date,deliver_time_id:ke.value,time_receipt:"string"==typeof V.time?V.time:null,use_wallet:!1}),!Ce.value?.bill?.totalPrice)return void(await t(x("/cart")));const e=Ce.value?.cart?.products||[],s=e.map(e=>e.id);Re(Ce.value.bill.totalPrice,"SAR",e.length,s),await t(x("/checkout"))};return(e,t)=>{const s=A,n=J,o=X,h=$,d=G,m=U,v=pe,k=F,S=Q,x=se;return r(),g("main",null,[c(m,{class:"complete-purchase py-8"},{default:u(()=>[c(s,{data:[y(D)("cart.title"),y(D)("cart.complete_purchase")]},null,8,["data"]),f("div",jn,[f("div",Gn,[c(h,{class:"space-y-4 border-[.5px] border-[#D2D2D2] p-4 !shadow-none"},{default:u(()=>[f("div",zn,[f("h2",Kn,[c(n,{class:"text-primary"}),f("span",null,a(y(D)("address")),1)]),"delivery"===y(N)?(r(),p(E,{key:0,variant:"unstyled",type:"button",class:"cursor-pointer text-primary","aria-label":y(D)("change_address"),onClick:t[0]||(t[0]=e=>L.value=!0)},{default:u(()=>[c(ee)]),_:1},8,["aria-label"])):_("",!0)]),y(Ie)?(r(),p(Z,{key:0,position:y(Oe),"map-events":!1},null,8,["position"])):(r(),g("div",Jn)),f("p",null,[f("span",Zn,a(y(D)("delivery"===y(N)?"your_address":"store_address"))+" :",1),f("span",qn,a(y(Ie)),1)]),"delivery"===y(N)?(r(),g("p",Qn,[c(o,{class:"h-6 w-6"}),f("span",null,a(y(D)("delivery_address_warning")),1)])):_("",!0)]),_:1}),c(h,{class:"space-y-4 border-[.5px] border-[#D2D2D2] p-4 !shadow-none"},{default:u(()=>[f("h2",Xn,[c(re,{class:"text-primary"}),f("span",null,a(y(D)("cart.choose_delivery_date_time")),1)]),c(E,{variant:"unstyled",type:"button",class:"complete-purchase__picker w-full",onClick:t[1]||(t[1]=e=>P.value=!0)},{default:u(()=>[c(te),f("span",ea,a(y(V).date||y(D)("cart.choose_date")),1)]),_:1}),y(V).date&&(y(Te)?.length||"delivery"!==y(N))?(r(),p(E,{key:0,variant:"unstyled",type:"button",class:"complete-purchase__picker w-full",onClick:Ve},{default:u(()=>[c(Bn),f("span",ta,a(y(be)),1)]),_:1})):_("",!0),y(xe)?(r(),g("div",sa)):_("",!0)]),_:1})]),f("div",ia,[c(ae,{summary:y(Ce)?.bill,loading:y(Ye),"show-delivery":"delivery"===y(N)},null,8,["summary","loading","show-delivery"]),y(Ye)?_("",!0):(r(),p(d,{key:0,class:"w-full",type:"button",onClick:Le},{default:u(()=>[T(a(y(D)("next")),1)]),_:1}))])])]),_:1}),c(z,{show:y(L),"current-address":y(ge),onClose:t[2]||(t[2]=e=>L.value=!1),onAccept:He},null,8,["show","current-address"]),c(k,{show:y(P),class:"datepicker-modal min-h-[400px] !border-none 
1!bg-transparent !shadow-none","max-width-class":"max-w-[370px]",onClose:t[4]||(t[4]=e=>P.value=!1)},{default:u(()=>[c(v,{modelValue:y(de),"onUpdate:modelValue":t[3]||(t[3]=e=>w(de)?de.value=e:null),"min-date":new Date,class:"complete-purchase__calendar",onDateSelect:Ne},null,8,["modelValue","min-date"])]),_:1},8,["show"]),c(k,{show:y(q),"close-icon":!1,"max-width-class":"max-w-[520px]",onClose:t[7]||(t[7]=e=>q.value=!1)},{header:u(()=>[f("h2",na,a(y(D)("available_delivery_periods")),1)]),footer:u(()=>[f("div",la,[c(E,{variant:"unstyled",class:"button primary-button w-full !p-3",type:"button",onClick:Ae},{default:u(()=>[T(a(y(D)("cart.choose_time")),1)]),_:1}),c(E,{variant:"unstyled",class:"button secondary-button w-full !p-3 text-[var(--neutral-color-shade-3)]",type:"button",onClick:t[6]||(t[6]=e=>{q.value=!1,ce.value=null,me.value=""})},{default:u(()=>[T(a(y(D)("cancel")),1)]),_:1})])]),default:u(()=>[f("div",aa,["delivery"===y(N)?(r(),g("div",ra,[(r(!0),g(b,null,l(y(Te),e=>(r(),p(E,{variant:"unstyled",key:e.id||e.name,type:"button",class:i(["available-times__item font-medium",_e(e)?"bg-primary-100 text-primary":"bg-secondary text-[#4E4E4E]"]),onClick:t=>(e=>{ce.value=e})(e)},{default:u(()=>[T(a(e.name),1)]),_:2},1032,["class","onClick"]))),128))])):(r(),g("div",oa,[c(y(Nn),{modelValue:y(me),"onUpdate:modelValue":t[5]||(t[5]=e=>w(me)?me.value=e:null),format:"hh:mm A",dir:"ltr",placeholder:y(D)("cart.choose_time")},null,8,["modelValue","placeholder"])]))])]),_:1},8,["show"]),c(S,{show:y(oe),icon:Un,title:y(Se)?.deliveryMessage||y(Se)?.delivery_message,onClose:t[8]||(t[8]=e=>oe.value=!1),onAccept:t[9]||(t[9]=e=>oe.value=!1)},null,8,["show","title"]),c(S,{show:y(le),icon:En,title:y(he)||y(D)("cart.selected_date_no_time_notice"),onClose:t[10]||(t[10]=e=>le.value=!1),onAccept:t[11]||(t[11]=e=>le.value=!1)},null,8,["show","title"]),c(x,{show:!!y(ue),title:y(ue),onClose:t[12]||(t[12]=e=>ue.value="")},null,8,["show","title"])])}}}),ha=o({__name:"[type]",setup:e=>(q({middleware:["auth"]}),(e,t)=>(r(),p(ua)))});export{ha as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.