UNPKG

@epcare/esm-referral-laboratory-app

Version:
1 lines 7.44 kB
(globalThis.webpackChunk_epcare_esm_referral_laboratory_app=globalThis.webpackChunk_epcare_esm_referral_laboratory_app||[]).push([[246],{2246:function(t,e,n){var r,s,i;function u(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function a(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}i=function(){"use strict";var t=6e4,e=36e5,n="millisecond",r="second",s="minute",i="hour",o="day",c="week",f="month",h="quarter",d="year",l="date",$="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},p=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:p,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),s=n%60;return(e<=0?"+":"-")+p(r,2,"0")+":"+p(s,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),s=e.clone().add(r,f),i=n-s<0,u=e.clone().add(r+(i?-1:1),f);return+(-(r+(n-s)/(i?s-u:u-s))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:f,y:d,w:c,d:o,D:l,h:i,m:s,s:r,ms:n,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var S="$isDayjsObject",b=function(t){return u(t,k)||!(!t||!t[S])},w=function t(e,n,r){var s;if(!e)return g;if("string"==typeof e){var i=e.toLowerCase();D[i]&&(s=i),n&&(D[i]=n,s=i);var u=e.split("-");if(!s&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,s=a}return!r&&s&&(g=s),s||!r&&g},_=function(t,e){if(b(t))return t.clone();var n="object"==(void 0===e?"undefined":a(e))?e:{};return n.date=t,n.args=arguments,new k(n)},O=v;O.l=w,O.i=b,O.w=function(t,e){return _(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var k=function(){function a(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[S]=!0}var M=a.prototype;return M.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(u(e,Date))return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(y);if(r){var s=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(e)}(t),this.init()},M.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},M.$utils=function(){return O},M.isValid=function(){return!(this.$d.toString()===$)},M.isSame=function(t,e){var n=_(t);return this.startOf(e)<=n&&n<=this.endOf(e)},M.isAfter=function(t,e){return _(t)<this.startOf(e)},M.isBefore=function(t,e){return this.endOf(e)<_(t)},M.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(t,e){var n=this,u=!!O.u(e)||e,a=O.p(t),h=function(t,e){var r=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return u?r:r.endOf(o)},$=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,m=this.$M,M=this.$D,p="set"+(this.$u?"UTC":"");switch(a){case d:return u?h(1,0):h(31,11);case f:return u?h(1,m):h(0,m+1);case c:var v=this.$locale().weekStart||0,g=(y<v?y+7:y)-v;return h(u?M-g:M+(6-g),m);case o:case l:return $(p+"Hours",0);case i:return $(p+"Minutes",1);case s:return $(p+"Seconds",2);case r:return $(p+"Milliseconds",3);default:return this.clone()}},M.endOf=function(t){return this.startOf(t,!1)},M.$set=function(t,e){var u,a=O.p(t),c="set"+(this.$u?"UTC":""),h=(u={},u[o]=c+"Date",u[l]=c+"Date",u[f]=c+"Month",u[d]=c+"FullYear",u[i]=c+"Hours",u[s]=c+"Minutes",u[r]=c+"Seconds",u[n]=c+"Milliseconds",u)[a],$=a===o?this.$D+(e-this.$W):e;if(a===f||a===d){var y=this.clone().set(l,1);y.$d[h]($),y.init(),this.$d=y.set(l,Math.min(this.$D,y.daysInMonth())).$d}else h&&this.$d[h]($);return this.init(),this},M.set=function(t,e){return this.clone().$set(t,e)},M.get=function(t){return this[O.p(t)]()},M.add=function(n,u){var a,h=this;n=Number(n);var l=O.p(u),$=function(t){var e=_(h);return O.w(e.date(e.date()+Math.round(t*n)),h)};if(l===f)return this.set(f,this.$M+n);if(l===d)return this.set(d,this.$y+n);if(l===o)return $(1);if(l===c)return $(7);var y=(a={},a[s]=t,a[i]=e,a[r]=1e3,a)[l]||1,m=this.$d.getTime()+n*y;return O.w(m,this)},M.subtract=function(t,e){return this.add(-1*t,e)},M.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||$;var r=t||"YYYY-MM-DDTHH:mm:ssZ",s=O.z(this),i=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,s,i){return t&&(t[n]||t(e,r))||s[n].slice(0,i)},d=function(t){return O.s(i%12||12,t,"0")},l=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return O.s(e.$y,4,"0");case"M":return a+1;case"MM":return O.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return O.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,o,2);case"ddd":return h(n.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(i);case"HH":return O.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return l(i,u,!0);case"A":return l(i,u,!1);case"m":return String(u);case"mm":return O.s(u,2,"0");case"s":return String(e.$s);case"ss":return O.s(e.$s,2,"0");case"SSS":return O.s(e.$ms,3,"0");case"Z":return s}return null}(t)||s.replace(":","")})},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(n,u,a){var l,$=this,y=O.p(u),m=_(n),M=(m.utcOffset()-this.utcOffset())*t,p=this-m,v=function(){return O.m($,m)};switch(y){case d:l=v()/12;break;case f:l=v();break;case h:l=v()/3;break;case c:l=(p-M)/6048e5;break;case o:l=(p-M)/864e5;break;case i:l=p/e;break;case s:l=p/t;break;case r:l=p/1e3;break;default:l=p}return a?l:O.a(l)},M.daysInMonth=function(){return this.endOf(f).$D},M.$locale=function(){return D[this.$L]},M.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},M.clone=function(){return O.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},a}(),T=k.prototype;return _.prototype=T,[["$ms",n],["$s",r],["$m",s],["$H",i],["$W",o],["$M",f],["$y",d],["$D",l]].forEach(function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),_.extend=function(t,e){return t.$i||(t(e,k,_),t.$i=!0),_},_.locale=w,_.isDayjs=b,_.unix=function(t){return _(1e3*t)},_.en=D[g],_.Ls=D,_.p={},_},"object"==a(e)?t.exports=i():void 0===(s="function"==typeof(r=i)?r.call(e,n,e,t):r)||(t.exports=s)}}]);