"use strict";const t=/^\d{4}(-\d\d(-\d\d(T\d\d:\d\d(:\d\d)?(\.\d+)?(([+-]\d\d[:]?\d\d)|Z)?)?)?)?$/i,e=/^\d\d:\d\d(:\d\d)?(\.\d+)?(([+-]\d\d[:]?\d\d)|Z)?$/i,n=/(Z|([+-])(\d{2})[:]?(\d{2}))$/i;function r(t){if(!function(t){if("string"!=typeof t)return!1;return e.test(t)}(t))return!1;return s(`2018-09-09T${i(t)}Z`)}function i(t){return"string"==typeof t?t.split(n)[0]:t}function s(t){const e=Date.parse(t);return isFinite(e)}exports.STANDARD_DATETIME_FORMAT="YYYY-MM-DD HH:mm:ss",exports.STANDARD_DATE_FORMAT="YYYY-MM-DD",exports.STANDARD_TIME_FORMAT="HH:mm:ss.SSS",exports.TIME_SEPARATOR="T",exports.isValidISODateTimeString=function(e){return function(e){if("string"!=typeof e)return!1;return t.test(e)}(e)&&s(e)},exports.isValidISOTimeString=r,exports.padMilliseconds=function(t){if("string"==typeof t&&(s(t)||r(t))){const e=t.indexOf(".");let r=t.search(n);if(-1===r&&(r=t.length),-1!==e){const n=t.substring(e+1,r);let i=n;if(n.length>3)i=i.substring(0,3);else if(n.length<3){i=`${i}${"0".repeat(3-n.length)}`}return`${t.substring(0,e)}.${i}${t.substring(r)}`}}return t},exports.removeTimeZoneSuffix=i;
