Root Zanli
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
o5t6x7pgljbm
/
public_html
/
admin
/
public
/
app-assets
/
js
/
Filename :
mdtimepicker.min.js
back
Copy
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).mdtimepicker=e()}(this,function(){"use strict";function R(t){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function D(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function F(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,N(r.key),r)}}function V(t,e,n){e&&F(t.prototype,e),n&&F(t,n),Object.defineProperty(t,"prototype",{writable:!1})}function N(t){t=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return("string"===e?String:Number)(t);if("object"!=typeof(n=n.call(t,e||"default")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string");return"symbol"==typeof t?t:String(t)}function G(t){return t&&t.Math==Math&&t}function t(t){try{return!!t()}catch(t){return!0}}function $(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}function B(t){return ct(ot(t),8,-1)}function U(t){return null==t}function q(t){if(lt(t))throw ft("Can't call method on "+t);return t}function z(t){return dt(pt(t))}function e(t,e){return arguments.length<2?(n=gt[t],yt(n)?n:void 0):gt[t]&>[t][e];var n}function Y(t){try{return St(t)}catch(t){return"Object"}}function n(t){if(Ot(t))return t;throw At(_t(t)+" is not a function")}function r(t,e){return t=t[e],Pt(t)?void 0:It(t)}function W(e,n){try{Rt(Ct,e,{value:n,configurable:!0,writable:!0})}catch(t){Ct[e]=n}return n}function K(t){return Vt(Ft(t))}function X(t){return"Symbol("+(void 0===t?"":t)+")_"+Ut(++$t+Bt,36)}function i(t){return qt(Kt,t)||(Kt[t]=Yt&&qt(Wt,t)?Wt[t]:Xt("Symbol."+t)),Kt[t]}function J(t){return t=ie(t,"string"),oe(t)?t:t+""}function Q(t){return ue?ce.createElement(t):{}}function o(t){if(ge(t))return t;throw be(ye(t)+" is not an object")}function Z(t){return Me[t]||(Me[t]=He(t))}var tt,et,c,u,a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a=G("object"==typeof globalThis&&globalThis)||G("object"==typeof window&&window)||G("object"==typeof self&&self)||G("object"==typeof a&&a)||function(){return this}()||Function("return this")(),s={},l=!t(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),f=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}),nt=Function.prototype.call,d=f?nt.bind(nt):function(){return nt.apply(nt,arguments)},p={},h={}.propertyIsEnumerable,rt=Object.getOwnPropertyDescriptor,m=rt&&!h.call({1:2},1),m=(p.f=m?function(t){t=rt(this,t);return!!t&&t.enumerable}:h,f),h=Function.prototype,it=h.call,h=m&&h.bind.bind(it,it),m=m?h:function(t){return function(){return it.apply(t,arguments)}},h=m,ot=h({}.toString),ct=h("".slice),h=t,ut=B,at=Object,st=m("".split),h=h(function(){return!at("z").propertyIsEnumerable(0)})?function(t){return"String"==ut(t)?st(t,""):at(t)}:at,lt=U,ft=TypeError,dt=h,pt=q,v="object"==typeof document&&document.all,v={all:v,IS_HTMLDDA:void 0===v&&void 0!==v},ht=v.all,g=v.IS_HTMLDDA?function(t){return"function"==typeof t||t===ht}:function(t){return"function"==typeof t},mt=g,vt=v.all,v=v.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:mt(t)||t===vt}:function(t){return"object"==typeof t?null!==t:mt(t)},gt=a,yt=g,bt=m({}.isPrototypeOf),y="undefined"!=typeof navigator&&String(navigator.userAgent)||"",b=a.process,w=a.Deno,b=b&&b.versions||w&&w.version,w=b&&b.v8,b=k=!(k=w?0<(E=w.split("."))[0]&&E[0]<4?1:+(E[0]+E[1]):k)&&y&&(!(E=y.match(/Edge\/(\d+)/))||74<=E[1])&&(E=y.match(/Chrome\/(\d+)/))?+E[1]:k,wt=b,w=t,y=!!Object.getOwnPropertySymbols&&!w(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&wt&&wt<41}),E=y&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Et=e,kt=g,xt=bt,Tt=Object,k=E?function(t){return"symbol"==typeof t}:function(t){var e=Et("Symbol");return kt(e)&&xt(e.prototype,Tt(t))},St=String,Ot=g,_t=Y,At=TypeError,It=n,Pt=U,Lt=d,jt=g,Ht=v,Mt=TypeError,w={exports:{}},Ct=a,Rt=Object.defineProperty,x=W,T="__core-js_shared__",x=a[T]||x(T,{}),Dt=x,T=((w.exports=function(t,e){return Dt[t]||(Dt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"}),w.exports),Ft=q,Vt=Object,Nt=K,Gt=m({}.hasOwnProperty),w=Object.hasOwn||function(t,e){return Gt(Nt(t),e)},S=m,$t=0,Bt=Math.random(),Ut=S(1..toString),S=T,qt=w,zt=X,Yt=y,y=E,Wt=a.Symbol,Kt=S("wks"),Xt=y?Wt.for||Wt:Wt&&Wt.withoutSetter||zt,Jt=d,Qt=v,Zt=k,te=r,ee=function(t,e){var n,r;if("string"===e&&jt(n=t.toString)&&!Ht(r=Lt(n,t)))return r;if(jt(n=t.valueOf)&&!Ht(r=Lt(n,t)))return r;if("string"!==e&&jt(n=t.toString)&&!Ht(r=Lt(n,t)))return r;throw Mt("Can't convert object to primitive value")},ne=TypeError,re=i("toPrimitive"),ie=function(t,e){if(!Qt(t)||Zt(t))return t;var n=te(t,re);if(n){if(n=Jt(n,t,e=void 0===e?"default":e),!Qt(n)||Zt(n))return n;throw ne("Can't convert object to primitive value")}return ee(t,e=void 0===e?"number":e)},oe=k,E=v,ce=a.document,ue=E(ce)&&E(ce.createElement),ae=Q,S=!l&&!t(function(){return 7!=Object.defineProperty(ae("div"),"a",{get:function(){return 7}}).a}),se=d,le=p,fe=$,de=z,pe=J,he=w,me=S,ve=Object.getOwnPropertyDescriptor,y=(s.f=l?ve:function(t,e){if(t=de(t),e=pe(e),me)try{return ve(t,e)}catch(t){}if(he(t,e))return fe(!se(le.f,t,e),t[e])},{}),zt=l&&t(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),ge=v,ye=String,be=TypeError,we=S,Ee=o,ke=J,xe=TypeError,Te=Object.defineProperty,Se=Object.getOwnPropertyDescriptor,Oe="enumerable",_e="configurable",Ae="writable",k=(y.f=l?zt?function(t,e,n){var r;return Ee(t),e=ke(e),Ee(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Ae in n&&!n[Ae]&&(r=Se(t,e))&&r[Ae]&&(t[e]=n.value,n={configurable:(_e in n?n:r)[_e],enumerable:(Oe in n?n:r)[Oe],writable:!1}),Te(t,e,n)}:Te:function(t,e,n){if(Ee(t),e=ke(e),Ee(n),we)try{return Te(t,e,n)}catch(t){}if("get"in n||"set"in n)throw xe("Accessors not supported");return"value"in n&&(t[e]=n.value),t},l),Ie=y,Pe=$,E=k?function(t,e,n){return Ie.f(t,e,Pe(1,n))}:function(t,e,n){return t[e]=n,t},p={exports:{}},S=l,k=w,Le=Function.prototype,O=S&&Object.getOwnPropertyDescriptor,k=k(Le,"name"),k={EXISTS:k,PROPER:k&&"something"===function(){}.name,CONFIGURABLE:k&&(!S||O(Le,"name").configurable)},S=g,O=x,je=m(Function.toString),Le=(S(O.inspectSource)||(O.inspectSource=function(t){return je(t)}),O.inspectSource),S=g,O=a.WeakMap,S=S(O)&&/native code/.test(String(O)),He=X,Me=T("keys"),O={},Ce=v,Re=E,De=w,_=Z,A=O,Fe="Object already initialized",Ve=a.TypeError,I=a.WeakMap,Ne=S||x.state?((c=x.state||(x.state=new I)).get=c.get,c.has=c.has,c.set=c.set,tt=function(t,e){if(c.has(t))throw Ve(Fe);return e.facade=t,c.set(t,e),e},et=function(t){return c.get(t)||{}},function(t){return c.has(t)}):(A[u=_("state")]=!0,tt=function(t,e){if(De(t,u))throw Ve(Fe);return e.facade=t,Re(t,u,e),e},et=function(t){return De(t,u)?t[u]:{}},function(t){return De(t,u)}),S={set:tt,get:et,has:Ne,enforce:function(t){return Ne(t)?et(t):tt(t,{})},getterFor:function(e){return function(t){if(Ce(t)&&(t=et(t)).type===e)return t;throw Ve("Incompatible receiver, "+e+" required")}}},x=m,I=t,Ge=g,$e=w,Be=l,Ue=k.CONFIGURABLE,qe=Le,ze=S.enforce,Ye=S.get,We=String,Ke=Object.defineProperty,Xe=x("".slice),Je=x("".replace),Qe=x([].join),Ze=Be&&!I(function(){return 8!==Ke(function(){},"length",{value:8}).length}),tn=String(String).split("String"),A=p.exports=function(t,e,n){"Symbol("===Xe(We(e),0,7)&&(e="["+Je(We(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!$e(t,"name")||Ue&&t.name!==e)&&(Be?Ke(t,"name",{value:e,configurable:!0}):t.name=e),Ze&&n&&$e(n,"arity")&&t.length!==n.arity&&Ke(t,"length",{value:n.arity});try{n&&$e(n,"constructor")&&n.constructor?Be&&Ke(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}n=ze(t);return $e(n,"source")||(n.source=Qe(tn,"string"==typeof e?e:"")),t};Function.prototype.toString=A(function(){return Ge(this)&&Ye(this).source||qe(this)},"toString");function en(t,e,n,r){var i=(r=r||{}).enumerable,o=void 0!==r.name?r.name:e;if(fn(n)&&pn(n,o,r),r.global)i?t[e]=n:hn(e,n);else{try{r.unsafe?t[e]&&(i=!0):delete t[e]}catch(t){}i?t[e]=n:dn.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t}function nn(t){return(t=+t)!=t||0==t?0:gn(t)}function rn(t,e){return(t=yn(t))<0?bn(t+e,0):wn(t,e)}function on(t){return 0<t?kn(En(t),9007199254740991):0}function cn(t){return xn(t.length)}function un(u){return function(t,e,n){var r,i=Tn(t),o=On(i),c=Sn(n,o);if(u&&e!=e){for(;c<o;)if((r=i[c++])!=r)return!0}else for(;c<o;c++)if((u||c in i)&&i[c]===e)return u||c||0;return!u&&-1}}function an(t,e){var n,r=An(t),i=0,o=[];for(n in r)!_n(Pn,n)&&_n(r,n)&&Ln(o,n);for(;e.length>i;)!_n(r,n=e[i++])||~In(o,n)||Ln(o,n);return o}function sn(t,e){return(t=zn[qn(t)])==Wn||t!=Yn&&(Bn(e)?$n(e):!!e)}function P(t,e){var n,r,i,o=t.target,c=t.global,u=t.stat,a=c?Kn:u?Kn[o]||Zn(o,{}):(Kn[o]||{}).prototype;if(a)for(n in e){if(r=e[n],i=t.dontCallGetSet?(i=Xn(a,n))&&i.value:a[n],!er(c?n:o+(u?".":"#")+n,t.forced)&&void 0!==i){if(typeof r==typeof i)continue;tr(r,i)}(t.sham||i&&i.sham)&&Jn(r,"sham",!0),Qn(a,n,r,t)}}function ln(t){if("Symbol"===ur(t))throw TypeError("Cannot convert a Symbol value to a string");return ar(t)}var fn=g,dn=y,pn=p.exports,hn=W,_={},mn=Math.ceil,vn=Math.floor,gn=Math.trunc||function(t){t=+t;return(0<t?vn:mn)(t)},yn=nn,bn=Math.max,wn=Math.min,En=nn,kn=Math.min,xn=on,Tn=z,Sn=rn,On=cn,x={includes:un(!0),indexOf:un(!1)},I=m,_n=w,An=z,In=x.indexOf,Pn=O,Ln=I([].push),A=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],jn=an,Hn=A.concat("length","prototype"),p=(_.f=Object.getOwnPropertyNames||function(t){return jn(t,Hn)},{}),x=(p.f=Object.getOwnPropertySymbols,e),Mn=_,Cn=p,Rn=o,Dn=m([].concat),I=x("Reflect","ownKeys")||function(t){var e=Mn.f(Rn(t)),n=Cn.f;return n?Dn(e,n(t)):e},Fn=w,Vn=I,Nn=s,Gn=y,$n=t,Bn=g,Un=/#|\.prototype\./,qn=sn.normalize=function(t){return String(t).replace(Un,".").toLowerCase()},zn=sn.data={},Yn=sn.NATIVE="N",Wn=sn.POLYFILL="P",Kn=a,Xn=s.f,Jn=E,Qn=en,Zn=W,tr=function(t,e,n){for(var r=Vn(e),i=Gn.f,o=Nn.f,c=0;c<r.length;c++){var u=r[c];Fn(t,u)||n&&Fn(n,u)||i(t,u,o(e,u))}},er=sn,_={},p=(_[i("toStringTag")]="z","[object z]"===String(_)),x=p,nr=g,rr=B,ir=i("toStringTag"),or=Object,cr="Arguments"==rr(function(){return arguments}()),I=x?rr:function(t){var e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,e){try{return t[e]}catch(t){}}(t=or(t),ir))?e:cr?rr(t):"Object"==(e=rr(t))&&nr(t.callee)?"Arguments":e},ur=I,ar=String,sr=o,s=t,lr=a.RegExp,_=s(function(){var t=lr("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),x=_||s(function(){return!lr("a","y").sticky}),s={BROKEN_CARET:_||s(function(){var t=lr("^r","gy");return t.lastIndex=2,null!=t.exec("str")}),MISSED_STICKY:x,UNSUPPORTED_Y:_},x={},fr=an,dr=A,_=Object.keys||function(t){return fr(t,dr)},pr=y,hr=o,mr=z,vr=_;x.f=l&&!zt?Object.defineProperties:function(t,e){hr(t);for(var n,r=mr(e),i=vr(e),o=i.length,c=0;c<o;)pr.f(t,n=i[c++],r[n]);return t};function gr(){}function yr(t){t.write(Rr("")),t.close();var e=t.parentWindow.Object;return t=null,e}function br(){var t=sr(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}function wr(t){if("Function"===ti(t))return ei(t)}function Er(n,t,e,r){var c,i=ci(n),u=!oi(function(){var t={};return t[i]=function(){return 7},7!=""[n](t)}),o=u&&!oi(function(){var t=!1,e=/a/;return"split"===n&&((e={constructor:{}}).constructor[ai]=function(){return e},e.flags="",e[i]=/./[i]),e.exec=function(){return t=!0,null},e[i](""),!t});u&&o&&!e||(c=ni(/./[i]),o=t(i,""[n],function(t,e,n,r,i){var t=ni(t),o=e.exec;return o===ii||o===si.exec?u&&!i?{done:!0,value:c(e,n,r)}:{done:!0,value:t(n,e,r)}:{done:!1}}),ri(String.prototype,n,o[0]),ri(si,i,o[1])),r&&ui(si[i],"sham",!0)}function kr(i){return function(t,e){var n,t=fi(di(t)),e=li(e),r=t.length;return e<0||r<=e?i?"":void 0:(n=hi(t,e))<55296||56319<n||e+1===r||(r=hi(t,e+1))<56320||57343<r?i?pi(t,e):n:i?mi(t,e,e+2):r-56320+(n-55296<<10)+65536}}function xr(t,e,n){return e+(n?vi(t,e).length:1)}function Tr(t,e){var n=t.exec;if(bi(n))return null!==(n=gi(n,t,e))&&yi(n),n;if("RegExp"===wi(t))return gi(Ei,t,e);throw ki("RegExp#exec called on incompatible receiver")}function Sr(t){return{iterator:t,next:lo(t.next)}}function Or(t){var h=0==t,m=1==t,v=2==t,g=3==t;return function(t,a,s){go(t);var l=void 0!==a,t=(!l&&h||vo(a),Eo(t)),f=wo("Promise"),d=t.iterator,e=t.next,p=0;return new f(function(i,o){var c=function(t){ko(d,o,t,o)},u=function(){try{if(l)try{bo(p)}catch(t){c(t)}f.resolve(go(mo(e,d))).then(function(t){try{if(go(t).done)h?(s.length=p,i(s)):i(!g&&(v||void 0));else{var e,n,r=t.value;try{l?(e=a(r,p),n=function(t){if(m)u();else if(v)t?u():ko(d,i,!1,o);else if(h)try{s[p++]=t,u()}catch(t){c(t)}else t?ko(d,i,g||r,o):u()},yo(e)?f.resolve(e).then(n,c):n(e)):(s[p++]=r,u())}catch(t){c(t)}}}catch(t){o(t)}},o)}catch(t){o(t)}};u()})}}var _r,L,_=e("document","documentElement"),Ar=o,Ir=x,Pr=A,l=O,Lr=_,jr=Q,Hr="prototype",Mr="script",Cr=Z("IE_PROTO"),Rr=function(t){return"<"+Mr+">"+t+"</"+Mr+">"},Dr=function(){try{_r=new ActiveXObject("htmlfile")}catch(t){}Dr="undefined"==typeof document||document.domain&&_r?yr(_r):(t=jr("iframe"),e="java"+Mr+":",t.style.display="none",Lr.appendChild(t),t.src=String(e),(e=t.contentWindow.document).open(),e.write(Rr("document.F=Object")),e.close(),e.F);for(var t,e,n=Pr.length;n--;)delete Dr[Hr][Pr[n]];return Dr()},zt=(l[Cr]=!0,Object.create||function(t,e){var n;return null!==t?(gr[Hr]=Ar(t),n=new gr,gr[Hr]=null,n[Cr]=t):n=Dr(),void 0===e?n:Ir.f(n,e)}),x=t,Fr=a.RegExp,A=x(function(){var t=Fr(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}),O=t,Vr=a.RegExp,_=O(function(){var t=Vr("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}),Nr=d,l=m,Gr=ln,x=s,O=T,$r=zt,Br=S.get,s=A,T=_,Ur=O("native-string-replace",String.prototype.replace),qr=RegExp.prototype.exec,zr=qr,Yr=l("".charAt),Wr=l("".indexOf),Kr=l("".replace),Xr=l("".slice),Jr=(A=/b*/g,Nr(qr,_=/a/,"a"),Nr(qr,A,"a"),0!==_.lastIndex||0!==A.lastIndex),Qr=x.BROKEN_CARET,Zr=void 0!==/()??/.exec("")[1],O=zr=Jr||Zr||Qr||s||T?function(t){var e,n,r,i,o,c,u=this,a=Br(u),t=Gr(t),s=a.raw;if(s)return s.lastIndex=u.lastIndex,f=Nr(zr,s,t),u.lastIndex=s.lastIndex,f;var l=a.groups,s=Qr&&u.sticky,f=Nr(br,u),a=u.source,d=0,p=t;if(s&&(f=Kr(f,"y",""),-1===Wr(f,"g")&&(f+="g"),p=Xr(t,u.lastIndex),0<u.lastIndex&&(!u.multiline||u.multiline&&"\n"!==Yr(t,u.lastIndex-1))&&(a="(?: "+a+")",p=" "+p,d++),e=new RegExp("^(?:"+a+")",f)),Zr&&(e=new RegExp("^"+a+"$(?!\\s)",f)),Jr&&(n=u.lastIndex),r=Nr(qr,s?e:u,p),s?r?(r.input=Xr(r.input,d),r[0]=Xr(r[0],d),r.index=u.lastIndex,u.lastIndex+=r[0].length):u.lastIndex=0:Jr&&r&&(u.lastIndex=u.global?r.index+r[0].length:n),Zr&&r&&1<r.length&&Nr(Ur,r[0],e,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r&&l)for(r.groups=o=$r(null),i=0;i<l.length;i++)o[(c=l[i])[0]]=r[c[1]];return r}:zr,ti=(P({target:"RegExp",proto:!0,forced:/./.exec!==O},{exec:O}),B),ei=m,ni=wr,ri=en,ii=O,oi=t,ci=i,ui=E,ai=ci("species"),si=RegExp.prototype,l=m,li=nn,fi=ln,di=q,pi=l("".charAt),hi=l("".charCodeAt),mi=l("".slice),_={codeAt:kr(!1),charAt:kr(!0)},vi=_.charAt,gi=d,yi=o,bi=g,wi=B,Ei=O,ki=TypeError,xi=d,Ti=o,Si=U,Oi=on,_i=ln,Ai=q,Ii=r,Pi=xr,Li=Tr,A=(Er("match",function(r,u,a){return[function(t){var e=Ai(this),n=Si(t)?void 0:Ii(t,r);return n?xi(n,t,e):new RegExp(t)[r](_i(e))},function(t){var e=Ti(this),n=_i(t),t=a(u,e,n);if(t.done)return t.value;if(!e.global)return Li(e,n);for(var r=e.unicode,i=[],o=e.lastIndex=0;null!==(c=Li(e,n));){var c=_i(c[0]);""===(i[o]=c)&&(e.lastIndex=Pi(n,Oi(e.lastIndex),r)),o++}return 0===o?null:i}]}),f),x=Function.prototype,ji=x.apply,Hi=x.call,s="object"==typeof Reflect&&Reflect.apply||(A?Hi.bind(ji):function(){return Hi.apply(ji,arguments)}),T=m,Mi=K,Ci=Math.floor,Ri=T("".charAt),Di=T("".replace),Fi=T("".slice),Vi=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ni=/\$([$&'`]|\d{1,2})/g,Gi=s,$i=d,l=m,O=Er,x=t,Bi=o,Ui=g,qi=U,zi=nn,Yi=on,Wi=ln,Ki=q,Xi=xr,Ji=r,Qi=function(o,c,u,a,s,t){var l=u+o.length,f=a.length,e=Ni;return void 0!==s&&(s=Mi(s),e=Vi),Di(t,e,function(t,e){var n;switch(Ri(e,0)){case"$":return"$";case"&":return o;case"`":return Fi(c,0,u);case"'":return Fi(c,l);case"<":n=s[Fi(e,1,-1)];break;default:var r,i=+e;if(0==i)return t;if(f<i)return 0!==(r=Ci(i/10))&&r<=f?void 0===a[r-1]?Ri(e,1):a[r-1]+Ri(e,1):t;n=a[i-1]}return void 0===n?"":n})},Zi=Tr,to=i("replace"),eo=Math.max,no=Math.min,ro=l([].concat),io=l([].push),oo=l("".indexOf),co=l("".slice),A="$0"==="a".replace(/./,"$0"),uo=!!/./[to]&&""===/./[to]("a","$0"),T=(O("replace",function(t,b,w){var E=uo?"$":"$0";return[function(t,e){var n=Ki(this),r=qi(t)?void 0:Ji(t,to);return r?$i(r,t,n,e):$i(b,Wi(n),t,e)},function(t,e){var n=Bi(this),r=Wi(t);if("string"==typeof e&&-1===oo(e,E)&&-1===oo(e,"$<")){t=w(b,n,r,e);if(t.done)return t.value}for(var i,o=Ui(e),c=(o||(e=Wi(e)),n.global),u=(c&&(i=n.unicode,n.lastIndex=0),[]);null!==(d=Zi(n,r))&&(io(u,d),c);)""===Wi(d[0])&&(n.lastIndex=Xi(r,Yi(n.lastIndex),i));for(var a,s="",l=0,f=0;f<u.length;f++){for(var d,p=Wi((d=u[f])[0]),h=eo(no(zi(d.index),r.length),0),m=[],v=1;v<d.length;v++)io(m,void 0===(a=d[v])?a:String(a));var g=d.groups,y=o?(y=ro([p],m,h,r),void 0!==g&&io(y,g),Wi(Gi(e,void 0,y))):Qi(p,r,h,m,g,e);l<=h&&(s+=co(r,l,h)+y,l=h+p.length)}return s+co(r,l)}]},!!x(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!A||uo),p),ao=I,so=(p||en(Object.prototype,"toString",T?{}.toString:function(){return"[object "+ao(this)+"]"},{unsafe:!0}),TypeError),lo=n,fo=d,po=e,ho=r,mo=d,vo=n,go=o,yo=v,bo=function(t){if(9007199254740991<t)throw so("Maximum allowed index exceeded");return t},wo=e,Eo=Sr,ko=function(t,e,n,r){try{var i=ho(t,"return");if(i)return po("Promise").resolve(fo(i,t)).then(function(){e(n)},function(t){r(t)})}catch(t){return r(t)}e(n)},s=P,xo={toArray:Or(0),forEach:Or(1),every:Or(2),some:Or(3),find:Or(4)}.forEach,To=(s({target:"AsyncIterator",proto:!0,real:!0},{forEach:function(t){return xo(this,t)}}),bt),So=TypeError,l=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Oo=w,_o=g,Ao=K,O=l,Io=Z("IE_PROTO"),Po=Object,Lo=Po.prototype,x=O?Po.getPrototypeOf:function(t){var e,t=Ao(t);return Oo(t,Io)?t[Io]:(e=t.constructor,_o(e)&&t instanceof e?e.prototype:t instanceof Po?Lo:null)},A=t,p=g,T=v,s=x,l=en,jo=i("iterator"),O=!1;[].keys&&("next"in(Mo=[].keys())?(s=s(s(Mo)))!==Object.prototype&&(L=s):O=!0);function Ho(){Co(this,j)}p((L=!T(L)||A(function(){var t={};return L[jo].call(t)!==t})?{}:L)[jo])||l(L,jo,function(){return this});var Mo={IteratorPrototype:L,BUGGY_SAFARI_ITERATORS:O},s=P,p=a,Co=function(t,e){if(To(e,t))return t;throw So("Incorrect invocation")},T=g,A=E,l=t,O=w,Ro=i,j=Mo.IteratorPrototype,Ro=Ro("toStringTag"),Do=p.Iterator,p=!T(Do)||Do.prototype!==j||!l(function(){Do({})});O(j,Ro)||A(j,Ro,"Iterator"),!p&&O(j,"constructor")&&j.constructor!==Object||A(j,"constructor",Ho),Ho.prototype=j,s({global:!0,constructor:!0,forced:p},{Iterator:Ho});function Fo(t,e){return Xo(t),void 0===e?t:Jo?Qo(t,e):function(){return t.apply(e,arguments)}}function Vo(t){return void 0!==t&&(Zo.Array===t||ec[tc]===t)}function No(t){if(!ic(t))return rc(t,cc)||rc(t,"@@iterator")||oc[nc(t)]}function Go(t,e){if(e=arguments.length<2?fc(t):e,ac(e))return sc(uc(e,t));throw dc(lc(t)+" is not iterable")}function $o(t,e,n){var r,i;hc(t);try{if(!(r=mc(t,"return"))){if("throw"===e)throw n;return n}r=pc(r,t)}catch(t){i=!0,r=t}if("throw"===e)throw n;if(i)throw r;return hc(r),n}function Bo(t,e){this.stopped=t,this.result=e}function Uo(){}function qo(t){if(!Hc(t))return!1;try{return Dc(Uo,Rc,t),!0}catch(t){return!1}}function zo(t){if(!Hc(t))return!1;switch(Mc(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Nc||!!Vc(Fc,Cc(t))}catch(t){return!0}}function Yo(t,e){return new(zc(t))(0===e?0:e)}function H(d){var p=1==d,h=2==d,m=3==d,v=4==d,g=6==d,y=7==d,b=5==d||g;return function(t,e,n,r){for(var i,o,c=Kc(t),u=Wc(c),a=Yc(e,n),s=Xc(u),l=0,e=r||Yo,f=p?e(t,s):h||y?e(t,0):void 0;l<s;l++)if((b||l in u)&&(o=a(i=u[l],l,c),d))if(p)f[l]=o;else if(o)switch(d){case 3:return!0;case 5:return i;case 6:return l;case 2:Jc(f,i)}else switch(d){case 4:return!1;case 7:Jc(f,i)}return g?-1:m||v?v:f}}function Wo(e){if(e&&e.forEach!==nu)try{ru(e,"forEach",nu)}catch(t){e.forEach=nu}}var Ko,Xo=n,Jo=f,Qo=wr(wr.bind),T={},Zo=T,tc=i("iterator"),ec=Array.prototype,nc=I,rc=r,ic=U,oc=T,cc=i("iterator"),uc=d,ac=n,sc=o,lc=Y,fc=No,dc=TypeError,pc=d,hc=o,mc=r,vc=Fo,gc=d,yc=o,bc=Y,wc=Vo,Ec=cn,kc=bt,xc=Go,Tc=No,Sc=$o,Oc=TypeError,_c=Bo.prototype,Ac=function(t,e,n){function r(t){return o&&Sc(o,"normal",t),new Bo(!0,t)}function i(t){return d?(yc(t),m?v(t[0],t[1],r):v(t[0],t[1])):m?v(t,r):v(t)}var o,c,u,a,s,l,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),v=vc(e,f);if(p)o=t.iterator;else if(h)o=t;else{if(!(n=Tc(t)))throw Oc(bc(t)+" is not iterable");if(wc(n)){for(c=0,u=Ec(t);c<u;c++)if((a=i(t[c]))&&kc(_c,a))return a;return new Bo(!1)}o=xc(t,n)}for(s=(p?t:o).next;!(l=gc(s,o)).done;){try{a=i(l.value)}catch(t){Sc(o,"throw",t)}if("object"==typeof a&&a&&kc(_c,a))return a}return new Bo(!1)},Ic=n,Pc=o,Lc=Sr,l=(P({target:"Iterator",proto:!0,real:!0},{forEach:function(e){Pc(this),Ic(e);var t=Lc(this),n=0;Ac(t,function(t){e(t,n++)},{IS_RECORD:!0})}}),Q("span").classList),Ro=l&&l.constructor&&l.constructor.prototype,O=Ro===Object.prototype?void 0:Ro,jc=B,A=Array.isArray||function(t){return"Array"==jc(t)},s=m,p=t,Hc=g,Mc=I,Cc=Le,Rc=[],Dc=e("Reflect","construct"),Fc=/^\s*(?:class|function)\b/,Vc=s(Fc.exec),Nc=!Fc.exec(Uo),f=(zo.sham=!0,!Dc||p(function(){var t;return qo(qo.call)||!qo(Object)||!qo(function(){t=!0})||t})?zo:qo),Gc=A,$c=f,Bc=v,Uc=i("species"),qc=Array,zc=function(t){var e;return void 0===(e=Gc(t)&&(e=t.constructor,$c(e)&&(e===qc||Gc(e.prototype))||Bc(e)&&null===(e=e[Uc]))?void 0:e)?qc:e},Yc=Fo,Wc=h,Kc=K,Xc=cn,Jc=m([].push),bt={forEach:H(0),map:H(1),filter:H(2),some:H(3),every:H(4),find:H(5),findIndex:H(6),filterReject:H(7)},Qc=t,Zc=bt.forEach,tu=a,eu={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},l=O,nu=function(t,e){var n=[][t];return!!n&&Qc(function(){n.call(null,e||function(){return 1},1)})}("forEach")?[].forEach:function(t){return Zc(this,t,1<arguments.length?arguments[1]:void 0)},ru=E;for(Ko in eu)eu[Ko]&&Wo(tu[Ko]&&tu[Ko].prototype);Wo(l);function iu(t,e,n){(e=uu(e))in t?au.f(t,e,su(0,n)):t[e]=n}var ou=o,cu=$o,uu=J,au=y,su=$,lu=Fo,fu=d,du=K,pu=function(e,t,n,r){try{return r?t(ou(n)[0],n[1]):t(n)}catch(t){cu(e,"throw",t)}},hu=Vo,mu=f,vu=cn,gu=iu,yu=Go,bu=No,wu=Array,Eu=i("iterator"),ku=!1;try{var xu=0,Tu={next:function(){return{done:!!xu++}},return:function(){ku=!0}};Tu[Eu]=function(){return this},Array.from(Tu,function(){throw 2})}catch(t){}function Su(t){var e,n,r,i,o,c,u=du(t),t=mu(this),a=1<(l=arguments.length)?arguments[1]:void 0,s=void 0!==a,l=(s&&(a=lu(a,2<l?arguments[2]:void 0)),bu(u)),f=0;if(!l||this===wu&&hu(l))for(e=vu(u),n=t?new this(e):wu(e);f<e;f++)c=s?a(u[f],f):u[f],gu(n,f,c);else for(o=(i=yu(u,l)).next,n=t?new this:[];!(r=fu(o,i)).done;f++)c=s?pu(i,a,[r.value,f],!0):r.value,gu(n,f,c);return n.length=f,n}function Ou(t,e,n){(t=t&&!n?t.prototype:t)&&!Pu(t,Lu)&&Iu(t,Lu,{configurable:!0,value:e})}function _u(){return this}function Au(){return this}P({target:"Array",stat:!0,forced:!function(t,e){if(!e&&!ku)return!1;var n=!1;try{var r={};r[Eu]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}(function(t){Array.from(t)})},{from:Su});var Iu=y.f,Pu=w,Lu=i("toStringTag"),ju=Mo.IteratorPrototype,Hu=zt,Mu=$,Cu=Ou,Ru=T,Du=m,Fu=n,Vu=g,Nu=String,Gu=TypeError,$u=function(t,e,n){try{return Du(Fu(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}},Bu=o,Uu=function(t){if("object"==typeof t||Vu(t))return t;throw Gu("Can't set "+Nu(t)+" as a prototype")},Ro=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,t={};try{(n=$u(Object.prototype,"__proto__","set"))(t,[]),r=t instanceof Array}catch(t){}return function(t,e){return Bu(t),Uu(e),r?n(t,e):t.__proto__=e,t}}():void 0),qu=P,zu=d,Yu=g,Wu=function(t,e,n,r){e+=" Iterator";return t.prototype=Hu(ju,{next:Mu(+!r,n)}),Cu(t,e,!1),Ru[e]=_u,t},Ku=x,Xu=Ro,Ju=Ou,Qu=E,Zu=en,I=i,ta=T,ea=k.PROPER,na=k.CONFIGURABLE,ra=Mo.IteratorPrototype,ia=Mo.BUGGY_SAFARI_ITERATORS,oa=I("iterator"),ca="values",ua="entries",aa=_.charAt,sa=ln,Le=S,s=function(t,e,n,r,i,o,c){Wu(n,e,r);function u(t){if(t===i&&p)return p;if(!ia&&t in f)return f[t];switch(t){case"keys":case ca:case ua:return function(){return new n(this,t)}}return function(){return new n(this)}}var a,s,r=e+" Iterator",l=!1,f=t.prototype,d=f[oa]||f["@@iterator"]||i&&f[i],p=!ia&&d||u(i),h="Array"==e&&f.entries||d;if(h&&(h=Ku(h.call(new t)))!==Object.prototype&&h.next&&(Ku(h)!==ra&&(Xu?Xu(h,ra):Yu(h[oa])||Zu(h,oa,Au)),Ju(h,r,!0)),ea&&i==ca&&d&&d.name!==ca&&(na?Qu(f,"name",ca):(l=!0,p=function(){return zu(d,this)})),i)if(a={values:u(ca),keys:o?p:u("keys"),entries:u(ua)},c)for(s in a)!ia&&!l&&s in f||Zu(f,s,a[s]);else qu({target:e,proto:!0,forced:ia||l},a);return f[oa]!==p&&Zu(f,oa,p,{name:i}),ta[e]=p,a},la=function(t,e){return{value:t,done:e}},fa="String Iterator",da=Le.set,pa=Le.getterFor(fa),ha=(s(String,"String",function(t){da(this,{type:fa,string:sa(t),index:0})},function(){var t=pa(this),e=t.string,n=t.index;return n>=e.length?la(void 0,!0):(e=aa(e,n),t.index+=e.length,la(e,!1))}),t),ma=b,va=i("species"),p=m([].slice),h=P,ga=A,ya=f,ba=v,wa=rn,Ea=cn,ka=z,xa=iu,bt=i,Ta=p,a=function(e){return 51<=ma||!ha(function(){var t=[];return(t.constructor={})[va]=function(){return{foo:1}},1!==t[e](Boolean).foo})}("slice"),Sa=bt("species"),Oa=Array,_a=Math.max,Aa=(h({target:"Array",proto:!0,forced:!a},{slice:function(t,e){var n,r,i,o=ka(this),c=Ea(o),u=wa(t,c),a=wa(void 0===e?c:e,c);if(ga(o)&&(n=o.constructor,(n=ya(n)&&(n===Oa||ga(n.prototype))||ba(n)&&null===(n=n[Sa])?void 0:n)===Oa||void 0===n))return Ta(o,u,a);for(r=new(void 0===n?Oa:n)(_a(a-u,0)),i=0;u<a;u++,i++)u in o&&xa(r,i,o[u]);return r.length=i,r}}),"_mdtimepicker"),Ia=[9,112,113,114,115,116,117,118,119,120,121,122,123],Pa={timeFormat:"hh:mm:ss.000",format:"h:mm tt",theme:"blue",hourPadding:!1,clearBtn:!1,is24hour:!1,events:{ready:null,timeChanged:null,shown:null,hidden:null}},M={appendTo:function(t,e,n){Array.isArray(t)?t.forEach(function(t){0===n?e.insertBefore(t,e.childNodes[n]||null):e.appendChild(t)}):0===n?e.insertBefore(t,e.childNodes[n]||null):e.appendChild(t)},addEvent:function(t,e,n){function r(t,e,n){t.addEventListener(e,n,!1)}Array.isArray(t)?t.forEach(function(t){return r(t,e,n)}):r(t,e,n)},removeEvent:function(t,e,n){function r(t,e,n){t.removeEventListener(e,n,!1)}Array.isArray(t)?t.forEach(function(t){return r(t,e,n)}):r(t,e,n)},empty:function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},createElem:function(t,e,n,r){t=document.createElement(t);return void 0!==n&&(t[r?"innerHTML":"innerText"]=n),void 0!==e&&M.setAttributes(t,e),t},setAttributes:function(t,e){for(var n in e)t.setAttribute(n,e[n])},extend:function(){var t={},e=!1,n=0,r=arguments.length;for("[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(e=arguments[0],n++);n<r;n++){i=void 0;var i,o=arguments[n];for(i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e&&"[object Object]"===Object.prototype.toString.call(o[i])?t[i]=M.extend(!0,t[i],o[i]):t[i]=o[i])}return t},triggerChange:function(t,e){var n=document.createEvent("Event"),r=document.createEvent("Event");n.initEvent("change",!1,!1),r.initEvent("onchange",!1,!1),t.dispatchEvent(n),t.dispatchEvent(r),t.dispatchEvent(new function(t){var e=document.createEvent("CustomEvent");return e.initCustomEvent("datechanged",!1,!1,null),e.data=t,e}(e))}},C=function(){function n(t,e){D(this,n),this.hour=t,this.minute=e}return V(n,[{key:"setHour",value:function(t){this.hour=t}},{key:"getHour",value:function(t){return t?0<=[0,12].indexOf(this.hour)?12:this.hour%12:this.hour}},{key:"invert",value:function(){"AM"===this.getPeriod()?this.setHour(this.getHour()+12):this.setHour(this.getHour()-12)}},{key:"setMinutes",value:function(t){this.minute=t}},{key:"getMinutes",value:function(){return this.minute}},{key:"getPeriod",value:function(){return this.hour<12?"AM":"PM"}},{key:"format",value:function(t,n){var r=this,i=1<(t.match(/h/g)||[]).length;return t.replace(/(hh|h|mm|ss|tt|t)/g,function(t){switch(t.toLowerCase()){case"h":var e=r.getHour(!0);return n&&e<10?"0"+e:e;case"hh":return r.hour<10?"0"+r.hour:r.hour;case"mm":return r.minute<10?"0"+r.minute:r.minute;case"ss":return"00";case"t":return i?"":r.getPeriod().toLowerCase();case"tt":return i?"":r.getPeriod()}})}}]),n}(),La=function(){function o(t,e){D(this,o);var n=this,t=(this.visible=!1,this.activeView="hours",this.hTimeout=null,this.mTimeout=null,this.input=t,this.input.readOnly=!0,this.config=e,this.time=new C(0,0),this.selected=new C(0,0),this.timepicker={overlay:M.createElem("div",{class:"mdtimepicker hidden"}),wrapper:M.createElem("div",{class:"mdtp__wrapper",tabindex:0}),timeHolder:{wrapper:M.createElem("section",{class:"mdtp__time_holder"}),hour:M.createElem("span",{class:"mdtp__time_h"},"12"),dots:M.createElem("span",{class:"mdtp__timedots"},":"),minute:M.createElem("span",{class:"mdtp__time_m"},"00"),am_pm:M.createElem("span",{class:"mdtp__ampm"},"AM")},clockHolder:{wrapper:M.createElem("section",{class:"mdtp__clock_holder"}),am:M.createElem("span",{class:"mdtp__am"},"AM"),pm:M.createElem("span",{class:"mdtp__pm"},"PM"),clock:{wrapper:M.createElem("div",{class:"mdtp__clock"}),dot:M.createElem("span",{class:"mdtp__clock_dot"}),hours:M.createElem("div",{class:"mdtp__hour_holder"}),minutes:M.createElem("div",{class:"mdtp__minute_holder"})},buttonsHolder:{wrapper:M.createElem("div",{class:"mdtp__buttons"}),btnClear:M.createElem("span",{class:"mdtp__button clear-btn"},"Clear"),btnOk:M.createElem("span",{class:"mdtp__button ok"},"Ok"),btnCancel:M.createElem("span",{class:"mdtp__button cancel"},"Cancel")}}},this.setMinTime(this.input.dataset.mintime||this.config.minTime),this.setMaxTime(this.input.dataset.maxtime||this.config.maxTime),n.timepicker);function r(){n.show()}function i(t){return 13===t.keyCode&&n.show(),!(Ia.indexOf(t.which)<0)}M.appendTo(n._setup(),document.body),M.addEvent(t.overlay,"click",function(){n.hide()}),M.addEvent(t.wrapper,"click",function(t){return t.stopPropagation()}),M.addEvent(t.wrapper,"keydown",function(t){27===t.keyCode&&n.hide()}),e.is24hour||M.addEvent(t.timeHolder.am_pm,"click",function(){n.setPeriod("AM"==n.selected.getPeriod()?"pm":"am")}),M.addEvent(t.clockHolder.am,"click",function(){"AM"!==n.selected.getPeriod()&&n.setPeriod("am")}),M.addEvent(t.clockHolder.pm,"click",function(){"PM"!==n.selected.getPeriod()&&n.setPeriod("pm")}),M.addEvent(t.timeHolder.hour,"click",function(){"hours"!==n.activeView&&n._switchView("hours")}),M.addEvent(t.timeHolder.minute,"click",function(){"minutes"!==n.activeView&&n._switchView("minutes")}),M.addEvent(t.clockHolder.buttonsHolder.btnOk,"click",function(){var t=n.selected;n.isDisabled(t.getHour(),t.getMinutes(),!1)||(n.setValue(t),t=n.getFormattedTime(),n._triggerChange({time:t.time,value:t.value}),n.hide())}),M.addEvent(t.clockHolder.buttonsHolder.btnCancel,"click",function(){n.hide()}),n.config.clearBtn&&M.addEvent(t.clockHolder.buttonsHolder.btnClear,"click",function(){n.input.value="",M.setAttributes(n.input,{value:"","data-time":null}),n._triggerChange({time:null,value:""}),n.hide()}),this._unbindInput=function(){n.input.readOnly=!1,n.input.removeEventListener("click",r),n.input.removeEventListener("keydown",i)},M.addEvent(n.input,"keydown",i),M.addEvent(n.input,"click",r),""!==n.input.value?(e=n.parseTime(n.input.value,n.config.format),n.setValue(e)):(t=n.getSystemTime(),n.time=new C(t.hour,t.minute)),n.resetSelected(),n._switchView(n.activeView),n.config.events&&n.config.events.ready&&n.config.events.ready.call(n,n)}return V(o,[{key:"_setup",value:function(){for(var n=this,t=n.timepicker,e=t.overlay,r=t.wrapper,i=t.timeHolder,o=t.clockHolder,c=(M.appendTo([i.hour,i.dots,i.minute],i.wrapper),M.appendTo(i.wrapper,r),n.config.is24hour||M.appendTo(i.am_pm,i.wrapper),n.config.is24hour?24:12),u=0;u<c;u++){var a=u+1,s=(120+30*u)%360-(n.config.is24hour&&a<13?15:0),l=24===a,s=M.createElem("div",{class:"mdtp__digit rotate-".concat(s),"data-hour":l?0:a}),l=M.createElem("span",null,l?"00":a);M.appendTo(l,s),n.config.is24hour&&a<13&&s.classList.add("inner--digit"),M.addEvent(l,"click",function(){var t=parseInt(this.parentNode.dataset.hour),e=n.selected.getPeriod(),e=n.config.is24hour?t:(t+("PM"===e&&t<12||"AM"===e&&12===t?12:0))%24;n.isDisabled(e,0,!0)||(n.setHour(e),n._switchView("minutes"))}),M.appendTo(s,o.clock.hours)}for(var f=0;f<60;f++){var d=f<10?"0"+f:f,p=M.createElem("div",{class:"mdtp__digit rotate-".concat((90+6*f)%360),"data-minute":f}),h=M.createElem("span");M.appendTo(h,p),f%5==0&&(p.classList.add("marker"),h.innerText=d),M.addEvent(h,"click",function(){var t=parseInt(this.parentNode.dataset.minute),e=n.selected.getHour();n.isDisabled(e,t,!0)||n.setMinute(t)}),M.appendTo(p,o.clock.minutes)}return n.config.is24hour||M.appendTo([o.am,o.pm],o.clock.wrapper),M.appendTo([o.clock.dot,o.clock.hours,o.clock.minutes],o.clock.wrapper),M.appendTo(o.clock.wrapper,o.wrapper),n.config.clearBtn&&M.appendTo(o.buttonsHolder.btnClear,o.buttonsHolder.wrapper),M.appendTo([o.buttonsHolder.btnCancel,o.buttonsHolder.btnOk],o.buttonsHolder.wrapper),M.appendTo(o.buttonsHolder.wrapper,o.wrapper),M.appendTo(o.wrapper,r),r.dataset.theme=n.input.dataset.theme||n.config.theme,M.appendTo(r,e),e}},{key:"setHour",value:function(t){if(void 0===t)throw new Error("Expecting a value.");var e=!this.config.is24hour,n=(this.selected.setHour(t),this.selected.getHour(e));this.timepicker.timeHolder.hour.innerText=e?n:this.selected.format("hh"),this.timepicker.clockHolder.clock.hours.querySelectorAll("div").forEach(function(t){var e=parseInt(t.dataset.hour);t.classList[e===n?"add":"remove"]("active")})}},{key:"setMinute",value:function(n){if(void 0===n)throw new Error("Expecting a value.");this.selected.setMinutes(n),this.timepicker.timeHolder.minute.innerText=n<10?"0"+n:n,this.timepicker.clockHolder.clock.minutes.querySelectorAll("div").forEach(function(t){var e=parseInt(t.dataset.minute);t.classList[e===n?"add":"remove"]("active")})}},{key:"setPeriod",value:function(t){if(void 0===t)throw new Error("Expecting a value.");this.selected.getPeriod()!==t.toUpperCase()&&this.selected.invert();t=this.selected.getPeriod();this._setDisabled(this.activeView),this.timepicker.timeHolder.am_pm.innerText=t,this.timepicker.clockHolder.am.classList["AM"===t?"add":"remove"]("active"),this.timepicker.clockHolder.pm.classList["PM"===t?"add":"remove"]("active")}},{key:"setValue",value:function(t){if(void 0===t)throw new Error("Expecting a value.");t="string"==typeof t?this.parseTime(t,this.config.format):t,this.time=new C(t.hour,t.minute),t=this.getFormattedTime();this.input.value=t.value,M.setAttributes(this.input,{value:t.value,"data-time":t.time})}},{key:"setMinTime",value:function(t){this.minTime=t}},{key:"setMaxTime",value:function(t){this.maxTime=t}},{key:"_setDisabled",value:function(t){var r,e;"hours"!==t&&"minutes"!==t||(e=(r=this).timepicker.clockHolder.clock,"hours"===t&&e.hours.querySelectorAll(".mdtp__digit").forEach(function(t){var e=parseInt(t.dataset.hour),n=r.selected.getPeriod(),e=new C(e,0),n=(r.config.is24hour||n===e.getPeriod()||e.invert(),r.isDisabled(e.getHour(),0,!0));t.classList[n?"add":"remove"]("digit--disabled")}),"minutes"===t&&e.minutes.querySelectorAll(".mdtp__digit").forEach(function(t){var e=parseInt(t.dataset.minute),n=r.selected.getHour(),n=r.isDisabled(n,e,!0);t.classList[n?"add":"remove"]("digit--disabled")}))}},{key:"isDisabled",value:function(t,e,n){var r=this,i=null,o=null,c=null,u=null,a=new Date,t=new Date(a.getFullYear(),a.getMonth(),a.getDate(),t,e,0,0),e="hours"===r.activeView;return r.minTime&&(i="now"===r.minTime?r.getSystemTime():r.parseTime(r.minTime)),r.maxTime&&(c="now"===r.maxTime?r.getSystemTime():r.parseTime(r.maxTime)),i&&(o=new Date(a.getFullYear(),a.getMonth(),a.getDate(),i.getHour(),e&&n?0:i.getMinutes(),0,0)),c&&(u=new Date(a.getFullYear(),a.getMonth(),a.getDate(),c.getHour(),e&&n?0:c.getMinutes(),0,0)),o&&t<o||u&&u<t}},{key:"resetSelected",value:function(){this.setHour(this.time.hour),this.setMinute(this.time.minute),this.setPeriod(this.time.getPeriod())}},{key:"getFormattedTime",value:function(){return{time:this.time.format(this.config.timeFormat,!1),value:this.time.format(this.config.format,this.config.hourPadding)}}},{key:"getSystemTime",value:function(){return t=new Date,new C(t.getHours(),t.getMinutes());var t}},{key:"parseTime",value:function(t,e){var e=void 0===e?this.config.format:e,n=1<(e.match(/h/g)||[]).length,r=(e.match(/t/g)||[]).length,i=t.length,o=e.indexOf("h"),c=e.lastIndexOf("h"),u="",a="",c=(u=this.config.hourPadding||n?t.substr(o,2):(s=e.substring(o-1,o),l=e.substring(c+1,c+2),c===e.length-1?t.substring(t.indexOf(s,o-1)+1,i):0===o?t.substring(0,t.indexOf(l,o)):t.substring(t.indexOf(s,o-1)+1,t.indexOf(l,o+1))),(e=e.replace(/(hh|h)/g,u)).indexOf("m")),s=e.lastIndexOf("m"),l=e.indexOf("t"),o=e.substring(c-1,c),s=(e.substring(s+1,s+2),a=s===e.length-1?t.substring(t.indexOf(o,c-1)+1,i):0===c?t.substring(0,2):t.substr(c,2),"pm"===(n?11<parseInt(u)?1<r?"PM":"pm":1<r?"AM":"am":t.substr(l,2)).toLowerCase()),e=new C(parseInt(u),parseInt(a));return(s&&parseInt(u)<12||!s&&12===parseInt(u))&&e.invert(),e}},{key:"_switchView",value:function(t){var e=this,n=this.timepicker;"hours"!==t&&"minutes"!==t||(e.activeView=t,e._setDisabled(t),n.timeHolder.hour.classList["hours"===t?"add":"remove"]("active"),n.timeHolder.minute.classList["hours"===t?"remove":"add"]("active"),n.clockHolder.clock.hours.classList.add("animate"),"hours"===t&&n.clockHolder.clock.hours.classList.remove("hidden"),clearTimeout(e.hTimeout),e.hTimeout=setTimeout(function(){"hours"!==t&&n.clockHolder.clock.hours.classList.add("hidden"),n.clockHolder.clock.hours.classList.remove("animate")},"hours"===t?20:350),n.clockHolder.clock.minutes.classList.add("animate"),"minutes"===t&&n.clockHolder.clock.minutes.classList.remove("hidden"),clearTimeout(e.mTimeout),e.mTimeout=setTimeout(function(){"minutes"!==t&&n.clockHolder.clock.minutes.classList.add("hidden"),n.clockHolder.clock.minutes.classList.remove("animate")},"minutes"===t?20:350))}},{key:"show",value:function(){var t,e=this;""===e.input.value&&(t=e.getSystemTime(),this.time=new C(t.hour,t.minute)),e.resetSelected(),document.body.setAttribute("mdtimepicker-display","on"),e.timepicker.wrapper.classList.add("animate"),e.timepicker.overlay.classList.remove("hidden"),e.timepicker.overlay.classList.add("animate"),setTimeout(function(){e.timepicker.overlay.classList.remove("animate"),e.timepicker.wrapper.classList.remove("animate"),e.timepicker.wrapper.focus(),e.visible=!0,e.input.blur(),e.config.events&&e.config.events.shown&&e.config.events.shown.call(e)},10)}},{key:"hide",value:function(){var t=this;t.timepicker.overlay.classList.add("animate"),t.timepicker.wrapper.classList.add("animate"),setTimeout(function(){t._switchView("hours"),t.timepicker.overlay.classList.add("hidden"),t.timepicker.overlay.classList.remove("animate"),t.timepicker.wrapper.classList.remove("animate"),document.body.removeAttribute("mdtimepicker-display"),t.visible=!1,t.input.focus(),t.config.events&&t.config.events.hidden&&t.config.events.hidden.call(t)},300)}},{key:"destroy",value:function(){this._unbindInput(),this.timepicker.overlay.remove(),delete this.input[Aa]}},{key:"_triggerChange",value:function(t){M.triggerChange(this.input,t),this.config.events&&this.config.events.timeChanged&&this.config.events.timeChanged.call(this,t,this)}}]),o}();function ja(){var n=arguments,r=n[0],i=r instanceof NodeList||Array.isArray(r),o=r instanceof Element,t="string"==typeof r?document.querySelectorAll(r):i?r:o?[r]:document.querySelectorAll(".mdtimepicker-input"),c="object"!==R(r)||i||o?n[1]&&"object"===R(n[1])?n[1]:{}:r,u=M.extend({},La.default_configs||Pa);c&&c.is24hour&&(u.format="hh:mm"),Array.from(t).forEach(function(t){var e=t[Aa];e||(t[Aa]=e=new La(t,M.extend(u,c))),("string"==typeof r||i||o)&&n[1]&&"string"==typeof n[1]&&e[n[1]].apply(e,Array.prototype.slice.call(n).slice(2))})}return O=La,l=null,(Tu=N(Tu="default_configs"))in O?Object.defineProperty(O,Tu,{value:l,enumerable:!0,configurable:!0,writable:!0}):O[Tu]=l,ja.defaults=function(t){La.default_configs=M.extend(Pa,t)},ja});