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ACvChqB,IAAI,QAAMk6B,GACV/sB,UAAW,eACXgT,OAAO,QAAe,8BAA6B,QAAMzU,UAAa,QAAM6R,MAC5E4X,QAAS,aACTjH,IAAK5D,EACLsX,cAAc,QAAMrD,GACpBsD,aAAa,QAAMrD,GACnBsD,cAAc,QAAMrD,GACpBsD,aAAa,QAAMrD,IAClB,CACD/sC,SAAS,SAAQ,IAAM,EACrB,QAAY2vC,IAAa,SAAe,QAAmB1T,EAAKiB,SAAU,KAAM,OAElFrO,EAAG,GACF,EAAG,CAAC,KAAM,QAAS,eAAgB,cAAe,eAAgB,gBAEzE,IAqBF,MAAMwhB,GAA6BnY,IAnBjB,QAAgB,CAChCI,cAAc,EACdC,MAhjCY,CACZ,oBACA,OACA,WACA,aACA,oBACA,mBACA,oBACA,oBAyiCAjlC,MAAOk0C,GACPzkB,WAAY,CAAEutB,eAAgBX,GAAaY,kBAAmBP,IAC9D,KAAAvjB,CAAMn5B,EAAOs/B,GACX,MAAMzX,EAAagtB,GAAiB70C,EAAOs/B,GACrC4d,GAAU,QAAS9wC,GAAKyb,EAAY,cAAe,eACzD,MAAO,IAAKA,EAAYq1B,UAC1B,IAUwD,CAAC,CAAC,SAR5D,SAAqBvU,EAAMC,EAAQC,EAAQC,EAAQC,EAAOC,GACxD,MAAMmU,GAA+B,QAAiB,qBAChDC,GAA4B,QAAiB,kBACnD,OAAOzU,EAAKkB,OAAOn9B,UAAW,WAAa,QAAmB,KAAU,CAAEpqB,IAAK,GAAK,EAClF,QAAWqmD,EAAKkB,OAAQ,WAAW,SAAe,QAAmBlB,EAAKuU,YAC1E,QAAYC,GAA8B,SAAe,QAAmBxU,EAAKiB,SAAU,KAAM,KAChG,OAAQ,WAAa,QAAYwT,GAA2B,SAAe,QAAW,CAAE96D,IAAK,GAAKqmD,EAAKiB,SAAU,KAAM,IAC5H,KAQGzlD,OAAOO,W","sources":["webpack://agra/./node_modules/v-calendar/dist/es/index.js"],"sourcesContent":["var __defProp = Object.defineProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __publicField = (obj, key, value) => {\n __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n return value;\n};\nimport { reactive, computed, ref, watch, onUnmounted, provide, inject, onMounted, watchEffect, defineComponent, toRefs, nextTick, openBlock, createElementBlock, normalizeClass, createVNode, Transition, withCtx, mergeProps, renderSlot, createTextVNode, toDisplayString, createElementVNode, createCommentVNode, unref, createBlock, resolveDynamicComponent, normalizeProps, Fragment, renderList, normalizeStyle, withKeys, withDirectives, toRef, resolveComponent, resolveDirective, toHandlers, withModifiers, isRef, guardReactiveProps } from \"vue\";\nimport { createPopper } from \"@popperjs/core\";\nvar commonjsGlobal = typeof globalThis !== \"undefined\" ? globalThis : typeof window !== \"undefined\" ? window : typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : {};\nfunction getDefaultExportFromCjs(x) {\n return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, \"default\") ? x[\"default\"] : x;\n}\nvar objectProto$g = Object.prototype;\nvar hasOwnProperty$d = objectProto$g.hasOwnProperty;\nfunction baseHas$1(object, key) {\n return object != null && hasOwnProperty$d.call(object, key);\n}\nvar _baseHas = baseHas$1;\nvar isArray$c = Array.isArray;\nvar isArray_1 = isArray$c;\nvar freeGlobal$1 = typeof commonjsGlobal == \"object\" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;\nvar _freeGlobal = freeGlobal$1;\nvar freeGlobal = _freeGlobal;\nvar freeSelf = typeof self == \"object\" && self && self.Object === Object && self;\nvar root$8 = freeGlobal || freeSelf || Function(\"return this\")();\nvar _root = root$8;\nvar root$7 = _root;\nvar Symbol$5 = root$7.Symbol;\nvar _Symbol = Symbol$5;\nvar Symbol$4 = _Symbol;\nvar objectProto$f = Object.prototype;\nvar hasOwnProperty$c = objectProto$f.hasOwnProperty;\nvar nativeObjectToString$1 = objectProto$f.toString;\nvar symToStringTag$1 = Symbol$4 ? Symbol$4.toStringTag : void 0;\nfunction getRawTag$1(value) {\n var isOwn = hasOwnProperty$c.call(value, symToStringTag$1), tag = value[symToStringTag$1];\n try {\n value[symToStringTag$1] = void 0;\n var unmasked = true;\n } catch (e) {\n }\n var result = nativeObjectToString$1.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag$1] = tag;\n } else {\n delete value[symToStringTag$1];\n }\n }\n return result;\n}\nvar _getRawTag = getRawTag$1;\nvar objectProto$e = Object.prototype;\nvar nativeObjectToString = objectProto$e.toString;\nfunction objectToString$1(value) {\n return nativeObjectToString.call(value);\n}\nvar _objectToString = objectToString$1;\nvar Symbol$3 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;\nvar nullTag = \"[object Null]\", undefinedTag = \"[object Undefined]\";\nvar symToStringTag = Symbol$3 ? Symbol$3.toStringTag : void 0;\nfunction baseGetTag$a(value) {\n if (value == null) {\n return value === void 0 ? undefinedTag : nullTag;\n }\n return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);\n}\nvar _baseGetTag = baseGetTag$a;\nfunction isObjectLike$b(value) {\n return value != null && typeof value == \"object\";\n}\nvar isObjectLike_1 = isObjectLike$b;\nvar baseGetTag$9 = _baseGetTag, isObjectLike$a = isObjectLike_1;\nvar symbolTag$1 = \"[object Symbol]\";\nfunction isSymbol$3(value) {\n return typeof value == \"symbol\" || isObjectLike$a(value) && baseGetTag$9(value) == symbolTag$1;\n}\nvar isSymbol_1 = isSymbol$3;\nvar isArray$b = isArray_1, isSymbol$2 = isSymbol_1;\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/, reIsPlainProp = /^\\w*$/;\nfunction isKey$3(value, object) {\n if (isArray$b(value)) {\n return false;\n }\n var type = typeof value;\n if (type == \"number\" || type == \"symbol\" || type == \"boolean\" || value == null || isSymbol$2(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);\n}\nvar _isKey = isKey$3;\nfunction isObject$a(value) {\n var type = typeof value;\n return value != null && (type == \"object\" || type == \"function\");\n}\nvar isObject_1 = isObject$a;\nvar baseGetTag$8 = _baseGetTag, isObject$9 = isObject_1;\nvar asyncTag = \"[object AsyncFunction]\", funcTag$1 = \"[object Function]\", genTag = \"[object GeneratorFunction]\", proxyTag = \"[object Proxy]\";\nfunction isFunction$3(value) {\n if (!isObject$9(value)) {\n return false;\n }\n var tag = baseGetTag$8(value);\n return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\nvar isFunction_1 = isFunction$3;\nvar root$6 = _root;\nvar coreJsData$1 = root$6[\"__core-js_shared__\"];\nvar _coreJsData = coreJsData$1;\nvar coreJsData = _coreJsData;\nvar maskSrcKey = function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || \"\");\n return uid ? \"Symbol(src)_1.\" + uid : \"\";\n}();\nfunction isMasked$1(func) {\n return !!maskSrcKey && maskSrcKey in func;\n}\nvar _isMasked = isMasked$1;\nvar funcProto$2 = Function.prototype;\nvar funcToString$2 = funcProto$2.toString;\nfunction toSource$2(func) {\n if (func != null) {\n try {\n return funcToString$2.call(func);\n } catch (e) {\n }\n try {\n return func + \"\";\n } catch (e) {\n }\n }\n return \"\";\n}\nvar _toSource = toSource$2;\nvar isFunction$2 = isFunction_1, isMasked = _isMasked, isObject$8 = isObject_1, toSource$1 = _toSource;\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\nvar funcProto$1 = Function.prototype, objectProto$d = Object.prototype;\nvar funcToString$1 = funcProto$1.toString;\nvar hasOwnProperty$b = objectProto$d.hasOwnProperty;\nvar reIsNative = RegExp(\n \"^\" + funcToString$1.call(hasOwnProperty$b).replace(reRegExpChar, \"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, \"$1.*?\") + \"$\"\n);\nfunction baseIsNative$1(value) {\n if (!isObject$8(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction$2(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource$1(value));\n}\nvar _baseIsNative = baseIsNative$1;\nfunction getValue$1(object, key) {\n return object == null ? void 0 : object[key];\n}\nvar _getValue = getValue$1;\nvar baseIsNative = _baseIsNative, getValue = _getValue;\nfunction getNative$7(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : void 0;\n}\nvar _getNative = getNative$7;\nvar getNative$6 = _getNative;\nvar nativeCreate$4 = getNative$6(Object, \"create\");\nvar _nativeCreate = nativeCreate$4;\nvar nativeCreate$3 = _nativeCreate;\nfunction hashClear$1() {\n this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};\n this.size = 0;\n}\nvar _hashClear = hashClear$1;\nfunction hashDelete$1(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\nvar _hashDelete = hashDelete$1;\nvar nativeCreate$2 = _nativeCreate;\nvar HASH_UNDEFINED$2 = \"__lodash_hash_undefined__\";\nvar objectProto$c = Object.prototype;\nvar hasOwnProperty$a = objectProto$c.hasOwnProperty;\nfunction hashGet$1(key) {\n var data2 = this.__data__;\n if (nativeCreate$2) {\n var result = data2[key];\n return result === HASH_UNDEFINED$2 ? void 0 : result;\n }\n return hasOwnProperty$a.call(data2, key) ? data2[key] : void 0;\n}\nvar _hashGet = hashGet$1;\nvar nativeCreate$1 = _nativeCreate;\nvar objectProto$b = Object.prototype;\nvar hasOwnProperty$9 = objectProto$b.hasOwnProperty;\nfunction hashHas$1(key) {\n var data2 = this.__data__;\n return nativeCreate$1 ? data2[key] !== void 0 : hasOwnProperty$9.call(data2, key);\n}\nvar _hashHas = hashHas$1;\nvar nativeCreate = _nativeCreate;\nvar HASH_UNDEFINED$1 = \"__lodash_hash_undefined__\";\nfunction hashSet$1(key, value) {\n var data2 = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data2[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED$1 : value;\n return this;\n}\nvar _hashSet = hashSet$1;\nvar hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet;\nfunction Hash$1(entries) {\n var index2 = -1, length = entries == null ? 0 : entries.length;\n this.clear();\n while (++index2 < length) {\n var entry = entries[index2];\n this.set(entry[0], entry[1]);\n }\n}\nHash$1.prototype.clear = hashClear;\nHash$1.prototype[\"delete\"] = hashDelete;\nHash$1.prototype.get = hashGet;\nHash$1.prototype.has = hashHas;\nHash$1.prototype.set = hashSet;\nvar _Hash = Hash$1;\nfunction listCacheClear$1() {\n this.__data__ = [];\n this.size = 0;\n}\nvar _listCacheClear = listCacheClear$1;\nfunction eq$6(value, other) {\n return value === other || value !== value && other !== other;\n}\nvar eq_1 = eq$6;\nvar eq$5 = eq_1;\nfunction assocIndexOf$4(array, key) {\n var length = array.length;\n while (length--) {\n if (eq$5(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\nvar _assocIndexOf = assocIndexOf$4;\nvar assocIndexOf$3 = _assocIndexOf;\nvar arrayProto = Array.prototype;\nvar splice = arrayProto.splice;\nfunction listCacheDelete$1(key) {\n var data2 = this.__data__, index2 = assocIndexOf$3(data2, key);\n if (index2 < 0) {\n return false;\n }\n var lastIndex = data2.length - 1;\n if (index2 == lastIndex) {\n data2.pop();\n } else {\n splice.call(data2, index2, 1);\n }\n --this.size;\n return true;\n}\nvar _listCacheDelete = listCacheDelete$1;\nvar assocIndexOf$2 = _assocIndexOf;\nfunction listCacheGet$1(key) {\n var data2 = this.__data__, index2 = assocIndexOf$2(data2, key);\n return index2 < 0 ? void 0 : data2[index2][1];\n}\nvar _listCacheGet = listCacheGet$1;\nvar assocIndexOf$1 = _assocIndexOf;\nfunction listCacheHas$1(key) {\n return assocIndexOf$1(this.__data__, key) > -1;\n}\nvar _listCacheHas = listCacheHas$1;\nvar assocIndexOf = _assocIndexOf;\nfunction listCacheSet$1(key, value) {\n var data2 = this.__data__, index2 = assocIndexOf(data2, key);\n if (index2 < 0) {\n ++this.size;\n data2.push([key, value]);\n } else {\n data2[index2][1] = value;\n }\n return this;\n}\nvar _listCacheSet = listCacheSet$1;\nvar listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet;\nfunction ListCache$4(entries) {\n var index2 = -1, length = entries == null ? 0 : entries.length;\n this.clear();\n while (++index2 < length) {\n var entry = entries[index2];\n this.set(entry[0], entry[1]);\n }\n}\nListCache$4.prototype.clear = listCacheClear;\nListCache$4.prototype[\"delete\"] = listCacheDelete;\nListCache$4.prototype.get = listCacheGet;\nListCache$4.prototype.has = listCacheHas;\nListCache$4.prototype.set = listCacheSet;\nvar _ListCache = ListCache$4;\nvar getNative$5 = _getNative, root$5 = _root;\nvar Map$3 = getNative$5(root$5, \"Map\");\nvar _Map = Map$3;\nvar Hash = _Hash, ListCache$3 = _ListCache, Map$2 = _Map;\nfunction mapCacheClear$1() {\n this.size = 0;\n this.__data__ = {\n \"hash\": new Hash(),\n \"map\": new (Map$2 || ListCache$3)(),\n \"string\": new Hash()\n };\n}\nvar _mapCacheClear = mapCacheClear$1;\nfunction isKeyable$1(value) {\n var type = typeof value;\n return type == \"string\" || type == \"number\" || type == \"symbol\" || type == \"boolean\" ? value !== \"__proto__\" : value === null;\n}\nvar _isKeyable = isKeyable$1;\nvar isKeyable = _isKeyable;\nfunction getMapData$4(map, key) {\n var data2 = map.__data__;\n return isKeyable(key) ? data2[typeof key == \"string\" ? \"string\" : \"hash\"] : data2.map;\n}\nvar _getMapData = getMapData$4;\nvar getMapData$3 = _getMapData;\nfunction mapCacheDelete$1(key) {\n var result = getMapData$3(this, key)[\"delete\"](key);\n this.size -= result ? 1 : 0;\n return result;\n}\nvar _mapCacheDelete = mapCacheDelete$1;\nvar getMapData$2 = _getMapData;\nfunction mapCacheGet$1(key) {\n return getMapData$2(this, key).get(key);\n}\nvar _mapCacheGet = mapCacheGet$1;\nvar getMapData$1 = _getMapData;\nfunction mapCacheHas$1(key) {\n return getMapData$1(this, key).has(key);\n}\nvar _mapCacheHas = mapCacheHas$1;\nvar getMapData = _getMapData;\nfunction mapCacheSet$1(key, value) {\n var data2 = getMapData(this, key), size = data2.size;\n data2.set(key, value);\n this.size += data2.size == size ? 0 : 1;\n return this;\n}\nvar _mapCacheSet = mapCacheSet$1;\nvar mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet;\nfunction MapCache$3(entries) {\n var index2 = -1, length = entries == null ? 0 : entries.length;\n this.clear();\n while (++index2 < length) {\n var entry = entries[index2];\n this.set(entry[0], entry[1]);\n }\n}\nMapCache$3.prototype.clear = mapCacheClear;\nMapCache$3.prototype[\"delete\"] = mapCacheDelete;\nMapCache$3.prototype.get = mapCacheGet;\nMapCache$3.prototype.has = mapCacheHas;\nMapCache$3.prototype.set = mapCacheSet;\nvar _MapCache = MapCache$3;\nvar MapCache$2 = _MapCache;\nvar FUNC_ERROR_TEXT = \"Expected a function\";\nfunction memoize$1(func, resolver) {\n if (typeof func != \"function\" || resolver != null && typeof resolver != \"function\") {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize$1.Cache || MapCache$2)();\n return memoized;\n}\nmemoize$1.Cache = MapCache$2;\nvar memoize_1 = memoize$1;\nvar memoize = memoize_1;\nvar MAX_MEMOIZE_SIZE = 500;\nfunction memoizeCapped$1(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n var cache = result.cache;\n return result;\n}\nvar _memoizeCapped = memoizeCapped$1;\nvar memoizeCapped = _memoizeCapped;\nvar rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g;\nvar stringToPath$1 = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46) {\n result.push(\"\");\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, \"$1\") : number || match);\n });\n return result;\n});\nvar _stringToPath = stringToPath$1;\nfunction arrayMap$1(array, iteratee) {\n var index2 = -1, length = array == null ? 0 : array.length, result = Array(length);\n while (++index2 < length) {\n result[index2] = iteratee(array[index2], index2, array);\n }\n return result;\n}\nvar _arrayMap = arrayMap$1;\nvar Symbol$2 = _Symbol, arrayMap = _arrayMap, isArray$a = isArray_1, isSymbol$1 = isSymbol_1;\nvar INFINITY$1 = 1 / 0;\nvar symbolProto$1 = Symbol$2 ? Symbol$2.prototype : void 0, symbolToString = symbolProto$1 ? symbolProto$1.toString : void 0;\nfunction baseToString$1(value) {\n if (typeof value == \"string\") {\n return value;\n }\n if (isArray$a(value)) {\n return arrayMap(value, baseToString$1) + \"\";\n }\n if (isSymbol$1(value)) {\n return symbolToString ? symbolToString.call(value) : \"\";\n }\n var result = value + \"\";\n return result == \"0\" && 1 / value == -INFINITY$1 ? \"-0\" : result;\n}\nvar _baseToString = baseToString$1;\nvar baseToString = _baseToString;\nfunction toString$1(value) {\n return value == null ? \"\" : baseToString(value);\n}\nvar toString_1 = toString$1;\nvar isArray$9 = isArray_1, isKey$2 = _isKey, stringToPath = _stringToPath, toString = toString_1;\nfunction castPath$2(value, object) {\n if (isArray$9(value)) {\n return value;\n }\n return isKey$2(value, object) ? [value] : stringToPath(toString(value));\n}\nvar _castPath = castPath$2;\nvar baseGetTag$7 = _baseGetTag, isObjectLike$9 = isObjectLike_1;\nvar argsTag$2 = \"[object Arguments]\";\nfunction baseIsArguments$1(value) {\n return isObjectLike$9(value) && baseGetTag$7(value) == argsTag$2;\n}\nvar _baseIsArguments = baseIsArguments$1;\nvar baseIsArguments = _baseIsArguments, isObjectLike$8 = isObjectLike_1;\nvar objectProto$a = Object.prototype;\nvar hasOwnProperty$8 = objectProto$a.hasOwnProperty;\nvar propertyIsEnumerable$1 = objectProto$a.propertyIsEnumerable;\nvar isArguments$3 = baseIsArguments(function() {\n return arguments;\n}()) ? baseIsArguments : function(value) {\n return isObjectLike$8(value) && hasOwnProperty$8.call(value, \"callee\") && !propertyIsEnumerable$1.call(value, \"callee\");\n};\nvar isArguments_1 = isArguments$3;\nvar MAX_SAFE_INTEGER$1 = 9007199254740991;\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\nfunction isIndex$3(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER$1 : length;\n return !!length && (type == \"number\" || type != \"symbol\" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);\n}\nvar _isIndex = isIndex$3;\nvar MAX_SAFE_INTEGER = 9007199254740991;\nfunction isLength$3(value) {\n return typeof value == \"number\" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\nvar isLength_1 = isLength$3;\nvar isSymbol = isSymbol_1;\nvar INFINITY = 1 / 0;\nfunction toKey$4(value) {\n if (typeof value == \"string\" || isSymbol(value)) {\n return value;\n }\n var result = value + \"\";\n return result == \"0\" && 1 / value == -INFINITY ? \"-0\" : result;\n}\nvar _toKey = toKey$4;\nvar castPath$1 = _castPath, isArguments$2 = isArguments_1, isArray$8 = isArray_1, isIndex$2 = _isIndex, isLength$2 = isLength_1, toKey$3 = _toKey;\nfunction hasPath$2(object, path, hasFunc) {\n path = castPath$1(path, object);\n var index2 = -1, length = path.length, result = false;\n while (++index2 < length) {\n var key = toKey$3(path[index2]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index2 != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength$2(length) && isIndex$2(key, length) && (isArray$8(object) || isArguments$2(object));\n}\nvar _hasPath = hasPath$2;\nvar baseHas = _baseHas, hasPath$1 = _hasPath;\nfunction has$1(object, path) {\n return object != null && hasPath$1(object, path, baseHas);\n}\nvar has_1 = has$1;\nvar baseGetTag$6 = _baseGetTag, isObjectLike$7 = isObjectLike_1;\nvar dateTag$2 = \"[object Date]\";\nfunction baseIsDate$1(value) {\n return isObjectLike$7(value) && baseGetTag$6(value) == dateTag$2;\n}\nvar _baseIsDate = baseIsDate$1;\nfunction baseUnary$2(func) {\n return function(value) {\n return func(value);\n };\n}\nvar _baseUnary = baseUnary$2;\nvar _nodeUtilExports = {};\nvar _nodeUtil = {\n get exports() {\n return _nodeUtilExports;\n },\n set exports(v) {\n _nodeUtilExports = v;\n }\n};\n(function(module, exports) {\n var freeGlobal2 = _freeGlobal;\n var freeExports = exports && !exports.nodeType && exports;\n var freeModule = freeExports && true && module && !module.nodeType && module;\n var moduleExports = freeModule && freeModule.exports === freeExports;\n var freeProcess = moduleExports && freeGlobal2.process;\n var nodeUtil2 = function() {\n try {\n var types = freeModule && freeModule.require && freeModule.require(\"util\").types;\n if (types) {\n return types;\n }\n return freeProcess && freeProcess.binding && freeProcess.binding(\"util\");\n } catch (e) {\n }\n }();\n module.exports = nodeUtil2;\n})(_nodeUtil, _nodeUtilExports);\nvar baseIsDate = _baseIsDate, baseUnary$1 = _baseUnary, nodeUtil$1 = _nodeUtilExports;\nvar nodeIsDate = nodeUtil$1 && nodeUtil$1.isDate;\nvar isDate$1 = nodeIsDate ? baseUnary$1(nodeIsDate) : baseIsDate;\nvar isDate_1 = isDate$1;\nvar baseGetTag$5 = _baseGetTag, isArray$7 = isArray_1, isObjectLike$6 = isObjectLike_1;\nvar stringTag$2 = \"[object String]\";\nfunction isString(value) {\n return typeof value == \"string\" || !isArray$7(value) && isObjectLike$6(value) && baseGetTag$5(value) == stringTag$2;\n}\nvar isString_1 = isString;\nfunction arraySome$2(array, predicate) {\n var index2 = -1, length = array == null ? 0 : array.length;\n while (++index2 < length) {\n if (predicate(array[index2], index2, array)) {\n return true;\n }\n }\n return false;\n}\nvar _arraySome = arraySome$2;\nvar ListCache$2 = _ListCache;\nfunction stackClear$1() {\n this.__data__ = new ListCache$2();\n this.size = 0;\n}\nvar _stackClear = stackClear$1;\nfunction stackDelete$1(key) {\n var data2 = this.__data__, result = data2[\"delete\"](key);\n this.size = data2.size;\n return result;\n}\nvar _stackDelete = stackDelete$1;\nfunction stackGet$1(key) {\n return this.__data__.get(key);\n}\nvar _stackGet = stackGet$1;\nfunction stackHas$1(key) {\n return this.__data__.has(key);\n}\nvar _stackHas = stackHas$1;\nvar ListCache$1 = _ListCache, Map$1 = _Map, MapCache$1 = _MapCache;\nvar LARGE_ARRAY_SIZE = 200;\nfunction stackSet$1(key, value) {\n var data2 = this.__data__;\n if (data2 instanceof ListCache$1) {\n var pairs = data2.__data__;\n if (!Map$1 || pairs.length < LARGE_ARRAY_SIZE - 1) {\n pairs.push([key, value]);\n this.size = ++data2.size;\n return this;\n }\n data2 = this.__data__ = new MapCache$1(pairs);\n }\n data2.set(key, value);\n this.size = data2.size;\n return this;\n}\nvar _stackSet = stackSet$1;\nvar ListCache = _ListCache, stackClear = _stackClear, stackDelete = _stackDelete, stackGet = _stackGet, stackHas = _stackHas, stackSet = _stackSet;\nfunction Stack$3(entries) {\n var data2 = this.__data__ = new ListCache(entries);\n this.size = data2.size;\n}\nStack$3.prototype.clear = stackClear;\nStack$3.prototype[\"delete\"] = stackDelete;\nStack$3.prototype.get = stackGet;\nStack$3.prototype.has = stackHas;\nStack$3.prototype.set = stackSet;\nvar _Stack = Stack$3;\nvar HASH_UNDEFINED = \"__lodash_hash_undefined__\";\nfunction setCacheAdd$1(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\nvar _setCacheAdd = setCacheAdd$1;\nfunction setCacheHas$1(value) {\n return this.__data__.has(value);\n}\nvar _setCacheHas = setCacheHas$1;\nvar MapCache = _MapCache, setCacheAdd = _setCacheAdd, setCacheHas = _setCacheHas;\nfunction SetCache$1(values) {\n var index2 = -1, length = values == null ? 0 : values.length;\n this.__data__ = new MapCache();\n while (++index2 < length) {\n this.add(values[index2]);\n }\n}\nSetCache$1.prototype.add = SetCache$1.prototype.push = setCacheAdd;\nSetCache$1.prototype.has = setCacheHas;\nvar _SetCache = SetCache$1;\nfunction cacheHas$1(cache, key) {\n return cache.has(key);\n}\nvar _cacheHas = cacheHas$1;\nvar SetCache = _SetCache, arraySome$1 = _arraySome, cacheHas = _cacheHas;\nvar COMPARE_PARTIAL_FLAG$5 = 1, COMPARE_UNORDERED_FLAG$3 = 2;\nfunction equalArrays$2(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG$5, arrLength = array.length, othLength = other.length;\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n var arrStacked = stack.get(array);\n var othStacked = stack.get(other);\n if (arrStacked && othStacked) {\n return arrStacked == other && othStacked == array;\n }\n var index2 = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;\n stack.set(array, other);\n stack.set(other, array);\n while (++index2 < arrLength) {\n var arrValue = array[index2], othValue = other[index2];\n if (customizer) {\n var compared = isPartial ? customizer(othValue, arrValue, index2, other, array, stack) : customizer(arrValue, othValue, index2, array, other, stack);\n }\n if (compared !== void 0) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n if (seen) {\n if (!arraySome$1(other, function(othValue2, othIndex) {\n if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n result = false;\n break;\n }\n }\n stack[\"delete\"](array);\n stack[\"delete\"](other);\n return result;\n}\nvar _equalArrays = equalArrays$2;\nvar root$4 = _root;\nvar Uint8Array$2 = root$4.Uint8Array;\nvar _Uint8Array = Uint8Array$2;\nfunction mapToArray$1(map) {\n var index2 = -1, result = Array(map.size);\n map.forEach(function(value, key) {\n result[++index2] = [key, value];\n });\n return result;\n}\nvar _mapToArray = mapToArray$1;\nfunction setToArray$1(set) {\n var index2 = -1, result = Array(set.size);\n set.forEach(function(value) {\n result[++index2] = value;\n });\n return result;\n}\nvar _setToArray = setToArray$1;\nvar Symbol$1 = _Symbol, Uint8Array$1 = _Uint8Array, eq$4 = eq_1, equalArrays$1 = _equalArrays, mapToArray = _mapToArray, setToArray = _setToArray;\nvar COMPARE_PARTIAL_FLAG$4 = 1, COMPARE_UNORDERED_FLAG$2 = 2;\nvar boolTag$2 = \"[object Boolean]\", dateTag$1 = \"[object Date]\", errorTag$1 = \"[object Error]\", mapTag$2 = \"[object Map]\", numberTag$2 = \"[object Number]\", regexpTag$1 = \"[object RegExp]\", setTag$2 = \"[object Set]\", stringTag$1 = \"[object String]\", symbolTag = \"[object Symbol]\";\nvar arrayBufferTag$1 = \"[object ArrayBuffer]\", dataViewTag$2 = \"[object DataView]\";\nvar symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;\nfunction equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag$2:\n if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n case arrayBufferTag$1:\n if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array$1(object), new Uint8Array$1(other))) {\n return false;\n }\n return true;\n case boolTag$2:\n case dateTag$1:\n case numberTag$2:\n return eq$4(+object, +other);\n case errorTag$1:\n return object.name == other.name && object.message == other.message;\n case regexpTag$1:\n case stringTag$1:\n return object == other + \"\";\n case mapTag$2:\n var convert = mapToArray;\n case setTag$2:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG$4;\n convert || (convert = setToArray);\n if (object.size != other.size && !isPartial) {\n return false;\n }\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG$2;\n stack.set(object, other);\n var result = equalArrays$1(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack[\"delete\"](object);\n return result;\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n}\nvar _equalByTag = equalByTag$1;\nfunction arrayPush$1(array, values) {\n var index2 = -1, length = values.length, offset = array.length;\n while (++index2 < length) {\n array[offset + index2] = values[index2];\n }\n return array;\n}\nvar _arrayPush = arrayPush$1;\nvar arrayPush = _arrayPush, isArray$6 = isArray_1;\nfunction baseGetAllKeys$1(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray$6(object) ? result : arrayPush(result, symbolsFunc(object));\n}\nvar _baseGetAllKeys = baseGetAllKeys$1;\nfunction arrayFilter$1(array, predicate) {\n var index2 = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];\n while (++index2 < length) {\n var value = array[index2];\n if (predicate(value, index2, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\nvar _arrayFilter = arrayFilter$1;\nfunction stubArray$1() {\n return [];\n}\nvar stubArray_1 = stubArray$1;\nvar arrayFilter = _arrayFilter, stubArray = stubArray_1;\nvar objectProto$9 = Object.prototype;\nvar propertyIsEnumerable = objectProto$9.propertyIsEnumerable;\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\nvar getSymbols$1 = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\nvar _getSymbols = getSymbols$1;\nfunction baseTimes$1(n, iteratee) {\n var index2 = -1, result = Array(n);\n while (++index2 < n) {\n result[index2] = iteratee(index2);\n }\n return result;\n}\nvar _baseTimes = baseTimes$1;\nvar isBufferExports = {};\nvar isBuffer$3 = {\n get exports() {\n return isBufferExports;\n },\n set exports(v) {\n isBufferExports = v;\n }\n};\nfunction stubFalse() {\n return false;\n}\nvar stubFalse_1 = stubFalse;\n(function(module, exports) {\n var root2 = _root, stubFalse2 = stubFalse_1;\n var freeExports = exports && !exports.nodeType && exports;\n var freeModule = freeExports && true && module && !module.nodeType && module;\n var moduleExports = freeModule && freeModule.exports === freeExports;\n var Buffer2 = moduleExports ? root2.Buffer : void 0;\n var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0;\n var isBuffer2 = nativeIsBuffer || stubFalse2;\n module.exports = isBuffer2;\n})(isBuffer$3, isBufferExports);\nvar baseGetTag$4 = _baseGetTag, isLength$1 = isLength_1, isObjectLike$5 = isObjectLike_1;\nvar argsTag$1 = \"[object Arguments]\", arrayTag$1 = \"[object Array]\", boolTag$1 = \"[object Boolean]\", dateTag = \"[object Date]\", errorTag = \"[object Error]\", funcTag = \"[object Function]\", mapTag$1 = \"[object Map]\", numberTag$1 = \"[object Number]\", objectTag$3 = \"[object Object]\", regexpTag = \"[object RegExp]\", setTag$1 = \"[object Set]\", stringTag = \"[object String]\", weakMapTag$1 = \"[object WeakMap]\";\nvar arrayBufferTag = \"[object ArrayBuffer]\", dataViewTag$1 = \"[object DataView]\", float32Tag = \"[object Float32Array]\", float64Tag = \"[object Float64Array]\", int8Tag = \"[object Int8Array]\", int16Tag = \"[object Int16Array]\", int32Tag = \"[object Int32Array]\", uint8Tag = \"[object Uint8Array]\", uint8ClampedTag = \"[object Uint8ClampedArray]\", uint16Tag = \"[object Uint16Array]\", uint32Tag = \"[object Uint32Array]\";\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag$1] = typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag$1] = typedArrayTags[numberTag$1] = typedArrayTags[objectTag$3] = typedArrayTags[regexpTag] = typedArrayTags[setTag$1] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag$1] = false;\nfunction baseIsTypedArray$1(value) {\n return isObjectLike$5(value) && isLength$1(value.length) && !!typedArrayTags[baseGetTag$4(value)];\n}\nvar _baseIsTypedArray = baseIsTypedArray$1;\nvar baseIsTypedArray = _baseIsTypedArray, baseUnary = _baseUnary, nodeUtil = _nodeUtilExports;\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\nvar isTypedArray$3 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\nvar isTypedArray_1 = isTypedArray$3;\nvar baseTimes = _baseTimes, isArguments$1 = isArguments_1, isArray$5 = isArray_1, isBuffer$2 = isBufferExports, isIndex$1 = _isIndex, isTypedArray$2 = isTypedArray_1;\nvar objectProto$8 = Object.prototype;\nvar hasOwnProperty$7 = objectProto$8.hasOwnProperty;\nfunction arrayLikeKeys$2(value, inherited) {\n var isArr = isArray$5(value), isArg = !isArr && isArguments$1(value), isBuff = !isArr && !isArg && isBuffer$2(value), isType = !isArr && !isArg && !isBuff && isTypedArray$2(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;\n for (var key in value) {\n if ((inherited || hasOwnProperty$7.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.\n (key == \"length\" || // Node.js 0.10 has enumerable non-index properties on buffers.\n isBuff && (key == \"offset\" || key == \"parent\") || // PhantomJS 2 has enumerable non-index properties on typed arrays.\n isType && (key == \"buffer\" || key == \"byteLength\" || key == \"byteOffset\") || // Skip index properties.\n isIndex$1(key, length)))) {\n result.push(key);\n }\n }\n return result;\n}\nvar _arrayLikeKeys = arrayLikeKeys$2;\nvar objectProto$7 = Object.prototype;\nfunction isPrototype$3(value) {\n var Ctor = value && value.constructor, proto = typeof Ctor == \"function\" && Ctor.prototype || objectProto$7;\n return value === proto;\n}\nvar _isPrototype = isPrototype$3;\nfunction overArg$2(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\nvar _overArg = overArg$2;\nvar overArg$1 = _overArg;\nvar nativeKeys$1 = overArg$1(Object.keys, Object);\nvar _nativeKeys = nativeKeys$1;\nvar isPrototype$2 = _isPrototype, nativeKeys = _nativeKeys;\nvar objectProto$6 = Object.prototype;\nvar hasOwnProperty$6 = objectProto$6.hasOwnProperty;\nfunction baseKeys$1(object) {\n if (!isPrototype$2(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty$6.call(object, key) && key != \"constructor\") {\n result.push(key);\n }\n }\n return result;\n}\nvar _baseKeys = baseKeys$1;\nvar isFunction$1 = isFunction_1, isLength = isLength_1;\nfunction isArrayLike$5(value) {\n return value != null && isLength(value.length) && !isFunction$1(value);\n}\nvar isArrayLike_1 = isArrayLike$5;\nvar arrayLikeKeys$1 = _arrayLikeKeys, baseKeys = _baseKeys, isArrayLike$4 = isArrayLike_1;\nfunction keys$3(object) {\n return isArrayLike$4(object) ? arrayLikeKeys$1(object) : baseKeys(object);\n}\nvar keys_1 = keys$3;\nvar baseGetAllKeys = _baseGetAllKeys, getSymbols = _getSymbols, keys$2 = keys_1;\nfunction getAllKeys$1(object) {\n return baseGetAllKeys(object, keys$2, getSymbols);\n}\nvar _getAllKeys = getAllKeys$1;\nvar getAllKeys = _getAllKeys;\nvar COMPARE_PARTIAL_FLAG$3 = 1;\nvar objectProto$5 = Object.prototype;\nvar hasOwnProperty$5 = objectProto$5.hasOwnProperty;\nfunction equalObjects$1(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index2 = objLength;\n while (index2--) {\n var key = objProps[index2];\n if (!(isPartial ? key in other : hasOwnProperty$5.call(other, key))) {\n return false;\n }\n }\n var objStacked = stack.get(object);\n var othStacked = stack.get(other);\n if (objStacked && othStacked) {\n return objStacked == other && othStacked == object;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n var skipCtor = isPartial;\n while (++index2 < objLength) {\n key = objProps[index2];\n var objValue = object[key], othValue = other[key];\n if (customizer) {\n var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);\n }\n if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == \"constructor\");\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor, othCtor = other.constructor;\n if (objCtor != othCtor && (\"constructor\" in object && \"constructor\" in other) && !(typeof objCtor == \"function\" && objCtor instanceof objCtor && typeof othCtor == \"function\" && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack[\"delete\"](object);\n stack[\"delete\"](other);\n return result;\n}\nvar _equalObjects = equalObjects$1;\nvar getNative$4 = _getNative, root$3 = _root;\nvar DataView$1 = getNative$4(root$3, \"DataView\");\nvar _DataView = DataView$1;\nvar getNative$3 = _getNative, root$2 = _root;\nvar Promise$2 = getNative$3(root$2, \"Promise\");\nvar _Promise = Promise$2;\nvar getNative$2 = _getNative, root$1 = _root;\nvar Set$1 = getNative$2(root$1, \"Set\");\nvar _Set = Set$1;\nvar getNative$1 = _getNative, root = _root;\nvar WeakMap$1 = getNative$1(root, \"WeakMap\");\nvar _WeakMap = WeakMap$1;\nvar DataView = _DataView, Map = _Map, Promise$1 = _Promise, Set = _Set, WeakMap = _WeakMap, baseGetTag$3 = _baseGetTag, toSource = _toSource;\nvar mapTag = \"[object Map]\", objectTag$2 = \"[object Object]\", promiseTag = \"[object Promise]\", setTag = \"[object Set]\", weakMapTag = \"[object WeakMap]\";\nvar dataViewTag = \"[object DataView]\";\nvar dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);\nvar getTag$1 = baseGetTag$3;\nif (DataView && getTag$1(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag$1(new Map()) != mapTag || Promise$1 && getTag$1(Promise$1.resolve()) != promiseTag || Set && getTag$1(new Set()) != setTag || WeakMap && getTag$1(new WeakMap()) != weakMapTag) {\n getTag$1 = function(value) {\n var result = baseGetTag$3(value), Ctor = result == objectTag$2 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : \"\";\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString:\n return dataViewTag;\n case mapCtorString:\n return mapTag;\n case promiseCtorString:\n return promiseTag;\n case setCtorString:\n return setTag;\n case weakMapCtorString:\n return weakMapTag;\n }\n }\n return result;\n };\n}\nvar _getTag = getTag$1;\nvar Stack$2 = _Stack, equalArrays = _equalArrays, equalByTag = _equalByTag, equalObjects = _equalObjects, getTag = _getTag, isArray$4 = isArray_1, isBuffer$1 = isBufferExports, isTypedArray$1 = isTypedArray_1;\nvar COMPARE_PARTIAL_FLAG$2 = 1;\nvar argsTag = \"[object Arguments]\", arrayTag = \"[object Array]\", objectTag$1 = \"[object Object]\";\nvar objectProto$4 = Object.prototype;\nvar hasOwnProperty$4 = objectProto$4.hasOwnProperty;\nfunction baseIsEqualDeep$1(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray$4(object), othIsArr = isArray$4(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other);\n objTag = objTag == argsTag ? objectTag$1 : objTag;\n othTag = othTag == argsTag ? objectTag$1 : othTag;\n var objIsObj = objTag == objectTag$1, othIsObj = othTag == objectTag$1, isSameTag = objTag == othTag;\n if (isSameTag && isBuffer$1(object)) {\n if (!isBuffer$1(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack$2());\n return objIsArr || isTypedArray$1(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {\n var objIsWrapped = objIsObj && hasOwnProperty$4.call(object, \"__wrapped__\"), othIsWrapped = othIsObj && hasOwnProperty$4.call(other, \"__wrapped__\");\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;\n stack || (stack = new Stack$2());\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack$2());\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\nvar _baseIsEqualDeep = baseIsEqualDeep$1;\nvar baseIsEqualDeep = _baseIsEqualDeep, isObjectLike$4 = isObjectLike_1;\nfunction baseIsEqual$2(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || !isObjectLike$4(value) && !isObjectLike$4(other)) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual$2, stack);\n}\nvar _baseIsEqual = baseIsEqual$2;\nvar Stack$1 = _Stack, baseIsEqual$1 = _baseIsEqual;\nvar COMPARE_PARTIAL_FLAG$1 = 1, COMPARE_UNORDERED_FLAG$1 = 2;\nfunction baseIsMatch$1(object, source, matchData, customizer) {\n var index2 = matchData.length, length = index2, noCustomizer = !customizer;\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index2--) {\n var data2 = matchData[index2];\n if (noCustomizer && data2[2] ? data2[1] !== object[data2[0]] : !(data2[0] in object)) {\n return false;\n }\n }\n while (++index2 < length) {\n data2 = matchData[index2];\n var key = data2[0], objValue = object[key], srcValue = data2[1];\n if (noCustomizer && data2[2]) {\n if (objValue === void 0 && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack$1();\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === void 0 ? baseIsEqual$1(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack) : result)) {\n return false;\n }\n }\n }\n return true;\n}\nvar _baseIsMatch = baseIsMatch$1;\nvar isObject$7 = isObject_1;\nfunction isStrictComparable$2(value) {\n return value === value && !isObject$7(value);\n}\nvar _isStrictComparable = isStrictComparable$2;\nvar isStrictComparable$1 = _isStrictComparable, keys$1 = keys_1;\nfunction getMatchData$1(object) {\n var result = keys$1(object), length = result.length;\n while (length--) {\n var key = result[length], value = object[key];\n result[length] = [key, value, isStrictComparable$1(value)];\n }\n return result;\n}\nvar _getMatchData = getMatchData$1;\nfunction matchesStrictComparable$2(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue && (srcValue !== void 0 || key in Object(object));\n };\n}\nvar _matchesStrictComparable = matchesStrictComparable$2;\nvar baseIsMatch = _baseIsMatch, getMatchData = _getMatchData, matchesStrictComparable$1 = _matchesStrictComparable;\nfunction baseMatches$1(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable$1(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n}\nvar _baseMatches = baseMatches$1;\nvar castPath = _castPath, toKey$2 = _toKey;\nfunction baseGet$2(object, path) {\n path = castPath(path, object);\n var index2 = 0, length = path.length;\n while (object != null && index2 < length) {\n object = object[toKey$2(path[index2++])];\n }\n return index2 && index2 == length ? object : void 0;\n}\nvar _baseGet = baseGet$2;\nvar baseGet$1 = _baseGet;\nfunction get$1(object, path, defaultValue) {\n var result = object == null ? void 0 : baseGet$1(object, path);\n return result === void 0 ? defaultValue : result;\n}\nvar get_1 = get$1;\nfunction baseHasIn$1(object, key) {\n return object != null && key in Object(object);\n}\nvar _baseHasIn = baseHasIn$1;\nvar baseHasIn = _baseHasIn, hasPath = _hasPath;\nfunction hasIn$1(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n}\nvar hasIn_1 = hasIn$1;\nvar baseIsEqual = _baseIsEqual, get = get_1, hasIn = hasIn_1, isKey$1 = _isKey, isStrictComparable = _isStrictComparable, matchesStrictComparable = _matchesStrictComparable, toKey$1 = _toKey;\nvar COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;\nfunction baseMatchesProperty$1(path, srcValue) {\n if (isKey$1(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey$1(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n}\nvar _baseMatchesProperty = baseMatchesProperty$1;\nfunction identity$3(value) {\n return value;\n}\nvar identity_1 = identity$3;\nfunction baseProperty$1(key) {\n return function(object) {\n return object == null ? void 0 : object[key];\n };\n}\nvar _baseProperty = baseProperty$1;\nvar baseGet = _baseGet;\nfunction basePropertyDeep$1(path) {\n return function(object) {\n return baseGet(object, path);\n };\n}\nvar _basePropertyDeep = basePropertyDeep$1;\nvar baseProperty = _baseProperty, basePropertyDeep = _basePropertyDeep, isKey = _isKey, toKey = _toKey;\nfunction property$1(path) {\n return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n}\nvar property_1 = property$1;\nvar baseMatches = _baseMatches, baseMatchesProperty = _baseMatchesProperty, identity$2 = identity_1, isArray$3 = isArray_1, property = property_1;\nfunction baseIteratee$2(value) {\n if (typeof value == \"function\") {\n return value;\n }\n if (value == null) {\n return identity$2;\n }\n if (typeof value == \"object\") {\n return isArray$3(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);\n }\n return property(value);\n}\nvar _baseIteratee = baseIteratee$2;\nfunction createBaseFor$1(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index2 = -1, iterable = Object(object), props = keysFunc(object), length = props.length;\n while (length--) {\n var key = props[fromRight ? length : ++index2];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\nvar _createBaseFor = createBaseFor$1;\nvar createBaseFor = _createBaseFor;\nvar baseFor$2 = createBaseFor();\nvar _baseFor = baseFor$2;\nvar baseFor$1 = _baseFor, keys = keys_1;\nfunction baseForOwn$2(object, iteratee) {\n return object && baseFor$1(object, iteratee, keys);\n}\nvar _baseForOwn = baseForOwn$2;\nvar isArrayLike$3 = isArrayLike_1;\nfunction createBaseEach$1(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike$3(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length, index2 = fromRight ? length : -1, iterable = Object(collection);\n while (fromRight ? index2-- : ++index2 < length) {\n if (iteratee(iterable[index2], index2, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\nvar _createBaseEach = createBaseEach$1;\nvar baseForOwn$1 = _baseForOwn, createBaseEach = _createBaseEach;\nvar baseEach$1 = createBaseEach(baseForOwn$1);\nvar _baseEach = baseEach$1;\nvar baseEach = _baseEach;\nfunction baseSome$1(collection, predicate) {\n var result;\n baseEach(collection, function(value, index2, collection2) {\n result = predicate(value, index2, collection2);\n return !result;\n });\n return !!result;\n}\nvar _baseSome = baseSome$1;\nvar eq$3 = eq_1, isArrayLike$2 = isArrayLike_1, isIndex = _isIndex, isObject$6 = isObject_1;\nfunction isIterateeCall$3(value, index2, object) {\n if (!isObject$6(object)) {\n return false;\n }\n var type = typeof index2;\n if (type == \"number\" ? isArrayLike$2(object) && isIndex(index2, object.length) : type == \"string\" && index2 in object) {\n return eq$3(object[index2], value);\n }\n return false;\n}\nvar _isIterateeCall = isIterateeCall$3;\nvar arraySome = _arraySome, baseIteratee$1 = _baseIteratee, baseSome = _baseSome, isArray$2 = isArray_1, isIterateeCall$2 = _isIterateeCall;\nfunction some(collection, predicate, guard) {\n var func = isArray$2(collection) ? arraySome : baseSome;\n if (guard && isIterateeCall$2(collection, predicate, guard)) {\n predicate = void 0;\n }\n return func(collection, baseIteratee$1(predicate));\n}\nvar some_1 = some;\nvar baseGetTag$2 = _baseGetTag, isObjectLike$3 = isObjectLike_1;\nvar boolTag = \"[object Boolean]\";\nfunction isBoolean(value) {\n return value === true || value === false || isObjectLike$3(value) && baseGetTag$2(value) == boolTag;\n}\nvar isBoolean_1 = isBoolean;\nvar baseGetTag$1 = _baseGetTag, isObjectLike$2 = isObjectLike_1;\nvar numberTag = \"[object Number]\";\nfunction isNumber(value) {\n return typeof value == \"number\" || isObjectLike$2(value) && baseGetTag$1(value) == numberTag;\n}\nvar isNumber_1 = isNumber;\nvar getNative = _getNative;\nvar defineProperty$2 = function() {\n try {\n var func = getNative(Object, \"defineProperty\");\n func({}, \"\", {});\n return func;\n } catch (e) {\n }\n}();\nvar _defineProperty = defineProperty$2;\nvar defineProperty$1 = _defineProperty;\nfunction baseAssignValue$4(object, key, value) {\n if (key == \"__proto__\" && defineProperty$1) {\n defineProperty$1(object, key, {\n \"configurable\": true,\n \"enumerable\": true,\n \"value\": value,\n \"writable\": true\n });\n } else {\n object[key] = value;\n }\n}\nvar _baseAssignValue = baseAssignValue$4;\nvar baseAssignValue$3 = _baseAssignValue, eq$2 = eq_1;\nvar objectProto$3 = Object.prototype;\nvar hasOwnProperty$3 = objectProto$3.hasOwnProperty;\nfunction assignValue$1(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty$3.call(object, key) && eq$2(objValue, value)) || value === void 0 && !(key in object)) {\n baseAssignValue$3(object, key, value);\n }\n}\nvar _assignValue = assignValue$1;\nvar baseAssignValue$2 = _baseAssignValue, baseForOwn = _baseForOwn, baseIteratee = _baseIteratee;\nfunction mapValues(object, iteratee) {\n var result = {};\n iteratee = baseIteratee(iteratee);\n baseForOwn(object, function(value, key, object2) {\n baseAssignValue$2(result, key, iteratee(value, key, object2));\n });\n return result;\n}\nvar mapValues_1 = mapValues;\nfunction apply$2(func, thisArg, args) {\n switch (args.length) {\n case 0:\n return func.call(thisArg);\n case 1:\n return func.call(thisArg, args[0]);\n case 2:\n return func.call(thisArg, args[0], args[1]);\n case 3:\n return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\nvar _apply = apply$2;\nvar apply$1 = _apply;\nvar nativeMax = Math.max;\nfunction overRest$1(func, start, transform) {\n start = nativeMax(start === void 0 ? func.length - 1 : start, 0);\n return function() {\n var args = arguments, index2 = -1, length = nativeMax(args.length - start, 0), array = Array(length);\n while (++index2 < length) {\n array[index2] = args[start + index2];\n }\n index2 = -1;\n var otherArgs = Array(start + 1);\n while (++index2 < start) {\n otherArgs[index2] = args[index2];\n }\n otherArgs[start] = transform(array);\n return apply$1(func, this, otherArgs);\n };\n}\nvar _overRest = overRest$1;\nfunction constant$1(value) {\n return function() {\n return value;\n };\n}\nvar constant_1 = constant$1;\nvar constant = constant_1, defineProperty = _defineProperty, identity$1 = identity_1;\nvar baseSetToString$1 = !defineProperty ? identity$1 : function(func, string) {\n return defineProperty(func, \"toString\", {\n \"configurable\": true,\n \"enumerable\": false,\n \"value\": constant(string),\n \"writable\": true\n });\n};\nvar _baseSetToString = baseSetToString$1;\nvar HOT_COUNT = 800, HOT_SPAN = 16;\nvar nativeNow = Date.now;\nfunction shortOut$1(func) {\n var count = 0, lastCalled = 0;\n return function() {\n var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(void 0, arguments);\n };\n}\nvar _shortOut = shortOut$1;\nvar baseSetToString = _baseSetToString, shortOut = _shortOut;\nvar setToString$1 = shortOut(baseSetToString);\nvar _setToString = setToString$1;\nvar identity = identity_1, overRest = _overRest, setToString = _setToString;\nfunction baseRest$3(func, start) {\n return setToString(overRest(func, start, identity), func + \"\");\n}\nvar _baseRest = baseRest$3;\nfunction nativeKeysIn$1(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\nvar _nativeKeysIn = nativeKeysIn$1;\nvar isObject$5 = isObject_1, isPrototype$1 = _isPrototype, nativeKeysIn = _nativeKeysIn;\nvar objectProto$2 = Object.prototype;\nvar hasOwnProperty$2 = objectProto$2.hasOwnProperty;\nfunction baseKeysIn$1(object) {\n if (!isObject$5(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype$1(object), result = [];\n for (var key in object) {\n if (!(key == \"constructor\" && (isProto || !hasOwnProperty$2.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\nvar _baseKeysIn = baseKeysIn$1;\nvar arrayLikeKeys = _arrayLikeKeys, baseKeysIn = _baseKeysIn, isArrayLike$1 = isArrayLike_1;\nfunction keysIn$3(object) {\n return isArrayLike$1(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\nvar keysIn_1 = keysIn$3;\nvar baseRest$2 = _baseRest, eq$1 = eq_1, isIterateeCall$1 = _isIterateeCall, keysIn$2 = keysIn_1;\nvar objectProto$1 = Object.prototype;\nvar hasOwnProperty$1 = objectProto$1.hasOwnProperty;\nvar defaults = baseRest$2(function(object, sources) {\n object = Object(object);\n var index2 = -1;\n var length = sources.length;\n var guard = length > 2 ? sources[2] : void 0;\n if (guard && isIterateeCall$1(sources[0], sources[1], guard)) {\n length = 1;\n }\n while (++index2 < length) {\n var source = sources[index2];\n var props = keysIn$2(source);\n var propsIndex = -1;\n var propsLength = props.length;\n while (++propsIndex < propsLength) {\n var key = props[propsIndex];\n var value = object[key];\n if (value === void 0 || eq$1(value, objectProto$1[key]) && !hasOwnProperty$1.call(object, key)) {\n object[key] = source[key];\n }\n }\n }\n return object;\n});\nvar defaults_1 = defaults;\nvar baseAssignValue$1 = _baseAssignValue, eq = eq_1;\nfunction assignMergeValue$2(object, key, value) {\n if (value !== void 0 && !eq(object[key], value) || value === void 0 && !(key in object)) {\n baseAssignValue$1(object, key, value);\n }\n}\nvar _assignMergeValue = assignMergeValue$2;\nvar _cloneBufferExports = {};\nvar _cloneBuffer = {\n get exports() {\n return _cloneBufferExports;\n },\n set exports(v) {\n _cloneBufferExports = v;\n }\n};\n(function(module, exports) {\n var root2 = _root;\n var freeExports = exports && !exports.nodeType && exports;\n var freeModule = freeExports && true && module && !module.nodeType && module;\n var moduleExports = freeModule && freeModule.exports === freeExports;\n var Buffer2 = moduleExports ? root2.Buffer : void 0, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0;\n function cloneBuffer2(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n buffer.copy(result);\n return result;\n }\n module.exports = cloneBuffer2;\n})(_cloneBuffer, _cloneBufferExports);\nvar Uint8Array2 = _Uint8Array;\nfunction cloneArrayBuffer$1(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array2(result).set(new Uint8Array2(arrayBuffer));\n return result;\n}\nvar _cloneArrayBuffer = cloneArrayBuffer$1;\nvar cloneArrayBuffer = _cloneArrayBuffer;\nfunction cloneTypedArray$1(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\nvar _cloneTypedArray = cloneTypedArray$1;\nfunction copyArray$1(source, array) {\n var index2 = -1, length = source.length;\n array || (array = Array(length));\n while (++index2 < length) {\n array[index2] = source[index2];\n }\n return array;\n}\nvar _copyArray = copyArray$1;\nvar isObject$4 = isObject_1;\nvar objectCreate = Object.create;\nvar baseCreate$1 = function() {\n function object() {\n }\n return function(proto) {\n if (!isObject$4(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object();\n object.prototype = void 0;\n return result;\n };\n}();\nvar _baseCreate = baseCreate$1;\nvar overArg = _overArg;\nvar getPrototype$2 = overArg(Object.getPrototypeOf, Object);\nvar _getPrototype = getPrototype$2;\nvar baseCreate = _baseCreate, getPrototype$1 = _getPrototype, isPrototype = _isPrototype;\nfunction initCloneObject$1(object) {\n return typeof object.constructor == \"function\" && !isPrototype(object) ? baseCreate(getPrototype$1(object)) : {};\n}\nvar _initCloneObject = initCloneObject$1;\nvar isArrayLike = isArrayLike_1, isObjectLike$1 = isObjectLike_1;\nfunction isArrayLikeObject$1(value) {\n return isObjectLike$1(value) && isArrayLike(value);\n}\nvar isArrayLikeObject_1 = isArrayLikeObject$1;\nvar baseGetTag = _baseGetTag, getPrototype = _getPrototype, isObjectLike = isObjectLike_1;\nvar objectTag = \"[object Object]\";\nvar funcProto = Function.prototype, objectProto = Object.prototype;\nvar funcToString = funcProto.toString;\nvar hasOwnProperty = objectProto.hasOwnProperty;\nvar objectCtorString = funcToString.call(Object);\nfunction isPlainObject$1(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, \"constructor\") && proto.constructor;\n return typeof Ctor == \"function\" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;\n}\nvar isPlainObject_1 = isPlainObject$1;\nfunction safeGet$2(object, key) {\n if (key === \"constructor\" && typeof object[key] === \"function\") {\n return;\n }\n if (key == \"__proto__\") {\n return;\n }\n return object[key];\n}\nvar _safeGet = safeGet$2;\nvar assignValue = _assignValue, baseAssignValue = _baseAssignValue;\nfunction copyObject$1(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n var index2 = -1, length = props.length;\n while (++index2 < length) {\n var key = props[index2];\n var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;\n if (newValue === void 0) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\nvar _copyObject = copyObject$1;\nvar copyObject = _copyObject, keysIn$1 = keysIn_1;\nfunction toPlainObject$1(value) {\n return copyObject(value, keysIn$1(value));\n}\nvar toPlainObject_1 = toPlainObject$1;\nvar assignMergeValue$1 = _assignMergeValue, cloneBuffer = _cloneBufferExports, cloneTypedArray = _cloneTypedArray, copyArray = _copyArray, initCloneObject = _initCloneObject, isArguments = isArguments_1, isArray$1 = isArray_1, isArrayLikeObject = isArrayLikeObject_1, isBuffer = isBufferExports, isFunction = isFunction_1, isObject$3 = isObject_1, isPlainObject = isPlainObject_1, isTypedArray = isTypedArray_1, safeGet$1 = _safeGet, toPlainObject = toPlainObject_1;\nfunction baseMergeDeep$1(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet$1(object, key), srcValue = safeGet$1(source, key), stacked = stack.get(srcValue);\n if (stacked) {\n assignMergeValue$1(object, key, stacked);\n return;\n }\n var newValue = customizer ? customizer(objValue, srcValue, key + \"\", object, source, stack) : void 0;\n var isCommon = newValue === void 0;\n if (isCommon) {\n var isArr = isArray$1(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray$1(objValue)) {\n newValue = objValue;\n } else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n } else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n } else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n } else {\n newValue = [];\n }\n } else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n } else if (!isObject$3(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n } else {\n isCommon = false;\n }\n }\n if (isCommon) {\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack[\"delete\"](srcValue);\n }\n assignMergeValue$1(object, key, newValue);\n}\nvar _baseMergeDeep = baseMergeDeep$1;\nvar Stack = _Stack, assignMergeValue = _assignMergeValue, baseFor = _baseFor, baseMergeDeep = _baseMergeDeep, isObject$2 = isObject_1, keysIn = keysIn_1, safeGet = _safeGet;\nfunction baseMerge$2(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack());\n if (isObject$2(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge$2, customizer, stack);\n } else {\n var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + \"\", object, source, stack) : void 0;\n if (newValue === void 0) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n}\nvar _baseMerge = baseMerge$2;\nvar baseMerge$1 = _baseMerge, isObject$1 = isObject_1;\nfunction customDefaultsMerge$1(objValue, srcValue, key, object, source, stack) {\n if (isObject$1(objValue) && isObject$1(srcValue)) {\n stack.set(srcValue, objValue);\n baseMerge$1(objValue, srcValue, void 0, customDefaultsMerge$1, stack);\n stack[\"delete\"](srcValue);\n }\n return objValue;\n}\nvar _customDefaultsMerge = customDefaultsMerge$1;\nvar baseRest$1 = _baseRest, isIterateeCall = _isIterateeCall;\nfunction createAssigner$1(assigner) {\n return baseRest$1(function(object, sources) {\n var index2 = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;\n customizer = assigner.length > 3 && typeof customizer == \"function\" ? (length--, customizer) : void 0;\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? void 0 : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index2 < length) {\n var source = sources[index2];\n if (source) {\n assigner(object, source, index2, customizer);\n }\n }\n return object;\n });\n}\nvar _createAssigner = createAssigner$1;\nvar baseMerge = _baseMerge, createAssigner = _createAssigner;\nvar mergeWith$1 = createAssigner(function(object, source, srcIndex, customizer) {\n baseMerge(object, source, srcIndex, customizer);\n});\nvar mergeWith_1 = mergeWith$1;\nvar apply = _apply, baseRest = _baseRest, customDefaultsMerge = _customDefaultsMerge, mergeWith = mergeWith_1;\nvar defaultsDeep = baseRest(function(args) {\n args.push(void 0, customDefaultsMerge);\n return apply(mergeWith, void 0, args);\n});\nvar defaultsDeep_1 = defaultsDeep;\nfunction head(array) {\n return array && array.length ? array[0] : void 0;\n}\nvar head_1 = head;\nfunction last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : void 0;\n}\nvar last_1 = last;\nconst getType = (value) => Object.prototype.toString.call(value).slice(8, -1);\nconst isDate = (value) => isDate_1(value) && !isNaN(value.getTime());\nconst isObject = (value) => getType(value) === \"Object\";\nconst has = has_1;\nconst hasAny = (obj, props) => some_1(props, (p) => has_1(obj, p));\nconst pad = (val, len, char = \"0\") => {\n val = val !== null && val !== void 0 ? String(val) : \"\";\n len = len || 2;\n while (val.length < len) {\n val = `${char}${val}`;\n }\n return val;\n};\nconst isArray = (val) => Array.isArray(val);\nconst arrayHasItems = (array) => isArray(array) && array.length > 0;\nconst resolveEl = (target) => {\n if (target == null)\n return null;\n if (document && isString_1(target))\n return document.querySelector(target);\n return target.$el ?? target;\n};\nconst off = (element, event, handler, opts = void 0) => {\n element.removeEventListener(event, handler, opts);\n};\nconst on = (element, event, handler, opts = void 0) => {\n element.addEventListener(event, handler, opts);\n return () => off(element, event, handler, opts);\n};\nconst elementContains = (element, child) => !!element && !!child && (element === child || element.contains(child));\nconst onSpaceOrEnter = (event, handler) => {\n if (event.key === \" \" || event.key === \"Enter\") {\n handler(event);\n event.preventDefault();\n }\n};\nconst omit = (obj, ...keys2) => {\n const ret = {};\n let key;\n for (key in obj) {\n if (!keys2.includes(key)) {\n ret[key] = obj[key];\n }\n }\n return ret;\n};\nconst pick = (obj, keys2) => {\n const ret = {};\n keys2.forEach((key) => {\n if (key in obj)\n ret[key] = obj[key];\n });\n return ret;\n};\nfunction clamp(num, min, max) {\n return Math.min(Math.max(num, min), max);\n}\nvar toIntegerExports = {};\nvar toInteger$2 = {\n get exports() {\n return toIntegerExports;\n },\n set exports(v) {\n toIntegerExports = v;\n }\n};\n(function(module, exports) {\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.default = toInteger2;\n function toInteger2(dirtyNumber) {\n if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {\n return NaN;\n }\n var number = Number(dirtyNumber);\n if (isNaN(number)) {\n return number;\n }\n return number < 0 ? Math.ceil(number) : Math.floor(number);\n }\n module.exports = exports.default;\n})(toInteger$2, toIntegerExports);\nconst toInteger$1 = /* @__PURE__ */ getDefaultExportFromCjs(toIntegerExports);\nvar getTimezoneOffsetInMillisecondsExports = {};\nvar getTimezoneOffsetInMilliseconds$2 = {\n get exports() {\n return getTimezoneOffsetInMillisecondsExports;\n },\n set exports(v) {\n getTimezoneOffsetInMillisecondsExports = v;\n }\n};\n(function(module, exports) {\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.default = getTimezoneOffsetInMilliseconds2;\n function getTimezoneOffsetInMilliseconds2(date) {\n var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));\n utcDate.setUTCFullYear(date.getFullYear());\n return date.getTime() - utcDate.getTime();\n }\n module.exports = exports.default;\n})(getTimezoneOffsetInMilliseconds$2, getTimezoneOffsetInMillisecondsExports);\nconst getTimezoneOffsetInMilliseconds$1 = /* @__PURE__ */ getDefaultExportFromCjs(getTimezoneOffsetInMillisecondsExports);\nfunction tzTokenizeDate(date, timeZone) {\n var dtf = getDateTimeFormat(timeZone);\n return dtf.formatToParts ? partsOffset(dtf, date) : hackyOffset(dtf, date);\n}\nvar typeToPos = {\n year: 0,\n month: 1,\n day: 2,\n hour: 3,\n minute: 4,\n second: 5\n};\nfunction partsOffset(dtf, date) {\n try {\n var formatted = dtf.formatToParts(date);\n var filled = [];\n for (var i = 0; i < formatted.length; i++) {\n var pos = typeToPos[formatted[i].type];\n if (pos >= 0) {\n filled[pos] = parseInt(formatted[i].value, 10);\n }\n }\n return filled;\n } catch (error) {\n if (error instanceof RangeError) {\n return [NaN];\n }\n throw error;\n }\n}\nfunction hackyOffset(dtf, date) {\n var formatted = dtf.format(date).replace(/\\u200E/g, \"\");\n var parsed = /(\\d+)\\/(\\d+)\\/(\\d+),? (\\d+):(\\d+):(\\d+)/.exec(formatted);\n return [parsed[3], parsed[1], parsed[2], parsed[4], parsed[5], parsed[6]];\n}\nvar dtfCache = {};\nfunction getDateTimeFormat(timeZone) {\n if (!dtfCache[timeZone]) {\n var testDateFormatted = new Intl.DateTimeFormat(\"en-US\", {\n hour12: false,\n timeZone: \"America/New_York\",\n year: \"numeric\",\n month: \"numeric\",\n day: \"2-digit\",\n hour: \"2-digit\",\n minute: \"2-digit\",\n second: \"2-digit\"\n }).format(/* @__PURE__ */ new Date(\"2014-06-25T04:00:00.123Z\"));\n var hourCycleSupported = testDateFormatted === \"06/25/2014, 00:00:00\" || testDateFormatted === \"‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00\";\n dtfCache[timeZone] = hourCycleSupported ? new Intl.DateTimeFormat(\"en-US\", {\n hour12: false,\n timeZone,\n year: \"numeric\",\n month: \"numeric\",\n day: \"2-digit\",\n hour: \"2-digit\",\n minute: \"2-digit\",\n second: \"2-digit\"\n }) : new Intl.DateTimeFormat(\"en-US\", {\n hourCycle: \"h23\",\n timeZone,\n year: \"numeric\",\n month: \"numeric\",\n day: \"2-digit\",\n hour: \"2-digit\",\n minute: \"2-digit\",\n second: \"2-digit\"\n });\n }\n return dtfCache[timeZone];\n}\nfunction newDateUTC(fullYear, month, day, hour, minute, second, millisecond) {\n var utcDate = /* @__PURE__ */ new Date(0);\n utcDate.setUTCFullYear(fullYear, month, day);\n utcDate.setUTCHours(hour, minute, second, millisecond);\n return utcDate;\n}\nvar MILLISECONDS_IN_HOUR$1 = 36e5;\nvar MILLISECONDS_IN_MINUTE$1 = 6e4;\nvar patterns$1 = {\n timezone: /([Z+-].*)$/,\n timezoneZ: /^(Z)$/,\n timezoneHH: /^([+-]\\d{2})$/,\n timezoneHHMM: /^([+-]\\d{2}):?(\\d{2})$/\n};\nfunction tzParseTimezone(timezoneString, date, isUtcDate) {\n var token2;\n var absoluteOffset;\n if (!timezoneString) {\n return 0;\n }\n token2 = patterns$1.timezoneZ.exec(timezoneString);\n if (token2) {\n return 0;\n }\n var hours2;\n token2 = patterns$1.timezoneHH.exec(timezoneString);\n if (token2) {\n hours2 = parseInt(token2[1], 10);\n if (!validateTimezone(hours2)) {\n return NaN;\n }\n return -(hours2 * MILLISECONDS_IN_HOUR$1);\n }\n token2 = patterns$1.timezoneHHMM.exec(timezoneString);\n if (token2) {\n hours2 = parseInt(token2[1], 10);\n var minutes = parseInt(token2[2], 10);\n if (!validateTimezone(hours2, minutes)) {\n return NaN;\n }\n absoluteOffset = Math.abs(hours2) * MILLISECONDS_IN_HOUR$1 + minutes * MILLISECONDS_IN_MINUTE$1;\n return hours2 > 0 ? -absoluteOffset : absoluteOffset;\n }\n if (isValidTimezoneIANAString(timezoneString)) {\n date = new Date(date || Date.now());\n var utcDate = isUtcDate ? date : toUtcDate(date);\n var offset = calcOffset(utcDate, timezoneString);\n var fixedOffset = isUtcDate ? offset : fixOffset(date, offset, timezoneString);\n return -fixedOffset;\n }\n return NaN;\n}\nfunction toUtcDate(date) {\n return newDateUTC(\n date.getFullYear(),\n date.getMonth(),\n date.getDate(),\n date.getHours(),\n date.getMinutes(),\n date.getSeconds(),\n date.getMilliseconds()\n );\n}\nfunction calcOffset(date, timezoneString) {\n var tokens = tzTokenizeDate(date, timezoneString);\n var asUTC = newDateUTC(\n tokens[0],\n tokens[1] - 1,\n tokens[2],\n tokens[3] % 24,\n tokens[4],\n tokens[5],\n 0\n ).getTime();\n var asTS = date.getTime();\n var over = asTS % 1e3;\n asTS -= over >= 0 ? over : 1e3 + over;\n return asUTC - asTS;\n}\nfunction fixOffset(date, offset, timezoneString) {\n var localTS = date.getTime();\n var utcGuess = localTS - offset;\n var o2 = calcOffset(new Date(utcGuess), timezoneString);\n if (offset === o2) {\n return offset;\n }\n utcGuess -= o2 - offset;\n var o3 = calcOffset(new Date(utcGuess), timezoneString);\n if (o2 === o3) {\n return o2;\n }\n return Math.max(o2, o3);\n}\nfunction validateTimezone(hours2, minutes) {\n return -23 <= hours2 && hours2 <= 23 && (minutes == null || 0 <= minutes && minutes <= 59);\n}\nvar validIANATimezoneCache = {};\nfunction isValidTimezoneIANAString(timeZoneString) {\n if (validIANATimezoneCache[timeZoneString])\n return true;\n try {\n new Intl.DateTimeFormat(void 0, { timeZone: timeZoneString });\n validIANATimezoneCache[timeZoneString] = true;\n return true;\n } catch (error) {\n return false;\n }\n}\nvar tzPattern = /(Z|[+-]\\d{2}(?::?\\d{2})?| UTC| [a-zA-Z]+\\/[a-zA-Z_]+(?:\\/[a-zA-Z_]+)?)$/;\nconst tzPattern$1 = tzPattern;\nvar MILLISECONDS_IN_HOUR = 36e5;\nvar MILLISECONDS_IN_MINUTE = 6e4;\nvar DEFAULT_ADDITIONAL_DIGITS = 2;\nvar patterns = {\n dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,\n datePattern: /^([0-9W+-]+)(.*)/,\n plainTime: /:/,\n // year tokens\n YY: /^(\\d{2})$/,\n YYY: [\n /^([+-]\\d{2})$/,\n // 0 additional digits\n /^([+-]\\d{3})$/,\n // 1 additional digit\n /^([+-]\\d{4})$/\n // 2 additional digits\n ],\n YYYY: /^(\\d{4})/,\n YYYYY: [\n /^([+-]\\d{4})/,\n // 0 additional digits\n /^([+-]\\d{5})/,\n // 1 additional digit\n /^([+-]\\d{6})/\n // 2 additional digits\n ],\n // date tokens\n MM: /^-(\\d{2})$/,\n DDD: /^-?(\\d{3})$/,\n MMDD: /^-?(\\d{2})-?(\\d{2})$/,\n Www: /^-?W(\\d{2})$/,\n WwwD: /^-?W(\\d{2})-?(\\d{1})$/,\n HH: /^(\\d{2}([.,]\\d*)?)$/,\n HHMM: /^(\\d{2}):?(\\d{2}([.,]\\d*)?)$/,\n HHMMSS: /^(\\d{2}):?(\\d{2}):?(\\d{2}([.,]\\d*)?)$/,\n // time zone tokens (to identify the presence of a tz)\n timeZone: tzPattern$1\n};\nfunction toDate$1(argument, dirtyOptions) {\n if (arguments.length < 1) {\n throw new TypeError(\"1 argument required, but only \" + arguments.length + \" present\");\n }\n if (argument === null) {\n return /* @__PURE__ */ new Date(NaN);\n }\n var options = dirtyOptions || {};\n var additionalDigits = options.additionalDigits == null ? DEFAULT_ADDITIONAL_DIGITS : toInteger$1(options.additionalDigits);\n if (additionalDigits !== 2 && additionalDigits !== 1 && additionalDigits !== 0) {\n throw new RangeError(\"additionalDigits must be 0, 1 or 2\");\n }\n if (argument instanceof Date || typeof argument === \"object\" && Object.prototype.toString.call(argument) === \"[object Date]\") {\n return new Date(argument.getTime());\n } else if (typeof argument === \"number\" || Object.prototype.toString.call(argument) === \"[object Number]\") {\n return new Date(argument);\n } else if (!(typeof argument === \"string\" || Object.prototype.toString.call(argument) === \"[object String]\")) {\n return /* @__PURE__ */ new Date(NaN);\n }\n var dateStrings = splitDateString(argument);\n var parseYearResult = parseYear(dateStrings.date, additionalDigits);\n var year = parseYearResult.year;\n var restDateString = parseYearResult.restDateString;\n var date = parseDate$1(restDateString, year);\n if (isNaN(date)) {\n return /* @__PURE__ */ new Date(NaN);\n }\n if (date) {\n var timestamp = date.getTime();\n var time = 0;\n var offset;\n if (dateStrings.time) {\n time = parseTime(dateStrings.time);\n if (isNaN(time)) {\n return /* @__PURE__ */ new Date(NaN);\n }\n }\n if (dateStrings.timeZone || options.timeZone) {\n offset = tzParseTimezone(dateStrings.timeZone || options.timeZone, new Date(timestamp + time));\n if (isNaN(offset)) {\n return /* @__PURE__ */ new Date(NaN);\n }\n } else {\n offset = getTimezoneOffsetInMilliseconds$1(new Date(timestamp + time));\n offset = getTimezoneOffsetInMilliseconds$1(new Date(timestamp + time + offset));\n }\n return new Date(timestamp + time + offset);\n } else {\n return /* @__PURE__ */ new Date(NaN);\n }\n}\nfunction splitDateString(dateString) {\n var dateStrings = {};\n var parts = patterns.dateTimePattern.exec(dateString);\n var timeString;\n if (!parts) {\n parts = patterns.datePattern.exec(dateString);\n if (parts) {\n dateStrings.date = parts[1];\n timeString = parts[2];\n } else {\n dateStrings.date = null;\n timeString = dateString;\n }\n } else {\n dateStrings.date = parts[1];\n timeString = parts[3];\n }\n if (timeString) {\n var token2 = patterns.timeZone.exec(timeString);\n if (token2) {\n dateStrings.time = timeString.replace(token2[1], \"\");\n dateStrings.timeZone = token2[1].trim();\n } else {\n dateStrings.time = timeString;\n }\n }\n return dateStrings;\n}\nfunction parseYear(dateString, additionalDigits) {\n var patternYYY = patterns.YYY[additionalDigits];\n var patternYYYYY = patterns.YYYYY[additionalDigits];\n var token2;\n token2 = patterns.YYYY.exec(dateString) || patternYYYYY.exec(dateString);\n if (token2) {\n var yearString = token2[1];\n return {\n year: parseInt(yearString, 10),\n restDateString: dateString.slice(yearString.length)\n };\n }\n token2 = patterns.YY.exec(dateString) || patternYYY.exec(dateString);\n if (token2) {\n var centuryString = token2[1];\n return {\n year: parseInt(centuryString, 10) * 100,\n restDateString: dateString.slice(centuryString.length)\n };\n }\n return {\n year: null\n };\n}\nfunction parseDate$1(dateString, year) {\n if (year === null) {\n return null;\n }\n var token2;\n var date;\n var month;\n var week;\n if (dateString.length === 0) {\n date = /* @__PURE__ */ new Date(0);\n date.setUTCFullYear(year);\n return date;\n }\n token2 = patterns.MM.exec(dateString);\n if (token2) {\n date = /* @__PURE__ */ new Date(0);\n month = parseInt(token2[1], 10) - 1;\n if (!validateDate(year, month)) {\n return /* @__PURE__ */ new Date(NaN);\n }\n date.setUTCFullYear(year, month);\n return date;\n }\n token2 = patterns.DDD.exec(dateString);\n if (token2) {\n date = /* @__PURE__ */ new Date(0);\n var dayOfYear = parseInt(token2[1], 10);\n if (!validateDayOfYearDate(year, dayOfYear)) {\n return /* @__PURE__ */ new Date(NaN);\n }\n date.setUTCFullYear(year, 0, dayOfYear);\n return date;\n }\n token2 = patterns.MMDD.exec(dateString);\n if (token2) {\n date = /* @__PURE__ */ new Date(0);\n month = parseInt(token2[1], 10) - 1;\n var day = parseInt(token2[2], 10);\n if (!validateDate(year, month, day)) {\n return /* @__PURE__ */ new Date(NaN);\n }\n date.setUTCFullYear(year, month, day);\n return date;\n }\n token2 = patterns.Www.exec(dateString);\n if (token2) {\n week = parseInt(token2[1], 10) - 1;\n if (!validateWeekDate(year, week)) {\n return /* @__PURE__ */ new Date(NaN);\n }\n return dayOfISOWeekYear(year, week);\n }\n token2 = patterns.WwwD.exec(dateString);\n if (token2) {\n week = parseInt(token2[1], 10) - 1;\n var dayOfWeek = parseInt(token2[2], 10) - 1;\n if (!validateWeekDate(year, week, dayOfWeek)) {\n return /* @__PURE__ */ new Date(NaN);\n }\n return dayOfISOWeekYear(year, week, dayOfWeek);\n }\n return null;\n}\nfunction parseTime(timeString) {\n var token2;\n var hours2;\n var minutes;\n token2 = patterns.HH.exec(timeString);\n if (token2) {\n hours2 = parseFloat(token2[1].replace(\",\", \".\"));\n if (!validateTime(hours2)) {\n return NaN;\n }\n return hours2 % 24 * MILLISECONDS_IN_HOUR;\n }\n token2 = patterns.HHMM.exec(timeString);\n if (token2) {\n hours2 = parseInt(token2[1], 10);\n minutes = parseFloat(token2[2].replace(\",\", \".\"));\n if (!validateTime(hours2, minutes)) {\n return NaN;\n }\n return hours2 % 24 * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE;\n }\n token2 = patterns.HHMMSS.exec(timeString);\n if (token2) {\n hours2 = parseInt(token2[1], 10);\n minutes = parseInt(token2[2], 10);\n var seconds = parseFloat(token2[3].replace(\",\", \".\"));\n if (!validateTime(hours2, minutes, seconds)) {\n return NaN;\n }\n return hours2 % 24 * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE + seconds * 1e3;\n }\n return null;\n}\nfunction dayOfISOWeekYear(isoWeekYear, week, day) {\n week = week || 0;\n day = day || 0;\n var date = /* @__PURE__ */ new Date(0);\n date.setUTCFullYear(isoWeekYear, 0, 4);\n var fourthOfJanuaryDay = date.getUTCDay() || 7;\n var diff = week * 7 + day + 1 - fourthOfJanuaryDay;\n date.setUTCDate(date.getUTCDate() + diff);\n return date;\n}\nvar DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\nvar DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\nfunction isLeapYearIndex(year) {\n return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;\n}\nfunction validateDate(year, month, date) {\n if (month < 0 || month > 11) {\n return false;\n }\n if (date != null) {\n if (date < 1) {\n return false;\n }\n var isLeapYear = isLeapYearIndex(year);\n if (isLeapYear && date > DAYS_IN_MONTH_LEAP_YEAR[month]) {\n return false;\n }\n if (!isLeapYear && date > DAYS_IN_MONTH[month]) {\n return false;\n }\n }\n return true;\n}\nfunction validateDayOfYearDate(year, dayOfYear) {\n if (dayOfYear < 1) {\n return false;\n }\n var isLeapYear = isLeapYearIndex(year);\n if (isLeapYear && dayOfYear > 366) {\n return false;\n }\n if (!isLeapYear && dayOfYear > 365) {\n return false;\n }\n return true;\n}\nfunction validateWeekDate(year, week, day) {\n if (week < 0 || week > 52) {\n return false;\n }\n if (day != null && (day < 0 || day > 6)) {\n return false;\n }\n return true;\n}\nfunction validateTime(hours2, minutes, seconds) {\n if (hours2 != null && (hours2 < 0 || hours2 >= 25)) {\n return false;\n }\n if (minutes != null && (minutes < 0 || minutes >= 60)) {\n return false;\n }\n if (seconds != null && (seconds < 0 || seconds >= 60)) {\n return false;\n }\n return true;\n}\nfunction requiredArgs(required, args) {\n if (args.length < required) {\n throw new TypeError(required + \" argument\" + (required > 1 ? \"s\" : \"\") + \" required, but only \" + args.length + \" present\");\n }\n}\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof2(obj2) {\n return typeof obj2;\n };\n } else {\n _typeof = function _typeof2(obj2) {\n return obj2 && typeof Symbol === \"function\" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? \"symbol\" : typeof obj2;\n };\n }\n return _typeof(obj);\n}\nfunction toDate(argument) {\n requiredArgs(1, arguments);\n var argStr = Object.prototype.toString.call(argument);\n if (argument instanceof Date || _typeof(argument) === \"object\" && argStr === \"[object Date]\") {\n return new Date(argument.getTime());\n } else if (typeof argument === \"number\" || argStr === \"[object Number]\") {\n return new Date(argument);\n } else {\n if ((typeof argument === \"string\" || argStr === \"[object String]\") && typeof console !== \"undefined\") {\n console.warn(\"Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments\");\n console.warn(new Error().stack);\n }\n return /* @__PURE__ */ new Date(NaN);\n }\n}\nfunction toInteger(dirtyNumber) {\n if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {\n return NaN;\n }\n var number = Number(dirtyNumber);\n if (isNaN(number)) {\n return number;\n }\n return number < 0 ? Math.ceil(number) : Math.floor(number);\n}\nvar defaultOptions = {};\nfunction getDefaultOptions() {\n return defaultOptions;\n}\nfunction startOfWeek$1(dirtyDate, options) {\n var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\n requiredArgs(1, arguments);\n var defaultOptions2 = getDefaultOptions();\n var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions2.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions2.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0);\n if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {\n throw new RangeError(\"weekStartsOn must be between 0 and 6 inclusively\");\n }\n var date = toDate(dirtyDate);\n var day = date.getDay();\n var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;\n date.setDate(date.getDate() - diff);\n date.setHours(0, 0, 0, 0);\n return date;\n}\nfunction getTimezoneOffsetInMilliseconds(date) {\n var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));\n utcDate.setUTCFullYear(date.getFullYear());\n return date.getTime() - utcDate.getTime();\n}\nvar MILLISECONDS_IN_WEEK$2 = 6048e5;\nfunction differenceInCalendarWeeks(dirtyDateLeft, dirtyDateRight, options) {\n requiredArgs(2, arguments);\n var startOfWeekLeft = startOfWeek$1(dirtyDateLeft, options);\n var startOfWeekRight = startOfWeek$1(dirtyDateRight, options);\n var timestampLeft = startOfWeekLeft.getTime() - getTimezoneOffsetInMilliseconds(startOfWeekLeft);\n var timestampRight = startOfWeekRight.getTime() - getTimezoneOffsetInMilliseconds(startOfWeekRight);\n return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_WEEK$2);\n}\nfunction lastDayOfMonth(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var month = date.getMonth();\n date.setFullYear(date.getFullYear(), month + 1, 0);\n date.setHours(0, 0, 0, 0);\n return date;\n}\nfunction startOfMonth(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n date.setDate(1);\n date.setHours(0, 0, 0, 0);\n return date;\n}\nfunction getWeeksInMonth(date, options) {\n requiredArgs(1, arguments);\n return differenceInCalendarWeeks(lastDayOfMonth(date), startOfMonth(date), options) + 1;\n}\nfunction getWeekYear(dirtyDate, options) {\n var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var year = date.getFullYear();\n var defaultOptions2 = getDefaultOptions();\n var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions2.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);\n if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {\n throw new RangeError(\"firstWeekContainsDate must be between 1 and 7 inclusively\");\n }\n var firstWeekOfNextYear = /* @__PURE__ */ new Date(0);\n firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);\n firstWeekOfNextYear.setHours(0, 0, 0, 0);\n var startOfNextYear = startOfWeek$1(firstWeekOfNextYear, options);\n var firstWeekOfThisYear = /* @__PURE__ */ new Date(0);\n firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);\n firstWeekOfThisYear.setHours(0, 0, 0, 0);\n var startOfThisYear = startOfWeek$1(firstWeekOfThisYear, options);\n if (date.getTime() >= startOfNextYear.getTime()) {\n return year + 1;\n } else if (date.getTime() >= startOfThisYear.getTime()) {\n return year;\n } else {\n return year - 1;\n }\n}\nfunction startOfWeekYear(dirtyDate, options) {\n var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;\n requiredArgs(1, arguments);\n var defaultOptions2 = getDefaultOptions();\n var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions2.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);\n var year = getWeekYear(dirtyDate, options);\n var firstWeek = /* @__PURE__ */ new Date(0);\n firstWeek.setFullYear(year, 0, firstWeekContainsDate);\n firstWeek.setHours(0, 0, 0, 0);\n var date = startOfWeek$1(firstWeek, options);\n return date;\n}\nvar MILLISECONDS_IN_WEEK$1 = 6048e5;\nfunction getWeek(dirtyDate, options) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var diff = startOfWeek$1(date, options).getTime() - startOfWeekYear(date, options).getTime();\n return Math.round(diff / MILLISECONDS_IN_WEEK$1) + 1;\n}\nfunction startOfISOWeek(dirtyDate) {\n requiredArgs(1, arguments);\n return startOfWeek$1(dirtyDate, {\n weekStartsOn: 1\n });\n}\nfunction getISOWeekYear(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var year = date.getFullYear();\n var fourthOfJanuaryOfNextYear = /* @__PURE__ */ new Date(0);\n fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);\n fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);\n var startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear);\n var fourthOfJanuaryOfThisYear = /* @__PURE__ */ new Date(0);\n fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);\n fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);\n var startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear);\n if (date.getTime() >= startOfNextYear.getTime()) {\n return year + 1;\n } else if (date.getTime() >= startOfThisYear.getTime()) {\n return year;\n } else {\n return year - 1;\n }\n}\nfunction startOfISOWeekYear(dirtyDate) {\n requiredArgs(1, arguments);\n var year = getISOWeekYear(dirtyDate);\n var fourthOfJanuary = /* @__PURE__ */ new Date(0);\n fourthOfJanuary.setFullYear(year, 0, 4);\n fourthOfJanuary.setHours(0, 0, 0, 0);\n var date = startOfISOWeek(fourthOfJanuary);\n return date;\n}\nvar MILLISECONDS_IN_WEEK = 6048e5;\nfunction getISOWeek(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var diff = startOfISOWeek(date).getTime() - startOfISOWeekYear(date).getTime();\n return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;\n}\nfunction addDays(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var amount = toInteger(dirtyAmount);\n if (isNaN(amount)) {\n return /* @__PURE__ */ new Date(NaN);\n }\n if (!amount) {\n return date;\n }\n date.setDate(date.getDate() + amount);\n return date;\n}\nfunction addMonths(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var amount = toInteger(dirtyAmount);\n if (isNaN(amount)) {\n return /* @__PURE__ */ new Date(NaN);\n }\n if (!amount) {\n return date;\n }\n var dayOfMonth = date.getDate();\n var endOfDesiredMonth = new Date(date.getTime());\n endOfDesiredMonth.setMonth(date.getMonth() + amount + 1, 0);\n var daysInMonth = endOfDesiredMonth.getDate();\n if (dayOfMonth >= daysInMonth) {\n return endOfDesiredMonth;\n } else {\n date.setFullYear(endOfDesiredMonth.getFullYear(), endOfDesiredMonth.getMonth(), dayOfMonth);\n return date;\n }\n}\nfunction addYears(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var amount = toInteger(dirtyAmount);\n return addMonths(dirtyDate, amount * 12);\n}\nconst viewAddressKeys = {\n daily: [\"year\", \"month\", \"day\"],\n weekly: [\"year\", \"month\", \"week\"],\n monthly: [\"year\", \"month\"]\n};\nfunction getDays({\n monthComps,\n prevMonthComps,\n nextMonthComps\n}, locale) {\n const days = [];\n const {\n firstDayOfWeek,\n firstWeekday,\n isoWeeknumbers,\n weeknumbers,\n numDays,\n numWeeks\n } = monthComps;\n const prevMonthDaysToShow = firstWeekday + (firstWeekday < firstDayOfWeek ? daysInWeek : 0) - firstDayOfWeek;\n let prevMonth = true;\n let thisMonth = false;\n let nextMonth = false;\n let position = 0;\n const formatter = new Intl.DateTimeFormat(locale.id, {\n weekday: \"long\",\n year: \"numeric\",\n month: \"short\",\n day: \"numeric\"\n });\n let day = prevMonthComps.numDays - prevMonthDaysToShow + 1;\n let dayFromEnd = prevMonthComps.numDays - day + 1;\n let weekdayOrdinal = Math.floor((day - 1) / daysInWeek + 1);\n let weekdayOrdinalFromEnd = 1;\n let week = prevMonthComps.numWeeks;\n let weekFromEnd = 1;\n let month = prevMonthComps.month;\n let year = prevMonthComps.year;\n const today = /* @__PURE__ */ new Date();\n const todayDay = today.getDate();\n const todayMonth = today.getMonth() + 1;\n const todayYear = today.getFullYear();\n for (let w = 1; w <= weeksInMonth; w++) {\n for (let i = 1, weekday = firstDayOfWeek; i <= daysInWeek; i++, weekday += weekday === daysInWeek ? 1 - daysInWeek : 1) {\n if (prevMonth && weekday === firstWeekday) {\n day = 1;\n dayFromEnd = monthComps.numDays;\n weekdayOrdinal = Math.floor((day - 1) / daysInWeek + 1);\n weekdayOrdinalFromEnd = Math.floor((numDays - day) / daysInWeek + 1);\n week = 1;\n weekFromEnd = numWeeks;\n month = monthComps.month;\n year = monthComps.year;\n prevMonth = false;\n thisMonth = true;\n }\n const startDate = locale.getDateFromParams(year, month, day, 0, 0, 0, 0);\n const noonDate = locale.getDateFromParams(year, month, day, 12, 0, 0, 0);\n const endDate = locale.getDateFromParams(\n year,\n month,\n day,\n 23,\n 59,\n 59,\n 999\n );\n const date = startDate;\n const id = `${pad(year, 4)}-${pad(month, 2)}-${pad(day, 2)}`;\n const weekdayPosition = i;\n const weekdayPositionFromEnd = daysInWeek - i;\n const weeknumber = weeknumbers[w - 1];\n const isoWeeknumber = isoWeeknumbers[w - 1];\n const isToday = day === todayDay && month === todayMonth && year === todayYear;\n const isFirstDay = thisMonth && day === 1;\n const isLastDay = thisMonth && day === numDays;\n const onTop = w === 1;\n const onBottom = w === numWeeks;\n const onLeft = i === 1;\n const onRight = i === daysInWeek;\n const dayIndex = getDayIndex(year, month, day);\n days.push({\n locale,\n id,\n position: ++position,\n label: day.toString(),\n ariaLabel: formatter.format(new Date(year, month - 1, day)),\n day,\n dayFromEnd,\n weekday,\n weekdayPosition,\n weekdayPositionFromEnd,\n weekdayOrdinal,\n weekdayOrdinalFromEnd,\n week,\n weekFromEnd,\n weekPosition: w,\n weeknumber,\n isoWeeknumber,\n month,\n year,\n date,\n startDate,\n endDate,\n noonDate,\n dayIndex,\n isToday,\n isFirstDay,\n isLastDay,\n isDisabled: !thisMonth,\n isFocusable: !thisMonth,\n isFocused: false,\n inMonth: thisMonth,\n inPrevMonth: prevMonth,\n inNextMonth: nextMonth,\n onTop,\n onBottom,\n onLeft,\n onRight,\n classes: [\n `id-${id}`,\n `day-${day}`,\n `day-from-end-${dayFromEnd}`,\n `weekday-${weekday}`,\n `weekday-position-${weekdayPosition}`,\n `weekday-ordinal-${weekdayOrdinal}`,\n `weekday-ordinal-from-end-${weekdayOrdinalFromEnd}`,\n `week-${week}`,\n `week-from-end-${weekFromEnd}`,\n {\n \"is-today\": isToday,\n \"is-first-day\": isFirstDay,\n \"is-last-day\": isLastDay,\n \"in-month\": thisMonth,\n \"in-prev-month\": prevMonth,\n \"in-next-month\": nextMonth,\n \"on-top\": onTop,\n \"on-bottom\": onBottom,\n \"on-left\": onLeft,\n \"on-right\": onRight\n }\n ]\n });\n if (thisMonth && isLastDay) {\n thisMonth = false;\n nextMonth = true;\n day = 1;\n dayFromEnd = numDays;\n weekdayOrdinal = 1;\n weekdayOrdinalFromEnd = Math.floor((numDays - day) / daysInWeek + 1);\n week = 1;\n weekFromEnd = nextMonthComps.numWeeks;\n month = nextMonthComps.month;\n year = nextMonthComps.year;\n } else {\n day++;\n dayFromEnd--;\n weekdayOrdinal = Math.floor((day - 1) / daysInWeek + 1);\n weekdayOrdinalFromEnd = Math.floor((numDays - day) / daysInWeek + 1);\n }\n }\n week++;\n weekFromEnd--;\n }\n return days;\n}\nfunction getWeeks(days, showWeeknumbers, showIsoWeeknumbers, locale) {\n const result = days.reduce((result2, day, i) => {\n const weekIndex = Math.floor(i / 7);\n let week = result2[weekIndex];\n if (!week) {\n week = {\n id: `week-${weekIndex + 1}`,\n title: \"\",\n week: day.week,\n weekPosition: day.weekPosition,\n weeknumber: day.weeknumber,\n isoWeeknumber: day.isoWeeknumber,\n weeknumberDisplay: showWeeknumbers ? day.weeknumber : showIsoWeeknumbers ? day.isoWeeknumber : void 0,\n days: []\n };\n result2[weekIndex] = week;\n }\n week.days.push(day);\n return result2;\n }, Array(days.length / daysInWeek));\n result.forEach((week) => {\n const fromDay = week.days[0];\n const toDay = week.days[week.days.length - 1];\n if (fromDay.month === toDay.month) {\n week.title = `${locale.formatDate(fromDay.date, \"MMMM YYYY\")}`;\n } else if (fromDay.year === toDay.year) {\n week.title = `${locale.formatDate(\n fromDay.date,\n \"MMM\"\n )} - ${locale.formatDate(toDay.date, \"MMM YYYY\")}`;\n } else {\n week.title = `${locale.formatDate(\n fromDay.date,\n \"MMM YYYY\"\n )} - ${locale.formatDate(toDay.date, \"MMM YYYY\")}`;\n }\n });\n return result;\n}\nfunction getWeekdays(week, locale) {\n return week.days.map((day) => ({\n label: locale.formatDate(day.date, locale.masks.weekdays),\n weekday: day.weekday\n }));\n}\nfunction getPageId(month, year) {\n return `${year}.${pad(month, 2)}`;\n}\nfunction getPageAddressForDate(date, view, locale) {\n return pick(\n locale.getDateParts(locale.toDate(date)),\n viewAddressKeys[view]\n );\n}\nfunction addPages({ day, week, month, year }, count, view, locale) {\n if (view === \"daily\" && day) {\n const date = new Date(year, month - 1, day);\n const newDate = addDays(date, count);\n return {\n day: newDate.getDate(),\n month: newDate.getMonth() + 1,\n year: newDate.getFullYear()\n };\n } else if (view === \"weekly\" && week) {\n const comps = locale.getMonthParts(month, year);\n const date = comps.firstDayOfMonth;\n const newDate = addDays(date, (week - 1 + count) * 7);\n const parts = locale.getDateParts(newDate);\n return {\n week: parts.week,\n month: parts.month,\n year: parts.year\n };\n } else {\n const date = new Date(year, month - 1, 1);\n const newDate = addMonths(date, count);\n return {\n month: newDate.getMonth() + 1,\n year: newDate.getFullYear()\n };\n }\n}\nfunction pageIsValid(page) {\n return page != null && page.month != null && page.year != null;\n}\nfunction pageIsBeforePage(page, comparePage) {\n if (!pageIsValid(page) || !pageIsValid(comparePage))\n return false;\n page = page;\n comparePage = comparePage;\n if (page.year !== comparePage.year)\n return page.year < comparePage.year;\n if (page.month && comparePage.month && page.month !== comparePage.month)\n return page.month < comparePage.month;\n if (page.week && comparePage.week && page.week !== comparePage.week) {\n return page.week < comparePage.week;\n }\n if (page.day && comparePage.day && page.day !== comparePage.day) {\n return page.day < comparePage.day;\n }\n return false;\n}\nfunction pageIsAfterPage(page, comparePage) {\n if (!pageIsValid(page) || !pageIsValid(comparePage))\n return false;\n page = page;\n comparePage = comparePage;\n if (page.year !== comparePage.year) {\n return page.year > comparePage.year;\n }\n if (page.month && comparePage.month && page.month !== comparePage.month) {\n return page.month > comparePage.month;\n }\n if (page.week && comparePage.week && page.week !== comparePage.week) {\n return page.week > comparePage.week;\n }\n if (page.day && comparePage.day && page.day !== comparePage.day) {\n return page.day > comparePage.day;\n }\n return false;\n}\nfunction pageIsBetweenPages(page, fromPage, toPage) {\n return (page || false) && !pageIsBeforePage(page, fromPage) && !pageIsAfterPage(page, toPage);\n}\nfunction pageIsEqualToPage(aPage, bPage) {\n if (!aPage && bPage)\n return false;\n if (aPage && !bPage)\n return false;\n if (!aPage && !bPage)\n return true;\n aPage = aPage;\n bPage = bPage;\n return aPage.year === bPage.year && aPage.month === bPage.month && aPage.week === bPage.week && aPage.day === bPage.day;\n}\nfunction pageRangeToArray(from, to, view, locale) {\n if (!pageIsValid(from) || !pageIsValid(to))\n return [];\n const result = [];\n while (!pageIsAfterPage(from, to)) {\n result.push(from);\n from = addPages(from, 1, view, locale);\n }\n return result;\n}\nfunction getPageKey(config) {\n const { day, week, month, year } = config;\n let id = `${year}-${pad(month, 2)}`;\n if (week)\n id = `${id}-w${week}`;\n if (day)\n id = `${id}-${pad(day, 2)}`;\n return id;\n}\nfunction getCachedPage(config, locale) {\n const { month, year, showWeeknumbers, showIsoWeeknumbers } = config;\n const date = new Date(year, month - 1, 15);\n const monthComps = locale.getMonthParts(month, year);\n const prevMonthComps = locale.getPrevMonthParts(month, year);\n const nextMonthComps = locale.getNextMonthParts(month, year);\n const days = getDays({ monthComps, prevMonthComps, nextMonthComps }, locale);\n const weeks = getWeeks(days, showWeeknumbers, showIsoWeeknumbers, locale);\n const weekdays2 = getWeekdays(weeks[0], locale);\n return {\n id: getPageKey(config),\n month,\n year,\n monthTitle: locale.formatDate(date, locale.masks.title),\n shortMonthLabel: locale.formatDate(date, \"MMM\"),\n monthLabel: locale.formatDate(date, \"MMMM\"),\n shortYearLabel: year.toString().substring(2),\n yearLabel: year.toString(),\n monthComps,\n prevMonthComps,\n nextMonthComps,\n days,\n weeks,\n weekdays: weekdays2\n };\n}\nfunction getPage(config, cachedPage) {\n const { day, week, view, trimWeeks } = config;\n const page = {\n ...cachedPage,\n ...config,\n title: \"\",\n viewDays: [],\n viewWeeks: []\n };\n switch (view) {\n case \"daily\": {\n let dayObj = page.days.find((d) => d.inMonth);\n if (day) {\n dayObj = page.days.find((d) => d.day === day && d.inMonth) || dayObj;\n } else if (week) {\n dayObj = page.days.find((d) => d.week === week && d.inMonth);\n }\n const weekObj = page.weeks[dayObj.week - 1];\n page.viewWeeks = [weekObj];\n page.viewDays = [dayObj];\n page.week = dayObj.week;\n page.weekTitle = weekObj.title;\n page.day = dayObj.day;\n page.dayTitle = dayObj.ariaLabel;\n page.title = page.dayTitle;\n break;\n }\n case \"weekly\": {\n page.week = week || 1;\n const weekObj = page.weeks[page.week - 1];\n page.viewWeeks = [weekObj];\n page.viewDays = weekObj.days;\n page.weekTitle = weekObj.title;\n page.title = page.weekTitle;\n break;\n }\n default: {\n page.title = page.monthTitle;\n page.viewWeeks = page.weeks.slice(\n 0,\n trimWeeks ? page.monthComps.numWeeks : void 0\n );\n page.viewDays = page.days;\n break;\n }\n }\n return page;\n}\nclass Cache {\n constructor(size, createKey, createItem) {\n __publicField(this, \"keys\", []);\n __publicField(this, \"store\", {});\n this.size = size;\n this.createKey = createKey;\n this.createItem = createItem;\n }\n get(...args) {\n const key = this.createKey(...args);\n return this.store[key];\n }\n getOrSet(...args) {\n const key = this.createKey(...args);\n if (this.store[key])\n return this.store[key];\n const item = this.createItem(...args);\n if (this.keys.length >= this.size) {\n const removeKey = this.keys.shift();\n if (removeKey != null) {\n delete this.store[removeKey];\n }\n }\n this.keys.push(key);\n this.store[key] = item;\n return item;\n }\n}\nclass DateRange {\n constructor(config, locale = new Locale()) {\n __publicField(this, \"order\");\n __publicField(this, \"locale\");\n __publicField(this, \"start\", null);\n __publicField(this, \"end\", null);\n __publicField(this, \"repeat\", null);\n var _a;\n this.locale = locale;\n const { start, end, span, order, repeat } = config;\n if (isDate(start)) {\n this.start = locale.getDateParts(start);\n }\n if (isDate(end)) {\n this.end = locale.getDateParts(end);\n } else if (this.start != null && span) {\n this.end = locale.getDateParts(addDays(this.start.date, span - 1));\n }\n this.order = order ?? 0;\n if (repeat) {\n this.repeat = new DateRepeat(\n {\n from: (_a = this.start) == null ? void 0 : _a.date,\n ...repeat\n },\n {\n locale: this.locale\n }\n );\n }\n }\n static fromMany(ranges, locale) {\n return (isArray(ranges) ? ranges : [ranges]).filter((d) => d).map((d) => DateRange.from(d, locale));\n }\n static from(source, locale) {\n if (source instanceof DateRange)\n return source;\n const config = {\n start: null,\n end: null\n };\n if (source != null) {\n if (isArray(source)) {\n config.start = source[0] ?? null;\n config.end = source[1] ?? null;\n } else if (isObject(source)) {\n Object.assign(config, source);\n } else {\n config.start = source;\n config.end = source;\n }\n }\n if (config.start != null)\n config.start = new Date(config.start);\n if (config.end != null)\n config.end = new Date(config.end);\n return new DateRange(config, locale);\n }\n get opts() {\n const { order, locale } = this;\n return { order, locale };\n }\n get hasRepeat() {\n return !!this.repeat;\n }\n get isSingleDay() {\n const { start, end } = this;\n return start && end && start.year === end.year && start.month === end.month && start.day === end.day;\n }\n get isMultiDay() {\n return !this.isSingleDay;\n }\n get daySpan() {\n if (this.start == null || this.end == null) {\n if (this.hasRepeat)\n return 1;\n return Infinity;\n }\n return this.end.dayIndex - this.start.dayIndex;\n }\n startsOnDay(dayParts) {\n var _a, _b;\n return ((_a = this.start) == null ? void 0 : _a.dayIndex) === dayParts.dayIndex || !!((_b = this.repeat) == null ? void 0 : _b.passes(dayParts));\n }\n intersectsDay(dayIndex) {\n return this.intersectsDayRange(dayIndex, dayIndex);\n }\n intersectsRange(range) {\n var _a, _b;\n return this.intersectsDayRange(\n ((_a = range.start) == null ? void 0 : _a.dayIndex) ?? -Infinity,\n ((_b = range.end) == null ? void 0 : _b.dayIndex) ?? Infinity\n );\n }\n intersectsDayRange(startDayIndex, endDayIndex) {\n if (this.start && this.start.dayIndex > endDayIndex)\n return false;\n if (this.end && this.end.dayIndex < startDayIndex)\n return false;\n return true;\n }\n}\nclass DateRangeContext {\n constructor() {\n __publicField(this, \"records\", {});\n }\n render(data2, range, days) {\n var _a, _b, _c, _d;\n let result = null;\n const startDayIndex = days[0].dayIndex;\n const endDayIndex = days[days.length - 1].dayIndex;\n if (range.hasRepeat) {\n days.forEach((day) => {\n var _a2, _b2;\n if (range.startsOnDay(day)) {\n const span = range.daySpan < Infinity ? range.daySpan : 1;\n result = {\n startDay: day.dayIndex,\n startTime: ((_a2 = range.start) == null ? void 0 : _a2.time) ?? 0,\n endDay: day.dayIndex + span - 1,\n endTime: ((_b2 = range.end) == null ? void 0 : _b2.time) ?? MS_PER_DAY\n };\n this.getRangeRecords(data2).push(result);\n }\n });\n } else if (range.intersectsDayRange(startDayIndex, endDayIndex)) {\n result = {\n startDay: ((_a = range.start) == null ? void 0 : _a.dayIndex) ?? -Infinity,\n startTime: ((_b = range.start) == null ? void 0 : _b.time) ?? -Infinity,\n endDay: ((_c = range.end) == null ? void 0 : _c.dayIndex) ?? Infinity,\n endTime: ((_d = range.end) == null ? void 0 : _d.time) ?? Infinity\n };\n this.getRangeRecords(data2).push(result);\n }\n return result;\n }\n getRangeRecords(data2) {\n let record = this.records[data2.key];\n if (!record) {\n record = {\n ranges: [],\n data: data2\n };\n this.records[data2.key] = record;\n }\n return record.ranges;\n }\n getCell(key, day) {\n const cells = this.getCells(day);\n const result = cells.find((cell) => cell.data.key === key);\n return result;\n }\n cellExists(key, dayIndex) {\n const records = this.records[key];\n if (records == null)\n return false;\n return records.ranges.some(\n (r) => r.startDay <= dayIndex && r.endDay >= dayIndex\n );\n }\n getCells(day) {\n const records = Object.values(this.records);\n const result = [];\n const { dayIndex } = day;\n records.forEach(({ data: data2, ranges }) => {\n ranges.filter((r) => r.startDay <= dayIndex && r.endDay >= dayIndex).forEach((range) => {\n const onStart = dayIndex === range.startDay;\n const onEnd = dayIndex === range.endDay;\n const startTime = onStart ? range.startTime : 0;\n const startDate = new Date(day.startDate.getTime() + startTime);\n const endTime = onEnd ? range.endTime : MS_PER_DAY;\n const endDate = new Date(day.endDate.getTime() + endTime);\n const allDay = startTime === 0 && endTime === MS_PER_DAY;\n const order = data2.order || 0;\n result.push({\n ...range,\n data: data2,\n onStart,\n onEnd,\n startTime,\n startDate,\n endTime,\n endDate,\n allDay,\n order\n });\n });\n });\n result.sort((a, b) => a.order - b.order);\n return result;\n }\n}\nconst locales = {\n // Arabic\n ar: { dow: 7, L: \"D/‏M/‏YYYY\" },\n // Bulgarian\n bg: { dow: 2, L: \"D.MM.YYYY\" },\n // Catalan\n ca: { dow: 2, L: \"DD/MM/YYYY\" },\n // Chinese (China)\n \"zh-CN\": { dow: 2, L: \"YYYY/MM/DD\" },\n // Chinese (Taiwan)\n \"zh-TW\": { dow: 1, L: \"YYYY/MM/DD\" },\n // Croatian\n hr: { dow: 2, L: \"DD.MM.YYYY\" },\n // Czech\n cs: { dow: 2, L: \"DD.MM.YYYY\" },\n // Danish\n da: { dow: 2, L: \"DD.MM.YYYY\" },\n // Dutch\n nl: { dow: 2, L: \"DD-MM-YYYY\" },\n // English (US)\n \"en-US\": { dow: 1, L: \"MM/DD/YYYY\" },\n // English (Australia)\n \"en-AU\": { dow: 2, L: \"DD/MM/YYYY\" },\n // English (Canada)\n \"en-CA\": { dow: 1, L: \"YYYY-MM-DD\" },\n // English (Great Britain)\n \"en-GB\": { dow: 2, L: \"DD/MM/YYYY\" },\n // English (Ireland)\n \"en-IE\": { dow: 2, L: \"DD-MM-YYYY\" },\n // English (New Zealand)\n \"en-NZ\": { dow: 2, L: \"DD/MM/YYYY\" },\n // English (South Africa)\n \"en-ZA\": { dow: 1, L: \"YYYY/MM/DD\" },\n // Esperanto\n eo: { dow: 2, L: \"YYYY-MM-DD\" },\n // Estonian\n et: { dow: 2, L: \"DD.MM.YYYY\" },\n // Finnish\n fi: { dow: 2, L: \"DD.MM.YYYY\" },\n // French\n fr: { dow: 2, L: \"DD/MM/YYYY\" },\n // French (Canada)\n \"fr-CA\": { dow: 1, L: \"YYYY-MM-DD\" },\n // French (Switzerland)\n \"fr-CH\": { dow: 2, L: \"DD.MM.YYYY\" },\n // German\n de: { dow: 2, L: \"DD.MM.YYYY\" },\n // Hebrew\n he: { dow: 1, L: \"DD.MM.YYYY\" },\n // Indonesian\n id: { dow: 2, L: \"DD/MM/YYYY\" },\n // Italian\n it: { dow: 2, L: \"DD/MM/YYYY\" },\n // Japanese\n ja: { dow: 1, L: \"YYYY年M月D日\" },\n // Korean\n ko: { dow: 1, L: \"YYYY.MM.DD\" },\n // Latvian\n lv: { dow: 2, L: \"DD.MM.YYYY\" },\n // Lithuanian\n lt: { dow: 2, L: \"DD.MM.YYYY\" },\n // Macedonian\n mk: { dow: 2, L: \"D.MM.YYYY\" },\n // Norwegian\n nb: { dow: 2, L: \"D. MMMM YYYY\" },\n nn: { dow: 2, L: \"D. MMMM YYYY\" },\n // Polish\n pl: { dow: 2, L: \"DD.MM.YYYY\" },\n // Portuguese\n pt: { dow: 2, L: \"DD/MM/YYYY\" },\n // Romanian\n ro: { dow: 2, L: \"DD.MM.YYYY\" },\n // Russian\n ru: { dow: 2, L: \"DD.MM.YYYY\" },\n // Slovak\n sk: { dow: 2, L: \"DD.MM.YYYY\" },\n // Spanish (Spain)\n \"es-ES\": { dow: 2, L: \"DD/MM/YYYY\" },\n // Spanish (Mexico)\n \"es-MX\": { dow: 2, L: \"DD/MM/YYYY\" },\n // Swedish\n sv: { dow: 2, L: \"YYYY-MM-DD\" },\n // Thai\n th: { dow: 1, L: \"DD/MM/YYYY\" },\n // Turkish\n tr: { dow: 2, L: \"DD.MM.YYYY\" },\n // Ukrainian\n uk: { dow: 2, L: \"DD.MM.YYYY\" },\n // Vietnam\n vi: { dow: 2, L: \"DD/MM/YYYY\" }\n};\nlocales.en = locales[\"en-US\"];\nlocales.es = locales[\"es-ES\"];\nlocales.no = locales.nb;\nlocales.zh = locales[\"zh-CN\"];\nconst localeSettings = Object.entries(locales).reduce(\n (res, [id, { dow, L }]) => {\n res[id] = {\n id,\n firstDayOfWeek: dow,\n masks: { L }\n };\n return res;\n },\n {}\n);\nconst title = \"MMMM YYYY\";\nconst weekdays = \"W\";\nconst navMonths = \"MMM\";\nconst hours = \"h A\";\nconst input = [\n \"L\",\n \"YYYY-MM-DD\",\n \"YYYY/MM/DD\"\n];\nconst inputDateTime = [\n \"L h:mm A\",\n \"YYYY-MM-DD h:mm A\",\n \"YYYY/MM/DD h:mm A\"\n];\nconst inputDateTime24hr = [\n \"L HH:mm\",\n \"YYYY-MM-DD HH:mm\",\n \"YYYY/MM/DD HH:mm\"\n];\nconst inputTime = [\n \"h:mm A\"\n];\nconst inputTime24hr = [\n \"HH:mm\"\n];\nconst dayPopover = \"WWW, MMM D, YYYY\";\nconst data = [\n \"L\",\n \"YYYY-MM-DD\",\n \"YYYY/MM/DD\"\n];\nconst model = \"iso\";\nconst iso = \"YYYY-MM-DDTHH:mm:ss.SSSZ\";\nconst masks = {\n title,\n weekdays,\n navMonths,\n hours,\n input,\n inputDateTime,\n inputDateTime24hr,\n inputTime,\n inputTime24hr,\n dayPopover,\n data,\n model,\n iso\n};\nconst maxSwipeTime = 300;\nconst minHorizontalSwipeDistance = 60;\nconst maxVerticalSwipeDistance = 80;\nconst touch = {\n maxSwipeTime,\n minHorizontalSwipeDistance,\n maxVerticalSwipeDistance\n};\nconst defaultConfig = {\n componentPrefix: \"V\",\n color: \"blue\",\n isDark: false,\n navVisibility: \"click\",\n titlePosition: \"center\",\n transition: \"slide-h\",\n touch,\n masks,\n locales: localeSettings,\n datePicker: {\n updateOnInput: true,\n inputDebounce: 1e3,\n popover: {\n visibility: \"hover-focus\",\n placement: \"bottom-start\",\n isInteractive: true\n }\n }\n};\nconst state = reactive(defaultConfig);\nconst defaultLocales = computed(() => {\n return mapValues_1(state.locales, (l) => {\n l.masks = defaultsDeep_1(l.masks, state.masks);\n return l;\n });\n});\nconst getDefault = (path) => {\n if (typeof window !== \"undefined\" && has(window.__vcalendar__, path)) {\n return get_1(window.__vcalendar__, path);\n }\n return get_1(state, path);\n};\nconst setupDefaults = (app, userDefaults) => {\n app.config.globalProperties.$VCalendar = state;\n return Object.assign(state, defaultsDeep_1(userDefaults, state));\n};\nconst DEFAULT_MONTH_CACHE_SIZE = 12;\nconst DEFAULT_PAGE_CACHE_SIZE = 5;\nfunction resolveConfig(config, locales2) {\n const detLocale = new Intl.DateTimeFormat().resolvedOptions().locale;\n let id;\n if (isString_1(config)) {\n id = config;\n } else if (has(config, \"id\")) {\n id = config.id;\n }\n id = (id || detLocale).toLowerCase();\n const localeKeys = Object.keys(locales2);\n const validKey = (k) => localeKeys.find((lk) => lk.toLowerCase() === k);\n id = validKey(id) || validKey(id.substring(0, 2)) || detLocale;\n const defLocale = {\n ...locales2[\"en-IE\"],\n ...locales2[id],\n id,\n monthCacheSize: DEFAULT_MONTH_CACHE_SIZE,\n pageCacheSize: DEFAULT_PAGE_CACHE_SIZE\n };\n const result = isObject(config) ? defaultsDeep_1(config, defLocale) : defLocale;\n return result;\n}\nclass Locale {\n constructor(config = void 0, timezone) {\n __publicField(this, \"id\");\n __publicField(this, \"daysInWeek\");\n __publicField(this, \"firstDayOfWeek\");\n __publicField(this, \"masks\");\n __publicField(this, \"timezone\");\n __publicField(this, \"hourLabels\");\n __publicField(this, \"dayNames\");\n __publicField(this, \"dayNamesShort\");\n __publicField(this, \"dayNamesShorter\");\n __publicField(this, \"dayNamesNarrow\");\n __publicField(this, \"monthNames\");\n __publicField(this, \"monthNamesShort\");\n __publicField(this, \"relativeTimeNames\");\n __publicField(this, \"amPm\", [\"am\", \"pm\"]);\n __publicField(this, \"monthCache\");\n __publicField(this, \"pageCache\");\n const { id, firstDayOfWeek, masks: masks2, monthCacheSize, pageCacheSize } = resolveConfig(config, defaultLocales.value);\n this.monthCache = new Cache(\n monthCacheSize,\n getMonthPartsKey,\n getMonthParts\n );\n this.pageCache = new Cache(pageCacheSize, getPageKey, getCachedPage);\n this.id = id;\n this.daysInWeek = daysInWeek;\n this.firstDayOfWeek = clamp(firstDayOfWeek, 1, daysInWeek);\n this.masks = masks2;\n this.timezone = timezone || void 0;\n this.hourLabels = this.getHourLabels();\n this.dayNames = getDayNames(\"long\", this.id);\n this.dayNamesShort = getDayNames(\"short\", this.id);\n this.dayNamesShorter = this.dayNamesShort.map((s) => s.substring(0, 2));\n this.dayNamesNarrow = getDayNames(\"narrow\", this.id);\n this.monthNames = getMonthNames(\"long\", this.id);\n this.monthNamesShort = getMonthNames(\"short\", this.id);\n this.relativeTimeNames = getRelativeTimeNames(this.id);\n }\n formatDate(date, masks2) {\n return formatDate(date, masks2, this);\n }\n parseDate(dateString, mask) {\n return parseDate(dateString, mask, this);\n }\n toDate(d, opts = {}) {\n const nullDate = /* @__PURE__ */ new Date(NaN);\n let result = nullDate;\n const { fillDate, mask, patch, rules } = opts;\n if (isNumber_1(d)) {\n opts.type = \"number\";\n result = /* @__PURE__ */ new Date(+d);\n } else if (isString_1(d)) {\n opts.type = \"string\";\n result = d ? parseDate(d, mask || \"iso\", this) : nullDate;\n } else if (isDate(d)) {\n opts.type = \"date\";\n result = new Date(d.getTime());\n } else if (isDateParts(d)) {\n opts.type = \"object\";\n result = this.getDateFromParts(d);\n }\n if (result && (patch || rules)) {\n let parts = this.getDateParts(result);\n if (patch && fillDate != null) {\n const fillParts = this.getDateParts(this.toDate(fillDate));\n parts = this.getDateParts(\n this.toDate({ ...fillParts, ...pick(parts, DatePatchKeys[patch]) })\n );\n }\n if (rules) {\n parts = applyRulesForDateParts(parts, rules);\n }\n result = this.getDateFromParts(parts);\n }\n return result || nullDate;\n }\n toDateOrNull(d, opts = {}) {\n const dte = this.toDate(d, opts);\n return isNaN(dte.getTime()) ? null : dte;\n }\n fromDate(date, { type, mask } = {}) {\n switch (type) {\n case \"number\":\n return date ? date.getTime() : NaN;\n case \"string\":\n return date ? this.formatDate(date, mask || \"iso\") : \"\";\n case \"object\":\n return date ? this.getDateParts(date) : null;\n default:\n return date ? new Date(date) : null;\n }\n }\n range(source) {\n return DateRange.from(source, this);\n }\n ranges(ranges) {\n return DateRange.fromMany(ranges, this);\n }\n getDateParts(date) {\n return getDateParts(date, this);\n }\n getDateFromParts(parts) {\n return getDateFromParts(parts, this.timezone);\n }\n getDateFromParams(year, month, day, hours2, minutes, seconds, milliseconds) {\n return this.getDateFromParts({\n year,\n month,\n day,\n hours: hours2,\n minutes,\n seconds,\n milliseconds\n });\n }\n getPage(config) {\n const cachedPage = this.pageCache.getOrSet(config, this);\n return getPage(config, cachedPage);\n }\n getMonthParts(month, year) {\n const { firstDayOfWeek } = this;\n return this.monthCache.getOrSet(month, year, firstDayOfWeek);\n }\n getThisMonthParts() {\n const date = /* @__PURE__ */ new Date();\n return this.getMonthParts(\n date.getMonth() + 1,\n date.getFullYear()\n );\n }\n getPrevMonthParts(month, year) {\n if (month === 1)\n return this.getMonthParts(12, year - 1);\n return this.getMonthParts(month - 1, year);\n }\n getNextMonthParts(month, year) {\n if (month === 12)\n return this.getMonthParts(1, year + 1);\n return this.getMonthParts(month + 1, year);\n }\n getHourLabels() {\n return getHourDates().map((d) => {\n return this.formatDate(d, this.masks.hours);\n });\n }\n getDayId(date) {\n return this.formatDate(date, \"YYYY-MM-DD\");\n }\n}\nvar GroupRuleType = /* @__PURE__ */ ((GroupRuleType2) => {\n GroupRuleType2[\"Any\"] = \"any\";\n GroupRuleType2[\"All\"] = \"all\";\n return GroupRuleType2;\n})(GroupRuleType || {});\nvar IntervalRuleType = /* @__PURE__ */ ((IntervalRuleType2) => {\n IntervalRuleType2[\"Days\"] = \"days\";\n IntervalRuleType2[\"Weeks\"] = \"weeks\";\n IntervalRuleType2[\"Months\"] = \"months\";\n IntervalRuleType2[\"Years\"] = \"years\";\n return IntervalRuleType2;\n})(IntervalRuleType || {});\nvar ComponentRuleType = /* @__PURE__ */ ((ComponentRuleType2) => {\n ComponentRuleType2[\"Days\"] = \"days\";\n ComponentRuleType2[\"Weekdays\"] = \"weekdays\";\n ComponentRuleType2[\"Weeks\"] = \"weeks\";\n ComponentRuleType2[\"Months\"] = \"months\";\n ComponentRuleType2[\"Years\"] = \"years\";\n return ComponentRuleType2;\n})(ComponentRuleType || {});\nvar OrdinalComponentRuleType = /* @__PURE__ */ ((OrdinalComponentRuleType2) => {\n OrdinalComponentRuleType2[\"OrdinalWeekdays\"] = \"ordinalWeekdays\";\n return OrdinalComponentRuleType2;\n})(OrdinalComponentRuleType || {});\nclass IntervalRule {\n constructor(type, interval, from) {\n __publicField(this, \"validated\", true);\n this.type = type;\n this.interval = interval;\n this.from = from;\n if (!this.from) {\n console.error(\n `A valid \"from\" date is required for date interval rule. This rule will be skipped.`\n );\n this.validated = false;\n }\n }\n passes(dateParts) {\n if (!this.validated)\n return true;\n const { date } = dateParts;\n switch (this.type) {\n case \"days\": {\n return diffInDays(this.from.date, date) % this.interval === 0;\n }\n case \"weeks\": {\n return diffInWeeks(this.from.date, date) % this.interval === 0;\n }\n case \"months\": {\n return diffInMonths(this.from.date, date) % this.interval === 0;\n }\n case \"years\": {\n return diffInYears(this.from.date, date) % this.interval === 0;\n }\n default: {\n return false;\n }\n }\n }\n}\nclass ComponentRule {\n constructor(type, components2, validator, getter) {\n __publicField(this, \"components\", []);\n this.type = type;\n this.validator = validator;\n this.getter = getter;\n this.components = this.normalizeComponents(components2);\n }\n static create(type, config) {\n switch (type) {\n case \"days\":\n return new DaysRule(config);\n case \"weekdays\":\n return new WeekdaysRule(config);\n case \"weeks\":\n return new WeeksRule(config);\n case \"months\":\n return new MonthsRule(config);\n case \"years\":\n return new YearsRule(config);\n }\n }\n normalizeComponents(components2) {\n if (this.validator(components2))\n return [components2];\n if (!isArray(components2))\n return [];\n const result = [];\n components2.forEach((component) => {\n if (!this.validator(component)) {\n console.error(\n `Component value ${component} in invalid for \"${this.type}\" rule. This rule will be skipped.`\n );\n return;\n }\n result.push(component);\n });\n return result;\n }\n passes(dayParts) {\n const comps = this.getter(dayParts);\n const result = comps.some((comp) => this.components.includes(comp));\n return result;\n }\n}\nclass DaysRule extends ComponentRule {\n constructor(components2) {\n super(\n \"days\",\n components2,\n isDayInMonth,\n ({ day, dayFromEnd }) => [day, -dayFromEnd]\n );\n }\n}\nclass WeekdaysRule extends ComponentRule {\n constructor(components2) {\n super(\n \"weekdays\",\n components2,\n isDayOfWeek,\n ({ weekday }) => [weekday]\n );\n }\n}\nclass WeeksRule extends ComponentRule {\n constructor(components2) {\n super(\n \"weeks\",\n components2,\n isWeekInMonth,\n ({ week, weekFromEnd }) => [week, -weekFromEnd]\n );\n }\n}\nclass MonthsRule extends ComponentRule {\n constructor(components2) {\n super(\"months\", components2, isMonthInYear, ({ month }) => [\n month\n ]);\n }\n}\nclass YearsRule extends ComponentRule {\n constructor(components2) {\n super(\"years\", components2, isNumber_1, ({ year }) => [year]);\n }\n}\nclass OrdinalComponentRule {\n constructor(type, components2) {\n __publicField(this, \"components\");\n this.type = type;\n this.components = this.normalizeComponents(components2);\n }\n normalizeArrayConfig(config) {\n const result = [];\n config.forEach((numOrArray, i) => {\n if (isNumber_1(numOrArray)) {\n if (i === 0)\n return;\n if (!isOrdinalWeekInMonth(config[0])) {\n console.error(\n `Ordinal range for \"${this.type}\" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`\n );\n return;\n }\n if (!isDayOfWeek(numOrArray)) {\n console.error(\n `Acceptable range for \"${this.type}\" rule is from 1 to 5. This rule will be skipped`\n );\n return;\n }\n result.push([config[0], numOrArray]);\n } else if (isArray(numOrArray)) {\n result.push(...this.normalizeArrayConfig(numOrArray));\n }\n });\n return result;\n }\n normalizeComponents(config) {\n const result = [];\n config.forEach((numOrArray, i) => {\n if (isNumber_1(numOrArray)) {\n if (i === 0)\n return;\n if (!isOrdinalWeekInMonth(config[0])) {\n console.error(\n `Ordinal range for \"${this.type}\" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`\n );\n return;\n }\n if (!isDayOfWeek(numOrArray)) {\n console.error(\n `Acceptable range for \"${this.type}\" rule is from 1 to 5. This rule will be skipped`\n );\n return;\n }\n result.push([config[0], numOrArray]);\n } else if (isArray(numOrArray)) {\n result.push(...this.normalizeArrayConfig(numOrArray));\n }\n });\n return result;\n }\n passes(dayParts) {\n const { weekday, weekdayOrdinal, weekdayOrdinalFromEnd } = dayParts;\n return this.components.some(\n ([ordinalWeek, ordinalWeekday]) => (ordinalWeek === weekdayOrdinal || ordinalWeek === -weekdayOrdinalFromEnd) && weekday === ordinalWeekday\n );\n }\n}\nclass FunctionRule {\n constructor(fn) {\n __publicField(this, \"type\", \"function\");\n __publicField(this, \"validated\", true);\n this.fn = fn;\n if (!isFunction_1(fn)) {\n console.error(\n `The function rule requires a valid function. This rule will be skipped.`\n );\n this.validated = false;\n }\n }\n passes(dayParts) {\n if (!this.validated)\n return true;\n return this.fn(dayParts);\n }\n}\nclass DateRepeat {\n constructor(config, options = {}, parent) {\n __publicField(this, \"validated\", true);\n __publicField(this, \"config\");\n __publicField(this, \"type\", GroupRuleType.Any);\n __publicField(this, \"from\");\n __publicField(this, \"until\");\n __publicField(this, \"rules\", []);\n __publicField(this, \"locale\", new Locale());\n this.parent = parent;\n if (options.locale)\n this.locale = options.locale;\n this.config = config;\n if (isFunction_1(config)) {\n this.type = GroupRuleType.All;\n this.rules = [new FunctionRule(config)];\n } else if (isArray(config)) {\n this.type = GroupRuleType.Any;\n this.rules = config.map((c) => new DateRepeat(c, options, this));\n } else if (isObject(config)) {\n this.type = GroupRuleType.All;\n this.from = config.from ? this.locale.getDateParts(config.from) : parent == null ? void 0 : parent.from;\n this.until = config.until ? this.locale.getDateParts(config.until) : parent == null ? void 0 : parent.until;\n this.rules = this.getObjectRules(config);\n } else {\n console.error(\"Rule group configuration must be an object or an array.\");\n this.validated = false;\n }\n }\n getObjectRules(config) {\n const rules = [];\n if (config.every) {\n if (isString_1(config.every)) {\n config.every = [1, `${config.every}s`];\n }\n if (isArray(config.every)) {\n const [interval = 1, type = IntervalRuleType.Days] = config.every;\n rules.push(new IntervalRule(type, interval, this.from));\n }\n }\n Object.values(ComponentRuleType).forEach((type) => {\n if (!(type in config))\n return;\n rules.push(ComponentRule.create(type, config[type]));\n });\n Object.values(OrdinalComponentRuleType).forEach((type) => {\n if (!(type in config))\n return;\n rules.push(new OrdinalComponentRule(type, config[type]));\n });\n if (config.on != null) {\n if (!isArray(config.on))\n config.on = [config.on];\n rules.push(\n new DateRepeat(config.on, { locale: this.locale }, this.parent)\n );\n }\n return rules;\n }\n passes(dayParts) {\n if (!this.validated)\n return true;\n if (this.from && dayParts.dayIndex <= this.from.dayIndex)\n return false;\n if (this.until && dayParts.dayIndex >= this.until.dayIndex)\n return false;\n if (this.type === GroupRuleType.Any) {\n return this.rules.some((r) => r.passes(dayParts));\n }\n return this.rules.every((r) => r.passes(dayParts));\n }\n}\nfunction isDayInMonth(dayInMonth) {\n if (!isNumber_1(dayInMonth))\n return false;\n return dayInMonth >= 1 && dayInMonth <= 31;\n}\nfunction isDayOfWeek(dayOfWeek) {\n if (!isNumber_1(dayOfWeek))\n return false;\n return dayOfWeek >= 1 && dayOfWeek <= 7;\n}\nfunction isWeekInMonth(weekInMonth) {\n if (!isNumber_1(weekInMonth))\n return false;\n return weekInMonth >= -6 && weekInMonth <= -1 || weekInMonth >= 1 && weekInMonth <= 6;\n}\nfunction isMonthInYear(monthInYear) {\n if (!isNumber_1(monthInYear))\n return false;\n return monthInYear >= 1 && monthInYear <= 12;\n}\nfunction isOrdinalWeekInMonth(weekInMonth) {\n if (!isNumber_1(weekInMonth))\n return false;\n if (weekInMonth < -5 || weekInMonth > 5 || weekInMonth === 0)\n return false;\n return true;\n}\nconst DatePatchKeys = {\n dateTime: [\n \"year\",\n \"month\",\n \"day\",\n \"hours\",\n \"minutes\",\n \"seconds\",\n \"milliseconds\"\n ],\n date: [\"year\", \"month\", \"day\"],\n time: [\"hours\", \"minutes\", \"seconds\", \"milliseconds\"]\n};\nconst daysInWeek = 7;\nconst weeksInMonth = 6;\nconst MS_PER_SECOND = 1e3;\nconst MS_PER_MINUTE = MS_PER_SECOND * 60;\nconst MS_PER_HOUR = MS_PER_MINUTE * 60;\nconst MS_PER_DAY = MS_PER_HOUR * 24;\nconst daysInMonths = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\nconst maskMacros = [\"L\", \"iso\"];\nconst DATE_PART_RANGES = {\n milliseconds: [0, 999, 3],\n seconds: [0, 59, 2],\n minutes: [0, 59, 2],\n hours: [0, 23, 2]\n};\nconst token = /d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\\1?|[aA]|\"[^\"]*\"|'[^']*'/g;\nconst literal = /\\[([^]*?)\\]/gm;\nconst formatFlags = {\n D(d) {\n return d.day;\n },\n DD(d) {\n return pad(d.day, 2);\n },\n // Do(d: DateParts, l: Locale) {\n // return l.DoFn(d.day);\n // },\n d(d) {\n return d.weekday - 1;\n },\n dd(d) {\n return pad(d.weekday - 1, 2);\n },\n W(d, l) {\n return l.dayNamesNarrow[d.weekday - 1];\n },\n WW(d, l) {\n return l.dayNamesShorter[d.weekday - 1];\n },\n WWW(d, l) {\n return l.dayNamesShort[d.weekday - 1];\n },\n WWWW(d, l) {\n return l.dayNames[d.weekday - 1];\n },\n M(d) {\n return d.month;\n },\n MM(d) {\n return pad(d.month, 2);\n },\n MMM(d, l) {\n return l.monthNamesShort[d.month - 1];\n },\n MMMM(d, l) {\n return l.monthNames[d.month - 1];\n },\n YY(d) {\n return String(d.year).substr(2);\n },\n YYYY(d) {\n return pad(d.year, 4);\n },\n h(d) {\n return d.hours % 12 || 12;\n },\n hh(d) {\n return pad(d.hours % 12 || 12, 2);\n },\n H(d) {\n return d.hours;\n },\n HH(d) {\n return pad(d.hours, 2);\n },\n m(d) {\n return d.minutes;\n },\n mm(d) {\n return pad(d.minutes, 2);\n },\n s(d) {\n return d.seconds;\n },\n ss(d) {\n return pad(d.seconds, 2);\n },\n S(d) {\n return Math.round(d.milliseconds / 100);\n },\n SS(d) {\n return pad(Math.round(d.milliseconds / 10), 2);\n },\n SSS(d) {\n return pad(d.milliseconds, 3);\n },\n a(d, l) {\n return d.hours < 12 ? l.amPm[0] : l.amPm[1];\n },\n A(d, l) {\n return d.hours < 12 ? l.amPm[0].toUpperCase() : l.amPm[1].toUpperCase();\n },\n Z() {\n return \"Z\";\n },\n ZZ(d) {\n const o = d.timezoneOffset;\n return `${o > 0 ? \"-\" : \"+\"}${pad(Math.floor(Math.abs(o) / 60), 2)}`;\n },\n ZZZ(d) {\n const o = d.timezoneOffset;\n return `${o > 0 ? \"-\" : \"+\"}${pad(\n Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60,\n 4\n )}`;\n },\n ZZZZ(d) {\n const o = d.timezoneOffset;\n return `${o > 0 ? \"-\" : \"+\"}${pad(Math.floor(Math.abs(o) / 60), 2)}:${pad(\n Math.abs(o) % 60,\n 2\n )}`;\n }\n};\nconst twoDigits = /\\d\\d?/;\nconst threeDigits = /\\d{3}/;\nconst fourDigits = /\\d{4}/;\nconst word = /[0-9]*['a-z\\u00A0-\\u05FF\\u0700-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]+|[\\u0600-\\u06FF/]+(\\s*?[\\u0600-\\u06FF]+){1,2}/i;\nconst noop = () => {\n};\nconst monthUpdate = (arrName) => (d, v, l) => {\n const index2 = l[arrName].indexOf(\n v.charAt(0).toUpperCase() + v.substr(1).toLowerCase()\n );\n if (~index2) {\n d.month = index2;\n }\n};\nconst parseFlags = {\n D: [\n twoDigits,\n (d, v) => {\n d.day = v;\n }\n ],\n Do: [\n new RegExp(twoDigits.source + word.source),\n (d, v) => {\n d.day = parseInt(v, 10);\n }\n ],\n d: [twoDigits, noop],\n W: [word, noop],\n M: [\n twoDigits,\n (d, v) => {\n d.month = v - 1;\n }\n ],\n MMM: [word, monthUpdate(\"monthNamesShort\")],\n MMMM: [word, monthUpdate(\"monthNames\")],\n YY: [\n twoDigits,\n (d, v) => {\n const da = /* @__PURE__ */ new Date();\n const cent = +da.getFullYear().toString().substr(0, 2);\n d.year = +`${v > 68 ? cent - 1 : cent}${v}`;\n }\n ],\n YYYY: [\n fourDigits,\n (d, v) => {\n d.year = v;\n }\n ],\n S: [\n /\\d/,\n (d, v) => {\n d.milliseconds = v * 100;\n }\n ],\n SS: [\n /\\d{2}/,\n (d, v) => {\n d.milliseconds = v * 10;\n }\n ],\n SSS: [\n threeDigits,\n (d, v) => {\n d.milliseconds = v;\n }\n ],\n h: [\n twoDigits,\n (d, v) => {\n d.hours = v;\n }\n ],\n m: [\n twoDigits,\n (d, v) => {\n d.minutes = v;\n }\n ],\n s: [\n twoDigits,\n (d, v) => {\n d.seconds = v;\n }\n ],\n a: [\n word,\n (d, v, l) => {\n const val = v.toLowerCase();\n if (val === l.amPm[0]) {\n d.isPm = false;\n } else if (val === l.amPm[1]) {\n d.isPm = true;\n }\n }\n ],\n Z: [\n /[^\\s]*?[+-]\\d\\d:?\\d\\d|[^\\s]*?Z?/,\n (d, v) => {\n if (v === \"Z\")\n v = \"+00:00\";\n const parts = `${v}`.match(/([+-]|\\d\\d)/gi);\n if (parts) {\n const minutes = +parts[1] * 60 + parseInt(parts[2], 10);\n d.timezoneOffset = parts[0] === \"+\" ? minutes : -minutes;\n }\n }\n ]\n};\nparseFlags.DD = parseFlags.D;\nparseFlags.dd = parseFlags.d;\nparseFlags.WWWW = parseFlags.WWW = parseFlags.WW = parseFlags.W;\nparseFlags.MM = parseFlags.M;\nparseFlags.mm = parseFlags.m;\nparseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;\nparseFlags.ss = parseFlags.s;\nparseFlags.A = parseFlags.a;\nparseFlags.ZZZZ = parseFlags.ZZZ = parseFlags.ZZ = parseFlags.Z;\nfunction normalizeMasks(masks2, locale) {\n return (arrayHasItems(masks2) && masks2 || [\n isString_1(masks2) && masks2 || \"YYYY-MM-DD\"\n ]).map(\n (m) => maskMacros.reduce(\n (prev, curr) => prev.replace(curr, locale.masks[curr] || \"\"),\n m\n )\n );\n}\nfunction isDateParts(parts) {\n return isObject(parts) && \"year\" in parts && \"month\" in parts && \"day\" in parts;\n}\nfunction startOfWeek(date, firstDayOfWeek = 1) {\n const day = date.getDay() + 1;\n const daysToAdd = day >= firstDayOfWeek ? firstDayOfWeek - day : -(7 - (firstDayOfWeek - day));\n return addDays(date, daysToAdd);\n}\nfunction getDayIndex(year, month, day) {\n const utcDate = Date.UTC(year, month - 1, day);\n return diffInDays(/* @__PURE__ */ new Date(0), new Date(utcDate));\n}\nfunction diffInDays(d1, d2) {\n return Math.round((d2.getTime() - d1.getTime()) / MS_PER_DAY);\n}\nfunction diffInWeeks(d1, d2) {\n return Math.ceil(diffInDays(startOfWeek(d1), startOfWeek(d2)) / 7);\n}\nfunction diffInYears(d1, d2) {\n return d2.getUTCFullYear() - d1.getUTCFullYear();\n}\nfunction diffInMonths(d1, d2) {\n return diffInYears(d1, d2) * 12 + (d2.getMonth() - d1.getMonth());\n}\nfunction getDateFromParts(parts, timezone = \"\") {\n const d = /* @__PURE__ */ new Date();\n const {\n year = d.getFullYear(),\n month = d.getMonth() + 1,\n day = d.getDate(),\n hours: hrs = 0,\n minutes: min = 0,\n seconds: sec = 0,\n milliseconds: ms = 0\n } = parts;\n if (timezone) {\n const dateString = `${pad(year, 4)}-${pad(month, 2)}-${pad(day, 2)}T${pad(\n hrs,\n 2\n )}:${pad(min, 2)}:${pad(sec, 2)}.${pad(ms, 3)}`;\n return toDate$1(dateString, { timeZone: timezone });\n }\n return new Date(year, month - 1, day, hrs, min, sec, ms);\n}\nfunction getDateParts(date, locale) {\n let tzDate = new Date(date.getTime());\n if (locale.timezone) {\n tzDate = new Date(\n date.toLocaleString(\"en-US\", { timeZone: locale.timezone })\n );\n tzDate.setMilliseconds(date.getMilliseconds());\n }\n const milliseconds = tzDate.getMilliseconds();\n const seconds = tzDate.getSeconds();\n const minutes = tzDate.getMinutes();\n const hours2 = tzDate.getHours();\n const time = milliseconds + seconds * MS_PER_SECOND + minutes * MS_PER_MINUTE + hours2 * MS_PER_HOUR;\n const month = tzDate.getMonth() + 1;\n const year = tzDate.getFullYear();\n const monthParts = locale.getMonthParts(month, year);\n const day = tzDate.getDate();\n const dayFromEnd = monthParts.numDays - day + 1;\n const weekday = tzDate.getDay() + 1;\n const weekdayOrdinal = Math.floor((day - 1) / 7 + 1);\n const weekdayOrdinalFromEnd = Math.floor((monthParts.numDays - day) / 7 + 1);\n const week = Math.ceil(\n (day + Math.abs(monthParts.firstWeekday - monthParts.firstDayOfWeek)) / 7\n );\n const weekFromEnd = monthParts.numWeeks - week + 1;\n const weeknumber = monthParts.weeknumbers[week];\n const dayIndex = getDayIndex(year, month, day);\n const parts = {\n milliseconds,\n seconds,\n minutes,\n hours: hours2,\n time,\n day,\n dayFromEnd,\n weekday,\n weekdayOrdinal,\n weekdayOrdinalFromEnd,\n week,\n weekFromEnd,\n weeknumber,\n month,\n year,\n date: tzDate,\n dateTime: tzDate.getTime(),\n dayIndex,\n timezoneOffset: 0,\n isValid: true\n };\n return parts;\n}\nfunction getMonthPartsKey(month, year, firstDayOfWeek) {\n return `${year}-${month}-${firstDayOfWeek}`;\n}\nfunction getMonthParts(month, year, firstDayOfWeek) {\n const inLeapYear = year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;\n const firstDayOfMonth = new Date(year, month - 1, 1);\n const firstWeekday = firstDayOfMonth.getDay() + 1;\n const numDays = month === 2 && inLeapYear ? 29 : daysInMonths[month - 1];\n const weekStartsOn = firstDayOfWeek - 1;\n const numWeeks = getWeeksInMonth(firstDayOfMonth, {\n weekStartsOn\n });\n const weeknumbers = [];\n const isoWeeknumbers = [];\n for (let i = 0; i < numWeeks; i++) {\n const date = addDays(firstDayOfMonth, i * 7);\n weeknumbers.push(getWeek(date, { weekStartsOn }));\n isoWeeknumbers.push(getISOWeek(date));\n }\n return {\n firstDayOfWeek,\n firstDayOfMonth,\n inLeapYear,\n firstWeekday,\n numDays,\n numWeeks,\n month,\n year,\n weeknumbers,\n isoWeeknumbers\n };\n}\nfunction getWeekdayDates() {\n const dates = [];\n const year = 2020;\n const month = 1;\n const day = 5;\n for (let i = 0; i < daysInWeek; i++) {\n dates.push(\n getDateFromParts({\n year,\n month,\n day: day + i,\n hours: 12\n })\n );\n }\n return dates;\n}\nfunction getDayNames(length, localeId = void 0) {\n const dtf = new Intl.DateTimeFormat(localeId, {\n weekday: length\n });\n return getWeekdayDates().map((d) => dtf.format(d));\n}\nfunction getHourDates() {\n const dates = [];\n for (let i = 0; i <= 24; i++) {\n dates.push(new Date(2e3, 0, 1, i));\n }\n return dates;\n}\nfunction getRelativeTimeNames(localeId = void 0) {\n const units = [\n \"second\",\n \"minute\",\n \"hour\",\n \"day\",\n \"week\",\n \"month\",\n \"quarter\",\n \"year\"\n ];\n const rtf = new Intl.RelativeTimeFormat(localeId);\n return units.reduce((names, unit) => {\n const parts = rtf.formatToParts(100, unit);\n names[unit] = parts[1].unit;\n return names;\n }, {});\n}\nfunction getMonthDates() {\n const dates = [];\n for (let i = 0; i < 12; i++) {\n dates.push(new Date(2e3, i, 15));\n }\n return dates;\n}\nfunction getMonthNames(length, localeId = void 0) {\n const dtf = new Intl.DateTimeFormat(localeId, {\n month: length,\n timeZone: \"UTC\"\n });\n return getMonthDates().map((d) => dtf.format(d));\n}\nfunction datePartIsValid(part, rule, parts) {\n if (isNumber_1(rule))\n return rule === part;\n if (isArray(rule))\n return rule.includes(part);\n if (isFunction_1(rule))\n return rule(part, parts);\n if (rule.min != null && rule.min > part)\n return false;\n if (rule.max != null && rule.max < part)\n return false;\n if (rule.interval != null && part % rule.interval !== 0)\n return false;\n return true;\n}\nfunction getDatePartOptions(parts, range, rule) {\n const options = [];\n const [min, max, padding] = range;\n for (let i = min; i <= max; i++) {\n if (rule == null || datePartIsValid(i, rule, parts)) {\n options.push({\n value: i,\n label: pad(i, padding)\n });\n }\n }\n return options;\n}\nfunction getDatePartsOptions(parts, rules) {\n return {\n milliseconds: getDatePartOptions(\n parts,\n DATE_PART_RANGES.milliseconds,\n rules.milliseconds\n ),\n seconds: getDatePartOptions(parts, DATE_PART_RANGES.seconds, rules.seconds),\n minutes: getDatePartOptions(parts, DATE_PART_RANGES.minutes, rules.minutes),\n hours: getDatePartOptions(parts, DATE_PART_RANGES.hours, rules.hours)\n };\n}\nfunction getNearestDatePart(parts, range, value, rule) {\n const options = getDatePartOptions(parts, range, rule);\n const result = options.reduce((prev, opt) => {\n if (opt.disabled)\n return prev;\n if (isNaN(prev))\n return opt.value;\n const diffPrev = Math.abs(prev - value);\n const diffCurr = Math.abs(opt.value - value);\n return diffCurr < diffPrev ? opt.value : prev;\n }, NaN);\n return isNaN(result) ? value : result;\n}\nfunction applyRulesForDateParts(dateParts, rules) {\n const result = { ...dateParts };\n Object.entries(rules).forEach(([key, rule]) => {\n const range = DATE_PART_RANGES[key];\n const value = dateParts[key];\n result[key] = getNearestDatePart(\n dateParts,\n range,\n value,\n rule\n );\n });\n return result;\n}\nfunction parseDate(dateString, mask, locale) {\n const masks2 = normalizeMasks(mask, locale);\n return masks2.map((m) => {\n if (typeof m !== \"string\") {\n throw new Error(\"Invalid mask\");\n }\n let str = dateString;\n if (str.length > 1e3) {\n return false;\n }\n let isValid = true;\n const dp = {};\n m.replace(token, ($0) => {\n if (parseFlags[$0]) {\n const info = parseFlags[$0];\n const index2 = str.search(info[0]);\n if (!~index2) {\n isValid = false;\n } else {\n str.replace(info[0], (result) => {\n info[1](dp, result, locale);\n str = str.substr(index2 + result.length);\n return result;\n });\n }\n }\n return parseFlags[$0] ? \"\" : $0.slice(1, $0.length - 1);\n });\n if (!isValid) {\n return false;\n }\n const today = /* @__PURE__ */ new Date();\n if (dp.hours != null) {\n if (dp.isPm === true && +dp.hours !== 12) {\n dp.hours = +dp.hours + 12;\n } else if (dp.isPm === false && +dp.hours === 12) {\n dp.hours = 0;\n }\n }\n let date;\n if (dp.timezoneOffset != null) {\n dp.minutes = +(dp.minutes || 0) - +dp.timezoneOffset;\n date = new Date(\n Date.UTC(\n dp.year || today.getFullYear(),\n dp.month || 0,\n dp.day || 1,\n dp.hours || 0,\n dp.minutes || 0,\n dp.seconds || 0,\n dp.milliseconds || 0\n )\n );\n } else {\n date = locale.getDateFromParts({\n year: dp.year || today.getFullYear(),\n month: (dp.month || 0) + 1,\n day: dp.day || 1,\n hours: dp.hours || 0,\n minutes: dp.minutes || 0,\n seconds: dp.seconds || 0,\n milliseconds: dp.milliseconds || 0\n });\n }\n return date;\n }).find((d) => d) || new Date(dateString);\n}\nfunction formatDate(date, masks2, locale) {\n if (date == null)\n return \"\";\n let mask = normalizeMasks(masks2, locale)[0];\n if (/Z$/.test(mask))\n locale.timezone = \"utc\";\n const literals = [];\n mask = mask.replace(literal, ($0, $1) => {\n literals.push($1);\n return \"??\";\n });\n const dateParts = locale.getDateParts(date);\n mask = mask.replace(\n token,\n ($0) => $0 in formatFlags ? formatFlags[$0](dateParts, locale) : $0.slice(1, $0.length - 1)\n );\n return mask.replace(/\\?\\?/g, () => literals.shift());\n}\nlet attrKey = 0;\nclass Attribute {\n constructor(config, theme, locale) {\n __publicField(this, \"key\", \"\");\n __publicField(this, \"hashcode\", \"\");\n __publicField(this, \"highlight\", null);\n __publicField(this, \"content\", null);\n __publicField(this, \"dot\", null);\n __publicField(this, \"bar\", null);\n __publicField(this, \"event\", null);\n __publicField(this, \"popover\", null);\n __publicField(this, \"customData\", null);\n __publicField(this, \"ranges\");\n __publicField(this, \"hasRanges\", false);\n __publicField(this, \"order\", 0);\n __publicField(this, \"pinPage\", false);\n __publicField(this, \"maxRepeatSpan\", 0);\n __publicField(this, \"locale\");\n const { dates } = Object.assign(\n this,\n { hashcode: \"\", order: 0, pinPage: false },\n config\n );\n this.key || (this.key = ++attrKey);\n this.locale = locale;\n theme.normalizeGlyphs(this);\n this.ranges = locale.ranges(dates ?? []);\n this.hasRanges = !!arrayHasItems(this.ranges);\n this.maxRepeatSpan = this.ranges.filter((r) => r.hasRepeat).map((r) => r.daySpan).reduce((res, curr) => Math.max(res, curr), 0);\n }\n intersectsRange({ start, end }) {\n if (start == null || end == null)\n return false;\n const simpleRanges = this.ranges.filter((r) => !r.hasRepeat);\n for (const range of simpleRanges) {\n if (range.intersectsDayRange(start.dayIndex, end.dayIndex)) {\n return true;\n }\n }\n const repeatRanges = this.ranges.filter((r) => r.hasRepeat);\n if (!repeatRanges.length)\n return false;\n let day = start;\n if (this.maxRepeatSpan > 1) {\n day = this.locale.getDateParts(addDays(day.date, -this.maxRepeatSpan));\n }\n while (day.dayIndex <= end.dayIndex) {\n for (const range of repeatRanges) {\n if (range.startsOnDay(day))\n return true;\n }\n day = this.locale.getDateParts(addDays(day.date, 1));\n }\n return false;\n }\n}\nfunction showPopover(opts) {\n if (document) {\n document.dispatchEvent(\n new CustomEvent(\"show-popover\", {\n detail: opts\n })\n );\n }\n}\nfunction hidePopover(opts) {\n if (document) {\n document.dispatchEvent(\n new CustomEvent(\"hide-popover\", {\n detail: opts\n })\n );\n }\n}\nfunction togglePopover(opts) {\n if (document) {\n document.dispatchEvent(\n new CustomEvent(\"toggle-popover\", {\n detail: opts\n })\n );\n }\n}\nfunction getPopoverEventHandlers(opts) {\n const { visibility } = opts;\n const click = visibility === \"click\";\n const hover = visibility === \"hover\";\n const hoverFocus = visibility === \"hover-focus\";\n const focus = visibility === \"focus\";\n opts.autoHide = !click;\n let hovered = false;\n let focused = false;\n const clickHandler = (e) => {\n if (click) {\n togglePopover({\n ...opts,\n target: opts.target || e.currentTarget\n });\n e.stopPropagation();\n }\n };\n const mouseMoveHandler = (e) => {\n if (!hovered) {\n hovered = true;\n if (hover || hoverFocus) {\n showPopover({\n ...opts,\n target: opts.target || e.currentTarget\n });\n }\n }\n };\n const mouseLeaveHandler = () => {\n if (hovered) {\n hovered = false;\n if (hover || hoverFocus && !focused) {\n hidePopover(opts);\n }\n }\n };\n const focusInHandler = (e) => {\n if (!focused) {\n focused = true;\n if (focus || hoverFocus) {\n showPopover({\n ...opts,\n target: opts.target || e.currentTarget\n });\n }\n }\n };\n const focusOutHandler = (e) => {\n if (focused && !elementContains(e.currentTarget, e.relatedTarget)) {\n focused = false;\n if (focus || hoverFocus && !hovered) {\n hidePopover(opts);\n }\n }\n };\n const handlers = {};\n switch (opts.visibility) {\n case \"click\":\n handlers.click = clickHandler;\n break;\n case \"hover\":\n handlers.mousemove = mouseMoveHandler;\n handlers.mouseleave = mouseLeaveHandler;\n break;\n case \"focus\":\n handlers.focusin = focusInHandler;\n handlers.focusout = focusOutHandler;\n break;\n case \"hover-focus\":\n handlers.mousemove = mouseMoveHandler;\n handlers.mouseleave = mouseLeaveHandler;\n handlers.focusin = focusInHandler;\n handlers.focusout = focusOutHandler;\n break;\n }\n return handlers;\n}\nconst removeHandlers = (target) => {\n const el = resolveEl(target);\n if (el == null)\n return;\n const handlers = el.popoverHandlers;\n if (!handlers || !handlers.length)\n return;\n handlers.forEach((handler) => handler());\n delete el.popoverHandlers;\n};\nconst addHandlers = (target, opts) => {\n const el = resolveEl(target);\n if (el == null)\n return;\n const remove = [];\n const handlers = getPopoverEventHandlers(opts);\n Object.entries(handlers).forEach(([event, handler]) => {\n remove.push(on(el, event, handler));\n });\n el.popoverHandlers = remove;\n};\nconst popoverDirective = {\n mounted(el, binding) {\n const { value } = binding;\n if (!value)\n return;\n addHandlers(el, value);\n },\n updated(el, binding) {\n const { oldValue, value } = binding;\n const oldVisibility = oldValue == null ? void 0 : oldValue.visibility;\n const newVisibility = value == null ? void 0 : value.visibility;\n if (oldVisibility !== newVisibility) {\n if (oldVisibility) {\n removeHandlers(el);\n if (!newVisibility)\n hidePopover(oldValue);\n }\n if (newVisibility) {\n addHandlers(el, value);\n }\n }\n },\n unmounted(el) {\n removeHandlers(el);\n }\n};\nconst addHorizontalSwipeHandler = (element, handler, {\n maxSwipeTime: maxSwipeTime2,\n minHorizontalSwipeDistance: minHorizontalSwipeDistance2,\n maxVerticalSwipeDistance: maxVerticalSwipeDistance2\n}) => {\n if (!element || !element.addEventListener || !isFunction_1(handler)) {\n return null;\n }\n let startX = 0;\n let startY = 0;\n let startTime = null;\n let isSwiping = false;\n function touchStart(e) {\n const t = e.changedTouches[0];\n startX = t.screenX;\n startY = t.screenY;\n startTime = (/* @__PURE__ */ new Date()).getTime();\n isSwiping = true;\n }\n function touchEnd(e) {\n if (!isSwiping || !startTime)\n return;\n isSwiping = false;\n const t = e.changedTouches[0];\n const deltaX = t.screenX - startX;\n const deltaY = t.screenY - startY;\n const deltaTime = (/* @__PURE__ */ new Date()).getTime() - startTime;\n if (deltaTime < maxSwipeTime2) {\n if (Math.abs(deltaX) >= minHorizontalSwipeDistance2 && Math.abs(deltaY) <= maxVerticalSwipeDistance2) {\n const arg = { toLeft: false, toRight: false };\n if (deltaX < 0) {\n arg.toLeft = true;\n } else {\n arg.toRight = true;\n }\n handler(arg);\n }\n }\n }\n on(element, \"touchstart\", touchStart, { passive: true });\n on(element, \"touchend\", touchEnd, { passive: true });\n return () => {\n off(element, \"touchstart\", touchStart);\n off(element, \"touchend\", touchEnd);\n };\n};\nconst watchSkippers = {};\nconst skipWatcher = (watcher, durationMs = 10) => {\n watchSkippers[watcher] = Date.now() + durationMs;\n};\nconst handleWatcher = (watcher, handler) => {\n if (watcher in watchSkippers) {\n const dateTime = watchSkippers[watcher];\n if (Date.now() < dateTime)\n return;\n delete watchSkippers[watcher];\n }\n handler();\n};\nfunction windowExists() {\n return typeof window !== \"undefined\";\n}\nfunction windowHasFeature(feature) {\n return windowExists() && feature in window;\n}\nfunction useDarkMode(config) {\n const isDark = ref(false);\n const displayMode = computed(() => isDark.value ? \"dark\" : \"light\");\n let mediaQuery;\n let mutationObserver;\n function mqListener(ev) {\n isDark.value = ev.matches;\n }\n function setupSystem() {\n if (windowHasFeature(\"matchMedia\")) {\n mediaQuery = window.matchMedia(\"(prefers-color-scheme: dark)\");\n mediaQuery.addEventListener(\"change\", mqListener);\n isDark.value = mediaQuery.matches;\n }\n }\n function moListener() {\n const { selector = \":root\", darkClass = \"dark\" } = config.value;\n const el = document.querySelector(selector);\n isDark.value = el.classList.contains(darkClass);\n }\n function setupClass(config2) {\n const { selector = \":root\", darkClass = \"dark\" } = config2;\n if (windowExists() && selector && darkClass) {\n const el = document.querySelector(selector);\n if (el) {\n mutationObserver = new MutationObserver(moListener);\n mutationObserver.observe(el, {\n attributes: true,\n attributeFilter: [\"class\"]\n });\n isDark.value = el.classList.contains(darkClass);\n }\n }\n }\n function setup() {\n stopObservers();\n const type = typeof config.value;\n if (type === \"string\" && config.value.toLowerCase() === \"system\") {\n setupSystem();\n } else if (type === \"object\") {\n setupClass(config.value);\n } else {\n isDark.value = !!config.value;\n }\n }\n const stopWatch = watch(() => config.value, () => setup(), {\n immediate: true\n });\n function stopObservers() {\n if (mediaQuery) {\n mediaQuery.removeEventListener(\"change\", mqListener);\n mediaQuery = void 0;\n }\n if (mutationObserver) {\n mutationObserver.disconnect();\n mutationObserver = void 0;\n }\n }\n function cleanup() {\n stopObservers();\n stopWatch();\n }\n onUnmounted(() => cleanup());\n return {\n isDark,\n displayMode,\n cleanup\n };\n}\nconst targetProps = [\"base\", \"start\", \"end\", \"startEnd\"];\nconst displayProps = [\n \"class\",\n \"wrapperClass\",\n \"contentClass\",\n \"style\",\n \"contentStyle\",\n \"color\",\n \"fillMode\"\n];\nconst _defaultProfile = { base: {}, start: {}, end: {} };\nfunction normalizeConfig(color, config, defaultProfile = _defaultProfile) {\n let rootColor = color;\n let root2 = {};\n if (config === true || isString_1(config)) {\n rootColor = isString_1(config) ? config : rootColor;\n root2 = { ...defaultProfile };\n } else if (isObject(config)) {\n if (hasAny(config, targetProps)) {\n root2 = { ...config };\n } else {\n root2 = {\n base: { ...config },\n start: { ...config },\n end: { ...config }\n };\n }\n }\n const result = defaultsDeep_1(\n root2,\n { start: root2.startEnd, end: root2.startEnd },\n defaultProfile\n );\n Object.entries(result).forEach(([targetType, targetConfig]) => {\n let targetColor = rootColor;\n if (targetConfig === true || isString_1(targetConfig)) {\n targetColor = isString_1(targetConfig) ? targetConfig : targetColor;\n result[targetType] = { color: targetColor };\n } else if (isObject(targetConfig)) {\n if (hasAny(targetConfig, displayProps)) {\n result[targetType] = { ...targetConfig };\n } else {\n result[targetType] = {};\n }\n }\n defaultsDeep_1(result[targetType], { color: targetColor });\n });\n return result;\n}\nclass HighlightRenderer {\n constructor() {\n __publicField(this, \"type\", \"highlight\");\n }\n normalizeConfig(color, config) {\n return normalizeConfig(color, config, {\n base: { fillMode: \"light\" },\n start: { fillMode: \"solid\" },\n end: { fillMode: \"solid\" }\n });\n }\n prepareRender(glyphs) {\n glyphs.highlights = [];\n if (!glyphs.content)\n glyphs.content = [];\n }\n render({ data: data2, onStart, onEnd }, glyphs) {\n const { key, highlight } = data2;\n if (!highlight)\n return;\n const { highlights } = glyphs;\n const { base, start, end } = highlight;\n if (onStart && onEnd) {\n highlights.push({\n ...start,\n key,\n wrapperClass: `vc-day-layer vc-day-box-center-center vc-attr vc-${start.color}`,\n class: [`vc-highlight vc-highlight-bg-${start.fillMode}`, start.class],\n contentClass: [\n `vc-attr vc-highlight-content-${start.fillMode} vc-${start.color}`,\n start.contentClass\n ]\n });\n } else if (onStart) {\n highlights.push({\n ...base,\n key: `${key}-base`,\n wrapperClass: `vc-day-layer vc-day-box-right-center vc-attr vc-${base.color}`,\n class: [\n `vc-highlight vc-highlight-base-start vc-highlight-bg-${base.fillMode}`,\n base.class\n ]\n });\n highlights.push({\n ...start,\n key,\n wrapperClass: `vc-day-layer vc-day-box-center-center vc-attr vc-${start.color}`,\n class: [`vc-highlight vc-highlight-bg-${start.fillMode}`, start.class],\n contentClass: [\n `vc-attr vc-highlight-content-${start.fillMode} vc-${start.color}`,\n start.contentClass\n ]\n });\n } else if (onEnd) {\n highlights.push({\n ...base,\n key: `${key}-base`,\n wrapperClass: `vc-day-layer vc-day-box-left-center vc-attr vc-${base.color}`,\n class: [\n `vc-highlight vc-highlight-base-end vc-highlight-bg-${base.fillMode}`,\n base.class\n ]\n });\n highlights.push({\n ...end,\n key,\n wrapperClass: `vc-day-layer vc-day-box-center-center vc-attr vc-${end.color}`,\n class: [`vc-highlight vc-highlight-bg-${end.fillMode}`, end.class],\n contentClass: [\n `vc-attr vc-highlight-content-${end.fillMode} vc-${end.color}`,\n end.contentClass\n ]\n });\n } else {\n highlights.push({\n ...base,\n key: `${key}-middle`,\n wrapperClass: `vc-day-layer vc-day-box-center-center vc-attr vc-${base.color}`,\n class: [\n `vc-highlight vc-highlight-base-middle vc-highlight-bg-${base.fillMode}`,\n base.class\n ],\n contentClass: [\n `vc-attr vc-highlight-content-${base.fillMode} vc-${base.color}`,\n base.contentClass\n ]\n });\n }\n }\n}\nclass BaseRenderer {\n constructor(type, collectionType) {\n __publicField(this, \"type\", \"\");\n __publicField(this, \"collectionType\", \"\");\n this.type = type;\n this.collectionType = collectionType;\n }\n normalizeConfig(color, config) {\n return normalizeConfig(color, config);\n }\n prepareRender(glyphs) {\n glyphs[this.collectionType] = [];\n }\n render({ data: data2, onStart, onEnd }, glyphs) {\n const { key } = data2;\n const item = data2[this.type];\n if (!key || !item) {\n return;\n }\n const collection = glyphs[this.collectionType];\n const { base, start, end } = item;\n if (onStart) {\n collection.push({\n ...start,\n key,\n class: [\n `vc-${this.type} vc-${this.type}-start vc-${start.color} vc-attr`,\n start.class\n ]\n });\n } else if (onEnd) {\n collection.push({\n ...end,\n key,\n class: [\n `vc-${this.type} vc-${this.type}-end vc-${end.color} vc-attr`,\n end.class\n ]\n });\n } else {\n collection.push({\n ...base,\n key,\n class: [\n `vc-${this.type} vc-${this.type}-base vc-${base.color} vc-attr`,\n base.class\n ]\n });\n }\n }\n}\nclass ContentRenderer extends BaseRenderer {\n constructor() {\n super(\"content\", \"content\");\n }\n normalizeConfig(_, config) {\n return normalizeConfig(\"base\", config);\n }\n}\nclass DotRenderer extends BaseRenderer {\n constructor() {\n super(\"dot\", \"dots\");\n }\n}\nclass BarRenderer extends BaseRenderer {\n constructor() {\n super(\"bar\", \"bars\");\n }\n}\nclass Theme {\n constructor(color) {\n __publicField(this, \"color\");\n __publicField(this, \"renderers\", [\n new ContentRenderer(),\n new HighlightRenderer(),\n new DotRenderer(),\n new BarRenderer()\n ]);\n this.color = color;\n }\n normalizeGlyphs(attr) {\n this.renderers.forEach((renderer) => {\n const type = renderer.type;\n if (attr[type] != null) {\n attr[type] = renderer.normalizeConfig(this.color, attr[type]);\n }\n });\n }\n prepareRender(glyphs = {}) {\n this.renderers.forEach((renderer) => {\n renderer.prepareRender(glyphs);\n });\n return glyphs;\n }\n render(cell, glyphs) {\n this.renderers.forEach((renderer) => {\n renderer.render(cell, glyphs);\n });\n }\n}\nconst contextKey$4 = Symbol(\"__vc_base_context__\");\nconst propsDef$2 = {\n color: {\n type: String,\n default: () => getDefault(\"color\")\n },\n isDark: {\n type: [Boolean, String, Object],\n default: () => getDefault(\"isDark\")\n },\n firstDayOfWeek: Number,\n masks: Object,\n locale: [String, Object],\n timezone: String,\n minDate: null,\n maxDate: null,\n disabledDates: null\n};\nfunction createBase(props) {\n const color = computed(() => props.color ?? \"\");\n const isDark = computed(() => props.isDark ?? false);\n const { displayMode } = useDarkMode(isDark);\n const theme = computed(() => new Theme(color.value));\n const locale = computed(() => {\n if (props.locale instanceof Locale)\n return props.locale;\n const config = isObject(props.locale) ? props.locale : {\n id: props.locale,\n firstDayOfWeek: props.firstDayOfWeek,\n masks: props.masks\n };\n return new Locale(config, props.timezone);\n });\n const masks2 = computed(() => locale.value.masks);\n const minDate = computed(() => props.minDate);\n const maxDate = computed(() => props.maxDate);\n const disabledDates = computed(() => {\n const dates = props.disabledDates ? [...props.disabledDates] : [];\n if (minDate.value != null) {\n dates.push({\n start: null,\n end: addDays(locale.value.toDate(minDate.value), -1)\n });\n }\n if (maxDate.value != null) {\n dates.push({\n start: addDays(locale.value.toDate(maxDate.value), 1),\n end: null\n });\n }\n return locale.value.ranges(dates);\n });\n const disabledAttribute = computed(() => {\n return new Attribute(\n {\n key: \"disabled\",\n dates: disabledDates.value,\n order: 100\n },\n theme.value,\n locale.value\n );\n });\n const context = {\n color,\n isDark,\n displayMode,\n theme,\n locale,\n masks: masks2,\n minDate,\n maxDate,\n disabledDates,\n disabledAttribute\n };\n provide(contextKey$4, context);\n return context;\n}\nfunction useOrCreateBase(props) {\n return inject(contextKey$4, () => createBase(props), true);\n}\nfunction contextKey$3(slotKey) {\n return `__vc_slot_${slotKey}__`;\n}\nfunction provideSlots(slots, remap = {}) {\n Object.keys(slots).forEach((slotKey) => {\n provide(contextKey$3(remap[slotKey] ?? slotKey), slots[slotKey]);\n });\n}\nfunction useSlot(slotKey) {\n return inject(contextKey$3(slotKey), null);\n}\nconst propsDef$1 = {\n ...propsDef$2,\n view: {\n type: String,\n default: \"monthly\",\n validator(value) {\n return [\"daily\", \"weekly\", \"monthly\"].includes(value);\n }\n },\n rows: {\n type: Number,\n default: 1\n },\n columns: {\n type: Number,\n default: 1\n },\n step: Number,\n titlePosition: {\n type: String,\n default: () => getDefault(\"titlePosition\")\n },\n navVisibility: {\n type: String,\n default: () => getDefault(\"navVisibility\")\n },\n showWeeknumbers: [Boolean, String],\n showIsoWeeknumbers: [Boolean, String],\n expanded: Boolean,\n borderless: Boolean,\n transparent: Boolean,\n initialPage: Object,\n initialPagePosition: { type: Number, default: 1 },\n minPage: Object,\n maxPage: Object,\n transition: String,\n attributes: Array,\n trimWeeks: Boolean,\n disablePageSwipe: Boolean\n};\nconst emitsDef = [\n \"dayclick\",\n \"daymouseenter\",\n \"daymouseleave\",\n \"dayfocusin\",\n \"dayfocusout\",\n \"daykeydown\",\n \"weeknumberclick\",\n \"transition-start\",\n \"transition-end\",\n \"did-move\",\n \"update:view\",\n \"update:pages\"\n];\nconst contextKey$2 = Symbol(\"__vc_calendar_context__\");\nfunction createCalendar(props, { slots, emit }) {\n const containerRef = ref(null);\n const focusedDay = ref(null);\n const focusableDay = ref((/* @__PURE__ */ new Date()).getDate());\n const inTransition = ref(false);\n const navPopoverId = ref(Symbol());\n const dayPopoverId = ref(Symbol());\n const _view = ref(props.view);\n const _pages = ref([]);\n const transitionName = ref(\"\");\n let transitionPromise = null;\n let removeHandlers2 = null;\n provideSlots(slots);\n const {\n theme,\n color,\n displayMode,\n locale,\n masks: masks2,\n minDate,\n maxDate,\n disabledAttribute,\n disabledDates\n } = useOrCreateBase(props);\n const count = computed(() => props.rows * props.columns);\n const step = computed(() => props.step || count.value);\n const firstPage = computed(() => head_1(_pages.value) ?? null);\n const lastPage = computed(() => last_1(_pages.value) ?? null);\n const minPage = computed(\n () => props.minPage || (minDate.value ? getDateAddress(minDate.value) : null)\n );\n const maxPage = computed(\n () => props.maxPage || (maxDate.value ? getDateAddress(maxDate.value) : null)\n );\n const navVisibility = computed(() => props.navVisibility);\n const showWeeknumbers = computed(() => !!props.showWeeknumbers);\n const showIsoWeeknumbers = computed(() => !!props.showIsoWeeknumbers);\n const isMonthly = computed(() => _view.value === \"monthly\");\n const isWeekly = computed(() => _view.value === \"weekly\");\n const isDaily = computed(() => _view.value === \"daily\");\n const onTransitionBeforeEnter = () => {\n inTransition.value = true;\n emit(\"transition-start\");\n };\n const onTransitionAfterEnter = () => {\n inTransition.value = false;\n emit(\"transition-end\");\n if (transitionPromise) {\n transitionPromise.resolve(true);\n transitionPromise = null;\n }\n };\n const addPages$1 = (address, count2, view = _view.value) => {\n return addPages(address, count2, view, locale.value);\n };\n const getDateAddress = (date) => {\n return getPageAddressForDate(date, _view.value, locale.value);\n };\n const refreshDisabled = (day) => {\n if (!disabledAttribute.value || !attributeContext.value)\n return;\n day.isDisabled = attributeContext.value.cellExists(\n disabledAttribute.value.key,\n day.dayIndex\n );\n };\n const refreshFocusable = (day) => {\n day.isFocusable = day.inMonth && day.day === focusableDay.value;\n };\n const forDays = (pages, fn) => {\n for (const page of pages) {\n for (const day of page.days) {\n if (fn(day) === false)\n return;\n }\n }\n };\n const days = computed(\n () => _pages.value.reduce((result, page) => {\n result.push(...page.viewDays);\n return result;\n }, [])\n );\n const attributes = computed(() => {\n const result = [];\n (props.attributes || []).forEach((attr, i) => {\n if (!attr || !attr.dates)\n return;\n result.push(\n new Attribute(\n {\n ...attr,\n order: attr.order || 0\n },\n theme.value,\n locale.value\n )\n );\n });\n if (disabledAttribute.value) {\n result.push(disabledAttribute.value);\n }\n return result;\n });\n const hasAttributes = computed(() => arrayHasItems(attributes.value));\n const attributeContext = computed(() => {\n const ctx = new DateRangeContext();\n attributes.value.forEach((attr) => {\n attr.ranges.forEach((range) => {\n ctx.render(attr, range, days.value);\n });\n });\n return ctx;\n });\n const dayCells = computed(() => {\n return days.value.reduce((result, day) => {\n result[day.dayIndex] = { day, cells: [] };\n result[day.dayIndex].cells.push(...attributeContext.value.getCells(day));\n return result;\n }, {});\n });\n const getWeeknumberPosition = (column, columnFromEnd) => {\n const showWeeknumbers2 = props.showWeeknumbers || props.showIsoWeeknumbers;\n if (showWeeknumbers2 == null)\n return \"\";\n if (isBoolean_1(showWeeknumbers2)) {\n return showWeeknumbers2 ? \"left\" : \"\";\n }\n if (showWeeknumbers2.startsWith(\"right\")) {\n return columnFromEnd > 1 ? \"right\" : showWeeknumbers2;\n }\n return column > 1 ? \"left\" : showWeeknumbers2;\n };\n const getPageForAttributes = () => {\n var _a, _b;\n if (!hasAttributes.value)\n return null;\n const attr = attributes.value.find((attr2) => attr2.pinPage) || attributes.value[0];\n if (!attr || !attr.hasRanges)\n return null;\n const [range] = attr.ranges;\n const date = ((_a = range.start) == null ? void 0 : _a.date) || ((_b = range.end) == null ? void 0 : _b.date);\n return date ? getDateAddress(date) : null;\n };\n const getDefaultInitialPage = () => {\n if (pageIsValid(firstPage.value))\n return firstPage.value;\n const page = getPageForAttributes();\n if (pageIsValid(page))\n return page;\n return getDateAddress(/* @__PURE__ */ new Date());\n };\n const getTargetPageRange = (page, opts = {}) => {\n const { view = _view.value, position = 1, force } = opts;\n const pagesToAdd = position > 0 ? 1 - position : -(count.value + position);\n let fromPage = addPages$1(page, pagesToAdd, view);\n let toPage = addPages$1(fromPage, count.value - 1, view);\n if (!force) {\n if (pageIsBeforePage(fromPage, minPage.value)) {\n fromPage = minPage.value;\n } else if (pageIsAfterPage(toPage, maxPage.value)) {\n fromPage = addPages$1(maxPage.value, 1 - count.value);\n }\n toPage = addPages$1(fromPage, count.value - 1);\n }\n return { fromPage, toPage };\n };\n const getPageTransition = (oldPage, newPage, defaultTransition = \"\") => {\n if (defaultTransition === \"none\" || defaultTransition === \"fade\")\n return defaultTransition;\n if ((oldPage == null ? void 0 : oldPage.view) !== (newPage == null ? void 0 : newPage.view))\n return \"fade\";\n const moveNext2 = pageIsAfterPage(newPage, oldPage);\n const movePrev2 = pageIsBeforePage(newPage, oldPage);\n if (!moveNext2 && !movePrev2) {\n return \"fade\";\n }\n if (defaultTransition === \"slide-v\") {\n return movePrev2 ? \"slide-down\" : \"slide-up\";\n }\n return movePrev2 ? \"slide-right\" : \"slide-left\";\n };\n const refreshPages = (opts = {}) => {\n return new Promise((resolve, reject) => {\n const { position = 1, force = false, transition } = opts;\n const page = pageIsValid(opts.page) ? opts.page : getDefaultInitialPage();\n const { fromPage } = getTargetPageRange(page, {\n position,\n force\n });\n const pages = [];\n for (let i = 0; i < count.value; i++) {\n const newPage = addPages$1(fromPage, i);\n const position2 = i + 1;\n const row = Math.ceil(position2 / props.columns);\n const rowFromEnd = props.rows - row + 1;\n const column = position2 % props.columns || props.columns;\n const columnFromEnd = props.columns - column + 1;\n const weeknumberPosition = getWeeknumberPosition(column, columnFromEnd);\n pages.push(\n locale.value.getPage({\n ...newPage,\n view: _view.value,\n titlePosition: props.titlePosition,\n trimWeeks: props.trimWeeks,\n position: position2,\n row,\n rowFromEnd,\n column,\n columnFromEnd,\n showWeeknumbers: showWeeknumbers.value,\n showIsoWeeknumbers: showIsoWeeknumbers.value,\n weeknumberPosition\n })\n );\n }\n transitionName.value = getPageTransition(\n _pages.value[0],\n pages[0],\n transition\n );\n _pages.value = pages;\n if (transitionName.value && transitionName.value !== \"none\") {\n transitionPromise = {\n resolve,\n reject\n };\n } else {\n resolve(true);\n }\n });\n };\n const targetBy = (pages) => {\n const fromPage = firstPage.value ?? getDateAddress(/* @__PURE__ */ new Date());\n return addPages$1(fromPage, pages);\n };\n const canMove = (target, opts = {}) => {\n const page = pageIsValid(target) ? target : getDateAddress(target);\n Object.assign(\n opts,\n getTargetPageRange(page, {\n ...opts,\n force: true\n })\n );\n const pagesInRange = pageRangeToArray(\n opts.fromPage,\n opts.toPage,\n _view.value,\n locale.value\n ).map((p) => pageIsBetweenPages(p, minPage.value, maxPage.value));\n return pagesInRange.some((val) => val);\n };\n const canMoveBy = (pages, opts = {}) => {\n return canMove(targetBy(pages), opts);\n };\n const canMovePrev = computed(() => canMoveBy(-step.value));\n const canMoveNext = computed(() => canMoveBy(step.value));\n const move = async (target, opts = {}) => {\n if (!opts.force && !canMove(target, opts))\n return false;\n if (opts.fromPage && !pageIsEqualToPage(opts.fromPage, firstPage.value)) {\n hidePopover({ id: navPopoverId.value, hideDelay: 0 });\n if (opts.view) {\n skipWatcher(\"view\", 10);\n _view.value = opts.view;\n }\n await refreshPages({\n ...opts,\n page: opts.fromPage,\n position: 1,\n force: true\n });\n emit(\"did-move\", _pages.value);\n }\n return true;\n };\n const moveBy = (pages, opts = {}) => {\n return move(targetBy(pages), opts);\n };\n const movePrev = () => {\n return moveBy(-step.value);\n };\n const moveNext = () => {\n return moveBy(step.value);\n };\n const tryFocusDate = (date) => {\n const inMonth = isMonthly.value ? \".in-month\" : \"\";\n const daySelector = `.id-${locale.value.getDayId(date)}${inMonth}`;\n const selector = `${daySelector}.vc-focusable, ${daySelector} .vc-focusable`;\n const el = containerRef.value;\n if (el) {\n const focusableEl = el.querySelector(selector);\n if (focusableEl) {\n focusableEl.focus();\n return true;\n }\n }\n return false;\n };\n const focusDate = async (date, opts = {}) => {\n if (tryFocusDate(date))\n return true;\n await move(date, opts);\n return tryFocusDate(date);\n };\n const onDayClick = (day, event) => {\n focusableDay.value = day.day;\n emit(\"dayclick\", day, event);\n };\n const onDayMouseenter = (day, event) => {\n emit(\"daymouseenter\", day, event);\n };\n const onDayMouseleave = (day, event) => {\n emit(\"daymouseleave\", day, event);\n };\n const onDayFocusin = (day, event) => {\n focusableDay.value = day.day;\n focusedDay.value = day;\n day.isFocused = true;\n emit(\"dayfocusin\", day, event);\n };\n const onDayFocusout = (day, event) => {\n focusedDay.value = null;\n day.isFocused = false;\n emit(\"dayfocusout\", day, event);\n };\n const onDayKeydown = (day, event) => {\n emit(\"daykeydown\", day, event);\n const date = day.noonDate;\n let newDate = null;\n switch (event.key) {\n case \"ArrowLeft\": {\n newDate = addDays(date, -1);\n break;\n }\n case \"ArrowRight\": {\n newDate = addDays(date, 1);\n break;\n }\n case \"ArrowUp\": {\n newDate = addDays(date, -7);\n break;\n }\n case \"ArrowDown\": {\n newDate = addDays(date, 7);\n break;\n }\n case \"Home\": {\n newDate = addDays(date, -day.weekdayPosition + 1);\n break;\n }\n case \"End\": {\n newDate = addDays(date, day.weekdayPositionFromEnd);\n break;\n }\n case \"PageUp\": {\n if (event.altKey) {\n newDate = addYears(date, -1);\n } else {\n newDate = addMonths(date, -1);\n }\n break;\n }\n case \"PageDown\": {\n if (event.altKey) {\n newDate = addYears(date, 1);\n } else {\n newDate = addMonths(date, 1);\n }\n break;\n }\n }\n if (newDate) {\n event.preventDefault();\n focusDate(newDate).catch();\n }\n };\n const onKeydown = (event) => {\n const day = focusedDay.value;\n if (day != null) {\n onDayKeydown(day, event);\n }\n };\n const onWeeknumberClick = (week, event) => {\n emit(\"weeknumberclick\", week, event);\n };\n refreshPages({\n page: props.initialPage,\n position: props.initialPagePosition\n });\n onMounted(() => {\n if (!props.disablePageSwipe && containerRef.value) {\n removeHandlers2 = addHorizontalSwipeHandler(\n containerRef.value,\n ({ toLeft = false, toRight = false }) => {\n if (toLeft) {\n moveNext();\n } else if (toRight) {\n movePrev();\n }\n },\n getDefault(\"touch\")\n );\n }\n });\n onUnmounted(() => {\n _pages.value = [];\n if (removeHandlers2)\n removeHandlers2();\n });\n watch(\n () => locale.value,\n () => {\n refreshPages();\n }\n );\n watch(\n () => count.value,\n () => refreshPages()\n );\n watch(\n () => props.view,\n () => _view.value = props.view\n );\n watch(\n () => _view.value,\n () => {\n handleWatcher(\"view\", () => {\n refreshPages();\n });\n emit(\"update:view\", _view.value);\n }\n );\n watch(\n () => focusableDay.value,\n () => {\n forDays(_pages.value, (day) => refreshFocusable(day));\n }\n );\n watchEffect(() => {\n emit(\"update:pages\", _pages.value);\n forDays(_pages.value, (day) => {\n refreshDisabled(day);\n refreshFocusable(day);\n });\n });\n const context = {\n emit,\n containerRef,\n focusedDay,\n inTransition,\n navPopoverId,\n dayPopoverId,\n view: _view,\n pages: _pages,\n transitionName,\n theme,\n color,\n displayMode,\n locale,\n masks: masks2,\n attributes,\n disabledAttribute,\n disabledDates,\n attributeContext,\n days,\n dayCells,\n count,\n step,\n firstPage,\n lastPage,\n canMovePrev,\n canMoveNext,\n minPage,\n maxPage,\n isMonthly,\n isWeekly,\n isDaily,\n navVisibility,\n showWeeknumbers,\n showIsoWeeknumbers,\n getDateAddress,\n canMove,\n canMoveBy,\n move,\n moveBy,\n movePrev,\n moveNext,\n onTransitionBeforeEnter,\n onTransitionAfterEnter,\n tryFocusDate,\n focusDate,\n onKeydown,\n onDayKeydown,\n onDayClick,\n onDayMouseenter,\n onDayMouseleave,\n onDayFocusin,\n onDayFocusout,\n onWeeknumberClick\n };\n provide(contextKey$2, context);\n return context;\n}\nfunction useCalendar() {\n const context = inject(contextKey$2);\n if (context)\n return context;\n throw new Error(\n \"Calendar context missing. Please verify this component is nested within a valid context provider.\"\n );\n}\nconst _sfc_main$k = defineComponent({\n inheritAttrs: false,\n emits: [\"before-show\", \"after-show\", \"before-hide\", \"after-hide\"],\n props: {\n id: { type: [Number, String, Symbol], required: true },\n showDelay: { type: Number, default: 0 },\n hideDelay: { type: Number, default: 110 },\n boundarySelector: { type: String }\n },\n setup(props, { emit }) {\n let timeout = void 0;\n const popoverRef = ref();\n let resizeObserver = null;\n let popper = null;\n const state2 = reactive({\n isVisible: false,\n target: null,\n data: null,\n transition: \"slide-fade\",\n placement: \"bottom\",\n direction: \"\",\n positionFixed: false,\n modifiers: [],\n isInteractive: true,\n visibility: \"click\",\n isHovered: false,\n isFocused: false,\n autoHide: false,\n force: false\n });\n function updateDirection(placement) {\n if (placement)\n state2.direction = placement.split(\"-\")[0];\n }\n function onPopperUpdate({ placement, options }) {\n updateDirection(placement || (options == null ? void 0 : options.placement));\n }\n const popperOptions = computed(() => {\n return {\n placement: state2.placement,\n strategy: state2.positionFixed ? \"fixed\" : \"absolute\",\n boundary: \"\",\n modifiers: [\n {\n name: \"onUpdate\",\n enabled: true,\n phase: \"afterWrite\",\n fn: onPopperUpdate\n },\n ...state2.modifiers || []\n ],\n onFirstUpdate: onPopperUpdate\n };\n });\n const alignment = computed(() => {\n const isLeftRight = state2.direction === \"left\" || state2.direction === \"right\";\n let alignment2 = \"\";\n if (state2.placement) {\n const parts = state2.placement.split(\"-\");\n if (parts.length > 1)\n alignment2 = parts[1];\n }\n if ([\"start\", \"top\", \"left\"].includes(alignment2)) {\n return isLeftRight ? \"top\" : \"left\";\n }\n if ([\"end\", \"bottom\", \"right\"].includes(alignment2)) {\n return isLeftRight ? \"bottom\" : \"right\";\n }\n return isLeftRight ? \"middle\" : \"center\";\n });\n function destroyPopper() {\n if (popper) {\n popper.destroy();\n popper = null;\n }\n }\n function setupPopper() {\n nextTick(() => {\n const el = resolveEl(state2.target);\n if (!el || !popoverRef.value)\n return;\n if (popper && popper.state.elements.reference !== el) {\n destroyPopper();\n }\n if (!popper) {\n popper = createPopper(\n el,\n popoverRef.value,\n popperOptions.value\n );\n } else {\n popper.update();\n }\n });\n }\n function updateState(newState) {\n Object.assign(state2, omit(newState, \"force\"));\n }\n function setTimer(delay, fn) {\n clearTimeout(timeout);\n if (delay > 0) {\n timeout = setTimeout(fn, delay);\n } else {\n fn();\n }\n }\n function isCurrentTarget(target) {\n if (!target || !popper)\n return false;\n const el = resolveEl(target);\n return el === popper.state.elements.reference;\n }\n async function show(opts = {}) {\n if (state2.force)\n return;\n if (opts.force)\n state2.force = true;\n setTimer(opts.showDelay ?? props.showDelay, () => {\n if (state2.isVisible) {\n state2.force = false;\n }\n updateState({\n ...opts,\n isVisible: true\n });\n setupPopper();\n });\n }\n function hide(opts = {}) {\n if (!popper)\n return;\n if (opts.target && !isCurrentTarget(opts.target))\n return;\n if (state2.force)\n return;\n if (opts.force)\n state2.force = true;\n setTimer(opts.hideDelay ?? props.hideDelay, () => {\n if (!state2.isVisible)\n state2.force = false;\n state2.isVisible = false;\n });\n }\n function toggle(opts = {}) {\n if (opts.target == null)\n return;\n if (state2.isVisible && isCurrentTarget(opts.target)) {\n hide(opts);\n } else {\n show(opts);\n }\n }\n function onDocumentClick(e) {\n if (!popper)\n return;\n const popperRef = popper.state.elements.reference;\n if (!popoverRef.value || !popperRef) {\n return;\n }\n const target = e.target;\n if (elementContains(popoverRef.value, target) || elementContains(popperRef, target)) {\n return;\n }\n hide({ force: true });\n }\n function onDocumentKeydown(e) {\n if (e.key === \"Esc\" || e.key === \"Escape\") {\n hide();\n }\n }\n function onDocumentShowPopover({ detail }) {\n if (!detail.id || detail.id !== props.id)\n return;\n show(detail);\n }\n function onDocumentHidePopover({ detail }) {\n if (!detail.id || detail.id !== props.id)\n return;\n hide(detail);\n }\n function onDocumentTogglePopover({ detail }) {\n if (!detail.id || detail.id !== props.id)\n return;\n toggle(detail);\n }\n function addEvents() {\n on(document, \"keydown\", onDocumentKeydown);\n on(document, \"click\", onDocumentClick);\n on(document, \"show-popover\", onDocumentShowPopover);\n on(document, \"hide-popover\", onDocumentHidePopover);\n on(document, \"toggle-popover\", onDocumentTogglePopover);\n }\n function removeEvents() {\n off(document, \"keydown\", onDocumentKeydown);\n off(document, \"click\", onDocumentClick);\n off(document, \"show-popover\", onDocumentShowPopover);\n off(document, \"hide-popover\", onDocumentHidePopover);\n off(document, \"toggle-popover\", onDocumentTogglePopover);\n }\n function beforeEnter(el) {\n emit(\"before-show\", el);\n }\n function afterEnter(el) {\n state2.force = false;\n emit(\"after-show\", el);\n }\n function beforeLeave(el) {\n emit(\"before-hide\", el);\n }\n function afterLeave(el) {\n state2.force = false;\n destroyPopper();\n emit(\"after-hide\", el);\n }\n function onClick(e) {\n e.stopPropagation();\n }\n function onMouseOver() {\n state2.isHovered = true;\n if (state2.isInteractive && [\"hover\", \"hover-focus\"].includes(state2.visibility)) {\n show();\n }\n }\n function onMouseLeave() {\n state2.isHovered = false;\n if (!popper)\n return;\n const popperRef = popper.state.elements.reference;\n if (state2.autoHide && !state2.isFocused && (!popperRef || popperRef !== document.activeElement) && [\"hover\", \"hover-focus\"].includes(state2.visibility)) {\n hide();\n }\n }\n function onFocusIn() {\n state2.isFocused = true;\n if (state2.isInteractive && [\"focus\", \"hover-focus\"].includes(state2.visibility)) {\n show();\n }\n }\n function onFocusOut(e) {\n if ([\"focus\", \"hover-focus\"].includes(state2.visibility) && (!e.relatedTarget || !elementContains(popoverRef.value, e.relatedTarget))) {\n state2.isFocused = false;\n if (!state2.isHovered && state2.autoHide)\n hide();\n }\n }\n function cleanupRO() {\n if (resizeObserver != null) {\n resizeObserver.disconnect();\n resizeObserver = null;\n }\n }\n watch(\n () => popoverRef.value,\n (val) => {\n cleanupRO();\n if (!val)\n return;\n resizeObserver = new ResizeObserver(() => {\n if (popper)\n popper.update();\n });\n resizeObserver.observe(val);\n }\n );\n watch(() => state2.placement, updateDirection, {\n immediate: true\n });\n onMounted(() => {\n addEvents();\n });\n onUnmounted(() => {\n destroyPopper();\n cleanupRO();\n removeEvents();\n });\n return {\n ...toRefs(state2),\n popoverRef,\n alignment,\n hide,\n setupPopper,\n beforeEnter,\n afterEnter,\n beforeLeave,\n afterLeave,\n onClick,\n onMouseOver,\n onMouseLeave,\n onFocusIn,\n onFocusOut\n };\n }\n});\nconst Popover_vue_vue_type_style_index_0_lang = \"\";\nconst _export_sfc = (sfc, props) => {\n const target = sfc.__vccOpts || sfc;\n for (const [key, val] of props) {\n target[key] = val;\n }\n return target;\n};\nfunction _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {\n return openBlock(), createElementBlock(\"div\", {\n class: normalizeClass([\"vc-popover-content-wrapper\", { \"is-interactive\": _ctx.isInteractive }]),\n ref: \"popoverRef\",\n onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args)),\n onMouseover: _cache[1] || (_cache[1] = (...args) => _ctx.onMouseOver && _ctx.onMouseOver(...args)),\n onMouseleave: _cache[2] || (_cache[2] = (...args) => _ctx.onMouseLeave && _ctx.onMouseLeave(...args)),\n onFocusin: _cache[3] || (_cache[3] = (...args) => _ctx.onFocusIn && _ctx.onFocusIn(...args)),\n onFocusout: _cache[4] || (_cache[4] = (...args) => _ctx.onFocusOut && _ctx.onFocusOut(...args))\n }, [\n createVNode(Transition, {\n name: `vc-${_ctx.transition}`,\n appear: \"\",\n onBeforeEnter: _ctx.beforeEnter,\n onAfterEnter: _ctx.afterEnter,\n onBeforeLeave: _ctx.beforeLeave,\n onAfterLeave: _ctx.afterLeave\n }, {\n default: withCtx(() => [\n _ctx.isVisible ? (openBlock(), createElementBlock(\"div\", mergeProps({\n key: 0,\n tabindex: \"-1\",\n class: `vc-popover-content direction-${_ctx.direction}`\n }, _ctx.$attrs), [\n renderSlot(_ctx.$slots, \"default\", {\n direction: _ctx.direction,\n alignment: _ctx.alignment,\n data: _ctx.data,\n hide: _ctx.hide\n }, () => [\n createTextVNode(toDisplayString(_ctx.data), 1)\n ]),\n createElementVNode(\"span\", {\n class: normalizeClass([\n \"vc-popover-caret\",\n `direction-${_ctx.direction}`,\n `align-${_ctx.alignment}`\n ])\n }, null, 2)\n ], 16)) : createCommentVNode(\"\", true)\n ]),\n _: 3\n }, 8, [\"name\", \"onBeforeEnter\", \"onAfterEnter\", \"onBeforeLeave\", \"onAfterLeave\"])\n ], 34);\n}\nconst Popover = /* @__PURE__ */ _export_sfc(_sfc_main$k, [[\"render\", _sfc_render$7]]);\nconst _hoisted_1$c = { class: \"vc-day-popover-row\" };\nconst _hoisted_2$b = {\n key: 0,\n class: \"vc-day-popover-row-indicator\"\n};\nconst _hoisted_3$9 = { class: \"vc-day-popover-row-label\" };\nconst _sfc_main$j = /* @__PURE__ */ defineComponent({\n __name: \"PopoverRow\",\n props: {\n attribute: null\n },\n setup(__props) {\n const props = __props;\n const indicator = computed(() => {\n const { content, highlight, dot, bar, popover } = props.attribute;\n if (popover && popover.hideIndicator)\n return null;\n if (content) {\n return {\n class: `vc-bar vc-day-popover-row-bar vc-attr vc-${content.base.color}`\n };\n }\n if (highlight) {\n return {\n class: `vc-highlight-bg-solid vc-day-popover-row-highlight vc-attr vc-${highlight.base.color}`\n };\n }\n if (dot) {\n return {\n class: `vc-dot vc-attr vc-${dot.base.color}`\n };\n }\n if (bar) {\n return {\n class: `vc-bar vc-day-popover-row-bar vc-attr vc-${bar.base.color}`\n };\n }\n return null;\n });\n return (_ctx, _cache) => {\n return openBlock(), createElementBlock(\"div\", _hoisted_1$c, [\n unref(indicator) ? (openBlock(), createElementBlock(\"div\", _hoisted_2$b, [\n createElementVNode(\"span\", {\n class: normalizeClass(unref(indicator).class)\n }, null, 2)\n ])) : createCommentVNode(\"\", true),\n createElementVNode(\"div\", _hoisted_3$9, [\n renderSlot(_ctx.$slots, \"default\", {}, () => [\n createTextVNode(toDisplayString(__props.attribute.popover ? __props.attribute.popover.label : \"No content provided\"), 1)\n ])\n ])\n ]);\n };\n }\n});\nconst PopoverRow_vue_vue_type_style_index_0_lang = \"\";\nconst __default__$3 = {\n inheritAttrs: false\n};\nconst _sfc_main$i = /* @__PURE__ */ defineComponent({\n ...__default__$3,\n __name: \"CalendarSlot\",\n props: {\n name: null\n },\n setup(__props) {\n const props = __props;\n const slot = useSlot(props.name);\n return (_ctx, _cache) => {\n return unref(slot) ? (openBlock(), createBlock(resolveDynamicComponent(unref(slot)), normalizeProps(mergeProps({ key: 0 }, _ctx.$attrs)), null, 16)) : renderSlot(_ctx.$slots, \"default\", { key: 1 });\n };\n }\n});\nconst _hoisted_1$b = { class: \"vc-day-popover-container\" };\nconst _hoisted_2$a = {\n key: 0,\n class: \"vc-day-popover-header\"\n};\nconst _sfc_main$h = /* @__PURE__ */ defineComponent({\n __name: \"CalendarDayPopover\",\n setup(__props) {\n const { dayPopoverId, displayMode, color, masks: masks2, locale } = useCalendar();\n function format(date, mask) {\n return locale.value.formatDate(date, mask);\n }\n function dayTitle(day) {\n return locale.value.formatDate(day.date, masks2.value.dayPopover);\n }\n return (_ctx, _cache) => {\n return openBlock(), createBlock(Popover, {\n id: unref(dayPopoverId),\n class: normalizeClass([`vc-${unref(color)}`, `vc-${unref(displayMode)}`])\n }, {\n default: withCtx(({ data: { day, attributes }, hide }) => [\n createVNode(_sfc_main$i, {\n name: \"day-popover\",\n day,\n \"day-title\": dayTitle(day),\n attributes,\n format,\n masks: unref(masks2),\n hide\n }, {\n default: withCtx(() => [\n createElementVNode(\"div\", _hoisted_1$b, [\n unref(masks2).dayPopover ? (openBlock(), createElementBlock(\"div\", _hoisted_2$a, toDisplayString(dayTitle(day)), 1)) : createCommentVNode(\"\", true),\n (openBlock(true), createElementBlock(Fragment, null, renderList(attributes, (attribute) => {\n return openBlock(), createBlock(_sfc_main$j, {\n key: attribute.key,\n attribute\n }, null, 8, [\"attribute\"]);\n }), 128))\n ])\n ]),\n _: 2\n }, 1032, [\"day\", \"day-title\", \"attributes\", \"masks\", \"hide\"])\n ]),\n _: 1\n }, 8, [\"id\", \"class\"]);\n };\n }\n});\nconst _sfc_main$g = {};\nconst _hoisted_1$a = {\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\",\n viewBox: \"0 0 24 24\"\n};\nconst _hoisted_2$9 = /* @__PURE__ */ createElementVNode(\"polyline\", { points: \"9 18 15 12 9 6\" }, null, -1);\nconst _hoisted_3$8 = [\n _hoisted_2$9\n];\nfunction _sfc_render$6(_ctx, _cache) {\n return openBlock(), createElementBlock(\"svg\", _hoisted_1$a, _hoisted_3$8);\n}\nconst IconChevronRight = /* @__PURE__ */ _export_sfc(_sfc_main$g, [[\"render\", _sfc_render$6]]);\nconst _sfc_main$f = {};\nconst _hoisted_1$9 = {\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\",\n viewBox: \"0 0 24 24\"\n};\nconst _hoisted_2$8 = /* @__PURE__ */ createElementVNode(\"polyline\", { points: \"15 18 9 12 15 6\" }, null, -1);\nconst _hoisted_3$7 = [\n _hoisted_2$8\n];\nfunction _sfc_render$5(_ctx, _cache) {\n return openBlock(), createElementBlock(\"svg\", _hoisted_1$9, _hoisted_3$7);\n}\nconst IconChevronLeft = /* @__PURE__ */ _export_sfc(_sfc_main$f, [[\"render\", _sfc_render$5]]);\nconst _sfc_main$e = {};\nconst _hoisted_1$8 = {\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\",\n viewBox: \"0 0 24 24\"\n};\nconst _hoisted_2$7 = /* @__PURE__ */ createElementVNode(\"polyline\", { points: \"6 9 12 15 18 9\" }, null, -1);\nconst _hoisted_3$6 = [\n _hoisted_2$7\n];\nfunction _sfc_render$4(_ctx, _cache) {\n return openBlock(), createElementBlock(\"svg\", _hoisted_1$8, _hoisted_3$6);\n}\nconst IconChevronDown = /* @__PURE__ */ _export_sfc(_sfc_main$e, [[\"render\", _sfc_render$4]]);\nconst _sfc_main$d = {};\nconst _hoisted_1$7 = {\n fill: \"none\",\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\",\n \"stroke-width\": \"2\",\n viewBox: \"0 0 24 24\"\n};\nconst _hoisted_2$6 = /* @__PURE__ */ createElementVNode(\"path\", { d: \"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z\" }, null, -1);\nconst _hoisted_3$5 = [\n _hoisted_2$6\n];\nfunction _sfc_render$3(_ctx, _cache) {\n return openBlock(), createElementBlock(\"svg\", _hoisted_1$7, _hoisted_3$5);\n}\nconst IconClock = /* @__PURE__ */ _export_sfc(_sfc_main$d, [[\"render\", _sfc_render$3]]);\nconst icons = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n IconChevronDown,\n IconChevronLeft,\n IconChevronRight,\n IconClock\n}, Symbol.toStringTag, { value: \"Module\" }));\nconst _sfc_main$c = /* @__PURE__ */ defineComponent({\n __name: \"BaseIcon\",\n props: {\n name: { type: String, required: true },\n width: { type: String },\n height: { type: String },\n size: { type: String, default: \"26\" },\n viewBox: { type: String }\n },\n setup(__props) {\n const props = __props;\n const width = computed(() => props.width || props.size);\n const height = computed(() => props.height || props.size);\n const icon = computed(() => icons[`Icon${props.name}`]);\n return (_ctx, _cache) => {\n return openBlock(), createBlock(resolveDynamicComponent(unref(icon)), {\n width: unref(width),\n height: unref(height),\n class: \"vc-base-icon\"\n }, null, 8, [\"width\", \"height\"]);\n };\n }\n});\nconst BaseIcon_vue_vue_type_style_index_0_lang = \"\";\nconst _hoisted_1$6 = [\"disabled\"];\nconst _hoisted_2$5 = {\n key: 1,\n class: \"vc-title-wrapper\"\n};\nconst _hoisted_3$4 = {\n type: \"button\",\n class: \"vc-title\"\n};\nconst _hoisted_4$3 = [\"disabled\"];\nconst _sfc_main$b = /* @__PURE__ */ defineComponent({\n __name: \"CalendarHeader\",\n props: {\n page: null,\n layout: null,\n isLg: { type: Boolean },\n isXl: { type: Boolean },\n is2xl: { type: Boolean },\n hideTitle: { type: Boolean },\n hideArrows: { type: Boolean }\n },\n setup(__props) {\n const props = __props;\n const {\n navPopoverId,\n navVisibility,\n canMovePrev,\n movePrev,\n canMoveNext,\n moveNext\n } = useCalendar();\n const navPlacement = computed(() => {\n switch (props.page.titlePosition) {\n case \"left\":\n return \"bottom-start\";\n case \"right\":\n return \"bottom-end\";\n default:\n return \"bottom\";\n }\n });\n const navPopoverOptions = computed(() => {\n const { page } = props;\n return {\n id: navPopoverId.value,\n visibility: navVisibility.value,\n placement: navPlacement.value,\n modifiers: [{ name: \"flip\", options: { fallbackPlacements: [\"bottom\"] } }],\n data: { page },\n isInteractive: true\n };\n });\n const titleLeft = computed(() => props.page.titlePosition.includes(\"left\"));\n const titleRight = computed(() => props.page.titlePosition.includes(\"right\"));\n const layout_ = computed(() => {\n if (props.layout)\n return props.layout;\n if (titleLeft.value)\n return \"tu-pn\";\n if (titleRight.value)\n return \"pn-tu\";\n return \"p-tu-n;\";\n });\n const show = computed(() => {\n return {\n prev: layout_.value.includes(\"p\") && !props.hideArrows,\n title: layout_.value.includes(\"t\") && !props.hideTitle,\n next: layout_.value.includes(\"n\") && !props.hideArrows\n };\n });\n const gridStyle = computed(() => {\n const gridTemplateColumns = layout_.value.split(\"\").map((l) => {\n switch (l) {\n case \"p\":\n return \"[prev] auto\";\n case \"n\":\n return \"[next] auto\";\n case \"t\":\n return \"[title] auto\";\n case \"-\":\n return \"1fr\";\n default:\n return \"\";\n }\n }).join(\" \");\n return { gridTemplateColumns };\n });\n return (_ctx, _cache) => {\n return openBlock(), createElementBlock(\"div\", {\n class: normalizeClass([\"vc-header\", { \"is-lg\": __props.isLg, \"is-xl\": __props.isXl, \"is-2xl\": __props.is2xl }]),\n style: normalizeStyle(unref(gridStyle))\n }, [\n unref(show).prev ? (openBlock(), createElementBlock(\"button\", {\n key: 0,\n type: \"button\",\n class: \"vc-arrow vc-prev vc-focus\",\n disabled: !unref(canMovePrev),\n onClick: _cache[0] || (_cache[0] = //@ts-ignore\n (...args) => unref(movePrev) && unref(movePrev)(...args)),\n onKeydown: _cache[1] || (_cache[1] = withKeys(\n //@ts-ignore\n (...args) => unref(movePrev) && unref(movePrev)(...args),\n [\"space\", \"enter\"]\n ))\n }, [\n createVNode(_sfc_main$i, {\n name: \"header-prev-button\",\n disabled: !unref(canMovePrev)\n }, {\n default: withCtx(() => [\n createVNode(_sfc_main$c, {\n name: \"ChevronLeft\",\n size: \"24\"\n })\n ]),\n _: 1\n }, 8, [\"disabled\"])\n ], 40, _hoisted_1$6)) : createCommentVNode(\"\", true),\n unref(show).title ? (openBlock(), createElementBlock(\"div\", _hoisted_2$5, [\n createVNode(_sfc_main$i, { name: \"header-title-wrapper\" }, {\n default: withCtx(() => [\n withDirectives((openBlock(), createElementBlock(\"button\", _hoisted_3$4, [\n createVNode(_sfc_main$i, {\n name: \"header-title\",\n title: __props.page.title\n }, {\n default: withCtx(() => [\n createElementVNode(\"span\", null, toDisplayString(__props.page.title), 1)\n ]),\n _: 1\n }, 8, [\"title\"])\n ])), [\n [unref(popoverDirective), unref(navPopoverOptions)]\n ])\n ]),\n _: 1\n })\n ])) : createCommentVNode(\"\", true),\n unref(show).next ? (openBlock(), createElementBlock(\"button\", {\n key: 2,\n type: \"button\",\n class: \"vc-arrow vc-next vc-focus\",\n disabled: !unref(canMoveNext),\n onClick: _cache[2] || (_cache[2] = //@ts-ignore\n (...args) => unref(moveNext) && unref(moveNext)(...args)),\n onKeydown: _cache[3] || (_cache[3] = withKeys(\n //@ts-ignore\n (...args) => unref(moveNext) && unref(moveNext)(...args),\n [\"space\", \"enter\"]\n ))\n }, [\n createVNode(_sfc_main$i, {\n name: \"header-next-button\",\n disabled: !unref(canMoveNext)\n }, {\n default: withCtx(() => [\n createVNode(_sfc_main$c, {\n name: \"ChevronRight\",\n size: \"24\"\n })\n ]),\n _: 1\n }, 8, [\"disabled\"])\n ], 40, _hoisted_4$3)) : createCommentVNode(\"\", true)\n ], 6);\n };\n }\n});\nconst CalendarHeader_vue_vue_type_style_index_0_lang = \"\";\nconst contextKey$1 = Symbol(\"__vc_page_context__\");\nfunction createPage(page) {\n const { locale, getDateAddress, canMove } = useCalendar();\n function getMonthItems(year, mask) {\n const { month: thisMonth, year: thisYear } = getDateAddress(/* @__PURE__ */ new Date());\n return getMonthDates().map((d, i) => {\n const month = i + 1;\n return {\n month,\n year,\n id: getPageId(month, year),\n label: locale.value.formatDate(d, mask),\n ariaLabel: locale.value.formatDate(d, \"MMMM\"),\n isActive: month === page.value.month && year === page.value.year,\n isCurrent: month === thisMonth && year === thisYear,\n isDisabled: !canMove(\n { month, year },\n { position: page.value.position }\n )\n };\n });\n }\n function getYearItems(startYear, endYear) {\n const { year: thisYear } = getDateAddress(/* @__PURE__ */ new Date());\n const { position } = page.value;\n const items = [];\n for (let year = startYear; year <= endYear; year += 1) {\n const enabled = [...Array(12).keys()].some(\n (m) => canMove({ month: m + 1, year }, { position })\n );\n items.push({\n year,\n id: year.toString(),\n label: year.toString(),\n ariaLabel: year.toString(),\n isActive: year === page.value.year,\n isCurrent: year === thisYear,\n isDisabled: !enabled\n });\n }\n return items;\n }\n const context = { page, getMonthItems, getYearItems };\n provide(contextKey$1, context);\n return context;\n}\nfunction usePage() {\n const context = inject(contextKey$1);\n if (context)\n return context;\n throw new Error(\n \"Page context missing. Please verify this component is nested within a valid context provider.\"\n );\n}\nconst _hoisted_1$5 = { class: \"vc-nav-header\" };\nconst _hoisted_2$4 = [\"disabled\"];\nconst _hoisted_3$3 = [\"disabled\"];\nconst _hoisted_4$2 = { class: \"vc-nav-items\" };\nconst _hoisted_5$2 = [\"data-id\", \"aria-label\", \"disabled\", \"onClick\", \"onKeydown\"];\nconst _sfc_main$a = /* @__PURE__ */ defineComponent({\n __name: \"CalendarNav\",\n setup(__props) {\n const { masks: masks2, move } = useCalendar();\n const { page, getMonthItems, getYearItems } = usePage();\n const monthMode = ref(true);\n const yearGroupCount = 12;\n const selectedYear = ref(page.value.year);\n const selectedYearGroup = ref(getYearGroupIndex(page.value.year));\n const navContainer = ref(null);\n function focusFirstItem() {\n setTimeout(() => {\n if (navContainer.value == null)\n return;\n const focusableEl = navContainer.value.querySelector(\n \".vc-nav-item:not(:disabled)\"\n );\n if (focusableEl) {\n focusableEl.focus();\n }\n }, 10);\n }\n function getYearGroupIndex(year) {\n return Math.floor(year / yearGroupCount);\n }\n function toggleMode() {\n monthMode.value = !monthMode.value;\n }\n function getStartYear(groupIndex) {\n return groupIndex * yearGroupCount;\n }\n function getEndYear(groupIndex) {\n return yearGroupCount * (groupIndex + 1) - 1;\n }\n function movePrev() {\n if (!prevItemsEnabled.value)\n return;\n if (monthMode.value) {\n movePrevYear();\n }\n movePrevYearGroup();\n }\n function moveNext() {\n if (!nextItemsEnabled.value)\n return;\n if (monthMode.value) {\n moveNextYear();\n }\n moveNextYearGroup();\n }\n function movePrevYear() {\n selectedYear.value--;\n }\n function moveNextYear() {\n selectedYear.value++;\n }\n function movePrevYearGroup() {\n selectedYearGroup.value--;\n }\n function moveNextYearGroup() {\n selectedYearGroup.value++;\n }\n const monthItems = computed(\n () => getMonthItems(selectedYear.value, masks2.value.navMonths).map((item) => ({\n ...item,\n click: () => move(\n { month: item.month, year: item.year },\n { position: page.value.position }\n )\n }))\n );\n const prevMonthItems = computed(\n () => getMonthItems(selectedYear.value - 1, masks2.value.navMonths)\n );\n const prevMonthItemsEnabled = computed(\n () => prevMonthItems.value.some((i) => !i.isDisabled)\n );\n const nextMonthItems = computed(\n () => getMonthItems(selectedYear.value + 1, masks2.value.navMonths)\n );\n const nextMonthItemsEnabled = computed(\n () => nextMonthItems.value.some((i) => !i.isDisabled)\n );\n const yearItems = computed(\n () => getYearItems(\n getStartYear(selectedYearGroup.value),\n getEndYear(selectedYearGroup.value)\n ).map((item) => {\n return {\n ...item,\n click: () => {\n selectedYear.value = item.year;\n monthMode.value = true;\n focusFirstItem();\n }\n };\n })\n );\n const prevYearItems = computed(\n () => getYearItems(\n getStartYear(selectedYearGroup.value - 1),\n getEndYear(selectedYearGroup.value - 1)\n )\n );\n const prevYearItemsEnabled = computed(\n () => prevYearItems.value.some((i) => !i.isDisabled)\n );\n const nextYearItems = computed(\n () => getYearItems(\n getStartYear(selectedYearGroup.value + 1),\n getEndYear(selectedYearGroup.value + 1)\n )\n );\n const nextYearItemsEnabled = computed(\n () => nextYearItems.value.some((i) => !i.isDisabled)\n );\n const activeItems = computed(\n () => monthMode.value ? monthItems.value : yearItems.value\n );\n const prevItemsEnabled = computed(\n () => monthMode.value ? prevMonthItemsEnabled.value : prevYearItemsEnabled.value\n );\n const nextItemsEnabled = computed(\n () => monthMode.value ? nextMonthItemsEnabled.value : nextYearItemsEnabled.value\n );\n const firstYear = computed(() => head_1(yearItems.value.map((i) => i.year)));\n const lastYear = computed(() => last_1(yearItems.value.map((i) => i.year)));\n const title2 = computed(() => {\n return monthMode.value ? selectedYear.value : `${firstYear.value} - ${lastYear.value}`;\n });\n watchEffect(() => {\n selectedYear.value = page.value.year;\n focusFirstItem();\n });\n watch(\n () => selectedYear.value,\n (val) => selectedYearGroup.value = getYearGroupIndex(val)\n );\n onMounted(() => focusFirstItem());\n return (_ctx, _cache) => {\n return openBlock(), createElementBlock(\"div\", {\n class: \"vc-nav-container\",\n ref_key: \"navContainer\",\n ref: navContainer\n }, [\n createElementVNode(\"div\", _hoisted_1$5, [\n createElementVNode(\"button\", {\n type: \"button\",\n class: \"vc-nav-arrow is-left vc-focus\",\n disabled: !unref(prevItemsEnabled),\n onClick: movePrev,\n onKeydown: _cache[0] || (_cache[0] = (e) => unref(onSpaceOrEnter)(e, movePrev))\n }, [\n createVNode(_sfc_main$i, {\n name: \"nav-prev-button\",\n move: movePrev,\n disabled: !unref(prevItemsEnabled)\n }, {\n default: withCtx(() => [\n createVNode(_sfc_main$c, {\n name: \"ChevronLeft\",\n width: \"22px\",\n height: \"24px\"\n })\n ]),\n _: 1\n }, 8, [\"disabled\"])\n ], 40, _hoisted_2$4),\n createElementVNode(\"button\", {\n type: \"button\",\n class: \"vc-nav-title vc-focus\",\n onClick: toggleMode,\n onKeydown: _cache[1] || (_cache[1] = (e) => unref(onSpaceOrEnter)(e, toggleMode))\n }, toDisplayString(unref(title2)), 33),\n createElementVNode(\"button\", {\n type: \"button\",\n class: \"vc-nav-arrow is-right vc-focus\",\n disabled: !unref(nextItemsEnabled),\n onClick: moveNext,\n onKeydown: _cache[2] || (_cache[2] = (e) => unref(onSpaceOrEnter)(e, moveNext))\n }, [\n createVNode(_sfc_main$i, {\n name: \"nav-next-button\",\n move: moveNext,\n disabled: !unref(nextItemsEnabled)\n }, {\n default: withCtx(() => [\n createVNode(_sfc_main$c, {\n name: \"ChevronRight\",\n width: \"22px\",\n height: \"24px\"\n })\n ]),\n _: 1\n }, 8, [\"disabled\"])\n ], 40, _hoisted_3$3)\n ]),\n createElementVNode(\"div\", _hoisted_4$2, [\n (openBlock(true), createElementBlock(Fragment, null, renderList(unref(activeItems), (item) => {\n return openBlock(), createElementBlock(\"button\", {\n key: item.label,\n type: \"button\",\n \"data-id\": item.id,\n \"aria-label\": item.ariaLabel,\n class: normalizeClass([\"vc-nav-item vc-focus\", [\n item.isActive ? \"is-active\" : item.isCurrent ? \"is-current\" : \"\"\n ]]),\n disabled: item.isDisabled,\n onClick: item.click,\n onKeydown: (e) => unref(onSpaceOrEnter)(e, item.click)\n }, toDisplayString(item.label), 43, _hoisted_5$2);\n }), 128))\n ])\n ], 512);\n };\n }\n});\nconst CalendarNav_vue_vue_type_style_index_0_lang = \"\";\nconst _sfc_main$9 = /* @__PURE__ */ defineComponent({\n __name: \"CalendarPageProvider\",\n props: {\n page: null\n },\n setup(__props) {\n const props = __props;\n createPage(toRef(props, \"page\"));\n return (_ctx, _cache) => {\n return renderSlot(_ctx.$slots, \"default\");\n };\n }\n});\nconst _sfc_main$8 = /* @__PURE__ */ defineComponent({\n __name: \"CalendarNavPopover\",\n setup(__props) {\n const { navPopoverId, color, displayMode } = useCalendar();\n return (_ctx, _cache) => {\n return openBlock(), createBlock(Popover, {\n id: unref(navPopoverId),\n class: normalizeClass([\"vc-nav-popover-container\", `vc-${unref(color)}`, `vc-${unref(displayMode)}`])\n }, {\n default: withCtx(({ data: data2 }) => [\n createVNode(_sfc_main$9, {\n page: data2.page\n }, {\n default: withCtx(() => [\n createVNode(_sfc_main$i, { name: \"nav\" }, {\n default: withCtx(() => [\n createVNode(_sfc_main$a)\n ]),\n _: 1\n })\n ]),\n _: 2\n }, 1032, [\"page\"])\n ]),\n _: 1\n }, 8, [\"id\", \"class\"]);\n };\n }\n});\nconst _sfc_main$7 = defineComponent({\n directives: { popover: popoverDirective },\n components: { CalendarSlot: _sfc_main$i },\n props: {\n day: { type: Object, required: true }\n },\n setup(props) {\n const {\n locale,\n theme,\n attributeContext,\n dayPopoverId,\n onDayClick,\n onDayMouseenter,\n onDayMouseleave,\n onDayFocusin,\n onDayFocusout,\n onDayKeydown\n } = useCalendar();\n const day = computed(() => props.day);\n const attributeCells = computed(() => {\n return attributeContext.value.getCells(day.value);\n });\n const attributes = computed(\n () => attributeCells.value.map((cell) => cell.data)\n );\n const attributedDay = computed(() => {\n return {\n ...day.value,\n attributes: attributes.value,\n attributeCells: attributeCells.value\n };\n });\n function processPopover({ data: attribute }, { popovers: popovers2 }) {\n const { key, customData, popover } = attribute;\n if (!popover)\n return;\n const resolvedPopover = defaults_1(\n {\n key,\n customData,\n attribute\n },\n { ...popover },\n {\n visibility: popover.label ? \"hover\" : \"click\",\n placement: \"bottom\",\n isInteractive: !popover.label\n }\n );\n popovers2.splice(0, 0, resolvedPopover);\n }\n const glyphs = computed(() => {\n const result = {\n ...theme.value.prepareRender({}),\n popovers: []\n };\n attributeCells.value.forEach((cell) => {\n theme.value.render(cell, result);\n processPopover(cell, result);\n });\n return result;\n });\n const highlights = computed(() => glyphs.value.highlights);\n const hasHighlights = computed(() => !!arrayHasItems(highlights.value));\n const content = computed(() => glyphs.value.content);\n const dots = computed(() => glyphs.value.dots);\n const hasDots = computed(() => !!arrayHasItems(dots.value));\n const bars = computed(() => glyphs.value.bars);\n const hasBars = computed(() => !!arrayHasItems(bars.value));\n const popovers = computed(() => glyphs.value.popovers);\n const popoverAttrs = computed(\n () => popovers.value.map((p) => p.attribute)\n );\n const dayContentSlot = useSlot(\"day-content\");\n const dayClasses = computed(() => {\n return [\n \"vc-day\",\n ...day.value.classes,\n { \"vc-day-box-center-center\": !dayContentSlot },\n { \"is-not-in-month\": !props.day.inMonth }\n ];\n });\n const dayContentProps = computed(() => {\n let tabindex;\n if (day.value.isFocusable) {\n tabindex = \"0\";\n } else {\n tabindex = \"-1\";\n }\n const classes = [\n \"vc-day-content vc-focusable vc-focus vc-attr\",\n { \"vc-disabled\": day.value.isDisabled },\n get_1(last_1(highlights.value), \"contentClass\"),\n get_1(last_1(content.value), \"class\") || \"\"\n ];\n const style = {\n ...get_1(last_1(highlights.value), \"contentStyle\"),\n ...get_1(last_1(content.value), \"style\")\n };\n return {\n class: classes,\n style,\n tabindex,\n \"aria-label\": day.value.ariaLabel,\n \"aria-disabled\": day.value.isDisabled ? true : false,\n role: \"button\"\n };\n });\n const dayContentEvents = computed(() => {\n return {\n click(event) {\n onDayClick(attributedDay.value, event);\n },\n mouseenter(event) {\n onDayMouseenter(attributedDay.value, event);\n },\n mouseleave(event) {\n onDayMouseleave(attributedDay.value, event);\n },\n focusin(event) {\n onDayFocusin(attributedDay.value, event);\n },\n focusout(event) {\n onDayFocusout(attributedDay.value, event);\n },\n keydown(event) {\n onDayKeydown(attributedDay.value, event);\n }\n };\n });\n const dayPopover2 = computed(() => {\n if (!arrayHasItems(popovers.value))\n return null;\n return defaults_1(\n {\n id: dayPopoverId.value,\n data: { day, attributes: popoverAttrs.value }\n },\n ...popovers.value\n );\n });\n return {\n attributes,\n attributeCells,\n bars,\n dayClasses,\n dayContentProps,\n dayContentEvents,\n dayPopover: dayPopover2,\n glyphs,\n dots,\n hasDots,\n hasBars,\n highlights,\n hasHighlights,\n locale,\n popovers\n };\n }\n});\nconst CalendarDay_vue_vue_type_style_index_0_lang = \"\";\nconst _hoisted_1$4 = {\n key: 0,\n class: \"vc-highlights vc-day-layer\"\n};\nconst _hoisted_2$3 = {\n key: 1,\n class: \"vc-day-layer vc-day-box-center-bottom\"\n};\nconst _hoisted_3$2 = { class: \"vc-dots\" };\nconst _hoisted_4$1 = {\n key: 2,\n class: \"vc-day-layer vc-day-box-center-bottom\"\n};\nconst _hoisted_5$1 = { class: \"vc-bars\" };\nfunction _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_CalendarSlot = resolveComponent(\"CalendarSlot\");\n const _directive_popover = resolveDirective(\"popover\");\n return openBlock(), createElementBlock(\"div\", {\n class: normalizeClass(_ctx.dayClasses)\n }, [\n _ctx.hasHighlights ? (openBlock(), createElementBlock(\"div\", _hoisted_1$4, [\n (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.highlights, ({ key, wrapperClass, class: bgClass, style }) => {\n return openBlock(), createElementBlock(\"div\", {\n key,\n class: normalizeClass(wrapperClass)\n }, [\n createElementVNode(\"div\", {\n class: normalizeClass(bgClass),\n style: normalizeStyle(style)\n }, null, 6)\n ], 2);\n }), 128))\n ])) : createCommentVNode(\"\", true),\n createVNode(_component_CalendarSlot, {\n name: \"day-content\",\n day: _ctx.day,\n attributes: _ctx.attributes,\n \"attribute-cells\": _ctx.attributeCells,\n dayProps: _ctx.dayContentProps,\n dayEvents: _ctx.dayContentEvents,\n locale: _ctx.locale\n }, {\n default: withCtx(() => [\n withDirectives((openBlock(), createElementBlock(\"div\", mergeProps(_ctx.dayContentProps, toHandlers(_ctx.dayContentEvents, true)), [\n createTextVNode(toDisplayString(_ctx.day.label), 1)\n ], 16)), [\n [_directive_popover, _ctx.dayPopover]\n ])\n ]),\n _: 1\n }, 8, [\"day\", \"attributes\", \"attribute-cells\", \"dayProps\", \"dayEvents\", \"locale\"]),\n _ctx.hasDots ? (openBlock(), createElementBlock(\"div\", _hoisted_2$3, [\n createElementVNode(\"div\", _hoisted_3$2, [\n (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.dots, ({ key, class: bgClass, style }) => {\n return openBlock(), createElementBlock(\"span\", {\n key,\n class: normalizeClass(bgClass),\n style: normalizeStyle(style)\n }, null, 6);\n }), 128))\n ])\n ])) : createCommentVNode(\"\", true),\n _ctx.hasBars ? (openBlock(), createElementBlock(\"div\", _hoisted_4$1, [\n createElementVNode(\"div\", _hoisted_5$1, [\n (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.bars, ({ key, class: bgClass, style }) => {\n return openBlock(), createElementBlock(\"span\", {\n key,\n class: normalizeClass(bgClass),\n style: normalizeStyle(style)\n }, null, 6);\n }), 128))\n ])\n ])) : createCommentVNode(\"\", true)\n ], 2);\n}\nconst CalendarDay = /* @__PURE__ */ _export_sfc(_sfc_main$7, [[\"render\", _sfc_render$2]]);\nconst _hoisted_1$3 = { class: \"vc-weekdays\" };\nconst _hoisted_2$2 = [\"onClick\"];\nconst __default__$2 = {\n inheritAttrs: false\n};\nconst _sfc_main$6 = /* @__PURE__ */ defineComponent({\n ...__default__$2,\n __name: \"CalendarPage\",\n setup(__props) {\n const { page } = usePage();\n const { onWeeknumberClick } = useCalendar();\n return (_ctx, _cache) => {\n return openBlock(), createElementBlock(\"div\", {\n class: normalizeClass([\n \"vc-pane\",\n `row-${unref(page).row}`,\n `row-from-end-${unref(page).rowFromEnd}`,\n `column-${unref(page).column}`,\n `column-from-end-${unref(page).columnFromEnd}`\n ]),\n ref: \"pane\"\n }, [\n createVNode(_sfc_main$b, {\n page: unref(page),\n \"is-lg\": \"\",\n \"hide-arrows\": \"\"\n }, null, 8, [\"page\"]),\n createElementVNode(\"div\", {\n class: normalizeClass([\"vc-weeks\", {\n [`vc-show-weeknumbers-${unref(page).weeknumberPosition}`]: unref(page).weeknumberPosition\n }])\n }, [\n createElementVNode(\"div\", _hoisted_1$3, [\n (openBlock(true), createElementBlock(Fragment, null, renderList(unref(page).weekdays, ({ weekday, label }, i) => {\n return openBlock(), createElementBlock(\"div\", {\n key: i,\n class: normalizeClass(`vc-weekday vc-weekday-${weekday}`)\n }, toDisplayString(label), 3);\n }), 128))\n ]),\n (openBlock(true), createElementBlock(Fragment, null, renderList(unref(page).viewWeeks, (week) => {\n return openBlock(), createElementBlock(\"div\", {\n key: `weeknumber-${week.weeknumber}`,\n class: \"vc-week\"\n }, [\n unref(page).weeknumberPosition ? (openBlock(), createElementBlock(\"div\", {\n key: 0,\n class: normalizeClass([\"vc-weeknumber\", `is-${unref(page).weeknumberPosition}`])\n }, [\n createElementVNode(\"span\", {\n class: normalizeClass([\"vc-weeknumber-content\"]),\n onClick: ($event) => unref(onWeeknumberClick)(week, $event)\n }, toDisplayString(week.weeknumberDisplay), 9, _hoisted_2$2)\n ], 2)) : createCommentVNode(\"\", true),\n (openBlock(true), createElementBlock(Fragment, null, renderList(week.days, (day) => {\n return openBlock(), createBlock(CalendarDay, {\n key: day.id,\n day\n }, null, 8, [\"day\"]);\n }), 128))\n ]);\n }), 128))\n ], 2)\n ], 2);\n };\n }\n});\nconst CalendarPage_vue_vue_type_style_index_0_lang = \"\";\nconst _sfc_main$5 = defineComponent({\n components: {\n CalendarHeader: _sfc_main$b,\n CalendarPage: _sfc_main$6,\n CalendarNavPopover: _sfc_main$8,\n CalendarDayPopover: _sfc_main$h,\n CalendarPageProvider: _sfc_main$9,\n CalendarSlot: _sfc_main$i\n },\n props: propsDef$1,\n emit: emitsDef,\n setup(props, { emit, slots }) {\n return createCalendar(props, { emit, slots });\n }\n});\nconst Calendar_vue_vue_type_style_index_0_lang = \"\";\nconst _hoisted_1$2 = { class: \"vc-pane-header-wrapper\" };\nfunction _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_CalendarHeader = resolveComponent(\"CalendarHeader\");\n const _component_CalendarPage = resolveComponent(\"CalendarPage\");\n const _component_CalendarSlot = resolveComponent(\"CalendarSlot\");\n const _component_CalendarPageProvider = resolveComponent(\"CalendarPageProvider\");\n const _component_CalendarDayPopover = resolveComponent(\"CalendarDayPopover\");\n const _component_CalendarNavPopover = resolveComponent(\"CalendarNavPopover\");\n return openBlock(), createElementBlock(Fragment, null, [\n createElementVNode(\"div\", mergeProps({ \"data-helptext\": \"Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year\" }, _ctx.$attrs, {\n class: [\n \"vc-container\",\n `vc-${_ctx.view}`,\n `vc-${_ctx.color}`,\n `vc-${_ctx.displayMode}`,\n {\n \"vc-expanded\": _ctx.expanded,\n \"vc-bordered\": !_ctx.borderless,\n \"vc-transparent\": _ctx.transparent\n }\n ],\n onMouseup: _cache[0] || (_cache[0] = withModifiers(() => {\n }, [\"prevent\"])),\n ref: \"containerRef\"\n }), [\n createElementVNode(\"div\", {\n class: normalizeClass([\"vc-pane-container\", { \"in-transition\": _ctx.inTransition }])\n }, [\n createElementVNode(\"div\", _hoisted_1$2, [\n _ctx.firstPage ? (openBlock(), createBlock(_component_CalendarHeader, {\n key: 0,\n page: _ctx.firstPage,\n \"is-lg\": \"\",\n \"hide-title\": \"\"\n }, null, 8, [\"page\"])) : createCommentVNode(\"\", true)\n ]),\n createVNode(Transition, {\n name: `vc-${_ctx.transitionName}`,\n onBeforeEnter: _ctx.onTransitionBeforeEnter,\n onAfterEnter: _ctx.onTransitionAfterEnter\n }, {\n default: withCtx(() => [\n (openBlock(), createElementBlock(\"div\", {\n key: _ctx.pages[0].id,\n class: \"vc-pane-layout\",\n style: normalizeStyle({\n gridTemplateColumns: `repeat(${_ctx.columns}, 1fr)`\n })\n }, [\n (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.pages, (page) => {\n return openBlock(), createBlock(_component_CalendarPageProvider, {\n key: page.id,\n page\n }, {\n default: withCtx(() => [\n createVNode(_component_CalendarSlot, {\n name: \"page\",\n page\n }, {\n default: withCtx(() => [\n createVNode(_component_CalendarPage)\n ]),\n _: 2\n }, 1032, [\"page\"])\n ]),\n _: 2\n }, 1032, [\"page\"]);\n }), 128))\n ], 4))\n ]),\n _: 1\n }, 8, [\"name\", \"onBeforeEnter\", \"onAfterEnter\"]),\n createVNode(_component_CalendarSlot, { name: \"footer\" })\n ], 2)\n ], 16),\n createVNode(_component_CalendarDayPopover),\n createVNode(_component_CalendarNavPopover)\n ], 64);\n}\nconst Calendar = /* @__PURE__ */ _export_sfc(_sfc_main$5, [[\"render\", _sfc_render$1]]);\nconst contextKey = Symbol(\"__vc_date_picker_context__\");\nconst propsDef = {\n ...propsDef$2,\n mode: { type: String, default: \"date\" },\n modelValue: {\n type: [Number, String, Date, Object]\n },\n modelModifiers: {\n type: Object,\n default: () => ({})\n },\n rules: [String, Object],\n is24hr: Boolean,\n hideTimeHeader: Boolean,\n timeAccuracy: { type: Number, default: 2 },\n isRequired: Boolean,\n isRange: Boolean,\n updateOnInput: {\n type: Boolean,\n default: () => getDefault(\"datePicker.updateOnInput\")\n },\n inputDebounce: {\n type: Number,\n default: () => getDefault(\"datePicker.inputDebounce\")\n },\n popover: {\n type: [Boolean, Object],\n default: true\n },\n dragAttribute: Object,\n selectAttribute: Object,\n attributes: [Object, Array]\n};\nconst emits = [\n \"update:modelValue\",\n \"drag\",\n \"dayclick\",\n \"daykeydown\",\n \"popover-will-show\",\n \"popover-did-show\",\n \"popover-will-hide\",\n \"popover-did-hide\"\n];\nfunction createDatePicker(props, { emit, slots }) {\n provideSlots(slots, { footer: \"dp-footer\" });\n const baseCtx = createBase(props);\n const { locale, masks: masks2, disabledAttribute } = baseCtx;\n const showCalendar = ref(false);\n const datePickerPopoverId = ref(Symbol());\n const dateValue = ref(null);\n const dragValue = ref(null);\n const inputValues = ref([\"\", \"\"]);\n const popoverRef = ref(null);\n const calendarRef = ref(null);\n let updateTimeout = void 0;\n let dragTrackingValue;\n let watchValue = true;\n const isRange = computed(() => {\n return props.isRange || props.modelModifiers.range === true;\n });\n const valueStart = computed(\n () => isRange.value && dateValue.value != null ? dateValue.value.start : null\n );\n const valueEnd = computed(\n () => isRange.value && dateValue.value != null ? dateValue.value.end : null\n );\n const isDateMode = computed(() => props.mode.toLowerCase() === \"date\");\n const isDateTimeMode = computed(\n () => props.mode.toLowerCase() === \"datetime\"\n );\n const isTimeMode = computed(() => props.mode.toLowerCase() === \"time\");\n const isDragging = computed(() => !!dragValue.value);\n const modelConfig = computed(() => {\n let type = \"date\";\n if (props.modelModifiers.number)\n type = \"number\";\n if (props.modelModifiers.string)\n type = \"string\";\n const mask = masks2.value.modelValue || \"iso\";\n return normalizeConfig2({ type, mask });\n });\n const dateParts = computed(\n () => getDateParts2(dragValue.value ?? dateValue.value)\n );\n const inputMask = computed(() => {\n if (isTimeMode.value) {\n return props.is24hr ? masks2.value.inputTime24hr : masks2.value.inputTime;\n }\n if (isDateTimeMode.value) {\n return props.is24hr ? masks2.value.inputDateTime24hr : masks2.value.inputDateTime;\n }\n return masks2.value.input;\n });\n const inputMaskHasTime = computed(() => /[Hh]/g.test(inputMask.value));\n const inputMaskHasDate = computed(\n () => /[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(inputMask.value)\n );\n const inputMaskPatch = computed(() => {\n if (inputMaskHasTime.value && inputMaskHasDate.value) {\n return \"dateTime\";\n }\n if (inputMaskHasDate.value)\n return \"date\";\n if (inputMaskHasTime.value)\n return \"time\";\n return void 0;\n });\n const popover = computed(() => {\n var _a;\n const target = ((_a = popoverRef.value) == null ? void 0 : _a.$el.previousElementSibling) ?? void 0;\n return defaultsDeep_1({}, props.popover, getDefault(\"datePicker.popover\"), {\n target\n });\n });\n const popoverEvents = computed(\n () => getPopoverEventHandlers({\n ...popover.value,\n id: datePickerPopoverId.value\n })\n );\n const inputValue = computed(() => {\n return isRange.value ? {\n start: inputValues.value[0],\n end: inputValues.value[1]\n } : inputValues.value[0];\n });\n const inputEvents = computed(() => {\n const events = [\"start\", \"end\"].map((target) => ({\n input: onInputInput(target),\n change: onInputChange(target),\n keyup: onInputKeyup,\n ...props.popover && popoverEvents.value\n }));\n return isRange.value ? {\n start: events[0],\n end: events[1]\n } : events[0];\n });\n const selectAttribute = computed(() => {\n if (!hasValue(dateValue.value))\n return null;\n const attribute = {\n key: \"select-drag\",\n ...props.selectAttribute,\n dates: dateValue.value,\n pinPage: true\n };\n const { dot, bar, highlight, content } = attribute;\n if (!dot && !bar && !highlight && !content) {\n attribute.highlight = true;\n }\n return attribute;\n });\n const dragAttribute = computed(() => {\n if (!isRange.value || !hasValue(dragValue.value)) {\n return null;\n }\n const attribute = {\n key: \"select-drag\",\n ...props.dragAttribute,\n dates: dragValue.value\n };\n const { dot, bar, highlight, content } = attribute;\n if (!dot && !bar && !highlight && !content) {\n attribute.highlight = {\n startEnd: {\n fillMode: \"outline\"\n }\n };\n }\n return attribute;\n });\n const attributes = computed(() => {\n const attrs = isArray(props.attributes) ? [...props.attributes] : [];\n if (dragAttribute.value) {\n attrs.unshift(dragAttribute.value);\n } else if (selectAttribute.value) {\n attrs.unshift(selectAttribute.value);\n }\n return attrs;\n });\n const rules = computed(() => {\n return normalizeConfig2(\n props.rules === \"auto\" ? getAutoRules() : props.rules ?? {}\n );\n });\n function getAutoRules() {\n const _rules = {\n ms: [0, 999],\n sec: [0, 59],\n min: [0, 59],\n hr: [0, 23]\n };\n const accuracy = isDateMode.value ? 0 : props.timeAccuracy;\n return [0, 1].map((i) => {\n switch (accuracy) {\n case 0:\n return {\n hours: _rules.hr[i],\n minutes: _rules.min[i],\n seconds: _rules.sec[i],\n milliseconds: _rules.ms[i]\n };\n case 1:\n return {\n minutes: _rules.min[i],\n seconds: _rules.sec[i],\n milliseconds: _rules.ms[i]\n };\n case 3:\n return { milliseconds: _rules.ms[i] };\n case 4:\n return {};\n default:\n return { seconds: _rules.sec[i], milliseconds: _rules.ms[i] };\n }\n });\n }\n function normalizeConfig2(config2) {\n if (isArray(config2)) {\n if (config2.length === 1)\n return [config2[0], config2[0]];\n return config2;\n }\n return [config2, config2];\n }\n function normalizeDateConfig(config2) {\n return normalizeConfig2(config2).map(\n (c, i) => ({\n ...c,\n rules: rules.value[i]\n })\n );\n }\n function hasDateValue(value) {\n if (value == null)\n return false;\n if (isNumber_1(value))\n return !isNaN(value);\n if (isDate(value))\n return !isNaN(value.getTime());\n if (isString_1(value))\n return value !== \"\";\n return isDateParts(value);\n }\n function hasRangeValue(value) {\n return isObject(value) && \"start\" in value && \"end\" in value && hasDateValue(value.start ?? null) && hasDateValue(value.end ?? null);\n }\n function hasValue(value) {\n return hasRangeValue(value) || hasDateValue(value);\n }\n function valuesAreEqual(a, b) {\n if (a == null && b == null)\n return true;\n if (a == null || b == null)\n return false;\n const aIsDate = isDate(a);\n const bIsDate = isDate(b);\n if (aIsDate && bIsDate)\n return a.getTime() === b.getTime();\n if (aIsDate || bIsDate)\n return false;\n return valuesAreEqual(a.start, b.start) && valuesAreEqual(a.end, b.end);\n }\n function valueIsDisabled(value) {\n if (!hasValue(value) || !disabledAttribute.value)\n return false;\n return disabledAttribute.value.intersectsRange(locale.value.range(value));\n }\n function normalizeValue(value, config2, patch, targetPriority) {\n if (!hasValue(value))\n return null;\n if (hasRangeValue(value)) {\n const start = locale.value.toDate(value.start, {\n ...config2[0],\n fillDate: valueStart.value ?? void 0,\n patch\n });\n const end = locale.value.toDate(value.end, {\n ...config2[1],\n fillDate: valueEnd.value ?? void 0,\n patch\n });\n return sortRange({ start, end }, targetPriority);\n }\n return locale.value.toDateOrNull(value, {\n ...config2[0],\n fillDate: dateValue.value,\n patch\n });\n }\n function denormalizeValue(value, config2) {\n if (hasRangeValue(value)) {\n return {\n start: locale.value.fromDate(value.start, config2[0]),\n end: locale.value.fromDate(value.end, config2[1])\n };\n }\n if (isRange.value) {\n return null;\n }\n return locale.value.fromDate(value, config2[0]);\n }\n function updateValue(value, opts = {}) {\n clearTimeout(updateTimeout);\n return new Promise((resolve) => {\n const { debounce = 0, ...args } = opts;\n if (debounce > 0) {\n updateTimeout = window.setTimeout(() => {\n resolve(forceUpdateValue(value, args));\n }, debounce);\n } else {\n resolve(forceUpdateValue(value, args));\n }\n });\n }\n function forceUpdateValue(value, {\n config: config2 = modelConfig.value,\n patch = \"dateTime\",\n clearIfEqual = false,\n formatInput: fInput = true,\n hidePopover: hPopover = false,\n dragging = isDragging.value,\n targetPriority,\n moveToValue: mValue = false\n } = {}) {\n const normalizedConfig = normalizeDateConfig(config2);\n let normalizedValue = normalizeValue(\n value,\n normalizedConfig,\n patch,\n targetPriority\n );\n const isDisabled = valueIsDisabled(normalizedValue);\n if (isDisabled) {\n if (dragging)\n return null;\n normalizedValue = dateValue.value;\n hPopover = false;\n } else if (normalizedValue == null && props.isRequired) {\n normalizedValue = dateValue.value;\n } else if (\n // Clear value if same value was passed\n normalizedValue != null && valuesAreEqual(dateValue.value, normalizedValue) && clearIfEqual\n ) {\n normalizedValue = null;\n }\n const valueRef = dragging ? dragValue : dateValue;\n const notify = !valuesAreEqual(valueRef.value, normalizedValue);\n valueRef.value = normalizedValue;\n if (!dragging)\n dragValue.value = null;\n const denormalizedValue = denormalizeValue(\n normalizedValue,\n modelConfig.value\n );\n if (notify) {\n watchValue = false;\n emit(dragging ? \"drag\" : \"update:modelValue\", denormalizedValue);\n nextTick(() => watchValue = true);\n }\n if (hPopover && !dragging)\n hidePopover$1();\n if (fInput)\n formatInput();\n if (mValue) {\n nextTick(() => moveToValue(targetPriority ?? \"start\"));\n }\n return denormalizedValue;\n }\n function formatInput() {\n nextTick(() => {\n const config2 = normalizeDateConfig({\n type: \"string\",\n mask: inputMask.value\n });\n const value = denormalizeValue(\n dragValue.value ?? dateValue.value,\n config2\n );\n if (isRange.value) {\n inputValues.value = [value && value.start, value && value.end];\n } else {\n inputValues.value = [value, \"\"];\n }\n });\n }\n function onInputUpdate(inputValue2, target, opts) {\n inputValues.value.splice(target === \"start\" ? 0 : 1, 1, inputValue2);\n const value = isRange.value ? {\n start: inputValues.value[0],\n end: inputValues.value[1] || inputValues.value[0]\n } : inputValue2;\n const config2 = {\n type: \"string\",\n mask: inputMask.value\n };\n updateValue(value, {\n ...opts,\n config: config2,\n patch: inputMaskPatch.value,\n targetPriority: target,\n moveToValue: true\n });\n }\n function onInputInput(target) {\n return (e) => {\n if (!props.updateOnInput)\n return;\n onInputUpdate(e.currentTarget.value, target, {\n formatInput: false,\n hidePopover: false,\n debounce: props.inputDebounce\n });\n };\n }\n function onInputChange(target) {\n return (e) => {\n onInputUpdate(e.currentTarget.value, target, {\n formatInput: true,\n hidePopover: false\n });\n };\n }\n function onInputKeyup(e) {\n if (e.key !== \"Escape\")\n return;\n updateValue(dateValue.value, {\n formatInput: true,\n hidePopover: true\n });\n }\n function getDateParts2(value) {\n if (isRange.value) {\n return [\n value && value.start ? locale.value.getDateParts(value.start) : null,\n value && value.end ? locale.value.getDateParts(value.end) : null\n ];\n }\n return [value ? locale.value.getDateParts(value) : null];\n }\n function cancelDrag() {\n dragValue.value = null;\n formatInput();\n }\n function onPopoverBeforeShow(el) {\n emit(\"popover-will-show\", el);\n }\n function onPopoverAfterShow(el) {\n emit(\"popover-did-show\", el);\n }\n function onPopoverBeforeHide(el) {\n cancelDrag();\n emit(\"popover-will-hide\", el);\n }\n function onPopoverAfterHide(el) {\n emit(\"popover-did-hide\", el);\n }\n function handleDayClick(day) {\n const opts = {\n patch: \"date\",\n formatInput: true,\n hidePopover: true\n };\n if (isRange.value) {\n const dragging = !isDragging.value;\n if (dragging) {\n dragTrackingValue = { start: day.startDate, end: day.endDate };\n } else if (dragTrackingValue != null) {\n dragTrackingValue.end = day.date;\n }\n updateValue(dragTrackingValue, {\n ...opts,\n dragging\n });\n } else {\n updateValue(day.date, {\n ...opts,\n clearIfEqual: !props.isRequired\n });\n }\n }\n function onDayClick(day, event) {\n handleDayClick(day);\n emit(\"dayclick\", day, event);\n }\n function onDayKeydown(day, event) {\n switch (event.key) {\n case \" \":\n case \"Enter\": {\n handleDayClick(day);\n event.preventDefault();\n break;\n }\n case \"Escape\": {\n hidePopover$1();\n }\n }\n emit(\"daykeydown\", day, event);\n }\n function onDayMouseEnter(day, event) {\n if (!isDragging.value || dragTrackingValue == null)\n return;\n dragTrackingValue.end = day.date;\n updateValue(sortRange(dragTrackingValue), {\n patch: \"date\",\n formatInput: true\n });\n }\n function showPopover$1(opts = {}) {\n showPopover({\n ...popover.value,\n ...opts,\n isInteractive: true,\n id: datePickerPopoverId.value\n });\n }\n function hidePopover$1(opts = {}) {\n hidePopover({\n hideDelay: 10,\n force: true,\n ...popover.value,\n ...opts,\n id: datePickerPopoverId.value\n });\n }\n function togglePopover$1(opts) {\n togglePopover({\n ...popover.value,\n ...opts,\n isInteractive: true,\n id: datePickerPopoverId.value\n });\n }\n function sortRange(range, priority) {\n const { start, end } = range;\n if (start > end) {\n switch (priority) {\n case \"start\":\n return { start, end: start };\n case \"end\":\n return { start: end, end };\n default:\n return { start: end, end: start };\n }\n }\n return { start, end };\n }\n async function move(target, opts = {}) {\n if (calendarRef.value == null)\n return false;\n return calendarRef.value.move(target, opts);\n }\n async function moveBy(pages, opts = {}) {\n if (calendarRef.value == null)\n return false;\n return calendarRef.value.moveBy(pages, opts);\n }\n async function moveToValue(target, opts = {}) {\n const dValue = dateValue.value;\n if (calendarRef.value == null || !hasValue(dValue))\n return false;\n const start = target !== \"end\";\n const position = start ? 1 : -1;\n const date = hasRangeValue(dValue) ? start ? dValue.start : dValue.end : dValue;\n const page = getPageAddressForDate(date, \"monthly\", locale.value);\n return calendarRef.value.move(page, { position, ...opts });\n }\n watch(\n () => props.isRange,\n (val) => {\n if (val) {\n console.warn(\n \"The `is-range` prop will be deprecated in future releases. Please use the `range` modifier.\"\n );\n }\n },\n { immediate: true }\n );\n watch(\n () => isRange.value,\n () => {\n forceUpdateValue(null, { formatInput: true });\n }\n );\n watch(\n () => inputMask.value,\n () => formatInput()\n );\n watch(\n () => props.modelValue,\n (val) => {\n if (!watchValue)\n return;\n forceUpdateValue(val, {\n formatInput: true,\n hidePopover: false\n });\n }\n );\n watch(\n () => rules.value,\n () => {\n if (isObject(props.rules)) {\n forceUpdateValue(props.modelValue, {\n formatInput: true,\n hidePopover: false\n });\n }\n }\n );\n watch(\n () => props.timezone,\n () => {\n forceUpdateValue(dateValue.value, { formatInput: true });\n }\n );\n const config = normalizeConfig2(modelConfig.value);\n dateValue.value = normalizeValue(\n props.modelValue ?? null,\n config,\n \"dateTime\"\n );\n onMounted(() => {\n forceUpdateValue(props.modelValue, {\n formatInput: true,\n hidePopover: false\n });\n });\n nextTick(() => showCalendar.value = true);\n const context = {\n ...baseCtx,\n showCalendar,\n datePickerPopoverId,\n popoverRef,\n popoverEvents,\n calendarRef,\n isRange,\n isTimeMode,\n isDateTimeMode,\n is24hr: toRef(props, \"is24hr\"),\n hideTimeHeader: toRef(props, \"hideTimeHeader\"),\n timeAccuracy: toRef(props, \"timeAccuracy\"),\n isDragging,\n inputValue,\n inputEvents,\n dateParts,\n attributes,\n rules,\n move,\n moveBy,\n moveToValue,\n updateValue,\n showPopover: showPopover$1,\n hidePopover: hidePopover$1,\n togglePopover: togglePopover$1,\n onDayClick,\n onDayKeydown,\n onDayMouseEnter,\n onPopoverBeforeShow,\n onPopoverAfterShow,\n onPopoverBeforeHide,\n onPopoverAfterHide\n };\n provide(contextKey, context);\n return context;\n}\nfunction useDatePicker() {\n const context = inject(contextKey);\n if (context)\n return context;\n throw new Error(\n \"DatePicker context missing. Please verify this component is nested within a valid context provider.\"\n );\n}\nconst _amOptions = [\n { value: 0, label: \"12\" },\n { value: 1, label: \"1\" },\n { value: 2, label: \"2\" },\n { value: 3, label: \"3\" },\n { value: 4, label: \"4\" },\n { value: 5, label: \"5\" },\n { value: 6, label: \"6\" },\n { value: 7, label: \"7\" },\n { value: 8, label: \"8\" },\n { value: 9, label: \"9\" },\n { value: 10, label: \"10\" },\n { value: 11, label: \"11\" }\n];\nconst _pmOptions = [\n { value: 12, label: \"12\" },\n { value: 13, label: \"1\" },\n { value: 14, label: \"2\" },\n { value: 15, label: \"3\" },\n { value: 16, label: \"4\" },\n { value: 17, label: \"5\" },\n { value: 18, label: \"6\" },\n { value: 19, label: \"7\" },\n { value: 20, label: \"8\" },\n { value: 21, label: \"9\" },\n { value: 22, label: \"10\" },\n { value: 23, label: \"11\" }\n];\nfunction createTimePicker(props) {\n const ctx = useDatePicker();\n const {\n locale,\n isRange,\n isTimeMode,\n dateParts,\n rules,\n is24hr,\n hideTimeHeader,\n timeAccuracy,\n updateValue: updateDpValue\n } = ctx;\n function updateParts(newParts) {\n newParts = Object.assign(parts.value, newParts);\n let newValue = null;\n if (isRange.value) {\n const start = isStart.value ? newParts : dateParts.value[0];\n const end = isStart.value ? dateParts.value[1] : newParts;\n newValue = { start, end };\n } else {\n newValue = newParts;\n }\n updateDpValue(newValue, {\n patch: \"time\",\n targetPriority: isStart.value ? \"start\" : \"end\",\n moveToValue: true\n });\n }\n const isStart = computed(() => props.position === 0);\n const parts = computed(\n () => dateParts.value[props.position] || { isValid: false }\n );\n const partsValid = computed(() => isDateParts(parts.value));\n const isValid = computed(() => !!parts.value.isValid);\n const showHeader = computed(() => {\n return !hideTimeHeader.value && isValid.value;\n });\n const date = computed(() => {\n if (!partsValid.value)\n return null;\n let date2 = locale.value.toDate(parts.value);\n if (parts.value.hours === 24) {\n date2 = new Date(date2.getTime() - 1);\n }\n return date2;\n });\n const hours2 = computed({\n get() {\n return parts.value.hours;\n },\n set(val) {\n updateParts({ hours: val });\n }\n });\n const minutes = computed({\n get() {\n return parts.value.minutes;\n },\n set(val) {\n updateParts({ minutes: val });\n }\n });\n const seconds = computed({\n get() {\n return parts.value.seconds;\n },\n set(val) {\n updateParts({ seconds: val });\n }\n });\n const milliseconds = computed({\n get() {\n return parts.value.milliseconds;\n },\n set(val) {\n updateParts({ milliseconds: val });\n }\n });\n const isAM = computed({\n get() {\n return parts.value.hours < 12;\n },\n set(value) {\n value = String(value).toLowerCase() == \"true\";\n let hValue = hours2.value;\n if (value && hValue >= 12) {\n hValue -= 12;\n } else if (!value && hValue < 12) {\n hValue += 12;\n }\n updateParts({ hours: hValue });\n }\n });\n const options = computed(\n () => getDatePartsOptions(parts.value, rules.value[props.position])\n );\n const amHourOptions = computed(() => {\n return _amOptions.filter(\n (opt) => options.value.hours.some((ho) => ho.value === opt.value)\n );\n });\n const pmHourOptions = computed(() => {\n return _pmOptions.filter(\n (opt) => options.value.hours.some((ho) => ho.value === opt.value)\n );\n });\n const hourOptions = computed(() => {\n if (is24hr.value)\n return options.value.hours;\n if (isAM.value)\n return amHourOptions.value;\n return pmHourOptions.value;\n });\n const isAMOptions = computed(() => {\n const result = [];\n if (arrayHasItems(amHourOptions.value))\n result.push({ value: true, label: \"AM\" });\n if (arrayHasItems(pmHourOptions.value))\n result.push({ value: false, label: \"PM\" });\n return result;\n });\n return {\n ...ctx,\n showHeader,\n timeAccuracy,\n parts,\n isValid,\n date,\n hours: hours2,\n minutes,\n seconds,\n milliseconds,\n options,\n hourOptions,\n isAM,\n isAMOptions,\n is24hr\n };\n}\nconst _hoisted_1$1 = [\"value\"];\nconst _hoisted_2$1 = [\"value\", \"disabled\"];\nconst _hoisted_3$1 = {\n key: 1,\n class: \"vc-base-sizer\",\n \"aria-hidden\": \"true\"\n};\nconst __default__$1 = {\n inheritAttrs: false\n};\nconst _sfc_main$4 = /* @__PURE__ */ defineComponent({\n ...__default__$1,\n __name: \"BaseSelect\",\n props: {\n options: null,\n modelValue: null,\n alignRight: { type: Boolean },\n alignLeft: { type: Boolean },\n showIcon: { type: Boolean },\n fitContent: { type: Boolean }\n },\n emits: [\"update:modelValue\"],\n setup(__props) {\n const props = __props;\n const selectedLabel = computed(() => {\n const option = props.options.find((opt) => opt.value === props.modelValue);\n return option == null ? void 0 : option.label;\n });\n return (_ctx, _cache) => {\n return openBlock(), createElementBlock(\"div\", {\n class: normalizeClass([\"vc-base-select\", {\n \"vc-fit-content\": __props.fitContent,\n \"vc-has-icon\": __props.showIcon\n }])\n }, [\n createElementVNode(\"select\", mergeProps(_ctx.$attrs, {\n value: __props.modelValue,\n class: [\"vc-focus\", {\n \"vc-align-right\": __props.alignRight,\n \"vc-align-left\": __props.alignLeft\n }],\n onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit(\"update:modelValue\", $event.target.value))\n }), [\n (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {\n return openBlock(), createElementBlock(\"option\", {\n key: option.value,\n value: option.value,\n disabled: option.disabled\n }, toDisplayString(option.label), 9, _hoisted_2$1);\n }), 128))\n ], 16, _hoisted_1$1),\n __props.showIcon ? (openBlock(), createBlock(_sfc_main$c, {\n key: 0,\n name: \"ChevronDown\",\n size: \"18\"\n })) : createCommentVNode(\"\", true),\n __props.fitContent ? (openBlock(), createElementBlock(\"div\", _hoisted_3$1, toDisplayString(unref(selectedLabel)), 1)) : createCommentVNode(\"\", true)\n ], 2);\n };\n }\n});\nconst BaseSelect_vue_vue_type_style_index_0_lang = \"\";\nconst _hoisted_1 = {\n key: 0,\n class: \"vc-time-header\"\n};\nconst _hoisted_2 = { class: \"vc-time-weekday\" };\nconst _hoisted_3 = { class: \"vc-time-month\" };\nconst _hoisted_4 = { class: \"vc-time-day\" };\nconst _hoisted_5 = { class: \"vc-time-year\" };\nconst _hoisted_6 = { class: \"vc-time-select-group\" };\nconst _hoisted_7 = /* @__PURE__ */ createElementVNode(\"span\", { class: \"vc-time-colon\" }, \":\", -1);\nconst _hoisted_8 = /* @__PURE__ */ createElementVNode(\"span\", { class: \"vc-time-colon\" }, \":\", -1);\nconst _hoisted_9 = /* @__PURE__ */ createElementVNode(\"span\", { class: \"vc-time-decimal\" }, \".\", -1);\nconst _sfc_main$3 = /* @__PURE__ */ defineComponent({\n __name: \"TimePicker\",\n props: {\n position: null\n },\n setup(__props, { expose }) {\n const props = __props;\n const timePicker = createTimePicker(props);\n expose(timePicker);\n const {\n locale,\n isValid,\n date,\n hours: hours2,\n minutes,\n seconds,\n milliseconds,\n options,\n hourOptions,\n isTimeMode,\n isAM,\n isAMOptions,\n is24hr,\n showHeader,\n timeAccuracy\n } = timePicker;\n return (_ctx, _cache) => {\n return openBlock(), createElementBlock(\"div\", {\n class: normalizeClass([\"vc-time-picker\", [{ \"vc-invalid\": !unref(isValid), \"vc-attached\": !unref(isTimeMode) }]])\n }, [\n createVNode(_sfc_main$i, { name: \"time-header\" }, {\n default: withCtx(() => [\n unref(showHeader) && unref(date) ? (openBlock(), createElementBlock(\"div\", _hoisted_1, [\n createElementVNode(\"span\", _hoisted_2, toDisplayString(unref(locale).formatDate(unref(date), \"WWW\")), 1),\n createElementVNode(\"span\", _hoisted_3, toDisplayString(unref(locale).formatDate(unref(date), \"MMM\")), 1),\n createElementVNode(\"span\", _hoisted_4, toDisplayString(unref(locale).formatDate(unref(date), \"D\")), 1),\n createElementVNode(\"span\", _hoisted_5, toDisplayString(unref(locale).formatDate(unref(date), \"YYYY\")), 1)\n ])) : createCommentVNode(\"\", true)\n ]),\n _: 1\n }),\n createElementVNode(\"div\", _hoisted_6, [\n createVNode(_sfc_main$c, {\n name: \"Clock\",\n size: \"17\"\n }),\n createVNode(_sfc_main$4, {\n modelValue: unref(hours2),\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event) => isRef(hours2) ? hours2.value = $event : null),\n modelModifiers: { number: true },\n options: unref(hourOptions),\n class: \"vc-time-select-hours\",\n \"align-right\": \"\"\n }, null, 8, [\"modelValue\", \"options\"]),\n unref(timeAccuracy) > 1 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [\n _hoisted_7,\n createVNode(_sfc_main$4, {\n modelValue: unref(minutes),\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event) => isRef(minutes) ? minutes.value = $event : null),\n modelModifiers: { number: true },\n options: unref(options).minutes,\n class: \"vc-time-select-minutes\",\n \"align-left\": unref(timeAccuracy) === 2\n }, null, 8, [\"modelValue\", \"options\", \"align-left\"])\n ], 64)) : createCommentVNode(\"\", true),\n unref(timeAccuracy) > 2 ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [\n _hoisted_8,\n createVNode(_sfc_main$4, {\n modelValue: unref(seconds),\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event) => isRef(seconds) ? seconds.value = $event : null),\n modelModifiers: { number: true },\n options: unref(options).seconds,\n class: \"vc-time-select-seconds\",\n \"align-left\": unref(timeAccuracy) === 3\n }, null, 8, [\"modelValue\", \"options\", \"align-left\"])\n ], 64)) : createCommentVNode(\"\", true),\n unref(timeAccuracy) > 3 ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [\n _hoisted_9,\n createVNode(_sfc_main$4, {\n modelValue: unref(milliseconds),\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event) => isRef(milliseconds) ? milliseconds.value = $event : null),\n modelModifiers: { number: true },\n options: unref(options).milliseconds,\n class: \"vc-time-select-milliseconds\",\n \"align-left\": \"\"\n }, null, 8, [\"modelValue\", \"options\"])\n ], 64)) : createCommentVNode(\"\", true),\n !unref(is24hr) ? (openBlock(), createBlock(_sfc_main$4, {\n key: 3,\n modelValue: unref(isAM),\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event) => isRef(isAM) ? isAM.value = $event : null),\n options: unref(isAMOptions)\n }, null, 8, [\"modelValue\", \"options\"])) : createCommentVNode(\"\", true)\n ])\n ], 2);\n };\n }\n});\nconst TimePicker_vue_vue_type_style_index_0_lang = \"\";\nconst _sfc_main$2 = /* @__PURE__ */ defineComponent({\n __name: \"DatePickerBase\",\n setup(__props) {\n const {\n attributes,\n calendarRef,\n color,\n displayMode,\n isDateTimeMode,\n isTimeMode,\n isRange,\n onDayClick,\n onDayMouseEnter,\n onDayKeydown\n } = useDatePicker();\n const positions = isRange.value ? [0, 1] : [0];\n return (_ctx, _cache) => {\n return unref(isTimeMode) ? (openBlock(), createElementBlock(\"div\", {\n key: 0,\n class: normalizeClass(`vc-container vc-bordered vc-${unref(color)} vc-${unref(displayMode)}`)\n }, [\n (openBlock(true), createElementBlock(Fragment, null, renderList(unref(positions), (position) => {\n return openBlock(), createBlock(_sfc_main$3, {\n key: position,\n position\n }, null, 8, [\"position\"]);\n }), 128))\n ], 2)) : (openBlock(), createBlock(Calendar, {\n key: 1,\n attributes: unref(attributes),\n ref_key: \"calendarRef\",\n ref: calendarRef,\n onDayclick: unref(onDayClick),\n onDaymouseenter: unref(onDayMouseEnter),\n onDaykeydown: unref(onDayKeydown)\n }, {\n footer: withCtx(() => [\n unref(isDateTimeMode) ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(positions), (position) => {\n return openBlock(), createBlock(_sfc_main$3, {\n key: position,\n position\n }, null, 8, [\"position\"]);\n }), 128)) : createCommentVNode(\"\", true),\n createVNode(_sfc_main$i, { name: \"dp-footer\" })\n ]),\n _: 1\n }, 8, [\"attributes\", \"onDayclick\", \"onDaymouseenter\", \"onDaykeydown\"]));\n };\n }\n});\nconst __default__ = {\n inheritAttrs: false\n};\nconst _sfc_main$1 = /* @__PURE__ */ defineComponent({\n ...__default__,\n __name: \"DatePickerPopover\",\n setup(__props) {\n const {\n datePickerPopoverId,\n color,\n displayMode,\n popoverRef,\n onPopoverBeforeShow,\n onPopoverAfterShow,\n onPopoverBeforeHide,\n onPopoverAfterHide\n } = useDatePicker();\n return (_ctx, _cache) => {\n return openBlock(), createBlock(Popover, {\n id: unref(datePickerPopoverId),\n placement: \"bottom-start\",\n class: normalizeClass(`vc-date-picker-content vc-${unref(color)} vc-${unref(displayMode)}`),\n ref_key: \"popoverRef\",\n ref: popoverRef,\n onBeforeShow: unref(onPopoverBeforeShow),\n onAfterShow: unref(onPopoverAfterShow),\n onBeforeHide: unref(onPopoverBeforeHide),\n onAfterHide: unref(onPopoverAfterHide)\n }, {\n default: withCtx(() => [\n createVNode(_sfc_main$2, normalizeProps(guardReactiveProps(_ctx.$attrs)), null, 16)\n ]),\n _: 1\n }, 8, [\"id\", \"class\", \"onBeforeShow\", \"onAfterShow\", \"onBeforeHide\", \"onAfterHide\"]);\n };\n }\n});\nconst _sfc_main = defineComponent({\n inheritAttrs: false,\n emits,\n props: propsDef,\n components: { DatePickerBase: _sfc_main$2, DatePickerPopover: _sfc_main$1 },\n setup(props, ctx) {\n const datePicker = createDatePicker(props, ctx);\n const slotCtx = reactive(omit(datePicker, \"calendarRef\", \"popoverRef\"));\n return { ...datePicker, slotCtx };\n }\n});\nfunction _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_DatePickerPopover = resolveComponent(\"DatePickerPopover\");\n const _component_DatePickerBase = resolveComponent(\"DatePickerBase\");\n return _ctx.$slots.default ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [\n renderSlot(_ctx.$slots, \"default\", normalizeProps(guardReactiveProps(_ctx.slotCtx))),\n createVNode(_component_DatePickerPopover, normalizeProps(guardReactiveProps(_ctx.$attrs)), null, 16)\n ], 64)) : (openBlock(), createBlock(_component_DatePickerBase, normalizeProps(mergeProps({ key: 1 }, _ctx.$attrs)), null, 16));\n}\nconst DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"render\", _sfc_render]]);\nconst components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n Calendar,\n DatePicker,\n Popover,\n PopoverRow: _sfc_main$j\n}, Symbol.toStringTag, { value: \"Module\" }));\nconst index$1 = \"\";\nconst install = (app, defaults2 = {}) => {\n app.use(setupDefaults, defaults2);\n const prefix = app.config.globalProperties.$VCalendar.componentPrefix;\n for (const componentKey in components) {\n const component = components[componentKey];\n app.component(`${prefix}${componentKey}`, component);\n }\n};\nconst index = { install };\nexport {\n Calendar,\n DatePicker,\n Popover,\n _sfc_main$j as PopoverRow,\n createCalendar,\n createDatePicker,\n index as default,\n popoverDirective,\n setupDefaults as setupCalendar,\n useCalendar,\n useDatePicker\n};\n//# sourceMappingURL=index.js.map\n"],"names":["__defProp","Object","defineProperty","__publicField","obj","key","value","enumerable","configurable","writable","__defNormalProp","commonjsGlobal","globalThis","window","global","self","getDefaultExportFromCjs","x","__esModule","prototype","hasOwnProperty","call","hasOwnProperty$d","_baseHas","object","isArray_1","Array","isArray","_freeGlobal","freeGlobal","freeSelf","_root","Function","_Symbol","Symbol","Symbol$4","objectProto$f","hasOwnProperty$c","nativeObjectToString$1","toString","symToStringTag$1","toStringTag","_getRawTag","isOwn","tag","unmasked","e","result","nativeObjectToString","getRawTag","objectToString","symToStringTag","_baseGetTag","isObjectLike_1","baseGetTag$9","isObjectLike$a","isSymbol_1","isArray$b","isSymbol$2","reIsDeepProp","reIsPlainProp","_isKey","type","test","isObject_1","baseGetTag$8","isObject$9","uid","isFunction_1","coreJsData","maskSrcKey","exec","keys","IE_PROTO","_isMasked","func","funcToString$2","_toSource","isFunction$2","isMasked","isObject$8","toSource$1","reIsHostCtor","funcProto$1","objectProto$d","funcToString$1","hasOwnProperty$b","reIsNative","RegExp","replace","baseIsNative","getValue","_getNative","_nativeCreate","nativeCreate$3","_hashClear","this","__data__","size","_hashDelete","has","nativeCreate$2","hasOwnProperty$a","_hashGet","data2","nativeCreate$1","hasOwnProperty$9","nativeCreate","hashClear","hashDelete","hashGet","hashHas","hashSet","Hash$1","entries","index2","length","clear","entry","set","get","_Hash","_listCacheClear","eq_1","other","eq$5","_assocIndexOf","array","assocIndexOf$3","splice","assocIndexOf$2","assocIndexOf$1","assocIndexOf","listCacheClear","listCacheDelete","pop","listCacheGet","listCacheHas","listCacheSet","push","ListCache$4","_ListCache","_Map","Hash","ListCache$3","Map$2","isKeyable","_getMapData","map","getMapData$3","getMapData$2","getMapData$1","getMapData","mapCacheClear","mapCacheDelete","mapCacheGet","mapCacheHas","mapCacheSet","MapCache$3","_MapCache","MapCache$2","memoize$1","resolver","TypeError","memoized","args","arguments","apply","cache","Cache","memoize","rePropName","reEscapeChar","_stringToPath","memoizeCapped","string","charCodeAt","match","number","quote","subString","arrayMap","iteratee","isArray$a","isSymbol$1","symbolProto$1","symbolToString","_baseToString","baseToString$1","baseToString","isArray$9","isKey$2","stringToPath","_castPath","baseGetTag$7","isObjectLike$9","baseIsArguments","isObjectLike$8","objectProto$a","hasOwnProperty$8","propertyIsEnumerable$1","propertyIsEnumerable","isArguments$3","isArguments_1","reIsUint","_isIndex","isLength_1","isSymbol","_toKey","castPath$1","isArguments$2","isArray$8","isIndex$2","isLength$2","toKey$3","_hasPath","path","hasFunc","baseHas","hasPath$1","has_1","baseGetTag$6","isObjectLike$7","_baseIsDate","module","exports","freeGlobal2","freeExports","freeModule","freeProcess","nodeUtil2","_baseUnary","_nodeUtilExports","v","nodeType","process","types","require","binding","baseIsDate","baseUnary$1","nodeIsDate","isDate","isDate_1","baseGetTag$5","isArray$7","isObjectLike$6","isString_1","_arraySome","predicate","ListCache$2","ListCache$1","Map$1","MapCache$1","ListCache","stackClear","stackDelete","stackGet","stackHas","stackSet","pairs","LARGE_ARRAY_SIZE","Stack$3","_Stack","MapCache","setCacheAdd","setCacheHas","SetCache$1","values","add","SetCache","arraySome$1","cacheHas","_equalArrays","bitmask","customizer","equalFunc","stack","isPartial","arrLength","othLength","arrStacked","othStacked","seen","arrValue","othValue","compared","othValue2","othIndex","_Uint8Array","Uint8Array","Uint8Array$1","eq$4","equalArrays$1","mapToArray","forEach","setToArray","symbolProto","symbolValueOf","valueOf","_equalByTag","byteLength","byteOffset","buffer","name","message","convert","stacked","arrayPush","offset","isArray$6","_baseGetAllKeys","keysFunc","symbolsFunc","arrayFilter","resIndex","stubArray","nativeGetSymbols","getOwnPropertySymbols","_getSymbols","symbol","_baseTimes","n","isBufferExports","stubFalse_1","root2","stubFalse2","Buffer2","Buffer","isBuffer2","isBuffer","baseGetTag$4","isLength$1","isObjectLike$5","typedArrayTags","baseIsTypedArray","baseUnary","nodeIsTypedArray","isTypedArray","isTypedArray_1","baseTimes","isArguments$1","isArray$5","isBuffer$2","isIndex$1","isTypedArray$2","hasOwnProperty$7","_arrayLikeKeys","inherited","isArr","isArg","isBuff","isType","skipIndexes","String","objectProto$7","_isPrototype","Ctor","constructor","_overArg","transform","arg","nativeKeys$1","isPrototype$2","nativeKeys","hasOwnProperty$6","isFunction$1","isLength","isArrayLike_1","arrayLikeKeys$1","baseKeys","isArrayLike$4","keys_1","baseGetAllKeys","getSymbols","keys$2","getAllKeys","hasOwnProperty$5","_equalObjects","objProps","objLength","objStacked","skipCtor","objValue","objCtor","othCtor","DataView","Map","Promise$1","Set","WeakMap","baseGetTag$3","toSource","mapTag","promiseTag","setTag","weakMapTag","dataViewTag","dataViewCtorString","mapCtorString","promiseCtorString","setCtorString","weakMapCtorString","getTag$1","ArrayBuffer","resolve","ctorString","Stack$2","equalArrays","equalByTag","equalObjects","getTag","isArray$4","isBuffer$1","isTypedArray$1","argsTag","arrayTag","objectTag$1","hasOwnProperty$4","baseIsEqualDeep","objIsArr","othIsArr","objTag","othTag","objIsObj","othIsObj","isSameTag","objIsWrapped","othIsWrapped","objUnwrapped","othUnwrapped","isObjectLike$4","_baseIsEqual","baseIsEqual$2","Stack$1","baseIsEqual$1","isObject$7","_isStrictComparable","isStrictComparable$1","keys$1","_matchesStrictComparable","srcValue","baseIsMatch","source","matchData","noCustomizer","COMPARE_PARTIAL_FLAG$1","getMatchData","matchesStrictComparable$1","castPath","toKey$2","_baseGet","baseGet$1","get_1","defaultValue","baseHasIn","hasPath","baseIsEqual","hasIn","isKey$1","isStrictComparable","matchesStrictComparable","toKey$1","identity_1","baseGet","baseProperty","basePropertyDeep","isKey","toKey","baseMatches","baseMatchesProperty","COMPARE_PARTIAL_FLAG","identity$2","isArray$3","property","_baseIteratee","_baseFor","fromRight","iterable","props","createBaseFor","baseFor$1","_baseForOwn","isArrayLike$3","baseEach","eachFunc","collection","createBaseEach","eq$3","isArrayLike$2","isIndex","isObject$6","_isIterateeCall","arraySome","baseIteratee$1","baseSome","collection2","isArray$2","isIterateeCall$2","some_1","guard","baseGetTag$2","isObjectLike$3","isBoolean_1","baseGetTag$1","isObjectLike$2","isNumber_1","getNative","_defineProperty","defineProperty$1","_baseAssignValue","baseAssignValue$3","eq$2","hasOwnProperty$3","_assignValue","baseAssignValue$2","baseForOwn","baseIteratee","mapValues_1","object2","_apply","thisArg","apply$1","nativeMax","Math","max","_overRest","start","otherArgs","constant","_baseSetToString","nativeNow","Date","now","_shortOut","count","lastCalled","stamp","remaining","setToString$1","identity","overRest","setToString","_baseRest","isObject$5","isPrototype$1","nativeKeysIn","hasOwnProperty$2","arrayLikeKeys","baseKeysIn","isProto","isArrayLike$1","keysIn_1","baseRest$2","eq$1","isIterateeCall$1","keysIn$2","objectProto$1","hasOwnProperty$1","defaults_1","sources","propsIndex","propsLength","baseAssignValue$1","eq","_assignMergeValue","_cloneBufferExports","allocUnsafe","isDeep","slice","copy","Uint8Array2","cloneArrayBuffer","arrayBuffer","_cloneTypedArray","typedArray","_copyArray","isObject$4","objectCreate","create","_baseCreate","proto","getPrototype$2","getPrototypeOf","baseCreate","getPrototype$1","isPrototype","_initCloneObject","isArrayLike","isObjectLike$1","isArrayLikeObject_1","baseGetTag","getPrototype","isObjectLike","funcProto","objectProto","funcToString","objectCtorString","_safeGet","assignValue","baseAssignValue","copyObject","isNew","newValue","keysIn$1","assignMergeValue$1","cloneBuffer","cloneTypedArray","copyArray","initCloneObject","isArguments","isArray$1","isArrayLikeObject","isFunction","isObject$3","isPlainObject","safeGet$1","toPlainObject","Stack","assignMergeValue","baseFor","baseMergeDeep","srcIndex","mergeFunc","isCommon","isTyped","isObject$2","keysIn","safeGet","_baseMerge","baseMerge$2","baseMerge$1","isObject$1","_customDefaultsMerge","customDefaultsMerge$1","baseRest$1","isIterateeCall","baseMerge","mergeWith$1","assigner","createAssigner","customDefaultsMerge","mergeWith","defaultsDeep_1","head_1","last_1","isNaN","getTime","isObject","getType","hasAny","p","pad","val","len","char","arrayHasItems","resolveEl","target","document","querySelector","$el","off","element","event","handler","opts","removeEventListener","on","addEventListener","elementContains","child","contains","onSpaceOrEnter","preventDefault","omit","keys2","ret","includes","pick","toIntegerExports","default","dirtyNumber","NaN","Number","ceil","floor","toInteger$1","getTimezoneOffsetInMillisecondsExports","date","utcDate","UTC","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","getMilliseconds","setUTCFullYear","getTimezoneOffsetInMilliseconds$1","tzTokenizeDate","timeZone","dtf","dtfCache","testDateFormatted","Intl","DateTimeFormat","hour12","year","month","day","hour","minute","second","format","hourCycleSupported","hourCycle","getDateTimeFormat","formatToParts","formatted","filled","i","pos","typeToPos","parseInt","error","RangeError","partsOffset","parsed","hackyOffset","newDateUTC","fullYear","millisecond","setUTCHours","MILLISECONDS_IN_HOUR$1","patterns$1","timezone","timezoneZ","timezoneHH","timezoneHHMM","tzParseTimezone","timezoneString","isUtcDate","token2","absoluteOffset","hours2","validateTimezone","minutes","abs","timeZoneString","validIANATimezoneCache","isValidTimezoneIANAString","toUtcDate","calcOffset","fixedOffset","localTS","utcGuess","o2","o3","fixOffset","tokens","asUTC","asTS","over","MILLISECONDS_IN_HOUR","MILLISECONDS_IN_MINUTE","patterns","dateTimePattern","datePattern","plainTime","YY","YYY","YYYY","YYYYY","MM","DDD","MMDD","Www","WwwD","HH","HHMM","HHMMSS","toDate$1","argument","dirtyOptions","options","additionalDigits","dateStrings","dateString","timeString","parts","time","trim","splitDateString","parseYearResult","patternYYY","patternYYYYY","yearString","restDateString","centuryString","parseYear","week","validateDate","dayOfYear","isLeapYear","isLeapYearIndex","validateDayOfYearDate","validateWeekDate","dayOfISOWeekYear","dayOfWeek","parseDate$1","timestamp","validateTime","parseFloat","seconds","parseTime","isoWeekYear","diff","getUTCDay","setUTCDate","getUTCDate","DAYS_IN_MONTH","DAYS_IN_MONTH_LEAP_YEAR","requiredArgs","required","_typeof","iterator","obj2","toDate","argStr","console","warn","Error","toInteger","defaultOptions","getDefaultOptions","startOfWeek$1","dirtyDate","_ref","_ref2","_ref3","_options$weekStartsOn","_options$locale","_options$locale$optio","_defaultOptions$local","_defaultOptions$local2","defaultOptions2","weekStartsOn","locale","getDay","setDate","setHours","getTimezoneOffsetInMilliseconds","getWeeksInMonth","dirtyDateLeft","dirtyDateRight","startOfWeekLeft","startOfWeekRight","timestampLeft","timestampRight","round","differenceInCalendarWeeks","setFullYear","lastDayOfMonth","startOfMonth","startOfWeekYear","_options$firstWeekCon","firstWeekContainsDate","firstWeekOfNextYear","startOfNextYear","firstWeekOfThisYear","startOfThisYear","getWeekYear","firstWeek","getWeek","startOfISOWeek","startOfISOWeekYear","fourthOfJanuaryOfNextYear","fourthOfJanuaryOfThisYear","getISOWeekYear","fourthOfJanuary","getISOWeek","addDays","dirtyAmount","amount","addMonths","dayOfMonth","endOfDesiredMonth","setMonth","addYears","viewAddressKeys","daily","weekly","monthly","getPageId","getPageAddressForDate","view","getDateParts","addPages","newDate","getMonthParts","firstDayOfMonth","pageIsValid","page","pageIsBeforePage","comparePage","pageIsAfterPage","getPageKey","config","id","getCachedPage","showWeeknumbers","showIsoWeeknumbers","monthComps","prevMonthComps","getPrevMonthParts","nextMonthComps","getNextMonthParts","days","firstDayOfWeek","firstWeekday","isoWeeknumbers","weeknumbers","numDays","numWeeks","prevMonthDaysToShow","daysInWeek","prevMonth","thisMonth","nextMonth","position","formatter","weekday","dayFromEnd","weekdayOrdinal","weekdayOrdinalFromEnd","weekFromEnd","today","todayDay","todayMonth","todayYear","w","weeksInMonth","startDate","getDateFromParams","noonDate","endDate","weekdayPosition","weekdayPositionFromEnd","weeknumber","isoWeeknumber","isToday","isFirstDay","isLastDay","onTop","onBottom","onLeft","onRight","dayIndex","getDayIndex","label","ariaLabel","weekPosition","isDisabled","isFocusable","isFocused","inMonth","inPrevMonth","inNextMonth","classes","getDays","weeks","reduce","result2","weekIndex","title","weeknumberDisplay","fromDay","toDay","formatDate","getWeeks","weekdays2","masks","weekdays","getWeekdays","monthTitle","shortMonthLabel","monthLabel","shortYearLabel","substring","yearLabel","createKey","createItem","store","getOrSet","item","removeKey","shift","DateRange","Locale","_a","end","span","order","repeat","DateRepeat","from","fromMany","ranges","filter","d","assign","hasRepeat","isSingleDay","isMultiDay","daySpan","Infinity","startsOnDay","dayParts","_b","passes","intersectsDay","intersectsDayRange","intersectsRange","range","startDayIndex","endDayIndex","DateRangeContext","render","_c","_d","_a2","_b2","startDay","startTime","endDay","endTime","MS_PER_DAY","getRangeRecords","record","records","data","getCell","getCells","find","cell","cellExists","some","r","onStart","onEnd","allDay","sort","a","b","locales","ar","dow","L","bg","ca","hr","cs","da","nl","eo","et","fi","fr","de","he","it","ja","ko","lv","lt","mk","nb","nn","pl","pt","ro","ru","sk","sv","th","tr","uk","vi","en","es","no","zh","defaultConfig","componentPrefix","color","isDark","navVisibility","titlePosition","transition","touch","maxSwipeTime","minHorizontalSwipeDistance","maxVerticalSwipeDistance","navMonths","hours","input","inputDateTime","inputDateTime24hr","inputTime","inputTime24hr","dayPopover","model","iso","res","datePicker","updateOnInput","inputDebounce","popover","visibility","placement","isInteractive","state","defaultLocales","l","getDefault","__vcalendar__","masks2","monthCacheSize","pageCacheSize","locales2","detLocale","resolvedOptions","toLowerCase","localeKeys","validKey","k","lk","defLocale","resolveConfig","num","min","monthCache","getMonthPartsKey","pageCache","hourLabels","getHourLabels","dayNames","getDayNames","dayNamesShort","dayNamesShorter","s","dayNamesNarrow","monthNames","getMonthNames","monthNamesShort","relativeTimeNames","localeId","units","rtf","RelativeTimeFormat","names","unit","getRelativeTimeNames","mask","normalizeMasks","literals","literal","$0","$1","dateParts","token","formatFlags","parseDate","nullDate","fillDate","patch","rules","isDateParts","getDateFromParts","fillParts","DatePatchKeys","rule","DATE_PART_RANGES","getDatePartOptions","prev","opt","disabled","diffPrev","getNearestDatePart","applyRulesForDateParts","toDateOrNull","dte","fromDate","tzDate","toLocaleString","setMilliseconds","milliseconds","MS_PER_SECOND","MS_PER_MINUTE","MS_PER_HOUR","monthParts","dateTime","timezoneOffset","isValid","getPage","cachedPage","trimWeeks","viewDays","viewWeeks","dayObj","weekObj","weekTitle","dayTitle","getThisMonthParts","dates","getHourDates","getDayId","GroupRuleType","GroupRuleType2","IntervalRuleType","IntervalRuleType2","ComponentRuleType","ComponentRuleType2","OrdinalComponentRuleType","OrdinalComponentRuleType2","IntervalRule","interval","validated","diffInDays","d1","d2","startOfWeek","diffInYears","diffInMonths","ComponentRule","components2","validator","getter","components","normalizeComponents","DaysRule","WeekdaysRule","WeeksRule","MonthsRule","YearsRule","component","comp","super","isDayInMonth","isDayOfWeek","isWeekInMonth","isMonthInYear","OrdinalComponentRule","normalizeArrayConfig","numOrArray","isOrdinalWeekInMonth","ordinalWeek","ordinalWeekday","FunctionRule","fn","parent","Any","All","c","until","getObjectRules","every","Days","dayInMonth","weekInMonth","monthInYear","daysInMonths","maskMacros","D","DD","dd","W","WW","WWW","WWWW","M","MMM","MMMM","substr","h","hh","H","m","mm","ss","S","SS","SSS","amPm","A","toUpperCase","Z","ZZ","o","ZZZ","ZZZZ","twoDigits","word","noop","monthUpdate","arrName","indexOf","charAt","parseFlags","Do","cent","isPm","curr","getUTCFullYear","hrs","sec","ms","inLeapYear","getWeekdayDates","getMonthDates","datePartIsValid","part","padding","str","dp","info","search","attrKey","Attribute","theme","hashcode","pinPage","normalizeGlyphs","hasRanges","maxRepeatSpan","simpleRanges","repeatRanges","showPopover","dispatchEvent","CustomEvent","detail","hidePopover","togglePopover","getPopoverEventHandlers","click","hover","hoverFocus","focus","autoHide","hovered","focused","clickHandler","currentTarget","stopPropagation","mouseMoveHandler","mouseLeaveHandler","focusInHandler","focusOutHandler","relatedTarget","handlers","mousemove","mouseleave","focusin","focusout","removeHandlers","el","popoverHandlers","addHandlers","remove","popoverDirective","mounted","updated","oldValue","oldVisibility","newVisibility","unmounted","watchSkippers","windowExists","useDarkMode","displayMode","mediaQuery","mutationObserver","mqListener","ev","matches","setupSystem","feature","matchMedia","moListener","selector","darkClass","classList","setup","stopObservers","config2","MutationObserver","observe","attributes","attributeFilter","setupClass","stopWatch","immediate","disconnect","cleanup","targetProps","displayProps","_defaultProfile","base","normalizeConfig","defaultProfile","rootColor","startEnd","targetType","targetConfig","targetColor","HighlightRenderer","fillMode","prepareRender","glyphs","highlights","content","highlight","wrapperClass","class","contentClass","BaseRenderer","collectionType","ContentRenderer","_","DotRenderer","BarRenderer","Theme","attr","renderers","renderer","contextKey$4","propsDef$2","Boolean","minDate","maxDate","disabledDates","createBase","disabledAttribute","context","contextKey$3","slotKey","provideSlots","slots","remap","useSlot","propsDef$1","rows","columns","step","expanded","borderless","transparent","initialPage","initialPagePosition","minPage","maxPage","disablePageSwipe","contextKey$2","createCalendar","emit","containerRef","focusedDay","focusableDay","inTransition","navPopoverId","dayPopoverId","_view","_pages","transitionName","transitionPromise","removeHandlers2","useOrCreateBase","firstPage","lastPage","getDateAddress","isMonthly","isWeekly","isDaily","addPages$1","address","count2","refreshFocusable","forDays","pages","hasAttributes","attributeContext","ctx","dayCells","cells","getWeeknumberPosition","column","columnFromEnd","showWeeknumbers2","startsWith","getDefaultInitialPage","attr2","getPageForAttributes","getTargetPageRange","force","pagesToAdd","fromPage","toPage","refreshPages","Promise","reject","newPage","position2","row","rowFromEnd","weeknumberPosition","oldPage","defaultTransition","moveNext2","movePrev2","getPageTransition","targetBy","canMove","pagesInRange","to","pageRangeToArray","pageIsBetweenPages","canMoveBy","canMovePrev","canMoveNext","move","async","aPage","bPage","hideDelay","watcher","durationMs","skipWatcher","moveBy","movePrev","moveNext","tryFocusDate","daySelector","focusableEl","focusDate","onDayKeydown","altKey","catch","maxSwipeTime2","minHorizontalSwipeDistance2","maxVerticalSwipeDistance2","startX","startY","isSwiping","touchStart","t","changedTouches","screenX","screenY","touchEnd","deltaX","deltaY","toLeft","toRight","passive","addHorizontalSwipeHandler","handleWatcher","refreshDisabled","onTransitionBeforeEnter","onTransitionAfterEnter","onKeydown","onDayClick","onDayMouseenter","onDayMouseleave","onDayFocusin","onDayFocusout","onWeeknumberClick","useCalendar","_export_sfc","sfc","__vccOpts","Popover","inheritAttrs","emits","showDelay","boundarySelector","timeout","popoverRef","resizeObserver","popper","state2","isVisible","direction","positionFixed","modifiers","isHovered","updateDirection","split","onPopperUpdate","popperOptions","strategy","boundary","enabled","phase","onFirstUpdate","alignment","isLeftRight","alignment2","destroyPopper","destroy","setupPopper","elements","reference","update","setTimer","delay","clearTimeout","setTimeout","isCurrentTarget","show","newState","hide","onDocumentClick","popperRef","onDocumentKeydown","onDocumentShowPopover","onDocumentHidePopover","onDocumentTogglePopover","toggle","cleanupRO","ResizeObserver","beforeEnter","afterEnter","beforeLeave","afterLeave","onClick","onMouseOver","onMouseLeave","activeElement","onFocusIn","onFocusOut","_ctx","_cache","$props","$setup","$data","$options","ref","onMouseover","onMouseleave","onFocusin","onFocusout","appear","onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave","tabindex","$attrs","$slots","_hoisted_1$c","_hoisted_2$b","_hoisted_3$9","_sfc_main$j","__name","attribute","__props","indicator","dot","bar","hideIndicator","_sfc_main$i","slot","_hoisted_1$b","_hoisted_2$a","_sfc_main$h","_sfc_main$g","_hoisted_1$a","viewBox","_hoisted_3$8","points","IconChevronRight","_sfc_main$f","_hoisted_1$9","_hoisted_3$7","IconChevronLeft","_sfc_main$e","_hoisted_1$8","_hoisted_3$6","IconChevronDown","_sfc_main$d","_hoisted_1$7","fill","_hoisted_3$5","IconClock","icons","freeze","__proto__","_sfc_main$c","width","height","icon","_hoisted_1$6","_hoisted_2$5","_hoisted_3$4","_hoisted_4$3","_sfc_main$b","layout","isLg","isXl","is2xl","hideTitle","hideArrows","navPlacement","navPopoverOptions","fallbackPlacements","titleLeft","titleRight","layout_","next","gridStyle","gridTemplateColumns","join","style","contextKey$1","usePage","_hoisted_1$5","_hoisted_2$4","_hoisted_3$3","_hoisted_4$2","_hoisted_5$2","_sfc_main$a","getMonthItems","getYearItems","monthMode","selectedYear","selectedYearGroup","getYearGroupIndex","navContainer","focusFirstItem","toggleMode","getStartYear","groupIndex","getEndYear","prevItemsEnabled","nextItemsEnabled","monthItems","prevMonthItems","prevMonthItemsEnabled","nextMonthItems","nextMonthItemsEnabled","yearItems","prevYearItems","prevYearItemsEnabled","nextYearItems","nextYearItemsEnabled","activeItems","firstYear","lastYear","title2","ref_key","isActive","isCurrent","_sfc_main$9","thisYear","startYear","endYear","items","createPage","_sfc_main$8","_sfc_main$7","directives","CalendarSlot","attributeCells","attributedDay","popovers","popovers2","customData","resolvedPopover","processPopover","hasHighlights","dots","hasDots","bars","hasBars","popoverAttrs","dayContentSlot","dayClasses","dayContentProps","role","dayContentEvents","mouseenter","keydown","dayPopover2","_hoisted_1$4","_hoisted_2$3","_hoisted_3$2","_hoisted_4$1","_hoisted_5$1","CalendarDay","_component_CalendarSlot","_directive_popover","bgClass","dayProps","dayEvents","_hoisted_1$3","_hoisted_2$2","_sfc_main$6","$event","_sfc_main$5","CalendarHeader","CalendarPage","CalendarNavPopover","CalendarDayPopover","CalendarPageProvider","_hoisted_1$2","Calendar","_component_CalendarHeader","_component_CalendarPage","_component_CalendarPageProvider","_component_CalendarDayPopover","_component_CalendarNavPopover","onMouseup","contextKey","propsDef","mode","modelValue","modelModifiers","is24hr","hideTimeHeader","timeAccuracy","isRequired","isRange","dragAttribute","selectAttribute","createDatePicker","footer","baseCtx","showCalendar","datePickerPopoverId","dateValue","dragValue","inputValues","calendarRef","updateTimeout","dragTrackingValue","watchValue","valueStart","valueEnd","isDateMode","isDateTimeMode","isTimeMode","isDragging","modelConfig","normalizeConfig2","getDateParts2","inputMask","inputMaskHasTime","inputMaskHasDate","inputMaskPatch","previousElementSibling","popoverEvents","inputValue","inputEvents","events","onInputInput","change","onInputChange","keyup","onInputKeyup","hasValue","attrs","unshift","_rules","accuracy","getAutoRules","normalizeDateConfig","hasDateValue","hasRangeValue","valuesAreEqual","aIsDate","bIsDate","normalizeValue","targetPriority","sortRange","denormalizeValue","updateValue","debounce","forceUpdateValue","clearIfEqual","formatInput","fInput","hPopover","dragging","moveToValue","mValue","normalizedValue","valueIsDisabled","valueRef","notify","denormalizedValue","hidePopover$1","onInputUpdate","inputValue2","handleDayClick","priority","dValue","onDayMouseEnter","onPopoverBeforeShow","onPopoverAfterShow","onPopoverBeforeHide","onPopoverAfterHide","useDatePicker","_amOptions","_pmOptions","createTimePicker","updateDpValue","updateParts","newParts","isStart","partsValid","showHeader","date2","isAM","hValue","getDatePartsOptions","amHourOptions","ho","pmHourOptions","hourOptions","isAMOptions","_hoisted_1$1","_hoisted_2$1","_hoisted_3$1","_sfc_main$4","alignRight","alignLeft","showIcon","fitContent","selectedLabel","option","onChange","$emit","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_sfc_main$3","expose","timePicker","_sfc_main$2","positions","onDayclick","onDaymouseenter","onDaykeydown","_sfc_main$1","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide","DatePicker","DatePickerBase","DatePickerPopover","slotCtx","_component_DatePickerPopover","_component_DatePickerBase"],"sourceRoot":""}