@event-calendar/build 0.18.1 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -2
- package/event-calendar.min.js +2 -2
- package/event-calendar.min.js.map +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-calendar.min.js","sources":["../../node_modules/core-js-pure/internals/engine-v8-version.js","../../node_modules/core-js-pure/internals/fails.js","../../node_modules/core-js-pure/internals/function-bind-native.js","../../node_modules/core-js-pure/internals/function-uncurry-this.js","../../node_modules/core-js-pure/internals/classof-raw.js","../../node_modules/core-js-pure/internals/indexed-object.js","../../node_modules/core-js-pure/internals/is-null-or-undefined.js","../../node_modules/core-js-pure/internals/require-object-coercible.js","../../node_modules/core-js-pure/internals/to-indexed-object.js","../../node_modules/core-js-pure/internals/iterators.js","../../node_modules/core-js-pure/internals/global.js","../../node_modules/core-js-pure/internals/document-all.js","../../node_modules/core-js-pure/internals/is-callable.js","../../node_modules/core-js-pure/internals/weak-map-basic-detection.js","../../node_modules/core-js-pure/internals/is-object.js","../../node_modules/core-js-pure/internals/descriptors.js","../../node_modules/core-js-pure/internals/document-create-element.js","../../node_modules/core-js-pure/internals/ie8-dom-define.js","../../node_modules/core-js-pure/internals/v8-prototype-define-bug.js","../../node_modules/core-js-pure/internals/an-object.js","../../node_modules/core-js-pure/internals/function-call.js","../../node_modules/core-js-pure/internals/path.js","../../node_modules/core-js-pure/internals/get-built-in.js","../../node_modules/core-js-pure/internals/object-is-prototype-of.js","../../node_modules/core-js-pure/internals/engine-user-agent.js","../../node_modules/core-js-pure/internals/symbol-constructor-detection.js","../../node_modules/core-js-pure/internals/use-symbol-as-uid.js","../../node_modules/core-js-pure/internals/is-symbol.js","../../node_modules/core-js-pure/internals/try-to-string.js","../../node_modules/core-js-pure/internals/a-callable.js","../../node_modules/core-js-pure/internals/get-method.js","../../node_modules/core-js-pure/internals/ordinary-to-primitive.js","../../node_modules/core-js-pure/internals/define-global-property.js","../../node_modules/core-js-pure/internals/shared-store.js","../../node_modules/core-js-pure/internals/shared.js","../../node_modules/core-js-pure/internals/to-object.js","../../node_modules/core-js-pure/internals/has-own-property.js","../../node_modules/core-js-pure/internals/uid.js","../../node_modules/core-js-pure/internals/well-known-symbol.js","../../node_modules/core-js-pure/internals/to-primitive.js","../../node_modules/core-js-pure/internals/to-property-key.js","../../node_modules/core-js-pure/internals/object-define-property.js","../../node_modules/core-js-pure/internals/create-property-descriptor.js","../../node_modules/core-js-pure/internals/internal-state.js","../../node_modules/core-js-pure/internals/create-non-enumerable-property.js","../../node_modules/core-js-pure/internals/shared-key.js","../../node_modules/core-js-pure/internals/hidden-keys.js","../../node_modules/core-js-pure/internals/function-apply.js","../../node_modules/core-js-pure/internals/function-uncurry-this-clause.js","../../node_modules/core-js-pure/internals/object-property-is-enumerable.js","../../node_modules/core-js-pure/internals/object-get-own-property-descriptor.js","../../node_modules/core-js-pure/internals/is-forced.js","../../node_modules/core-js-pure/internals/function-bind-context.js","../../node_modules/core-js-pure/internals/export.js","../../node_modules/core-js-pure/internals/function-name.js","../../node_modules/core-js-pure/internals/math-trunc.js","../../node_modules/core-js-pure/internals/to-integer-or-infinity.js","../../node_modules/core-js-pure/internals/to-absolute-index.js","../../node_modules/core-js-pure/internals/to-length.js","../../node_modules/core-js-pure/internals/length-of-array-like.js","../../node_modules/core-js-pure/internals/array-includes.js","../../node_modules/core-js-pure/internals/object-keys-internal.js","../../node_modules/core-js-pure/internals/enum-bug-keys.js","../../node_modules/core-js-pure/internals/object-keys.js","../../node_modules/core-js-pure/internals/object-define-properties.js","../../node_modules/core-js-pure/internals/html.js","../../node_modules/core-js-pure/internals/object-create.js","../../node_modules/core-js-pure/internals/iterators-core.js","../../node_modules/core-js-pure/internals/correct-prototype-getter.js","../../node_modules/core-js-pure/internals/object-get-prototype-of.js","../../node_modules/core-js-pure/internals/define-built-in.js","../../node_modules/core-js-pure/internals/to-string-tag-support.js","../../node_modules/core-js-pure/internals/classof.js","../../node_modules/core-js-pure/internals/object-to-string.js","../../node_modules/core-js-pure/internals/set-to-string-tag.js","../../node_modules/core-js-pure/internals/iterator-create-constructor.js","../../node_modules/core-js-pure/internals/iterator-define.js","../../node_modules/core-js-pure/internals/create-iter-result-object.js","../../node_modules/core-js-pure/modules/es.array.iterator.js","../../node_modules/core-js-pure/internals/add-to-unscopables.js","../../node_modules/core-js-pure/internals/to-string.js","../../node_modules/core-js-pure/internals/string-multibyte.js","../../node_modules/core-js-pure/modules/es.string.iterator.js","../../node_modules/core-js-pure/internals/is-iterable.js","../../node_modules/core-js-pure/es/is-iterable.js","../../node_modules/core-js-pure/modules/web.dom-collections.iterator.js","../../node_modules/core-js-pure/internals/dom-iterables.js","../../node_modules/core-js-pure/stable/is-iterable.js","../../node_modules/core-js-pure/full/is-iterable.js","../../node_modules/svelte/internal/index.mjs","../../node_modules/core-js-pure/features/is-iterable.js","../../node_modules/@babel/runtime-corejs3/core-js/is-iterable.js","../../node_modules/svelte/store/index.mjs","../common/index.js","../core/index.js","../day-grid/index.js","../list/index.js","../time-grid/index.js","../resource-time-grid/index.js","../interaction/index.js","src/index.js"],"sourcesContent":["var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar call = FunctionPrototype.call;\nvar uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {\n return function () {\n return call.apply(fn, arguments);\n };\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n return it === null || it === undefined;\n};\n","var isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","module.exports = {};\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","var documentAll = typeof document == 'object' && document.all;\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\n// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\nvar IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;\n\nmodule.exports = {\n all: documentAll,\n IS_HTMLDDA: IS_HTMLDDA\n};\n","var $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = $documentAll.IS_HTMLDDA ? function (argument) {\n return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n return typeof argument == 'function';\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n","var isCallable = require('../internals/is-callable');\nvar $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\nmodule.exports = $documentAll.IS_HTMLDDA ? function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;\n} : function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n","var isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw $TypeError($String(argument) + ' is not an object');\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","module.exports = {};\n","var path = require('../internals/path');\nvar global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (variable) {\n return isCallable(variable) ? variable : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])\n : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('navigator', 'userAgent') || '';\n","/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","var getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","var $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","var isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a function');\n};\n","var aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n","var call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw $TypeError(\"Can't convert object to primitive value\");\n};\n","var global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var global = require('../internals/global');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || defineGlobalProperty(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.27.1',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.27.1/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","var requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar WellKnownSymbolsStore = shared('wks');\nvar Symbol = global.Symbol;\nvar symbolFor = Symbol && Symbol['for'];\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {\n var description = 'Symbol.' + name;\n if (NATIVE_SYMBOL && hasOwn(Symbol, name)) {\n WellKnownSymbolsStore[name] = Symbol[name];\n } else if (USE_SYMBOL_AS_UID && symbolFor) {\n WellKnownSymbolsStore[name] = symbolFor(description);\n } else {\n WellKnownSymbolsStore[name] = createWellKnownSymbol(description);\n }\n } return WellKnownSymbolsStore[name];\n};\n","var call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set = function (it, metadata) {\n if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","module.exports = {};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar apply = FunctionPrototype.apply;\nvar call = FunctionPrototype.call;\n\n// eslint-disable-next-line es/no-reflect -- safe\nmodule.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {\n return call.apply(apply, arguments);\n});\n","var classofRaw = require('../internals/classof-raw');\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = function (fn) {\n // Nashorn bug:\n // https://github.com/zloirock/core-js/issues/1128\n // https://github.com/zloirock/core-js/issues/1130\n if (classofRaw(fn) === 'Function') return uncurryThis(fn);\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","var DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","var uncurryThis = require('../internals/function-uncurry-this-clause');\nvar aCallable = require('../internals/a-callable');\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar bind = uncurryThis(uncurryThis.bind);\n\n// optional / simple context binding\nmodule.exports = function (fn, that) {\n aCallable(fn);\n return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","'use strict';\nvar global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar uncurryThis = require('../internals/function-uncurry-this-clause');\nvar isCallable = require('../internals/is-callable');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar isForced = require('../internals/is-forced');\nvar path = require('../internals/path');\nvar bind = require('../internals/function-bind-context');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\n\nvar wrapConstructor = function (NativeConstructor) {\n var Wrapper = function (a, b, c) {\n if (this instanceof Wrapper) {\n switch (arguments.length) {\n case 0: return new NativeConstructor();\n case 1: return new NativeConstructor(a);\n case 2: return new NativeConstructor(a, b);\n } return new NativeConstructor(a, b, c);\n } return apply(NativeConstructor, this, arguments);\n };\n Wrapper.prototype = NativeConstructor.prototype;\n return Wrapper;\n};\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var PROTO = options.proto;\n\n var nativeSource = GLOBAL ? global : STATIC ? global[TARGET] : (global[TARGET] || {}).prototype;\n\n var target = GLOBAL ? path : path[TARGET] || createNonEnumerableProperty(path, TARGET, {})[TARGET];\n var targetPrototype = target.prototype;\n\n var FORCED, USE_NATIVE, VIRTUAL_PROTOTYPE;\n var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor;\n\n for (key in source) {\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contains in native\n USE_NATIVE = !FORCED && nativeSource && hasOwn(nativeSource, key);\n\n targetProperty = target[key];\n\n if (USE_NATIVE) if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(nativeSource, key);\n nativeProperty = descriptor && descriptor.value;\n } else nativeProperty = nativeSource[key];\n\n // export native or implementation\n sourceProperty = (USE_NATIVE && nativeProperty) ? nativeProperty : source[key];\n\n if (USE_NATIVE && typeof targetProperty == typeof sourceProperty) continue;\n\n // bind timers to global for call from export context\n if (options.bind && USE_NATIVE) resultProperty = bind(sourceProperty, global);\n // wrap global constructors for prevent changs in this version\n else if (options.wrap && USE_NATIVE) resultProperty = wrapConstructor(sourceProperty);\n // make static versions for prototype methods\n else if (PROTO && isCallable(sourceProperty)) resultProperty = uncurryThis(sourceProperty);\n // default case\n else resultProperty = sourceProperty;\n\n // add a flag to not completely full polyfills\n if (options.sham || (sourceProperty && sourceProperty.sham) || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(resultProperty, 'sham', true);\n }\n\n createNonEnumerableProperty(target, key, resultProperty);\n\n if (PROTO) {\n VIRTUAL_PROTOTYPE = TARGET + 'Prototype';\n if (!hasOwn(path, VIRTUAL_PROTOTYPE)) {\n createNonEnumerableProperty(path, VIRTUAL_PROTOTYPE, {});\n }\n // export virtual prototype methods\n createNonEnumerableProperty(path[VIRTUAL_PROTOTYPE], key, sourceProperty);\n // export real prototype methods\n if (options.real && targetPrototype && (FORCED || !targetPrototype[key])) {\n createNonEnumerableProperty(targetPrototype, key, sourceProperty);\n }\n }\n }\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","var trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n// eslint-disable-next-line es/no-object-keys -- safe\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar definePropertyModule = require('../internals/object-define-property');\nvar anObject = require('../internals/an-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar objectKeys = require('../internals/object-keys');\n\n// `Object.defineProperties` method\n// https://tc39.es/ecma262/#sec-object.defineproperties\n// eslint-disable-next-line es/no-object-defineproperties -- safe\nexports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var props = toIndexedObject(Properties);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);\n return O;\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n","/* global ActiveXObject -- old IE, WSH */\nvar anObject = require('../internals/an-object');\nvar definePropertiesModule = require('../internals/object-define-properties');\nvar enumBugKeys = require('../internals/enum-bug-keys');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar html = require('../internals/html');\nvar documentCreateElement = require('../internals/document-create-element');\nvar sharedKey = require('../internals/shared-key');\n\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO = sharedKey('IE_PROTO');\n\nvar EmptyConstructor = function () { /* empty */ };\n\nvar scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n};\n\n// Create object with fake `null` prototype: use ActiveX Object with cleared prototype\nvar NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n};\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n};\n\n// Check for document.domain and active x support\n// No need to use active x approach when document.domain is not set\n// see https://github.com/es-shims/es5-shim/issues/150\n// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n// avoid IE GC bug\nvar activeXDocument;\nvar NullProtoObject = function () {\n try {\n activeXDocument = new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = typeof document != 'undefined'\n ? document.domain && activeXDocument\n ? NullProtoObjectViaActiveX(activeXDocument) // old IE\n : NullProtoObjectViaIFrame()\n : NullProtoObjectViaActiveX(activeXDocument); // WSH\n var length = enumBugKeys.length;\n while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n return NullProtoObject();\n};\n\nhiddenKeys[IE_PROTO] = true;\n\n// `Object.create` method\n// https://tc39.es/ecma262/#sec-object.create\n// eslint-disable-next-line es/no-object-create -- safe\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE] = anObject(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : definePropertiesModule.f(result, Properties);\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar create = require('../internals/object-create');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar BUGGY_SAFARI_ITERATORS = false;\n\n// `%IteratorPrototype%` object\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-object\nvar IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;\n\n/* eslint-disable es/no-array-prototype-keys -- safe */\nif ([].keys) {\n arrayIterator = [].keys();\n // Safari 8 has buggy iterators w/o `next`\n if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;\n else {\n PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));\n if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;\n }\n}\n\nvar NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () {\n var test = {};\n // FF44- legacy iterators case\n return IteratorPrototype[ITERATOR].call(test) !== test;\n});\n\nif (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};\nelse if (IS_PURE) IteratorPrototype = create(IteratorPrototype);\n\n// `%IteratorPrototype%[@@iterator]()` method\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator\nif (!isCallable(IteratorPrototype[ITERATOR])) {\n defineBuiltIn(IteratorPrototype, ITERATOR, function () {\n return this;\n });\n}\n\nmodule.exports = {\n IteratorPrototype: IteratorPrototype,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n function F() { /* empty */ }\n F.prototype.constructor = null;\n // eslint-disable-next-line es/no-object-getprototypeof -- required for testing\n return Object.getPrototypeOf(new F()) !== F.prototype;\n});\n","var hasOwn = require('../internals/has-own-property');\nvar isCallable = require('../internals/is-callable');\nvar toObject = require('../internals/to-object');\nvar sharedKey = require('../internals/shared-key');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\nvar IE_PROTO = sharedKey('IE_PROTO');\nvar $Object = Object;\nvar ObjectPrototype = $Object.prototype;\n\n// `Object.getPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.getprototypeof\n// eslint-disable-next-line es/no-object-getprototypeof -- safe\nmodule.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {\n var object = toObject(O);\n if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];\n var constructor = object.constructor;\n if (isCallable(constructor) && object instanceof constructor) {\n return constructor.prototype;\n } return object instanceof $Object ? ObjectPrototype : null;\n};\n","var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nmodule.exports = function (target, key, value, options) {\n if (options && options.enumerable) target[key] = value;\n else createNonEnumerableProperty(target, key, value);\n return target;\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Object = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar classof = require('../internals/classof');\n\n// `Object.prototype.toString` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nmodule.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {\n return '[object ' + classof(this) + ']';\n};\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar defineProperty = require('../internals/object-define-property').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar toString = require('../internals/object-to-string');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nmodule.exports = function (it, TAG, STATIC, SET_METHOD) {\n if (it) {\n var target = STATIC ? it : it.prototype;\n if (!hasOwn(target, TO_STRING_TAG)) {\n defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });\n }\n if (SET_METHOD && !TO_STRING_TAG_SUPPORT) {\n createNonEnumerableProperty(target, 'toString', toString);\n }\n }\n};\n","'use strict';\nvar IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;\nvar create = require('../internals/object-create');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar Iterators = require('../internals/iterators');\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {\n var TO_STRING_TAG = NAME + ' Iterator';\n IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });\n setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);\n Iterators[TO_STRING_TAG] = returnThis;\n return IteratorConstructor;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar IS_PURE = require('../internals/is-pure');\nvar FunctionName = require('../internals/function-name');\nvar isCallable = require('../internals/is-callable');\nvar createIteratorConstructor = require('../internals/iterator-create-constructor');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\nvar IteratorsCore = require('../internals/iterators-core');\n\nvar PROPER_FUNCTION_NAME = FunctionName.PROPER;\nvar CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;\nvar IteratorPrototype = IteratorsCore.IteratorPrototype;\nvar BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;\nvar ITERATOR = wellKnownSymbol('iterator');\nvar KEYS = 'keys';\nvar VALUES = 'values';\nvar ENTRIES = 'entries';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {\n createIteratorConstructor(IteratorConstructor, NAME, next);\n\n var getIterationMethod = function (KIND) {\n if (KIND === DEFAULT && defaultIterator) return defaultIterator;\n if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];\n switch (KIND) {\n case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };\n case VALUES: return function values() { return new IteratorConstructor(this, KIND); };\n case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };\n } return function () { return new IteratorConstructor(this); };\n };\n\n var TO_STRING_TAG = NAME + ' Iterator';\n var INCORRECT_VALUES_NAME = false;\n var IterablePrototype = Iterable.prototype;\n var nativeIterator = IterablePrototype[ITERATOR]\n || IterablePrototype['@@iterator']\n || DEFAULT && IterablePrototype[DEFAULT];\n var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);\n var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;\n var CurrentIteratorPrototype, methods, KEY;\n\n // fix native\n if (anyNativeIterator) {\n CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));\n if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {\n if (setPrototypeOf) {\n setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);\n } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {\n defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis);\n }\n }\n // Set @@toStringTag to native iterators\n setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);\n if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;\n }\n }\n\n // fix Array.prototype.{ values, @@iterator }.name in V8 / FF\n if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {\n createNonEnumerableProperty(IterablePrototype, 'name', VALUES);\n } else {\n INCORRECT_VALUES_NAME = true;\n defaultIterator = function values() { return call(nativeIterator, this); };\n }\n }\n\n // export additional methods\n if (DEFAULT) {\n methods = {\n values: getIterationMethod(VALUES),\n keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),\n entries: getIterationMethod(ENTRIES)\n };\n if (FORCED) for (KEY in methods) {\n if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {\n defineBuiltIn(IterablePrototype, KEY, methods[KEY]);\n }\n } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);\n }\n\n // define iterator\n if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {\n defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });\n }\n Iterators[NAME] = defaultIterator;\n\n return methods;\n};\n","// `CreateIterResultObject` abstract operation\n// https://tc39.es/ecma262/#sec-createiterresultobject\nmodule.exports = function (value, done) {\n return { value: value, done: done };\n};\n","'use strict';\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar Iterators = require('../internals/iterators');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineProperty = require('../internals/object-define-property').f;\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar ARRAY_ITERATOR = 'Array Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);\n\n// `Array.prototype.entries` method\n// https://tc39.es/ecma262/#sec-array.prototype.entries\n// `Array.prototype.keys` method\n// https://tc39.es/ecma262/#sec-array.prototype.keys\n// `Array.prototype.values` method\n// https://tc39.es/ecma262/#sec-array.prototype.values\n// `Array.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-array.prototype-@@iterator\n// `CreateArrayIterator` internal method\n// https://tc39.es/ecma262/#sec-createarrayiterator\nmodule.exports = defineIterator(Array, 'Array', function (iterated, kind) {\n setInternalState(this, {\n type: ARRAY_ITERATOR,\n target: toIndexedObject(iterated), // target\n index: 0, // next index\n kind: kind // kind\n });\n// `%ArrayIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next\n}, function () {\n var state = getInternalState(this);\n var target = state.target;\n var kind = state.kind;\n var index = state.index++;\n if (!target || index >= target.length) {\n state.target = undefined;\n return createIterResultObject(undefined, true);\n }\n if (kind == 'keys') return createIterResultObject(index, false);\n if (kind == 'values') return createIterResultObject(target[index], false);\n return createIterResultObject([index, target[index]], false);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values%\n// https://tc39.es/ecma262/#sec-createunmappedargumentsobject\n// https://tc39.es/ecma262/#sec-createmappedargumentsobject\nvar values = Iterators.Arguments = Iterators.Array;\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n// V8 ~ Chrome 45- bug\nif (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {\n defineProperty(values, 'name', { value: 'values' });\n} catch (error) { /* empty */ }\n","module.exports = function () { /* empty */ };\n","var classof = require('../internals/classof');\n\nvar $String = String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n return $String(argument);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar charAt = uncurryThis(''.charAt);\nvar charCodeAt = uncurryThis(''.charCodeAt);\nvar stringSlice = uncurryThis(''.slice);\n\nvar createMethod = function (CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = toString(requireObjectCoercible($this));\n var position = toIntegerOrInfinity(pos);\n var size = S.length;\n var first, second;\n if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n first = charCodeAt(S, position);\n return first < 0xD800 || first > 0xDBFF || position + 1 === size\n || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF\n ? CONVERT_TO_STRING\n ? charAt(S, position)\n : first\n : CONVERT_TO_STRING\n ? stringSlice(S, position, position + 2)\n : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;\n };\n};\n\nmodule.exports = {\n // `String.prototype.codePointAt` method\n // https://tc39.es/ecma262/#sec-string.prototype.codepointat\n codeAt: createMethod(false),\n // `String.prototype.at` method\n // https://github.com/mathiasbynens/String.prototype.at\n charAt: createMethod(true)\n};\n","'use strict';\nvar charAt = require('../internals/string-multibyte').charAt;\nvar toString = require('../internals/to-string');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\n\nvar STRING_ITERATOR = 'String Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);\n\n// `String.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-string.prototype-@@iterator\ndefineIterator(String, 'String', function (iterated) {\n setInternalState(this, {\n type: STRING_ITERATOR,\n string: toString(iterated),\n index: 0\n });\n// `%StringIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next\n}, function next() {\n var state = getInternalState(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return createIterResultObject(undefined, true);\n point = charAt(string, index);\n state.index += point.length;\n return createIterResultObject(point, false);\n});\n","var classof = require('../internals/classof');\nvar hasOwn = require('../internals/has-own-property');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar $Object = Object;\n\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) return false;\n var O = $Object(it);\n return O[ITERATOR] !== undefined\n || '@@iterator' in O\n || hasOwn(Iterators, classof(O));\n};\n","require('../modules/es.array.iterator');\nrequire('../modules/es.string.iterator');\nvar isIterable = require('../internals/is-iterable');\n\nmodule.exports = isIterable;\n","require('../modules/es.array.iterator');\nvar DOMIterables = require('../internals/dom-iterables');\nvar global = require('../internals/global');\nvar classof = require('../internals/classof');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nfor (var COLLECTION_NAME in DOMIterables) {\n var Collection = global[COLLECTION_NAME];\n var CollectionPrototype = Collection && Collection.prototype;\n if (CollectionPrototype && classof(CollectionPrototype) !== TO_STRING_TAG) {\n createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);\n }\n Iterators[COLLECTION_NAME] = Iterators.Array;\n}\n","// iterable DOM collections\n// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods\nmodule.exports = {\n CSSRuleList: 0,\n CSSStyleDeclaration: 0,\n CSSValueList: 0,\n ClientRectList: 0,\n DOMRectList: 0,\n DOMStringList: 0,\n DOMTokenList: 1,\n DataTransferItemList: 0,\n FileList: 0,\n HTMLAllCollection: 0,\n HTMLCollection: 0,\n HTMLFormElement: 0,\n HTMLSelectElement: 0,\n MediaList: 0,\n MimeTypeArray: 0,\n NamedNodeMap: 0,\n NodeList: 1,\n PaintRequestList: 0,\n Plugin: 0,\n PluginArray: 0,\n SVGLengthList: 0,\n SVGNumberList: 0,\n SVGPathSegList: 0,\n SVGPointList: 0,\n SVGStringList: 0,\n SVGTransformList: 0,\n SourceBufferList: 0,\n StyleSheetList: 0,\n TextTrackCueList: 0,\n TextTrackList: 0,\n TouchList: 0\n};\n","var parent = require('../es/is-iterable');\nrequire('../modules/web.dom-collections.iterator');\n\nmodule.exports = parent;\n","var parent = require('../actual/is-iterable');\n\nmodule.exports = parent;\n","function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n // @ts-ignore\n for (const k in src)\n tar[k] = src[k];\n return tar;\n}\n// Adapted from https://github.com/then/is-promise/blob/master/index.js\n// Distributed under MIT License https://github.com/then/is-promise/blob/master/LICENSE\nfunction is_promise(value) {\n return !!value && (typeof value === 'object' || typeof value === 'function') && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n element.__svelte_meta = {\n loc: { file, line, column, char }\n };\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction is_function(thing) {\n return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nlet src_url_equal_anchor;\nfunction src_url_equal(element_src, url) {\n if (!src_url_equal_anchor) {\n src_url_equal_anchor = document.createElement('a');\n }\n src_url_equal_anchor.href = url;\n return element_src === src_url_equal_anchor.href;\n}\nfunction not_equal(a, b) {\n return a != a ? b == b : a !== b;\n}\nfunction is_empty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction validate_store(store, name) {\n if (store != null && typeof store.subscribe !== 'function') {\n throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n }\n}\nfunction subscribe(store, ...callbacks) {\n if (store == null) {\n return noop;\n }\n const unsub = store.subscribe(...callbacks);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, _ => value = _)();\n return value;\n}\nfunction component_subscribe(component, store, callback) {\n component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, $$scope, fn) {\n if (definition) {\n const slot_ctx = get_slot_context(definition, ctx, $$scope, fn);\n return definition[0](slot_ctx);\n }\n}\nfunction get_slot_context(definition, ctx, $$scope, fn) {\n return definition[1] && fn\n ? assign($$scope.ctx.slice(), definition[1](fn(ctx)))\n : $$scope.ctx;\n}\nfunction get_slot_changes(definition, $$scope, dirty, fn) {\n if (definition[2] && fn) {\n const lets = definition[2](fn(dirty));\n if ($$scope.dirty === undefined) {\n return lets;\n }\n if (typeof lets === 'object') {\n const merged = [];\n const len = Math.max($$scope.dirty.length, lets.length);\n for (let i = 0; i < len; i += 1) {\n merged[i] = $$scope.dirty[i] | lets[i];\n }\n return merged;\n }\n return $$scope.dirty | lets;\n }\n return $$scope.dirty;\n}\nfunction update_slot_base(slot, slot_definition, ctx, $$scope, slot_changes, get_slot_context_fn) {\n if (slot_changes) {\n const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n slot.p(slot_context, slot_changes);\n }\n}\nfunction update_slot(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_context_fn) {\n const slot_changes = get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n update_slot_base(slot, slot_definition, ctx, $$scope, slot_changes, get_slot_context_fn);\n}\nfunction get_all_dirty_from_scope($$scope) {\n if ($$scope.ctx.length > 32) {\n const dirty = [];\n const length = $$scope.ctx.length / 32;\n for (let i = 0; i < length; i++) {\n dirty[i] = -1;\n }\n return dirty;\n }\n return -1;\n}\nfunction exclude_internal_props(props) {\n const result = {};\n for (const k in props)\n if (k[0] !== '$')\n result[k] = props[k];\n return result;\n}\nfunction compute_rest_props(props, keys) {\n const rest = {};\n keys = new Set(keys);\n for (const k in props)\n if (!keys.has(k) && k[0] !== '$')\n rest[k] = props[k];\n return rest;\n}\nfunction compute_slots(slots) {\n const result = {};\n for (const key in slots) {\n result[key] = true;\n }\n return result;\n}\nfunction once(fn) {\n let ran = false;\n return function (...args) {\n if (ran)\n return;\n ran = true;\n fn.call(this, ...args);\n };\n}\nfunction null_to_empty(value) {\n return value == null ? '' : value;\n}\nfunction set_store_value(store, ret, value) {\n store.set(value);\n return ret;\n}\nconst has_prop = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\nfunction action_destroyer(action_result) {\n return action_result && is_function(action_result.destroy) ? action_result.destroy : noop;\n}\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n ? () => window.performance.now()\n : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n now = fn;\n}\nfunction set_raf(fn) {\n raf = fn;\n}\n\nconst tasks = new Set();\nfunction run_tasks(now) {\n tasks.forEach(task => {\n if (!task.c(now)) {\n tasks.delete(task);\n task.f();\n }\n });\n if (tasks.size !== 0)\n raf(run_tasks);\n}\n/**\n * For testing purposes only!\n */\nfunction clear_loops() {\n tasks.clear();\n}\n/**\n * Creates a new task that runs on each raf frame\n * until it returns a falsy value or is aborted\n */\nfunction loop(callback) {\n let task;\n if (tasks.size === 0)\n raf(run_tasks);\n return {\n promise: new Promise(fulfill => {\n tasks.add(task = { c: callback, f: fulfill });\n }),\n abort() {\n tasks.delete(task);\n }\n };\n}\n\n// Track which nodes are claimed during hydration. Unclaimed nodes can then be removed from the DOM\n// at the end of hydration without touching the remaining nodes.\nlet is_hydrating = false;\nfunction start_hydrating() {\n is_hydrating = true;\n}\nfunction end_hydrating() {\n is_hydrating = false;\n}\nfunction upper_bound(low, high, key, value) {\n // Return first index of value larger than input value in the range [low, high)\n while (low < high) {\n const mid = low + ((high - low) >> 1);\n if (key(mid) <= value) {\n low = mid + 1;\n }\n else {\n high = mid;\n }\n }\n return low;\n}\nfunction init_hydrate(target) {\n if (target.hydrate_init)\n return;\n target.hydrate_init = true;\n // We know that all children have claim_order values since the unclaimed have been detached if target is not <head>\n let children = target.childNodes;\n // If target is <head>, there may be children without claim_order\n if (target.nodeName === 'HEAD') {\n const myChildren = [];\n for (let i = 0; i < children.length; i++) {\n const node = children[i];\n if (node.claim_order !== undefined) {\n myChildren.push(node);\n }\n }\n children = myChildren;\n }\n /*\n * Reorder claimed children optimally.\n * We can reorder claimed children optimally by finding the longest subsequence of\n * nodes that are already claimed in order and only moving the rest. The longest\n * subsequence of nodes that are claimed in order can be found by\n * computing the longest increasing subsequence of .claim_order values.\n *\n * This algorithm is optimal in generating the least amount of reorder operations\n * possible.\n *\n * Proof:\n * We know that, given a set of reordering operations, the nodes that do not move\n * always form an increasing subsequence, since they do not move among each other\n * meaning that they must be already ordered among each other. Thus, the maximal\n * set of nodes that do not move form a longest increasing subsequence.\n */\n // Compute longest increasing subsequence\n // m: subsequence length j => index k of smallest value that ends an increasing subsequence of length j\n const m = new Int32Array(children.length + 1);\n // Predecessor indices + 1\n const p = new Int32Array(children.length);\n m[0] = -1;\n let longest = 0;\n for (let i = 0; i < children.length; i++) {\n const current = children[i].claim_order;\n // Find the largest subsequence length such that it ends in a value less than our current value\n // upper_bound returns first greater value, so we subtract one\n // with fast path for when we are on the current longest subsequence\n const seqLen = ((longest > 0 && children[m[longest]].claim_order <= current) ? longest + 1 : upper_bound(1, longest, idx => children[m[idx]].claim_order, current)) - 1;\n p[i] = m[seqLen] + 1;\n const newLen = seqLen + 1;\n // We can guarantee that current is the smallest value. Otherwise, we would have generated a longer sequence.\n m[newLen] = i;\n longest = Math.max(newLen, longest);\n }\n // The longest increasing subsequence of nodes (initially reversed)\n const lis = [];\n // The rest of the nodes, nodes that will be moved\n const toMove = [];\n let last = children.length - 1;\n for (let cur = m[longest] + 1; cur != 0; cur = p[cur - 1]) {\n lis.push(children[cur - 1]);\n for (; last >= cur; last--) {\n toMove.push(children[last]);\n }\n last--;\n }\n for (; last >= 0; last--) {\n toMove.push(children[last]);\n }\n lis.reverse();\n // We sort the nodes being moved to guarantee that their insertion order matches the claim order\n toMove.sort((a, b) => a.claim_order - b.claim_order);\n // Finally, we move the nodes\n for (let i = 0, j = 0; i < toMove.length; i++) {\n while (j < lis.length && toMove[i].claim_order >= lis[j].claim_order) {\n j++;\n }\n const anchor = j < lis.length ? lis[j] : null;\n target.insertBefore(toMove[i], anchor);\n }\n}\nfunction append(target, node) {\n target.appendChild(node);\n}\nfunction append_styles(target, style_sheet_id, styles) {\n const append_styles_to = get_root_for_style(target);\n if (!append_styles_to.getElementById(style_sheet_id)) {\n const style = element('style');\n style.id = style_sheet_id;\n style.textContent = styles;\n append_stylesheet(append_styles_to, style);\n }\n}\nfunction get_root_for_style(node) {\n if (!node)\n return document;\n const root = node.getRootNode ? node.getRootNode() : node.ownerDocument;\n if (root && root.host) {\n return root;\n }\n return node.ownerDocument;\n}\nfunction append_empty_stylesheet(node) {\n const style_element = element('style');\n append_stylesheet(get_root_for_style(node), style_element);\n return style_element.sheet;\n}\nfunction append_stylesheet(node, style) {\n append(node.head || node, style);\n return style.sheet;\n}\nfunction append_hydration(target, node) {\n if (is_hydrating) {\n init_hydrate(target);\n if ((target.actual_end_child === undefined) || ((target.actual_end_child !== null) && (target.actual_end_child.parentNode !== target))) {\n target.actual_end_child = target.firstChild;\n }\n // Skip nodes of undefined ordering\n while ((target.actual_end_child !== null) && (target.actual_end_child.claim_order === undefined)) {\n target.actual_end_child = target.actual_end_child.nextSibling;\n }\n if (node !== target.actual_end_child) {\n // We only insert if the ordering of this node should be modified or the parent node is not target\n if (node.claim_order !== undefined || node.parentNode !== target) {\n target.insertBefore(node, target.actual_end_child);\n }\n }\n else {\n target.actual_end_child = node.nextSibling;\n }\n }\n else if (node.parentNode !== target || node.nextSibling !== null) {\n target.appendChild(node);\n }\n}\nfunction insert(target, node, anchor) {\n target.insertBefore(node, anchor || null);\n}\nfunction insert_hydration(target, node, anchor) {\n if (is_hydrating && !anchor) {\n append_hydration(target, node);\n }\n else if (node.parentNode !== target || node.nextSibling != anchor) {\n target.insertBefore(node, anchor || null);\n }\n}\nfunction detach(node) {\n if (node.parentNode) {\n node.parentNode.removeChild(node);\n }\n}\nfunction destroy_each(iterations, detaching) {\n for (let i = 0; i < iterations.length; i += 1) {\n if (iterations[i])\n iterations[i].d(detaching);\n }\n}\nfunction element(name) {\n return document.createElement(name);\n}\nfunction element_is(name, is) {\n return document.createElement(name, { is });\n}\nfunction object_without_properties(obj, exclude) {\n const target = {};\n for (const k in obj) {\n if (has_prop(obj, k)\n // @ts-ignore\n && exclude.indexOf(k) === -1) {\n // @ts-ignore\n target[k] = obj[k];\n }\n }\n return target;\n}\nfunction svg_element(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n return document.createTextNode(data);\n}\nfunction space() {\n return text(' ');\n}\nfunction empty() {\n return text('');\n}\nfunction listen(node, event, handler, options) {\n node.addEventListener(event, handler, options);\n return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n return function (event) {\n event.preventDefault();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_propagation(fn) {\n return function (event) {\n event.stopPropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction self(fn) {\n return function (event) {\n // @ts-ignore\n if (event.target === this)\n fn.call(this, event);\n };\n}\nfunction trusted(fn) {\n return function (event) {\n // @ts-ignore\n if (event.isTrusted)\n fn.call(this, event);\n };\n}\nfunction attr(node, attribute, value) {\n if (value == null)\n node.removeAttribute(attribute);\n else if (node.getAttribute(attribute) !== value)\n node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n // @ts-ignore\n const descriptors = Object.getOwnPropertyDescriptors(node.__proto__);\n for (const key in attributes) {\n if (attributes[key] == null) {\n node.removeAttribute(key);\n }\n else if (key === 'style') {\n node.style.cssText = attributes[key];\n }\n else if (key === '__value') {\n node.value = node[key] = attributes[key];\n }\n else if (descriptors[key] && descriptors[key].set) {\n node[key] = attributes[key];\n }\n else {\n attr(node, key, attributes[key]);\n }\n }\n}\nfunction set_svg_attributes(node, attributes) {\n for (const key in attributes) {\n attr(node, key, attributes[key]);\n }\n}\nfunction set_custom_element_data_map(node, data_map) {\n Object.keys(data_map).forEach((key) => {\n set_custom_element_data(node, key, data_map[key]);\n });\n}\nfunction set_custom_element_data(node, prop, value) {\n if (prop in node) {\n node[prop] = typeof node[prop] === 'boolean' && value === '' ? true : value;\n }\n else {\n attr(node, prop, value);\n }\n}\nfunction xlink_attr(node, attribute, value) {\n node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group, __value, checked) {\n const value = new Set();\n for (let i = 0; i < group.length; i += 1) {\n if (group[i].checked)\n value.add(group[i].__value);\n }\n if (!checked) {\n value.delete(__value);\n }\n return Array.from(value);\n}\nfunction to_number(value) {\n return value === '' ? null : +value;\n}\nfunction time_ranges_to_array(ranges) {\n const array = [];\n for (let i = 0; i < ranges.length; i += 1) {\n array.push({ start: ranges.start(i), end: ranges.end(i) });\n }\n return array;\n}\nfunction children(element) {\n return Array.from(element.childNodes);\n}\nfunction init_claim_info(nodes) {\n if (nodes.claim_info === undefined) {\n nodes.claim_info = { last_index: 0, total_claimed: 0 };\n }\n}\nfunction claim_node(nodes, predicate, processNode, createNode, dontUpdateLastIndex = false) {\n // Try to find nodes in an order such that we lengthen the longest increasing subsequence\n init_claim_info(nodes);\n const resultNode = (() => {\n // We first try to find an element after the previous one\n for (let i = nodes.claim_info.last_index; i < nodes.length; i++) {\n const node = nodes[i];\n if (predicate(node)) {\n const replacement = processNode(node);\n if (replacement === undefined) {\n nodes.splice(i, 1);\n }\n else {\n nodes[i] = replacement;\n }\n if (!dontUpdateLastIndex) {\n nodes.claim_info.last_index = i;\n }\n return node;\n }\n }\n // Otherwise, we try to find one before\n // We iterate in reverse so that we don't go too far back\n for (let i = nodes.claim_info.last_index - 1; i >= 0; i--) {\n const node = nodes[i];\n if (predicate(node)) {\n const replacement = processNode(node);\n if (replacement === undefined) {\n nodes.splice(i, 1);\n }\n else {\n nodes[i] = replacement;\n }\n if (!dontUpdateLastIndex) {\n nodes.claim_info.last_index = i;\n }\n else if (replacement === undefined) {\n // Since we spliced before the last_index, we decrease it\n nodes.claim_info.last_index--;\n }\n return node;\n }\n }\n // If we can't find any matching node, we create a new one\n return createNode();\n })();\n resultNode.claim_order = nodes.claim_info.total_claimed;\n nodes.claim_info.total_claimed += 1;\n return resultNode;\n}\nfunction claim_element_base(nodes, name, attributes, create_element) {\n return claim_node(nodes, (node) => node.nodeName === name, (node) => {\n const remove = [];\n for (let j = 0; j < node.attributes.length; j++) {\n const attribute = node.attributes[j];\n if (!attributes[attribute.name]) {\n remove.push(attribute.name);\n }\n }\n remove.forEach(v => node.removeAttribute(v));\n return undefined;\n }, () => create_element(name));\n}\nfunction claim_element(nodes, name, attributes) {\n return claim_element_base(nodes, name, attributes, element);\n}\nfunction claim_svg_element(nodes, name, attributes) {\n return claim_element_base(nodes, name, attributes, svg_element);\n}\nfunction claim_text(nodes, data) {\n return claim_node(nodes, (node) => node.nodeType === 3, (node) => {\n const dataStr = '' + data;\n if (node.data.startsWith(dataStr)) {\n if (node.data.length !== dataStr.length) {\n return node.splitText(dataStr.length);\n }\n }\n else {\n node.data = dataStr;\n }\n }, () => text(data), true // Text nodes should not update last index since it is likely not worth it to eliminate an increasing subsequence of actual elements\n );\n}\nfunction claim_space(nodes) {\n return claim_text(nodes, ' ');\n}\nfunction find_comment(nodes, text, start) {\n for (let i = start; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeType === 8 /* comment node */ && node.textContent.trim() === text) {\n return i;\n }\n }\n return nodes.length;\n}\nfunction claim_html_tag(nodes, is_svg) {\n // find html opening tag\n const start_index = find_comment(nodes, 'HTML_TAG_START', 0);\n const end_index = find_comment(nodes, 'HTML_TAG_END', start_index);\n if (start_index === end_index) {\n return new HtmlTagHydration(undefined, is_svg);\n }\n init_claim_info(nodes);\n const html_tag_nodes = nodes.splice(start_index, end_index - start_index + 1);\n detach(html_tag_nodes[0]);\n detach(html_tag_nodes[html_tag_nodes.length - 1]);\n const claimed_nodes = html_tag_nodes.slice(1, html_tag_nodes.length - 1);\n for (const n of claimed_nodes) {\n n.claim_order = nodes.claim_info.total_claimed;\n nodes.claim_info.total_claimed += 1;\n }\n return new HtmlTagHydration(claimed_nodes, is_svg);\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.wholeText !== data)\n text.data = data;\n}\nfunction set_input_value(input, value) {\n input.value = value == null ? '' : value;\n}\nfunction set_input_type(input, type) {\n try {\n input.type = type;\n }\n catch (e) {\n // do nothing\n }\n}\nfunction set_style(node, key, value, important) {\n if (value === null) {\n node.style.removeProperty(key);\n }\n else {\n node.style.setProperty(key, value, important ? 'important' : '');\n }\n}\nfunction select_option(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n if (option.__value === value) {\n option.selected = true;\n return;\n }\n }\n select.selectedIndex = -1; // no option should be selected\n}\nfunction select_options(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n option.selected = ~value.indexOf(option.__value);\n }\n}\nfunction select_value(select) {\n const selected_option = select.querySelector(':checked') || select.options[0];\n return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\n// unfortunately this can't be a constant as that wouldn't be tree-shakeable\n// so we cache the result instead\nlet crossorigin;\nfunction is_crossorigin() {\n if (crossorigin === undefined) {\n crossorigin = false;\n try {\n if (typeof window !== 'undefined' && window.parent) {\n void window.parent.document;\n }\n }\n catch (error) {\n crossorigin = true;\n }\n }\n return crossorigin;\n}\nfunction add_resize_listener(node, fn) {\n const computed_style = getComputedStyle(node);\n if (computed_style.position === 'static') {\n node.style.position = 'relative';\n }\n const iframe = element('iframe');\n iframe.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; ' +\n 'overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;');\n iframe.setAttribute('aria-hidden', 'true');\n iframe.tabIndex = -1;\n const crossorigin = is_crossorigin();\n let unsubscribe;\n if (crossorigin) {\n iframe.src = \"data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}</script>\";\n unsubscribe = listen(window, 'message', (event) => {\n if (event.source === iframe.contentWindow)\n fn();\n });\n }\n else {\n iframe.src = 'about:blank';\n iframe.onload = () => {\n unsubscribe = listen(iframe.contentWindow, 'resize', fn);\n };\n }\n append(node, iframe);\n return () => {\n if (crossorigin) {\n unsubscribe();\n }\n else if (unsubscribe && iframe.contentWindow) {\n unsubscribe();\n }\n detach(iframe);\n };\n}\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, bubbles, cancelable, detail);\n return e;\n}\nfunction query_selector_all(selector, parent = document.body) {\n return Array.from(parent.querySelectorAll(selector));\n}\nfunction head_selector(nodeId, head) {\n const result = [];\n let started = 0;\n for (const node of head.childNodes) {\n if (node.nodeType === 8 /* comment node */) {\n const comment = node.textContent.trim();\n if (comment === `HEAD_${nodeId}_END`) {\n started -= 1;\n result.push(node);\n }\n else if (comment === `HEAD_${nodeId}_START`) {\n started += 1;\n result.push(node);\n }\n }\n else if (started > 0) {\n result.push(node);\n }\n }\n return result;\n}\nclass HtmlTag {\n constructor(is_svg = false) {\n this.is_svg = false;\n this.is_svg = is_svg;\n this.e = this.n = null;\n }\n c(html) {\n this.h(html);\n }\n m(html, target, anchor = null) {\n if (!this.e) {\n if (this.is_svg)\n this.e = svg_element(target.nodeName);\n else\n this.e = element(target.nodeName);\n this.t = target;\n this.c(html);\n }\n this.i(anchor);\n }\n h(html) {\n this.e.innerHTML = html;\n this.n = Array.from(this.e.childNodes);\n }\n i(anchor) {\n for (let i = 0; i < this.n.length; i += 1) {\n insert(this.t, this.n[i], anchor);\n }\n }\n p(html) {\n this.d();\n this.h(html);\n this.i(this.a);\n }\n d() {\n this.n.forEach(detach);\n }\n}\nclass HtmlTagHydration extends HtmlTag {\n constructor(claimed_nodes, is_svg = false) {\n super(is_svg);\n this.e = this.n = null;\n this.l = claimed_nodes;\n }\n c(html) {\n if (this.l) {\n this.n = this.l;\n }\n else {\n super.c(html);\n }\n }\n i(anchor) {\n for (let i = 0; i < this.n.length; i += 1) {\n insert_hydration(this.t, this.n[i], anchor);\n }\n }\n}\nfunction attribute_to_object(attributes) {\n const result = {};\n for (const attribute of attributes) {\n result[attribute.name] = attribute.value;\n }\n return result;\n}\nfunction get_custom_elements_slots(element) {\n const result = {};\n element.childNodes.forEach((node) => {\n result[node.slot || 'default'] = true;\n });\n return result;\n}\nfunction construct_svelte_component(component, props) {\n return new component(props);\n}\n\n// we need to store the information for multiple documents because a Svelte application could also contain iframes\n// https://github.com/sveltejs/svelte/issues/3624\nconst managed_styles = new Map();\nlet active = 0;\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i--)\n hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n return hash >>> 0;\n}\nfunction create_style_information(doc, node) {\n const info = { stylesheet: append_empty_stylesheet(node), rules: {} };\n managed_styles.set(doc, info);\n return info;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n const step = 16.666 / duration;\n let keyframes = '{\\n';\n for (let p = 0; p <= 1; p += step) {\n const t = a + (b - a) * ease(p);\n keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n }\n const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n const name = `__svelte_${hash(rule)}_${uid}`;\n const doc = get_root_for_style(node);\n const { stylesheet, rules } = managed_styles.get(doc) || create_style_information(doc, node);\n if (!rules[name]) {\n rules[name] = true;\n stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n }\n const animation = node.style.animation || '';\n node.style.animation = `${animation ? `${animation}, ` : ''}${name} ${duration}ms linear ${delay}ms 1 both`;\n active += 1;\n return name;\n}\nfunction delete_rule(node, name) {\n const previous = (node.style.animation || '').split(', ');\n const next = previous.filter(name\n ? anim => anim.indexOf(name) < 0 // remove specific animation\n : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n );\n const deleted = previous.length - next.length;\n if (deleted) {\n node.style.animation = next.join(', ');\n active -= deleted;\n if (!active)\n clear_rules();\n }\n}\nfunction clear_rules() {\n raf(() => {\n if (active)\n return;\n managed_styles.forEach(info => {\n const { ownerNode } = info.stylesheet;\n // there is no ownerNode if it runs on jsdom.\n if (ownerNode)\n detach(ownerNode);\n });\n managed_styles.clear();\n });\n}\n\nfunction create_animation(node, from, fn, params) {\n if (!from)\n return noop;\n const to = node.getBoundingClientRect();\n if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n return noop;\n const { delay = 0, duration = 300, easing = identity, \n // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n start: start_time = now() + delay, \n // @ts-ignore todo:\n end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n let running = true;\n let started = false;\n let name;\n function start() {\n if (css) {\n name = create_rule(node, 0, 1, duration, delay, easing, css);\n }\n if (!delay) {\n started = true;\n }\n }\n function stop() {\n if (css)\n delete_rule(node, name);\n running = false;\n }\n loop(now => {\n if (!started && now >= start_time) {\n started = true;\n }\n if (started && now >= end) {\n tick(1, 0);\n stop();\n }\n if (!running) {\n return false;\n }\n if (started) {\n const p = now - start_time;\n const t = 0 + 1 * easing(p / duration);\n tick(t, 1 - t);\n }\n return true;\n });\n start();\n tick(0, 1);\n return stop;\n}\nfunction fix_position(node) {\n const style = getComputedStyle(node);\n if (style.position !== 'absolute' && style.position !== 'fixed') {\n const { width, height } = style;\n const a = node.getBoundingClientRect();\n node.style.position = 'absolute';\n node.style.width = width;\n node.style.height = height;\n add_transform(node, a);\n }\n}\nfunction add_transform(node, a) {\n const b = node.getBoundingClientRect();\n if (a.left !== b.left || a.top !== b.top) {\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error('Function called outside component initialization');\n return current_component;\n}\n/**\n * Schedules a callback to run immediately before the component is updated after any state change.\n *\n * The first time the callback runs will be before the initial `onMount`\n *\n * https://svelte.dev/docs#run-time-svelte-beforeupdate\n */\nfunction beforeUpdate(fn) {\n get_current_component().$$.before_update.push(fn);\n}\n/**\n * The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.\n * It must be called during the component's initialisation (but doesn't need to live *inside* the component;\n * it can be called from an external module).\n *\n * `onMount` does not run inside a [server-side component](/docs#run-time-server-side-component-api).\n *\n * https://svelte.dev/docs#run-time-svelte-onmount\n */\nfunction onMount(fn) {\n get_current_component().$$.on_mount.push(fn);\n}\n/**\n * Schedules a callback to run immediately after the component has been updated.\n *\n * The first time the callback runs will be after the initial `onMount`\n */\nfunction afterUpdate(fn) {\n get_current_component().$$.after_update.push(fn);\n}\n/**\n * Schedules a callback to run immediately before the component is unmounted.\n *\n * Out of `onMount`, `beforeUpdate`, `afterUpdate` and `onDestroy`, this is the\n * only one that runs inside a server-side component.\n *\n * https://svelte.dev/docs#run-time-svelte-ondestroy\n */\nfunction onDestroy(fn) {\n get_current_component().$$.on_destroy.push(fn);\n}\n/**\n * Creates an event dispatcher that can be used to dispatch [component events](/docs#template-syntax-component-directives-on-eventname).\n * Event dispatchers are functions that can take two arguments: `name` and `detail`.\n *\n * Component events created with `createEventDispatcher` create a\n * [CustomEvent](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent).\n * These events do not [bubble](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Events#Event_bubbling_and_capture).\n * The `detail` argument corresponds to the [CustomEvent.detail](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/detail)\n * property and can contain any type of data.\n *\n * https://svelte.dev/docs#run-time-svelte-createeventdispatcher\n */\nfunction createEventDispatcher() {\n const component = get_current_component();\n return (type, detail, { cancelable = false } = {}) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n // TODO are there situations where events could be dispatched\n // in a server (non-DOM) environment?\n const event = custom_event(type, detail, { cancelable });\n callbacks.slice().forEach(fn => {\n fn.call(component, event);\n });\n return !event.defaultPrevented;\n }\n return true;\n };\n}\n/**\n * Associates an arbitrary `context` object with the current component and the specified `key`\n * and returns that object. The context is then available to children of the component\n * (including slotted content) with `getContext`.\n *\n * Like lifecycle functions, this must be called during component initialisation.\n *\n * https://svelte.dev/docs#run-time-svelte-setcontext\n */\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n return context;\n}\n/**\n * Retrieves the context that belongs to the closest parent component with the specified `key`.\n * Must be called during component initialisation.\n *\n * https://svelte.dev/docs#run-time-svelte-getcontext\n */\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\n/**\n * Retrieves the whole context map that belongs to the closest parent component.\n * Must be called during component initialisation. Useful, for example, if you\n * programmatically create a component and want to pass the existing context to it.\n *\n * https://svelte.dev/docs#run-time-svelte-getallcontexts\n */\nfunction getAllContexts() {\n return get_current_component().$$.context;\n}\n/**\n * Checks whether a given `key` has been set in the context of a parent component.\n * Must be called during component initialisation.\n *\n * https://svelte.dev/docs#run-time-svelte-hascontext\n */\nfunction hasContext(key) {\n return get_current_component().$$.context.has(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n const callbacks = component.$$.callbacks[event.type];\n if (callbacks) {\n // @ts-ignore\n callbacks.slice().forEach(fn => fn.call(this, event));\n }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n if (!update_scheduled) {\n update_scheduled = true;\n resolved_promise.then(flush);\n }\n}\nfunction tick() {\n schedule_update();\n return resolved_promise;\n}\nfunction add_render_callback(fn) {\n render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n flush_callbacks.push(fn);\n}\n// flush() calls callbacks in this order:\n// 1. All beforeUpdate callbacks, in order: parents before children\n// 2. All bind:this callbacks, in reverse order: children before parents.\n// 3. All afterUpdate callbacks, in order: parents before children. EXCEPT\n// for afterUpdates called during the initial onMount, which are called in\n// reverse order: children before parents.\n// Since callbacks might update component values, which could trigger another\n// call to flush(), the following steps guard against this:\n// 1. During beforeUpdate, any updated components will be added to the\n// dirty_components array and will cause a reentrant call to flush(). Because\n// the flush index is kept outside the function, the reentrant call will pick\n// up where the earlier call left off and go through all dirty components. The\n// current_component value is saved and restored so that the reentrant call will\n// not interfere with the \"parent\" flush() call.\n// 2. bind:this callbacks cannot trigger new flush() calls.\n// 3. During afterUpdate, any updated components will NOT have their afterUpdate\n// callback called a second time; the seen_callbacks set, outside the flush()\n// function, guarantees this behavior.\nconst seen_callbacks = new Set();\nlet flushidx = 0; // Do *not* move this inside the flush() function\nfunction flush() {\n // Do not reenter flush while dirty components are updated, as this can\n // result in an infinite loop. Instead, let the inner flush handle it.\n // Reentrancy is ok afterwards for bindings etc.\n if (flushidx !== 0) {\n return;\n }\n const saved_component = current_component;\n do {\n // first, call beforeUpdate functions\n // and update components\n try {\n while (flushidx < dirty_components.length) {\n const component = dirty_components[flushidx];\n flushidx++;\n set_current_component(component);\n update(component.$$);\n }\n }\n catch (e) {\n // reset dirty state to not end up in a deadlocked state and then rethrow\n dirty_components.length = 0;\n flushidx = 0;\n throw e;\n }\n set_current_component(null);\n dirty_components.length = 0;\n flushidx = 0;\n while (binding_callbacks.length)\n binding_callbacks.pop()();\n // then, once components are updated, call\n // afterUpdate functions. This may cause\n // subsequent updates...\n for (let i = 0; i < render_callbacks.length; i += 1) {\n const callback = render_callbacks[i];\n if (!seen_callbacks.has(callback)) {\n // ...so guard against infinite loops\n seen_callbacks.add(callback);\n callback();\n }\n }\n render_callbacks.length = 0;\n } while (dirty_components.length);\n while (flush_callbacks.length) {\n flush_callbacks.pop()();\n }\n update_scheduled = false;\n seen_callbacks.clear();\n set_current_component(saved_component);\n}\nfunction update($$) {\n if ($$.fragment !== null) {\n $$.update();\n run_all($$.before_update);\n const dirty = $$.dirty;\n $$.dirty = [-1];\n $$.fragment && $$.fragment.p($$.ctx, dirty);\n $$.after_update.forEach(add_render_callback);\n }\n}\n\nlet promise;\nfunction wait() {\n if (!promise) {\n promise = Promise.resolve();\n promise.then(() => {\n promise = null;\n });\n }\n return promise;\n}\nfunction dispatch(node, direction, kind) {\n node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n outros = {\n r: 0,\n c: [],\n p: outros // parent group\n };\n}\nfunction check_outros() {\n if (!outros.r) {\n run_all(outros.c);\n }\n outros = outros.p;\n}\nfunction transition_in(block, local) {\n if (block && block.i) {\n outroing.delete(block);\n block.i(local);\n }\n}\nfunction transition_out(block, local, detach, callback) {\n if (block && block.o) {\n if (outroing.has(block))\n return;\n outroing.add(block);\n outros.c.push(() => {\n outroing.delete(block);\n if (callback) {\n if (detach)\n block.d(1);\n callback();\n }\n });\n block.o(local);\n }\n else if (callback) {\n callback();\n }\n}\nconst null_transition = { duration: 0 };\nfunction create_in_transition(node, fn, params) {\n const options = { direction: 'in' };\n let config = fn(node, params, options);\n let running = false;\n let animation_name;\n let task;\n let uid = 0;\n function cleanup() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n tick(0, 1);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n if (task)\n task.abort();\n running = true;\n add_render_callback(() => dispatch(node, true, 'start'));\n task = loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(1, 0);\n dispatch(node, true, 'end');\n cleanup();\n return running = false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(t, 1 - t);\n }\n }\n return running;\n });\n }\n let started = false;\n return {\n start() {\n if (started)\n return;\n started = true;\n delete_rule(node);\n if (is_function(config)) {\n config = config(options);\n wait().then(go);\n }\n else {\n go();\n }\n },\n invalidate() {\n started = false;\n },\n end() {\n if (running) {\n cleanup();\n running = false;\n }\n }\n };\n}\nfunction create_out_transition(node, fn, params) {\n const options = { direction: 'out' };\n let config = fn(node, params, options);\n let running = true;\n let animation_name;\n const group = outros;\n group.r += 1;\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n add_render_callback(() => dispatch(node, false, 'start'));\n loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(0, 1);\n dispatch(node, false, 'end');\n if (!--group.r) {\n // this will result in `end()` being called,\n // so we don't need to clean up here\n run_all(group.c);\n }\n return false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(1 - t, t);\n }\n }\n return running;\n });\n }\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config(options);\n go();\n });\n }\n else {\n go();\n }\n return {\n end(reset) {\n if (reset && config.tick) {\n config.tick(1, 0);\n }\n if (running) {\n if (animation_name)\n delete_rule(node, animation_name);\n running = false;\n }\n }\n };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n const options = { direction: 'both' };\n let config = fn(node, params, options);\n let t = intro ? 0 : 1;\n let running_program = null;\n let pending_program = null;\n let animation_name = null;\n function clear_animation() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function init(program, duration) {\n const d = (program.b - t);\n duration *= Math.abs(d);\n return {\n a: t,\n b: program.b,\n d,\n duration,\n start: program.start,\n end: program.start + duration,\n group: program.group\n };\n }\n function go(b) {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n const program = {\n start: now() + delay,\n b\n };\n if (!b) {\n // @ts-ignore todo: improve typings\n program.group = outros;\n outros.r += 1;\n }\n if (running_program || pending_program) {\n pending_program = program;\n }\n else {\n // if this is an intro, and there's a delay, we need to do\n // an initial tick and/or apply CSS animation immediately\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, b, duration, delay, easing, css);\n }\n if (b)\n tick(0, 1);\n running_program = init(program, duration);\n add_render_callback(() => dispatch(node, b, 'start'));\n loop(now => {\n if (pending_program && now > pending_program.start) {\n running_program = init(pending_program, duration);\n pending_program = null;\n dispatch(node, running_program.b, 'start');\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n }\n }\n if (running_program) {\n if (now >= running_program.end) {\n tick(t = running_program.b, 1 - t);\n dispatch(node, running_program.b, 'end');\n if (!pending_program) {\n // we're done\n if (running_program.b) {\n // intro — we can tidy up immediately\n clear_animation();\n }\n else {\n // outro — needs to be coordinated\n if (!--running_program.group.r)\n run_all(running_program.group.c);\n }\n }\n running_program = null;\n }\n else if (now >= running_program.start) {\n const p = now - running_program.start;\n t = running_program.a + running_program.d * easing(p / running_program.duration);\n tick(t, 1 - t);\n }\n }\n return !!(running_program || pending_program);\n });\n }\n }\n return {\n run(b) {\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config(options);\n go(b);\n });\n }\n else {\n go(b);\n }\n },\n end() {\n clear_animation();\n running_program = pending_program = null;\n }\n };\n}\n\nfunction handle_promise(promise, info) {\n const token = info.token = {};\n function update(type, index, key, value) {\n if (info.token !== token)\n return;\n info.resolved = value;\n let child_ctx = info.ctx;\n if (key !== undefined) {\n child_ctx = child_ctx.slice();\n child_ctx[key] = value;\n }\n const block = type && (info.current = type)(child_ctx);\n let needs_flush = false;\n if (info.block) {\n if (info.blocks) {\n info.blocks.forEach((block, i) => {\n if (i !== index && block) {\n group_outros();\n transition_out(block, 1, 1, () => {\n if (info.blocks[i] === block) {\n info.blocks[i] = null;\n }\n });\n check_outros();\n }\n });\n }\n else {\n info.block.d(1);\n }\n block.c();\n transition_in(block, 1);\n block.m(info.mount(), info.anchor);\n needs_flush = true;\n }\n info.block = block;\n if (info.blocks)\n info.blocks[index] = block;\n if (needs_flush) {\n flush();\n }\n }\n if (is_promise(promise)) {\n const current_component = get_current_component();\n promise.then(value => {\n set_current_component(current_component);\n update(info.then, 1, info.value, value);\n set_current_component(null);\n }, error => {\n set_current_component(current_component);\n update(info.catch, 2, info.error, error);\n set_current_component(null);\n if (!info.hasCatch) {\n throw error;\n }\n });\n // if we previously had a then/catch block, destroy it\n if (info.current !== info.pending) {\n update(info.pending, 0);\n return true;\n }\n }\n else {\n if (info.current !== info.then) {\n update(info.then, 1, info.value, promise);\n return true;\n }\n info.resolved = promise;\n }\n}\nfunction update_await_block_branch(info, ctx, dirty) {\n const child_ctx = ctx.slice();\n const { resolved } = info;\n if (info.current === info.then) {\n child_ctx[info.value] = resolved;\n }\n if (info.current === info.catch) {\n child_ctx[info.error] = resolved;\n }\n info.block.p(child_ctx, dirty);\n}\n\nconst globals = (typeof window !== 'undefined'\n ? window\n : typeof globalThis !== 'undefined'\n ? globalThis\n : global);\n\nfunction destroy_block(block, lookup) {\n block.d(1);\n lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n transition_out(block, 1, 1, () => {\n lookup.delete(block.key);\n });\n}\nfunction fix_and_destroy_block(block, lookup) {\n block.f();\n destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n block.f();\n outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, dirty, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n let o = old_blocks.length;\n let n = list.length;\n let i = o;\n const old_indexes = {};\n while (i--)\n old_indexes[old_blocks[i].key] = i;\n const new_blocks = [];\n const new_lookup = new Map();\n const deltas = new Map();\n i = n;\n while (i--) {\n const child_ctx = get_context(ctx, list, i);\n const key = get_key(child_ctx);\n let block = lookup.get(key);\n if (!block) {\n block = create_each_block(key, child_ctx);\n block.c();\n }\n else if (dynamic) {\n block.p(child_ctx, dirty);\n }\n new_lookup.set(key, new_blocks[i] = block);\n if (key in old_indexes)\n deltas.set(key, Math.abs(i - old_indexes[key]));\n }\n const will_move = new Set();\n const did_move = new Set();\n function insert(block) {\n transition_in(block, 1);\n block.m(node, next);\n lookup.set(block.key, block);\n next = block.first;\n n--;\n }\n while (o && n) {\n const new_block = new_blocks[n - 1];\n const old_block = old_blocks[o - 1];\n const new_key = new_block.key;\n const old_key = old_block.key;\n if (new_block === old_block) {\n // do nothing\n next = new_block.first;\n o--;\n n--;\n }\n else if (!new_lookup.has(old_key)) {\n // remove old block\n destroy(old_block, lookup);\n o--;\n }\n else if (!lookup.has(new_key) || will_move.has(new_key)) {\n insert(new_block);\n }\n else if (did_move.has(old_key)) {\n o--;\n }\n else if (deltas.get(new_key) > deltas.get(old_key)) {\n did_move.add(new_key);\n insert(new_block);\n }\n else {\n will_move.add(old_key);\n o--;\n }\n }\n while (o--) {\n const old_block = old_blocks[o];\n if (!new_lookup.has(old_block.key))\n destroy(old_block, lookup);\n }\n while (n)\n insert(new_blocks[n - 1]);\n return new_blocks;\n}\nfunction validate_each_keys(ctx, list, get_context, get_key) {\n const keys = new Set();\n for (let i = 0; i < list.length; i++) {\n const key = get_key(get_context(ctx, list, i));\n if (keys.has(key)) {\n throw new Error('Cannot have duplicate keys in a keyed each');\n }\n keys.add(key);\n }\n}\n\nfunction get_spread_update(levels, updates) {\n const update = {};\n const to_null_out = {};\n const accounted_for = { $$scope: 1 };\n let i = levels.length;\n while (i--) {\n const o = levels[i];\n const n = updates[i];\n if (n) {\n for (const key in o) {\n if (!(key in n))\n to_null_out[key] = 1;\n }\n for (const key in n) {\n if (!accounted_for[key]) {\n update[key] = n[key];\n accounted_for[key] = 1;\n }\n }\n levels[i] = n;\n }\n else {\n for (const key in o) {\n accounted_for[key] = 1;\n }\n }\n }\n for (const key in to_null_out) {\n if (!(key in update))\n update[key] = undefined;\n }\n return update;\n}\nfunction get_spread_object(spread_props) {\n return typeof spread_props === 'object' && spread_props !== null ? spread_props : {};\n}\n\n// source: https://html.spec.whatwg.org/multipage/indices.html\nconst boolean_attributes = new Set([\n 'allowfullscreen',\n 'allowpaymentrequest',\n 'async',\n 'autofocus',\n 'autoplay',\n 'checked',\n 'controls',\n 'default',\n 'defer',\n 'disabled',\n 'formnovalidate',\n 'hidden',\n 'inert',\n 'ismap',\n 'itemscope',\n 'loop',\n 'multiple',\n 'muted',\n 'nomodule',\n 'novalidate',\n 'open',\n 'playsinline',\n 'readonly',\n 'required',\n 'reversed',\n 'selected'\n]);\n\n/** regex of all html void element names */\nconst void_element_names = /^(?:area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)$/;\nfunction is_void(name) {\n return void_element_names.test(name) || name.toLowerCase() === '!doctype';\n}\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args, attrs_to_add) {\n const attributes = Object.assign({}, ...args);\n if (attrs_to_add) {\n const classes_to_add = attrs_to_add.classes;\n const styles_to_add = attrs_to_add.styles;\n if (classes_to_add) {\n if (attributes.class == null) {\n attributes.class = classes_to_add;\n }\n else {\n attributes.class += ' ' + classes_to_add;\n }\n }\n if (styles_to_add) {\n if (attributes.style == null) {\n attributes.style = style_object_to_string(styles_to_add);\n }\n else {\n attributes.style = style_object_to_string(merge_ssr_styles(attributes.style, styles_to_add));\n }\n }\n }\n let str = '';\n Object.keys(attributes).forEach(name => {\n if (invalid_attribute_name_character.test(name))\n return;\n const value = attributes[name];\n if (value === true)\n str += ' ' + name;\n else if (boolean_attributes.has(name.toLowerCase())) {\n if (value)\n str += ' ' + name;\n }\n else if (value != null) {\n str += ` ${name}=\"${value}\"`;\n }\n });\n return str;\n}\nfunction merge_ssr_styles(style_attribute, style_directive) {\n const style_object = {};\n for (const individual_style of style_attribute.split(';')) {\n const colon_index = individual_style.indexOf(':');\n const name = individual_style.slice(0, colon_index).trim();\n const value = individual_style.slice(colon_index + 1).trim();\n if (!name)\n continue;\n style_object[name] = value;\n }\n for (const name in style_directive) {\n const value = style_directive[name];\n if (value) {\n style_object[name] = value;\n }\n else {\n delete style_object[name];\n }\n }\n return style_object;\n}\nconst ATTR_REGEX = /[&\"]/g;\nconst CONTENT_REGEX = /[&<]/g;\n/**\n * Note: this method is performance sensitive and has been optimized\n * https://github.com/sveltejs/svelte/pull/5701\n */\nfunction escape(value, is_attr = false) {\n const str = String(value);\n const pattern = is_attr ? ATTR_REGEX : CONTENT_REGEX;\n pattern.lastIndex = 0;\n let escaped = '';\n let last = 0;\n while (pattern.test(str)) {\n const i = pattern.lastIndex - 1;\n const ch = str[i];\n escaped += str.substring(last, i) + (ch === '&' ? '&' : (ch === '\"' ? '"' : '<'));\n last = i + 1;\n }\n return escaped + str.substring(last);\n}\nfunction escape_attribute_value(value) {\n // keep booleans, null, and undefined for the sake of `spread`\n const should_escape = typeof value === 'string' || (value && typeof value === 'object');\n return should_escape ? escape(value, true) : value;\n}\nfunction escape_object(obj) {\n const result = {};\n for (const key in obj) {\n result[key] = escape_attribute_value(obj[key]);\n }\n return result;\n}\nfunction each(items, fn) {\n let str = '';\n for (let i = 0; i < items.length; i += 1) {\n str += fn(items[i], i);\n }\n return str;\n}\nconst missing_component = {\n $$render: () => ''\n};\nfunction validate_component(component, name) {\n if (!component || !component.$$render) {\n if (name === 'svelte:component')\n name += ' this={...}';\n throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules. Otherwise you may need to fix a <${name}>.`);\n }\n return component;\n}\nfunction debug(file, line, column, values) {\n console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n console.log(values); // eslint-disable-line no-console\n return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n function $$render(result, props, bindings, slots, context) {\n const parent_component = current_component;\n const $$ = {\n on_destroy,\n context: new Map(context || (parent_component ? parent_component.$$.context : [])),\n // these will be immediately discarded\n on_mount: [],\n before_update: [],\n after_update: [],\n callbacks: blank_object()\n };\n set_current_component({ $$ });\n const html = fn(result, props, bindings, slots);\n set_current_component(parent_component);\n return html;\n }\n return {\n render: (props = {}, { $$slots = {}, context = new Map() } = {}) => {\n on_destroy = [];\n const result = { title: '', head: '', css: new Set() };\n const html = $$render(result, props, {}, $$slots, context);\n run_all(on_destroy);\n return {\n html,\n css: {\n code: Array.from(result.css).map(css => css.code).join('\\n'),\n map: null // TODO\n },\n head: result.title + result.head\n };\n },\n $$render\n };\n}\nfunction add_attribute(name, value, boolean) {\n if (value == null || (boolean && !value))\n return '';\n const assignment = (boolean && value === true) ? '' : `=\"${escape(value, true)}\"`;\n return ` ${name}${assignment}`;\n}\nfunction add_classes(classes) {\n return classes ? ` class=\"${classes}\"` : '';\n}\nfunction style_object_to_string(style_object) {\n return Object.keys(style_object)\n .filter(key => style_object[key])\n .map(key => `${key}: ${escape_attribute_value(style_object[key])};`)\n .join(' ');\n}\nfunction add_styles(style_object) {\n const styles = style_object_to_string(style_object);\n return styles ? ` style=\"${styles}\"` : '';\n}\n\nfunction bind(component, name, callback) {\n const index = component.$$.props[name];\n if (index !== undefined) {\n component.$$.bound[index] = callback;\n callback(component.$$.ctx[index]);\n }\n}\nfunction create_component(block) {\n block && block.c();\n}\nfunction claim_component(block, parent_nodes) {\n block && block.l(parent_nodes);\n}\nfunction mount_component(component, target, anchor, customElement) {\n const { fragment, after_update } = component.$$;\n fragment && fragment.m(target, anchor);\n if (!customElement) {\n // onMount happens before the initial afterUpdate\n add_render_callback(() => {\n const new_on_destroy = component.$$.on_mount.map(run).filter(is_function);\n // if the component was destroyed immediately\n // it will update the `$$.on_destroy` reference to `null`.\n // the destructured on_destroy may still reference to the old array\n if (component.$$.on_destroy) {\n component.$$.on_destroy.push(...new_on_destroy);\n }\n else {\n // Edge case - component was destroyed immediately,\n // most likely as a result of a binding initialising\n run_all(new_on_destroy);\n }\n component.$$.on_mount = [];\n });\n }\n after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n const $$ = component.$$;\n if ($$.fragment !== null) {\n run_all($$.on_destroy);\n $$.fragment && $$.fragment.d(detaching);\n // TODO null out other refs, including component.$$ (but need to\n // preserve final state?)\n $$.on_destroy = $$.fragment = null;\n $$.ctx = [];\n }\n}\nfunction make_dirty(component, i) {\n if (component.$$.dirty[0] === -1) {\n dirty_components.push(component);\n schedule_update();\n component.$$.dirty.fill(0);\n }\n component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));\n}\nfunction init(component, options, instance, create_fragment, not_equal, props, append_styles, dirty = [-1]) {\n const parent_component = current_component;\n set_current_component(component);\n const $$ = component.$$ = {\n fragment: null,\n ctx: [],\n // state\n props,\n update: noop,\n not_equal,\n bound: blank_object(),\n // lifecycle\n on_mount: [],\n on_destroy: [],\n on_disconnect: [],\n before_update: [],\n after_update: [],\n context: new Map(options.context || (parent_component ? parent_component.$$.context : [])),\n // everything else\n callbacks: blank_object(),\n dirty,\n skip_bound: false,\n root: options.target || parent_component.$$.root\n };\n append_styles && append_styles($$.root);\n let ready = false;\n $$.ctx = instance\n ? instance(component, options.props || {}, (i, ret, ...rest) => {\n const value = rest.length ? rest[0] : ret;\n if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {\n if (!$$.skip_bound && $$.bound[i])\n $$.bound[i](value);\n if (ready)\n make_dirty(component, i);\n }\n return ret;\n })\n : [];\n $$.update();\n ready = true;\n run_all($$.before_update);\n // `false` as a special case of no DOM component\n $$.fragment = create_fragment ? create_fragment($$.ctx) : false;\n if (options.target) {\n if (options.hydrate) {\n start_hydrating();\n const nodes = children(options.target);\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.l(nodes);\n nodes.forEach(detach);\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.c();\n }\n if (options.intro)\n transition_in(component.$$.fragment);\n mount_component(component, options.target, options.anchor, options.customElement);\n end_hydrating();\n flush();\n }\n set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement === 'function') {\n SvelteElement = class extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n }\n connectedCallback() {\n const { on_mount } = this.$$;\n this.$$.on_disconnect = on_mount.map(run).filter(is_function);\n // @ts-ignore todo: improve typings\n for (const key in this.$$.slotted) {\n // @ts-ignore todo: improve typings\n this.appendChild(this.$$.slotted[key]);\n }\n }\n attributeChangedCallback(attr, _oldValue, newValue) {\n this[attr] = newValue;\n }\n disconnectedCallback() {\n run_all(this.$$.on_disconnect);\n }\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n // TODO should this delegate to addEventListener?\n if (!is_function(callback)) {\n return noop;\n }\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n };\n}\n/**\n * Base class for Svelte components. Used when dev=false.\n */\nclass SvelteComponent {\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n if (!is_function(callback)) {\n return noop;\n }\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n}\n\nfunction dispatch_dev(type, detail) {\n document.dispatchEvent(custom_event(type, Object.assign({ version: '3.55.1' }, detail), { bubbles: true }));\n}\nfunction append_dev(target, node) {\n dispatch_dev('SvelteDOMInsert', { target, node });\n append(target, node);\n}\nfunction append_hydration_dev(target, node) {\n dispatch_dev('SvelteDOMInsert', { target, node });\n append_hydration(target, node);\n}\nfunction insert_dev(target, node, anchor) {\n dispatch_dev('SvelteDOMInsert', { target, node, anchor });\n insert(target, node, anchor);\n}\nfunction insert_hydration_dev(target, node, anchor) {\n dispatch_dev('SvelteDOMInsert', { target, node, anchor });\n insert_hydration(target, node, anchor);\n}\nfunction detach_dev(node) {\n dispatch_dev('SvelteDOMRemove', { node });\n detach(node);\n}\nfunction detach_between_dev(before, after) {\n while (before.nextSibling && before.nextSibling !== after) {\n detach_dev(before.nextSibling);\n }\n}\nfunction detach_before_dev(after) {\n while (after.previousSibling) {\n detach_dev(after.previousSibling);\n }\n}\nfunction detach_after_dev(before) {\n while (before.nextSibling) {\n detach_dev(before.nextSibling);\n }\n}\nfunction listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation) {\n const modifiers = options === true ? ['capture'] : options ? Array.from(Object.keys(options)) : [];\n if (has_prevent_default)\n modifiers.push('preventDefault');\n if (has_stop_propagation)\n modifiers.push('stopPropagation');\n dispatch_dev('SvelteDOMAddEventListener', { node, event, handler, modifiers });\n const dispose = listen(node, event, handler, options);\n return () => {\n dispatch_dev('SvelteDOMRemoveEventListener', { node, event, handler, modifiers });\n dispose();\n };\n}\nfunction attr_dev(node, attribute, value) {\n attr(node, attribute, value);\n if (value == null)\n dispatch_dev('SvelteDOMRemoveAttribute', { node, attribute });\n else\n dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value });\n}\nfunction prop_dev(node, property, value) {\n node[property] = value;\n dispatch_dev('SvelteDOMSetProperty', { node, property, value });\n}\nfunction dataset_dev(node, property, value) {\n node.dataset[property] = value;\n dispatch_dev('SvelteDOMSetDataset', { node, property, value });\n}\nfunction set_data_dev(text, data) {\n data = '' + data;\n if (text.wholeText === data)\n return;\n dispatch_dev('SvelteDOMSetData', { node: text, data });\n text.data = data;\n}\nfunction validate_each_argument(arg) {\n if (typeof arg !== 'string' && !(arg && typeof arg === 'object' && 'length' in arg)) {\n let msg = '{#each} only iterates over array-like objects.';\n if (typeof Symbol === 'function' && arg && Symbol.iterator in arg) {\n msg += ' You can use a spread to convert this iterable into an array.';\n }\n throw new Error(msg);\n }\n}\nfunction validate_slots(name, slot, keys) {\n for (const slot_key of Object.keys(slot)) {\n if (!~keys.indexOf(slot_key)) {\n console.warn(`<${name}> received an unexpected slot \"${slot_key}\".`);\n }\n }\n}\nfunction validate_dynamic_element(tag) {\n const is_string = typeof tag === 'string';\n if (tag && !is_string) {\n throw new Error('<svelte:element> expects \"this\" attribute to be a string.');\n }\n}\nfunction validate_void_dynamic_element(tag) {\n if (tag && is_void(tag)) {\n console.warn(`<svelte:element this=\"${tag}\"> is self-closing and cannot have content.`);\n }\n}\nfunction construct_svelte_component_dev(component, props) {\n const error_message = 'this={...} of <svelte:component> should specify a Svelte component.';\n try {\n const instance = new component(props);\n if (!instance.$$ || !instance.$set || !instance.$on || !instance.$destroy) {\n throw new Error(error_message);\n }\n return instance;\n }\n catch (err) {\n const { message } = err;\n if (typeof message === 'string' && message.indexOf('is not a constructor') !== -1) {\n throw new Error(error_message);\n }\n else {\n throw err;\n }\n }\n}\n/**\n * Base class for Svelte components with some minor dev-enhancements. Used when dev=true.\n */\nclass SvelteComponentDev extends SvelteComponent {\n constructor(options) {\n if (!options || (!options.target && !options.$$inline)) {\n throw new Error(\"'target' is a required option\");\n }\n super();\n }\n $destroy() {\n super.$destroy();\n this.$destroy = () => {\n console.warn('Component was already destroyed'); // eslint-disable-line no-console\n };\n }\n $capture_state() { }\n $inject_state() { }\n}\n/**\n * Base class to create strongly typed Svelte components.\n * This only exists for typing purposes and should be used in `.d.ts` files.\n *\n * ### Example:\n *\n * You have component library on npm called `component-library`, from which\n * you export a component called `MyComponent`. For Svelte+TypeScript users,\n * you want to provide typings. Therefore you create a `index.d.ts`:\n * ```ts\n * import { SvelteComponentTyped } from \"svelte\";\n * export class MyComponent extends SvelteComponentTyped<{foo: string}> {}\n * ```\n * Typing this makes it possible for IDEs like VS Code with the Svelte extension\n * to provide intellisense and to use the component like this in a Svelte file\n * with TypeScript:\n * ```svelte\n * <script lang=\"ts\">\n * \timport { MyComponent } from \"component-library\";\n * </script>\n * <MyComponent foo={'bar'} />\n * ```\n *\n * #### Why not make this part of `SvelteComponent(Dev)`?\n * Because\n * ```ts\n * class ASubclassOfSvelteComponent extends SvelteComponent<{foo: string}> {}\n * const component: typeof SvelteComponent = ASubclassOfSvelteComponent;\n * ```\n * will throw a type error, so we need to separate the more strictly typed class.\n */\nclass SvelteComponentTyped extends SvelteComponentDev {\n constructor(options) {\n super(options);\n }\n}\nfunction loop_guard(timeout) {\n const start = Date.now();\n return () => {\n if (Date.now() - start > timeout) {\n throw new Error('Infinite loop detected');\n }\n };\n}\n\nexport { HtmlTag, HtmlTagHydration, SvelteComponent, SvelteComponentDev, SvelteComponentTyped, SvelteElement, action_destroyer, add_attribute, add_classes, add_flush_callback, add_location, add_render_callback, add_resize_listener, add_styles, add_transform, afterUpdate, append, append_dev, append_empty_stylesheet, append_hydration, append_hydration_dev, append_styles, assign, attr, attr_dev, attribute_to_object, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_component, claim_element, claim_html_tag, claim_space, claim_svg_element, claim_text, clear_loops, component_subscribe, compute_rest_props, compute_slots, construct_svelte_component, construct_svelte_component_dev, createEventDispatcher, create_animation, create_bidirectional_transition, create_component, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, dataset_dev, debug, destroy_block, destroy_component, destroy_each, detach, detach_after_dev, detach_before_dev, detach_between_dev, detach_dev, dirty_components, dispatch_dev, each, element, element_is, empty, end_hydrating, escape, escape_attribute_value, escape_object, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, getAllContexts, getContext, get_all_dirty_from_scope, get_binding_group_value, get_current_component, get_custom_elements_slots, get_root_for_style, get_slot_changes, get_spread_object, get_spread_update, get_store_value, globals, group_outros, handle_promise, hasContext, has_prop, head_selector, identity, init, insert, insert_dev, insert_hydration, insert_hydration_dev, intros, invalid_attribute_name_character, is_client, is_crossorigin, is_empty, is_function, is_promise, is_void, listen, listen_dev, loop, loop_guard, merge_ssr_styles, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, prop_dev, query_selector_all, raf, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, self, setContext, set_attributes, set_current_component, set_custom_element_data, set_custom_element_data_map, set_data, set_data_dev, set_input_type, set_input_value, set_now, set_raf, set_store_value, set_style, set_svg_attributes, space, spread, src_url_equal, start_hydrating, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, trusted, update_await_block_branch, update_keyed_each, update_slot, update_slot_base, validate_component, validate_dynamic_element, validate_each_argument, validate_each_keys, validate_slots, validate_store, validate_void_dynamic_element, xlink_attr };\n","module.exports = require('../full/is-iterable');\n","module.exports = require(\"core-js-pure/features/is-iterable\");","import { noop, safe_not_equal, subscribe, run_all, is_function } from '../internal/index.mjs';\nexport { get_store_value as get } from '../internal/index.mjs';\n\nconst subscriber_queue = [];\n/**\n * Creates a `Readable` store that allows reading by subscription.\n * @param value initial value\n * @param {StartStopNotifier}start start and stop notifications for subscriptions\n */\nfunction readable(value, start) {\n return {\n subscribe: writable(value, start).subscribe\n };\n}\n/**\n * Create a `Writable` store that allows both updating and reading by subscription.\n * @param {*=}value initial value\n * @param {StartStopNotifier=}start start and stop notifications for subscriptions\n */\nfunction writable(value, start = noop) {\n let stop;\n const subscribers = new Set();\n function set(new_value) {\n if (safe_not_equal(value, new_value)) {\n value = new_value;\n if (stop) { // store is ready\n const run_queue = !subscriber_queue.length;\n for (const subscriber of subscribers) {\n subscriber[1]();\n subscriber_queue.push(subscriber, value);\n }\n if (run_queue) {\n for (let i = 0; i < subscriber_queue.length; i += 2) {\n subscriber_queue[i][0](subscriber_queue[i + 1]);\n }\n subscriber_queue.length = 0;\n }\n }\n }\n }\n function update(fn) {\n set(fn(value));\n }\n function subscribe(run, invalidate = noop) {\n const subscriber = [run, invalidate];\n subscribers.add(subscriber);\n if (subscribers.size === 1) {\n stop = start(set) || noop;\n }\n run(value);\n return () => {\n subscribers.delete(subscriber);\n if (subscribers.size === 0) {\n stop();\n stop = null;\n }\n };\n }\n return { set, update, subscribe };\n}\nfunction derived(stores, fn, initial_value) {\n const single = !Array.isArray(stores);\n const stores_array = single\n ? [stores]\n : stores;\n const auto = fn.length < 2;\n return readable(initial_value, (set) => {\n let inited = false;\n const values = [];\n let pending = 0;\n let cleanup = noop;\n const sync = () => {\n if (pending) {\n return;\n }\n cleanup();\n const result = fn(single ? values[0] : values, set);\n if (auto) {\n set(result);\n }\n else {\n cleanup = is_function(result) ? result : noop;\n }\n };\n const unsubscribers = stores_array.map((store, i) => subscribe(store, (value) => {\n values[i] = value;\n pending &= ~(1 << i);\n if (inited) {\n sync();\n }\n }, () => {\n pending |= (1 << i);\n }));\n inited = true;\n sync();\n return function stop() {\n run_all(unsubscribers);\n cleanup();\n };\n });\n}\n\nexport { derived, readable, writable };\n","import { run_all, is_function } from 'svelte/internal';\nimport { writable, derived, get } from 'svelte/store';\n\nfunction assign(...args) {\n return Object.assign(...args);\n}\n\nfunction isObject(test) {\n return typeof test === 'object' && test !== null;\n}\n\nfunction symbol() {\n return Symbol('ec');\n}\n\nfunction setContent(node, content) {\n let actions = {\n update(content) {\n while (node.firstChild) {\n node.removeChild(node.lastChild);\n }\n if (!isObject(content)) {\n node.innerText = content;\n } else if (content.domNodes) {\n for (let child of content.domNodes) {\n node.appendChild(child);\n }\n } else if (content.html) {\n node.innerHTML = content.html;\n }\n }\n };\n actions.update(content);\n\n return actions;\n}\n\n/** Dispatch event occurred outside of node */\nfunction outsideEvent(node, type) {\n\n const handlePointerDown = jsEvent => {\n if (node && !node.contains(jsEvent.target)) {\n node.dispatchEvent(\n new CustomEvent(type + 'outside', {detail: {jsEvent}})\n );\n }\n };\n\n document.addEventListener(type, handlePointerDown, true);\n\n return {\n destroy() {\n document.removeEventListener(type, handlePointerDown, true);\n }\n };\n}\n\nconst DAY_IN_SECONDS = 86400;\n\nfunction createDate(input) {\n if (input !== undefined) {\n return input instanceof Date ? _fromLocalDate(input) : _fromISOString(input);\n }\n\n return _fromLocalDate(new Date());\n}\n\nfunction createDuration(input) {\n if (typeof input === 'number') {\n input = {seconds: input};\n } else if (typeof input === 'string') {\n // Expected format hh[:mm[:ss]]\n let seconds = 0, exp = 2;\n for (let part of input.split(':', 3)) {\n seconds += parseInt(part, 10) * Math.pow(60, exp--);\n }\n input = {seconds};\n } else if (input instanceof Date) {\n input = {hours: input.getUTCHours(), minutes: input.getUTCMinutes(), seconds: input.getUTCSeconds()};\n }\n\n let weeks = input.weeks || input.week || 0;\n\n return {\n years: input.years || input.year || 0,\n months: input.months || input.month || 0,\n days: weeks * 7 + (input.days || input.day || 0),\n seconds: (input.hours || input.hour || 0) * 60 * 60 +\n (input.minutes || input.minute || 0) * 60 +\n (input.seconds || input.second || 0),\n inWeeks: !!weeks\n };\n}\n\nfunction cloneDate(date) {\n return new Date(date.getTime());\n}\n\nfunction addDuration(date, duration, x) {\n if (x === undefined) {\n x = 1;\n }\n date.setUTCFullYear(date.getUTCFullYear() + x * duration.years);\n let month = date.getUTCMonth() + x * duration.months;\n date.setUTCMonth(month);\n month %= 12;\n if (month < 0) {\n month += 12;\n }\n while (date.getUTCMonth() !== month) {\n subtractDay(date);\n }\n date.setUTCDate(date.getUTCDate() + x * duration.days);\n date.setUTCSeconds(date.getUTCSeconds() + x * duration.seconds);\n\n return date;\n}\n\nfunction subtractDuration(date, duration, x) {\n return addDuration(date, duration, x === undefined ? -1 : -x);\n}\n\nfunction addDay(date, x) {\n date.setUTCDate(date.getUTCDate() + (x === undefined ? 1 : x));\n\n return date;\n}\n\nfunction subtractDay(date, x) {\n return addDay(date, x === undefined ? -1 : -x);\n}\n\nfunction setMidnight(date) {\n date.setUTCHours(0, 0, 0, 0);\n\n return date;\n}\n\nfunction toLocalDate(date) {\n return new Date(\n date.getUTCFullYear(),\n date.getUTCMonth(),\n date.getUTCDate(),\n date.getUTCHours(),\n date.getUTCMinutes(),\n date.getUTCSeconds()\n );\n}\n\nfunction toISOString(date) {\n return date.toISOString().substring(0, 19);\n}\n\nfunction formatRange(start, end, intl) {\n if (start.getFullYear() !== end.getFullYear()) {\n return intl.format(start) + ' - ' + intl.format(end);\n }\n\n let diff = [];\n if (start.getMonth() !== end.getMonth()) {\n diff.push('month');\n }\n if (start.getDate() !== end.getDate()) {\n diff.push('day');\n }\n\n if (!diff.length) {\n return intl.format(start);\n }\n\n let opts1 = intl.resolvedOptions();\n let opts2 = {};\n for (let key of diff) {\n opts2[key] = opts1[key];\n }\n let intl2 = new Intl.DateTimeFormat(opts1.locale, opts2);\n\n let full1 = intl.format(start);\n let full2 = intl.format(end);\n let part1 = intl2.format(start);\n let part2 = intl2.format(end);\n\n let common = _commonChunks(full1, part1, full2, part2);\n if (common) {\n return common.head + part1 + ' - ' + part2 + common.tail;\n }\n\n return full1 + ' - ' + full2;\n}\n\nfunction datesEqual(date1, ...dates2) {\n return dates2.every(date2 => date1.getTime() === date2.getTime());\n}\n\nfunction nextClosestDay(date, day) {\n let diff = day - date.getUTCDay();\n date.setUTCDate(date.getUTCDate() + (diff >= 0 ? diff : diff + 7));\n return date;\n}\n\nfunction prevClosestDay(date, day) {\n let diff = day - date.getUTCDay();\n date.setUTCDate(date.getUTCDate() + (diff <= 0 ? diff : diff - 7));\n return date;\n}\n\n/**\n * Check whether given date is string which contains no time part\n */\nfunction noTimePart(date) {\n return typeof date === 'string' && date.length <= 10;\n}\n\n/**\n * Private functions\n */\n\nfunction _fromLocalDate(date) {\n return new Date(Date.UTC(\n date.getFullYear(),\n date.getMonth(),\n date.getDate(),\n date.getHours(),\n date.getMinutes(),\n date.getSeconds()\n ));\n}\n\nfunction _fromISOString(str) {\n const parts = str.match(/\\d+/g);\n return new Date(Date.UTC(\n Number(parts[0]),\n Number(parts[1]) - 1,\n Number(parts[2]),\n Number(parts[3] || 0),\n Number(parts[4] || 0),\n Number(parts[5] || 0)\n ));\n}\n\nfunction _commonChunks(str1, substr1, str2, substr2) {\n let i = 0;\n while (i < str1.length) {\n let res1;\n [i, res1] = _cut(str1, substr1, i);\n if (!res1) {\n break;\n }\n\n let j = 0;\n while (j < str2.length) {\n let res2;\n [j, res2] = _cut(str2, substr2, j);\n if (!res2) {\n break;\n }\n\n if (res1.head === res2.head && res1.tail === res2.tail) {\n return res1;\n }\n }\n }\n\n return null\n}\n\nfunction _cut(str, substr, from) {\n let start = str.indexOf(substr, from);\n if (start >= 0) {\n let end = start + substr.length;\n\n return [end, {\n head: str.substr(0, start),\n tail: str.substr(end)\n }];\n }\n\n return [-1, null];\n}\n\nfunction debounce(fn, handle, queueStore) {\n queueStore.update(queue => queue.set(handle, fn));\n}\n\nfunction flushDebounce(queue) {\n run_all(queue);\n queue.clear();\n}\n\nfunction createElement(tag, className, html, text) {\n let el = document.createElement(tag);\n el.className = className;\n if (html) {\n el.innerHTML = html;\n } else if (text) {\n el.innerText = text;\n }\n return el;\n}\n\nfunction hasYScroll(el) {\n return el.scrollHeight > el.clientHeight;\n}\n\nfunction rect(el) {\n return el.getBoundingClientRect();\n}\n\nfunction ancestor(el, up) {\n while (up--) {\n el = el.parentElement;\n }\n return el;\n}\n\nfunction height(el) {\n return rect(el).height;\n}\n\nlet fnProp = symbol();\nfunction setFn(el, fn) {\n el[fnProp] = fn;\n}\n\nfunction hasFn(el) {\n return !!el[fnProp];\n}\n\nfunction runFn(el, ...args) {\n return el[fnProp](...args);\n}\n\nfunction createView(view, _viewTitle, _currentRange, _activeRange) {\n return {\n type: view,\n title: _viewTitle,\n currentStart: _currentRange.start,\n currentEnd: _currentRange.end,\n activeStart: _activeRange.start,\n activeEnd: _activeRange.end,\n calendar: undefined\n };\n}\n\nfunction toViewWithLocalDates(view) {\n view = assign({}, view);\n view.currentStart = toLocalDate(view.currentStart);\n view.currentEnd = toLocalDate(view.currentEnd);\n view.activeStart = toLocalDate(view.activeStart);\n view.activeEnd = toLocalDate(view.activeEnd);\n\n return view;\n}\n\nconst display = ['background'];\n\nlet eventId = 1;\nfunction createEvents(input) {\n return input.map(event => ({\n id: 'id' in event ? String(event.id) : `{generated-${eventId++}}`,\n resourceIds: Array.isArray(event.resourceIds)\n ? event.resourceIds.map(String)\n : ('resourceId' in event ? [String(event.resourceId)] : []),\n allDay: event.allDay ?? (noTimePart(event.start) && noTimePart(event.end)),\n start: createDate(event.start),\n end: createDate(event.end),\n title: event.title || '',\n titleHTML: event.titleHTML || '',\n editable: event.editable,\n startEditable: event.startEditable,\n durationEditable: event.durationEditable,\n display: display.includes(event.display) ? event.display : 'auto',\n extendedProps: event.extendedProps || {},\n backgroundColor: event.backgroundColor || event.color\n }));\n}\n\nfunction createEventSources(input) {\n return input.map(source => ({\n events: source.events,\n url: (source.url && source.url.trimEnd('&')) || '',\n method: (source.method && source.method.toUpperCase()) || 'GET',\n extraParams: source.extraParams || {}\n }));\n}\n\nfunction createEventChunk(event, start, end) {\n return {\n start: event.start > start ? event.start : start,\n end: event.end < end ? event.end : end,\n event\n };\n}\n\nfunction sortEventChunks(chunks) {\n // Sort by start date\n chunks.sort((a, b) => {\n if (a.start < b.start) {\n return -1;\n }\n if (a.start > b.start) {\n return 1;\n }\n return 0;\n });\n}\n\n/**\n * Prepare event chunks for month view and all-day slot in week view\n */\nfunction prepareEventChunks(chunks, hiddenDays) {\n let longChunks = {};\n\n if (chunks.length) {\n sortEventChunks(chunks);\n\n let prevChunk;\n for (let chunk of chunks) {\n let dates = [];\n let date = setMidnight(cloneDate(chunk.start));\n while (chunk.end > date) {\n if (!hiddenDays.includes(date.getUTCDay())) {\n dates.push(cloneDate(date));\n if (dates.length > 1) {\n let key = date.getTime();\n if (longChunks[key]) {\n longChunks[key].chunks.push(chunk);\n } else {\n longChunks[key] = {\n sorted: false,\n chunks: [chunk]\n };\n }\n }\n }\n addDay(date);\n }\n if (dates.length) {\n chunk.date = dates[0];\n chunk.days = dates.length;\n chunk.dates = dates;\n if (chunk.start < dates[0]) {\n chunk.start = dates[0];\n }\n if (setMidnight(cloneDate(chunk.end)) > dates[dates.length - 1]) {\n chunk.end = dates[dates.length - 1];\n }\n } else {\n chunk.date = setMidnight(cloneDate(chunk.start));\n chunk.days = 1;\n chunk.dates = [chunk.date];\n }\n\n if (prevChunk && datesEqual(prevChunk.date, chunk.date)) {\n chunk.prev = prevChunk;\n }\n prevChunk = chunk;\n }\n }\n\n return longChunks;\n}\n\nfunction repositionEvent(chunk, longChunks, height) {\n chunk.top = 0;\n if (chunk.prev) {\n chunk.top = chunk.prev.bottom + 1;\n }\n chunk.bottom = chunk.top + height;\n let margin = 1;\n let key = chunk.date.getTime();\n if (longChunks[key]) {\n if (!longChunks[key].sorted) {\n longChunks[key].chunks.sort((a, b) => a.top - b.top);\n longChunks[key].sorted = true;\n }\n for (let longChunk of longChunks[key].chunks) {\n if (chunk.top < longChunk.bottom && chunk.bottom > longChunk.top) {\n let offset = longChunk.bottom - chunk.top + 1;\n margin += offset;\n chunk.top += offset;\n chunk.bottom += offset;\n }\n }\n }\n\n return margin;\n}\n\nfunction createEventContent(chunk, displayEventEnd, eventContent, theme, _intlEventTime, _view) {\n let timeText = _intlEventTime.format(chunk.start), content;\n if (displayEventEnd && chunk.event.display !== 'pointer') {\n timeText += ` - ${_intlEventTime.format(chunk.end)}`;\n }\n if (eventContent) {\n content = is_function(eventContent)\n ? eventContent({\n event: toEventWithLocalDates(chunk.event),\n timeText,\n view: toViewWithLocalDates(_view)\n })\n : eventContent;\n } else {\n switch (chunk.event.display) {\n case 'background':\n content = '';\n break;\n case 'pointer':\n content = {\n domNodes: [createElement('div', theme.eventTime, null, timeText)]\n };\n break;\n default:\n content = {\n domNodes: [\n createElement('div', theme.eventTime, null, timeText),\n createElement('div', theme.eventTitle, chunk.event.titleHTML, chunk.event.title)\n ]\n };\n }\n }\n\n return [timeText, content];\n}\n\nfunction toEventWithLocalDates(event) {\n return _cloneEvent(event, toLocalDate);\n}\n\nfunction cloneEvent(event) {\n return _cloneEvent(event, cloneDate);\n}\n\nfunction _cloneEvent(event, dateFn) {\n event = assign({}, event);\n event.start = dateFn(event.start);\n event.end = dateFn(event.end);\n\n return event;\n}\n\n/**\n * Check whether the event intersects with the given date range and resource\n * @param event\n * @param start\n * @param end\n * @param [resource]\n * @param [timeMode] Zero-length events should be allowed (@see https://github.com/vkurko/calendar/issues/50), except in time mode\n * @return boolean\n */\nfunction eventIntersects(event, start, end, resource, timeMode) {\n return (\n event.start < end && event.end > start || !timeMode && datesEqual(event.start, event.end, start)\n ) && (\n resource === undefined || event.resourceIds.includes(resource.id)\n );\n}\n\nlet ignoreProp = symbol();\nfunction ignore(jsEvent) {\n jsEvent[ignoreProp] = true;\n}\n\nfunction maybeIgnore(fn) {\n return jsEvent => {\n if (!jsEvent[ignoreProp]) {\n fn && fn(jsEvent);\n // Make upper listeners ignore the event\n ignore(jsEvent);\n }\n };\n}\n\nfunction writable2(value, parser, start) {\n return {\n ...writable(parser ? parser(value) : value, start),\n parse: parser\n };\n}\n\nfunction derived2(stores, fn, initValue) {\n let storeValue = initValue;\n let hasSubscribers = false;\n let auto = fn.length < 2;\n let fn2 = (_, set) => {\n hasSubscribers = true;\n if (auto) {\n storeValue = fn(_, set);\n set(storeValue);\n } else {\n fn(_, value => {storeValue = value; set(value);});\n }\n return () => {hasSubscribers = false;};\n };\n let store = derived(stores, fn2, storeValue);\n return {\n ...store,\n get: () => hasSubscribers ? storeValue : get(store)\n };\n}\n\nfunction intl(locale, format) {\n return derived([locale, format], ([$locale, $format]) => {\n let intl = is_function($format)\n ? {format: $format}\n : new Intl.DateTimeFormat($locale, $format);\n return {\n format: date => intl.format(toLocalDate(date))\n };\n });\n}\n\nfunction intlRange(locale, format) {\n return derived([locale, format], ([$locale, $format]) => {\n if (is_function($format)) {\n return {format: (start, end) => $format(toLocalDate(start), toLocalDate(end))};\n }\n let intl = new Intl.DateTimeFormat($locale, $format);\n return {\n format: (start, end) => formatRange(toLocalDate(start), toLocalDate(end), intl)\n };\n });\n}\n\nexport { DAY_IN_SECONDS, addDay, addDuration, ancestor, assign, cloneDate, cloneEvent, createDate, createDuration, createElement, createEventChunk, createEventContent, createEventSources, createEvents, createView, datesEqual, debounce, derived2, eventIntersects, flushDebounce, formatRange, hasFn, hasYScroll, height, ignore, intl, intlRange, isObject, maybeIgnore, nextClosestDay, noTimePart, outsideEvent, prepareEventChunks, prevClosestDay, rect, repositionEvent, runFn, setContent, setFn, setMidnight, sortEventChunks, subtractDay, subtractDuration, symbol, toEventWithLocalDates, toISOString, toLocalDate, toViewWithLocalDates, writable2 };\n","import { is_function, noop, identity, tick, SvelteComponent, init, safe_not_equal, empty, insert, destroy_each, detach, component_subscribe, set_store_value, element, text, attr, append, listen, set_data, transition_in, group_outros, check_outros, transition_out, space, create_component, mount_component, destroy_component, construct_svelte_component, set_style, get_current_component } from 'svelte/internal';\nimport { getContext, setContext, beforeUpdate } from 'svelte';\nimport { derived, writable, readable, get } from 'svelte/store';\nimport { assign, setMidnight, createDate, createDuration, createEvents, createEventSources, cloneDate, prevClosestDay, nextClosestDay, DAY_IN_SECONDS, addDuration, subtractDay, derived2, addDay, createView, debounce, toISOString, toLocalDate, writable2, intl, intlRange, subtractDuration, toViewWithLocalDates, flushDebounce, toEventWithLocalDates, hasFn, runFn, ignore } from '@event-calendar/common';\n\nfunction createOptions(plugins) {\n let options = {\n allDayContent: undefined,\n allDaySlot: true,\n buttonText: {\n today: 'today',\n },\n date: new Date(),\n dateClick: undefined,\n datesSet: undefined,\n dayHeaderFormat: {\n weekday: 'short',\n month: 'numeric',\n day: 'numeric'\n },\n displayEventEnd: true,\n duration: {weeks: 1},\n events: [],\n eventBackgroundColor: undefined,\n eventClick: undefined,\n eventColor: undefined,\n eventContent: undefined,\n eventDidMount: undefined,\n eventMouseEnter: undefined,\n eventMouseLeave: undefined,\n eventSources: [],\n eventTimeFormat: {\n hour: 'numeric',\n minute: '2-digit'\n },\n firstDay: 0,\n flexibleSlotTimeLimits: false, // ec option\n headerToolbar: {\n start: 'title',\n center: '',\n end: 'today prev,next'\n },\n height: 'auto',\n hiddenDays: [],\n highlightedDates: [], // ec option\n lazyFetching: true,\n loading: undefined,\n locale: undefined,\n monthMode: false,\n nowIndicator: false,\n selectable: false,\n scrollTime: '06:00:00',\n slotDuration: '00:30:00',\n slotHeight: 24, // ec option\n slotLabelFormat: {\n hour: 'numeric',\n minute: '2-digit'\n },\n slotMaxTime: '24:00:00',\n slotMinTime: '00:00:00',\n theme: {\n allDay: 'ec-all-day',\n active: 'ec-active',\n bgEvent: 'ec-bg-event',\n bgEvents: 'ec-bg-events',\n body: 'ec-body',\n button: 'ec-button',\n buttonGroup: 'ec-button-group',\n calendar: 'ec',\n compact: 'ec-compact',\n content: 'ec-content',\n day: 'ec-day',\n dayHead: 'ec-day-head',\n days: 'ec-days',\n event: 'ec-event',\n eventBody: 'ec-event-body',\n eventTime: 'ec-event-time',\n eventTitle: 'ec-event-title',\n events: 'ec-events',\n extra: 'ec-extra',\n handle: 'ec-handle',\n header: 'ec-header',\n hiddenScroll: 'ec-hidden-scroll',\n hiddenTimes: 'ec-hidden-times',\n highlight: 'ec-highlight',\n icon: 'ec-icon',\n line: 'ec-line',\n lines: 'ec-lines',\n nowIndicator: 'ec-now-indicator',\n otherMonth: 'ec-other-month',\n sidebar: 'ec-sidebar',\n sidebarTitle: 'ec-sidebar-title',\n today: 'ec-today',\n time: 'ec-time',\n title: 'ec-title',\n toolbar: 'ec-toolbar',\n week: 'ec-week',\n withScroll: 'ec-with-scroll'\n },\n titleFormat: {\n year: 'numeric',\n month: 'short',\n day: 'numeric'\n },\n view: undefined,\n viewDidMount: undefined,\n views: {}\n };\n\n for (let plugin of plugins) {\n if ('createOptions' in plugin) {\n plugin.createOptions(options);\n }\n }\n\n return options;\n}\n\nfunction createParsers(options, plugins) {\n let parsers = {\n buttonText: input => is_function(input) ? input(options.buttonText) : input,\n date: date => setMidnight(createDate(date)),\n duration: createDuration,\n events: createEvents,\n eventSources: createEventSources,\n hiddenDays: days => [...new Set(days)],\n highlightedDates: dates => dates.map(createDate),\n scrollTime: createDuration,\n slotDuration: createDuration,\n slotMaxTime: createDuration,\n slotMinTime: createDuration,\n theme: input => is_function(input) ? input(options.theme) : input\n };\n\n for (let plugin of plugins) {\n if ('createParsers' in plugin) {\n plugin.createParsers(parsers, options);\n }\n }\n\n return parsers;\n}\n\nlet prev;\nfunction diff(options) {\n let diff = [];\n if (prev) {\n for (let name of Object.keys(options)) {\n if (options[name] !== prev[name]) {\n diff.push([name, options[name]]);\n }\n }\n }\n prev = assign({}, options);\n\n return diff;\n}\n\nfunction activeRange(state) {\n return derived(\n [state._currentRange, state.firstDay, state.monthMode, state.slotMinTime, state.slotMaxTime],\n ([$_currentRange, $firstDay, $monthMode, $slotMinTime, $slotMaxTime]) => {\n let start = cloneDate($_currentRange.start);\n let end = cloneDate($_currentRange.end);\n\n if ($monthMode) {\n // First day of week\n prevClosestDay(start, $firstDay);\n nextClosestDay(end, $firstDay);\n } else if ($slotMaxTime.days || $slotMaxTime.seconds > DAY_IN_SECONDS) {\n addDuration(subtractDay(end), $slotMaxTime);\n let start2 = subtractDay(cloneDate(end));\n if (start2 < start) {\n start = start2;\n }\n }\n\n return {start, end};\n }\n );\n}\n\nfunction currentRange(state) {\n return derived(\n [state.date, state.duration, state.monthMode, state.firstDay],\n ([$date, $duration, $monthMode, $firstDay]) => {\n let start = cloneDate($date), end;\n if ($monthMode) {\n start.setUTCDate(1);\n } else if ($duration.inWeeks) {\n // First day of week\n prevClosestDay(start, $firstDay);\n }\n end = addDuration(cloneDate(start), $duration);\n\n return {start, end};\n }\n );\n}\n\nfunction viewDates(state) {\n return derived2([state._activeRange, state.hiddenDays], ([$_activeRange, $hiddenDays]) => {\n let dates = [];\n let date = setMidnight(cloneDate($_activeRange.start));\n let end = setMidnight(cloneDate($_activeRange.end));\n while (date < end) {\n if (!$hiddenDays.includes(date.getUTCDay())) {\n dates.push(cloneDate(date));\n }\n addDay(date);\n }\n if (!dates.length && $hiddenDays.length && $hiddenDays.length < 7) {\n // Try to move the date\n state.date.update(date => {\n while ($hiddenDays.includes(date.getUTCDay())) {\n addDay(date);\n }\n return date;\n });\n dates = state._viewDates.get();\n }\n\n return dates;\n });\n}\n\nfunction viewTitle(state) {\n return derived(\n [state.date, state._activeRange, state._titleIntlRange, state.monthMode],\n ([$date, $_activeRange, $_titleIntlRange, $monthMode]) => {\n return $monthMode\n ? $_titleIntlRange.format($date, $date)\n : $_titleIntlRange.format($_activeRange.start, subtractDay(cloneDate($_activeRange.end)));\n }\n );\n}\n\nfunction view(state) {\n return derived2([state.view, state._viewTitle, state._currentRange, state._activeRange], args => createView(...args));\n}\n\nfunction events(state) {\n let _events = writable([]);\n let abortController;\n let fetching = 0;\n let debounceHandle = {};\n derived(\n [state.events, state.eventSources, state._activeRange, state._fetchedRange, state.lazyFetching, state.loading],\n (values, set) => debounce(() => {\n let [$events, $eventSources, $_activeRange, $_fetchedRange, $lazyFetching, $loading] = values;\n if (!$eventSources.length) {\n set($events);\n return;\n }\n // Do not fetch if new range is within the previous one\n if (!$_fetchedRange.start || $_fetchedRange.start > $_activeRange.start || $_fetchedRange.end < $_activeRange.end || !$lazyFetching) {\n if (abortController) {\n // Abort previous request\n abortController.abort();\n }\n // Create new abort controller\n abortController = new AbortController();\n // Call loading hook\n if (is_function($loading) && !fetching) {\n $loading(true);\n }\n let stopLoading = () => {\n if (--fetching === 0 && is_function($loading)) {\n $loading(false);\n }\n };\n let events = [];\n // Prepare handlers\n let failure = e => stopLoading();\n let success = data => {\n events = events.concat(createEvents(data));\n set(events);\n stopLoading();\n };\n // Prepare other stuff\n let startStr = toISOString($_activeRange.start);\n let endStr = toISOString($_activeRange.end);\n // Loop over event sources\n for (let source of $eventSources) {\n if (is_function(source.events)) {\n // Events as a function\n let result = source.events({\n start: toLocalDate($_activeRange.start),\n end: toLocalDate($_activeRange.end),\n startStr,\n endStr\n }, success, failure);\n if (result !== undefined) {\n Promise.resolve(result).then(success, failure);\n }\n } else {\n // Events as a JSON feed\n // Prepare params\n let params = is_function(source.extraParams) ? source.extraParams() : assign({}, source.extraParams);\n params.start = startStr;\n params.end = endStr;\n params = new URLSearchParams(params);\n // Prepare fetch\n let url = source.url, headers = {}, body;\n if (['GET', 'HEAD'].includes(source.method)) {\n url += (url.includes('?') ? '&' : '?') + params;\n } else {\n headers['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';\n body = String(params); // Safari 10.1 doesn't convert to string automatically\n }\n // Do the fetch\n fetch(url, {method: source.method, headers, body, signal: abortController.signal, credentials: 'same-origin'})\n .then(response => response.json())\n .then(success)\n .catch(failure);\n }\n ++fetching;\n }\n // Save current range for future requests\n $_fetchedRange.start = $_activeRange.start;\n $_fetchedRange.end = $_activeRange.end;\n }\n }, debounceHandle, state._queue),\n []\n ).subscribe(_events.set);\n\n return _events;\n}\n\nfunction now() {\n return readable(createDate(), set => {\n let interval = setInterval(() => {\n set(createDate());\n }, 1000);\n\n return () => clearInterval(interval);\n });\n}\n\nfunction today(state) {\n return derived(state._now, $_now => setMidnight(cloneDate($_now)));\n}\n\nclass State {\n constructor(plugins, input) {\n plugins = plugins || [];\n\n // Create options\n let options = createOptions(plugins);\n let parsers = createParsers(options, plugins);\n\n // Create stores for options\n for (let [option, value] of Object.entries(options)) {\n this[option] = writable2(value, parsers[option]);\n }\n\n // Private stores\n this._queue = writable(new Map()); // debounce queue\n this._auxiliary = writable([]); // auxiliary components\n this._currentRange = currentRange(this);\n this._activeRange = activeRange(this);\n this._fetchedRange = writable({start: undefined, end: undefined});\n this._events = events(this);\n this._now = now();\n this._today = today(this);\n this._ignoreClick = writable(false);\n this._intlEventTime = intl(this.locale, this.eventTimeFormat);\n this._intlSlotLabel = intl(this.locale, this.slotLabelFormat);\n this._intlDayHeader = intl(this.locale, this.dayHeaderFormat);\n this._titleIntlRange = intlRange(this.locale, this.titleFormat);\n this._scrollable = writable(false);\n this._viewTitle = viewTitle(this);\n this._viewDates = viewDates(this);\n this._view = view(this);\n this._viewComponent = writable(undefined);\n this._viewClass = writable(undefined);\n // Resources\n this._resBgColor = writable(noop);\n // Interaction\n this._interaction = writable({});\n this._iEvents = writable([null, null]); // interaction events: [drag/resize, pointer]\n this._draggable = writable(noop);\n this._resizable = writable(noop);\n this._classes = writable(identity);\n this._iClass = writable(undefined);\n this._scroll = writable(undefined);\n\n // Let plugins create their private stores\n for (let plugin of plugins) {\n if ('createStores' in plugin) {\n plugin.createStores(this);\n }\n }\n\n if (input.view) {\n // Set initial view based on input\n this.view.set(input.view);\n }\n\n // Set options for each view\n let commonOpts = assign({}, options, input);\n parseOpts(commonOpts, this);\n let views = new Set([...Object.keys(options.views), ...Object.keys(input.views || {})]);\n for (let view of views) {\n let viewOpts = assign({}, options.views[view] || {}, input.views && input.views[view] || {});\n parseOpts(viewOpts, this);\n let opts = assign({}, commonOpts, viewOpts);\n // Change view component when view changes\n this.view.subscribe(newView => {\n if (newView === view) {\n this._viewComponent.set(opts.component);\n if (is_function(opts.viewDidMount)) {\n tick().then(() => opts.viewDidMount(this._view.get()));\n }\n }\n });\n // Process options\n for (let key of Object.keys(opts)) {\n if (this.hasOwnProperty(key) && key[0] !== '_') {\n let {set, _set, ...rest} = this[key];\n\n if (!_set) {\n // Original set\n _set = set;\n }\n\n this[key] = {\n // Set value in all views\n set: value => {opts[key] = value; set(value);},\n _set,\n ...rest\n };\n\n // Change value when view changes\n this.view.subscribe(newView => {\n if (newView === view) {\n _set(opts[key]);\n }\n });\n }\n }\n }\n }\n}\n\nfunction parseOpts(opts, state) {\n for (let key of Object.keys(opts)) {\n if (state.hasOwnProperty(key) && key[0] !== '_') {\n if (state[key].parse) {\n opts[key] = state[key].parse(opts[key]);\n }\n }\n }\n}\n\n/* packages/core/src/Buttons.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context$2(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[23] = list[i];\n\treturn child_ctx;\n}\n\n// (38:4) {:else}\nfunction create_else_block$1(ctx) {\n\tlet button;\n\tlet t_value = /*$buttonText*/ ctx[5][/*button*/ ctx[23]] + \"\";\n\tlet t;\n\tlet button_class_value;\n\tlet mounted;\n\tlet dispose;\n\n\tfunction click_handler_1() {\n\t\treturn /*click_handler_1*/ ctx[20](/*button*/ ctx[23]);\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tbutton = element(\"button\");\n\t\t\tt = text(t_value);\n\n\t\t\tattr(button, \"class\", button_class_value = \"\" + (/*$theme*/ ctx[3].button + (/*$view*/ ctx[6] === /*button*/ ctx[23]\n\t\t\t? ' ' + /*$theme*/ ctx[3].active\n\t\t\t: '') + \" ec-\" + /*button*/ ctx[23]));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, button, anchor);\n\t\t\tappend(button, t);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = listen(button, \"click\", click_handler_1);\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\t\t\tif (dirty & /*$buttonText, buttons*/ 33 && t_value !== (t_value = /*$buttonText*/ ctx[5][/*button*/ ctx[23]] + \"\")) set_data(t, t_value);\n\n\t\t\tif (dirty & /*$theme, $view, buttons*/ 73 && button_class_value !== (button_class_value = \"\" + (/*$theme*/ ctx[3].button + (/*$view*/ ctx[6] === /*button*/ ctx[23]\n\t\t\t? ' ' + /*$theme*/ ctx[3].active\n\t\t\t: '') + \" ec-\" + /*button*/ ctx[23]))) {\n\t\t\t\tattr(button, \"class\", button_class_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(button);\n\t\t\tmounted = false;\n\t\t\tdispose();\n\t\t}\n\t};\n}\n\n// (36:33) \nfunction create_if_block_4(ctx) {\n\tlet button;\n\tlet t_value = /*$buttonText*/ ctx[5][/*button*/ ctx[23]] + \"\";\n\tlet t;\n\tlet button_class_value;\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tc() {\n\t\t\tbutton = element(\"button\");\n\t\t\tt = text(t_value);\n\t\t\tattr(button, \"class\", button_class_value = \"\" + (/*$theme*/ ctx[3].button + \" ec-\" + /*button*/ ctx[23]));\n\t\t\tbutton.disabled = /*isToday*/ ctx[1];\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, button, anchor);\n\t\t\tappend(button, t);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = listen(button, \"click\", /*click_handler*/ ctx[19]);\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*$buttonText, buttons*/ 33 && t_value !== (t_value = /*$buttonText*/ ctx[5][/*button*/ ctx[23]] + \"\")) set_data(t, t_value);\n\n\t\t\tif (dirty & /*$theme, buttons*/ 9 && button_class_value !== (button_class_value = \"\" + (/*$theme*/ ctx[3].button + \" ec-\" + /*button*/ ctx[23]))) {\n\t\t\t\tattr(button, \"class\", button_class_value);\n\t\t\t}\n\n\t\t\tif (dirty & /*isToday*/ 2) {\n\t\t\t\tbutton.disabled = /*isToday*/ ctx[1];\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(button);\n\t\t\tmounted = false;\n\t\t\tdispose();\n\t\t}\n\t};\n}\n\n// (34:32) \nfunction create_if_block_3(ctx) {\n\tlet button;\n\tlet i;\n\tlet i_class_value;\n\tlet button_class_value;\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tc() {\n\t\t\tbutton = element(\"button\");\n\t\t\ti = element(\"i\");\n\t\t\tattr(i, \"class\", i_class_value = \"\" + (/*$theme*/ ctx[3].icon + \" ec-\" + /*button*/ ctx[23]));\n\t\t\tattr(button, \"class\", button_class_value = \"\" + (/*$theme*/ ctx[3].button + \" ec-\" + /*button*/ ctx[23]));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, button, anchor);\n\t\t\tappend(button, i);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = listen(button, \"click\", /*next*/ ctx[17]);\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*$theme, buttons*/ 9 && i_class_value !== (i_class_value = \"\" + (/*$theme*/ ctx[3].icon + \" ec-\" + /*button*/ ctx[23]))) {\n\t\t\t\tattr(i, \"class\", i_class_value);\n\t\t\t}\n\n\t\t\tif (dirty & /*$theme, buttons*/ 9 && button_class_value !== (button_class_value = \"\" + (/*$theme*/ ctx[3].button + \" ec-\" + /*button*/ ctx[23]))) {\n\t\t\t\tattr(button, \"class\", button_class_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(button);\n\t\t\tmounted = false;\n\t\t\tdispose();\n\t\t}\n\t};\n}\n\n// (32:31) \nfunction create_if_block_2(ctx) {\n\tlet button;\n\tlet i;\n\tlet i_class_value;\n\tlet button_class_value;\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tc() {\n\t\t\tbutton = element(\"button\");\n\t\t\ti = element(\"i\");\n\t\t\tattr(i, \"class\", i_class_value = \"\" + (/*$theme*/ ctx[3].icon + \" ec-\" + /*button*/ ctx[23]));\n\t\t\tattr(button, \"class\", button_class_value = \"\" + (/*$theme*/ ctx[3].button + \" ec-\" + /*button*/ ctx[23]));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, button, anchor);\n\t\t\tappend(button, i);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = listen(button, \"click\", /*prev*/ ctx[16]);\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*$theme, buttons*/ 9 && i_class_value !== (i_class_value = \"\" + (/*$theme*/ ctx[3].icon + \" ec-\" + /*button*/ ctx[23]))) {\n\t\t\t\tattr(i, \"class\", i_class_value);\n\t\t\t}\n\n\t\t\tif (dirty & /*$theme, buttons*/ 9 && button_class_value !== (button_class_value = \"\" + (/*$theme*/ ctx[3].button + \" ec-\" + /*button*/ ctx[23]))) {\n\t\t\t\tattr(button, \"class\", button_class_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(button);\n\t\t\tmounted = false;\n\t\t\tdispose();\n\t\t}\n\t};\n}\n\n// (30:32) \nfunction create_if_block_1(ctx) {\n\tlet h2;\n\tlet t;\n\tlet h2_class_value;\n\n\treturn {\n\t\tc() {\n\t\t\th2 = element(\"h2\");\n\t\t\tt = text(/*$_viewTitle*/ ctx[4]);\n\t\t\tattr(h2, \"class\", h2_class_value = /*$theme*/ ctx[3].title);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, h2, anchor);\n\t\t\tappend(h2, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*$_viewTitle*/ 16) set_data(t, /*$_viewTitle*/ ctx[4]);\n\n\t\t\tif (dirty & /*$theme*/ 8 && h2_class_value !== (h2_class_value = /*$theme*/ ctx[3].title)) {\n\t\t\t\tattr(h2, \"class\", h2_class_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(h2);\n\t\t}\n\t};\n}\n\n// (29:4) {#if button == ''}\nfunction create_if_block$1(ctx) {\n\treturn { c: noop, m: noop, p: noop, d: noop };\n}\n\n// (28:0) {#each buttons as button}\nfunction create_each_block$2(ctx) {\n\tlet if_block_anchor;\n\n\tfunction select_block_type(ctx, dirty) {\n\t\tif (/*button*/ ctx[23] == '') return create_if_block$1;\n\t\tif (/*button*/ ctx[23] == 'title') return create_if_block_1;\n\t\tif (/*button*/ ctx[23] == 'prev') return create_if_block_2;\n\t\tif (/*button*/ ctx[23] === 'next') return create_if_block_3;\n\t\tif (/*button*/ ctx[23] === 'today') return create_if_block_4;\n\t\treturn create_else_block$1;\n\t}\n\n\tlet current_block_type = select_block_type(ctx);\n\tlet if_block = current_block_type(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif_block.c();\n\t\t\tif_block_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif_block.m(target, anchor);\n\t\t\tinsert(target, if_block_anchor, anchor);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {\n\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t} else {\n\t\t\t\tif_block.d(1);\n\t\t\t\tif_block = current_block_type(ctx);\n\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.c();\n\t\t\t\t\tif_block.m(if_block_anchor.parentNode, if_block_anchor);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif_block.d(detaching);\n\t\t\tif (detaching) detach(if_block_anchor);\n\t\t}\n\t};\n}\n\nfunction create_fragment$3(ctx) {\n\tlet each_1_anchor;\n\tlet each_value = /*buttons*/ ctx[0];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\teach_blocks[i] = create_each_block$2(get_each_context$2(ctx, each_value, i));\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\teach_1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, each_1_anchor, anchor);\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (dirty & /*buttons, $theme, $_viewTitle, prev, next, isToday, $date, cloneDate, today, $buttonText, $view*/ 229503) {\n\t\t\t\teach_value = /*buttons*/ ctx[0];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context$2(ctx, each_value, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block$2(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\teach_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (; i < each_blocks.length; i += 1) {\n\t\t\t\t\teach_blocks[i].d(1);\n\t\t\t\t}\n\n\t\t\t\teach_blocks.length = each_value.length;\n\t\t\t}\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t\tif (detaching) detach(each_1_anchor);\n\t\t}\n\t};\n}\n\nfunction instance$3($$self, $$props, $$invalidate) {\n\tlet $duration;\n\tlet $date;\n\tlet $hiddenDays;\n\tlet $_currentRange;\n\tlet $theme;\n\tlet $_viewTitle;\n\tlet $buttonText;\n\tlet $view;\n\tlet { buttons } = $$props;\n\tlet { _currentRange, _viewTitle, buttonText, date, duration, hiddenDays, theme, view } = getContext('state');\n\tcomponent_subscribe($$self, _currentRange, value => $$invalidate(18, $_currentRange = value));\n\tcomponent_subscribe($$self, _viewTitle, value => $$invalidate(4, $_viewTitle = value));\n\tcomponent_subscribe($$self, buttonText, value => $$invalidate(5, $buttonText = value));\n\tcomponent_subscribe($$self, date, value => $$invalidate(2, $date = value));\n\tcomponent_subscribe($$self, duration, value => $$invalidate(21, $duration = value));\n\tcomponent_subscribe($$self, hiddenDays, value => $$invalidate(22, $hiddenDays = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(3, $theme = value));\n\tcomponent_subscribe($$self, view, value => $$invalidate(6, $view = value));\n\tlet today = setMidnight(createDate()), isToday;\n\n\tfunction prev() {\n\t\tlet d = subtractDuration($date, $duration);\n\n\t\tif ($hiddenDays.length && $hiddenDays.length < 7) {\n\t\t\twhile ($hiddenDays.includes(d.getUTCDay())) {\n\t\t\t\tsubtractDay(d);\n\t\t\t}\n\t\t}\n\n\t\tset_store_value(date, $date = d, $date);\n\t}\n\n\tfunction next() {\n\t\tset_store_value(date, $date = addDuration($date, $duration), $date);\n\t}\n\n\tconst click_handler = () => set_store_value(date, $date = cloneDate(today), $date);\n\tconst click_handler_1 = button => set_store_value(view, $view = button, $view);\n\n\t$$self.$$set = $$props => {\n\t\tif ('buttons' in $$props) $$invalidate(0, buttons = $$props.buttons);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*$_currentRange*/ 262144) {\n\t\t\t$$invalidate(1, isToday = today >= $_currentRange.start && today < $_currentRange.end || null);\n\t\t}\n\t};\n\n\treturn [\n\t\tbuttons,\n\t\tisToday,\n\t\t$date,\n\t\t$theme,\n\t\t$_viewTitle,\n\t\t$buttonText,\n\t\t$view,\n\t\t_currentRange,\n\t\t_viewTitle,\n\t\tbuttonText,\n\t\tdate,\n\t\tduration,\n\t\thiddenDays,\n\t\ttheme,\n\t\tview,\n\t\ttoday,\n\t\tprev,\n\t\tnext,\n\t\t$_currentRange,\n\t\tclick_handler,\n\t\tclick_handler_1\n\t];\n}\n\nclass Buttons extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$3, create_fragment$3, safe_not_equal, { buttons: 0 });\n\t}\n}\n\n/* packages/core/src/Toolbar.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context$1(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[5] = list[i];\n\treturn child_ctx;\n}\n\nfunction get_each_context_1(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[8] = list[i];\n\treturn child_ctx;\n}\n\n// (28:16) {:else}\nfunction create_else_block(ctx) {\n\tlet buttons;\n\tlet current;\n\tbuttons = new Buttons({ props: { buttons: /*buttons*/ ctx[8] } });\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(buttons.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(buttons, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst buttons_changes = {};\n\t\t\tif (dirty & /*sections*/ 1) buttons_changes.buttons = /*buttons*/ ctx[8];\n\t\t\tbuttons.$set(buttons_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(buttons.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(buttons.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(buttons, detaching);\n\t\t}\n\t};\n}\n\n// (24:16) {#if buttons.length > 1}\nfunction create_if_block(ctx) {\n\tlet div;\n\tlet buttons;\n\tlet div_class_value;\n\tlet current;\n\tbuttons = new Buttons({ props: { buttons: /*buttons*/ ctx[8] } });\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcreate_component(buttons.$$.fragment);\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[1].buttonGroup);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tmount_component(buttons, div, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst buttons_changes = {};\n\t\t\tif (dirty & /*sections*/ 1) buttons_changes.buttons = /*buttons*/ ctx[8];\n\t\t\tbuttons.$set(buttons_changes);\n\n\t\t\tif (!current || dirty & /*$theme*/ 2 && div_class_value !== (div_class_value = /*$theme*/ ctx[1].buttonGroup)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(buttons.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(buttons.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_component(buttons);\n\t\t}\n\t};\n}\n\n// (23:12) {#each sections[key] as buttons}\nfunction create_each_block_1(ctx) {\n\tlet current_block_type_index;\n\tlet if_block;\n\tlet if_block_anchor;\n\tlet current;\n\tconst if_block_creators = [create_if_block, create_else_block];\n\tconst if_blocks = [];\n\n\tfunction select_block_type(ctx, dirty) {\n\t\tif (/*buttons*/ ctx[8].length > 1) return 0;\n\t\treturn 1;\n\t}\n\n\tcurrent_block_type_index = select_block_type(ctx);\n\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif_block.c();\n\t\t\tif_block_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif_blocks[current_block_type_index].m(target, anchor);\n\t\t\tinsert(target, if_block_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tlet previous_block_index = current_block_type_index;\n\t\t\tcurrent_block_type_index = select_block_type(ctx);\n\n\t\t\tif (current_block_type_index === previous_block_index) {\n\t\t\t\tif_blocks[current_block_type_index].p(ctx, dirty);\n\t\t\t} else {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_blocks[previous_block_index], 1, 1, () => {\n\t\t\t\t\tif_blocks[previous_block_index] = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t\tif_block = if_blocks[current_block_type_index];\n\n\t\t\t\tif (!if_block) {\n\t\t\t\t\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t} else {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t}\n\n\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\tif_block.m(if_block_anchor.parentNode, if_block_anchor);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif_blocks[current_block_type_index].d(detaching);\n\t\t\tif (detaching) detach(if_block_anchor);\n\t\t}\n\t};\n}\n\n// (21:4) {#each Object.keys(sections) as key}\nfunction create_each_block$1(ctx) {\n\tlet div;\n\tlet t;\n\tlet current;\n\tlet each_value_1 = /*sections*/ ctx[0][/*key*/ ctx[5]];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value_1.length; i += 1) {\n\t\teach_blocks[i] = create_each_block_1(get_each_context_1(ctx, each_value_1, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tt = space();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(div, null);\n\t\t\t}\n\n\t\t\tappend(div, t);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*$theme, sections, Object*/ 3) {\n\t\t\t\teach_value_1 = /*sections*/ ctx[0][/*key*/ ctx[5]];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value_1.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context_1(ctx, each_value_1, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block_1(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(div, t);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value_1.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value_1.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t}\n\t};\n}\n\nfunction create_fragment$2(ctx) {\n\tlet div;\n\tlet div_class_value;\n\tlet current;\n\tlet each_value = Object.keys(/*sections*/ ctx[0]);\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\teach_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[1].toolbar);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(div, null);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (dirty & /*sections, Object, $theme*/ 3) {\n\t\t\t\teach_value = Object.keys(/*sections*/ ctx[0]);\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context$1(ctx, each_value, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block$1(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(div, null);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*$theme*/ 2 && div_class_value !== (div_class_value = /*$theme*/ ctx[1].toolbar)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t}\n\t};\n}\n\nfunction instance$2($$self, $$props, $$invalidate) {\n\tlet $headerToolbar;\n\tlet $theme;\n\tlet { headerToolbar, theme } = getContext('state');\n\tcomponent_subscribe($$self, headerToolbar, value => $$invalidate(4, $headerToolbar = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(1, $theme = value));\n\tlet sections = { start: [], center: [], end: [] };\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*sections, $headerToolbar*/ 17) {\n\t\t\t{\n\t\t\t\tfor (let key of Object.keys(sections)) {\n\t\t\t\t\t$$invalidate(0, sections[key] = $headerToolbar[key].split(' ').map(group => group.split(',')), sections);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [sections, $theme, headerToolbar, theme, $headerToolbar];\n}\n\nclass Toolbar extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$2, create_fragment$2, safe_not_equal, {});\n\t}\n}\n\n/* packages/core/src/Auxiliary.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[11] = list[i];\n\treturn child_ctx;\n}\n\n// (25:0) {#each $_auxiliary as component}\nfunction create_each_block(ctx) {\n\tlet switch_instance;\n\tlet switch_instance_anchor;\n\tlet current;\n\tvar switch_value = /*component*/ ctx[11];\n\n\tfunction switch_props(ctx) {\n\t\treturn {};\n\t}\n\n\tif (switch_value) {\n\t\tswitch_instance = construct_svelte_component(switch_value, switch_props());\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tif (switch_instance) create_component(switch_instance.$$.fragment);\n\t\t\tswitch_instance_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (switch_instance) mount_component(switch_instance, target, anchor);\n\t\t\tinsert(target, switch_instance_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (switch_value !== (switch_value = /*component*/ ctx[11])) {\n\t\t\t\tif (switch_instance) {\n\t\t\t\t\tgroup_outros();\n\t\t\t\t\tconst old_component = switch_instance;\n\n\t\t\t\t\ttransition_out(old_component.$$.fragment, 1, 0, () => {\n\t\t\t\t\t\tdestroy_component(old_component, 1);\n\t\t\t\t\t});\n\n\t\t\t\t\tcheck_outros();\n\t\t\t\t}\n\n\t\t\t\tif (switch_value) {\n\t\t\t\t\tswitch_instance = construct_svelte_component(switch_value, switch_props());\n\t\t\t\t\tcreate_component(switch_instance.$$.fragment);\n\t\t\t\t\ttransition_in(switch_instance.$$.fragment, 1);\n\t\t\t\t\tmount_component(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor);\n\t\t\t\t} else {\n\t\t\t\t\tswitch_instance = null;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\tif (switch_instance) transition_in(switch_instance.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\tif (switch_instance) transition_out(switch_instance.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(switch_instance_anchor);\n\t\t\tif (switch_instance) destroy_component(switch_instance, detaching);\n\t\t}\n\t};\n}\n\nfunction create_fragment$1(ctx) {\n\tlet each_1_anchor;\n\tlet current;\n\tlet each_value = /*$_auxiliary*/ ctx[0];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\teach_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\teach_1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, each_1_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (dirty & /*$_auxiliary*/ 1) {\n\t\t\t\teach_value = /*$_auxiliary*/ ctx[0];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context(ctx, each_value, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t\tif (detaching) detach(each_1_anchor);\n\t\t}\n\t};\n}\n\nfunction instance$1($$self, $$props, $$invalidate) {\n\tlet $_view;\n\tlet $datesSet;\n\tlet $_activeRange;\n\tlet $_auxiliary;\n\tlet { datesSet, _auxiliary, _activeRange, _queue, _view } = getContext('state');\n\tcomponent_subscribe($$self, datesSet, value => $$invalidate(7, $datesSet = value));\n\tcomponent_subscribe($$self, _auxiliary, value => $$invalidate(0, $_auxiliary = value));\n\tcomponent_subscribe($$self, _activeRange, value => $$invalidate(5, $_activeRange = value));\n\tcomponent_subscribe($$self, _view, value => $$invalidate(6, $_view = value));\n\tlet debounceHandle = {};\n\n\tfunction runDatesSet(_activeRange) {\n\t\tif (is_function($datesSet)) {\n\t\t\tdebounce(\n\t\t\t\t() => $datesSet({\n\t\t\t\t\tstart: toLocalDate(_activeRange.start),\n\t\t\t\t\tend: toLocalDate(_activeRange.end),\n\t\t\t\t\tstartStr: toISOString(_activeRange.start),\n\t\t\t\t\tendStr: toISOString(_activeRange.end),\n\t\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t\t}),\n\t\t\t\tdebounceHandle,\n\t\t\t\t_queue\n\t\t\t);\n\t\t}\n\t}\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*$_activeRange*/ 32) {\n\t\t\t// Set up datesSet callback\n\t\t\trunDatesSet($_activeRange);\n\t\t}\n\t};\n\n\treturn [$_auxiliary, datesSet, _auxiliary, _activeRange, _view, $_activeRange];\n}\n\nclass Auxiliary extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$1, create_fragment$1, safe_not_equal, {});\n\t}\n}\n\n/* packages/core/src/Calendar.svelte generated by Svelte v3.55.1 */\n\nfunction create_fragment(ctx) {\n\tlet div;\n\tlet toolbar;\n\tlet t0;\n\tlet switch_instance;\n\tlet div_class_value;\n\tlet t1;\n\tlet auxiliary;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\ttoolbar = new Toolbar({});\n\tvar switch_value = /*$_viewComponent*/ ctx[4];\n\n\tfunction switch_props(ctx) {\n\t\treturn {};\n\t}\n\n\tif (switch_value) {\n\t\tswitch_instance = construct_svelte_component(switch_value, switch_props());\n\t}\n\n\tauxiliary = new Auxiliary({});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcreate_component(toolbar.$$.fragment);\n\t\t\tt0 = space();\n\t\t\tif (switch_instance) create_component(switch_instance.$$.fragment);\n\t\t\tt1 = space();\n\t\t\tcreate_component(auxiliary.$$.fragment);\n\n\t\t\tattr(div, \"class\", div_class_value = \"\" + (/*$theme*/ ctx[0].calendar + (/*$_viewClass*/ ctx[1]\n\t\t\t? ' ' + /*$theme*/ ctx[0][/*$_viewClass*/ ctx[1]]\n\t\t\t: '') + (/*$_iClass*/ ctx[2]\n\t\t\t? ' ' + /*$theme*/ ctx[0][/*$_iClass*/ ctx[2]]\n\t\t\t: '')));\n\n\t\t\tset_style(div, \"height\", /*$height*/ ctx[3]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tmount_component(toolbar, div, null);\n\t\t\tappend(div, t0);\n\t\t\tif (switch_instance) mount_component(switch_instance, div, null);\n\t\t\tinsert(target, t1, anchor);\n\t\t\tmount_component(auxiliary, target, anchor);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = listen(window, \"click\", /*handleClick*/ ctx[16], true);\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (switch_value !== (switch_value = /*$_viewComponent*/ ctx[4])) {\n\t\t\t\tif (switch_instance) {\n\t\t\t\t\tgroup_outros();\n\t\t\t\t\tconst old_component = switch_instance;\n\n\t\t\t\t\ttransition_out(old_component.$$.fragment, 1, 0, () => {\n\t\t\t\t\t\tdestroy_component(old_component, 1);\n\t\t\t\t\t});\n\n\t\t\t\t\tcheck_outros();\n\t\t\t\t}\n\n\t\t\t\tif (switch_value) {\n\t\t\t\t\tswitch_instance = construct_svelte_component(switch_value, switch_props());\n\t\t\t\t\tcreate_component(switch_instance.$$.fragment);\n\t\t\t\t\ttransition_in(switch_instance.$$.fragment, 1);\n\t\t\t\t\tmount_component(switch_instance, div, null);\n\t\t\t\t} else {\n\t\t\t\t\tswitch_instance = null;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme, $_viewClass, $_iClass*/ 7 && div_class_value !== (div_class_value = \"\" + (/*$theme*/ ctx[0].calendar + (/*$_viewClass*/ ctx[1]\n\t\t\t? ' ' + /*$theme*/ ctx[0][/*$_viewClass*/ ctx[1]]\n\t\t\t: '') + (/*$_iClass*/ ctx[2]\n\t\t\t? ' ' + /*$theme*/ ctx[0][/*$_iClass*/ ctx[2]]\n\t\t\t: '')))) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$height*/ 8) {\n\t\t\t\tset_style(div, \"height\", /*$height*/ ctx[3]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(toolbar.$$.fragment, local);\n\t\t\tif (switch_instance) transition_in(switch_instance.$$.fragment, local);\n\t\t\ttransition_in(auxiliary.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(toolbar.$$.fragment, local);\n\t\t\tif (switch_instance) transition_out(switch_instance.$$.fragment, local);\n\t\t\ttransition_out(auxiliary.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_component(toolbar);\n\t\t\tif (switch_instance) destroy_component(switch_instance);\n\t\t\tif (detaching) detach(t1);\n\t\t\tdestroy_component(auxiliary, detaching);\n\t\t\tmounted = false;\n\t\t\tdispose();\n\t\t}\n\t};\n}\n\nfunction instance($$self, $$props, $$invalidate) {\n\tlet $_queue;\n\tlet $_ignoreClick;\n\tlet $events;\n\tlet $_events;\n\tlet $eventSources;\n\tlet $_interaction;\n\tlet $theme;\n\tlet $_viewClass;\n\tlet $_iClass;\n\tlet $height;\n\tlet $_viewComponent;\n\tlet { plugins = [] } = $$props;\n\tlet { options = {} } = $$props;\n\tlet component = get_current_component();\n\tlet state = new State(plugins, options);\n\tsetContext('state', state);\n\tlet { _viewComponent, _viewClass, _ignoreClick, _interaction, _iClass, _events, _queue, events, eventSources, height, theme } = state;\n\tcomponent_subscribe($$self, _viewComponent, value => $$invalidate(4, $_viewComponent = value));\n\tcomponent_subscribe($$self, _viewClass, value => $$invalidate(1, $_viewClass = value));\n\tcomponent_subscribe($$self, _ignoreClick, value => $$invalidate(32, $_ignoreClick = value));\n\tcomponent_subscribe($$self, _interaction, value => $$invalidate(36, $_interaction = value));\n\tcomponent_subscribe($$self, _iClass, value => $$invalidate(2, $_iClass = value));\n\tcomponent_subscribe($$self, _events, value => $$invalidate(34, $_events = value));\n\tcomponent_subscribe($$self, _queue, value => $$invalidate(31, $_queue = value));\n\tcomponent_subscribe($$self, events, value => $$invalidate(33, $events = value));\n\tcomponent_subscribe($$self, eventSources, value => $$invalidate(35, $eventSources = value));\n\tcomponent_subscribe($$self, height, value => $$invalidate(3, $height = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(0, $theme = value));\n\n\tfunction setOption(name, value) {\n\t\tif (state.hasOwnProperty(name)) {\n\t\t\tif (state[name].parse) {\n\t\t\t\tvalue = state[name].parse(value);\n\t\t\t}\n\n\t\t\tstate[name].set(value);\n\t\t}\n\n\t\treturn this;\n\t}\n\n\tfunction getOption(name) {\n\t\tlet value = state.hasOwnProperty(name)\n\t\t? get(state[name])\n\t\t: undefined;\n\n\t\treturn value instanceof Date ? toLocalDate(value) : value;\n\t}\n\n\tfunction refetchEvents() {\n\t\tstate._fetchedRange.set({ start: undefined, end: undefined });\n\t\treturn this;\n\t}\n\n\tfunction getEvents() {\n\t\treturn $_events.map(toEventWithLocalDates);\n\t}\n\n\tfunction getEventById(id) {\n\t\tfor (let event of $_events) {\n\t\t\tif (event.id == id) {\n\t\t\t\treturn toEventWithLocalDates(event);\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tfunction addEvent(event) {\n\t\tupdateEvents(events => events.concat(state.events.parse([event])));\n\t\treturn this;\n\t}\n\n\tfunction updateEvent(event) {\n\t\tupdateEvents(events => {\n\t\t\tfor (let e of events) {\n\t\t\t\tif (e.id == event.id) {\n\t\t\t\t\tassign(e, state.events.parse([event])[0]);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn events;\n\t\t});\n\n\t\treturn this;\n\t}\n\n\tfunction removeEventById(id) {\n\t\tupdateEvents(events => events.filter(event => event.id != id));\n\t\treturn this;\n\t}\n\n\tfunction getView() {\n\t\treturn toViewWithLocalDates(state._view.get());\n\t}\n\n\tfunction unselect() {\n\t\tif ($_interaction.action) {\n\t\t\t$_interaction.action.unselect();\n\t\t}\n\n\t\treturn this;\n\t}\n\n\tfunction dateFromPoint(x, y) {\n\t\tfor (let el of document.elementsFromPoint(x, y)) {\n\t\t\tif (hasFn(el)) {\n\t\t\t\tlet date = runFn(el, y);\n\t\t\t\treturn date ? toLocalDate(date) : null;\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tfunction destroy() {\n\t\tdestroy_component(component, true);\n\t}\n\n\tfunction updateEvents(func) {\n\t\tif ($eventSources.length) {\n\t\t\tset_store_value(_events, $_events = func($_events), $_events);\n\t\t} else {\n\t\t\tset_store_value(events, $events = func($events), $events);\n\t\t}\n\t}\n\n\tfunction handleClick(jsEvent) {\n\t\tif ($_ignoreClick) {\n\t\t\tignore(jsEvent);\n\t\t\tset_store_value(_ignoreClick, $_ignoreClick = false, $_ignoreClick);\n\t\t}\n\t}\n\n\tbeforeUpdate(() => {\n\t\tflushDebounce($_queue);\n\t});\n\n\t$$self.$$set = $$props => {\n\t\tif ('plugins' in $$props) $$invalidate(17, plugins = $$props.plugins);\n\t\tif ('options' in $$props) $$invalidate(18, options = $$props.options);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*options*/ 262144) {\n\t\t\t// Reactively update options that did change\n\t\t\tfor (let [name, value] of diff(options)) {\n\t\t\t\tsetOption(name, value);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\t$theme,\n\t\t$_viewClass,\n\t\t$_iClass,\n\t\t$height,\n\t\t$_viewComponent,\n\t\t_viewComponent,\n\t\t_viewClass,\n\t\t_ignoreClick,\n\t\t_interaction,\n\t\t_iClass,\n\t\t_events,\n\t\t_queue,\n\t\tevents,\n\t\teventSources,\n\t\theight,\n\t\ttheme,\n\t\thandleClick,\n\t\tplugins,\n\t\toptions,\n\t\tsetOption,\n\t\tgetOption,\n\t\trefetchEvents,\n\t\tgetEvents,\n\t\tgetEventById,\n\t\taddEvent,\n\t\tupdateEvent,\n\t\tremoveEventById,\n\t\tgetView,\n\t\tunselect,\n\t\tdateFromPoint,\n\t\tdestroy\n\t];\n}\n\nclass Calendar extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance,\n\t\t\tcreate_fragment,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tplugins: 17,\n\t\t\t\toptions: 18,\n\t\t\t\tsetOption: 19,\n\t\t\t\tgetOption: 20,\n\t\t\t\trefetchEvents: 21,\n\t\t\t\tgetEvents: 22,\n\t\t\t\tgetEventById: 23,\n\t\t\t\taddEvent: 24,\n\t\t\t\tupdateEvent: 25,\n\t\t\t\tremoveEventById: 26,\n\t\t\t\tgetView: 27,\n\t\t\t\tunselect: 28,\n\t\t\t\tdateFromPoint: 29,\n\t\t\t\tdestroy: 30\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n\n\tget setOption() {\n\t\treturn this.$$.ctx[19];\n\t}\n\n\tget getOption() {\n\t\treturn this.$$.ctx[20];\n\t}\n\n\tget refetchEvents() {\n\t\treturn this.$$.ctx[21];\n\t}\n\n\tget getEvents() {\n\t\treturn this.$$.ctx[22];\n\t}\n\n\tget getEventById() {\n\t\treturn this.$$.ctx[23];\n\t}\n\n\tget addEvent() {\n\t\treturn this.$$.ctx[24];\n\t}\n\n\tget updateEvent() {\n\t\treturn this.$$.ctx[25];\n\t}\n\n\tget removeEventById() {\n\t\treturn this.$$.ctx[26];\n\t}\n\n\tget getView() {\n\t\treturn this.$$.ctx[27];\n\t}\n\n\tget unselect() {\n\t\treturn this.$$.ctx[28];\n\t}\n\n\tget dateFromPoint() {\n\t\treturn this.$$.ctx[29];\n\t}\n\n\tget destroy() {\n\t\treturn this.$$.ctx[30];\n\t}\n}\n\nexport { Calendar as default };\n","import { SvelteComponent, init, safe_not_equal, element, space, attr, insert, append, noop, detach, destroy_each, component_subscribe, text, set_data, create_slot, listen, is_function, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, run_all, set_store_value, binding_callbacks, construct_svelte_component, create_component, mount_component, action_destroyer, group_outros, destroy_component, check_outros, stop_propagation, update_keyed_each, outro_and_destroy_block, empty, bubble } from 'svelte/internal';\nimport { getContext, onMount, tick, afterUpdate, setContext } from 'svelte';\nimport { derived, writable } from 'svelte/store';\nimport { cloneDate, subtractDay, addDay, hasYScroll, setContent, maybeIgnore, toEventWithLocalDates, toViewWithLocalDates, createEventContent, repositionEvent, height, ancestor, outsideEvent, rect, datesEqual, setMidnight, createDate, debounce, toLocalDate, toISOString, assign, createEventChunk, setFn, eventIntersects, prepareEventChunks, intl } from '@event-calendar/common';\n\nfunction days(state) {\n return derived([state.date, state.firstDay, state.hiddenDays], ([$date, $firstDay, $hiddenDays]) => {\n let days = [];\n let day = cloneDate($date);\n let max = 7;\n // First day of week\n while (day.getUTCDay() !== $firstDay && max) {\n subtractDay(day);\n --max;\n }\n for (let i = 0; i < 7; ++i) {\n if (!$hiddenDays.includes(day.getUTCDay())) {\n days.push(cloneDate(day));\n }\n addDay(day);\n }\n\n return days;\n });\n}\n\nclass State {\n constructor(state) {\n this._days = days(state);\n this._hiddenEvents = writable({});\n this._popupDate = writable(null);\n this._popupChunks = writable([]);\n }\n}\n\n/* packages/day-grid/src/Header.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context$4(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[8] = list[i];\n\treturn child_ctx;\n}\n\n// (10:8) {#each $_days as day}\nfunction create_each_block$4(ctx) {\n\tlet div;\n\tlet t_value = /*$_intlDayHeader*/ ctx[3].format(/*day*/ ctx[8]) + \"\";\n\tlet t;\n\tlet div_class_value;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tt = text(t_value);\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[0].day);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tappend(div, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*$_intlDayHeader, $_days*/ 12 && t_value !== (t_value = /*$_intlDayHeader*/ ctx[3].format(/*day*/ ctx[8]) + \"\")) set_data(t, t_value);\n\n\t\t\tif (dirty & /*$theme*/ 1 && div_class_value !== (div_class_value = /*$theme*/ ctx[0].day)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t}\n\t};\n}\n\nfunction create_fragment$6(ctx) {\n\tlet div2;\n\tlet div0;\n\tlet div0_class_value;\n\tlet t;\n\tlet div1;\n\tlet div1_class_value;\n\tlet div2_class_value;\n\tlet each_value = /*$_days*/ ctx[2];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\teach_blocks[i] = create_each_block$4(get_each_context$4(ctx, each_value, i));\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tdiv2 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tt = space();\n\t\t\tdiv1 = element(\"div\");\n\t\t\tattr(div0, \"class\", div0_class_value = /*$theme*/ ctx[0].days);\n\t\t\tattr(div1, \"class\", div1_class_value = /*$theme*/ ctx[0].hiddenScroll);\n\n\t\t\tattr(div2, \"class\", div2_class_value = \"\" + (/*$theme*/ ctx[0].header + (/*$_scrollable*/ ctx[1]\n\t\t\t? ' ' + /*$theme*/ ctx[0].withScroll\n\t\t\t: '')));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div2, anchor);\n\t\t\tappend(div2, div0);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(div0, null);\n\t\t\t}\n\n\t\t\tappend(div2, t);\n\t\t\tappend(div2, div1);\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (dirty & /*$theme, $_intlDayHeader, $_days*/ 13) {\n\t\t\t\teach_value = /*$_days*/ ctx[2];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context$4(ctx, each_value, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block$4(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\teach_blocks[i].m(div0, null);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (; i < each_blocks.length; i += 1) {\n\t\t\t\t\teach_blocks[i].d(1);\n\t\t\t\t}\n\n\t\t\t\teach_blocks.length = each_value.length;\n\t\t\t}\n\n\t\t\tif (dirty & /*$theme*/ 1 && div0_class_value !== (div0_class_value = /*$theme*/ ctx[0].days)) {\n\t\t\t\tattr(div0, \"class\", div0_class_value);\n\t\t\t}\n\n\t\t\tif (dirty & /*$theme*/ 1 && div1_class_value !== (div1_class_value = /*$theme*/ ctx[0].hiddenScroll)) {\n\t\t\t\tattr(div1, \"class\", div1_class_value);\n\t\t\t}\n\n\t\t\tif (dirty & /*$theme, $_scrollable*/ 3 && div2_class_value !== (div2_class_value = \"\" + (/*$theme*/ ctx[0].header + (/*$_scrollable*/ ctx[1]\n\t\t\t? ' ' + /*$theme*/ ctx[0].withScroll\n\t\t\t: '')))) {\n\t\t\t\tattr(div2, \"class\", div2_class_value);\n\t\t\t}\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div2);\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t}\n\t};\n}\n\nfunction instance$6($$self, $$props, $$invalidate) {\n\tlet $theme;\n\tlet $_scrollable;\n\tlet $_days;\n\tlet $_intlDayHeader;\n\tlet { theme, _intlDayHeader, _scrollable } = getContext('state');\n\tcomponent_subscribe($$self, theme, value => $$invalidate(0, $theme = value));\n\tcomponent_subscribe($$self, _intlDayHeader, value => $$invalidate(3, $_intlDayHeader = value));\n\tcomponent_subscribe($$self, _scrollable, value => $$invalidate(1, $_scrollable = value));\n\tlet { _days } = getContext('view-state');\n\tcomponent_subscribe($$self, _days, value => $$invalidate(2, $_days = value));\n\n\treturn [\n\t\t$theme,\n\t\t$_scrollable,\n\t\t$_days,\n\t\t$_intlDayHeader,\n\t\ttheme,\n\t\t_intlDayHeader,\n\t\t_scrollable,\n\t\t_days\n\t];\n}\n\nclass Header extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$6, create_fragment$6, safe_not_equal, {});\n\t}\n}\n\n/* packages/day-grid/src/Body.svelte generated by Svelte v3.55.1 */\n\nfunction create_fragment$5(ctx) {\n\tlet div1;\n\tlet div0;\n\tlet div0_class_value;\n\tlet div1_class_value;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tconst default_slot_template = /*#slots*/ ctx[12].default;\n\tconst default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[11], null);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv1 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\t\t\tif (default_slot) default_slot.c();\n\t\t\tattr(div0, \"class\", div0_class_value = /*$theme*/ ctx[1].content);\n\n\t\t\tattr(div1, \"class\", div1_class_value = \"\" + (/*$theme*/ ctx[1].body + (/*$dayMaxEvents*/ ctx[2] === true\n\t\t\t? ' ' + /*$theme*/ ctx[1].uniform\n\t\t\t: '')));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div1, anchor);\n\t\t\tappend(div1, div0);\n\n\t\t\tif (default_slot) {\n\t\t\t\tdefault_slot.m(div0, null);\n\t\t\t}\n\n\t\t\t/*div1_binding*/ ctx[13](div1);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(window, \"resize\", /*recheckScrollable*/ ctx[9]),\n\t\t\t\t\tlisten(div1, \"scroll\", function () {\n\t\t\t\t\t\tif (is_function(/*$_scroll*/ ctx[3])) /*$_scroll*/ ctx[3].apply(this, arguments);\n\t\t\t\t\t})\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, [dirty]) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (default_slot) {\n\t\t\t\tif (default_slot.p && (!current || dirty & /*$$scope*/ 2048)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\tdefault_slot,\n\t\t\t\t\t\tdefault_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[11],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[11])\n\t\t\t\t\t\t: get_slot_changes(default_slot_template, /*$$scope*/ ctx[11], dirty, null),\n\t\t\t\t\t\tnull\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*$theme*/ 2 && div0_class_value !== (div0_class_value = /*$theme*/ ctx[1].content)) {\n\t\t\t\tattr(div0, \"class\", div0_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*$theme, $dayMaxEvents*/ 6 && div1_class_value !== (div1_class_value = \"\" + (/*$theme*/ ctx[1].body + (/*$dayMaxEvents*/ ctx[2] === true\n\t\t\t? ' ' + /*$theme*/ ctx[1].uniform\n\t\t\t: '')))) {\n\t\t\t\tattr(div1, \"class\", div1_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(default_slot, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(default_slot, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div1);\n\t\t\tif (default_slot) default_slot.d(detaching);\n\t\t\t/*div1_binding*/ ctx[13](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction instance$5($$self, $$props, $$invalidate) {\n\tlet $_scrollable;\n\tlet $_events;\n\tlet $theme;\n\tlet $dayMaxEvents;\n\tlet $_scroll;\n\tlet { $$slots: slots = {}, $$scope } = $$props;\n\tlet { dayMaxEvents, _events, _scrollable, _scroll, theme } = getContext('state');\n\tcomponent_subscribe($$self, dayMaxEvents, value => $$invalidate(2, $dayMaxEvents = value));\n\tcomponent_subscribe($$self, _events, value => $$invalidate(10, $_events = value));\n\tcomponent_subscribe($$self, _scrollable, value => $$invalidate(14, $_scrollable = value));\n\tcomponent_subscribe($$self, _scroll, value => $$invalidate(3, $_scroll = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(1, $theme = value));\n\tlet el;\n\n\tfunction recheckScrollable() {\n\t\tset_store_value(_scrollable, $_scrollable = hasYScroll(el), $_scrollable);\n\t}\n\n\tfunction div1_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tel = $$value;\n\t\t\t$$invalidate(0, el);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('$$scope' in $$props) $$invalidate(11, $$scope = $$props.$$scope);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*el, $_events*/ 1025) {\n\t\t\tif (el && $_events) {\n\t\t\t\tsetTimeout(recheckScrollable);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\tel,\n\t\t$theme,\n\t\t$dayMaxEvents,\n\t\t$_scroll,\n\t\tdayMaxEvents,\n\t\t_events,\n\t\t_scrollable,\n\t\t_scroll,\n\t\ttheme,\n\t\trecheckScrollable,\n\t\t$_events,\n\t\t$$scope,\n\t\tslots,\n\t\tdiv1_binding\n\t];\n}\n\nclass Body extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$5, create_fragment$5, safe_not_equal, {});\n\t}\n}\n\n/* packages/day-grid/src/Event.svelte generated by Svelte v3.55.1 */\n\nfunction create_fragment$4(ctx) {\n\tlet div1;\n\tlet div0;\n\tlet div0_class_value;\n\tlet setContent_action;\n\tlet t;\n\tlet switch_instance;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tvar switch_value = /*$_interaction*/ ctx[7].resizer;\n\n\tfunction switch_props(ctx) {\n\t\treturn { props: { event: /*event*/ ctx[0] } };\n\t}\n\n\tif (switch_value) {\n\t\tswitch_instance = construct_svelte_component(switch_value, switch_props(ctx));\n\t\tswitch_instance.$on(\"pointerdown\", /*createDragHandler*/ ctx[30](true));\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tdiv1 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\t\t\tt = space();\n\t\t\tif (switch_instance) create_component(switch_instance.$$.fragment);\n\t\t\tattr(div0, \"class\", div0_class_value = /*$theme*/ ctx[1].eventBody);\n\t\t\tattr(div1, \"class\", /*classes*/ ctx[3]);\n\t\t\tattr(div1, \"style\", /*style*/ ctx[4]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div1, anchor);\n\t\t\tappend(div1, div0);\n\t\t\tappend(div1, t);\n\t\t\tif (switch_instance) mount_component(switch_instance, div1, null);\n\t\t\t/*div1_binding*/ ctx[45](div1);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\taction_destroyer(setContent_action = setContent.call(null, div0, /*content*/ ctx[5])),\n\t\t\t\t\tlisten(div1, \"click\", function () {\n\t\t\t\t\t\tif (is_function(maybeIgnore(/*createHandler*/ ctx[29](/*$eventClick*/ ctx[8], /*display*/ ctx[6])))) maybeIgnore(/*createHandler*/ ctx[29](/*$eventClick*/ ctx[8], /*display*/ ctx[6])).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div1, \"mouseenter\", function () {\n\t\t\t\t\t\tif (is_function(/*createHandler*/ ctx[29](/*$eventMouseEnter*/ ctx[9], /*display*/ ctx[6]))) /*createHandler*/ ctx[29](/*$eventMouseEnter*/ ctx[9], /*display*/ ctx[6]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div1, \"mouseleave\", function () {\n\t\t\t\t\t\tif (is_function(/*createHandler*/ ctx[29](/*$eventMouseLeave*/ ctx[10], /*display*/ ctx[6]))) /*createHandler*/ ctx[29](/*$eventMouseLeave*/ ctx[10], /*display*/ ctx[6]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div1, \"pointerdown\", function () {\n\t\t\t\t\t\tif (is_function(/*display*/ ctx[6] === 'auto' && /*$_draggable*/ ctx[11](/*event*/ ctx[0])\n\t\t\t\t\t\t? /*createDragHandler*/ ctx[30]()\n\t\t\t\t\t\t: undefined)) (/*display*/ ctx[6] === 'auto' && /*$_draggable*/ ctx[11](/*event*/ ctx[0])\n\t\t\t\t\t\t? /*createDragHandler*/ ctx[30]()\n\t\t\t\t\t\t: undefined).apply(this, arguments);\n\t\t\t\t\t})\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 2 && div0_class_value !== (div0_class_value = /*$theme*/ ctx[1].eventBody)) {\n\t\t\t\tattr(div0, \"class\", div0_class_value);\n\t\t\t}\n\n\t\t\tif (setContent_action && is_function(setContent_action.update) && dirty[0] & /*content*/ 32) setContent_action.update.call(null, /*content*/ ctx[5]);\n\t\t\tconst switch_instance_changes = {};\n\t\t\tif (dirty[0] & /*event*/ 1) switch_instance_changes.event = /*event*/ ctx[0];\n\n\t\t\tif (switch_value !== (switch_value = /*$_interaction*/ ctx[7].resizer)) {\n\t\t\t\tif (switch_instance) {\n\t\t\t\t\tgroup_outros();\n\t\t\t\t\tconst old_component = switch_instance;\n\n\t\t\t\t\ttransition_out(old_component.$$.fragment, 1, 0, () => {\n\t\t\t\t\t\tdestroy_component(old_component, 1);\n\t\t\t\t\t});\n\n\t\t\t\t\tcheck_outros();\n\t\t\t\t}\n\n\t\t\t\tif (switch_value) {\n\t\t\t\t\tswitch_instance = construct_svelte_component(switch_value, switch_props(ctx));\n\t\t\t\t\tswitch_instance.$on(\"pointerdown\", /*createDragHandler*/ ctx[30](true));\n\t\t\t\t\tcreate_component(switch_instance.$$.fragment);\n\t\t\t\t\ttransition_in(switch_instance.$$.fragment, 1);\n\t\t\t\t\tmount_component(switch_instance, div1, null);\n\t\t\t\t} else {\n\t\t\t\t\tswitch_instance = null;\n\t\t\t\t}\n\t\t\t} else if (switch_value) {\n\t\t\t\tswitch_instance.$set(switch_instance_changes);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*classes*/ 8) {\n\t\t\t\tattr(div1, \"class\", /*classes*/ ctx[3]);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*style*/ 16) {\n\t\t\t\tattr(div1, \"style\", /*style*/ ctx[4]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\tif (switch_instance) transition_in(switch_instance.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\tif (switch_instance) transition_out(switch_instance.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div1);\n\t\t\tif (switch_instance) destroy_component(switch_instance);\n\t\t\t/*div1_binding*/ ctx[45](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction instance$4($$self, $$props, $$invalidate) {\n\tlet $_hiddenEvents;\n\tlet $dayMaxEvents;\n\tlet $_interaction;\n\tlet $_view;\n\tlet $eventDidMount;\n\tlet $_intlEventTime;\n\tlet $theme;\n\tlet $eventContent;\n\tlet $displayEventEnd;\n\tlet $_classes;\n\tlet $eventColor;\n\tlet $eventBackgroundColor;\n\tlet $_resBgColor;\n\tlet $eventClick;\n\tlet $eventMouseEnter;\n\tlet $eventMouseLeave;\n\tlet $_draggable;\n\tlet { chunk } = $$props;\n\tlet { longChunks = {} } = $$props;\n\tlet { inPopup = false } = $$props;\n\tlet { dayMaxEvents, displayEventEnd, eventBackgroundColor, eventClick, eventColor, eventContent, eventDidMount, eventMouseEnter, eventMouseLeave, theme, _view, _intlEventTime, _interaction, _classes, _draggable, _resBgColor } = getContext('state');\n\tcomponent_subscribe($$self, dayMaxEvents, value => $$invalidate(48, $dayMaxEvents = value));\n\tcomponent_subscribe($$self, displayEventEnd, value => $$invalidate(40, $displayEventEnd = value));\n\tcomponent_subscribe($$self, eventBackgroundColor, value => $$invalidate(43, $eventBackgroundColor = value));\n\tcomponent_subscribe($$self, eventClick, value => $$invalidate(8, $eventClick = value));\n\tcomponent_subscribe($$self, eventColor, value => $$invalidate(42, $eventColor = value));\n\tcomponent_subscribe($$self, eventContent, value => $$invalidate(39, $eventContent = value));\n\tcomponent_subscribe($$self, eventDidMount, value => $$invalidate(49, $eventDidMount = value));\n\tcomponent_subscribe($$self, eventMouseEnter, value => $$invalidate(9, $eventMouseEnter = value));\n\tcomponent_subscribe($$self, eventMouseLeave, value => $$invalidate(10, $eventMouseLeave = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(1, $theme = value));\n\tcomponent_subscribe($$self, _view, value => $$invalidate(37, $_view = value));\n\tcomponent_subscribe($$self, _intlEventTime, value => $$invalidate(38, $_intlEventTime = value));\n\tcomponent_subscribe($$self, _interaction, value => $$invalidate(7, $_interaction = value));\n\tcomponent_subscribe($$self, _classes, value => $$invalidate(41, $_classes = value));\n\tcomponent_subscribe($$self, _draggable, value => $$invalidate(11, $_draggable = value));\n\tcomponent_subscribe($$self, _resBgColor, value => $$invalidate(44, $_resBgColor = value));\n\tlet { _hiddenEvents } = getContext('view-state');\n\tcomponent_subscribe($$self, _hiddenEvents, value => $$invalidate(47, $_hiddenEvents = value));\n\tlet el;\n\tlet event;\n\tlet classes;\n\tlet style;\n\tlet content;\n\tlet timeText;\n\tlet margin = 1;\n\tlet hidden = false;\n\tlet display;\n\n\tonMount(() => {\n\t\tif (is_function($eventDidMount)) {\n\t\t\t$eventDidMount({\n\t\t\t\tevent: toEventWithLocalDates(event),\n\t\t\t\ttimeText,\n\t\t\t\tel,\n\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t});\n\t\t}\n\t});\n\n\tfunction createHandler(fn, display) {\n\t\treturn display !== 'preview' && is_function(fn)\n\t\t? jsEvent => fn({\n\t\t\t\tevent: toEventWithLocalDates(event),\n\t\t\t\tel,\n\t\t\t\tjsEvent,\n\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t})\n\t\t: undefined;\n\t}\n\n\tfunction createDragHandler(resize) {\n\t\treturn jsEvent => $_interaction.action.dragDayGrid(event, el, jsEvent, inPopup, resize);\n\t}\n\n\tfunction reposition() {\n\t\tif (!el || display === 'preview' || inPopup) {\n\t\t\treturn;\n\t\t}\n\n\t\t$$invalidate(35, margin = repositionEvent(chunk, longChunks, height(el)));\n\n\t\tif ($dayMaxEvents === true) {\n\t\t\thide();\n\t\t} else {\n\t\t\t$$invalidate(36, hidden = false);\n\t\t}\n\t}\n\n\tfunction hide() {\n\t\tlet dayEl = ancestor(el, 2);\n\t\tlet h = height(dayEl) - height(dayEl.firstElementChild) - footHeight(dayEl);\n\t\t$$invalidate(36, hidden = chunk.bottom > h);\n\t\tlet update = false;\n\n\t\t// Hide or show the event throughout all days\n\t\tfor (let date of chunk.dates) {\n\t\t\tlet hiddenEvents = $_hiddenEvents[date.getTime()];\n\n\t\t\tif (hiddenEvents) {\n\t\t\t\tlet size = hiddenEvents.size;\n\n\t\t\t\tif (hidden) {\n\t\t\t\t\thiddenEvents.add(chunk.event);\n\t\t\t\t} else {\n\t\t\t\t\thiddenEvents.delete(chunk.event);\n\t\t\t\t}\n\n\t\t\t\tif (size !== hiddenEvents.size) {\n\t\t\t\t\tupdate = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (update) {\n\t\t\t_hiddenEvents.set($_hiddenEvents);\n\t\t}\n\t}\n\n\tfunction footHeight(dayEl) {\n\t\tlet h = 0;\n\n\t\tfor (let i = 0; i < chunk.days; ++i) {\n\t\t\th = Math.max(h, height(dayEl.lastElementChild));\n\t\t\tdayEl = dayEl.nextElementSibling;\n\n\t\t\tif (!dayEl) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn h;\n\t}\n\n\tfunction div1_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tel = $$value;\n\t\t\t$$invalidate(2, el);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('chunk' in $$props) $$invalidate(31, chunk = $$props.chunk);\n\t\tif ('longChunks' in $$props) $$invalidate(32, longChunks = $$props.longChunks);\n\t\tif ('inPopup' in $$props) $$invalidate(33, inPopup = $$props.inPopup);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[1] & /*chunk*/ 1) {\n\t\t\t$$invalidate(0, event = chunk.event);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*event, style, $theme*/ 19 | $$self.$$.dirty[1] & /*$_resBgColor, $eventBackgroundColor, $eventColor, chunk, margin, hidden, $_classes*/ 15409) {\n\t\t\t{\n\t\t\t\t$$invalidate(6, display = event.display);\n\n\t\t\t\t// Class & Style\n\t\t\t\tlet bgColor = event.backgroundColor || $_resBgColor(event) || $eventBackgroundColor || $eventColor;\n\n\t\t\t\t$$invalidate(4, style = `width:calc(${chunk.days * 100}% + ${(chunk.days - 1) * 7}px);` + `margin-top:${margin}px;`);\n\n\t\t\t\tif (bgColor) {\n\t\t\t\t\t$$invalidate(4, style += `background-color:${bgColor};`);\n\t\t\t\t}\n\n\t\t\t\tif (hidden) {\n\t\t\t\t\t$$invalidate(4, style += 'visibility:hidden;');\n\t\t\t\t}\n\n\t\t\t\t$$invalidate(3, classes = $_classes($theme.event, event));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$theme*/ 2 | $$self.$$.dirty[1] & /*chunk, $displayEventEnd, $eventContent, $_intlEventTime, $_view*/ 961) {\n\t\t\t// Content\n\t\t\t$$invalidate(5, [timeText, content] = createEventContent(chunk, $displayEventEnd, $eventContent, $theme, $_intlEventTime, $_view), content);\n\t\t}\n\t};\n\n\treturn [\n\t\tevent,\n\t\t$theme,\n\t\tel,\n\t\tclasses,\n\t\tstyle,\n\t\tcontent,\n\t\tdisplay,\n\t\t$_interaction,\n\t\t$eventClick,\n\t\t$eventMouseEnter,\n\t\t$eventMouseLeave,\n\t\t$_draggable,\n\t\tdayMaxEvents,\n\t\tdisplayEventEnd,\n\t\teventBackgroundColor,\n\t\teventClick,\n\t\teventColor,\n\t\teventContent,\n\t\teventDidMount,\n\t\teventMouseEnter,\n\t\teventMouseLeave,\n\t\ttheme,\n\t\t_view,\n\t\t_intlEventTime,\n\t\t_interaction,\n\t\t_classes,\n\t\t_draggable,\n\t\t_resBgColor,\n\t\t_hiddenEvents,\n\t\tcreateHandler,\n\t\tcreateDragHandler,\n\t\tchunk,\n\t\tlongChunks,\n\t\tinPopup,\n\t\treposition,\n\t\tmargin,\n\t\thidden,\n\t\t$_view,\n\t\t$_intlEventTime,\n\t\t$eventContent,\n\t\t$displayEventEnd,\n\t\t$_classes,\n\t\t$eventColor,\n\t\t$eventBackgroundColor,\n\t\t$_resBgColor,\n\t\tdiv1_binding\n\t];\n}\n\nclass Event extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$4,\n\t\t\tcreate_fragment$4,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tchunk: 31,\n\t\t\t\tlongChunks: 32,\n\t\t\t\tinPopup: 33,\n\t\t\t\treposition: 34\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n\n\tget reposition() {\n\t\treturn this.$$.ctx[34];\n\t}\n}\n\n/* packages/day-grid/src/Popup.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context$3(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[18] = list[i];\n\treturn child_ctx;\n}\n\n// (84:8) {#each $_popupChunks as chunk (chunk.event)}\nfunction create_each_block$3(key_1, ctx) {\n\tlet first;\n\tlet event;\n\tlet current;\n\n\tevent = new Event({\n\t\t\tprops: { chunk: /*chunk*/ ctx[18], inPopup: true }\n\t\t});\n\n\treturn {\n\t\tkey: key_1,\n\t\tfirst: null,\n\t\tc() {\n\t\t\tfirst = empty();\n\t\t\tcreate_component(event.$$.fragment);\n\t\t\tthis.first = first;\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, first, anchor);\n\t\t\tmount_component(event, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\t\t\tconst event_changes = {};\n\t\t\tif (dirty & /*$_popupChunks*/ 1) event_changes.chunk = /*chunk*/ ctx[18];\n\t\t\tevent.$set(event_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(event.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(event.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(first);\n\t\t\tdestroy_component(event, detaching);\n\t\t}\n\t};\n}\n\nfunction create_fragment$3(ctx) {\n\tlet div2;\n\tlet div0;\n\tlet t0_value = /*$_intlDayPopover*/ ctx[5].format(/*$_popupDate*/ ctx[3]) + \"\";\n\tlet t0;\n\tlet t1;\n\tlet a;\n\tlet div0_class_value;\n\tlet t3;\n\tlet div1;\n\tlet each_blocks = [];\n\tlet each_1_lookup = new Map();\n\tlet div1_class_value;\n\tlet div2_class_value;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tlet each_value = /*$_popupChunks*/ ctx[0];\n\tconst get_key = ctx => /*chunk*/ ctx[18].event;\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\tlet child_ctx = get_each_context$3(ctx, each_value, i);\n\t\tlet key = get_key(child_ctx);\n\t\teach_1_lookup.set(key, each_blocks[i] = create_each_block$3(key, child_ctx));\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tdiv2 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\t\t\tt0 = text(t0_value);\n\t\t\tt1 = space();\n\t\t\ta = element(\"a\");\n\t\t\ta.textContent = \"×\";\n\t\t\tt3 = space();\n\t\t\tdiv1 = element(\"div\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tattr(div0, \"class\", div0_class_value = /*$theme*/ ctx[4].dayHead);\n\t\t\tattr(div1, \"class\", div1_class_value = /*$theme*/ ctx[4].events);\n\t\t\tattr(div2, \"class\", div2_class_value = /*$theme*/ ctx[4].popup);\n\t\t\tattr(div2, \"style\", /*style*/ ctx[2]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div2, anchor);\n\t\t\tappend(div2, div0);\n\t\t\tappend(div0, t0);\n\t\t\tappend(div0, t1);\n\t\t\tappend(div0, a);\n\t\t\tappend(div2, t3);\n\t\t\tappend(div2, div1);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(div1, null);\n\t\t\t}\n\n\t\t\t/*div2_binding*/ ctx[14](div2);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(a, \"click\", stop_propagation(/*close*/ ctx[11])),\n\t\t\t\t\taction_destroyer(outsideEvent.call(null, div2, 'pointerdown')),\n\t\t\t\t\tlisten(div2, \"pointerdown\", stop_propagation(/*pointerdown_handler*/ ctx[13])),\n\t\t\t\t\tlisten(div2, \"pointerdownoutside\", /*handlePointerDownOutside*/ ctx[12])\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif ((!current || dirty & /*$_intlDayPopover, $_popupDate*/ 40) && t0_value !== (t0_value = /*$_intlDayPopover*/ ctx[5].format(/*$_popupDate*/ ctx[3]) + \"\")) set_data(t0, t0_value);\n\n\t\t\tif (!current || dirty & /*$theme*/ 16 && div0_class_value !== (div0_class_value = /*$theme*/ ctx[4].dayHead)) {\n\t\t\t\tattr(div0, \"class\", div0_class_value);\n\t\t\t}\n\n\t\t\tif (dirty & /*$_popupChunks*/ 1) {\n\t\t\t\teach_value = /*$_popupChunks*/ ctx[0];\n\t\t\t\tgroup_outros();\n\t\t\t\teach_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div1, outro_and_destroy_block, create_each_block$3, null, get_each_context$3);\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*$theme*/ 16 && div1_class_value !== (div1_class_value = /*$theme*/ ctx[4].events)) {\n\t\t\t\tattr(div1, \"class\", div1_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*$theme*/ 16 && div2_class_value !== (div2_class_value = /*$theme*/ ctx[4].popup)) {\n\t\t\t\tattr(div2, \"class\", div2_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*style*/ 4) {\n\t\t\t\tattr(div2, \"style\", /*style*/ ctx[2]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div2);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].d();\n\t\t\t}\n\n\t\t\t/*div2_binding*/ ctx[14](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction instance$3($$self, $$props, $$invalidate) {\n\tlet $_ignoreClick;\n\tlet $_popupDate;\n\tlet $_popupChunks;\n\tlet $theme;\n\tlet $_intlDayPopover;\n\tlet { theme, _ignoreClick, _intlDayPopover } = getContext('state');\n\tcomponent_subscribe($$self, theme, value => $$invalidate(4, $theme = value));\n\tcomponent_subscribe($$self, _ignoreClick, value => $$invalidate(15, $_ignoreClick = value));\n\tcomponent_subscribe($$self, _intlDayPopover, value => $$invalidate(5, $_intlDayPopover = value));\n\tlet { _popupDate, _popupChunks } = getContext('view-state');\n\tcomponent_subscribe($$self, _popupDate, value => $$invalidate(3, $_popupDate = value));\n\tcomponent_subscribe($$self, _popupChunks, value => $$invalidate(0, $_popupChunks = value));\n\tlet el;\n\tlet style = '';\n\n\tfunction position() {\n\t\tlet dayEl = ancestor(el, 1);\n\t\tlet bodyEl = ancestor(dayEl, 3);\n\t\tlet popupRect = rect(el);\n\t\tlet dayRect = rect(dayEl);\n\t\tlet bodyRect = rect(bodyEl);\n\n\t\tif (!dayEl.previousElementSibling) {\n\t\t\t$$invalidate(2, style = 'left:0;');\n\t\t} else if (!dayEl.nextElementSibling) {\n\t\t\t$$invalidate(2, style = 'right:0;');\n\t\t} else {\n\t\t\tlet left = (dayEl.offsetWidth - popupRect.width) / 2;\n\t\t\t$$invalidate(2, style = `left:${left}px;`);\n\t\t}\n\n\t\tlet top;\n\n\t\tif (popupRect.height >= bodyRect.height) {\n\t\t\ttop = bodyRect.top - dayRect.top;\n\t\t\tlet bottom = dayRect.bottom - bodyRect.bottom;\n\t\t\t$$invalidate(2, style += `bottom:${bottom}px;`);\n\t\t} else {\n\t\t\ttop = (dayRect.height - popupRect.height) / 2;\n\n\t\t\tif (dayRect.top + top < bodyRect.top) {\n\t\t\t\ttop = bodyRect.top - dayRect.top;\n\t\t\t} else if (dayRect.top + top + popupRect.height > bodyRect.bottom) {\n\t\t\t\ttop = bodyRect.bottom - dayRect.top - popupRect.height;\n\t\t\t}\n\t\t}\n\n\t\t$$invalidate(2, style += `top:${top}px;`);\n\t}\n\n\tfunction reposition() {\n\t\t// Skip the first call (el is not defined at this time)\n\t\tif (el) {\n\t\t\t$$invalidate(2, style = '');\n\n\t\t\t// Let chunks to update/mount then position the popup\n\t\t\ttick().then(() => {\n\t\t\t\tif ($_popupChunks.length) {\n\t\t\t\t\tposition();\n\t\t\t\t} else {\n\t\t\t\t\tclose();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\n\tfunction close(e) {\n\t\tset_store_value(_popupDate, $_popupDate = null, $_popupDate);\n\t}\n\n\tfunction handlePointerDownOutside(e) {\n\t\tclose();\n\t\tset_store_value(_ignoreClick, $_ignoreClick = true, $_ignoreClick);\n\t}\n\n\tfunction pointerdown_handler(event) {\n\t\tbubble.call(this, $$self, event);\n\t}\n\n\tfunction div2_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tel = $$value;\n\t\t\t$$invalidate(1, el);\n\t\t});\n\t}\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*$_popupChunks*/ 1) {\n\t\t\tif ($_popupChunks) {\n\t\t\t\t// Fire reposition only on popup chunks change\n\t\t\t\treposition();\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\t$_popupChunks,\n\t\tel,\n\t\tstyle,\n\t\t$_popupDate,\n\t\t$theme,\n\t\t$_intlDayPopover,\n\t\ttheme,\n\t\t_ignoreClick,\n\t\t_intlDayPopover,\n\t\t_popupDate,\n\t\t_popupChunks,\n\t\tclose,\n\t\thandlePointerDownOutside,\n\t\tpointerdown_handler,\n\t\tdiv2_binding\n\t];\n}\n\nclass Popup extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$3, create_fragment$3, safe_not_equal, {});\n\t}\n}\n\n/* packages/day-grid/src/Day.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context$2(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[48] = list[i];\n\tchild_ctx[49] = list;\n\tchild_ctx[50] = i;\n\treturn child_ctx;\n}\n\n// (141:4) {#if iChunks[1] && datesEqual(iChunks[1].date, date)}\nfunction create_if_block_3(ctx) {\n\tlet div;\n\tlet event;\n\tlet div_class_value;\n\tlet current;\n\tevent = new Event({ props: { chunk: /*iChunks*/ ctx[2][1] } });\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcreate_component(event.$$.fragment);\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[12].events);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tmount_component(event, div, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst event_changes = {};\n\t\t\tif (dirty[0] & /*iChunks*/ 4) event_changes.chunk = /*iChunks*/ ctx[2][1];\n\t\t\tevent.$set(event_changes);\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 4096 && div_class_value !== (div_class_value = /*$theme*/ ctx[12].events)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(event.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(event.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_component(event);\n\t\t}\n\t};\n}\n\n// (147:4) {#if iChunks[0] && datesEqual(iChunks[0].date, date)}\nfunction create_if_block_2(ctx) {\n\tlet div;\n\tlet event;\n\tlet div_class_value;\n\tlet current;\n\tevent = new Event({ props: { chunk: /*iChunks*/ ctx[2][0] } });\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcreate_component(event.$$.fragment);\n\t\t\tattr(div, \"class\", div_class_value = \"\" + (/*$theme*/ ctx[12].events + \" \" + /*$theme*/ ctx[12].preview));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tmount_component(event, div, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst event_changes = {};\n\t\t\tif (dirty[0] & /*iChunks*/ 4) event_changes.chunk = /*iChunks*/ ctx[2][0];\n\t\t\tevent.$set(event_changes);\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 4096 && div_class_value !== (div_class_value = \"\" + (/*$theme*/ ctx[12].events + \" \" + /*$theme*/ ctx[12].preview))) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(event.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(event.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_component(event);\n\t\t}\n\t};\n}\n\n// (153:8) {#each dayChunks as chunk, i (chunk.event)}\nfunction create_each_block$2(key_1, ctx) {\n\tlet first;\n\tlet event;\n\tlet i = /*i*/ ctx[50];\n\tlet current;\n\tconst assign_event = () => /*event_binding*/ ctx[39](event, i);\n\tconst unassign_event = () => /*event_binding*/ ctx[39](null, i);\n\n\tlet event_props = {\n\t\tchunk: /*chunk*/ ctx[48],\n\t\tlongChunks: /*longChunks*/ ctx[1]\n\t};\n\n\tevent = new Event({ props: event_props });\n\tassign_event();\n\n\treturn {\n\t\tkey: key_1,\n\t\tfirst: null,\n\t\tc() {\n\t\t\tfirst = empty();\n\t\t\tcreate_component(event.$$.fragment);\n\t\t\tthis.first = first;\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, first, anchor);\n\t\t\tmount_component(event, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (i !== /*i*/ ctx[50]) {\n\t\t\t\tunassign_event();\n\t\t\t\ti = /*i*/ ctx[50];\n\t\t\t\tassign_event();\n\t\t\t}\n\n\t\t\tconst event_changes = {};\n\t\t\tif (dirty[0] & /*dayChunks*/ 16) event_changes.chunk = /*chunk*/ ctx[48];\n\t\t\tif (dirty[0] & /*longChunks*/ 2) event_changes.longChunks = /*longChunks*/ ctx[1];\n\t\t\tevent.$set(event_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(event.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(event.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(first);\n\t\t\tunassign_event();\n\t\t\tdestroy_component(event, detaching);\n\t\t}\n\t};\n}\n\n// (157:4) {#if showPopup}\nfunction create_if_block_1(ctx) {\n\tlet popup;\n\tlet current;\n\tpopup = new Popup({});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(popup.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(popup, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(popup.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(popup.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(popup, detaching);\n\t\t}\n\t};\n}\n\n// (161:8) {#if hiddenEvents.size}\nfunction create_if_block(ctx) {\n\tlet a;\n\tlet setContent_action;\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tc() {\n\t\t\ta = element(\"a\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, a, anchor);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(a, \"click\", stop_propagation(/*showMore*/ ctx[29])),\n\t\t\t\t\tlisten(a, \"pointerdown\", stop_propagation(/*pointerdown_handler*/ ctx[38])),\n\t\t\t\t\taction_destroyer(setContent_action = setContent.call(null, a, /*moreLink*/ ctx[6]))\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (setContent_action && is_function(setContent_action.update) && dirty[0] & /*moreLink*/ 64) setContent_action.update.call(null, /*moreLink*/ ctx[6]);\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(a);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction create_fragment$2(ctx) {\n\tlet div3;\n\tlet div0;\n\tlet t0_value = /*date*/ ctx[0].getUTCDate() + \"\";\n\tlet t0;\n\tlet div0_class_value;\n\tlet t1;\n\tlet show_if_1 = /*iChunks*/ ctx[2][1] && datesEqual(/*iChunks*/ ctx[2][1].date, /*date*/ ctx[0]);\n\tlet t2;\n\tlet show_if = /*iChunks*/ ctx[2][0] && datesEqual(/*iChunks*/ ctx[2][0].date, /*date*/ ctx[0]);\n\tlet t3;\n\tlet div1;\n\tlet each_blocks = [];\n\tlet each_1_lookup = new Map();\n\tlet div1_class_value;\n\tlet t4;\n\tlet t5;\n\tlet div2;\n\tlet div2_class_value;\n\tlet div3_class_value;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tlet if_block0 = show_if_1 && create_if_block_3(ctx);\n\tlet if_block1 = show_if && create_if_block_2(ctx);\n\tlet each_value = /*dayChunks*/ ctx[4];\n\tconst get_key = ctx => /*chunk*/ ctx[48].event;\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\tlet child_ctx = get_each_context$2(ctx, each_value, i);\n\t\tlet key = get_key(child_ctx);\n\t\teach_1_lookup.set(key, each_blocks[i] = create_each_block$2(key, child_ctx));\n\t}\n\n\tlet if_block2 = /*showPopup*/ ctx[7] && create_if_block_1();\n\tlet if_block3 = /*hiddenEvents*/ ctx[5].size && create_if_block(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv3 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\t\t\tt0 = text(t0_value);\n\t\t\tt1 = space();\n\t\t\tif (if_block0) if_block0.c();\n\t\t\tt2 = space();\n\t\t\tif (if_block1) if_block1.c();\n\t\t\tt3 = space();\n\t\t\tdiv1 = element(\"div\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tt4 = space();\n\t\t\tif (if_block2) if_block2.c();\n\t\t\tt5 = space();\n\t\t\tdiv2 = element(\"div\");\n\t\t\tif (if_block3) if_block3.c();\n\t\t\tattr(div0, \"class\", div0_class_value = /*$theme*/ ctx[12].dayHead);\n\t\t\tattr(div1, \"class\", div1_class_value = /*$theme*/ ctx[12].events);\n\t\t\tattr(div2, \"class\", div2_class_value = /*$theme*/ ctx[12].dayFoot);\n\n\t\t\tattr(div3, \"class\", div3_class_value = \"\" + (/*$theme*/ ctx[12].day + (/*isToday*/ ctx[8] ? ' ' + /*$theme*/ ctx[12].today : '') + (/*otherMonth*/ ctx[9]\n\t\t\t? ' ' + /*$theme*/ ctx[12].otherMonth\n\t\t\t: '') + (/*highlight*/ ctx[10]\n\t\t\t? ' ' + /*$theme*/ ctx[12].highlight\n\t\t\t: '')));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div3, anchor);\n\t\t\tappend(div3, div0);\n\t\t\tappend(div0, t0);\n\t\t\tappend(div3, t1);\n\t\t\tif (if_block0) if_block0.m(div3, null);\n\t\t\tappend(div3, t2);\n\t\t\tif (if_block1) if_block1.m(div3, null);\n\t\t\tappend(div3, t3);\n\t\t\tappend(div3, div1);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(div1, null);\n\t\t\t}\n\n\t\t\tappend(div3, t4);\n\t\t\tif (if_block2) if_block2.m(div3, null);\n\t\t\tappend(div3, t5);\n\t\t\tappend(div3, div2);\n\t\t\tif (if_block3) if_block3.m(div2, null);\n\t\t\t/*div3_binding*/ ctx[40](div3);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(window, \"resize\", /*reposition*/ ctx[31]),\n\t\t\t\t\tlisten(div3, \"click\", function () {\n\t\t\t\t\t\tif (is_function(maybeIgnore(/*createClickHandler*/ ctx[27](/*$dateClick*/ ctx[13])))) maybeIgnore(/*createClickHandler*/ ctx[27](/*$dateClick*/ ctx[13])).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div3, \"pointerenter\", function () {\n\t\t\t\t\t\tif (is_function(/*createPointerEnterHandler*/ ctx[28](/*$_interaction*/ ctx[14]))) /*createPointerEnterHandler*/ ctx[28](/*$_interaction*/ ctx[14]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div3, \"pointerleave\", function () {\n\t\t\t\t\t\tif (is_function(createPointerLeaveHandler(/*$_interaction*/ ctx[14]))) createPointerLeaveHandler(/*$_interaction*/ ctx[14]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div3, \"pointerdown\", function () {\n\t\t\t\t\t\tif (is_function(/*createPointerDownHandler*/ ctx[30](/*$_interaction*/ ctx[14], /*$selectable*/ ctx[15]))) /*createPointerDownHandler*/ ctx[30](/*$_interaction*/ ctx[14], /*$selectable*/ ctx[15]).apply(this, arguments);\n\t\t\t\t\t})\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\t\t\tif ((!current || dirty[0] & /*date*/ 1) && t0_value !== (t0_value = /*date*/ ctx[0].getUTCDate() + \"\")) set_data(t0, t0_value);\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 4096 && div0_class_value !== (div0_class_value = /*$theme*/ ctx[12].dayHead)) {\n\t\t\t\tattr(div0, \"class\", div0_class_value);\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*iChunks, date*/ 5) show_if_1 = /*iChunks*/ ctx[2][1] && datesEqual(/*iChunks*/ ctx[2][1].date, /*date*/ ctx[0]);\n\n\t\t\tif (show_if_1) {\n\t\t\t\tif (if_block0) {\n\t\t\t\t\tif_block0.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*iChunks, date*/ 5) {\n\t\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block0 = create_if_block_3(ctx);\n\t\t\t\t\tif_block0.c();\n\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\tif_block0.m(div3, t2);\n\t\t\t\t}\n\t\t\t} else if (if_block0) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block0, 1, 1, () => {\n\t\t\t\t\tif_block0 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*iChunks, date*/ 5) show_if = /*iChunks*/ ctx[2][0] && datesEqual(/*iChunks*/ ctx[2][0].date, /*date*/ ctx[0]);\n\n\t\t\tif (show_if) {\n\t\t\t\tif (if_block1) {\n\t\t\t\t\tif_block1.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*iChunks, date*/ 5) {\n\t\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block1 = create_if_block_2(ctx);\n\t\t\t\t\tif_block1.c();\n\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\tif_block1.m(div3, t3);\n\t\t\t\t}\n\t\t\t} else if (if_block1) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block1, 1, 1, () => {\n\t\t\t\t\tif_block1 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*dayChunks, longChunks, refs*/ 2066) {\n\t\t\t\teach_value = /*dayChunks*/ ctx[4];\n\t\t\t\tgroup_outros();\n\t\t\t\teach_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div1, outro_and_destroy_block, create_each_block$2, null, get_each_context$2);\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 4096 && div1_class_value !== (div1_class_value = /*$theme*/ ctx[12].events)) {\n\t\t\t\tattr(div1, \"class\", div1_class_value);\n\t\t\t}\n\n\t\t\tif (/*showPopup*/ ctx[7]) {\n\t\t\t\tif (if_block2) {\n\t\t\t\t\tif (dirty[0] & /*showPopup*/ 128) {\n\t\t\t\t\t\ttransition_in(if_block2, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block2 = create_if_block_1();\n\t\t\t\t\tif_block2.c();\n\t\t\t\t\ttransition_in(if_block2, 1);\n\t\t\t\t\tif_block2.m(div3, t5);\n\t\t\t\t}\n\t\t\t} else if (if_block2) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block2, 1, 1, () => {\n\t\t\t\t\tif_block2 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (/*hiddenEvents*/ ctx[5].size) {\n\t\t\t\tif (if_block3) {\n\t\t\t\t\tif_block3.p(ctx, dirty);\n\t\t\t\t} else {\n\t\t\t\t\tif_block3 = create_if_block(ctx);\n\t\t\t\t\tif_block3.c();\n\t\t\t\t\tif_block3.m(div2, null);\n\t\t\t\t}\n\t\t\t} else if (if_block3) {\n\t\t\t\tif_block3.d(1);\n\t\t\t\tif_block3 = null;\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 4096 && div2_class_value !== (div2_class_value = /*$theme*/ ctx[12].dayFoot)) {\n\t\t\t\tattr(div2, \"class\", div2_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme, isToday, otherMonth, highlight*/ 5888 && div3_class_value !== (div3_class_value = \"\" + (/*$theme*/ ctx[12].day + (/*isToday*/ ctx[8] ? ' ' + /*$theme*/ ctx[12].today : '') + (/*otherMonth*/ ctx[9]\n\t\t\t? ' ' + /*$theme*/ ctx[12].otherMonth\n\t\t\t: '') + (/*highlight*/ ctx[10]\n\t\t\t? ' ' + /*$theme*/ ctx[12].highlight\n\t\t\t: '')))) {\n\t\t\t\tattr(div3, \"class\", div3_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block0);\n\t\t\ttransition_in(if_block1);\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\ttransition_in(if_block2);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block0);\n\t\t\ttransition_out(if_block1);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\ttransition_out(if_block2);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div3);\n\t\t\tif (if_block0) if_block0.d();\n\t\t\tif (if_block1) if_block1.d();\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].d();\n\t\t\t}\n\n\t\t\tif (if_block2) if_block2.d();\n\t\t\tif (if_block3) if_block3.d();\n\t\t\t/*div3_binding*/ ctx[40](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction createPointerLeaveHandler(interaction) {\n\treturn interaction.pointer\n\t? interaction.pointer.leave\n\t: undefined;\n}\n\nfunction instance$2($$self, $$props, $$invalidate) {\n\tlet $_hiddenEvents;\n\tlet $_popupChunks;\n\tlet $_popupDate;\n\tlet $_view;\n\tlet $moreLinkContent;\n\tlet $highlightedDates;\n\tlet $currentDate;\n\tlet $theme;\n\tlet $dateClick;\n\tlet $_interaction;\n\tlet $selectable;\n\tlet { date } = $$props;\n\tlet { chunks } = $$props;\n\tlet { longChunks } = $$props;\n\tlet { iChunks = [] } = $$props;\n\tlet { date: currentDate, dateClick, dayMaxEvents, highlightedDates, moreLinkContent, theme, _view, _interaction, selectable, _queue } = getContext('state');\n\tcomponent_subscribe($$self, currentDate, value => $$invalidate(37, $currentDate = value));\n\tcomponent_subscribe($$self, dateClick, value => $$invalidate(13, $dateClick = value));\n\tcomponent_subscribe($$self, highlightedDates, value => $$invalidate(36, $highlightedDates = value));\n\tcomponent_subscribe($$self, moreLinkContent, value => $$invalidate(35, $moreLinkContent = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(12, $theme = value));\n\tcomponent_subscribe($$self, _view, value => $$invalidate(42, $_view = value));\n\tcomponent_subscribe($$self, _interaction, value => $$invalidate(14, $_interaction = value));\n\tcomponent_subscribe($$self, selectable, value => $$invalidate(15, $selectable = value));\n\tlet { _hiddenEvents, _popupDate, _popupChunks } = getContext('view-state');\n\tcomponent_subscribe($$self, _hiddenEvents, value => $$invalidate(33, $_hiddenEvents = value));\n\tcomponent_subscribe($$self, _popupDate, value => $$invalidate(34, $_popupDate = value));\n\tcomponent_subscribe($$self, _popupChunks, value => $$invalidate(41, $_popupChunks = value));\n\tlet el;\n\tlet dayChunks;\n\tlet today = setMidnight(createDate());\n\tlet isToday;\n\tlet otherMonth;\n\tlet highlight;\n\tlet hiddenEvents = new Set(); // hidden events of this day\n\tlet moreLink = '';\n\tlet showPopup;\n\tlet refs = [];\n\n\tfunction createClickHandler(fn) {\n\t\treturn is_function(fn)\n\t\t? jsEvent => fn({\n\t\t\t\tallDay: true,\n\t\t\t\tdate: toLocalDate(date),\n\t\t\t\tdateStr: toISOString(date),\n\t\t\t\tdayEl: el,\n\t\t\t\tjsEvent,\n\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t})\n\t\t: undefined;\n\t}\n\n\tfunction createPointerEnterHandler(interaction) {\n\t\treturn interaction.pointer\n\t\t? jsEvent => interaction.pointer.enterDayGrid(date, jsEvent)\n\t\t: undefined;\n\t}\n\n\tfunction showMore() {\n\t\tset_store_value(_popupDate, $_popupDate = date, $_popupDate);\n\t}\n\n\tfunction setPopupChunks() {\n\t\tlet nextDay = addDay(cloneDate(date));\n\t\tlet chunks = dayChunks.concat(longChunks[date.getTime()]?.chunks || []);\n\t\tset_store_value(_popupChunks, $_popupChunks = chunks.map(chunk => assign({}, chunk, createEventChunk(chunk.event, date, nextDay), { days: 1, dates: [date] })).sort((a, b) => a.top - b.top), $_popupChunks);\n\t}\n\n\tfunction createPointerDownHandler(interaction, selectable) {\n\t\treturn selectable && interaction.action\n\t\t? jsEvent => interaction.action.selectDayGrid(date, el, jsEvent)\n\t\t: undefined;\n\t}\n\n\tfunction reposition() {\n\t\t$$invalidate(11, refs.length = dayChunks.length, refs);\n\n\t\tfor (let ref of refs) {\n\t\t\tref && ref.reposition && ref.reposition();\n\t\t}\n\t}\n\n\tafterUpdate(reposition);\n\tlet debounceHandle = {};\n\n\tfunction pointerdown_handler(event) {\n\t\tbubble.call(this, $$self, event);\n\t}\n\n\tfunction event_binding($$value, i) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\trefs[i] = $$value;\n\t\t\t$$invalidate(11, refs);\n\t\t});\n\t}\n\n\tfunction div3_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tel = $$value;\n\t\t\t$$invalidate(3, el);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('date' in $$props) $$invalidate(0, date = $$props.date);\n\t\tif ('chunks' in $$props) $$invalidate(32, chunks = $$props.chunks);\n\t\tif ('longChunks' in $$props) $$invalidate(1, longChunks = $$props.longChunks);\n\t\tif ('iChunks' in $$props) $$invalidate(2, iChunks = $$props.iChunks);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*hiddenEvents, date, dayChunks*/ 49 | $$self.$$.dirty[1] & /*chunks*/ 2) {\n\t\t\t{\n\t\t\t\t$$invalidate(4, dayChunks = []);\n\t\t\t\thiddenEvents.clear();\n\t\t\t\t((($$invalidate(5, hiddenEvents), $$invalidate(32, chunks)), $$invalidate(0, date)), $$invalidate(4, dayChunks));\n\n\t\t\t\tfor (let chunk of chunks) {\n\t\t\t\t\tif (datesEqual(chunk.date, date)) {\n\t\t\t\t\t\tdayChunks.push(chunk);\n\t\t\t\t\t} // if ($dayMaxEvents !== false && dayChunks.length > $dayMaxEvents) {\n\t\t\t\t\t// \tchunk.hidden = true;\n\t\t\t\t} // }\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*date, hiddenEvents*/ 33) {\n\t\t\tset_store_value(_hiddenEvents, $_hiddenEvents[date.getTime()] = hiddenEvents, $_hiddenEvents);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*date*/ 1 | $$self.$$.dirty[1] & /*$currentDate, $highlightedDates*/ 96) {\n\t\t\t{\n\t\t\t\t$$invalidate(8, isToday = datesEqual(date, today));\n\t\t\t\t$$invalidate(9, otherMonth = date.getUTCMonth() !== $currentDate.getUTCMonth());\n\t\t\t\t$$invalidate(10, highlight = $highlightedDates.some(d => datesEqual(d, date)));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*hiddenEvents, moreLink*/ 96 | $$self.$$.dirty[1] & /*$_hiddenEvents, $moreLinkContent*/ 20) {\n\t\t\tif ($_hiddenEvents && hiddenEvents.size) {\n\t\t\t\t// make Svelte update this block on $_hiddenEvents update\n\t\t\t\tlet text = '+' + hiddenEvents.size + ' more';\n\n\t\t\t\tif ($moreLinkContent) {\n\t\t\t\t\t$$invalidate(6, moreLink = is_function($moreLinkContent)\n\t\t\t\t\t? $moreLinkContent({ num: hiddenEvents.size, text })\n\t\t\t\t\t: $moreLinkContent);\n\n\t\t\t\t\tif (typeof moreLink === 'string') {\n\t\t\t\t\t\t$$invalidate(6, moreLink = { html: moreLink });\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$$invalidate(6, moreLink = { html: text });\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*date*/ 1 | $$self.$$.dirty[1] & /*$_popupDate*/ 8) {\n\t\t\t$$invalidate(7, showPopup = $_popupDate && datesEqual(date, $_popupDate));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*showPopup, longChunks, dayChunks*/ 146) {\n\t\t\tif (showPopup && longChunks && dayChunks) {\n\t\t\t\t// Let chunks to reposition then set popup chunks\n\t\t\t\ttick().then(setPopupChunks);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*el, date*/ 9) {\n\t\t\t// dateFromPoint\n\t\t\tif (el) {\n\t\t\t\tsetFn(el, () => date);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$_hiddenEvents*/ 4) {\n\t\t\tif ($_hiddenEvents) {\n\t\t\t\tdebounce(reposition, debounceHandle, _queue);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\tdate,\n\t\tlongChunks,\n\t\tiChunks,\n\t\tel,\n\t\tdayChunks,\n\t\thiddenEvents,\n\t\tmoreLink,\n\t\tshowPopup,\n\t\tisToday,\n\t\totherMonth,\n\t\thighlight,\n\t\trefs,\n\t\t$theme,\n\t\t$dateClick,\n\t\t$_interaction,\n\t\t$selectable,\n\t\tcurrentDate,\n\t\tdateClick,\n\t\thighlightedDates,\n\t\tmoreLinkContent,\n\t\ttheme,\n\t\t_view,\n\t\t_interaction,\n\t\tselectable,\n\t\t_hiddenEvents,\n\t\t_popupDate,\n\t\t_popupChunks,\n\t\tcreateClickHandler,\n\t\tcreatePointerEnterHandler,\n\t\tshowMore,\n\t\tcreatePointerDownHandler,\n\t\treposition,\n\t\tchunks,\n\t\t$_hiddenEvents,\n\t\t$_popupDate,\n\t\t$moreLinkContent,\n\t\t$highlightedDates,\n\t\t$currentDate,\n\t\tpointerdown_handler,\n\t\tevent_binding,\n\t\tdiv3_binding\n\t];\n}\n\nclass Day extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$2,\n\t\t\tcreate_fragment$2,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tdate: 0,\n\t\t\t\tchunks: 32,\n\t\t\t\tlongChunks: 1,\n\t\t\t\tiChunks: 2\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n}\n\n/* packages/day-grid/src/Week.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context$1(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[14] = list[i];\n\treturn child_ctx;\n}\n\n// (45:4) {#each dates as date}\nfunction create_each_block$1(ctx) {\n\tlet day;\n\tlet current;\n\n\tday = new Day({\n\t\t\tprops: {\n\t\t\t\tdate: /*date*/ ctx[14],\n\t\t\t\tchunks: /*chunks*/ ctx[1],\n\t\t\t\tlongChunks: /*longChunks*/ ctx[2],\n\t\t\t\tiChunks: /*iChunks*/ ctx[3]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(day.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(day, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst day_changes = {};\n\t\t\tif (dirty & /*dates*/ 1) day_changes.date = /*date*/ ctx[14];\n\t\t\tif (dirty & /*chunks*/ 2) day_changes.chunks = /*chunks*/ ctx[1];\n\t\t\tif (dirty & /*longChunks*/ 4) day_changes.longChunks = /*longChunks*/ ctx[2];\n\t\t\tif (dirty & /*iChunks*/ 8) day_changes.iChunks = /*iChunks*/ ctx[3];\n\t\t\tday.$set(day_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(day.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(day.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(day, detaching);\n\t\t}\n\t};\n}\n\nfunction create_fragment$1(ctx) {\n\tlet div;\n\tlet div_class_value;\n\tlet current;\n\tlet each_value = /*dates*/ ctx[0];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\teach_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[4].days);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(div, null);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (dirty & /*dates, chunks, longChunks, iChunks*/ 15) {\n\t\t\t\teach_value = /*dates*/ ctx[0];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context$1(ctx, each_value, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block$1(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(div, null);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*$theme*/ 16 && div_class_value !== (div_class_value = /*$theme*/ ctx[4].days)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t}\n\t};\n}\n\nfunction instance$1($$self, $$props, $$invalidate) {\n\tlet $hiddenDays;\n\tlet $_iEvents;\n\tlet $_events;\n\tlet $theme;\n\tlet { dates } = $$props;\n\tlet { _events, _iEvents, hiddenDays, theme } = getContext('state');\n\tcomponent_subscribe($$self, _events, value => $$invalidate(13, $_events = value));\n\tcomponent_subscribe($$self, _iEvents, value => $$invalidate(12, $_iEvents = value));\n\tcomponent_subscribe($$self, hiddenDays, value => $$invalidate(11, $hiddenDays = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(4, $theme = value));\n\tlet chunks, longChunks, iChunks = [];\n\tlet start;\n\tlet end;\n\n\t$$self.$$set = $$props => {\n\t\tif ('dates' in $$props) $$invalidate(0, dates = $$props.dates);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*dates*/ 1) {\n\t\t\t{\n\t\t\t\t$$invalidate(9, start = dates[0]);\n\t\t\t\t$$invalidate(10, end = addDay(cloneDate(dates[dates.length - 1])));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*$_events, start, end, chunks, $hiddenDays*/ 11778) {\n\t\t\t{\n\t\t\t\t$$invalidate(1, chunks = []);\n\n\t\t\t\tfor (let event of $_events) {\n\t\t\t\t\tif (event.display !== 'background' && eventIntersects(event, start, end)) {\n\t\t\t\t\t\tlet chunk = createEventChunk(event, start, end);\n\t\t\t\t\t\tchunks.push(chunk);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$$invalidate(2, longChunks = prepareEventChunks(chunks, $hiddenDays));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*$_iEvents, start, end, $hiddenDays*/ 7680) {\n\t\t\t$$invalidate(3, iChunks = $_iEvents.map(event => {\n\t\t\t\tlet chunk;\n\n\t\t\t\tif (event && eventIntersects(event, start, end)) {\n\t\t\t\t\tchunk = createEventChunk(event, start, end);\n\t\t\t\t\tprepareEventChunks([chunk], $hiddenDays);\n\t\t\t\t} else {\n\t\t\t\t\tchunk = null;\n\t\t\t\t}\n\n\t\t\t\treturn chunk;\n\t\t\t}));\n\t\t}\n\t};\n\n\treturn [\n\t\tdates,\n\t\tchunks,\n\t\tlongChunks,\n\t\tiChunks,\n\t\t$theme,\n\t\t_events,\n\t\t_iEvents,\n\t\thiddenDays,\n\t\ttheme,\n\t\tstart,\n\t\tend,\n\t\t$hiddenDays,\n\t\t$_iEvents,\n\t\t$_events\n\t];\n}\n\nclass Week extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$1, create_fragment$1, safe_not_equal, { dates: 0 });\n\t}\n}\n\n/* packages/day-grid/src/View.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[14] = list[i];\n\treturn child_ctx;\n}\n\n// (37:0) {#each weeks as dates}\nfunction create_each_block(ctx) {\n\tlet week;\n\tlet current;\n\tweek = new Week({ props: { dates: /*dates*/ ctx[14] } });\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(week.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(week, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst week_changes = {};\n\t\t\tif (dirty & /*weeks*/ 1) week_changes.dates = /*dates*/ ctx[14];\n\t\t\tweek.$set(week_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(week.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(week.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(week, detaching);\n\t\t}\n\t};\n}\n\n// (36:0) <Body>\nfunction create_default_slot(ctx) {\n\tlet each_1_anchor;\n\tlet current;\n\tlet each_value = /*weeks*/ ctx[0];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\teach_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\teach_1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, each_1_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*weeks*/ 1) {\n\t\t\t\teach_value = /*weeks*/ ctx[0];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context(ctx, each_value, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t\tif (detaching) detach(each_1_anchor);\n\t\t}\n\t};\n}\n\nfunction create_fragment(ctx) {\n\tlet header;\n\tlet t;\n\tlet body;\n\tlet current;\n\theader = new Header({});\n\n\tbody = new Body({\n\t\t\tprops: {\n\t\t\t\t$$slots: { default: [create_default_slot] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(header.$$.fragment);\n\t\t\tt = space();\n\t\t\tcreate_component(body.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(header, target, anchor);\n\t\t\tinsert(target, t, anchor);\n\t\t\tmount_component(body, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tconst body_changes = {};\n\n\t\t\tif (dirty & /*$$scope, weeks*/ 131073) {\n\t\t\t\tbody_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tbody.$set(body_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(header.$$.fragment, local);\n\t\t\ttransition_in(body.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(header.$$.fragment, local);\n\t\t\ttransition_out(body.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(header, detaching);\n\t\t\tif (detaching) detach(t);\n\t\t\tdestroy_component(body, detaching);\n\t\t}\n\t};\n}\n\nfunction instance($$self, $$props, $$invalidate) {\n\tlet $_viewDates;\n\tlet $dayMaxEvents;\n\tlet $_hiddenEvents;\n\tlet $hiddenDays;\n\tlet $_viewClass;\n\tlet { _viewDates, _viewClass, dayMaxEvents, hiddenDays, theme } = getContext('state');\n\tcomponent_subscribe($$self, _viewDates, value => $$invalidate(7, $_viewDates = value));\n\tcomponent_subscribe($$self, _viewClass, value => $$invalidate(11, $_viewClass = value));\n\tcomponent_subscribe($$self, dayMaxEvents, value => $$invalidate(8, $dayMaxEvents = value));\n\tcomponent_subscribe($$self, hiddenDays, value => $$invalidate(9, $hiddenDays = value));\n\tlet viewState = new State(getContext('state'));\n\tsetContext('view-state', viewState);\n\tlet { _hiddenEvents } = viewState;\n\tcomponent_subscribe($$self, _hiddenEvents, value => $$invalidate(10, $_hiddenEvents = value));\n\tset_store_value(_viewClass, $_viewClass = 'month', $_viewClass);\n\tlet weeks;\n\tlet days;\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*$hiddenDays, $dayMaxEvents, $_viewDates, days, weeks*/ 961) {\n\t\t\t{\n\t\t\t\t$$invalidate(0, weeks = []);\n\t\t\t\t$$invalidate(6, days = 7 - $hiddenDays.length);\n\t\t\t\tset_store_value(_hiddenEvents, $_hiddenEvents = {}, $_hiddenEvents);\n\n\t\t\t\tfor (let i = 0; i < $_viewDates.length / days; ++i) {\n\t\t\t\t\tlet dates = [];\n\n\t\t\t\t\tfor (let j = 0; j < days; ++j) {\n\t\t\t\t\t\tdates.push($_viewDates[i * days + j]);\n\t\t\t\t\t}\n\n\t\t\t\t\tweeks.push(dates);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\tweeks,\n\t\t_viewDates,\n\t\t_viewClass,\n\t\tdayMaxEvents,\n\t\thiddenDays,\n\t\t_hiddenEvents,\n\t\tdays,\n\t\t$_viewDates,\n\t\t$dayMaxEvents,\n\t\t$hiddenDays\n\t];\n}\n\nclass View extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance, create_fragment, safe_not_equal, {});\n\t}\n}\n\nvar index = {\n\tcreateOptions(options) {\n\t\toptions.dayMaxEvents = false;\n\t\toptions.dayPopoverFormat = {month: 'long', day: 'numeric', year: 'numeric'};\n\t\toptions.moreLinkContent = undefined;\n\t\t// Common options\n\t\toptions.buttonText.dayGridMonth = 'month';\n\t\toptions.theme.uniform = 'ec-uniform';\n\t\toptions.theme.dayFoot = 'ec-day-foot';\n\t\toptions.theme.month = 'ec-month';\n\t\toptions.theme.popup = 'ec-popup';\n\t\toptions.view = 'dayGridMonth';\n\t\toptions.views.dayGridMonth = {\n\t\t\tcomponent: View,\n\t\t\tdayHeaderFormat: {weekday: 'short'},\n\t\t\tdisplayEventEnd: false,\n\t\t\tduration: {months: 1},\n\t\t\tmonthMode: true,\n\t\t\ttitleFormat: {year: 'numeric', month: 'long'}\n\t\t};\n\t},\n\n\tcreateStores(state) {\n\t\tstate._intlDayPopover = intl(state.locale, state.dayPopoverFormat);\n\t}\n};\n\nexport { index as default };\n","import { SvelteComponent, init, safe_not_equal, create_slot, element, attr, insert, append, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, detach, component_subscribe, space, action_destroyer, listen, is_function, noop, run_all, binding_callbacks, empty, group_outros, check_outros, text, set_data, update_keyed_each, outro_and_destroy_block, create_component, mount_component, destroy_component, set_store_value, destroy_each } from 'svelte/internal';\nimport { getContext, onMount, setContext } from 'svelte';\nimport { setContent, toEventWithLocalDates, toViewWithLocalDates, createEventContent, setMidnight, createDate, addDay, cloneDate, eventIntersects, createEventChunk, sortEventChunks, datesEqual, toLocalDate, toISOString, setFn, intl } from '@event-calendar/common';\n\n/* packages/list/src/Body.svelte generated by Svelte v3.55.1 */\n\nfunction create_fragment$3(ctx) {\n\tlet div1;\n\tlet div0;\n\tlet div0_class_value;\n\tlet div1_class_value;\n\tlet current;\n\tconst default_slot_template = /*#slots*/ ctx[3].default;\n\tconst default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[2], null);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv1 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\t\t\tif (default_slot) default_slot.c();\n\t\t\tattr(div0, \"class\", div0_class_value = /*$theme*/ ctx[0].content);\n\t\t\tattr(div1, \"class\", div1_class_value = /*$theme*/ ctx[0].body);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div1, anchor);\n\t\t\tappend(div1, div0);\n\n\t\t\tif (default_slot) {\n\t\t\t\tdefault_slot.m(div0, null);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (default_slot) {\n\t\t\t\tif (default_slot.p && (!current || dirty & /*$$scope*/ 4)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\tdefault_slot,\n\t\t\t\t\t\tdefault_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[2],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[2])\n\t\t\t\t\t\t: get_slot_changes(default_slot_template, /*$$scope*/ ctx[2], dirty, null),\n\t\t\t\t\t\tnull\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*$theme*/ 1 && div0_class_value !== (div0_class_value = /*$theme*/ ctx[0].content)) {\n\t\t\t\tattr(div0, \"class\", div0_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*$theme*/ 1 && div1_class_value !== (div1_class_value = /*$theme*/ ctx[0].body)) {\n\t\t\t\tattr(div1, \"class\", div1_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(default_slot, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(default_slot, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div1);\n\t\t\tif (default_slot) default_slot.d(detaching);\n\t\t}\n\t};\n}\n\nfunction instance$3($$self, $$props, $$invalidate) {\n\tlet $theme;\n\tlet { $$slots: slots = {}, $$scope } = $$props;\n\tlet { theme } = getContext('state');\n\tcomponent_subscribe($$self, theme, value => $$invalidate(0, $theme = value));\n\n\t$$self.$$set = $$props => {\n\t\tif ('$$scope' in $$props) $$invalidate(2, $$scope = $$props.$$scope);\n\t};\n\n\treturn [$theme, theme, $$scope, slots];\n}\n\nclass Body extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$3, create_fragment$3, safe_not_equal, {});\n\t}\n}\n\n/* packages/list/src/Event.svelte generated by Svelte v3.55.1 */\n\nfunction create_fragment$2(ctx) {\n\tlet div2;\n\tlet div0;\n\tlet div0_class_value;\n\tlet t;\n\tlet div1;\n\tlet div1_class_value;\n\tlet setContent_action;\n\tlet div2_class_value;\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv2 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\t\t\tt = space();\n\t\t\tdiv1 = element(\"div\");\n\t\t\tattr(div0, \"class\", div0_class_value = /*$theme*/ ctx[0].eventTag);\n\t\t\tattr(div0, \"style\", /*style*/ ctx[2]);\n\t\t\tattr(div1, \"class\", div1_class_value = /*$theme*/ ctx[0].eventBody);\n\t\t\tattr(div2, \"class\", div2_class_value = /*$theme*/ ctx[0].event);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div2, anchor);\n\t\t\tappend(div2, div0);\n\t\t\tappend(div2, t);\n\t\t\tappend(div2, div1);\n\t\t\t/*div2_binding*/ ctx[29](div2);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\taction_destroyer(setContent_action = setContent.call(null, div1, /*content*/ ctx[3])),\n\t\t\t\t\tlisten(div2, \"click\", function () {\n\t\t\t\t\t\tif (is_function(/*createHandler*/ ctx[19](/*$eventClick*/ ctx[4]))) /*createHandler*/ ctx[19](/*$eventClick*/ ctx[4]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div2, \"mouseenter\", function () {\n\t\t\t\t\t\tif (is_function(/*createHandler*/ ctx[19](/*$eventMouseEnter*/ ctx[5]))) /*createHandler*/ ctx[19](/*$eventMouseEnter*/ ctx[5]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div2, \"mouseleave\", function () {\n\t\t\t\t\t\tif (is_function(/*createHandler*/ ctx[19](/*$eventMouseLeave*/ ctx[6]))) /*createHandler*/ ctx[19](/*$eventMouseLeave*/ ctx[6]).apply(this, arguments);\n\t\t\t\t\t})\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (dirty[0] & /*$theme*/ 1 && div0_class_value !== (div0_class_value = /*$theme*/ ctx[0].eventTag)) {\n\t\t\t\tattr(div0, \"class\", div0_class_value);\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*style*/ 4) {\n\t\t\t\tattr(div0, \"style\", /*style*/ ctx[2]);\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*$theme*/ 1 && div1_class_value !== (div1_class_value = /*$theme*/ ctx[0].eventBody)) {\n\t\t\t\tattr(div1, \"class\", div1_class_value);\n\t\t\t}\n\n\t\t\tif (setContent_action && is_function(setContent_action.update) && dirty[0] & /*content*/ 8) setContent_action.update.call(null, /*content*/ ctx[3]);\n\n\t\t\tif (dirty[0] & /*$theme*/ 1 && div2_class_value !== (div2_class_value = /*$theme*/ ctx[0].event)) {\n\t\t\t\tattr(div2, \"class\", div2_class_value);\n\t\t\t}\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div2);\n\t\t\t/*div2_binding*/ ctx[29](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction instance$2($$self, $$props, $$invalidate) {\n\tlet $_view;\n\tlet $eventDidMount;\n\tlet $_intlEventTime;\n\tlet $theme;\n\tlet $eventContent;\n\tlet $displayEventEnd;\n\tlet $eventColor;\n\tlet $eventBackgroundColor;\n\tlet $_resBgColor;\n\tlet $eventClick;\n\tlet $eventMouseEnter;\n\tlet $eventMouseLeave;\n\tlet { chunk } = $$props;\n\tlet { displayEventEnd, eventBackgroundColor, eventColor, eventContent, eventClick, eventDidMount, eventMouseEnter, eventMouseLeave, theme, _view, _intlEventTime, _resBgColor } = getContext('state');\n\tcomponent_subscribe($$self, displayEventEnd, value => $$invalidate(25, $displayEventEnd = value));\n\tcomponent_subscribe($$self, eventBackgroundColor, value => $$invalidate(27, $eventBackgroundColor = value));\n\tcomponent_subscribe($$self, eventColor, value => $$invalidate(26, $eventColor = value));\n\tcomponent_subscribe($$self, eventContent, value => $$invalidate(24, $eventContent = value));\n\tcomponent_subscribe($$self, eventClick, value => $$invalidate(4, $eventClick = value));\n\tcomponent_subscribe($$self, eventDidMount, value => $$invalidate(31, $eventDidMount = value));\n\tcomponent_subscribe($$self, eventMouseEnter, value => $$invalidate(5, $eventMouseEnter = value));\n\tcomponent_subscribe($$self, eventMouseLeave, value => $$invalidate(6, $eventMouseLeave = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(0, $theme = value));\n\tcomponent_subscribe($$self, _view, value => $$invalidate(22, $_view = value));\n\tcomponent_subscribe($$self, _intlEventTime, value => $$invalidate(23, $_intlEventTime = value));\n\tcomponent_subscribe($$self, _resBgColor, value => $$invalidate(28, $_resBgColor = value));\n\tlet el;\n\tlet event;\n\tlet style;\n\tlet content;\n\tlet timeText;\n\n\tonMount(() => {\n\t\tif (is_function($eventDidMount)) {\n\t\t\t$eventDidMount({\n\t\t\t\tevent: toEventWithLocalDates(event),\n\t\t\t\ttimeText,\n\t\t\t\tel,\n\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t});\n\t\t}\n\t});\n\n\tfunction createHandler(fn) {\n\t\treturn jsEvent => {\n\t\t\tif (is_function(fn)) {\n\t\t\t\tfn({\n\t\t\t\t\tevent: toEventWithLocalDates(event),\n\t\t\t\t\tel,\n\t\t\t\t\tjsEvent,\n\t\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\t}\n\n\tfunction div2_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tel = $$value;\n\t\t\t$$invalidate(1, el);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('chunk' in $$props) $$invalidate(20, chunk = $$props.chunk);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*chunk*/ 1048576) {\n\t\t\t$$invalidate(21, event = chunk.event);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*event, $_resBgColor, $eventBackgroundColor, $eventColor*/ 471859200) {\n\t\t\t{\n\t\t\t\t// Class & Style\n\t\t\t\tlet bgColor = event.backgroundColor || $_resBgColor(event) || $eventBackgroundColor || $eventColor;\n\n\t\t\t\tif (bgColor) {\n\t\t\t\t\t$$invalidate(2, style = `background-color:${bgColor};`);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*chunk, $displayEventEnd, $eventContent, $theme, $_intlEventTime, $_view*/ 63963137) {\n\t\t\t{\n\t\t\t\t// Content\n\t\t\t\t$$invalidate(3, [timeText, content] = createEventContent(chunk, $displayEventEnd, $eventContent, $theme, $_intlEventTime, $_view), content);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\t$theme,\n\t\tel,\n\t\tstyle,\n\t\tcontent,\n\t\t$eventClick,\n\t\t$eventMouseEnter,\n\t\t$eventMouseLeave,\n\t\tdisplayEventEnd,\n\t\teventBackgroundColor,\n\t\teventColor,\n\t\teventContent,\n\t\teventClick,\n\t\teventDidMount,\n\t\teventMouseEnter,\n\t\teventMouseLeave,\n\t\ttheme,\n\t\t_view,\n\t\t_intlEventTime,\n\t\t_resBgColor,\n\t\tcreateHandler,\n\t\tchunk,\n\t\tevent,\n\t\t$_view,\n\t\t$_intlEventTime,\n\t\t$eventContent,\n\t\t$displayEventEnd,\n\t\t$eventColor,\n\t\t$eventBackgroundColor,\n\t\t$_resBgColor,\n\t\tdiv2_binding\n\t];\n}\n\nclass Event extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$2, create_fragment$2, safe_not_equal, { chunk: 20 }, null, [-1, -1]);\n\t}\n}\n\n/* packages/list/src/Day.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context$1(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[24] = list[i];\n\treturn child_ctx;\n}\n\n// (68:0) {#if chunks.length}\nfunction create_if_block$1(ctx) {\n\tlet div;\n\tlet t0_value = /*$_intlListDayFormat*/ ctx[7].format(/*date*/ ctx[0]) + \"\";\n\tlet t0;\n\tlet t1;\n\tlet span;\n\tlet t2_value = /*$_intlListDaySideFormat*/ ctx[8].format(/*date*/ ctx[0]) + \"\";\n\tlet t2;\n\tlet span_class_value;\n\tlet div_class_value;\n\tlet t3;\n\tlet each_blocks = [];\n\tlet each_1_lookup = new Map();\n\tlet each_1_anchor;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tlet each_value = /*chunks*/ ctx[2];\n\tconst get_key = ctx => /*chunk*/ ctx[24].event;\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\tlet child_ctx = get_each_context$1(ctx, each_value, i);\n\t\tlet key = get_key(child_ctx);\n\t\teach_1_lookup.set(key, each_blocks[i] = create_each_block$1(key, child_ctx));\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tt0 = text(t0_value);\n\t\t\tt1 = space();\n\t\t\tspan = element(\"span\");\n\t\t\tt2 = text(t2_value);\n\t\t\tt3 = space();\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\teach_1_anchor = empty();\n\t\t\tattr(span, \"class\", span_class_value = /*$theme*/ ctx[5].daySide);\n\n\t\t\tattr(div, \"class\", div_class_value = \"\" + (/*$theme*/ ctx[5].day + (/*isToday*/ ctx[3] ? ' ' + /*$theme*/ ctx[5].today : '') + (/*highlight*/ ctx[4]\n\t\t\t? ' ' + /*$theme*/ ctx[5].highlight\n\t\t\t: '')));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tappend(div, t0);\n\t\t\tappend(div, t1);\n\t\t\tappend(div, span);\n\t\t\tappend(span, t2);\n\t\t\t/*div_binding*/ ctx[19](div);\n\t\t\tinsert(target, t3, anchor);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, each_1_anchor, anchor);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = listen(div, \"click\", function () {\n\t\t\t\t\tif (is_function(/*createClickHandler*/ ctx[16](/*$dateClick*/ ctx[6]))) /*createClickHandler*/ ctx[16](/*$dateClick*/ ctx[6]).apply(this, arguments);\n\t\t\t\t});\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\t\t\tif ((!current || dirty & /*$_intlListDayFormat, date*/ 129) && t0_value !== (t0_value = /*$_intlListDayFormat*/ ctx[7].format(/*date*/ ctx[0]) + \"\")) set_data(t0, t0_value);\n\t\t\tif ((!current || dirty & /*$_intlListDaySideFormat, date*/ 257) && t2_value !== (t2_value = /*$_intlListDaySideFormat*/ ctx[8].format(/*date*/ ctx[0]) + \"\")) set_data(t2, t2_value);\n\n\t\t\tif (!current || dirty & /*$theme*/ 32 && span_class_value !== (span_class_value = /*$theme*/ ctx[5].daySide)) {\n\t\t\t\tattr(span, \"class\", span_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*$theme, isToday, highlight*/ 56 && div_class_value !== (div_class_value = \"\" + (/*$theme*/ ctx[5].day + (/*isToday*/ ctx[3] ? ' ' + /*$theme*/ ctx[5].today : '') + (/*highlight*/ ctx[4]\n\t\t\t? ' ' + /*$theme*/ ctx[5].highlight\n\t\t\t: '')))) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\n\t\t\tif (dirty & /*chunks*/ 4) {\n\t\t\t\teach_value = /*chunks*/ ctx[2];\n\t\t\t\tgroup_outros();\n\t\t\t\teach_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, each_1_anchor.parentNode, outro_and_destroy_block, create_each_block$1, each_1_anchor, get_each_context$1);\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\t/*div_binding*/ ctx[19](null);\n\t\t\tif (detaching) detach(t3);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].d(detaching);\n\t\t\t}\n\n\t\t\tif (detaching) detach(each_1_anchor);\n\t\t\tmounted = false;\n\t\t\tdispose();\n\t\t}\n\t};\n}\n\n// (77:4) {#each chunks as chunk (chunk.event)}\nfunction create_each_block$1(key_1, ctx) {\n\tlet first;\n\tlet event;\n\tlet current;\n\tevent = new Event({ props: { chunk: /*chunk*/ ctx[24] } });\n\n\treturn {\n\t\tkey: key_1,\n\t\tfirst: null,\n\t\tc() {\n\t\t\tfirst = empty();\n\t\t\tcreate_component(event.$$.fragment);\n\t\t\tthis.first = first;\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, first, anchor);\n\t\t\tmount_component(event, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\t\t\tconst event_changes = {};\n\t\t\tif (dirty & /*chunks*/ 4) event_changes.chunk = /*chunk*/ ctx[24];\n\t\t\tevent.$set(event_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(event.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(event.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(first);\n\t\t\tdestroy_component(event, detaching);\n\t\t}\n\t};\n}\n\nfunction create_fragment$1(ctx) {\n\tlet if_block_anchor;\n\tlet current;\n\tlet if_block = /*chunks*/ ctx[2].length && create_if_block$1(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif (if_block) if_block.c();\n\t\t\tif_block_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (if_block) if_block.m(target, anchor);\n\t\t\tinsert(target, if_block_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (/*chunks*/ ctx[2].length) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty & /*chunks*/ 4) {\n\t\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block$1(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\tif_block.m(if_block_anchor.parentNode, if_block_anchor);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block, 1, 1, () => {\n\t\t\t\t\tif_block = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (if_block) if_block.d(detaching);\n\t\t\tif (detaching) detach(if_block_anchor);\n\t\t}\n\t};\n}\n\nfunction instance$1($$self, $$props, $$invalidate) {\n\tlet $_view;\n\tlet $highlightedDates;\n\tlet $_events;\n\tlet $theme;\n\tlet $dateClick;\n\tlet $_intlListDayFormat;\n\tlet $_intlListDaySideFormat;\n\tlet { date } = $$props;\n\tlet { _events, _intlDayHeader, _view, date: currentDate, dateClick, highlightedDates, theme } = getContext('state');\n\tcomponent_subscribe($$self, _events, value => $$invalidate(18, $_events = value));\n\tcomponent_subscribe($$self, _view, value => $$invalidate(20, $_view = value));\n\tcomponent_subscribe($$self, dateClick, value => $$invalidate(6, $dateClick = value));\n\tcomponent_subscribe($$self, highlightedDates, value => $$invalidate(17, $highlightedDates = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(5, $theme = value));\n\tlet { _intlListDayFormat, _intlListDaySideFormat } = getContext('view-state');\n\tcomponent_subscribe($$self, _intlListDayFormat, value => $$invalidate(7, $_intlListDayFormat = value));\n\tcomponent_subscribe($$self, _intlListDaySideFormat, value => $$invalidate(8, $_intlListDaySideFormat = value));\n\tlet el;\n\tlet chunks;\n\tlet today = setMidnight(createDate()), isToday, highlight;\n\n\tfunction createClickHandler(fn) {\n\t\treturn is_function(fn)\n\t\t? jsEvent => {\n\t\t\t\tfn({\n\t\t\t\t\tallDay: true,\n\t\t\t\t\tdate: toLocalDate(date),\n\t\t\t\t\tdateStr: toISOString(date),\n\t\t\t\t\tdayEl: el,\n\t\t\t\t\tjsEvent,\n\t\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t\t});\n\t\t\t}\n\t\t: undefined;\n\t}\n\n\tfunction div_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tel = $$value;\n\t\t\t$$invalidate(1, el);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('date' in $$props) $$invalidate(0, date = $$props.date);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*date, $_events, chunks*/ 262149) {\n\t\t\t{\n\t\t\t\t$$invalidate(2, chunks = []);\n\t\t\t\tlet start = date;\n\t\t\t\tlet end = addDay(cloneDate(date));\n\n\t\t\t\tfor (let event of $_events) {\n\t\t\t\t\tif (event.display === 'auto' && eventIntersects(event, start, end)) {\n\t\t\t\t\t\tlet chunk = createEventChunk(event, start, end);\n\t\t\t\t\t\tchunks.push(chunk);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tsortEventChunks(chunks);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*date, $highlightedDates*/ 131073) {\n\t\t\t{\n\t\t\t\t$$invalidate(3, isToday = datesEqual(date, today));\n\t\t\t\t$$invalidate(4, highlight = $highlightedDates.some(d => datesEqual(d, date)));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*el, date*/ 3) {\n\t\t\t// dateFromPoint\n\t\t\tif (el) {\n\t\t\t\tsetFn(el, () => date);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\tdate,\n\t\tel,\n\t\tchunks,\n\t\tisToday,\n\t\thighlight,\n\t\t$theme,\n\t\t$dateClick,\n\t\t$_intlListDayFormat,\n\t\t$_intlListDaySideFormat,\n\t\t_events,\n\t\t_view,\n\t\tdateClick,\n\t\thighlightedDates,\n\t\ttheme,\n\t\t_intlListDayFormat,\n\t\t_intlListDaySideFormat,\n\t\tcreateClickHandler,\n\t\t$highlightedDates,\n\t\t$_events,\n\t\tdiv_binding\n\t];\n}\n\nclass Day extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$1, create_fragment$1, safe_not_equal, { date: 0 });\n\t}\n}\n\nclass State {\n constructor(state) {\n this._intlListDayFormat = intl(state.locale, state.listDayFormat);\n this._intlListDaySideFormat = intl(state.locale, state.listDaySideFormat);\n }\n}\n\n/* packages/list/src/View.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[18] = list[i];\n\treturn child_ctx;\n}\n\n// (49:0) {:else}\nfunction create_else_block(ctx) {\n\tlet each_1_anchor;\n\tlet current;\n\tlet each_value = /*$_viewDates*/ ctx[1];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\teach_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\teach_1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, each_1_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*$_viewDates*/ 2) {\n\t\t\t\teach_value = /*$_viewDates*/ ctx[1];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context(ctx, each_value, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t\tif (detaching) detach(each_1_anchor);\n\t\t}\n\t};\n}\n\n// (47:0) {#if noEvents}\nfunction create_if_block(ctx) {\n\tlet div;\n\tlet div_class_value;\n\tlet setContent_action;\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[3].noEvents);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\taction_destroyer(setContent_action = setContent.call(null, div, /*content*/ ctx[0])),\n\t\t\t\t\tlisten(div, \"click\", /*handleClick*/ ctx[11])\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*$theme*/ 8 && div_class_value !== (div_class_value = /*$theme*/ ctx[3].noEvents)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\n\t\t\tif (setContent_action && is_function(setContent_action.update) && dirty & /*content*/ 1) setContent_action.update.call(null, /*content*/ ctx[0]);\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\n// (50:4) {#each $_viewDates as date}\nfunction create_each_block(ctx) {\n\tlet day;\n\tlet current;\n\tday = new Day({ props: { date: /*date*/ ctx[18] } });\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(day.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(day, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst day_changes = {};\n\t\t\tif (dirty & /*$_viewDates*/ 2) day_changes.date = /*date*/ ctx[18];\n\t\t\tday.$set(day_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(day.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(day.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(day, detaching);\n\t\t}\n\t};\n}\n\n// (46:0) <Body>\nfunction create_default_slot(ctx) {\n\tlet current_block_type_index;\n\tlet if_block;\n\tlet if_block_anchor;\n\tlet current;\n\tconst if_block_creators = [create_if_block, create_else_block];\n\tconst if_blocks = [];\n\n\tfunction select_block_type(ctx, dirty) {\n\t\tif (/*noEvents*/ ctx[2]) return 0;\n\t\treturn 1;\n\t}\n\n\tcurrent_block_type_index = select_block_type(ctx);\n\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif_block.c();\n\t\t\tif_block_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif_blocks[current_block_type_index].m(target, anchor);\n\t\t\tinsert(target, if_block_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tlet previous_block_index = current_block_type_index;\n\t\t\tcurrent_block_type_index = select_block_type(ctx);\n\n\t\t\tif (current_block_type_index === previous_block_index) {\n\t\t\t\tif_blocks[current_block_type_index].p(ctx, dirty);\n\t\t\t} else {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_blocks[previous_block_index], 1, 1, () => {\n\t\t\t\t\tif_blocks[previous_block_index] = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t\tif_block = if_blocks[current_block_type_index];\n\n\t\t\t\tif (!if_block) {\n\t\t\t\t\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t} else {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t}\n\n\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\tif_block.m(if_block_anchor.parentNode, if_block_anchor);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif_blocks[current_block_type_index].d(detaching);\n\t\t\tif (detaching) detach(if_block_anchor);\n\t\t}\n\t};\n}\n\nfunction create_fragment(ctx) {\n\tlet body;\n\tlet current;\n\n\tbody = new Body({\n\t\t\tprops: {\n\t\t\t\t$$slots: { default: [create_default_slot] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(body.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(body, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tconst body_changes = {};\n\n\t\t\tif (dirty & /*$$scope, $theme, content, noEvents, $_viewDates*/ 2097167) {\n\t\t\t\tbody_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tbody.$set(body_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(body.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(body.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(body, detaching);\n\t\t}\n\t};\n}\n\nfunction instance($$self, $$props, $$invalidate) {\n\tlet $_view;\n\tlet $noEventsClick;\n\tlet $noEventsContent;\n\tlet $_events;\n\tlet $_viewDates;\n\tlet $_viewClass;\n\tlet $theme;\n\tlet { _events, _view, _viewDates, _viewClass, noEventsClick, noEventsContent, theme } = getContext('state');\n\tcomponent_subscribe($$self, _events, value => $$invalidate(13, $_events = value));\n\tcomponent_subscribe($$self, _view, value => $$invalidate(14, $_view = value));\n\tcomponent_subscribe($$self, _viewDates, value => $$invalidate(1, $_viewDates = value));\n\tcomponent_subscribe($$self, _viewClass, value => $$invalidate(16, $_viewClass = value));\n\tcomponent_subscribe($$self, noEventsClick, value => $$invalidate(15, $noEventsClick = value));\n\tcomponent_subscribe($$self, noEventsContent, value => $$invalidate(12, $noEventsContent = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(3, $theme = value));\n\tlet state = new State(getContext('state'));\n\tsetContext('view-state', state);\n\tset_store_value(_viewClass, $_viewClass = 'list', $_viewClass);\n\tlet noEvents, content;\n\n\tfunction handleClick(jsEvent) {\n\t\tif (is_function($noEventsClick)) {\n\t\t\t$noEventsClick({\n\t\t\t\tjsEvent,\n\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t});\n\t\t}\n\t}\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*$_viewDates, $_events*/ 8194) {\n\t\t\t{\n\t\t\t\t$$invalidate(2, noEvents = true);\n\n\t\t\t\tif ($_viewDates.length) {\n\t\t\t\t\tlet start = $_viewDates[0];\n\t\t\t\t\tlet end = addDay(cloneDate($_viewDates[$_viewDates.length - 1]));\n\n\t\t\t\t\tfor (let event of $_events) {\n\t\t\t\t\t\tif (event.display === 'auto' && event.start < end && event.end > start) {\n\t\t\t\t\t\t\t$$invalidate(2, noEvents = false);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*$noEventsContent, content*/ 4097) {\n\t\t\t{\n\t\t\t\t$$invalidate(0, content = is_function($noEventsContent)\n\t\t\t\t? $noEventsContent()\n\t\t\t\t: $noEventsContent);\n\n\t\t\t\tif (typeof content === 'string') {\n\t\t\t\t\t$$invalidate(0, content = { html: content });\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\tcontent,\n\t\t$_viewDates,\n\t\tnoEvents,\n\t\t$theme,\n\t\t_events,\n\t\t_view,\n\t\t_viewDates,\n\t\t_viewClass,\n\t\tnoEventsClick,\n\t\tnoEventsContent,\n\t\ttheme,\n\t\thandleClick,\n\t\t$noEventsContent,\n\t\t$_events\n\t];\n}\n\nclass View extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance, create_fragment, safe_not_equal, {});\n\t}\n}\n\nvar index = {\n\tcreateOptions(options) {\n\t\t// Common options\n\t\toptions.buttonText.listDay = 'list';\n\t\toptions.buttonText.listWeek = 'list';\n\t\toptions.buttonText.listMonth = 'list';\n\t\toptions.buttonText.listYear = 'list';\n\t\toptions.listDayFormat = {weekday: 'long'};\n\t\toptions.listDaySideFormat = {year: 'numeric', month: 'long', day: 'numeric'};\n\t\toptions.noEventsClick = undefined; // ec option\n\t\toptions.noEventsContent = 'No events';\n\t\toptions.theme.daySide = 'ec-day-side';\n\t\toptions.theme.eventTag = 'ec-event-tag';\n\t\toptions.theme.list = 'ec-list';\n\t\toptions.theme.noEvents = 'ec-no-events';\n\t\toptions.view = 'listWeek';\n\t\toptions.views.listDay = {\n\t\t\tcomponent: View,\n\t\t\tduration: {days: 1}\n\t\t};\n\t\toptions.views.listWeek = {\n\t\t\tcomponent: View,\n\t\t\tduration: {weeks: 1}\n\t\t};\n\t\toptions.views.listMonth = {\n\t\t\tcomponent: View,\n\t\t\tduration: {months: 1}\n\t\t};\n\t\toptions.views.listYear = {\n\t\t\tcomponent: View,\n\t\t\tduration: {years: 1}\n\t\t};\n\t}\n};\n\nexport { index as default };\n","import { is_function, SvelteComponent, init, safe_not_equal, create_slot, element, space, attr, insert, append, action_destroyer, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, detach, destroy_each, component_subscribe, text, set_data, listen, run_all, set_store_value, binding_callbacks, construct_svelte_component, create_component, mount_component, group_outros, destroy_component, check_outros, set_style, noop, update_keyed_each, outro_and_destroy_block, empty } from 'svelte/internal';\nimport { getContext, onMount, createEventDispatcher, afterUpdate, setContext } from 'svelte';\nimport { derived } from 'svelte/store';\nimport { createDate, cloneDate, addDuration, createDuration, DAY_IN_SECONDS, sortEventChunks, setContent, hasYScroll, maybeIgnore, toEventWithLocalDates, toViewWithLocalDates, createEventContent, eventIntersects, createEventChunk, datesEqual, toLocalDate, toISOString, setFn, rect, repositionEvent, height, setMidnight, addDay, prepareEventChunks } from '@event-calendar/common';\n\nfunction times(state, localState) {\n return derived(\n [localState._slotTimeLimits, state._intlSlotLabel, state.slotDuration],\n ([$_slotTimeLimits, $_intlSlotLabel, $slotDuration]) => {\n let compact = $slotDuration.seconds >= 3600;\n let times = [];\n let date = createDate('2020-01-01');\n let end = cloneDate(date);\n let i = 1;\n addDuration(date, $_slotTimeLimits.min);\n addDuration(end, $_slotTimeLimits.max);\n while (date < end) {\n times.push(times.length && (i || compact) ? $_intlSlotLabel.format(date) : '');\n addDuration(date, $slotDuration);\n i = 1 - i;\n }\n\n return times;\n }\n );\n}\n\nfunction slotTimeLimits(state) {\n return derived(\n [state._events, state._viewDates, state.flexibleSlotTimeLimits, state.slotMinTime, state.slotMaxTime],\n ([$_events, $_viewDates, $flexibleSlotTimeLimits, $slotMinTime, $slotMaxTime]) => {\n let min = createDuration($slotMinTime);\n let max = createDuration($slotMaxTime);\n\n if ($flexibleSlotTimeLimits) {\n let minMin = createDuration(Math.min(min.seconds, Math.max(0, max.seconds - DAY_IN_SECONDS)));\n let maxMax = createDuration(Math.max(max.seconds, minMin.seconds + DAY_IN_SECONDS));\n loop: for (let date of $_viewDates) {\n let start = addDuration(cloneDate(date), min);\n let end = addDuration(cloneDate(date), max);\n let minStart = addDuration(cloneDate(date), minMin);\n let maxEnd = addDuration(cloneDate(date), maxMax);\n for (let event of $_events) {\n if (event.display === 'auto' && event.start < maxEnd && event.end > minStart) {\n if (event.start < start) {\n let seconds = Math.max((event.start - date) / 1000, minMin.seconds);\n if (seconds < min.seconds) {\n min.seconds = seconds;\n }\n }\n if (event.end > end) {\n let seconds = Math.min((event.end - date) / 1000, maxMax.seconds);\n if (seconds > max.seconds) {\n max.seconds = seconds;\n }\n }\n if (min.seconds === minMin.seconds && max.seconds === maxMax.seconds) {\n break loop;\n }\n }\n }\n }\n }\n\n return {min, max};\n }\n );\n}\n\nclass State {\n constructor(state) {\n this._slotTimeLimits = slotTimeLimits(state); // flexible limits\n this._times = times(state, this);\n }\n}\n\nfunction groupEventChunks(chunks) {\n if (!chunks.length) {\n return;\n }\n\n sortEventChunks(chunks);\n\n // Group\n let group = {\n columns: [],\n end: chunks[0].end\n };\n for (let chunk of chunks) {\n let c = 0;\n if (chunk.start < group.end) {\n for (; c < group.columns.length; ++c) {\n if (group.columns[c][group.columns[c].length - 1].end <= chunk.start) {\n break;\n }\n }\n if (chunk.end > group.end) {\n group.end = chunk.end;\n }\n } else {\n group = {\n columns: [],\n end: chunk.end\n };\n }\n\n if (group.columns.length < c + 1) {\n group.columns.push([]);\n }\n group.columns[c].push(chunk);\n\n chunk.group = group;\n chunk.column = c;\n }\n}\n\nfunction createAllDayContent(allDayContent) {\n let text = 'all-day';\n let content;\n if (allDayContent) {\n content = is_function(allDayContent) ? allDayContent({text}) : allDayContent;\n if (typeof content === 'string') {\n content = {html: content};\n }\n } else {\n content = {\n html: text\n };\n }\n\n return content;\n}\n\n/* packages/time-grid/src/Header.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context$5(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[12] = list[i];\n\treturn child_ctx;\n}\n\n// (19:12) {#each $_times as time}\nfunction create_each_block$5(ctx) {\n\tlet div;\n\tlet t_value = /*time*/ ctx[12] + \"\";\n\tlet t;\n\tlet div_class_value;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tt = text(t_value);\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[2].time);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tappend(div, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*$_times*/ 16 && t_value !== (t_value = /*time*/ ctx[12] + \"\")) set_data(t, t_value);\n\n\t\t\tif (dirty & /*$theme*/ 4 && div_class_value !== (div_class_value = /*$theme*/ ctx[2].time)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t}\n\t};\n}\n\nfunction create_fragment$8(ctx) {\n\tlet div6;\n\tlet div2;\n\tlet div0;\n\tlet div0_class_value;\n\tlet setContent_action;\n\tlet t0;\n\tlet div1;\n\tlet div1_class_value;\n\tlet div2_class_value;\n\tlet t1;\n\tlet div4;\n\tlet div3;\n\tlet div3_class_value;\n\tlet t2;\n\tlet div4_class_value;\n\tlet t3;\n\tlet div5;\n\tlet div5_class_value;\n\tlet div6_class_value;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tlet each_value = /*$_times*/ ctx[4];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\teach_blocks[i] = create_each_block$5(get_each_context$5(ctx, each_value, i));\n\t}\n\n\tconst default_slot_template = /*#slots*/ ctx[11].default;\n\tconst default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[10], null);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv6 = element(\"div\");\n\t\t\tdiv2 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\t\t\tt0 = space();\n\t\t\tdiv1 = element(\"div\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tt1 = space();\n\t\t\tdiv4 = element(\"div\");\n\t\t\tdiv3 = element(\"div\");\n\t\t\tt2 = space();\n\t\t\tif (default_slot) default_slot.c();\n\t\t\tt3 = space();\n\t\t\tdiv5 = element(\"div\");\n\t\t\tattr(div0, \"class\", div0_class_value = /*$theme*/ ctx[2].sidebarTitle);\n\t\t\tattr(div1, \"class\", div1_class_value = /*$theme*/ ctx[2].hiddenTimes);\n\t\t\tattr(div2, \"class\", div2_class_value = /*$theme*/ ctx[2].sidebar);\n\t\t\tattr(div3, \"class\", div3_class_value = /*$theme*/ ctx[2].lines);\n\t\t\tattr(div4, \"class\", div4_class_value = /*$theme*/ ctx[2].days);\n\t\t\tattr(div5, \"class\", div5_class_value = /*$theme*/ ctx[2].hiddenScroll);\n\n\t\t\tattr(div6, \"class\", div6_class_value = \"\" + ((/*allDay*/ ctx[0]\n\t\t\t? /*$theme*/ ctx[2].allDay\n\t\t\t: /*$theme*/ ctx[2].header) + (/*$_scrollable*/ ctx[3]\n\t\t\t? ' ' + /*$theme*/ ctx[2].withScroll\n\t\t\t: '')));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div6, anchor);\n\t\t\tappend(div6, div2);\n\t\t\tappend(div2, div0);\n\t\t\tappend(div2, t0);\n\t\t\tappend(div2, div1);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(div1, null);\n\t\t\t}\n\n\t\t\tappend(div6, t1);\n\t\t\tappend(div6, div4);\n\t\t\tappend(div4, div3);\n\t\t\tappend(div4, t2);\n\n\t\t\tif (default_slot) {\n\t\t\t\tdefault_slot.m(div4, null);\n\t\t\t}\n\n\t\t\tappend(div6, t3);\n\t\t\tappend(div6, div5);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = action_destroyer(setContent_action = setContent.call(null, div0, /*allDayText*/ ctx[1]));\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (!current || dirty & /*$theme*/ 4 && div0_class_value !== (div0_class_value = /*$theme*/ ctx[2].sidebarTitle)) {\n\t\t\t\tattr(div0, \"class\", div0_class_value);\n\t\t\t}\n\n\t\t\tif (setContent_action && is_function(setContent_action.update) && dirty & /*allDayText*/ 2) setContent_action.update.call(null, /*allDayText*/ ctx[1]);\n\n\t\t\tif (dirty & /*$theme, $_times*/ 20) {\n\t\t\t\teach_value = /*$_times*/ ctx[4];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context$5(ctx, each_value, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block$5(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\teach_blocks[i].m(div1, null);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (; i < each_blocks.length; i += 1) {\n\t\t\t\t\teach_blocks[i].d(1);\n\t\t\t\t}\n\n\t\t\t\teach_blocks.length = each_value.length;\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*$theme*/ 4 && div1_class_value !== (div1_class_value = /*$theme*/ ctx[2].hiddenTimes)) {\n\t\t\t\tattr(div1, \"class\", div1_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*$theme*/ 4 && div2_class_value !== (div2_class_value = /*$theme*/ ctx[2].sidebar)) {\n\t\t\t\tattr(div2, \"class\", div2_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*$theme*/ 4 && div3_class_value !== (div3_class_value = /*$theme*/ ctx[2].lines)) {\n\t\t\t\tattr(div3, \"class\", div3_class_value);\n\t\t\t}\n\n\t\t\tif (default_slot) {\n\t\t\t\tif (default_slot.p && (!current || dirty & /*$$scope*/ 1024)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\tdefault_slot,\n\t\t\t\t\t\tdefault_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[10],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[10])\n\t\t\t\t\t\t: get_slot_changes(default_slot_template, /*$$scope*/ ctx[10], dirty, null),\n\t\t\t\t\t\tnull\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*$theme*/ 4 && div4_class_value !== (div4_class_value = /*$theme*/ ctx[2].days)) {\n\t\t\t\tattr(div4, \"class\", div4_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*$theme*/ 4 && div5_class_value !== (div5_class_value = /*$theme*/ ctx[2].hiddenScroll)) {\n\t\t\t\tattr(div5, \"class\", div5_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*allDay, $theme, $_scrollable*/ 13 && div6_class_value !== (div6_class_value = \"\" + ((/*allDay*/ ctx[0]\n\t\t\t? /*$theme*/ ctx[2].allDay\n\t\t\t: /*$theme*/ ctx[2].header) + (/*$_scrollable*/ ctx[3]\n\t\t\t? ' ' + /*$theme*/ ctx[2].withScroll\n\t\t\t: '')))) {\n\t\t\t\tattr(div6, \"class\", div6_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(default_slot, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(default_slot, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div6);\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t\tif (default_slot) default_slot.d(detaching);\n\t\t\tmounted = false;\n\t\t\tdispose();\n\t\t}\n\t};\n}\n\nfunction instance$8($$self, $$props, $$invalidate) {\n\tlet $allDayContent;\n\tlet $theme;\n\tlet $_scrollable;\n\tlet $_times;\n\tlet { $$slots: slots = {}, $$scope } = $$props;\n\tlet { allDay = false } = $$props;\n\tlet { _scrollable, allDayContent, theme } = getContext('state');\n\tcomponent_subscribe($$self, _scrollable, value => $$invalidate(3, $_scrollable = value));\n\tcomponent_subscribe($$self, allDayContent, value => $$invalidate(9, $allDayContent = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(2, $theme = value));\n\tlet { _times } = getContext('view-state');\n\tcomponent_subscribe($$self, _times, value => $$invalidate(4, $_times = value));\n\tlet allDayText;\n\n\t$$self.$$set = $$props => {\n\t\tif ('allDay' in $$props) $$invalidate(0, allDay = $$props.allDay);\n\t\tif ('$$scope' in $$props) $$invalidate(10, $$scope = $$props.$$scope);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*$allDayContent*/ 512) {\n\t\t\t$$invalidate(1, allDayText = createAllDayContent($allDayContent));\n\t\t}\n\t};\n\n\treturn [\n\t\tallDay,\n\t\tallDayText,\n\t\t$theme,\n\t\t$_scrollable,\n\t\t$_times,\n\t\t_scrollable,\n\t\tallDayContent,\n\t\ttheme,\n\t\t_times,\n\t\t$allDayContent,\n\t\t$$scope,\n\t\tslots\n\t];\n}\n\nclass Header extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$8, create_fragment$8, safe_not_equal, { allDay: 0 });\n\t}\n}\n\n/* packages/time-grid/src/Body.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context$4(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[30] = list[i];\n\treturn child_ctx;\n}\n\nfunction get_each_context_1$2(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[33] = list[i];\n\treturn child_ctx;\n}\n\n// (46:12) {#each $_times as time}\nfunction create_each_block_1$2(ctx) {\n\tlet div;\n\tlet t_value = /*time*/ ctx[33] + \"\";\n\tlet t;\n\tlet div_class_value;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tt = text(t_value);\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[5].time);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tappend(div, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*$_times*/ 2 && t_value !== (t_value = /*time*/ ctx[33] + \"\")) set_data(t, t_value);\n\n\t\t\tif (dirty[0] & /*$theme*/ 32 && div_class_value !== (div_class_value = /*$theme*/ ctx[5].time)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t}\n\t};\n}\n\n// (52:16) {#each lines as line}\nfunction create_each_block$4(ctx) {\n\tlet div;\n\tlet div_class_value;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[5].line);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*$theme*/ 32 && div_class_value !== (div_class_value = /*$theme*/ ctx[5].line)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t}\n\t};\n}\n\nfunction create_fragment$7(ctx) {\n\tlet div5;\n\tlet div4;\n\tlet div1;\n\tlet div0;\n\tlet div0_class_value;\n\tlet setContent_action;\n\tlet t0;\n\tlet div1_class_value;\n\tlet t1;\n\tlet div3;\n\tlet div2;\n\tlet div2_class_value;\n\tlet t2;\n\tlet div3_class_value;\n\tlet div4_class_value;\n\tlet div5_class_value;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tlet each_value_1 = /*$_times*/ ctx[1];\n\tlet each_blocks_1 = [];\n\n\tfor (let i = 0; i < each_value_1.length; i += 1) {\n\t\teach_blocks_1[i] = create_each_block_1$2(get_each_context_1$2(ctx, each_value_1, i));\n\t}\n\n\tlet each_value = /*lines*/ ctx[3];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\teach_blocks[i] = create_each_block$4(get_each_context$4(ctx, each_value, i));\n\t}\n\n\tconst default_slot_template = /*#slots*/ ctx[26].default;\n\tconst default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[25], null);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv5 = element(\"div\");\n\t\t\tdiv4 = element(\"div\");\n\t\t\tdiv1 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\t\t\tt0 = space();\n\n\t\t\tfor (let i = 0; i < each_blocks_1.length; i += 1) {\n\t\t\t\teach_blocks_1[i].c();\n\t\t\t}\n\n\t\t\tt1 = space();\n\t\t\tdiv3 = element(\"div\");\n\t\t\tdiv2 = element(\"div\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tt2 = space();\n\t\t\tif (default_slot) default_slot.c();\n\t\t\tattr(div0, \"class\", div0_class_value = /*$theme*/ ctx[5].sidebarTitle);\n\t\t\tattr(div1, \"class\", div1_class_value = /*$theme*/ ctx[5].sidebar);\n\t\t\tattr(div2, \"class\", div2_class_value = /*$theme*/ ctx[5].lines);\n\t\t\tattr(div3, \"class\", div3_class_value = /*$theme*/ ctx[5].days);\n\t\t\tattr(div4, \"class\", div4_class_value = /*$theme*/ ctx[5].content);\n\n\t\t\tattr(div5, \"class\", div5_class_value = \"\" + (/*$theme*/ ctx[5].body + (/*compact*/ ctx[2]\n\t\t\t? ' ' + /*$theme*/ ctx[5].compact\n\t\t\t: '')));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div5, anchor);\n\t\t\tappend(div5, div4);\n\t\t\tappend(div4, div1);\n\t\t\tappend(div1, div0);\n\t\t\tappend(div1, t0);\n\n\t\t\tfor (let i = 0; i < each_blocks_1.length; i += 1) {\n\t\t\t\teach_blocks_1[i].m(div1, null);\n\t\t\t}\n\n\t\t\tappend(div4, t1);\n\t\t\tappend(div4, div3);\n\t\t\tappend(div3, div2);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(div2, null);\n\t\t\t}\n\n\t\t\tappend(div3, t2);\n\n\t\t\tif (default_slot) {\n\t\t\t\tdefault_slot.m(div3, null);\n\t\t\t}\n\n\t\t\t/*div5_binding*/ ctx[27](div5);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(window, \"resize\", /*recheckScrollable*/ ctx[17]),\n\t\t\t\t\taction_destroyer(setContent_action = setContent.call(null, div0, /*allDayText*/ ctx[4])),\n\t\t\t\t\tlisten(div5, \"scroll\", function () {\n\t\t\t\t\t\tif (is_function(/*$_scroll*/ ctx[6])) /*$_scroll*/ ctx[6].apply(this, arguments);\n\t\t\t\t\t})\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 32 && div0_class_value !== (div0_class_value = /*$theme*/ ctx[5].sidebarTitle)) {\n\t\t\t\tattr(div0, \"class\", div0_class_value);\n\t\t\t}\n\n\t\t\tif (setContent_action && is_function(setContent_action.update) && dirty[0] & /*allDayText*/ 16) setContent_action.update.call(null, /*allDayText*/ ctx[4]);\n\n\t\t\tif (dirty[0] & /*$theme, $_times*/ 34) {\n\t\t\t\teach_value_1 = /*$_times*/ ctx[1];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value_1.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context_1$2(ctx, each_value_1, i);\n\n\t\t\t\t\tif (each_blocks_1[i]) {\n\t\t\t\t\t\teach_blocks_1[i].p(child_ctx, dirty);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks_1[i] = create_each_block_1$2(child_ctx);\n\t\t\t\t\t\teach_blocks_1[i].c();\n\t\t\t\t\t\teach_blocks_1[i].m(div1, null);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (; i < each_blocks_1.length; i += 1) {\n\t\t\t\t\teach_blocks_1[i].d(1);\n\t\t\t\t}\n\n\t\t\t\teach_blocks_1.length = each_value_1.length;\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 32 && div1_class_value !== (div1_class_value = /*$theme*/ ctx[5].sidebar)) {\n\t\t\t\tattr(div1, \"class\", div1_class_value);\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*$theme, lines*/ 40) {\n\t\t\t\teach_value = /*lines*/ ctx[3];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context$4(ctx, each_value, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block$4(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\teach_blocks[i].m(div2, null);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (; i < each_blocks.length; i += 1) {\n\t\t\t\t\teach_blocks[i].d(1);\n\t\t\t\t}\n\n\t\t\t\teach_blocks.length = each_value.length;\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 32 && div2_class_value !== (div2_class_value = /*$theme*/ ctx[5].lines)) {\n\t\t\t\tattr(div2, \"class\", div2_class_value);\n\t\t\t}\n\n\t\t\tif (default_slot) {\n\t\t\t\tif (default_slot.p && (!current || dirty[0] & /*$$scope*/ 33554432)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\tdefault_slot,\n\t\t\t\t\t\tdefault_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[25],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[25])\n\t\t\t\t\t\t: get_slot_changes(default_slot_template, /*$$scope*/ ctx[25], dirty, null),\n\t\t\t\t\t\tnull\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 32 && div3_class_value !== (div3_class_value = /*$theme*/ ctx[5].days)) {\n\t\t\t\tattr(div3, \"class\", div3_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 32 && div4_class_value !== (div4_class_value = /*$theme*/ ctx[5].content)) {\n\t\t\t\tattr(div4, \"class\", div4_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme, compact*/ 36 && div5_class_value !== (div5_class_value = \"\" + (/*$theme*/ ctx[5].body + (/*compact*/ ctx[2]\n\t\t\t? ' ' + /*$theme*/ ctx[5].compact\n\t\t\t: '')))) {\n\t\t\t\tattr(div5, \"class\", div5_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(default_slot, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(default_slot, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div5);\n\t\t\tdestroy_each(each_blocks_1, detaching);\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t\tif (default_slot) default_slot.d(detaching);\n\t\t\t/*div5_binding*/ ctx[27](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction instance$7($$self, $$props, $$invalidate) {\n\tlet $_scrollable;\n\tlet $slotDuration;\n\tlet $_times;\n\tlet $slotHeight;\n\tlet $scrollTime;\n\tlet $_viewDates;\n\tlet $allDayContent;\n\tlet $_slotTimeLimits;\n\tlet $theme;\n\tlet $_scroll;\n\tlet { $$slots: slots = {}, $$scope } = $$props;\n\tlet { _intlSlotLabel, _viewDates, scrollTime, _scrollable, _scroll, allDayContent, slotDuration, slotHeight, theme } = getContext('state');\n\tcomponent_subscribe($$self, _viewDates, value => $$invalidate(22, $_viewDates = value));\n\tcomponent_subscribe($$self, scrollTime, value => $$invalidate(21, $scrollTime = value));\n\tcomponent_subscribe($$self, _scrollable, value => $$invalidate(28, $_scrollable = value));\n\tcomponent_subscribe($$self, _scroll, value => $$invalidate(6, $_scroll = value));\n\tcomponent_subscribe($$self, allDayContent, value => $$invalidate(23, $allDayContent = value));\n\tcomponent_subscribe($$self, slotDuration, value => $$invalidate(19, $slotDuration = value));\n\tcomponent_subscribe($$self, slotHeight, value => $$invalidate(20, $slotHeight = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(5, $theme = value));\n\tlet { _slotTimeLimits, _times } = getContext('view-state');\n\tcomponent_subscribe($$self, _slotTimeLimits, value => $$invalidate(24, $_slotTimeLimits = value));\n\tcomponent_subscribe($$self, _times, value => $$invalidate(1, $_times = value));\n\tlet el;\n\tlet compact;\n\tlet lines = [];\n\tlet timeLimitMin;\n\tlet allDayText;\n\n\tfunction recheckScrollable() {\n\t\tset_store_value(_scrollable, $_scrollable = hasYScroll(el), $_scrollable);\n\t}\n\n\tfunction div5_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tel = $$value;\n\t\t\t((((((($$invalidate(0, el), $$invalidate(22, $_viewDates)), $$invalidate(21, $scrollTime)), $$invalidate(18, timeLimitMin)), $$invalidate(19, $slotDuration)), $$invalidate(20, $slotHeight)), $$invalidate(1, $_times)), $$invalidate(24, $_slotTimeLimits));\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('$$scope' in $$props) $$invalidate(25, $$scope = $$props.$$scope);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*$slotDuration, $_times, $_slotTimeLimits*/ 17301506) {\n\t\t\t{\n\t\t\t\t$$invalidate(2, compact = $slotDuration.seconds >= 3600);\n\t\t\t\t$$invalidate(3, lines.length = $_times.length, lines);\n\n\t\t\t\t// Use intermediate variable so that changes in _slotTimeLimits do not trigger setting the el.scrollTop\n\t\t\t\t$$invalidate(18, timeLimitMin = $_slotTimeLimits.min.seconds);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$allDayContent*/ 8388608) {\n\t\t\t$$invalidate(4, allDayText = createAllDayContent($allDayContent));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*el, $_viewDates, $scrollTime, timeLimitMin, $slotDuration, $slotHeight*/ 8126465) {\n\t\t\tif (el && $_viewDates) {\n\t\t\t\t$$invalidate(0, el.scrollTop = (($scrollTime.seconds - timeLimitMin) / $slotDuration.seconds - 0.5) * $slotHeight, el);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*el, $_times, $slotDuration*/ 524291) {\n\t\t\tif (el && $_times && $slotDuration) {\n\t\t\t\tsetTimeout(recheckScrollable);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\tel,\n\t\t$_times,\n\t\tcompact,\n\t\tlines,\n\t\tallDayText,\n\t\t$theme,\n\t\t$_scroll,\n\t\t_viewDates,\n\t\tscrollTime,\n\t\t_scrollable,\n\t\t_scroll,\n\t\tallDayContent,\n\t\tslotDuration,\n\t\tslotHeight,\n\t\ttheme,\n\t\t_slotTimeLimits,\n\t\t_times,\n\t\trecheckScrollable,\n\t\ttimeLimitMin,\n\t\t$slotDuration,\n\t\t$slotHeight,\n\t\t$scrollTime,\n\t\t$_viewDates,\n\t\t$allDayContent,\n\t\t$_slotTimeLimits,\n\t\t$$scope,\n\t\tslots,\n\t\tdiv5_binding\n\t];\n}\n\nclass Body extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$7, create_fragment$7, safe_not_equal, {}, null, [-1, -1]);\n\t}\n}\n\n/* packages/time-grid/src/Event.svelte generated by Svelte v3.55.1 */\n\nfunction create_fragment$6(ctx) {\n\tlet div1;\n\tlet div0;\n\tlet div0_class_value;\n\tlet setContent_action;\n\tlet t;\n\tlet switch_instance;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tvar switch_value = /*$_interaction*/ ctx[7].resizer;\n\n\tfunction switch_props(ctx) {\n\t\treturn { props: { event: /*event*/ ctx[0] } };\n\t}\n\n\tif (switch_value) {\n\t\tswitch_instance = construct_svelte_component(switch_value, switch_props(ctx));\n\t\tswitch_instance.$on(\"pointerdown\", /*createDragHandler*/ ctx[31](true));\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tdiv1 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\t\t\tt = space();\n\t\t\tif (switch_instance) create_component(switch_instance.$$.fragment);\n\t\t\tattr(div0, \"class\", div0_class_value = /*$theme*/ ctx[2].eventBody);\n\t\t\tattr(div1, \"class\", /*classes*/ ctx[4]);\n\t\t\tattr(div1, \"style\", /*style*/ ctx[5]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div1, anchor);\n\t\t\tappend(div1, div0);\n\t\t\tappend(div1, t);\n\t\t\tif (switch_instance) mount_component(switch_instance, div1, null);\n\t\t\t/*div1_binding*/ ctx[45](div1);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\taction_destroyer(setContent_action = setContent.call(null, div0, /*content*/ ctx[6])),\n\t\t\t\t\tlisten(div1, \"click\", function () {\n\t\t\t\t\t\tif (is_function(maybeIgnore(/*createHandler*/ ctx[30](/*$eventClick*/ ctx[8], /*display*/ ctx[1])))) maybeIgnore(/*createHandler*/ ctx[30](/*$eventClick*/ ctx[8], /*display*/ ctx[1])).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div1, \"mouseenter\", function () {\n\t\t\t\t\t\tif (is_function(/*createHandler*/ ctx[30](/*$eventMouseEnter*/ ctx[9], /*display*/ ctx[1]))) /*createHandler*/ ctx[30](/*$eventMouseEnter*/ ctx[9], /*display*/ ctx[1]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div1, \"mouseleave\", function () {\n\t\t\t\t\t\tif (is_function(/*createHandler*/ ctx[30](/*$eventMouseLeave*/ ctx[10], /*display*/ ctx[1]))) /*createHandler*/ ctx[30](/*$eventMouseLeave*/ ctx[10], /*display*/ ctx[1]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div1, \"pointerdown\", function () {\n\t\t\t\t\t\tif (is_function(/*display*/ ctx[1] === 'auto' && /*$_draggable*/ ctx[11](/*event*/ ctx[0])\n\t\t\t\t\t\t? /*createDragHandler*/ ctx[31]()\n\t\t\t\t\t\t: undefined)) (/*display*/ ctx[1] === 'auto' && /*$_draggable*/ ctx[11](/*event*/ ctx[0])\n\t\t\t\t\t\t? /*createDragHandler*/ ctx[31]()\n\t\t\t\t\t\t: undefined).apply(this, arguments);\n\t\t\t\t\t})\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 4 && div0_class_value !== (div0_class_value = /*$theme*/ ctx[2].eventBody)) {\n\t\t\t\tattr(div0, \"class\", div0_class_value);\n\t\t\t}\n\n\t\t\tif (setContent_action && is_function(setContent_action.update) && dirty[0] & /*content*/ 64) setContent_action.update.call(null, /*content*/ ctx[6]);\n\t\t\tconst switch_instance_changes = {};\n\t\t\tif (dirty[0] & /*event*/ 1) switch_instance_changes.event = /*event*/ ctx[0];\n\n\t\t\tif (switch_value !== (switch_value = /*$_interaction*/ ctx[7].resizer)) {\n\t\t\t\tif (switch_instance) {\n\t\t\t\t\tgroup_outros();\n\t\t\t\t\tconst old_component = switch_instance;\n\n\t\t\t\t\ttransition_out(old_component.$$.fragment, 1, 0, () => {\n\t\t\t\t\t\tdestroy_component(old_component, 1);\n\t\t\t\t\t});\n\n\t\t\t\t\tcheck_outros();\n\t\t\t\t}\n\n\t\t\t\tif (switch_value) {\n\t\t\t\t\tswitch_instance = construct_svelte_component(switch_value, switch_props(ctx));\n\t\t\t\t\tswitch_instance.$on(\"pointerdown\", /*createDragHandler*/ ctx[31](true));\n\t\t\t\t\tcreate_component(switch_instance.$$.fragment);\n\t\t\t\t\ttransition_in(switch_instance.$$.fragment, 1);\n\t\t\t\t\tmount_component(switch_instance, div1, null);\n\t\t\t\t} else {\n\t\t\t\t\tswitch_instance = null;\n\t\t\t\t}\n\t\t\t} else if (switch_value) {\n\t\t\t\tswitch_instance.$set(switch_instance_changes);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*classes*/ 16) {\n\t\t\t\tattr(div1, \"class\", /*classes*/ ctx[4]);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*style*/ 32) {\n\t\t\t\tattr(div1, \"style\", /*style*/ ctx[5]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\tif (switch_instance) transition_in(switch_instance.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\tif (switch_instance) transition_out(switch_instance.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div1);\n\t\t\tif (switch_instance) destroy_component(switch_instance);\n\t\t\t/*div1_binding*/ ctx[45](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction instance$6($$self, $$props, $$invalidate) {\n\tlet $_interaction;\n\tlet $_view;\n\tlet $eventDidMount;\n\tlet $_intlEventTime;\n\tlet $theme;\n\tlet $eventContent;\n\tlet $displayEventEnd;\n\tlet $_classes;\n\tlet $eventColor;\n\tlet $eventBackgroundColor;\n\tlet $_resBgColor;\n\tlet $slotHeight;\n\tlet $_slotTimeLimits;\n\tlet $slotDuration;\n\tlet $eventClick;\n\tlet $eventMouseEnter;\n\tlet $eventMouseLeave;\n\tlet $_draggable;\n\tlet { date } = $$props;\n\tlet { chunk } = $$props;\n\tlet { displayEventEnd, eventBackgroundColor, eventColor, eventContent, eventClick, eventDidMount, eventMouseEnter, eventMouseLeave, slotDuration, slotHeight, theme, _view, _intlEventTime, _interaction, _classes, _draggable, _resBgColor } = getContext('state');\n\tcomponent_subscribe($$self, displayEventEnd, value => $$invalidate(37, $displayEventEnd = value));\n\tcomponent_subscribe($$self, eventBackgroundColor, value => $$invalidate(40, $eventBackgroundColor = value));\n\tcomponent_subscribe($$self, eventColor, value => $$invalidate(39, $eventColor = value));\n\tcomponent_subscribe($$self, eventContent, value => $$invalidate(36, $eventContent = value));\n\tcomponent_subscribe($$self, eventClick, value => $$invalidate(8, $eventClick = value));\n\tcomponent_subscribe($$self, eventDidMount, value => $$invalidate(47, $eventDidMount = value));\n\tcomponent_subscribe($$self, eventMouseEnter, value => $$invalidate(9, $eventMouseEnter = value));\n\tcomponent_subscribe($$self, eventMouseLeave, value => $$invalidate(10, $eventMouseLeave = value));\n\tcomponent_subscribe($$self, slotDuration, value => $$invalidate(44, $slotDuration = value));\n\tcomponent_subscribe($$self, slotHeight, value => $$invalidate(42, $slotHeight = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(2, $theme = value));\n\tcomponent_subscribe($$self, _view, value => $$invalidate(34, $_view = value));\n\tcomponent_subscribe($$self, _intlEventTime, value => $$invalidate(35, $_intlEventTime = value));\n\tcomponent_subscribe($$self, _interaction, value => $$invalidate(7, $_interaction = value));\n\tcomponent_subscribe($$self, _classes, value => $$invalidate(38, $_classes = value));\n\tcomponent_subscribe($$self, _draggable, value => $$invalidate(11, $_draggable = value));\n\tcomponent_subscribe($$self, _resBgColor, value => $$invalidate(41, $_resBgColor = value));\n\tlet { _slotTimeLimits, _viewResources } = getContext('view-state');\n\tcomponent_subscribe($$self, _slotTimeLimits, value => $$invalidate(43, $_slotTimeLimits = value));\n\tlet el;\n\tlet event;\n\tlet display;\n\tlet classes;\n\tlet style;\n\tlet content;\n\tlet timeText;\n\n\tonMount(() => {\n\t\tif (is_function($eventDidMount)) {\n\t\t\t$eventDidMount({\n\t\t\t\tevent: toEventWithLocalDates(event),\n\t\t\t\ttimeText,\n\t\t\t\tel,\n\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t});\n\t\t}\n\t});\n\n\tfunction createHandler(fn, display) {\n\t\treturn display !== 'preview' && is_function(fn)\n\t\t? jsEvent => fn({\n\t\t\t\tevent: toEventWithLocalDates(event),\n\t\t\t\tel,\n\t\t\t\tjsEvent,\n\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t})\n\t\t: undefined;\n\t}\n\n\tfunction createDragHandler(resize) {\n\t\treturn jsEvent => $_interaction.action.dragTimeGrid(event, el, jsEvent, _viewResources, false, resize);\n\t}\n\n\tfunction div1_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tel = $$value;\n\t\t\t$$invalidate(3, el);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('date' in $$props) $$invalidate(32, date = $$props.date);\n\t\tif ('chunk' in $$props) $$invalidate(33, chunk = $$props.chunk);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[1] & /*chunk*/ 4) {\n\t\t\t$$invalidate(0, event = chunk.event);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*event, style, display, $theme*/ 39 | $$self.$$.dirty[1] & /*$slotDuration, $_slotTimeLimits, chunk, date, $slotHeight, $_resBgColor, $eventBackgroundColor, $eventColor, $_classes*/ 16262) {\n\t\t\t{\n\t\t\t\t$$invalidate(1, display = event.display);\n\n\t\t\t\t// Style\n\t\t\t\tlet step = $slotDuration.seconds / 60;\n\n\t\t\t\tlet offset = $_slotTimeLimits.min.seconds / 60;\n\t\t\t\tlet start = (chunk.start - date) / 1000 / 60;\n\t\t\t\tlet end = (chunk.end - date) / 1000 / 60;\n\t\t\t\tlet top = (start - offset) / step * $slotHeight;\n\t\t\t\tlet height = (end - start) / step * $slotHeight;\n\t\t\t\tlet maxHeight = ($_slotTimeLimits.max.seconds / 60 - start) / step * $slotHeight;\n\t\t\t\tlet bgColor = event.backgroundColor || $_resBgColor(event) || $eventBackgroundColor || $eventColor;\n\t\t\t\t$$invalidate(5, style = `top:${top}px;` + `min-height:${height}px;` + `height:${height}px;` + `max-height:${maxHeight}px;`);\n\n\t\t\t\tif (bgColor) {\n\t\t\t\t\t$$invalidate(5, style += `background-color:${bgColor};`);\n\t\t\t\t}\n\n\t\t\t\tif (display === 'auto' || display === 'ghost') {\n\t\t\t\t\t$$invalidate(5, style += `z-index:${chunk.column + 1};` + `left:${100 / chunk.group.columns.length * chunk.column}%;` + `width:${100 / chunk.group.columns.length * 0.5 * (1 + chunk.group.columns.length - chunk.column)}%;`);\n\t\t\t\t}\n\n\t\t\t\t// Class\n\t\t\t\t$$invalidate(4, classes = $_classes(display === 'background' ? $theme.bgEvent : $theme.event, event));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$theme*/ 4 | $$self.$$.dirty[1] & /*chunk, $displayEventEnd, $eventContent, $_intlEventTime, $_view*/ 124) {\n\t\t\t// Content\n\t\t\t$$invalidate(6, [timeText, content] = createEventContent(chunk, $displayEventEnd, $eventContent, $theme, $_intlEventTime, $_view), content);\n\t\t}\n\t};\n\n\treturn [\n\t\tevent,\n\t\tdisplay,\n\t\t$theme,\n\t\tel,\n\t\tclasses,\n\t\tstyle,\n\t\tcontent,\n\t\t$_interaction,\n\t\t$eventClick,\n\t\t$eventMouseEnter,\n\t\t$eventMouseLeave,\n\t\t$_draggable,\n\t\tdisplayEventEnd,\n\t\teventBackgroundColor,\n\t\teventColor,\n\t\teventContent,\n\t\teventClick,\n\t\teventDidMount,\n\t\teventMouseEnter,\n\t\teventMouseLeave,\n\t\tslotDuration,\n\t\tslotHeight,\n\t\ttheme,\n\t\t_view,\n\t\t_intlEventTime,\n\t\t_interaction,\n\t\t_classes,\n\t\t_draggable,\n\t\t_resBgColor,\n\t\t_slotTimeLimits,\n\t\tcreateHandler,\n\t\tcreateDragHandler,\n\t\tdate,\n\t\tchunk,\n\t\t$_view,\n\t\t$_intlEventTime,\n\t\t$eventContent,\n\t\t$displayEventEnd,\n\t\t$_classes,\n\t\t$eventColor,\n\t\t$eventBackgroundColor,\n\t\t$_resBgColor,\n\t\t$slotHeight,\n\t\t$_slotTimeLimits,\n\t\t$slotDuration,\n\t\tdiv1_binding\n\t];\n}\n\nclass Event$1 extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$6, create_fragment$6, safe_not_equal, { date: 32, chunk: 33 }, null, [-1, -1]);\n\t}\n}\n\n/* packages/time-grid/src/NowIndicator.svelte generated by Svelte v3.55.1 */\n\nfunction create_fragment$5(ctx) {\n\tlet div;\n\tlet div_class_value;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[1].nowIndicator);\n\t\t\tset_style(div, \"top\", /*top*/ ctx[0] + \"px\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (dirty & /*$theme*/ 2 && div_class_value !== (div_class_value = /*$theme*/ ctx[1].nowIndicator)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\n\t\t\tif (dirty & /*top*/ 1) {\n\t\t\t\tset_style(div, \"top\", /*top*/ ctx[0] + \"px\");\n\t\t\t}\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t}\n\t};\n}\n\nfunction instance$5($$self, $$props, $$invalidate) {\n\tlet $slotHeight;\n\tlet $_slotTimeLimits;\n\tlet $slotDuration;\n\tlet $_today;\n\tlet $_now;\n\tlet $theme;\n\tlet { slotDuration, slotHeight, theme, _now, _today } = getContext('state');\n\tcomponent_subscribe($$self, slotDuration, value => $$invalidate(11, $slotDuration = value));\n\tcomponent_subscribe($$self, slotHeight, value => $$invalidate(9, $slotHeight = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(1, $theme = value));\n\tcomponent_subscribe($$self, _now, value => $$invalidate(13, $_now = value));\n\tcomponent_subscribe($$self, _today, value => $$invalidate(12, $_today = value));\n\tlet { _slotTimeLimits } = getContext('view-state');\n\tcomponent_subscribe($$self, _slotTimeLimits, value => $$invalidate(10, $_slotTimeLimits = value));\n\tlet start;\n\tlet top = 0;\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*$_now, $_today*/ 12288) {\n\t\t\t$$invalidate(8, start = ($_now - $_today) / 1000 / 60);\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*$slotDuration, $_slotTimeLimits, start, $slotHeight*/ 3840) {\n\t\t\t{\n\t\t\t\t// Style\n\t\t\t\tlet step = $slotDuration.seconds / 60;\n\n\t\t\t\tlet offset = $_slotTimeLimits.min.seconds / 60;\n\t\t\t\t$$invalidate(0, top = (start - offset) / step * $slotHeight);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\ttop,\n\t\t$theme,\n\t\tslotDuration,\n\t\tslotHeight,\n\t\ttheme,\n\t\t_now,\n\t\t_today,\n\t\t_slotTimeLimits,\n\t\tstart,\n\t\t$slotHeight,\n\t\t$_slotTimeLimits,\n\t\t$slotDuration,\n\t\t$_today,\n\t\t$_now\n\t];\n}\n\nclass NowIndicator extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$5, create_fragment$5, safe_not_equal, {});\n\t}\n}\n\n/* packages/time-grid/src/Day.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context$3(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[42] = list[i];\n\treturn child_ctx;\n}\n\nfunction get_each_context_1$1(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[42] = list[i];\n\treturn child_ctx;\n}\n\n// (117:8) {#each bgChunks as chunk (chunk.event)}\nfunction create_each_block_1$1(key_1, ctx) {\n\tlet first;\n\tlet event;\n\tlet current;\n\n\tevent = new Event$1({\n\t\t\tprops: {\n\t\t\t\tdate: /*date*/ ctx[0],\n\t\t\t\tchunk: /*chunk*/ ctx[42]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tkey: key_1,\n\t\tfirst: null,\n\t\tc() {\n\t\t\tfirst = empty();\n\t\t\tcreate_component(event.$$.fragment);\n\t\t\tthis.first = first;\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, first, anchor);\n\t\t\tmount_component(event, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\t\t\tconst event_changes = {};\n\t\t\tif (dirty[0] & /*date*/ 1) event_changes.date = /*date*/ ctx[0];\n\t\t\tif (dirty[0] & /*bgChunks*/ 8) event_changes.chunk = /*chunk*/ ctx[42];\n\t\t\tevent.$set(event_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(event.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(event.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(first);\n\t\t\tdestroy_component(event, detaching);\n\t\t}\n\t};\n}\n\n// (123:8) {#if iChunks[1]}\nfunction create_if_block_2(ctx) {\n\tlet event;\n\tlet current;\n\n\tevent = new Event$1({\n\t\t\tprops: {\n\t\t\t\tdate: /*date*/ ctx[0],\n\t\t\t\tchunk: /*iChunks*/ ctx[4][1]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(event.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(event, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst event_changes = {};\n\t\t\tif (dirty[0] & /*date*/ 1) event_changes.date = /*date*/ ctx[0];\n\t\t\tif (dirty[0] & /*iChunks*/ 16) event_changes.chunk = /*iChunks*/ ctx[4][1];\n\t\t\tevent.$set(event_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(event.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(event.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(event, detaching);\n\t\t}\n\t};\n}\n\n// (126:8) {#each chunks as chunk (chunk.event)}\nfunction create_each_block$3(key_1, ctx) {\n\tlet first;\n\tlet event;\n\tlet current;\n\n\tevent = new Event$1({\n\t\t\tprops: {\n\t\t\t\tdate: /*date*/ ctx[0],\n\t\t\t\tchunk: /*chunk*/ ctx[42]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tkey: key_1,\n\t\tfirst: null,\n\t\tc() {\n\t\t\tfirst = empty();\n\t\t\tcreate_component(event.$$.fragment);\n\t\t\tthis.first = first;\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, first, anchor);\n\t\t\tmount_component(event, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\t\t\tconst event_changes = {};\n\t\t\tif (dirty[0] & /*date*/ 1) event_changes.date = /*date*/ ctx[0];\n\t\t\tif (dirty[0] & /*chunks*/ 4) event_changes.chunk = /*chunk*/ ctx[42];\n\t\t\tevent.$set(event_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(event.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(event.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(first);\n\t\t\tdestroy_component(event, detaching);\n\t\t}\n\t};\n}\n\n// (130:8) {#if iChunks[0] && !iChunks[0].event.allDay}\nfunction create_if_block_1(ctx) {\n\tlet event;\n\tlet current;\n\n\tevent = new Event$1({\n\t\t\tprops: {\n\t\t\t\tdate: /*date*/ ctx[0],\n\t\t\t\tchunk: /*iChunks*/ ctx[4][0]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(event.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(event, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst event_changes = {};\n\t\t\tif (dirty[0] & /*date*/ 1) event_changes.date = /*date*/ ctx[0];\n\t\t\tif (dirty[0] & /*iChunks*/ 16) event_changes.chunk = /*iChunks*/ ctx[4][0];\n\t\t\tevent.$set(event_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(event.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(event.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(event, detaching);\n\t\t}\n\t};\n}\n\n// (136:8) {#if $nowIndicator && isToday}\nfunction create_if_block$2(ctx) {\n\tlet nowindicator;\n\tlet current;\n\tnowindicator = new NowIndicator({});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(nowindicator.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(nowindicator, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(nowindicator.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(nowindicator.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(nowindicator, detaching);\n\t\t}\n\t};\n}\n\nfunction create_fragment$4(ctx) {\n\tlet div3;\n\tlet div0;\n\tlet each_blocks_1 = [];\n\tlet each0_lookup = new Map();\n\tlet div0_class_value;\n\tlet t0;\n\tlet div1;\n\tlet t1;\n\tlet each_blocks = [];\n\tlet each1_lookup = new Map();\n\tlet t2;\n\tlet div1_class_value;\n\tlet t3;\n\tlet div2;\n\tlet div2_class_value;\n\tlet div3_class_value;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tlet each_value_1 = /*bgChunks*/ ctx[3];\n\tconst get_key = ctx => /*chunk*/ ctx[42].event;\n\n\tfor (let i = 0; i < each_value_1.length; i += 1) {\n\t\tlet child_ctx = get_each_context_1$1(ctx, each_value_1, i);\n\t\tlet key = get_key(child_ctx);\n\t\teach0_lookup.set(key, each_blocks_1[i] = create_each_block_1$1(key, child_ctx));\n\t}\n\n\tlet if_block0 = /*iChunks*/ ctx[4][1] && create_if_block_2(ctx);\n\tlet each_value = /*chunks*/ ctx[2];\n\tconst get_key_1 = ctx => /*chunk*/ ctx[42].event;\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\tlet child_ctx = get_each_context$3(ctx, each_value, i);\n\t\tlet key = get_key_1(child_ctx);\n\t\teach1_lookup.set(key, each_blocks[i] = create_each_block$3(key, child_ctx));\n\t}\n\n\tlet if_block1 = /*iChunks*/ ctx[4][0] && !/*iChunks*/ ctx[4][0].event.allDay && create_if_block_1(ctx);\n\tlet if_block2 = /*$nowIndicator*/ ctx[11] && /*isToday*/ ctx[5] && create_if_block$2();\n\n\treturn {\n\t\tc() {\n\t\t\tdiv3 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\n\t\t\tfor (let i = 0; i < each_blocks_1.length; i += 1) {\n\t\t\t\teach_blocks_1[i].c();\n\t\t\t}\n\n\t\t\tt0 = space();\n\t\t\tdiv1 = element(\"div\");\n\t\t\tif (if_block0) if_block0.c();\n\t\t\tt1 = space();\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tt2 = space();\n\t\t\tif (if_block1) if_block1.c();\n\t\t\tt3 = space();\n\t\t\tdiv2 = element(\"div\");\n\t\t\tif (if_block2) if_block2.c();\n\t\t\tattr(div0, \"class\", div0_class_value = /*$theme*/ ctx[7].bgEvents);\n\t\t\tattr(div1, \"class\", div1_class_value = /*$theme*/ ctx[7].events);\n\t\t\tattr(div2, \"class\", div2_class_value = /*$theme*/ ctx[7].extra);\n\n\t\t\tattr(div3, \"class\", div3_class_value = \"\" + (/*$theme*/ ctx[7].day + (/*isToday*/ ctx[5] ? ' ' + /*$theme*/ ctx[7].today : '') + (/*highlight*/ ctx[6]\n\t\t\t? ' ' + /*$theme*/ ctx[7].highlight\n\t\t\t: '')));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div3, anchor);\n\t\t\tappend(div3, div0);\n\n\t\t\tfor (let i = 0; i < each_blocks_1.length; i += 1) {\n\t\t\t\teach_blocks_1[i].m(div0, null);\n\t\t\t}\n\n\t\t\tappend(div3, t0);\n\t\t\tappend(div3, div1);\n\t\t\tif (if_block0) if_block0.m(div1, null);\n\t\t\tappend(div1, t1);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(div1, null);\n\t\t\t}\n\n\t\t\tappend(div1, t2);\n\t\t\tif (if_block1) if_block1.m(div1, null);\n\t\t\tappend(div3, t3);\n\t\t\tappend(div3, div2);\n\t\t\tif (if_block2) if_block2.m(div2, null);\n\t\t\t/*div3_binding*/ ctx[36](div3);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(div3, \"click\", function () {\n\t\t\t\t\t\tif (is_function(maybeIgnore(/*createClickHandler*/ ctx[25](/*$dateClick*/ ctx[8])))) maybeIgnore(/*createClickHandler*/ ctx[25](/*$dateClick*/ ctx[8])).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div3, \"pointerenter\", function () {\n\t\t\t\t\t\tif (is_function(/*createPointerEnterHandler*/ ctx[26](/*$_interaction*/ ctx[9]))) /*createPointerEnterHandler*/ ctx[26](/*$_interaction*/ ctx[9]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div3, \"pointerleave\", function () {\n\t\t\t\t\t\tif (is_function(createPointerLeaveHandler(/*$_interaction*/ ctx[9]))) createPointerLeaveHandler(/*$_interaction*/ ctx[9]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div3, \"pointerdown\", function () {\n\t\t\t\t\t\tif (is_function(/*createPointerDownHandler*/ ctx[27](/*$_interaction*/ ctx[9], /*$selectable*/ ctx[10]))) /*createPointerDownHandler*/ ctx[27](/*$_interaction*/ ctx[9], /*$selectable*/ ctx[10]).apply(this, arguments);\n\t\t\t\t\t})\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (dirty[0] & /*date, bgChunks*/ 9) {\n\t\t\t\teach_value_1 = /*bgChunks*/ ctx[3];\n\t\t\t\tgroup_outros();\n\t\t\t\teach_blocks_1 = update_keyed_each(each_blocks_1, dirty, get_key, 1, ctx, each_value_1, each0_lookup, div0, outro_and_destroy_block, create_each_block_1$1, null, get_each_context_1$1);\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 128 && div0_class_value !== (div0_class_value = /*$theme*/ ctx[7].bgEvents)) {\n\t\t\t\tattr(div0, \"class\", div0_class_value);\n\t\t\t}\n\n\t\t\tif (/*iChunks*/ ctx[4][1]) {\n\t\t\t\tif (if_block0) {\n\t\t\t\t\tif_block0.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*iChunks*/ 16) {\n\t\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block0 = create_if_block_2(ctx);\n\t\t\t\t\tif_block0.c();\n\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\tif_block0.m(div1, t1);\n\t\t\t\t}\n\t\t\t} else if (if_block0) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block0, 1, 1, () => {\n\t\t\t\t\tif_block0 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*date, chunks*/ 5) {\n\t\t\t\teach_value = /*chunks*/ ctx[2];\n\t\t\t\tgroup_outros();\n\t\t\t\teach_blocks = update_keyed_each(each_blocks, dirty, get_key_1, 1, ctx, each_value, each1_lookup, div1, outro_and_destroy_block, create_each_block$3, t2, get_each_context$3);\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (/*iChunks*/ ctx[4][0] && !/*iChunks*/ ctx[4][0].event.allDay) {\n\t\t\t\tif (if_block1) {\n\t\t\t\t\tif_block1.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*iChunks*/ 16) {\n\t\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block1 = create_if_block_1(ctx);\n\t\t\t\t\tif_block1.c();\n\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\tif_block1.m(div1, null);\n\t\t\t\t}\n\t\t\t} else if (if_block1) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block1, 1, 1, () => {\n\t\t\t\t\tif_block1 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 128 && div1_class_value !== (div1_class_value = /*$theme*/ ctx[7].events)) {\n\t\t\t\tattr(div1, \"class\", div1_class_value);\n\t\t\t}\n\n\t\t\tif (/*$nowIndicator*/ ctx[11] && /*isToday*/ ctx[5]) {\n\t\t\t\tif (if_block2) {\n\t\t\t\t\tif (dirty[0] & /*$nowIndicator, isToday*/ 2080) {\n\t\t\t\t\t\ttransition_in(if_block2, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block2 = create_if_block$2();\n\t\t\t\t\tif_block2.c();\n\t\t\t\t\ttransition_in(if_block2, 1);\n\t\t\t\t\tif_block2.m(div2, null);\n\t\t\t\t}\n\t\t\t} else if (if_block2) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block2, 1, 1, () => {\n\t\t\t\t\tif_block2 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 128 && div2_class_value !== (div2_class_value = /*$theme*/ ctx[7].extra)) {\n\t\t\t\tattr(div2, \"class\", div2_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme, isToday, highlight*/ 224 && div3_class_value !== (div3_class_value = \"\" + (/*$theme*/ ctx[7].day + (/*isToday*/ ctx[5] ? ' ' + /*$theme*/ ctx[7].today : '') + (/*highlight*/ ctx[6]\n\t\t\t? ' ' + /*$theme*/ ctx[7].highlight\n\t\t\t: '')))) {\n\t\t\t\tattr(div3, \"class\", div3_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value_1.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks_1[i]);\n\t\t\t}\n\n\t\t\ttransition_in(if_block0);\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\ttransition_in(if_block1);\n\t\t\ttransition_in(if_block2);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\tfor (let i = 0; i < each_blocks_1.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks_1[i]);\n\t\t\t}\n\n\t\t\ttransition_out(if_block0);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\ttransition_out(if_block1);\n\t\t\ttransition_out(if_block2);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div3);\n\n\t\t\tfor (let i = 0; i < each_blocks_1.length; i += 1) {\n\t\t\t\teach_blocks_1[i].d();\n\t\t\t}\n\n\t\t\tif (if_block0) if_block0.d();\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].d();\n\t\t\t}\n\n\t\t\tif (if_block1) if_block1.d();\n\t\t\tif (if_block2) if_block2.d();\n\t\t\t/*div3_binding*/ ctx[36](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction createPointerLeaveHandler(interaction) {\n\treturn interaction.pointer\n\t? interaction.pointer.leave\n\t: undefined;\n}\n\nfunction instance$4($$self, $$props, $$invalidate) {\n\tlet $_slotTimeLimits;\n\tlet $_view;\n\tlet $slotDuration;\n\tlet $slotHeight;\n\tlet $highlightedDates;\n\tlet $_today;\n\tlet $_iEvents;\n\tlet $_events;\n\tlet $theme;\n\tlet $dateClick;\n\tlet $_interaction;\n\tlet $selectable;\n\tlet $nowIndicator;\n\tlet { date } = $$props;\n\tlet { resource = undefined } = $$props;\n\tlet { _events, _iEvents, dateClick, highlightedDates, nowIndicator, slotDuration, slotHeight, selectable, theme, _interaction, _today, _view } = getContext('state');\n\tcomponent_subscribe($$self, _events, value => $$invalidate(35, $_events = value));\n\tcomponent_subscribe($$self, _iEvents, value => $$invalidate(34, $_iEvents = value));\n\tcomponent_subscribe($$self, dateClick, value => $$invalidate(8, $dateClick = value));\n\tcomponent_subscribe($$self, highlightedDates, value => $$invalidate(32, $highlightedDates = value));\n\tcomponent_subscribe($$self, nowIndicator, value => $$invalidate(11, $nowIndicator = value));\n\tcomponent_subscribe($$self, slotDuration, value => $$invalidate(38, $slotDuration = value));\n\tcomponent_subscribe($$self, slotHeight, value => $$invalidate(39, $slotHeight = value));\n\tcomponent_subscribe($$self, selectable, value => $$invalidate(10, $selectable = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(7, $theme = value));\n\tcomponent_subscribe($$self, _interaction, value => $$invalidate(9, $_interaction = value));\n\tcomponent_subscribe($$self, _today, value => $$invalidate(33, $_today = value));\n\tcomponent_subscribe($$self, _view, value => $$invalidate(37, $_view = value));\n\tlet { _slotTimeLimits, _viewResources } = getContext('view-state');\n\tcomponent_subscribe($$self, _slotTimeLimits, value => $$invalidate(31, $_slotTimeLimits = value));\n\tlet el;\n\tlet chunks, bgChunks, iChunks = [];\n\tlet isToday, highlight;\n\tlet start, end;\n\n\tfunction dateFromPoint(y) {\n\t\ty -= rect(el).top;\n\t\treturn addDuration(cloneDate(date), $slotDuration, Math.floor(y / $slotHeight + $_slotTimeLimits.min.seconds / $slotDuration.seconds));\n\t}\n\n\tfunction createClickHandler(fn) {\n\t\treturn is_function(fn)\n\t\t? jsEvent => {\n\t\t\t\tlet d = dateFromPoint(jsEvent.clientY);\n\n\t\t\t\tfn({\n\t\t\t\t\tallDay: false,\n\t\t\t\t\tdate: toLocalDate(d),\n\t\t\t\t\tdateStr: toISOString(d),\n\t\t\t\t\tdayEl: el,\n\t\t\t\t\tjsEvent,\n\t\t\t\t\tview: toViewWithLocalDates($_view),\n\t\t\t\t\tresource\n\t\t\t\t});\n\t\t\t}\n\t\t: undefined;\n\t}\n\n\tfunction createPointerEnterHandler(interaction) {\n\t\treturn interaction.pointer\n\t\t? jsEvent => interaction.pointer.enterTimeGrid(date, el, jsEvent, _slotTimeLimits, resource)\n\t\t: undefined;\n\t}\n\n\tfunction createPointerDownHandler(interaction, selectable) {\n\t\treturn selectable && interaction.action\n\t\t? jsEvent => interaction.action.selectTimeGrid(date, el, jsEvent, _viewResources, $_slotTimeLimits, false)\n\t\t: undefined;\n\t}\n\n\tfunction div3_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tel = $$value;\n\t\t\t$$invalidate(1, el);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('date' in $$props) $$invalidate(0, date = $$props.date);\n\t\tif ('resource' in $$props) $$invalidate(28, resource = $$props.resource);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*date*/ 1 | $$self.$$.dirty[1] & /*$_slotTimeLimits*/ 1) {\n\t\t\t{\n\t\t\t\t$$invalidate(29, start = addDuration(cloneDate(date), $_slotTimeLimits.min));\n\t\t\t\t$$invalidate(30, end = addDuration(cloneDate(date), $_slotTimeLimits.max));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*start, end, resource, bgChunks, chunks*/ 1879048204 | $$self.$$.dirty[1] & /*$_events*/ 16) {\n\t\t\t{\n\t\t\t\t$$invalidate(2, chunks = []);\n\t\t\t\t$$invalidate(3, bgChunks = []);\n\n\t\t\t\tfor (let event of $_events) {\n\t\t\t\t\tif (!event.allDay && eventIntersects(event, start, end, resource, true)) {\n\t\t\t\t\t\tlet chunk = createEventChunk(event, start, end);\n\n\t\t\t\t\t\tswitch (event.display) {\n\t\t\t\t\t\t\tcase 'background':\n\t\t\t\t\t\t\t\tbgChunks.push(chunk);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tchunks.push(chunk);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroupEventChunks(chunks);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*start, end, resource*/ 1879048192 | $$self.$$.dirty[1] & /*$_iEvents*/ 8) {\n\t\t\t$$invalidate(4, iChunks = $_iEvents.map(event => event && eventIntersects(event, start, end, resource, true)\n\t\t\t? createEventChunk(event, start, end)\n\t\t\t: null));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*date*/ 1 | $$self.$$.dirty[1] & /*$_today*/ 4) {\n\t\t\t$$invalidate(5, isToday = datesEqual(date, $_today));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*date*/ 1 | $$self.$$.dirty[1] & /*$highlightedDates*/ 2) {\n\t\t\t$$invalidate(6, highlight = $highlightedDates.some(d => datesEqual(d, date)));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*el*/ 2) {\n\t\t\tif (el) {\n\t\t\t\tsetFn(el, dateFromPoint);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\tdate,\n\t\tel,\n\t\tchunks,\n\t\tbgChunks,\n\t\tiChunks,\n\t\tisToday,\n\t\thighlight,\n\t\t$theme,\n\t\t$dateClick,\n\t\t$_interaction,\n\t\t$selectable,\n\t\t$nowIndicator,\n\t\t_events,\n\t\t_iEvents,\n\t\tdateClick,\n\t\thighlightedDates,\n\t\tnowIndicator,\n\t\tslotDuration,\n\t\tslotHeight,\n\t\tselectable,\n\t\ttheme,\n\t\t_interaction,\n\t\t_today,\n\t\t_view,\n\t\t_slotTimeLimits,\n\t\tcreateClickHandler,\n\t\tcreatePointerEnterHandler,\n\t\tcreatePointerDownHandler,\n\t\tresource,\n\t\tstart,\n\t\tend,\n\t\t$_slotTimeLimits,\n\t\t$highlightedDates,\n\t\t$_today,\n\t\t$_iEvents,\n\t\t$_events,\n\t\tdiv3_binding\n\t];\n}\n\nclass Day$1 extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$4, create_fragment$4, safe_not_equal, { date: 0, resource: 28 }, null, [-1, -1]);\n\t}\n}\n\n/* packages/time-grid/src/all-day/Event.svelte generated by Svelte v3.55.1 */\n\nfunction create_fragment$3(ctx) {\n\tlet div1;\n\tlet div0;\n\tlet div0_class_value;\n\tlet setContent_action;\n\tlet t;\n\tlet switch_instance;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tvar switch_value = /*$_interaction*/ ctx[7].resizer;\n\n\tfunction switch_props(ctx) {\n\t\treturn { props: { event: /*event*/ ctx[0] } };\n\t}\n\n\tif (switch_value) {\n\t\tswitch_instance = construct_svelte_component(switch_value, switch_props(ctx));\n\t\tswitch_instance.$on(\"pointerdown\", /*createDragHandler*/ ctx[27](true));\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tdiv1 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\t\t\tt = space();\n\t\t\tif (switch_instance) create_component(switch_instance.$$.fragment);\n\t\t\tattr(div0, \"class\", div0_class_value = /*$theme*/ ctx[1].eventBody);\n\t\t\tattr(div1, \"class\", /*classes*/ ctx[3]);\n\t\t\tattr(div1, \"style\", /*style*/ ctx[4]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div1, anchor);\n\t\t\tappend(div1, div0);\n\t\t\tappend(div1, t);\n\t\t\tif (switch_instance) mount_component(switch_instance, div1, null);\n\t\t\t/*div1_binding*/ ctx[39](div1);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\taction_destroyer(setContent_action = setContent.call(null, div0, /*content*/ ctx[5])),\n\t\t\t\t\tlisten(div1, \"click\", function () {\n\t\t\t\t\t\tif (is_function(maybeIgnore(/*createHandler*/ ctx[26](/*$eventClick*/ ctx[8], /*display*/ ctx[6])))) maybeIgnore(/*createHandler*/ ctx[26](/*$eventClick*/ ctx[8], /*display*/ ctx[6])).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div1, \"mouseenter\", function () {\n\t\t\t\t\t\tif (is_function(/*createHandler*/ ctx[26](/*$eventMouseEnter*/ ctx[9], /*display*/ ctx[6]))) /*createHandler*/ ctx[26](/*$eventMouseEnter*/ ctx[9], /*display*/ ctx[6]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div1, \"mouseleave\", function () {\n\t\t\t\t\t\tif (is_function(/*createHandler*/ ctx[26](/*$eventMouseLeave*/ ctx[10], /*display*/ ctx[6]))) /*createHandler*/ ctx[26](/*$eventMouseLeave*/ ctx[10], /*display*/ ctx[6]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div1, \"pointerdown\", function () {\n\t\t\t\t\t\tif (is_function(/*display*/ ctx[6] === 'auto' && /*$_draggable*/ ctx[11](/*event*/ ctx[0])\n\t\t\t\t\t\t? /*createDragHandler*/ ctx[27]()\n\t\t\t\t\t\t: undefined)) (/*display*/ ctx[6] === 'auto' && /*$_draggable*/ ctx[11](/*event*/ ctx[0])\n\t\t\t\t\t\t? /*createDragHandler*/ ctx[27]()\n\t\t\t\t\t\t: undefined).apply(this, arguments);\n\t\t\t\t\t})\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 2 && div0_class_value !== (div0_class_value = /*$theme*/ ctx[1].eventBody)) {\n\t\t\t\tattr(div0, \"class\", div0_class_value);\n\t\t\t}\n\n\t\t\tif (setContent_action && is_function(setContent_action.update) && dirty[0] & /*content*/ 32) setContent_action.update.call(null, /*content*/ ctx[5]);\n\t\t\tconst switch_instance_changes = {};\n\t\t\tif (dirty[0] & /*event*/ 1) switch_instance_changes.event = /*event*/ ctx[0];\n\n\t\t\tif (switch_value !== (switch_value = /*$_interaction*/ ctx[7].resizer)) {\n\t\t\t\tif (switch_instance) {\n\t\t\t\t\tgroup_outros();\n\t\t\t\t\tconst old_component = switch_instance;\n\n\t\t\t\t\ttransition_out(old_component.$$.fragment, 1, 0, () => {\n\t\t\t\t\t\tdestroy_component(old_component, 1);\n\t\t\t\t\t});\n\n\t\t\t\t\tcheck_outros();\n\t\t\t\t}\n\n\t\t\t\tif (switch_value) {\n\t\t\t\t\tswitch_instance = construct_svelte_component(switch_value, switch_props(ctx));\n\t\t\t\t\tswitch_instance.$on(\"pointerdown\", /*createDragHandler*/ ctx[27](true));\n\t\t\t\t\tcreate_component(switch_instance.$$.fragment);\n\t\t\t\t\ttransition_in(switch_instance.$$.fragment, 1);\n\t\t\t\t\tmount_component(switch_instance, div1, null);\n\t\t\t\t} else {\n\t\t\t\t\tswitch_instance = null;\n\t\t\t\t}\n\t\t\t} else if (switch_value) {\n\t\t\t\tswitch_instance.$set(switch_instance_changes);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*classes*/ 8) {\n\t\t\t\tattr(div1, \"class\", /*classes*/ ctx[3]);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*style*/ 16) {\n\t\t\t\tattr(div1, \"style\", /*style*/ ctx[4]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\tif (switch_instance) transition_in(switch_instance.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\tif (switch_instance) transition_out(switch_instance.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div1);\n\t\t\tif (switch_instance) destroy_component(switch_instance);\n\t\t\t/*div1_binding*/ ctx[39](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction instance$3($$self, $$props, $$invalidate) {\n\tlet $_interaction;\n\tlet $_view;\n\tlet $eventDidMount;\n\tlet $_intlEventTime;\n\tlet $theme;\n\tlet $eventContent;\n\tlet $displayEventEnd;\n\tlet $_classes;\n\tlet $eventColor;\n\tlet $eventBackgroundColor;\n\tlet $eventClick;\n\tlet $eventMouseEnter;\n\tlet $eventMouseLeave;\n\tlet $_draggable;\n\tlet { chunk } = $$props;\n\tlet { longChunks = {} } = $$props;\n\tlet { displayEventEnd, eventBackgroundColor, eventClick, eventColor, eventContent, eventDidMount, eventMouseEnter, eventMouseLeave, theme, _view, _intlEventTime, _interaction, _classes, _draggable } = getContext('state');\n\tcomponent_subscribe($$self, displayEventEnd, value => $$invalidate(35, $displayEventEnd = value));\n\tcomponent_subscribe($$self, eventBackgroundColor, value => $$invalidate(38, $eventBackgroundColor = value));\n\tcomponent_subscribe($$self, eventClick, value => $$invalidate(8, $eventClick = value));\n\tcomponent_subscribe($$self, eventColor, value => $$invalidate(37, $eventColor = value));\n\tcomponent_subscribe($$self, eventContent, value => $$invalidate(34, $eventContent = value));\n\tcomponent_subscribe($$self, eventDidMount, value => $$invalidate(41, $eventDidMount = value));\n\tcomponent_subscribe($$self, eventMouseEnter, value => $$invalidate(9, $eventMouseEnter = value));\n\tcomponent_subscribe($$self, eventMouseLeave, value => $$invalidate(10, $eventMouseLeave = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(1, $theme = value));\n\tcomponent_subscribe($$self, _view, value => $$invalidate(32, $_view = value));\n\tcomponent_subscribe($$self, _intlEventTime, value => $$invalidate(33, $_intlEventTime = value));\n\tcomponent_subscribe($$self, _interaction, value => $$invalidate(7, $_interaction = value));\n\tcomponent_subscribe($$self, _classes, value => $$invalidate(36, $_classes = value));\n\tcomponent_subscribe($$self, _draggable, value => $$invalidate(11, $_draggable = value));\n\tlet { _viewResources } = getContext('view-state');\n\tcreateEventDispatcher();\n\tlet el;\n\tlet event;\n\tlet classes;\n\tlet style;\n\tlet content;\n\tlet timeText;\n\tlet margin = 1;\n\tlet display;\n\n\tonMount(() => {\n\t\tif (is_function($eventDidMount)) {\n\t\t\t$eventDidMount({\n\t\t\t\tevent: toEventWithLocalDates(event),\n\t\t\t\ttimeText,\n\t\t\t\tel,\n\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t});\n\t\t}\n\t});\n\n\tfunction createHandler(fn, display) {\n\t\treturn display !== 'preview' && is_function(fn)\n\t\t? jsEvent => fn({\n\t\t\t\tevent: toEventWithLocalDates(event),\n\t\t\t\tel,\n\t\t\t\tjsEvent,\n\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t})\n\t\t: undefined;\n\t}\n\n\tfunction createDragHandler(resize) {\n\t\treturn jsEvent => $_interaction.action.dragTimeGrid(event, el, jsEvent, _viewResources, true, resize);\n\t}\n\n\tfunction reposition() {\n\t\tif (!el || display === 'preview') {\n\t\t\treturn;\n\t\t}\n\n\t\t$$invalidate(31, margin = repositionEvent(chunk, longChunks, height(el)));\n\t}\n\n\tfunction div1_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tel = $$value;\n\t\t\t$$invalidate(2, el);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('chunk' in $$props) $$invalidate(28, chunk = $$props.chunk);\n\t\tif ('longChunks' in $$props) $$invalidate(29, longChunks = $$props.longChunks);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*chunk*/ 268435456) {\n\t\t\t$$invalidate(0, event = chunk.event);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*event, chunk, style, $theme*/ 268435475 | $$self.$$.dirty[1] & /*$eventBackgroundColor, $eventColor, margin, $_classes*/ 225) {\n\t\t\t{\n\t\t\t\t$$invalidate(6, display = event.display);\n\n\t\t\t\t// Class & Style\n\t\t\t\tlet bgColor = event.backgroundColor || $eventBackgroundColor || $eventColor;\n\n\t\t\t\t$$invalidate(4, style = `width:calc(${chunk.days * 100}% + ${(chunk.days - 1) * 7}px);` + `margin-top:${margin}px;`);\n\n\t\t\t\tif (bgColor) {\n\t\t\t\t\t$$invalidate(4, style += `background-color:${bgColor};`);\n\t\t\t\t}\n\n\t\t\t\t$$invalidate(3, classes = $_classes($theme.event, event));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*chunk, $theme*/ 268435458 | $$self.$$.dirty[1] & /*$displayEventEnd, $eventContent, $_intlEventTime, $_view*/ 30) {\n\t\t\t// Content\n\t\t\t$$invalidate(5, [timeText, content] = createEventContent(chunk, $displayEventEnd, $eventContent, $theme, $_intlEventTime, $_view), content);\n\t\t}\n\t};\n\n\treturn [\n\t\tevent,\n\t\t$theme,\n\t\tel,\n\t\tclasses,\n\t\tstyle,\n\t\tcontent,\n\t\tdisplay,\n\t\t$_interaction,\n\t\t$eventClick,\n\t\t$eventMouseEnter,\n\t\t$eventMouseLeave,\n\t\t$_draggable,\n\t\tdisplayEventEnd,\n\t\teventBackgroundColor,\n\t\teventClick,\n\t\teventColor,\n\t\teventContent,\n\t\teventDidMount,\n\t\teventMouseEnter,\n\t\teventMouseLeave,\n\t\ttheme,\n\t\t_view,\n\t\t_intlEventTime,\n\t\t_interaction,\n\t\t_classes,\n\t\t_draggable,\n\t\tcreateHandler,\n\t\tcreateDragHandler,\n\t\tchunk,\n\t\tlongChunks,\n\t\treposition,\n\t\tmargin,\n\t\t$_view,\n\t\t$_intlEventTime,\n\t\t$eventContent,\n\t\t$displayEventEnd,\n\t\t$_classes,\n\t\t$eventColor,\n\t\t$eventBackgroundColor,\n\t\tdiv1_binding\n\t];\n}\n\nclass Event extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$3,\n\t\t\tcreate_fragment$3,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tchunk: 28,\n\t\t\t\tlongChunks: 29,\n\t\t\t\treposition: 30\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n\n\tget reposition() {\n\t\treturn this.$$.ctx[30];\n\t}\n}\n\n/* packages/time-grid/src/all-day/Day.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context$2(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[32] = list[i];\n\tchild_ctx[33] = list;\n\tchild_ctx[34] = i;\n\treturn child_ctx;\n}\n\n// (90:4) {#if iChunks[0] && datesEqual(iChunks[0].date, date)}\nfunction create_if_block$1(ctx) {\n\tlet div;\n\tlet event;\n\tlet div_class_value;\n\tlet current;\n\tevent = new Event({ props: { chunk: /*iChunks*/ ctx[2][0] } });\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcreate_component(event.$$.fragment);\n\t\t\tattr(div, \"class\", div_class_value = \"\" + (/*$theme*/ ctx[8].events + \" \" + /*$theme*/ ctx[8].preview));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tmount_component(event, div, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst event_changes = {};\n\t\t\tif (dirty[0] & /*iChunks*/ 4) event_changes.chunk = /*iChunks*/ ctx[2][0];\n\t\t\tevent.$set(event_changes);\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 256 && div_class_value !== (div_class_value = \"\" + (/*$theme*/ ctx[8].events + \" \" + /*$theme*/ ctx[8].preview))) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(event.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(event.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_component(event);\n\t\t}\n\t};\n}\n\n// (96:8) {#each dayChunks as chunk, i (chunk.event)}\nfunction create_each_block$2(key_1, ctx) {\n\tlet first;\n\tlet event;\n\tlet i = /*i*/ ctx[34];\n\tlet current;\n\tconst assign_event = () => /*event_binding*/ ctx[25](event, i);\n\tconst unassign_event = () => /*event_binding*/ ctx[25](null, i);\n\n\tlet event_props = {\n\t\tchunk: /*chunk*/ ctx[32],\n\t\tlongChunks: /*longChunks*/ ctx[1]\n\t};\n\n\tevent = new Event({ props: event_props });\n\tassign_event();\n\n\treturn {\n\t\tkey: key_1,\n\t\tfirst: null,\n\t\tc() {\n\t\t\tfirst = empty();\n\t\t\tcreate_component(event.$$.fragment);\n\t\t\tthis.first = first;\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, first, anchor);\n\t\t\tmount_component(event, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (i !== /*i*/ ctx[34]) {\n\t\t\t\tunassign_event();\n\t\t\t\ti = /*i*/ ctx[34];\n\t\t\t\tassign_event();\n\t\t\t}\n\n\t\t\tconst event_changes = {};\n\t\t\tif (dirty[0] & /*dayChunks*/ 16) event_changes.chunk = /*chunk*/ ctx[32];\n\t\t\tif (dirty[0] & /*longChunks*/ 2) event_changes.longChunks = /*longChunks*/ ctx[1];\n\t\t\tevent.$set(event_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(event.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(event.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(first);\n\t\t\tunassign_event();\n\t\t\tdestroy_component(event, detaching);\n\t\t}\n\t};\n}\n\nfunction create_fragment$2(ctx) {\n\tlet div1;\n\tlet show_if = /*iChunks*/ ctx[2][0] && datesEqual(/*iChunks*/ ctx[2][0].date, /*date*/ ctx[0]);\n\tlet t;\n\tlet div0;\n\tlet each_blocks = [];\n\tlet each_1_lookup = new Map();\n\tlet div0_class_value;\n\tlet div1_class_value;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tlet if_block = show_if && create_if_block$1(ctx);\n\tlet each_value = /*dayChunks*/ ctx[4];\n\tconst get_key = ctx => /*chunk*/ ctx[32].event;\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\tlet child_ctx = get_each_context$2(ctx, each_value, i);\n\t\tlet key = get_key(child_ctx);\n\t\teach_1_lookup.set(key, each_blocks[i] = create_each_block$2(key, child_ctx));\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tdiv1 = element(\"div\");\n\t\t\tif (if_block) if_block.c();\n\t\t\tt = space();\n\t\t\tdiv0 = element(\"div\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tattr(div0, \"class\", div0_class_value = /*$theme*/ ctx[8].events);\n\n\t\t\tattr(div1, \"class\", div1_class_value = \"\" + (/*$theme*/ ctx[8].day + (/*isToday*/ ctx[5] ? ' ' + /*$theme*/ ctx[8].today : '') + (/*highlight*/ ctx[6]\n\t\t\t? ' ' + /*$theme*/ ctx[8].highlight\n\t\t\t: '')));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div1, anchor);\n\t\t\tif (if_block) if_block.m(div1, null);\n\t\t\tappend(div1, t);\n\t\t\tappend(div1, div0);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(div0, null);\n\t\t\t}\n\n\t\t\t/*div1_binding*/ ctx[26](div1);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(window, \"resize\", /*reposition*/ ctx[21]),\n\t\t\t\t\tlisten(div1, \"click\", function () {\n\t\t\t\t\t\tif (is_function(maybeIgnore(/*createClickHandler*/ ctx[19](/*$dateClick*/ ctx[9])))) maybeIgnore(/*createClickHandler*/ ctx[19](/*$dateClick*/ ctx[9])).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div1, \"pointerdown\", function () {\n\t\t\t\t\t\tif (is_function(/*createPointerDownHandler*/ ctx[20](/*$_interaction*/ ctx[10], /*$selectable*/ ctx[11]))) /*createPointerDownHandler*/ ctx[20](/*$_interaction*/ ctx[10], /*$selectable*/ ctx[11]).apply(this, arguments);\n\t\t\t\t\t})\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\t\t\tif (dirty[0] & /*iChunks, date*/ 5) show_if = /*iChunks*/ ctx[2][0] && datesEqual(/*iChunks*/ ctx[2][0].date, /*date*/ ctx[0]);\n\n\t\t\tif (show_if) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*iChunks, date*/ 5) {\n\t\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block$1(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\tif_block.m(div1, t);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block, 1, 1, () => {\n\t\t\t\t\tif_block = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*dayChunks, longChunks, refs*/ 146) {\n\t\t\t\teach_value = /*dayChunks*/ ctx[4];\n\t\t\t\tgroup_outros();\n\t\t\t\teach_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div0, outro_and_destroy_block, create_each_block$2, null, get_each_context$2);\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 256 && div0_class_value !== (div0_class_value = /*$theme*/ ctx[8].events)) {\n\t\t\t\tattr(div0, \"class\", div0_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme, isToday, highlight*/ 352 && div1_class_value !== (div1_class_value = \"\" + (/*$theme*/ ctx[8].day + (/*isToday*/ ctx[5] ? ' ' + /*$theme*/ ctx[8].today : '') + (/*highlight*/ ctx[6]\n\t\t\t? ' ' + /*$theme*/ ctx[8].highlight\n\t\t\t: '')))) {\n\t\t\t\tattr(div1, \"class\", div1_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div1);\n\t\t\tif (if_block) if_block.d();\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].d();\n\t\t\t}\n\n\t\t\t/*div1_binding*/ ctx[26](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction instance$2($$self, $$props, $$invalidate) {\n\tlet $_slotTimeLimits;\n\tlet $_view;\n\tlet $highlightedDates;\n\tlet $theme;\n\tlet $dateClick;\n\tlet $_interaction;\n\tlet $selectable;\n\tlet { date } = $$props;\n\tlet { chunks } = $$props;\n\tlet { longChunks } = $$props;\n\tlet { iChunks = [] } = $$props;\n\tlet { resource = undefined } = $$props;\n\tlet { date: currentDate, dateClick, highlightedDates, theme, _view, _interaction, selectable } = getContext('state');\n\tcomponent_subscribe($$self, dateClick, value => $$invalidate(9, $dateClick = value));\n\tcomponent_subscribe($$self, highlightedDates, value => $$invalidate(24, $highlightedDates = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(8, $theme = value));\n\tcomponent_subscribe($$self, _view, value => $$invalidate(28, $_view = value));\n\tcomponent_subscribe($$self, _interaction, value => $$invalidate(10, $_interaction = value));\n\tcomponent_subscribe($$self, selectable, value => $$invalidate(11, $selectable = value));\n\tlet { _slotTimeLimits, _viewResources } = getContext('view-state');\n\tcomponent_subscribe($$self, _slotTimeLimits, value => $$invalidate(27, $_slotTimeLimits = value));\n\tlet el;\n\tlet dayChunks;\n\tlet today = setMidnight(createDate());\n\tlet isToday;\n\tlet highlight;\n\tlet refs = [];\n\n\tfunction createClickHandler(fn) {\n\t\treturn is_function(fn)\n\t\t? jsEvent => {\n\t\t\t\tfn({\n\t\t\t\t\tallDay: true,\n\t\t\t\t\tdate: toLocalDate(date),\n\t\t\t\t\tdateStr: toISOString(date),\n\t\t\t\t\tdayEl: el,\n\t\t\t\t\tjsEvent,\n\t\t\t\t\tview: toViewWithLocalDates($_view),\n\t\t\t\t\tresource\n\t\t\t\t});\n\t\t\t}\n\t\t: undefined;\n\t}\n\n\tfunction createPointerDownHandler(interaction, selectable) {\n\t\treturn selectable && interaction.action\n\t\t? jsEvent => interaction.action.selectTimeGrid(date, el, jsEvent, _viewResources, $_slotTimeLimits, true)\n\t\t: undefined;\n\t}\n\n\tfunction reposition() {\n\t\t$$invalidate(7, refs.length = dayChunks.length, refs);\n\n\t\tfor (let ref of refs) {\n\t\t\tref && ref.reposition && ref.reposition();\n\t\t}\n\t}\n\n\tafterUpdate(reposition);\n\n\tfunction event_binding($$value, i) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\trefs[i] = $$value;\n\t\t\t$$invalidate(7, refs);\n\t\t});\n\t}\n\n\tfunction div1_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tel = $$value;\n\t\t\t$$invalidate(3, el);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('date' in $$props) $$invalidate(0, date = $$props.date);\n\t\tif ('chunks' in $$props) $$invalidate(22, chunks = $$props.chunks);\n\t\tif ('longChunks' in $$props) $$invalidate(1, longChunks = $$props.longChunks);\n\t\tif ('iChunks' in $$props) $$invalidate(2, iChunks = $$props.iChunks);\n\t\tif ('resource' in $$props) $$invalidate(23, resource = $$props.resource);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*chunks, date, dayChunks*/ 4194321) {\n\t\t\t{\n\t\t\t\t$$invalidate(4, dayChunks = []);\n\n\t\t\t\tfor (let chunk of chunks) {\n\t\t\t\t\tif (datesEqual(chunk.date, date)) {\n\t\t\t\t\t\tdayChunks.push(chunk);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*date, $highlightedDates*/ 16777217) {\n\t\t\t{\n\t\t\t\t$$invalidate(5, isToday = datesEqual(date, today));\n\t\t\t\t$$invalidate(6, highlight = $highlightedDates.some(d => datesEqual(d, date)));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*el, date*/ 9) {\n\t\t\t// dateFromPoint\n\t\t\tif (el) {\n\t\t\t\tsetFn(el, () => date);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\tdate,\n\t\tlongChunks,\n\t\tiChunks,\n\t\tel,\n\t\tdayChunks,\n\t\tisToday,\n\t\thighlight,\n\t\trefs,\n\t\t$theme,\n\t\t$dateClick,\n\t\t$_interaction,\n\t\t$selectable,\n\t\tdateClick,\n\t\thighlightedDates,\n\t\ttheme,\n\t\t_view,\n\t\t_interaction,\n\t\tselectable,\n\t\t_slotTimeLimits,\n\t\tcreateClickHandler,\n\t\tcreatePointerDownHandler,\n\t\treposition,\n\t\tchunks,\n\t\tresource,\n\t\t$highlightedDates,\n\t\tevent_binding,\n\t\tdiv1_binding\n\t];\n}\n\nclass Day extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$2,\n\t\t\tcreate_fragment$2,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tdate: 0,\n\t\t\t\tchunks: 22,\n\t\t\t\tlongChunks: 1,\n\t\t\t\tiChunks: 2,\n\t\t\t\tresource: 23\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n}\n\n/* packages/time-grid/src/all-day/Week.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context$1(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[14] = list[i];\n\treturn child_ctx;\n}\n\n// (45:0) {#each dates as date}\nfunction create_each_block$1(ctx) {\n\tlet day;\n\tlet current;\n\n\tday = new Day({\n\t\t\tprops: {\n\t\t\t\tdate: /*date*/ ctx[14],\n\t\t\t\tchunks: /*chunks*/ ctx[2],\n\t\t\t\tlongChunks: /*longChunks*/ ctx[3],\n\t\t\t\tiChunks: /*iChunks*/ ctx[4],\n\t\t\t\tresource: /*resource*/ ctx[1]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(day.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(day, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst day_changes = {};\n\t\t\tif (dirty & /*dates*/ 1) day_changes.date = /*date*/ ctx[14];\n\t\t\tif (dirty & /*chunks*/ 4) day_changes.chunks = /*chunks*/ ctx[2];\n\t\t\tif (dirty & /*longChunks*/ 8) day_changes.longChunks = /*longChunks*/ ctx[3];\n\t\t\tif (dirty & /*iChunks*/ 16) day_changes.iChunks = /*iChunks*/ ctx[4];\n\t\t\tif (dirty & /*resource*/ 2) day_changes.resource = /*resource*/ ctx[1];\n\t\t\tday.$set(day_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(day.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(day.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(day, detaching);\n\t\t}\n\t};\n}\n\nfunction create_fragment$1(ctx) {\n\tlet each_1_anchor;\n\tlet current;\n\tlet each_value = /*dates*/ ctx[0];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\teach_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\teach_1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, each_1_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (dirty & /*dates, chunks, longChunks, iChunks, resource*/ 31) {\n\t\t\t\teach_value = /*dates*/ ctx[0];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context$1(ctx, each_value, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block$1(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t\tif (detaching) detach(each_1_anchor);\n\t\t}\n\t};\n}\n\nfunction instance$1($$self, $$props, $$invalidate) {\n\tlet $hiddenDays;\n\tlet $_iEvents;\n\tlet $_events;\n\tlet { dates } = $$props;\n\tlet { resource = undefined } = $$props;\n\tlet { _events, _iEvents, hiddenDays, theme } = getContext('state');\n\tcomponent_subscribe($$self, _events, value => $$invalidate(12, $_events = value));\n\tcomponent_subscribe($$self, _iEvents, value => $$invalidate(11, $_iEvents = value));\n\tcomponent_subscribe($$self, hiddenDays, value => $$invalidate(10, $hiddenDays = value));\n\tlet chunks, longChunks, iChunks = [];\n\tlet start;\n\tlet end;\n\n\t$$self.$$set = $$props => {\n\t\tif ('dates' in $$props) $$invalidate(0, dates = $$props.dates);\n\t\tif ('resource' in $$props) $$invalidate(1, resource = $$props.resource);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*dates*/ 1) {\n\t\t\t{\n\t\t\t\t$$invalidate(8, start = dates[0]);\n\t\t\t\t$$invalidate(9, end = addDay(cloneDate(dates[dates.length - 1])));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*$_events, start, end, resource, chunks, $hiddenDays*/ 5894) {\n\t\t\t{\n\t\t\t\t$$invalidate(2, chunks = []);\n\n\t\t\t\tfor (let event of $_events) {\n\t\t\t\t\tif (event.allDay && event.display !== 'background' && eventIntersects(event, start, end, resource)) {\n\t\t\t\t\t\tlet chunk = createEventChunk(event, start, end);\n\t\t\t\t\t\tchunks.push(chunk);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$$invalidate(3, longChunks = prepareEventChunks(chunks, $hiddenDays));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*$_iEvents, start, end, resource, $hiddenDays*/ 3842) {\n\t\t\t$$invalidate(4, iChunks = $_iEvents.map(event => {\n\t\t\t\tlet chunk;\n\n\t\t\t\tif (event && event.allDay && eventIntersects(event, start, end, resource)) {\n\t\t\t\t\tchunk = createEventChunk(event, start, end);\n\t\t\t\t\tprepareEventChunks([chunk], $hiddenDays);\n\t\t\t\t} else {\n\t\t\t\t\tchunk = null;\n\t\t\t\t}\n\n\t\t\t\treturn chunk;\n\t\t\t}));\n\t\t}\n\t};\n\n\treturn [\n\t\tdates,\n\t\tresource,\n\t\tchunks,\n\t\tlongChunks,\n\t\tiChunks,\n\t\t_events,\n\t\t_iEvents,\n\t\thiddenDays,\n\t\tstart,\n\t\tend,\n\t\t$hiddenDays,\n\t\t$_iEvents,\n\t\t$_events\n\t];\n}\n\nclass Week extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$1, create_fragment$1, safe_not_equal, { dates: 0, resource: 1 });\n\t}\n}\n\n/* packages/time-grid/src/View.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[11] = list[i];\n\treturn child_ctx;\n}\n\nfunction get_each_context_1(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[11] = list[i];\n\treturn child_ctx;\n}\n\n// (18:4) {#each $_viewDates as date}\nfunction create_each_block_1(ctx) {\n\tlet div;\n\tlet t_value = /*$_intlDayHeader*/ ctx[2].format(/*date*/ ctx[11]) + \"\";\n\tlet t;\n\tlet div_class_value;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tt = text(t_value);\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[1].day);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tappend(div, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*$_intlDayHeader, $_viewDates*/ 5 && t_value !== (t_value = /*$_intlDayHeader*/ ctx[2].format(/*date*/ ctx[11]) + \"\")) set_data(t, t_value);\n\n\t\t\tif (dirty & /*$theme*/ 2 && div_class_value !== (div_class_value = /*$theme*/ ctx[1].day)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t}\n\t};\n}\n\n// (17:0) <Header>\nfunction create_default_slot_2(ctx) {\n\tlet each_1_anchor;\n\tlet each_value_1 = /*$_viewDates*/ ctx[0];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value_1.length; i += 1) {\n\t\teach_blocks[i] = create_each_block_1(get_each_context_1(ctx, each_value_1, i));\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\teach_1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, each_1_anchor, anchor);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*$theme, $_intlDayHeader, $_viewDates*/ 7) {\n\t\t\t\teach_value_1 = /*$_viewDates*/ ctx[0];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value_1.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context_1(ctx, each_value_1, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block_1(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\teach_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (; i < each_blocks.length; i += 1) {\n\t\t\t\t\teach_blocks[i].d(1);\n\t\t\t\t}\n\n\t\t\t\teach_blocks.length = each_value_1.length;\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t\tif (detaching) detach(each_1_anchor);\n\t\t}\n\t};\n}\n\n// (22:0) {#if $allDaySlot}\nfunction create_if_block(ctx) {\n\tlet header;\n\tlet current;\n\n\theader = new Header({\n\t\t\tprops: {\n\t\t\t\tallDay: true,\n\t\t\t\t$$slots: { default: [create_default_slot_1] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(header.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(header, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst header_changes = {};\n\n\t\t\tif (dirty & /*$$scope, $_viewDates*/ 65537) {\n\t\t\t\theader_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\theader.$set(header_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(header.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(header.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(header, detaching);\n\t\t}\n\t};\n}\n\n// (23:4) <Header allDay>\nfunction create_default_slot_1(ctx) {\n\tlet week;\n\tlet current;\n\tweek = new Week({ props: { dates: /*$_viewDates*/ ctx[0] } });\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(week.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(week, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst week_changes = {};\n\t\t\tif (dirty & /*$_viewDates*/ 1) week_changes.dates = /*$_viewDates*/ ctx[0];\n\t\t\tweek.$set(week_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(week.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(week.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(week, detaching);\n\t\t}\n\t};\n}\n\n// (28:0) {#each $_viewDates as date}\nfunction create_each_block(ctx) {\n\tlet day;\n\tlet current;\n\tday = new Day$1({ props: { date: /*date*/ ctx[11] } });\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(day.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(day, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst day_changes = {};\n\t\t\tif (dirty & /*$_viewDates*/ 1) day_changes.date = /*date*/ ctx[11];\n\t\t\tday.$set(day_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(day.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(day.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(day, detaching);\n\t\t}\n\t};\n}\n\n// (27:0) <Body>\nfunction create_default_slot(ctx) {\n\tlet each_1_anchor;\n\tlet current;\n\tlet each_value = /*$_viewDates*/ ctx[0];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\teach_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\teach_1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, each_1_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*$_viewDates*/ 1) {\n\t\t\t\teach_value = /*$_viewDates*/ ctx[0];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context(ctx, each_value, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t\tif (detaching) detach(each_1_anchor);\n\t\t}\n\t};\n}\n\nfunction create_fragment(ctx) {\n\tlet header;\n\tlet t0;\n\tlet t1;\n\tlet body;\n\tlet current;\n\n\theader = new Header({\n\t\t\tprops: {\n\t\t\t\t$$slots: { default: [create_default_slot_2] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\tlet if_block = /*$allDaySlot*/ ctx[3] && create_if_block(ctx);\n\n\tbody = new Body({\n\t\t\tprops: {\n\t\t\t\t$$slots: { default: [create_default_slot] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(header.$$.fragment);\n\t\t\tt0 = space();\n\t\t\tif (if_block) if_block.c();\n\t\t\tt1 = space();\n\t\t\tcreate_component(body.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(header, target, anchor);\n\t\t\tinsert(target, t0, anchor);\n\t\t\tif (if_block) if_block.m(target, anchor);\n\t\t\tinsert(target, t1, anchor);\n\t\t\tmount_component(body, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tconst header_changes = {};\n\n\t\t\tif (dirty & /*$$scope, $_viewDates, $theme, $_intlDayHeader*/ 65543) {\n\t\t\t\theader_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\theader.$set(header_changes);\n\n\t\t\tif (/*$allDaySlot*/ ctx[3]) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty & /*$allDaySlot*/ 8) {\n\t\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\tif_block.m(t1.parentNode, t1);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block, 1, 1, () => {\n\t\t\t\t\tif_block = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tconst body_changes = {};\n\n\t\t\tif (dirty & /*$$scope, $_viewDates*/ 65537) {\n\t\t\t\tbody_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tbody.$set(body_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(header.$$.fragment, local);\n\t\t\ttransition_in(if_block);\n\t\t\ttransition_in(body.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(header.$$.fragment, local);\n\t\t\ttransition_out(if_block);\n\t\t\ttransition_out(body.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(header, detaching);\n\t\t\tif (detaching) detach(t0);\n\t\t\tif (if_block) if_block.d(detaching);\n\t\t\tif (detaching) detach(t1);\n\t\t\tdestroy_component(body, detaching);\n\t\t}\n\t};\n}\n\nfunction instance($$self, $$props, $$invalidate) {\n\tlet $_viewClass;\n\tlet $_viewDates;\n\tlet $theme;\n\tlet $_intlDayHeader;\n\tlet $allDaySlot;\n\tlet state = getContext('state');\n\tlet { _viewDates, _intlDayHeader, _viewClass, allDaySlot, theme } = state;\n\tcomponent_subscribe($$self, _viewDates, value => $$invalidate(0, $_viewDates = value));\n\tcomponent_subscribe($$self, _intlDayHeader, value => $$invalidate(2, $_intlDayHeader = value));\n\tcomponent_subscribe($$self, _viewClass, value => $$invalidate(9, $_viewClass = value));\n\tcomponent_subscribe($$self, allDaySlot, value => $$invalidate(3, $allDaySlot = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(1, $theme = value));\n\tsetContext('view-state', new State(state));\n\tset_store_value(_viewClass, $_viewClass = 'week', $_viewClass);\n\n\treturn [\n\t\t$_viewDates,\n\t\t$theme,\n\t\t$_intlDayHeader,\n\t\t$allDaySlot,\n\t\t_viewDates,\n\t\t_intlDayHeader,\n\t\t_viewClass,\n\t\tallDaySlot,\n\t\ttheme\n\t];\n}\n\nclass View extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance, create_fragment, safe_not_equal, {});\n\t}\n}\n\nvar index = {\n\tcreateOptions(options) {\n\t\t// Common options\n\t\toptions.buttonText.timeGridDay = 'day';\n\t\toptions.buttonText.timeGridWeek = 'week';\n\t\toptions.view = 'timeGridWeek';\n\t\toptions.views.timeGridDay = {\n\t\t\tcomponent: View,\n\t\t\tdayHeaderFormat: {weekday: 'long'},\n\t\t\tduration: {days: 1},\n\t\t\ttitleFormat: {year: 'numeric', month: 'long', day: 'numeric'}\n\t\t};\n\t\toptions.views.timeGridWeek = {\n\t\t\tcomponent: View,\n\t\t\tduration: {weeks: 1}\n\t\t};\n\t}\n};\n\nexport { Body, Day$1 as Day, Header, State, Week, index as default };\n","import { SvelteComponent, init, safe_not_equal, element, attr, insert, action_destroyer, is_function, noop, detach, component_subscribe, binding_callbacks, create_component, space, mount_component, transition_in, group_outros, transition_out, check_outros, destroy_component, set_store_value, empty, destroy_each, append, text, set_data } from 'svelte/internal';\nimport { getContext, onMount, setContext } from 'svelte';\nimport { State as State$1, Header, Body, Week, Day } from '@event-calendar/time-grid';\nimport { derived } from 'svelte/store';\n\nfunction viewResources(state) {\n return derived(\n [state.resources, state.filterResourcesWithEvents, state._events, state._activeRange],\n ([$resources, $filterResourcesWithEvents, $_events, $_activeRange]) => {\n let result = $resources;\n\n if ($filterResourcesWithEvents) {\n result = $resources.filter(resource => {\n for (let event of $_events) {\n if (\n event.display !== 'background' &&\n event.resourceIds.includes(resource.id) &&\n event.start < $_activeRange.end &&\n event.end > $_activeRange.start\n ) {\n return true;\n }\n }\n return false;\n });\n }\n\n if (!result.length) {\n result = state.resources.parse([{}]);\n }\n\n return result;\n }\n );\n}\n\nclass State extends State$1 {\n constructor(state) {\n super(state);\n\n this._viewResources = viewResources(state);\n }\n}\n\nfunction isObject(test) {\n return typeof test === 'object' && test !== null;\n}\n\nfunction setContent(node, content) {\n let actions = {\n update(content) {\n while (node.firstChild) {\n node.removeChild(node.lastChild);\n }\n if (!isObject(content)) {\n node.innerText = content;\n } else if (content.domNodes) {\n for (let child of content.domNodes) {\n node.appendChild(child);\n }\n } else if (content.html) {\n node.innerHTML = content.html;\n }\n }\n };\n actions.update(content);\n\n return actions;\n}\n\nfunction toLocalDate(date) {\n return new Date(\n date.getUTCFullYear(),\n date.getUTCMonth(),\n date.getUTCDate(),\n date.getUTCHours(),\n date.getUTCMinutes(),\n date.getUTCSeconds()\n );\n}\n\n/* packages/resource-time-grid/src/Label.svelte generated by Svelte v3.55.1 */\n\nfunction create_fragment$1(ctx) {\n\tlet div;\n\tlet div_class_value;\n\tlet setContent_action;\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[2].day);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\t/*div_binding*/ ctx[9](div);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = action_destroyer(setContent_action = setContent.call(null, div, /*content*/ ctx[1]));\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (dirty & /*$theme*/ 4 && div_class_value !== (div_class_value = /*$theme*/ ctx[2].day)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\n\t\t\tif (setContent_action && is_function(setContent_action.update) && dirty & /*content*/ 2) setContent_action.update.call(null, /*content*/ ctx[1]);\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\t/*div_binding*/ ctx[9](null);\n\t\t\tmounted = false;\n\t\t\tdispose();\n\t\t}\n\t};\n}\n\nfunction instance$2($$self, $$props, $$invalidate) {\n\tlet $resourceLabelDidMount;\n\tlet $resourceLabelContent;\n\tlet $theme;\n\tlet { resource } = $$props;\n\tlet { date = undefined } = $$props;\n\tlet { resourceLabelContent, resourceLabelDidMount, theme } = getContext('state');\n\tcomponent_subscribe($$self, resourceLabelContent, value => $$invalidate(8, $resourceLabelContent = value));\n\tcomponent_subscribe($$self, resourceLabelDidMount, value => $$invalidate(10, $resourceLabelDidMount = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(2, $theme = value));\n\tlet el;\n\tlet content;\n\n\tonMount(() => {\n\t\tif (is_function($resourceLabelDidMount)) {\n\t\t\t$resourceLabelDidMount({\n\t\t\t\tresource,\n\t\t\t\tdate: date ? toLocalDate(date) : undefined,\n\t\t\t\tel\n\t\t\t});\n\t\t}\n\t});\n\n\tfunction div_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tel = $$value;\n\t\t\t$$invalidate(0, el);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('resource' in $$props) $$invalidate(6, resource = $$props.resource);\n\t\tif ('date' in $$props) $$invalidate(7, date = $$props.date);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*$resourceLabelContent, resource, date*/ 448) {\n\t\t\t// Content\n\t\t\tif ($resourceLabelContent) {\n\t\t\t\t$$invalidate(1, content = is_function($resourceLabelContent)\n\t\t\t\t? $resourceLabelContent({\n\t\t\t\t\t\tresource,\n\t\t\t\t\t\tdate: date ? toLocalDate(date) : undefined\n\t\t\t\t\t})\n\t\t\t\t: $resourceLabelContent);\n\t\t\t} else {\n\t\t\t\t$$invalidate(1, content = resource.titleHTML\n\t\t\t\t? { html: resource.titleHTML }\n\t\t\t\t: resource.title);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\tel,\n\t\tcontent,\n\t\t$theme,\n\t\tresourceLabelContent,\n\t\tresourceLabelDidMount,\n\t\ttheme,\n\t\tresource,\n\t\tdate,\n\t\t$resourceLabelContent,\n\t\tdiv_binding\n\t];\n}\n\nclass Label extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$2, create_fragment$1, safe_not_equal, { resource: 6, date: 7 });\n\t}\n}\n\n/* packages/resource-time-grid/src/View.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[17] = list[i];\n\treturn child_ctx;\n}\n\nfunction get_each_context_1(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[20] = list[i];\n\treturn child_ctx;\n}\n\nfunction get_each_context_4(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[26] = list[i];\n\treturn child_ctx;\n}\n\nfunction get_each_context_2(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[23] = list[i];\n\treturn child_ctx;\n}\n\nfunction get_each_context_3(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[26] = list[i];\n\treturn child_ctx;\n}\n\nfunction get_each_context_5(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[17] = list[i];\n\treturn child_ctx;\n}\n\nfunction get_each_context_6(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[20] = list[i];\n\treturn child_ctx;\n}\n\n// (26:12) {:else}\nfunction create_else_block_2(ctx) {\n\tlet label;\n\tlet current;\n\tlabel = new Label({ props: { resource: /*item0*/ ctx[17] } });\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(label.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(label, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst label_changes = {};\n\t\t\tif (dirty[0] & /*loops*/ 8) label_changes.resource = /*item0*/ ctx[17];\n\t\t\tlabel.$set(label_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(label.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(label.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(label, detaching);\n\t\t}\n\t};\n}\n\n// (24:12) {#if $datesAboveResources}\nfunction create_if_block_4(ctx) {\n\tlet div;\n\tlet t_value = /*$_intlDayHeader*/ ctx[5].format(/*item0*/ ctx[17]) + \"\";\n\tlet t;\n\tlet div_class_value;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tt = text(t_value);\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[4].day);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tappend(div, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*$_intlDayHeader, loops*/ 40 && t_value !== (t_value = /*$_intlDayHeader*/ ctx[5].format(/*item0*/ ctx[17]) + \"\")) set_data(t, t_value);\n\n\t\t\tif (dirty[0] & /*$theme*/ 16 && div_class_value !== (div_class_value = /*$theme*/ ctx[4].day)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t}\n\t};\n}\n\n// (29:12) {#if loops[1].length > 1}\nfunction create_if_block_2(ctx) {\n\tlet div;\n\tlet div_class_value;\n\tlet current;\n\tlet each_value_6 = /*loops*/ ctx[3][1];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value_6.length; i += 1) {\n\t\teach_blocks[i] = create_each_block_6(get_each_context_6(ctx, each_value_6, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[4].days);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(div, null);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*loops, $datesAboveResources, $theme, $_intlDayHeader*/ 60) {\n\t\t\t\teach_value_6 = /*loops*/ ctx[3][1];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value_6.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context_6(ctx, each_value_6, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block_6(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(div, null);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value_6.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 16 && div_class_value !== (div_class_value = /*$theme*/ ctx[4].days)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value_6.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t}\n\t};\n}\n\n// (34:24) {:else}\nfunction create_else_block_1(ctx) {\n\tlet div;\n\tlet t_value = /*$_intlDayHeader*/ ctx[5].format(/*item1*/ ctx[20]) + \"\";\n\tlet t;\n\tlet div_class_value;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tt = text(t_value);\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[4].day);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tappend(div, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*$_intlDayHeader, loops*/ 40 && t_value !== (t_value = /*$_intlDayHeader*/ ctx[5].format(/*item1*/ ctx[20]) + \"\")) set_data(t, t_value);\n\n\t\t\tif (dirty[0] & /*$theme*/ 16 && div_class_value !== (div_class_value = /*$theme*/ ctx[4].day)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t}\n\t};\n}\n\n// (32:24) {#if $datesAboveResources}\nfunction create_if_block_3(ctx) {\n\tlet label;\n\tlet current;\n\n\tlabel = new Label({\n\t\t\tprops: {\n\t\t\t\tresource: /*item1*/ ctx[20],\n\t\t\t\tdate: /*item0*/ ctx[17]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(label.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(label, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst label_changes = {};\n\t\t\tif (dirty[0] & /*loops*/ 8) label_changes.resource = /*item1*/ ctx[20];\n\t\t\tif (dirty[0] & /*loops*/ 8) label_changes.date = /*item0*/ ctx[17];\n\t\t\tlabel.$set(label_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(label.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(label.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(label, detaching);\n\t\t}\n\t};\n}\n\n// (31:20) {#each loops[1] as item1}\nfunction create_each_block_6(ctx) {\n\tlet current_block_type_index;\n\tlet if_block;\n\tlet if_block_anchor;\n\tlet current;\n\tconst if_block_creators = [create_if_block_3, create_else_block_1];\n\tconst if_blocks = [];\n\n\tfunction select_block_type_1(ctx, dirty) {\n\t\tif (/*$datesAboveResources*/ ctx[2]) return 0;\n\t\treturn 1;\n\t}\n\n\tcurrent_block_type_index = select_block_type_1(ctx);\n\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif_block.c();\n\t\t\tif_block_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif_blocks[current_block_type_index].m(target, anchor);\n\t\t\tinsert(target, if_block_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tlet previous_block_index = current_block_type_index;\n\t\t\tcurrent_block_type_index = select_block_type_1(ctx);\n\n\t\t\tif (current_block_type_index === previous_block_index) {\n\t\t\t\tif_blocks[current_block_type_index].p(ctx, dirty);\n\t\t\t} else {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_blocks[previous_block_index], 1, 1, () => {\n\t\t\t\t\tif_blocks[previous_block_index] = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t\tif_block = if_blocks[current_block_type_index];\n\n\t\t\t\tif (!if_block) {\n\t\t\t\t\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t} else {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t}\n\n\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\tif_block.m(if_block_anchor.parentNode, if_block_anchor);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif_blocks[current_block_type_index].d(detaching);\n\t\t\tif (detaching) detach(if_block_anchor);\n\t\t}\n\t};\n}\n\n// (22:4) {#each loops[0] as item0}\nfunction create_each_block_5(ctx) {\n\tlet div;\n\tlet current_block_type_index;\n\tlet if_block0;\n\tlet t0;\n\tlet t1;\n\tlet div_class_value;\n\tlet current;\n\tconst if_block_creators = [create_if_block_4, create_else_block_2];\n\tconst if_blocks = [];\n\n\tfunction select_block_type(ctx, dirty) {\n\t\tif (/*$datesAboveResources*/ ctx[2]) return 0;\n\t\treturn 1;\n\t}\n\n\tcurrent_block_type_index = select_block_type(ctx);\n\tif_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\tlet if_block1 = /*loops*/ ctx[3][1].length > 1 && create_if_block_2(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tif_block0.c();\n\t\t\tt0 = space();\n\t\t\tif (if_block1) if_block1.c();\n\t\t\tt1 = space();\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[4].resource);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tif_blocks[current_block_type_index].m(div, null);\n\t\t\tappend(div, t0);\n\t\t\tif (if_block1) if_block1.m(div, null);\n\t\t\tappend(div, t1);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tlet previous_block_index = current_block_type_index;\n\t\t\tcurrent_block_type_index = select_block_type(ctx);\n\n\t\t\tif (current_block_type_index === previous_block_index) {\n\t\t\t\tif_blocks[current_block_type_index].p(ctx, dirty);\n\t\t\t} else {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_blocks[previous_block_index], 1, 1, () => {\n\t\t\t\t\tif_blocks[previous_block_index] = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t\tif_block0 = if_blocks[current_block_type_index];\n\n\t\t\t\tif (!if_block0) {\n\t\t\t\t\tif_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t\t\t\t\tif_block0.c();\n\t\t\t\t} else {\n\t\t\t\t\tif_block0.p(ctx, dirty);\n\t\t\t\t}\n\n\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\tif_block0.m(div, t0);\n\t\t\t}\n\n\t\t\tif (/*loops*/ ctx[3][1].length > 1) {\n\t\t\t\tif (if_block1) {\n\t\t\t\t\tif_block1.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*loops*/ 8) {\n\t\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block1 = create_if_block_2(ctx);\n\t\t\t\t\tif_block1.c();\n\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\tif_block1.m(div, t1);\n\t\t\t\t}\n\t\t\t} else if (if_block1) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block1, 1, 1, () => {\n\t\t\t\t\tif_block1 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 16 && div_class_value !== (div_class_value = /*$theme*/ ctx[4].resource)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block0);\n\t\t\ttransition_in(if_block1);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block0);\n\t\t\ttransition_out(if_block1);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tif_blocks[current_block_type_index].d();\n\t\t\tif (if_block1) if_block1.d();\n\t\t}\n\t};\n}\n\n// (21:0) <Header>\nfunction create_default_slot_2(ctx) {\n\tlet each_1_anchor;\n\tlet current;\n\tlet each_value_5 = /*loops*/ ctx[3][0];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value_5.length; i += 1) {\n\t\teach_blocks[i] = create_each_block_5(get_each_context_5(ctx, each_value_5, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\teach_1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, each_1_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*$theme, loops, $datesAboveResources, $_intlDayHeader*/ 60) {\n\t\t\t\teach_value_5 = /*loops*/ ctx[3][0];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value_5.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context_5(ctx, each_value_5, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block_5(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value_5.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value_5.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t\tif (detaching) detach(each_1_anchor);\n\t\t}\n\t};\n}\n\n// (43:0) {#if $allDaySlot}\nfunction create_if_block(ctx) {\n\tlet header;\n\tlet current;\n\n\theader = new Header({\n\t\t\tprops: {\n\t\t\t\tallDay: true,\n\t\t\t\t$$slots: { default: [create_default_slot_1] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(header.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(header, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst header_changes = {};\n\n\t\t\tif (dirty[0] & /*$_viewDates, $theme, $_viewResources, $datesAboveResources*/ 23 | dirty[1] & /*$$scope*/ 16) {\n\t\t\t\theader_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\theader.$set(header_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(header.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(header.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(header, detaching);\n\t\t}\n\t};\n}\n\n// (53:8) {:else}\nfunction create_else_block(ctx) {\n\tlet each_1_anchor;\n\tlet current;\n\tlet each_value_4 = /*$_viewResources*/ ctx[1];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value_4.length; i += 1) {\n\t\teach_blocks[i] = create_each_block_4(get_each_context_4(ctx, each_value_4, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\teach_1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, each_1_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*$theme, $_viewDates, $_viewResources*/ 19) {\n\t\t\t\teach_value_4 = /*$_viewResources*/ ctx[1];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value_4.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context_4(ctx, each_value_4, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block_4(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value_4.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value_4.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t\tif (detaching) detach(each_1_anchor);\n\t\t}\n\t};\n}\n\n// (45:8) {#if $datesAboveResources}\nfunction create_if_block_1(ctx) {\n\tlet each_1_anchor;\n\tlet current;\n\tlet each_value_2 = /*$_viewDates*/ ctx[0];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value_2.length; i += 1) {\n\t\teach_blocks[i] = create_each_block_2(get_each_context_2(ctx, each_value_2, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\teach_1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, each_1_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*$theme, $_viewResources, $_viewDates*/ 19) {\n\t\t\t\teach_value_2 = /*$_viewDates*/ ctx[0];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value_2.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context_2(ctx, each_value_2, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block_2(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value_2.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value_2.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t\tif (detaching) detach(each_1_anchor);\n\t\t}\n\t};\n}\n\n// (54:12) {#each $_viewResources as resource}\nfunction create_each_block_4(ctx) {\n\tlet div;\n\tlet week;\n\tlet t;\n\tlet div_class_value;\n\tlet current;\n\n\tweek = new Week({\n\t\t\tprops: {\n\t\t\t\tdates: /*$_viewDates*/ ctx[0],\n\t\t\t\tresource: /*resource*/ ctx[26]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcreate_component(week.$$.fragment);\n\t\t\tt = space();\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[4].resource);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tmount_component(week, div, null);\n\t\t\tappend(div, t);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst week_changes = {};\n\t\t\tif (dirty[0] & /*$_viewDates*/ 1) week_changes.dates = /*$_viewDates*/ ctx[0];\n\t\t\tif (dirty[0] & /*$_viewResources*/ 2) week_changes.resource = /*resource*/ ctx[26];\n\t\t\tweek.$set(week_changes);\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 16 && div_class_value !== (div_class_value = /*$theme*/ ctx[4].resource)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(week.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(week.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_component(week);\n\t\t}\n\t};\n}\n\n// (48:20) {#each $_viewResources as resource}\nfunction create_each_block_3(ctx) {\n\tlet week;\n\tlet current;\n\n\tweek = new Week({\n\t\t\tprops: {\n\t\t\t\tdates: [/*date*/ ctx[23]],\n\t\t\t\tresource: /*resource*/ ctx[26]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(week.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(week, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst week_changes = {};\n\t\t\tif (dirty[0] & /*$_viewDates*/ 1) week_changes.dates = [/*date*/ ctx[23]];\n\t\t\tif (dirty[0] & /*$_viewResources*/ 2) week_changes.resource = /*resource*/ ctx[26];\n\t\t\tweek.$set(week_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(week.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(week.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(week, detaching);\n\t\t}\n\t};\n}\n\n// (46:12) {#each $_viewDates as date}\nfunction create_each_block_2(ctx) {\n\tlet div;\n\tlet t;\n\tlet div_class_value;\n\tlet current;\n\tlet each_value_3 = /*$_viewResources*/ ctx[1];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value_3.length; i += 1) {\n\t\teach_blocks[i] = create_each_block_3(get_each_context_3(ctx, each_value_3, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tt = space();\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[4].resource);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(div, null);\n\t\t\t}\n\n\t\t\tappend(div, t);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*$_viewDates, $_viewResources*/ 3) {\n\t\t\t\teach_value_3 = /*$_viewResources*/ ctx[1];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value_3.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context_3(ctx, each_value_3, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block_3(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(div, t);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value_3.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 16 && div_class_value !== (div_class_value = /*$theme*/ ctx[4].resource)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value_3.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t}\n\t};\n}\n\n// (44:4) <Header allDay>\nfunction create_default_slot_1(ctx) {\n\tlet current_block_type_index;\n\tlet if_block;\n\tlet if_block_anchor;\n\tlet current;\n\tconst if_block_creators = [create_if_block_1, create_else_block];\n\tconst if_blocks = [];\n\n\tfunction select_block_type_2(ctx, dirty) {\n\t\tif (/*$datesAboveResources*/ ctx[2]) return 0;\n\t\treturn 1;\n\t}\n\n\tcurrent_block_type_index = select_block_type_2(ctx);\n\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif_block.c();\n\t\t\tif_block_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif_blocks[current_block_type_index].m(target, anchor);\n\t\t\tinsert(target, if_block_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tlet previous_block_index = current_block_type_index;\n\t\t\tcurrent_block_type_index = select_block_type_2(ctx);\n\n\t\t\tif (current_block_type_index === previous_block_index) {\n\t\t\t\tif_blocks[current_block_type_index].p(ctx, dirty);\n\t\t\t} else {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_blocks[previous_block_index], 1, 1, () => {\n\t\t\t\t\tif_blocks[previous_block_index] = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t\tif_block = if_blocks[current_block_type_index];\n\n\t\t\t\tif (!if_block) {\n\t\t\t\t\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t} else {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t}\n\n\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\tif_block.m(if_block_anchor.parentNode, if_block_anchor);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif_blocks[current_block_type_index].d(detaching);\n\t\t\tif (detaching) detach(if_block_anchor);\n\t\t}\n\t};\n}\n\n// (65:8) {#each loops[1] as item1}\nfunction create_each_block_1(ctx) {\n\tlet day;\n\tlet current;\n\n\tday = new Day({\n\t\t\tprops: {\n\t\t\t\tdate: /*$datesAboveResources*/ ctx[2]\n\t\t\t\t? /*item0*/ ctx[17]\n\t\t\t\t: /*item1*/ ctx[20],\n\t\t\t\tresource: /*$datesAboveResources*/ ctx[2]\n\t\t\t\t? /*item1*/ ctx[20]\n\t\t\t\t: /*item0*/ ctx[17]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(day.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(day, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst day_changes = {};\n\n\t\t\tif (dirty[0] & /*$datesAboveResources, loops*/ 12) day_changes.date = /*$datesAboveResources*/ ctx[2]\n\t\t\t? /*item0*/ ctx[17]\n\t\t\t: /*item1*/ ctx[20];\n\n\t\t\tif (dirty[0] & /*$datesAboveResources, loops*/ 12) day_changes.resource = /*$datesAboveResources*/ ctx[2]\n\t\t\t? /*item1*/ ctx[20]\n\t\t\t: /*item0*/ ctx[17];\n\n\t\t\tday.$set(day_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(day.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(day.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(day, detaching);\n\t\t}\n\t};\n}\n\n// (63:0) {#each loops[0] as item0}\nfunction create_each_block(ctx) {\n\tlet div;\n\tlet t;\n\tlet div_class_value;\n\tlet current;\n\tlet each_value_1 = /*loops*/ ctx[3][1];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value_1.length; i += 1) {\n\t\teach_blocks[i] = create_each_block_1(get_each_context_1(ctx, each_value_1, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tt = space();\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[4].resource);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(div, null);\n\t\t\t}\n\n\t\t\tappend(div, t);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*$datesAboveResources, loops*/ 12) {\n\t\t\t\teach_value_1 = /*loops*/ ctx[3][1];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value_1.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context_1(ctx, each_value_1, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block_1(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(div, t);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value_1.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 16 && div_class_value !== (div_class_value = /*$theme*/ ctx[4].resource)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value_1.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t}\n\t};\n}\n\n// (62:0) <Body>\nfunction create_default_slot(ctx) {\n\tlet each_1_anchor;\n\tlet current;\n\tlet each_value = /*loops*/ ctx[3][0];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\teach_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\teach_1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, each_1_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*$theme, loops, $datesAboveResources*/ 28) {\n\t\t\t\teach_value = /*loops*/ ctx[3][0];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context(ctx, each_value, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t\tif (detaching) detach(each_1_anchor);\n\t\t}\n\t};\n}\n\nfunction create_fragment(ctx) {\n\tlet header;\n\tlet t0;\n\tlet t1;\n\tlet body;\n\tlet current;\n\n\theader = new Header({\n\t\t\tprops: {\n\t\t\t\t$$slots: { default: [create_default_slot_2] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\tlet if_block = /*$allDaySlot*/ ctx[6] && create_if_block(ctx);\n\n\tbody = new Body({\n\t\t\tprops: {\n\t\t\t\t$$slots: { default: [create_default_slot] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(header.$$.fragment);\n\t\t\tt0 = space();\n\t\t\tif (if_block) if_block.c();\n\t\t\tt1 = space();\n\t\t\tcreate_component(body.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(header, target, anchor);\n\t\t\tinsert(target, t0, anchor);\n\t\t\tif (if_block) if_block.m(target, anchor);\n\t\t\tinsert(target, t1, anchor);\n\t\t\tmount_component(body, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst header_changes = {};\n\n\t\t\tif (dirty[0] & /*loops, $theme, $datesAboveResources, $_intlDayHeader*/ 60 | dirty[1] & /*$$scope*/ 16) {\n\t\t\t\theader_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\theader.$set(header_changes);\n\n\t\t\tif (/*$allDaySlot*/ ctx[6]) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*$allDaySlot*/ 64) {\n\t\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\tif_block.m(t1.parentNode, t1);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block, 1, 1, () => {\n\t\t\t\t\tif_block = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tconst body_changes = {};\n\n\t\t\tif (dirty[0] & /*loops, $theme, $datesAboveResources*/ 28 | dirty[1] & /*$$scope*/ 16) {\n\t\t\t\tbody_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tbody.$set(body_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(header.$$.fragment, local);\n\t\t\ttransition_in(if_block);\n\t\t\ttransition_in(body.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(header.$$.fragment, local);\n\t\t\ttransition_out(if_block);\n\t\t\ttransition_out(body.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(header, detaching);\n\t\t\tif (detaching) detach(t0);\n\t\t\tif (if_block) if_block.d(detaching);\n\t\t\tif (detaching) detach(t1);\n\t\t\tdestroy_component(body, detaching);\n\t\t}\n\t};\n}\n\nfunction instance$1($$self, $$props, $$invalidate) {\n\tlet $_viewDates;\n\tlet $_viewResources;\n\tlet $datesAboveResources;\n\tlet $_viewClass;\n\tlet $theme;\n\tlet $_intlDayHeader;\n\tlet $allDaySlot;\n\tlet state = getContext('state');\n\tlet { datesAboveResources, _viewDates, _intlDayHeader, _viewClass, allDaySlot, theme } = state;\n\tcomponent_subscribe($$self, datesAboveResources, value => $$invalidate(2, $datesAboveResources = value));\n\tcomponent_subscribe($$self, _viewDates, value => $$invalidate(0, $_viewDates = value));\n\tcomponent_subscribe($$self, _intlDayHeader, value => $$invalidate(5, $_intlDayHeader = value));\n\tcomponent_subscribe($$self, _viewClass, value => $$invalidate(14, $_viewClass = value));\n\tcomponent_subscribe($$self, allDaySlot, value => $$invalidate(6, $allDaySlot = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(4, $theme = value));\n\tlet viewState = new State(state);\n\tsetContext('view-state', viewState);\n\tlet { _viewResources } = viewState;\n\tcomponent_subscribe($$self, _viewResources, value => $$invalidate(1, $_viewResources = value));\n\tset_store_value(_viewClass, $_viewClass = 'week', $_viewClass);\n\tlet loops;\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*$datesAboveResources, $_viewDates, $_viewResources*/ 7) {\n\t\t\t$$invalidate(3, loops = $datesAboveResources\n\t\t\t? [$_viewDates, $_viewResources]\n\t\t\t: [$_viewResources, $_viewDates]);\n\t\t}\n\t};\n\n\treturn [\n\t\t$_viewDates,\n\t\t$_viewResources,\n\t\t$datesAboveResources,\n\t\tloops,\n\t\t$theme,\n\t\t$_intlDayHeader,\n\t\t$allDaySlot,\n\t\tdatesAboveResources,\n\t\t_viewDates,\n\t\t_intlDayHeader,\n\t\t_viewClass,\n\t\tallDaySlot,\n\t\ttheme,\n\t\t_viewResources\n\t];\n}\n\nclass View extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$1, create_fragment, safe_not_equal, {}, null, [-1, -1]);\n\t}\n}\n\n/* packages/resource-time-grid/src/Auxiliary.svelte generated by Svelte v3.55.1 */\n\nfunction instance($$self, $$props, $$invalidate) {\n\tlet $resources;\n\tlet $_resBgColor;\n\tlet { resources, _resBgColor } = getContext('state');\n\tcomponent_subscribe($$self, resources, value => $$invalidate(2, $resources = value));\n\tcomponent_subscribe($$self, _resBgColor, value => $$invalidate(3, $_resBgColor = value));\n\n\tset_store_value(\n\t\t_resBgColor,\n\t\t$_resBgColor = event => {\n\t\t\tlet resource = $resources.find(res => event.resourceIds.includes(res.id));\n\t\t\treturn resource?.eventBackgroundColor;\n\t\t},\n\t\t$_resBgColor\n\t);\n\n\treturn [resources, _resBgColor];\n}\n\nclass Auxiliary extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance, null, safe_not_equal, {});\n\t}\n}\n\nvar index = {\n\tcreateOptions(options) {\n\t\toptions.resources = [];\n\t\toptions.datesAboveResources = false;\n\t\toptions.filterResourcesWithEvents = false;\n\t\toptions.resourceLabelContent = undefined;\n\t\toptions.resourceLabelDidMount = undefined;\n\t\t// Common options\n\t\toptions.buttonText.resourceTimeGridDay = 'day';\n\t\toptions.buttonText.resourceTimeGridWeek = 'week';\n\t\toptions.theme.resource = 'ec-resource';\n\t\toptions.theme.resourceTitle = 'ec-resource-title';\n\t\toptions.view = 'resourceTimeGridWeek';\n\t\toptions.views.resourceTimeGridDay = {\n\t\t\tcomponent: View,\n\t\t\tduration: {days: 1}\n\t\t};\n\t\toptions.views.resourceTimeGridWeek = {\n\t\t\tcomponent: View,\n\t\t\tduration: {weeks: 1}\n\t\t};\n\t},\n\n\tcreateParsers(parsers, options) {\n\t\tparsers.resources = createResources;\n\t},\n\n\tcreateStores(state) {\n\t\tstate._auxiliary.update($_auxiliary => [...$_auxiliary, Auxiliary]);\n\t}\n};\n\nfunction createResources(input) {\n\treturn input.map(resource => ({\n\t\tid: String(resource.id),\n\t\ttitle: resource.title || '',\n\t\ttitleHTML: resource.titleHTML || '',\n\t\teventBackgroundColor: resource.eventBackgroundColor,\n\t}));\n}\n\nexport { index as default };\n","import { SvelteComponent, init, safe_not_equal, noop, listen, is_function, run_all, component_subscribe, globals, set_store_value, bubble, subscribe, empty, insert, detach, element, attr, create_component, space, mount_component, transition_in, group_outros, transition_out, check_outros, destroy_component, binding_callbacks } from 'svelte/internal';\nimport { getContext } from 'svelte';\nimport { ancestor, addDuration, cloneDate, addDay, rect, createDuration, toEventWithLocalDates, toISOString, toViewWithLocalDates, cloneEvent, assign } from '@event-calendar/common';\n\nfunction traverseTimeGrid(dayEl) {\n let colEl = child(ancestor(dayEl, 1), 1);\n let bodyEl = ancestor(dayEl, 3);\n let col = pos(dayEl) - 1;\n\n return [colEl, bodyEl, col];\n}\n\nfunction traverseResourceTimeGrid(dayEl, datesAboveResources) {\n let colEl = child(child(ancestor(dayEl, 2), 1), 0);\n let resourceEl = ancestor(dayEl, 1);\n let bodyEl = ancestor(resourceEl, 3);\n let col = pos(dayEl);\n let resourceCol = pos(resourceEl) - 1;\n\n return datesAboveResources ? [colEl, bodyEl, resourceCol, col] : [colEl, bodyEl, col, resourceCol];\n}\n\nfunction traverseDayGrid(dayEl) {\n let daysEl = ancestor(dayEl, 1);\n let contentEl = ancestor(daysEl, 1);\n let colEl = child(child(contentEl, 0), 0);\n let bodyEl = ancestor(contentEl, 1);\n let col = pos(dayEl);\n let row = pos(daysEl);\n\n return [colEl, bodyEl, col, row, contentEl.children];\n}\n\nfunction child(el, pos) {\n return el.children[pos];\n}\n\nfunction pos(el) {\n let result = 0;\n while ((el = el.previousElementSibling)) {\n ++result;\n }\n return result;\n}\n\nlet busy = false;\nfunction animate(fn) {\n if (!busy) {\n busy = true;\n window.requestAnimationFrame(() => {\n fn();\n busy = false;\n });\n }\n}\n\nfunction limit(value, max) {\n return Math.max(0, Math.min(max, value));\n}\n\nfunction floor(value) {\n return Math.floor(value);\n}\n\n/* packages/interaction/src/Action.svelte generated by Svelte v3.55.1 */\n\nconst { window: window_1 } = globals;\n\nfunction create_fragment$3(ctx) {\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tc: noop,\n\t\tm(target, anchor) {\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(window_1, \"pointermove\", /*handlePointerMove*/ ctx[31]),\n\t\t\t\t\tlisten(window_1, \"pointerup\", /*handlePointerUp*/ ctx[32]),\n\t\t\t\t\tlisten(window_1, \"pointercancel\", /*handlePointerUp*/ ctx[32]),\n\t\t\t\t\tlisten(window_1, \"scroll\", /*handleScroll*/ ctx[0]),\n\t\t\t\t\tlisten(window_1, \"selectstart\", function () {\n\t\t\t\t\t\tif (is_function(createPreventDefaultHandler(/*selectstart_handler*/ ctx[40]))) createPreventDefaultHandler(/*selectstart_handler*/ ctx[40]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(window_1, \"contextmenu\", function () {\n\t\t\t\t\t\tif (is_function(createPreventDefaultHandler(/*contextmenu_handler*/ ctx[41]))) createPreventDefaultHandler(/*contextmenu_handler*/ ctx[41]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(window_1, \"touchstart\", /*handleTouchStart*/ ctx[33]),\n\t\t\t\t\tlisten(window_1, \"touchmove\", /*touchmove_handler*/ ctx[39], { passive: false })\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nconst ACTION_DRAG = 1;\nconst ACTION_RESIZE = 2;\nconst ACTION_SELECT = 3;\nconst VIEW_TIME_GRID = 1;\nconst VIEW_DAY_GRID = 2;\n\nfunction createPreventDefaultHandler(condition) {\n\treturn jsEvent => {\n\t\tif (condition()) {\n\t\t\tjsEvent.preventDefault();\n\t\t}\n\t};\n}\n\nfunction instance$3($$self, $$props, $$invalidate) {\n\tlet $_view;\n\tlet $unselectFn;\n\tlet $_events;\n\tlet $_iEvents;\n\tlet $selectBackgroundColor;\n\tlet $_iClass;\n\n\tlet $_viewResources,\n\t\t$$unsubscribe__viewResources = noop,\n\t\t$$subscribe__viewResources = () => ($$unsubscribe__viewResources(), $$unsubscribe__viewResources = subscribe(_viewResources, $$value => $$invalidate(71, $_viewResources = $$value)), _viewResources);\n\n\tlet $eventDrop;\n\tlet $eventResize;\n\tlet $eventDragStop;\n\tlet $eventResizeStop;\n\tlet $select;\n\tlet $unselectCancel;\n\tlet $unselectAuto;\n\tlet $dragScroll;\n\tlet $eventDragStart;\n\tlet $eventResizeStart;\n\tlet $_viewDates;\n\tlet $hiddenDays;\n\tlet $slotDuration;\n\tlet $slotHeight;\n\tlet $datesAboveResources;\n\tlet $_ignoreClick;\n\tlet $eventDragMinDistance;\n\tlet $selectMinDistance;\n\tlet $longPressDelay;\n\tlet $eventLongPressDelay;\n\tlet $selectLongPressDelay;\n\t$$self.$$.on_destroy.push(() => $$unsubscribe__viewResources());\n\tlet { _iEvents, _iClass, _ignoreClick, _events, _viewDates, _view, datesAboveResources, dragScroll, editable, eventStartEditable, eventDragMinDistance, eventDragStart, eventDragStop, eventDrop, eventLongPressDelay, eventResizeStart, eventResizeStop, eventResize, longPressDelay, select, selectBackgroundColor, selectLongPressDelay, selectMinDistance, slotDuration, slotHeight, hiddenDays, unselect: unselectFn, unselectAuto, unselectCancel } = getContext('state');\n\tcomponent_subscribe($$self, _iEvents, value => $$invalidate(68, $_iEvents = value));\n\tcomponent_subscribe($$self, _iClass, value => $$invalidate(70, $_iClass = value));\n\tcomponent_subscribe($$self, _ignoreClick, value => $$invalidate(87, $_ignoreClick = value));\n\tcomponent_subscribe($$self, _events, value => $$invalidate(67, $_events = value));\n\tcomponent_subscribe($$self, _viewDates, value => $$invalidate(82, $_viewDates = value));\n\tcomponent_subscribe($$self, _view, value => $$invalidate(65, $_view = value));\n\tcomponent_subscribe($$self, datesAboveResources, value => $$invalidate(86, $datesAboveResources = value));\n\tcomponent_subscribe($$self, dragScroll, value => $$invalidate(79, $dragScroll = value));\n\tcomponent_subscribe($$self, eventDragMinDistance, value => $$invalidate(88, $eventDragMinDistance = value));\n\tcomponent_subscribe($$self, eventDragStart, value => $$invalidate(80, $eventDragStart = value));\n\tcomponent_subscribe($$self, eventDragStop, value => $$invalidate(74, $eventDragStop = value));\n\tcomponent_subscribe($$self, eventDrop, value => $$invalidate(72, $eventDrop = value));\n\tcomponent_subscribe($$self, eventLongPressDelay, value => $$invalidate(91, $eventLongPressDelay = value));\n\tcomponent_subscribe($$self, eventResizeStart, value => $$invalidate(81, $eventResizeStart = value));\n\tcomponent_subscribe($$self, eventResizeStop, value => $$invalidate(75, $eventResizeStop = value));\n\tcomponent_subscribe($$self, eventResize, value => $$invalidate(73, $eventResize = value));\n\tcomponent_subscribe($$self, longPressDelay, value => $$invalidate(90, $longPressDelay = value));\n\tcomponent_subscribe($$self, select, value => $$invalidate(76, $select = value));\n\tcomponent_subscribe($$self, selectBackgroundColor, value => $$invalidate(69, $selectBackgroundColor = value));\n\tcomponent_subscribe($$self, selectLongPressDelay, value => $$invalidate(92, $selectLongPressDelay = value));\n\tcomponent_subscribe($$self, selectMinDistance, value => $$invalidate(89, $selectMinDistance = value));\n\tcomponent_subscribe($$self, slotDuration, value => $$invalidate(84, $slotDuration = value));\n\tcomponent_subscribe($$self, slotHeight, value => $$invalidate(85, $slotHeight = value));\n\tcomponent_subscribe($$self, hiddenDays, value => $$invalidate(83, $hiddenDays = value));\n\tcomponent_subscribe($$self, unselectFn, value => $$invalidate(66, $unselectFn = value));\n\tcomponent_subscribe($$self, unselectAuto, value => $$invalidate(78, $unselectAuto = value));\n\tcomponent_subscribe($$self, unselectCancel, value => $$invalidate(77, $unselectCancel = value));\n\tlet action;\n\tlet view;\n\tlet interacting;\n\tlet event;\n\tlet col, row;\n\tlet offsetX, offsetY;\n\tlet fromX, fromY;\n\tlet toX, toY;\n\tlet delta;\n\tlet colEl, rowEls, bodyEl;\n\tlet colRect, bodyRect;\n\tlet _viewResources;\n\tlet resourceCol, newResourceCol;\n\tlet isAllDay = false;\n\tlet iClass;\n\tlet minEnd; // minimum end time when resizing\n\tlet selected; // whether selection has been made\n\tlet timer; // timer for long press delays\n\n\tfunction dragTimeGrid(eventToDrag, el, jsEvent, resourcesStore, allDay, resize) {\n\t\tif (!action && jsEvent.isPrimary) {\n\t\t\t$$invalidate(1, action = resize ? ACTION_RESIZE : ACTION_DRAG);\n\t\t\tview = VIEW_TIME_GRID;\n\t\t\tevent = eventToDrag;\n\t\t\t$$subscribe__viewResources($$invalidate(2, _viewResources = resourcesStore));\n\t\t\tisAllDay = allDay;\n\t\t\tiClass = resize ? allDay ? 'resizingX' : 'resizingY' : 'dragging';\n\t\t\tlet dayEl = ancestor(el, 2);\n\n\t\t\tif (resourcesStore) {\n\t\t\t\t[colEl, bodyEl, col, resourceCol] = traverseResourceTimeGrid(dayEl, $datesAboveResources);\n\t\t\t} else {\n\t\t\t\t[colEl, bodyEl, col] = traverseTimeGrid(dayEl);\n\t\t\t}\n\n\t\t\tcommon(jsEvent);\n\t\t\toffsetY = floor((jsEvent.clientY - colRect.top) / $slotHeight);\n\t\t\toffsetX = 0; // applicable for all-day slot\n\n\t\t\tif (allDay && (!resourcesStore || !$datesAboveResources)) {\n\t\t\t\toffsetX = floor((jsEvent.clientX - colRect.left) / colRect.width) - col - (resourceCol || 0) * $_viewDates.length;\n\t\t\t}\n\n\t\t\tif (resize) {\n\t\t\t\tminEnd = addDuration(cloneDate(event.start), $slotDuration);\n\t\t\t}\n\n\t\t\tmove(jsEvent);\n\t\t}\n\t}\n\n\tfunction dragDayGrid(eventToDrag, el, jsEvent, inPopup, resize) {\n\t\tif (!action && jsEvent.isPrimary) {\n\t\t\t$$invalidate(1, action = resize ? ACTION_RESIZE : ACTION_DRAG);\n\t\t\tview = VIEW_DAY_GRID;\n\t\t\tevent = eventToDrag;\n\t\t\tiClass = resize ? 'resizingX' : 'dragging';\n\t\t\tlet dayEl = ancestor(el, inPopup ? 3 : 2);\n\t\t\t[colEl, bodyEl, col, row, rowEls] = traverseDayGrid(dayEl);\n\t\t\tcommon(jsEvent);\n\n\t\t\toffsetX = inPopup\n\t\t\t? 0\n\t\t\t: floor((jsEvent.clientX - colRect.left) / colRect.width) - col;\n\n\t\t\tif (resize) {\n\t\t\t\tminEnd = cloneDate(event.start);\n\t\t\t\tminEnd.setUTCHours(event.end.getUTCHours(), event.end.getUTCMinutes(), event.end.getUTCSeconds());\n\n\t\t\t\tif (minEnd < event.start) {\n\t\t\t\t\taddDay(minEnd);\n\t\t\t\t} // minEnd = addDuration(cloneDate(event.start), $slotDuration); alternative version\n\t\t\t}\n\n\t\t\tmove(jsEvent);\n\t\t}\n\t}\n\n\tfunction selectTimeGrid(colDate, dayEl, jsEvent, resourcesStore, _slotTimeLimits, allDay) {\n\t\tif (!action && jsEvent.isPrimary) {\n\t\t\t$$invalidate(1, action = ACTION_SELECT);\n\t\t\tview = VIEW_TIME_GRID;\n\t\t\t$$subscribe__viewResources($$invalidate(2, _viewResources = resourcesStore));\n\t\t\tisAllDay = allDay;\n\t\t\tiClass = 'selecting';\n\n\t\t\tif (resourcesStore) {\n\t\t\t\t[colEl, bodyEl, col, resourceCol] = traverseResourceTimeGrid(dayEl, $datesAboveResources);\n\t\t\t} else {\n\t\t\t\t[colEl, bodyEl, col] = traverseTimeGrid(dayEl);\n\t\t\t}\n\n\t\t\tcommon(jsEvent);\n\t\t\toffsetY = floor((jsEvent.clientY - colRect.top) / $slotHeight);\n\t\t\toffsetX = 0; // applicable for all-day slot\n\n\t\t\tif (allDay && (!resourcesStore || !$datesAboveResources)) {\n\t\t\t\toffsetX = floor((jsEvent.clientX - colRect.left) / colRect.width) - col - (resourceCol || 0) * $_viewDates.length;\n\t\t\t}\n\n\t\t\t// Create dummy source event\n\t\t\tlet date = cloneDate(colDate);\n\n\t\t\tif (!allDay) {\n\t\t\t\taddDuration(date, $slotDuration, offsetY + _slotTimeLimits.min.seconds / $slotDuration.seconds);\n\t\t\t}\n\n\t\t\tevent = {\n\t\t\t\tallDay,\n\t\t\t\tstart: date,\n\t\t\t\tend: allDay\n\t\t\t\t? addDay(cloneDate(date))\n\t\t\t\t: addDuration(cloneDate(date), $slotDuration),\n\t\t\t\tresourceIds: _viewResources ? [$_viewResources[resourceCol].id] : []\n\t\t\t};\n\n\t\t\tmove(jsEvent);\n\t\t}\n\t}\n\n\tfunction selectDayGrid(dayDate, dayEl, jsEvent) {\n\t\tif (!action && jsEvent.isPrimary) {\n\t\t\t$$invalidate(1, action = ACTION_SELECT);\n\t\t\tview = VIEW_DAY_GRID;\n\t\t\tiClass = 'selecting';\n\t\t\t[colEl, bodyEl, col, row, rowEls] = traverseDayGrid(dayEl);\n\t\t\tcommon(jsEvent);\n\t\t\toffsetX = floor((jsEvent.clientX - colRect.left) / colRect.width) - col;\n\n\t\t\t// Create dummy source event\n\t\t\tlet date = cloneDate(dayDate);\n\n\t\t\tevent = {\n\t\t\t\tallDay: false,\n\t\t\t\tstart: date,\n\t\t\t\tend: addDay(cloneDate(date)),\n\t\t\t\tresourceIds: []\n\t\t\t};\n\n\t\t\tmove(jsEvent);\n\t\t}\n\t}\n\n\tfunction common(jsEvent) {\n\t\twindow.getSelection().removeAllRanges();\n\t\tcolRect = rect(colEl);\n\t\tbodyRect = rect(bodyEl);\n\t\tfromX = toX = jsEvent.clientX;\n\t\tfromY = toY = jsEvent.clientY;\n\n\t\tif (jsEvent.pointerType !== 'mouse') {\n\t\t\t// For touch devices init long press delay\n\t\t\t$$invalidate(3, timer = setTimeout(\n\t\t\t\t() => {\n\t\t\t\t\tif (action) {\n\t\t\t\t\t\tinteracting = true;\n\t\t\t\t\t\tmove(jsEvent);\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t(selecting()\n\t\t\t\t? $selectLongPressDelay\n\t\t\t\t: $eventLongPressDelay) ?? $longPressDelay\n\t\t\t));\n\t\t}\n\t}\n\n\tfunction move(jsEvent) {\n\t\tlet rx = toX - colRect.left;\n\t\tlet ry = toY - colRect.top;\n\n\t\tif (interacting || jsEvent && jsEvent.pointerType === 'mouse' && distance() >= (selecting() ? $selectMinDistance : $eventDragMinDistance)) {\n\t\t\tinteracting = true;\n\t\t\tunselect(jsEvent);\n\t\t\tset_store_value(_iClass, $_iClass = iClass, $_iClass);\n\t\t\tset_store_value(_ignoreClick, $_ignoreClick = true, $_ignoreClick);\n\t\t\tlet newCol = floor(rx / colRect.width);\n\n\t\t\tif (view === VIEW_TIME_GRID) {\n\t\t\t\t// timeGrid\n\t\t\t\tif (_viewResources) {\n\t\t\t\t\tif (dragging()) {\n\t\t\t\t\t\tif ($datesAboveResources) {\n\t\t\t\t\t\t\tlet dayCol = limit(floor(newCol / $_viewResources.length), $_viewDates.length - 1);\n\t\t\t\t\t\t\tnewResourceCol = limit(newCol - dayCol * $_viewResources.length, $_viewResources.length - 1);\n\t\t\t\t\t\t\tnewCol = dayCol;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnewResourceCol = limit(floor(newCol / $_viewDates.length), $_viewResources.length - 1);\n\t\t\t\t\t\t\tnewCol -= newResourceCol * $_viewDates.length;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ($datesAboveResources) {\n\t\t\t\t\t\t\tnewCol = floor(newCol / $_viewResources.length);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnewCol -= resourceCol * $_viewDates.length;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tnewCol = limit(newCol, $_viewDates.length - 1);\n\n\t\t\t\tdelta = createDuration({\n\t\t\t\t\tdays: ($_viewDates[newCol] - $_viewDates[col]) / 1000 / 60 / 60 / 24 - offsetX,\n\t\t\t\t\tseconds: isAllDay\n\t\t\t\t\t? 0\n\t\t\t\t\t: (floor(ry / $slotHeight) - offsetY) * $slotDuration.seconds\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\t// dayGrid\n\t\t\t\tlet cols = 7 - $hiddenDays.length;\n\n\t\t\t\tnewCol = limit(newCol, cols - 1);\n\t\t\t\tlet newRow = -1;\n\n\t\t\t\tdo {\n\t\t\t\t\t++newRow;\n\t\t\t\t\try -= rowEls[newRow].offsetHeight;\n\t\t\t\t} while (ry > 0 && newRow < rowEls.length - 1);\n\n\t\t\t\tdelta = createDuration({\n\t\t\t\t\tdays: ($_viewDates[newRow * cols + newCol] - $_viewDates[row * cols + col]) / 1000 / 60 / 60 / 24 - offsetX\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (!$_iEvents[0]) {\n\t\t\t\tif (selecting()) {\n\t\t\t\t\tcreateIEventSelect();\n\t\t\t\t} else {\n\t\t\t\t\tcreateIEvent(jsEvent, resizing() ? $eventResizeStart : $eventDragStart);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tset_store_value(_iEvents, $_iEvents[0].end = addDuration(cloneDate(event.end), delta), $_iEvents);\n\n\t\t\tif (resizing()) {\n\t\t\t\tif ($_iEvents[0].end < minEnd) {\n\t\t\t\t\tset_store_value(_iEvents, $_iEvents[0].end = minEnd, $_iEvents);\n\t\t\t\t\tdelta = createDuration(($_iEvents[0].end - event.end) / 1000);\n\t\t\t\t}\n\t\t\t} else if (selecting()) {\n\t\t\t\tif ($_iEvents[0].end < event.end) {\n\t\t\t\t\tset_store_value(_iEvents, $_iEvents[0].end = event.end, $_iEvents);\n\t\t\t\t\tset_store_value(_iEvents, $_iEvents[0].start = addDuration(cloneDate(event.start), delta), $_iEvents);\n\t\t\t\t} else {\n\t\t\t\t\tset_store_value(_iEvents, $_iEvents[0].start = event.start, $_iEvents);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tset_store_value(_iEvents, $_iEvents[0].start = addDuration(cloneDate(event.start), delta), $_iEvents);\n\n\t\t\t\tif (_viewResources) {\n\t\t\t\t\tset_store_value(_iEvents, $_iEvents[0].resourceIds = event.resourceIds.filter(id => id !== $_viewResources[resourceCol].id), $_iEvents);\n\t\t\t\t\t$_iEvents[0].resourceIds.push($_viewResources[newResourceCol].id);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ($dragScroll) {\n\t\t\tanimate(() => {\n\t\t\t\tif (toY < 0) {\n\t\t\t\t\twindow.scrollBy(0, Math.max(-10, toY / 3));\n\t\t\t\t}\n\n\t\t\t\tif (toY < bodyRect.top) {\n\t\t\t\t\tbodyEl.scrollTop += Math.max(-10, (toY - bodyRect.top) / 3);\n\t\t\t\t}\n\n\t\t\t\tif (toY > window.innerHeight) {\n\t\t\t\t\twindow.scrollBy(0, Math.min(10, (toY - window.innerHeight) / 3));\n\t\t\t\t}\n\n\t\t\t\tif (toY > bodyRect.bottom) {\n\t\t\t\t\tbodyEl.scrollTop += Math.min(10, (toY - bodyRect.bottom) / 3);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\n\tfunction handleScroll() {\n\t\tif (action) {\n\t\t\tcolRect = rect(colEl);\n\t\t\tbodyRect = rect(bodyEl);\n\t\t\tmove();\n\t\t}\n\t}\n\n\tfunction handlePointerMove(jsEvent) {\n\t\tif (action && jsEvent.isPrimary) {\n\t\t\ttoX = jsEvent.clientX;\n\t\t\ttoY = jsEvent.clientY;\n\t\t\tmove(jsEvent);\n\t\t}\n\t}\n\n\tfunction handlePointerUp(jsEvent) {\n\t\tif (selected && $unselectAuto && !($unselectCancel && jsEvent.target.closest($unselectCancel))) {\n\t\t\tunselect(jsEvent);\n\t\t}\n\n\t\tif (action && jsEvent.isPrimary) {\n\t\t\tif (interacting) {\n\t\t\t\tif (selecting()) {\n\t\t\t\t\tselected = true;\n\n\t\t\t\t\tif (is_function($select)) {\n\t\t\t\t\t\tlet { start, end } = toEventWithLocalDates($_iEvents[0]);\n\n\t\t\t\t\t\t$select({\n\t\t\t\t\t\t\tstart,\n\t\t\t\t\t\t\tend,\n\t\t\t\t\t\t\tstartStr: toISOString($_iEvents[0].start),\n\t\t\t\t\t\t\tendStr: toISOString($_iEvents[0].end),\n\t\t\t\t\t\t\tallDay: isAllDay,\n\t\t\t\t\t\t\tjsEvent,\n\t\t\t\t\t\t\tview: toViewWithLocalDates($_view),\n\t\t\t\t\t\t\tresource: resourceCol !== undefined\n\t\t\t\t\t\t\t? $_viewResources[resourceCol]\n\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tevent.display = 'auto';\n\t\t\t\t\tlet callback = resizing() ? $eventResizeStop : $eventDragStop;\n\n\t\t\t\t\tif (is_function(callback)) {\n\t\t\t\t\t\tcallback({\n\t\t\t\t\t\t\tevent: toEventWithLocalDates(event),\n\t\t\t\t\t\t\tjsEvent,\n\t\t\t\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\tlet oldEvent = cloneEvent(event);\n\t\t\t\t\tupdateEvent(event, $_iEvents[0]);\n\t\t\t\t\tdestroyIEvent();\n\t\t\t\t\tcallback = resizing() ? $eventResize : $eventDrop;\n\n\t\t\t\t\tif (is_function(callback)) {\n\t\t\t\t\t\tlet eventRef = event;\n\n\t\t\t\t\t\tlet info = resizing()\n\t\t\t\t\t\t? { endDelta: delta }\n\t\t\t\t\t\t: {\n\t\t\t\t\t\t\t\tdelta,\n\t\t\t\t\t\t\t\toldResource: resourceCol !== newResourceCol\n\t\t\t\t\t\t\t\t? $_viewResources[resourceCol]\n\t\t\t\t\t\t\t\t: undefined,\n\t\t\t\t\t\t\t\tnewResource: resourceCol !== newResourceCol\n\t\t\t\t\t\t\t\t? $_viewResources[newResourceCol]\n\t\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\tcallback(assign(info, {\n\t\t\t\t\t\t\tevent: toEventWithLocalDates(event),\n\t\t\t\t\t\t\toldEvent: toEventWithLocalDates(oldEvent),\n\t\t\t\t\t\t\tjsEvent,\n\t\t\t\t\t\t\tview: toViewWithLocalDates($_view),\n\t\t\t\t\t\t\trevert() {\n\t\t\t\t\t\t\t\tupdateEvent(eventRef, oldEvent);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tcolEl = rowEls = bodyEl = null;\n\t\t\tresourceCol = newResourceCol = undefined;\n\t\t\t$$invalidate(1, action = view = interacting = false);\n\t\t\tisAllDay = false;\n\t\t\tset_store_value(_iClass, $_iClass = undefined, $_iClass);\n\t\t\t$$subscribe__viewResources($$invalidate(2, _viewResources = undefined));\n\n\t\t\tif (timer) {\n\t\t\t\tclearTimeout(timer);\n\t\t\t\t$$invalidate(3, timer = undefined);\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction createIEvent(jsEvent, callback) {\n\t\tif (is_function(callback)) {\n\t\t\tcallback({\n\t\t\t\tevent: toEventWithLocalDates(event),\n\t\t\t\tjsEvent,\n\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t});\n\t\t}\n\n\t\tevent.display = 'preview';\n\t\tset_store_value(_iEvents, $_iEvents[0] = cloneEvent(event), $_iEvents);\n\t\tevent.display = 'ghost';\n\t\t_events.set($_events);\n\t}\n\n\tfunction createIEventSelect() {\n\t\tset_store_value(\n\t\t\t_iEvents,\n\t\t\t$_iEvents[0] = {\n\t\t\t\tid: '{select}',\n\t\t\t\tallDay: event.allDay,\n\t\t\t\tstart: event.start,\n\t\t\t\ttitle: '',\n\t\t\t\tdisplay: 'preview',\n\t\t\t\textendedProps: {},\n\t\t\t\tbackgroundColor: $selectBackgroundColor,\n\t\t\t\tresourceIds: event.resourceIds\n\t\t\t},\n\t\t\t$_iEvents\n\t\t);\n\t}\n\n\tfunction destroyIEvent() {\n\t\tset_store_value(_iEvents, $_iEvents[0] = null, $_iEvents);\n\t}\n\n\tfunction updateEvent(target, source) {\n\t\ttarget.start = source.start;\n\t\ttarget.end = source.end;\n\t\ttarget.resourceIds = source.resourceIds;\n\t\t_events.set($_events);\n\t}\n\n\tfunction distance() {\n\t\treturn Math.sqrt(Math.pow(toX - fromX, 2) + Math.pow(toY - fromY, 2));\n\t}\n\n\tfunction dragging() {\n\t\treturn action === ACTION_DRAG;\n\t}\n\n\tfunction resizing() {\n\t\treturn action === ACTION_RESIZE;\n\t}\n\n\tfunction selecting() {\n\t\treturn action === ACTION_SELECT;\n\t}\n\n\tfunction unselect(jsEvent) {\n\t\tif (selected) {\n\t\t\tselected = false;\n\t\t\tdestroyIEvent();\n\n\t\t\tif (is_function($unselectFn)) {\n\t\t\t\t$unselectFn({\n\t\t\t\t\tjsEvent,\n\t\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\n\t// Clear selection on view params change\n\t_view.subscribe(unselect);\n\n\tfunction handleTouchStart(jsEvent) {\n\t\tif (action) {\n\t\t\tlet target = jsEvent.target;\n\t\t\tlet stops = [];\n\t\t\tlet stop = () => run_all(stops);\n\t\t\tstops.push(listen(target, 'touchmove', createPreventDefaultHandler(() => interacting)));\n\t\t\tstops.push(listen(target, 'touchend', stop));\n\t\t\tstops.push(listen(target, 'touchcancel', stop));\n\t\t}\n\t}\n\n\tfunction touchmove_handler(event) {\n\t\tbubble.call(this, $$self, event);\n\t}\n\n\tconst selectstart_handler = () => action;\n\tconst contextmenu_handler = () => timer;\n\n\treturn [\n\t\thandleScroll,\n\t\taction,\n\t\t_viewResources,\n\t\ttimer,\n\t\t_iEvents,\n\t\t_iClass,\n\t\t_ignoreClick,\n\t\t_events,\n\t\t_viewDates,\n\t\t_view,\n\t\tdatesAboveResources,\n\t\tdragScroll,\n\t\teventDragMinDistance,\n\t\teventDragStart,\n\t\teventDragStop,\n\t\teventDrop,\n\t\teventLongPressDelay,\n\t\teventResizeStart,\n\t\teventResizeStop,\n\t\teventResize,\n\t\tlongPressDelay,\n\t\tselect,\n\t\tselectBackgroundColor,\n\t\tselectLongPressDelay,\n\t\tselectMinDistance,\n\t\tslotDuration,\n\t\tslotHeight,\n\t\thiddenDays,\n\t\tunselectFn,\n\t\tunselectAuto,\n\t\tunselectCancel,\n\t\thandlePointerMove,\n\t\thandlePointerUp,\n\t\thandleTouchStart,\n\t\tdragTimeGrid,\n\t\tdragDayGrid,\n\t\tselectTimeGrid,\n\t\tselectDayGrid,\n\t\tunselect,\n\t\ttouchmove_handler,\n\t\tselectstart_handler,\n\t\tcontextmenu_handler\n\t];\n}\n\nclass Action extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$3,\n\t\t\tcreate_fragment$3,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tdragTimeGrid: 34,\n\t\t\t\tdragDayGrid: 35,\n\t\t\t\tselectTimeGrid: 36,\n\t\t\t\tselectDayGrid: 37,\n\t\t\t\thandleScroll: 0,\n\t\t\t\tunselect: 38\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1, -1, -1]\n\t\t);\n\t}\n\n\tget dragTimeGrid() {\n\t\treturn this.$$.ctx[34];\n\t}\n\n\tget dragDayGrid() {\n\t\treturn this.$$.ctx[35];\n\t}\n\n\tget selectTimeGrid() {\n\t\treturn this.$$.ctx[36];\n\t}\n\n\tget selectDayGrid() {\n\t\treturn this.$$.ctx[37];\n\t}\n\n\tget handleScroll() {\n\t\treturn this.$$.ctx[0];\n\t}\n\n\tget unselect() {\n\t\treturn this.$$.ctx[38];\n\t}\n}\n\n/* packages/interaction/src/Pointer.svelte generated by Svelte v3.55.1 */\n\nfunction create_fragment$2(ctx) {\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tc: noop,\n\t\tm(target, anchor) {\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(window, \"pointermove\", /*handlePointerMove*/ ctx[5]),\n\t\t\t\t\tlisten(window, \"scroll\", /*handleScroll*/ ctx[0])\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp: noop,\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction validEvent(jsEvent) {\n\treturn jsEvent.isPrimary && jsEvent.pointerType === 'mouse';\n}\n\nfunction instance$2($$self, $$props, $$invalidate) {\n\tlet $_iEvents;\n\tlet $slotDuration;\n\n\tlet $_slotTimeLimits,\n\t\t$$unsubscribe__slotTimeLimits = noop,\n\t\t$$subscribe__slotTimeLimits = () => ($$unsubscribe__slotTimeLimits(), $$unsubscribe__slotTimeLimits = subscribe(_slotTimeLimits, $$value => $$invalidate(17, $_slotTimeLimits = $$value)), _slotTimeLimits);\n\n\tlet $slotHeight;\n\t$$self.$$.on_destroy.push(() => $$unsubscribe__slotTimeLimits());\n\tlet { _iEvents, _events, _viewDates, slotDuration, slotHeight, hiddenDays, _view, datesAboveResources, theme } = getContext('state');\n\tcomponent_subscribe($$self, _iEvents, value => $$invalidate(9, $_iEvents = value));\n\tcomponent_subscribe($$self, slotDuration, value => $$invalidate(16, $slotDuration = value));\n\tcomponent_subscribe($$self, slotHeight, value => $$invalidate(18, $slotHeight = value));\n\tlet y;\n\tlet colDate;\n\tlet colEl;\n\tlet colRect;\n\tlet resource;\n\tlet _slotTimeLimits;\n\tlet date;\n\n\tfunction enterTimeGrid(date, el, jsEvent, slotTimeLimitsStore, resourceObj) {\n\t\tif (validEvent(jsEvent)) {\n\t\t\tcolDate = date;\n\t\t\tcolEl = el;\n\t\t\tcolRect = rect(colEl);\n\t\t\ty = jsEvent.clientY;\n\t\t\t$$subscribe__slotTimeLimits($$invalidate(1, _slotTimeLimits = slotTimeLimitsStore));\n\t\t\tresource = resourceObj;\n\t\t}\n\t}\n\n\tfunction enterDayGrid(date, jsEvent) {\n\t\tif (validEvent(jsEvent)) {\n\t\t\tcolDate = date;\n\t\t\tcolEl = null;\n\t\t\ty = $$subscribe__slotTimeLimits($$invalidate(1, _slotTimeLimits = resource = undefined));\n\t\t}\n\t}\n\n\tfunction leave(jsEvent) {\n\t\tif (validEvent(jsEvent)) {\n\t\t\tremovePointerEvent();\n\t\t}\n\t}\n\n\tfunction move() {\n\t\tif (!colDate) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (colEl) {\n\t\t\t// timeGrid\n\t\t\tlet ry = y - colRect.top;\n\n\t\t\tdate = addDuration(cloneDate(colDate), $slotDuration, floor(ry / $slotHeight + $_slotTimeLimits.min.seconds / $slotDuration.seconds));\n\t\t} else {\n\t\t\t// dayGrid\n\t\t\tdate = colDate;\n\t\t}\n\n\t\tif (!$_iEvents[1]) {\n\t\t\tcreatePointerEvent();\n\t\t}\n\n\t\tset_store_value(_iEvents, $_iEvents[1].start = date, $_iEvents);\n\t\tset_store_value(_iEvents, $_iEvents[1].end = addDuration(cloneDate(date), $slotDuration), $_iEvents);\n\t\tset_store_value(_iEvents, $_iEvents[1].resourceIds = resource ? [resource.id] : [], $_iEvents);\n\t}\n\n\tfunction handleScroll() {\n\t\tif (colEl) {\n\t\t\tcolRect = rect(colEl);\n\t\t\tmove();\n\t\t}\n\t}\n\n\tfunction handlePointerMove(jsEvent) {\n\t\tif (validEvent(jsEvent)) {\n\t\t\ty = jsEvent.clientY;\n\t\t\tmove();\n\t\t}\n\t}\n\n\tfunction createPointerEvent() {\n\t\tset_store_value(\n\t\t\t_iEvents,\n\t\t\t$_iEvents[1] = {\n\t\t\t\tid: '{pointer}',\n\t\t\t\ttitle: '',\n\t\t\t\tdisplay: 'pointer',\n\t\t\t\textendedProps: {},\n\t\t\t\tbackgroundColor: 'transparent'\n\t\t\t},\n\t\t\t$_iEvents\n\t\t);\n\t}\n\n\tfunction removePointerEvent() {\n\t\tcolDate = colEl = set_store_value(_iEvents, $_iEvents[1] = null, $_iEvents);\n\t}\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*$_iEvents*/ 512) {\n\t\t\tif ($_iEvents[0]) {\n\t\t\t\tremovePointerEvent();\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\thandleScroll,\n\t\t_slotTimeLimits,\n\t\t_iEvents,\n\t\tslotDuration,\n\t\tslotHeight,\n\t\thandlePointerMove,\n\t\tenterTimeGrid,\n\t\tenterDayGrid,\n\t\tleave,\n\t\t$_iEvents\n\t];\n}\n\nclass Pointer extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(this, options, instance$2, create_fragment$2, safe_not_equal, {\n\t\t\tenterTimeGrid: 6,\n\t\t\tenterDayGrid: 7,\n\t\t\tleave: 8,\n\t\t\thandleScroll: 0\n\t\t});\n\t}\n\n\tget enterTimeGrid() {\n\t\treturn this.$$.ctx[6];\n\t}\n\n\tget enterDayGrid() {\n\t\treturn this.$$.ctx[7];\n\t}\n\n\tget leave() {\n\t\treturn this.$$.ctx[8];\n\t}\n\n\tget handleScroll() {\n\t\treturn this.$$.ctx[0];\n\t}\n}\n\n/* packages/interaction/src/Resizer.svelte generated by Svelte v3.55.1 */\n\nfunction create_if_block$1(ctx) {\n\tlet div;\n\tlet div_class_value;\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[2].resizer);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = listen(div, \"pointerdown\", /*pointerdown_handler*/ ctx[5]);\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*$theme*/ 4 && div_class_value !== (div_class_value = /*$theme*/ ctx[2].resizer)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tmounted = false;\n\t\t\tdispose();\n\t\t}\n\t};\n}\n\nfunction create_fragment$1(ctx) {\n\tlet show_if = /*event*/ ctx[0].display === 'auto' && /*$_resizable*/ ctx[1](/*event*/ ctx[0]);\n\tlet if_block_anchor;\n\tlet if_block = show_if && create_if_block$1(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif (if_block) if_block.c();\n\t\t\tif_block_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (if_block) if_block.m(target, anchor);\n\t\t\tinsert(target, if_block_anchor, anchor);\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (dirty & /*event, $_resizable*/ 3) show_if = /*event*/ ctx[0].display === 'auto' && /*$_resizable*/ ctx[1](/*event*/ ctx[0]);\n\n\t\t\tif (show_if) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block$1(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\tif_block.m(if_block_anchor.parentNode, if_block_anchor);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tif_block.d(1);\n\t\t\t\tif_block = null;\n\t\t\t}\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tif (if_block) if_block.d(detaching);\n\t\t\tif (detaching) detach(if_block_anchor);\n\t\t}\n\t};\n}\n\nfunction instance$1($$self, $$props, $$invalidate) {\n\tlet $_resizable;\n\tlet $theme;\n\tlet { event } = $$props;\n\tlet { theme, _resizable } = getContext('state');\n\tcomponent_subscribe($$self, theme, value => $$invalidate(2, $theme = value));\n\tcomponent_subscribe($$self, _resizable, value => $$invalidate(1, $_resizable = value));\n\n\tfunction pointerdown_handler(event) {\n\t\tbubble.call(this, $$self, event);\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('event' in $$props) $$invalidate(0, event = $$props.event);\n\t};\n\n\treturn [event, $_resizable, $theme, theme, _resizable, pointerdown_handler];\n}\n\nclass Resizer extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$1, create_fragment$1, safe_not_equal, { event: 0 });\n\t}\n}\n\n/* packages/interaction/src/Auxiliary.svelte generated by Svelte v3.55.1 */\n\nfunction create_if_block(ctx) {\n\tlet pointer_1;\n\tlet current;\n\tlet pointer_1_props = {};\n\tpointer_1 = new Pointer({ props: pointer_1_props });\n\t/*pointer_1_binding*/ ctx[18](pointer_1);\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(pointer_1.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(pointer_1, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst pointer_1_changes = {};\n\t\t\tpointer_1.$set(pointer_1_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(pointer_1.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(pointer_1.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\t/*pointer_1_binding*/ ctx[18](null);\n\t\t\tdestroy_component(pointer_1, detaching);\n\t\t}\n\t};\n}\n\nfunction create_fragment(ctx) {\n\tlet action;\n\tlet t;\n\tlet if_block_anchor;\n\tlet current;\n\tlet action_props = {};\n\taction = new Action({ props: action_props });\n\t/*action_binding*/ ctx[17](action);\n\tlet if_block = /*$pointer*/ ctx[1] && create_if_block(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(action.$$.fragment);\n\t\t\tt = space();\n\t\t\tif (if_block) if_block.c();\n\t\t\tif_block_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(action, target, anchor);\n\t\t\tinsert(target, t, anchor);\n\t\t\tif (if_block) if_block.m(target, anchor);\n\t\t\tinsert(target, if_block_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tconst action_changes = {};\n\t\t\taction.$set(action_changes);\n\n\t\t\tif (/*$pointer*/ ctx[1]) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty & /*$pointer*/ 2) {\n\t\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\tif_block.m(if_block_anchor.parentNode, if_block_anchor);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block, 1, 1, () => {\n\t\t\t\t\tif_block = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(action.$$.fragment, local);\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(action.$$.fragment, local);\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\t/*action_binding*/ ctx[17](null);\n\t\t\tdestroy_component(action, detaching);\n\t\t\tif (detaching) detach(t);\n\t\t\tif (if_block) if_block.d(detaching);\n\t\t\tif (detaching) detach(if_block_anchor);\n\t\t}\n\t};\n}\n\nfunction instance($$self, $$props, $$invalidate) {\n\tlet $_interaction;\n\tlet $_scroll;\n\tlet $editable;\n\tlet $eventDurationEditable;\n\tlet $_resizable;\n\tlet $eventStartEditable;\n\tlet $_draggable;\n\tlet $theme;\n\tlet $_classes;\n\tlet $pointer;\n\tlet { theme, editable, eventStartEditable, eventDurationEditable, pointer, _interaction, _classes, _draggable, _resizable, _scroll } = getContext('state');\n\tcomponent_subscribe($$self, theme, value => $$invalidate(16, $theme = value));\n\tcomponent_subscribe($$self, editable, value => $$invalidate(12, $editable = value));\n\tcomponent_subscribe($$self, eventStartEditable, value => $$invalidate(14, $eventStartEditable = value));\n\tcomponent_subscribe($$self, eventDurationEditable, value => $$invalidate(13, $eventDurationEditable = value));\n\tcomponent_subscribe($$self, pointer, value => $$invalidate(1, $pointer = value));\n\tcomponent_subscribe($$self, _interaction, value => $$invalidate(0, $_interaction = value));\n\tcomponent_subscribe($$self, _classes, value => $$invalidate(21, $_classes = value));\n\tcomponent_subscribe($$self, _draggable, value => $$invalidate(15, $_draggable = value));\n\tcomponent_subscribe($$self, _resizable, value => $$invalidate(20, $_resizable = value));\n\tcomponent_subscribe($$self, _scroll, value => $$invalidate(19, $_scroll = value));\n\tset_store_value(_interaction, $_interaction.resizer = Resizer, $_interaction);\n\n\tset_store_value(\n\t\t_scroll,\n\t\t$_scroll = () => {\n\t\t\tfor (let component of Object.values($_interaction)) {\n\t\t\t\tcomponent?.handleScroll?.();\n\t\t\t}\n\t\t},\n\t\t$_scroll\n\t);\n\n\tfunction action_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\t$_interaction.action = $$value;\n\t\t\t_interaction.set($_interaction);\n\t\t});\n\t}\n\n\tfunction pointer_1_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\t$_interaction.pointer = $$value;\n\t\t\t_interaction.set($_interaction);\n\t\t});\n\t}\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*$eventStartEditable, $editable*/ 20480) {\n\t\t\tset_store_value(_draggable, $_draggable = event => (event.startEditable ?? $eventStartEditable) || (event.editable ?? $editable), $_draggable);\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*$_draggable, $theme*/ 98304) {\n\t\t\tset_store_value(\n\t\t\t\t_classes,\n\t\t\t\t$_classes = (className, event) => {\n\t\t\t\t\tswitch (event.display) {\n\t\t\t\t\t\tcase 'auto':\n\t\t\t\t\t\t\treturn className + ($_draggable(event) ? ' ' + $theme.draggable : '');\n\t\t\t\t\t\tcase 'ghost':\n\t\t\t\t\t\t\treturn `${$theme.event} ${$theme.ghost}`;\n\t\t\t\t\t\tcase 'preview':\n\t\t\t\t\t\t\treturn `${$theme.event} ${$theme.preview}`;\n\t\t\t\t\t\tcase 'pointer':\n\t\t\t\t\t\t\treturn `${$theme.event} ${$theme.pointer}`;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\treturn className;\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t$_classes\n\t\t\t);\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*$eventDurationEditable, $editable*/ 12288) {\n\t\t\tset_store_value(_resizable, $_resizable = event => (event.durationEditable ?? $eventDurationEditable) || (event.editable ?? $editable), $_resizable);\n\t\t}\n\t};\n\n\treturn [\n\t\t$_interaction,\n\t\t$pointer,\n\t\ttheme,\n\t\teditable,\n\t\teventStartEditable,\n\t\teventDurationEditable,\n\t\tpointer,\n\t\t_interaction,\n\t\t_classes,\n\t\t_draggable,\n\t\t_resizable,\n\t\t_scroll,\n\t\t$editable,\n\t\t$eventDurationEditable,\n\t\t$eventStartEditable,\n\t\t$_draggable,\n\t\t$theme,\n\t\taction_binding,\n\t\tpointer_1_binding\n\t];\n}\n\nclass Auxiliary extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance, create_fragment, safe_not_equal, {});\n\t}\n}\n\nvar index = {\n\tcreateOptions(options) {\n\t\toptions.dragScroll = true;\n\t\toptions.editable = false;\n\t\toptions.eventDragMinDistance = 5;\n\t\toptions.eventDragStart = undefined;\n\t\toptions.eventDragStop = undefined;\n\t\toptions.eventDrop = undefined;\n\t\toptions.eventDurationEditable = true;\n\t\toptions.eventLongPressDelay = undefined;\n\t\toptions.eventResizeStart = undefined;\n\t\toptions.eventResizeStop = undefined;\n\t\toptions.eventResize = undefined;\n\t\toptions.eventStartEditable = true;\n\t\toptions.longPressDelay = 1000;\n\t\toptions.pointer = false;\n\t\toptions.select = undefined;\n\t\toptions.selectBackgroundColor = undefined; // ec option\n\t\toptions.selectLongPressDelay = undefined;\n\t\toptions.selectMinDistance = 5;\n\t\toptions.unselect = undefined;\n\t\toptions.unselectAuto = true;\n\t\toptions.unselectCancel = '';\n\t\toptions.theme.draggable = 'ec-draggable';\n\t\toptions.theme.ghost = 'ec-ghost';\n\t\toptions.theme.preview = 'ec-preview';\n\t\toptions.theme.pointer = 'ec-pointer';\n\t\toptions.theme.resizer = 'ec-resizer';\n\t\toptions.theme.dragging = 'ec-dragging';\n\t\toptions.theme.resizingY = 'ec-resizing-y';\n\t\toptions.theme.resizingX = 'ec-resizing-x';\n\t\toptions.theme.selecting = 'ec-selecting';\n\t},\n\n\tcreateStores(state) {\n\t\tstate._auxiliary.update($_auxiliary => [...$_auxiliary, Auxiliary]);\n\t}\n};\n\nexport { index as default };\n","import Calendar from '@event-calendar/core';\nimport DayGrid from '@event-calendar/day-grid';\nimport List from '@event-calendar/list';\nimport TimeGrid from '@event-calendar/time-grid';\nimport ResourceTimeGrid from '@event-calendar/resource-time-grid';\nimport Interaction from '@event-calendar/interaction';\nimport '@event-calendar/core/index.css';\n\nexport default class extends Calendar {\n constructor(el, options) {\n super({\n target: el,\n props: {\n plugins: [DayGrid, List, TimeGrid, ResourceTimeGrid, Interaction],\n options\n }\n });\n }\n\n get view() {\n return this.getView();\n }\n}\n"],"names":["match","version","fails","exec","error","functionBindNative","require$$0","test","bind","hasOwnProperty","NATIVE_BIND","FunctionPrototype","Function","prototype","call","uncurryThisWithBind","functionUncurryThis","fn","apply","arguments","uncurryThis","toString","stringSlice","slice","classofRaw","it","require$$1","classof","require$$2","$Object","Object","split","indexedObject","propertyIsEnumerable","isNullOrUndefined","$TypeError","TypeError","requireObjectCoercible","IndexedObject","toIndexedObject","iterators","check","Math","global","globalThis","window","self","this","documentAll","document","all","documentAll_1","IS_HTMLDDA","undefined","isCallable","argument","WeakMap","weakMapBasicDetection","String","isObject","descriptors","defineProperty","get","EXISTS","createElement","documentCreateElement","ie8DomDefine","a","v8PrototypeDefineBug","value","writable","$String","anObject","functionCall","path","aFunction","variable","getBuiltIn","namespace","method","length","objectIsPrototypeOf","isPrototypeOf","userAgent","process","Deno","versions","v8","V8_VERSION","symbolConstructorDetection","getOwnPropertySymbols","symbol","Symbol","sham","useSymbolAsUid","iterator","isSymbol","require$$3","$Symbol","tryToString","aCallable","defineGlobalProperty","key","configurable","SHARED","sharedStore","store","sharedModule","push","mode","copyright","license","source","toObject","hasOwnProperty_1","hasOwn","id","postfix","random","uid","NATIVE_SYMBOL","require$$4","USE_SYMBOL_AS_UID","require$$5","WellKnownSymbolsStore","symbolFor","createWellKnownSymbol","withoutSetter","wellKnownSymbol","name","description","getMethod","V","P","func","ordinaryToPrimitive","input","pref","val","valueOf","TO_PRIMITIVE","toPrimitive","result","exoticToPrim","toPropertyKey","DESCRIPTORS","IE8_DOM_DEFINE","V8_PROTOTYPE_DEFINE_BUG","$defineProperty","$getOwnPropertyDescriptor","getOwnPropertyDescriptor","ENUMERABLE","CONFIGURABLE","WRITABLE","objectDefineProperty","f","O","Attributes","current","enumerable","set","has","createPropertyDescriptor","bitmap","definePropertyModule","createNonEnumerableProperty","object","keys","sharedKey","hiddenKeys","NATIVE_WEAK_MAP","shared","require$$6","require$$7","OBJECT_ALREADY_INITIALIZED","state","metadata","facade","STATE","internalState","enforce","getterFor","TYPE","type","functionApply","Reflect","functionUncurryThisClause","$propertyIsEnumerable","NASHORN_BUG","objectPropertyIsEnumerable","descriptor","propertyIsEnumerableModule","objectGetOwnPropertyDescriptor","replacement","isForced","feature","detection","data","normalize","POLYFILL","NATIVE","string","replace","toLowerCase","isForced_1","that","require$$8","require$$9","wrapConstructor","NativeConstructor","Wrapper","b","c","getDescriptor","functionName","PROPER","ceil","floor","trunc","x","n","toIntegerOrInfinity","number","max","min","toLength","toAbsoluteIndex","index","integer","lengthOfArrayLike","obj","createMethod","IS_INCLUDES","$this","el","fromIndex","arrayIncludes","includes","indexOf","enumBugKeys","internalObjectKeys","names","i","objectKeys","objectDefineProperties","defineProperties","Properties","props","activeXDocument","html","definePropertiesModule","PROTOTYPE","SCRIPT","IE_PROTO","EmptyConstructor","scriptTag","content","LT","NullProtoObjectViaActiveX","write","close","temp","parentWindow","NullProtoObject","ActiveXObject","iframeDocument","iframe","JS","domain","style","display","appendChild","src","contentWindow","open","F","IteratorPrototype","PrototypeOfArrayIteratorPrototype","arrayIterator","objectCreate","create","correctPrototypeGetter","constructor","getPrototypeOf","CORRECT_PROTOTYPE_GETTER","ObjectPrototype","objectGetPrototypeOf","defineBuiltIn","target","options","ITERATOR","BUGGY_SAFARI_ITERATORS","NEW_ITERATOR_PROTOTYPE","iteratorsCore","toStringTagSupport","TO_STRING_TAG_SUPPORT","TO_STRING_TAG","CORRECT_ARGUMENTS","tag","tryGet","callee","objectToString","setToStringTag","TAG","STATIC","SET_METHOD","Iterators","returnThis","$","FORCED","USE_NATIVE","VIRTUAL_PROTOTYPE","sourceProperty","targetProperty","nativeProperty","resultProperty","TARGET","GLOBAL","stat","PROTO","proto","nativeSource","targetPrototype","forced","dontCallGetSet","wrap","real","FunctionName","createIteratorConstructor","IteratorConstructor","NAME","next","ENUMERABLE_NEXT","require$$10","require$$12","IteratorsCore","require$$13","PROPER_FUNCTION_NAME","require$$11","KEYS","VALUES","ENTRIES","iteratorDefine","Iterable","DEFAULT","IS_SET","CurrentIteratorPrototype","methods","KEY","getIterationMethod","KIND","defaultIterator","IterablePrototype","INCORRECT_VALUES_NAME","nativeIterator","anyNativeIterator","entries","values","createIterResultObject","done","addToUnscopables","InternalStateModule","defineIterator","ARRAY_ITERATOR","setInternalState","getInternalState","defineIterator$1","Array","iterated","kind","Arguments","charAt","charCodeAt","CONVERT_TO_STRING","pos","first","second","S","position","size","codeAt","STRING_ITERATOR","point","isIterable_1","DOMIterables","CSSRuleList","CSSStyleDeclaration","CSSValueList","ClientRectList","DOMRectList","DOMStringList","DOMTokenList","DataTransferItemList","FileList","HTMLAllCollection","HTMLCollection","HTMLFormElement","HTMLSelectElement","MediaList","MimeTypeArray","NamedNodeMap","NodeList","PaintRequestList","Plugin","PluginArray","SVGLengthList","SVGNumberList","SVGPathSegList","SVGPointList","SVGStringList","SVGTransformList","SourceBufferList","StyleSheetList","TextTrackCueList","TextTrackList","TouchList","COLLECTION_NAME","Collection","CollectionPrototype","isIterable","noop","exports","module","identity","run","blank_object","run_all","fns","forEach","is_function","thing","safe_not_equal","subscribe","_len","callbacks","_key","unsub","unsubscribe","get_store_value","_","component_subscribe","component","callback","$$","on_destroy","create_slot","definition","ctx","$$scope","slot_ctx","get_slot_context","tar","k","assign","get_slot_changes","dirty","lets","merged","len","update_slot_base","slot","slot_definition","slot_changes","get_slot_context_fn","slot_context","p","get_all_dirty_from_scope","set_store_value","ret","action_destroyer","action_result","destroy","append","node","insert","anchor","insertBefore","detach","parentNode","removeChild","destroy_each","iterations","detaching","d","element","text","createTextNode","space","empty","listen","event","handler","addEventListener","removeEventListener","stop_propagation","stopPropagation","attr","attribute","removeAttribute","getAttribute","setAttribute","children","from","childNodes","set_data","wholeText","set_style","important","removeProperty","setProperty","construct_svelte_component","current_component","set_current_component","get_current_component","Error","onMount","on_mount","afterUpdate","after_update","setContext","context","getContext","bubble","dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","Promise","resolve","update_scheduled","schedule_update","then","flush","tick","add_render_callback","seen_callbacks","Set","flushidx","saved_component","update","e","pop","add","clear","fragment","before_update","outroing","outros","group_outros","r","check_outros","transition_in","block","local","delete","transition_out","o","globals","outro_and_destroy_block","lookup","update_keyed_each","old_blocks","get_key","dynamic","list","create_each_block","get_context","old_indexes","new_blocks","new_lookup","Map","deltas","child_ctx","abs","will_move","did_move","m","new_block","old_block","new_key","old_key","create_component","mount_component","customElement","new_on_destroy","map","filter","destroy_component","make_dirty","fill","init","instance","create_fragment","not_equal","append_styles","parent_component","bound","on_disconnect","skip_bound","root","ready","hydrate","nodes","l","intro","SvelteComponent","$destroy","$on","splice","$set","$$props","$$set","subscriber_queue","readable","start","stop","subscribers","new_value","run_queue","subscriber","invalidate","derived","stores","initial_value","single","isArray","stores_array","auto","inited","pending","cleanup","sync","unsubscribers","setContent","actions","firstChild","lastChild","domNodes","child","innerHTML","innerText","outsideEvent","handlePointerDown","jsEvent","contains","dispatchEvent","CustomEvent","detail","DAY_IN_SECONDS","createDate","Date","_fromLocalDate","str","parts","UTC","Number","_fromISOString","createDuration","seconds","exp","part","parseInt","pow","hours","getUTCHours","minutes","getUTCMinutes","getUTCSeconds","weeks","week","years","year","months","month","days","day","hour","minute","inWeeks","cloneDate","date","getTime","addDuration","duration","setUTCFullYear","getUTCFullYear","getUTCMonth","setUTCMonth","subtractDay","setUTCDate","getUTCDate","setUTCSeconds","addDay","setMidnight","setUTCHours","toLocalDate","toISOString","substring","formatRange","end","intl","getFullYear","format","diff","getMonth","getDate","opts1","resolvedOptions","opts2","intl2","Intl","DateTimeFormat","locale","full1","full2","part1","part2","common","str1","substr1","str2","substr2","res1","_cut","j","res2","head","tail","_commonChunks","datesEqual","date1","dates2","every","date2","prevClosestDay","getUTCDay","noTimePart","getHours","getMinutes","getSeconds","substr","debounce","handle","queueStore","queue","className","hasYScroll","scrollHeight","clientHeight","rect","getBoundingClientRect","ancestor","up","parentElement","height","fnProp","setFn","hasFn","runFn","_len2","args","_key2","toViewWithLocalDates","view","currentStart","currentEnd","activeStart","activeEnd","eventId","createEvents","resourceIds","resourceId","allDay","title","titleHTML","editable","startEditable","durationEditable","extendedProps","backgroundColor","color","createEventSources","events","url","trimEnd","toUpperCase","extraParams","createEventChunk","sortEventChunks","chunks","sort","prepareEventChunks","hiddenDays","longChunks","prevChunk","chunk","dates","sorted","prev","repositionEvent","top","bottom","margin","longChunk","offset","createEventContent","displayEventEnd","eventContent","theme","_intlEventTime","_view","timeText","toEventWithLocalDates","eventTime","eventTitle","_cloneEvent","cloneEvent","dateFn","eventIntersects","resource","timeMode","ignoreProp","ignore","maybeIgnore","writable2","parser","parse","derived2","initValue","storeValue","hasSubscribers","_ref","$locale","$format","State","plugins","allDayContent","allDaySlot","buttonText","today","dateClick","datesSet","dayHeaderFormat","weekday","eventBackgroundColor","eventClick","eventColor","eventDidMount","eventMouseEnter","eventMouseLeave","eventSources","eventTimeFormat","firstDay","flexibleSlotTimeLimits","headerToolbar","center","highlightedDates","lazyFetching","loading","monthMode","nowIndicator","selectable","scrollTime","slotDuration","slotHeight","slotLabelFormat","slotMaxTime","slotMinTime","active","bgEvent","bgEvents","body","button","buttonGroup","calendar","compact","dayHead","eventBody","extra","header","hiddenScroll","hiddenTimes","highlight","icon","line","lines","otherMonth","sidebar","sidebarTitle","time","toolbar","withScroll","titleFormat","viewDidMount","views","plugin","createOptions","parsers","createParsers","option","_queue","_auxiliary","_currentRange","_ref2","$date","$duration","$monthMode","$firstDay","_activeRange","$_currentRange","$slotMinTime","$slotMaxTime","nextClosestDay","start2","activeRange","_fetchedRange","_events","abortController","fetching","debounceHandle","$events","$eventSources","$_activeRange","$_fetchedRange","$lazyFetching","$loading","abort","AbortController","stopLoading","failure","success","concat","startStr","endStr","params","URLSearchParams","headers","fetch","signal","credentials","response","json","catch","_now","interval","setInterval","clearInterval","_today","$_now","_ignoreClick","_intlSlotLabel","_intlDayHeader","_titleIntlRange","_scrollable","_viewTitle","_ref4","$_titleIntlRange","viewTitle","_viewDates","_ref3","$hiddenDays","viewDates","createView","_viewComponent","_viewClass","_resBgColor","_interaction","_iEvents","_draggable","_resizable","_classes","_iClass","_scroll","createStores","commonOpts","parseOpts","viewOpts","opts","newView","_set","rest","get_each_context$2","create_else_block$1","t","button_class_value","mounted","dispose","t_value","click_handler_1","new_ctx","create_if_block_4","disabled","create_if_block_3","i_class_value","create_if_block_2","create_if_block_1","h2","h2_class_value","create_if_block$1","create_each_block$2","if_block_anchor","select_block_type","current_block_type","if_block","create_fragment$3","each_1_anchor","each_value","each_blocks","_ref5","instance$3","$$self","$$invalidate","$theme","$_viewTitle","$buttonText","$view","buttons","isToday","subtractDuration","Buttons","super","get_each_context$1","get_each_context_1","create_else_block","buttons_changes","create_if_block","div","div_class_value","create_each_block_1","current_block_type_index","if_block_creators","if_blocks","previous_block_index","create_each_block$1","each_value_1","out","Boolean","create_fragment$2","_ref6","instance$2","$headerToolbar","sections","group","Toolbar","get_each_context","switch_instance","switch_instance_anchor","switch_value","old_component","create_fragment$1","_ref7","instance$1","$_view","$datesSet","$_auxiliary","runDatesSet","Auxiliary","t0","t1","auxiliary","$_queue","$_ignoreClick","$_events","$_interaction","$_viewClass","$_iClass","$height","$_viewComponent","setOption","updateEvents","action","unselect","y","elementsFromPoint","Calendar","getOption","refetchEvents","getEvents","getEventById","addEvent","updateEvent","removeEventById","getView","dateFromPoint","_days","_hiddenEvents","_popupDate","_popupChunks","get_each_context$4","create_each_block$4","create_fragment$6","div2","div0","div0_class_value","div1","div1_class_value","div2_class_value","instance$6","$_scrollable","$_days","$_intlDayHeader","Header","create_fragment$5","default_slot_template","default","default_slot","uniform","instance$5","$dayMaxEvents","$_scroll","$$slots","slots","dayMaxEvents","recheckScrollable","setTimeout","$$value","Body","create_fragment$4","setContent_action","resizer","switch_props","switch_instance_changes","instance$4","$_hiddenEvents","$eventDidMount","$_intlEventTime","$eventContent","$displayEventEnd","$_classes","$eventColor","$eventBackgroundColor","$_resBgColor","$eventClick","$eventMouseEnter","$eventMouseLeave","$_draggable","inPopup","classes","hidden","bgColor","resize","dragDayGrid","dayEl","h","firstElementChild","lastElementChild","nextElementSibling","footHeight","hiddenEvents","hide","Event","reposition","get_each_context$3","create_each_block$3","key_1","event_changes","t3","t0_value","each_1_lookup","textContent","popup","$_popupDate","$_popupChunks","$_intlDayPopover","_intlDayPopover","bodyEl","popupRect","dayRect","bodyRect","previousElementSibling","left","offsetWidth","width","Popup","preview","assign_event","unassign_event","event_props","div3","t2","t4","t5","div3_class_value","show_if_1","show_if","if_block0","if_block1","if_block2","if_block3","dayFoot","createPointerLeaveHandler","interaction","pointer","leave","$moreLinkContent","$highlightedDates","$currentDate","$dateClick","$selectable","iChunks","currentDate","moreLinkContent","dayChunks","showPopup","moreLink","refs","setPopupChunks","nextDay","ref","some","num","dateStr","enterDayGrid","selectDayGrid","Day","day_changes","$_iEvents","Week","week_changes","create_default_slot","body_changes","$_viewDates","viewState","View","dayPopoverFormat","dayGridMonth","eventTag","span","span_class_value","t2_value","daySide","$_intlListDayFormat","$_intlListDaySideFormat","_intlListDayFormat","_intlListDaySideFormat","listDayFormat","listDaySideFormat","noEvents","$noEventsClick","$noEventsContent","noEventsClick","noEventsContent","listDay","listWeek","listMonth","listYear","_slotTimeLimits","$flexibleSlotTimeLimits","minMin","maxMax","loop","minStart","maxEnd","slotTimeLimits","_times","localState","$_slotTimeLimits","$_intlSlotLabel","$slotDuration","times","createAllDayContent","get_each_context$5","create_each_block$5","create_fragment$8","div6","div4","div4_class_value","div5","div5_class_value","div6_class_value","instance$8","$allDayContent","$_times","allDayText","get_each_context_1$2","create_each_block_1$2","create_fragment$7","each_blocks_1","instance$7","$slotHeight","$scrollTime","timeLimitMin","scrollTop","_viewResources","step","maxHeight","column","columns","dragTimeGrid","Event$1","$_today","NowIndicator","get_each_context_1$1","create_each_block_1$1","create_if_block$2","nowindicator","each0_lookup","each1_lookup","get_key_1","$nowIndicator","bgChunks","groupEventChunks","clientY","enterTimeGrid","selectTimeGrid","Day$1","createEventDispatcher","create_default_slot_2","create_default_slot_1","header_changes","$allDaySlot","timeGridDay","timeGridWeek","State$1","resources","filterResourcesWithEvents","$resources","$filterResourcesWithEvents","viewResources","$resourceLabelDidMount","$resourceLabelContent","resourceLabelContent","resourceLabelDidMount","Label","get_each_context_4","get_each_context_2","get_each_context_3","get_each_context_5","get_each_context_6","create_else_block_2","label","label_changes","each_value_6","create_each_block_6","create_else_block_1","select_block_type_1","create_each_block_5","each_value_5","each_value_4","create_each_block_4","each_value_2","create_each_block_2","create_each_block_3","each_value_3","select_block_type_2","$_viewResources","$datesAboveResources","datesAboveResources","loops","find","res","resourceTimeGridDay","resourceTimeGridWeek","resourceTitle","createResources","traverseTimeGrid","traverseResourceTimeGrid","colEl","resourceEl","col","resourceCol","traverseDayGrid","daysEl","contentEl","busy","limit","window_1","createPreventDefaultHandler","passive","condition","preventDefault","$unselectFn","$selectBackgroundColor","$eventDrop","$eventResize","$eventDragStop","$eventResizeStop","$select","$unselectCancel","$unselectAuto","$dragScroll","$eventDragStart","$eventResizeStart","$eventDragMinDistance","$selectMinDistance","$longPressDelay","$eventLongPressDelay","$selectLongPressDelay","$$unsubscribe__viewResources","$$subscribe__viewResources","interacting","row","offsetX","offsetY","fromX","fromY","toX","toY","delta","rowEls","colRect","newResourceCol","dragScroll","eventStartEditable","eventDragMinDistance","eventDragStart","eventDragStop","eventDrop","eventLongPressDelay","eventResizeStart","eventResizeStop","eventResize","longPressDelay","select","selectBackgroundColor","selectLongPressDelay","selectMinDistance","unselectFn","unselectAuto","unselectCancel","iClass","minEnd","selected","timer","isAllDay","getSelection","removeAllRanges","clientX","pointerType","move","selecting","rx","ry","sqrt","newCol","dayCol","cols","newRow","offsetHeight","createIEvent","resizing","scrollBy","innerHeight","requestAnimationFrame","destroyIEvent","isPrimary","closest","oldEvent","eventRef","endDelta","oldResource","newResource","revert","clearTimeout","stops","eventToDrag","resourcesStore","colDate","dayDate","Action","handleScroll","validEvent","$$unsubscribe__slotTimeLimits","$$subscribe__slotTimeLimits","removePointerEvent","slotTimeLimitsStore","resourceObj","Pointer","$_resizable","Resizer","pointer_1","$editable","$eventDurationEditable","$eventStartEditable","$pointer","eventDurationEditable","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EAAQkmC,qBAAkB90C,EAC1B4O,EAAQmmC,iBAAc/0C,EACtB4O,EAAQ2lC,oBAAqB,EAC7B3lC,EAAQomC,eAAiB,IACzBpmC,EAAQw4B,SAAU,EAClBx4B,EAAQqmC,YAASj1C,EACjB4O,EAAQsmC,2BAAwBl1C,EAChC4O,EAAQumC,0BAAuBn1C,EAC/B4O,EAAQwmC,kBAAoB,EAC5BxmC,EAAQ+wB,cAAW3/B,EACnB4O,EAAQ0mC,cAAe,EACvB1mC,EAAQ2mC,eAAiB,GACzB3mC,EAAQwgB,MAAM4pB,UAAY,eAC1BpqC,EAAQwgB,MAAM6pB,MAAQ,WACtBrqC,EAAQwgB,MAAM8W,QAAU,aACxBt3B,EAAQwgB,MAAMgY,QAAU,aACxBx4B,EAAQwgB,MAAMuT,QAAU,aACxB/zB,EAAQwgB,MAAM8pB,SAAW,cACzBtqC,EAAQwgB,MAAM+pB,UAAY,gBAC1BvqC,EAAQwgB,MAAMgqB,UAAY,gBAC1BxqC,EAAQwgB,MAAM8mB,UAAY,cAC1B,EAEDzc,aAAa/xB,GACZA,EAAMutB,WAAW1W,QAAOmgB,GAAe,IAAIA,EAAaE,KACzD,UC9vCc,cAAckB,GACzBzxB,YAAYhD,EAAIuD,GACZ4tB,MAAM,CACF7tB,OAAQtD,EACRa,MAAO,CACH6kB,QAAS,CAACsoB,GAASC,GAAMC,GAAUC,GAAkBC,IACrD7qC,YAGZ,CAEI2d,WACA,OAAO7sB,KAAK4gC,SAChB"}
|
|
1
|
+
{"version":3,"file":"event-calendar.min.js","sources":["../../node_modules/core-js-pure/internals/engine-v8-version.js","../../node_modules/core-js-pure/internals/fails.js","../../node_modules/core-js-pure/internals/function-bind-native.js","../../node_modules/core-js-pure/internals/function-uncurry-this.js","../../node_modules/core-js-pure/internals/classof-raw.js","../../node_modules/core-js-pure/internals/indexed-object.js","../../node_modules/core-js-pure/internals/is-null-or-undefined.js","../../node_modules/core-js-pure/internals/require-object-coercible.js","../../node_modules/core-js-pure/internals/to-indexed-object.js","../../node_modules/core-js-pure/internals/iterators.js","../../node_modules/core-js-pure/internals/global.js","../../node_modules/core-js-pure/internals/document-all.js","../../node_modules/core-js-pure/internals/is-callable.js","../../node_modules/core-js-pure/internals/weak-map-basic-detection.js","../../node_modules/core-js-pure/internals/is-object.js","../../node_modules/core-js-pure/internals/descriptors.js","../../node_modules/core-js-pure/internals/document-create-element.js","../../node_modules/core-js-pure/internals/ie8-dom-define.js","../../node_modules/core-js-pure/internals/v8-prototype-define-bug.js","../../node_modules/core-js-pure/internals/an-object.js","../../node_modules/core-js-pure/internals/function-call.js","../../node_modules/core-js-pure/internals/path.js","../../node_modules/core-js-pure/internals/get-built-in.js","../../node_modules/core-js-pure/internals/object-is-prototype-of.js","../../node_modules/core-js-pure/internals/engine-user-agent.js","../../node_modules/core-js-pure/internals/symbol-constructor-detection.js","../../node_modules/core-js-pure/internals/use-symbol-as-uid.js","../../node_modules/core-js-pure/internals/is-symbol.js","../../node_modules/core-js-pure/internals/try-to-string.js","../../node_modules/core-js-pure/internals/a-callable.js","../../node_modules/core-js-pure/internals/get-method.js","../../node_modules/core-js-pure/internals/ordinary-to-primitive.js","../../node_modules/core-js-pure/internals/define-global-property.js","../../node_modules/core-js-pure/internals/shared-store.js","../../node_modules/core-js-pure/internals/shared.js","../../node_modules/core-js-pure/internals/to-object.js","../../node_modules/core-js-pure/internals/has-own-property.js","../../node_modules/core-js-pure/internals/uid.js","../../node_modules/core-js-pure/internals/well-known-symbol.js","../../node_modules/core-js-pure/internals/to-primitive.js","../../node_modules/core-js-pure/internals/to-property-key.js","../../node_modules/core-js-pure/internals/object-define-property.js","../../node_modules/core-js-pure/internals/create-property-descriptor.js","../../node_modules/core-js-pure/internals/internal-state.js","../../node_modules/core-js-pure/internals/create-non-enumerable-property.js","../../node_modules/core-js-pure/internals/shared-key.js","../../node_modules/core-js-pure/internals/hidden-keys.js","../../node_modules/core-js-pure/internals/function-apply.js","../../node_modules/core-js-pure/internals/function-uncurry-this-clause.js","../../node_modules/core-js-pure/internals/object-property-is-enumerable.js","../../node_modules/core-js-pure/internals/object-get-own-property-descriptor.js","../../node_modules/core-js-pure/internals/is-forced.js","../../node_modules/core-js-pure/internals/function-bind-context.js","../../node_modules/core-js-pure/internals/export.js","../../node_modules/core-js-pure/internals/function-name.js","../../node_modules/core-js-pure/internals/math-trunc.js","../../node_modules/core-js-pure/internals/to-integer-or-infinity.js","../../node_modules/core-js-pure/internals/to-absolute-index.js","../../node_modules/core-js-pure/internals/to-length.js","../../node_modules/core-js-pure/internals/length-of-array-like.js","../../node_modules/core-js-pure/internals/array-includes.js","../../node_modules/core-js-pure/internals/object-keys-internal.js","../../node_modules/core-js-pure/internals/enum-bug-keys.js","../../node_modules/core-js-pure/internals/object-keys.js","../../node_modules/core-js-pure/internals/object-define-properties.js","../../node_modules/core-js-pure/internals/html.js","../../node_modules/core-js-pure/internals/object-create.js","../../node_modules/core-js-pure/internals/iterators-core.js","../../node_modules/core-js-pure/internals/correct-prototype-getter.js","../../node_modules/core-js-pure/internals/object-get-prototype-of.js","../../node_modules/core-js-pure/internals/define-built-in.js","../../node_modules/core-js-pure/internals/to-string-tag-support.js","../../node_modules/core-js-pure/internals/classof.js","../../node_modules/core-js-pure/internals/object-to-string.js","../../node_modules/core-js-pure/internals/set-to-string-tag.js","../../node_modules/core-js-pure/internals/iterator-create-constructor.js","../../node_modules/core-js-pure/internals/iterator-define.js","../../node_modules/core-js-pure/internals/create-iter-result-object.js","../../node_modules/core-js-pure/modules/es.array.iterator.js","../../node_modules/core-js-pure/internals/add-to-unscopables.js","../../node_modules/core-js-pure/internals/to-string.js","../../node_modules/core-js-pure/internals/string-multibyte.js","../../node_modules/core-js-pure/modules/es.string.iterator.js","../../node_modules/core-js-pure/internals/is-iterable.js","../../node_modules/core-js-pure/es/is-iterable.js","../../node_modules/core-js-pure/modules/web.dom-collections.iterator.js","../../node_modules/core-js-pure/internals/dom-iterables.js","../../node_modules/core-js-pure/stable/is-iterable.js","../../node_modules/core-js-pure/full/is-iterable.js","../../node_modules/svelte/internal/index.mjs","../../node_modules/core-js-pure/features/is-iterable.js","../../node_modules/@babel/runtime-corejs3/core-js/is-iterable.js","../../node_modules/svelte/store/index.mjs","../common/index.js","../core/index.js","../day-grid/index.js","../list/index.js","../time-grid/index.js","../resource-time-grid/index.js","../interaction/index.js","src/index.js"],"sourcesContent":["var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar call = FunctionPrototype.call;\nvar uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {\n return function () {\n return call.apply(fn, arguments);\n };\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n return it === null || it === undefined;\n};\n","var isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","module.exports = {};\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","var documentAll = typeof document == 'object' && document.all;\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\n// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\nvar IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;\n\nmodule.exports = {\n all: documentAll,\n IS_HTMLDDA: IS_HTMLDDA\n};\n","var $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = $documentAll.IS_HTMLDDA ? function (argument) {\n return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n return typeof argument == 'function';\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n","var isCallable = require('../internals/is-callable');\nvar $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\nmodule.exports = $documentAll.IS_HTMLDDA ? function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;\n} : function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n","var isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw $TypeError($String(argument) + ' is not an object');\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","module.exports = {};\n","var path = require('../internals/path');\nvar global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (variable) {\n return isCallable(variable) ? variable : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])\n : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('navigator', 'userAgent') || '';\n","/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","var getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","var $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","var isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a function');\n};\n","var aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n","var call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw $TypeError(\"Can't convert object to primitive value\");\n};\n","var global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var global = require('../internals/global');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || defineGlobalProperty(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.27.1',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.27.1/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","var requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar WellKnownSymbolsStore = shared('wks');\nvar Symbol = global.Symbol;\nvar symbolFor = Symbol && Symbol['for'];\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {\n var description = 'Symbol.' + name;\n if (NATIVE_SYMBOL && hasOwn(Symbol, name)) {\n WellKnownSymbolsStore[name] = Symbol[name];\n } else if (USE_SYMBOL_AS_UID && symbolFor) {\n WellKnownSymbolsStore[name] = symbolFor(description);\n } else {\n WellKnownSymbolsStore[name] = createWellKnownSymbol(description);\n }\n } return WellKnownSymbolsStore[name];\n};\n","var call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set = function (it, metadata) {\n if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","module.exports = {};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar apply = FunctionPrototype.apply;\nvar call = FunctionPrototype.call;\n\n// eslint-disable-next-line es/no-reflect -- safe\nmodule.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {\n return call.apply(apply, arguments);\n});\n","var classofRaw = require('../internals/classof-raw');\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = function (fn) {\n // Nashorn bug:\n // https://github.com/zloirock/core-js/issues/1128\n // https://github.com/zloirock/core-js/issues/1130\n if (classofRaw(fn) === 'Function') return uncurryThis(fn);\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","var DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","var uncurryThis = require('../internals/function-uncurry-this-clause');\nvar aCallable = require('../internals/a-callable');\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar bind = uncurryThis(uncurryThis.bind);\n\n// optional / simple context binding\nmodule.exports = function (fn, that) {\n aCallable(fn);\n return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","'use strict';\nvar global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar uncurryThis = require('../internals/function-uncurry-this-clause');\nvar isCallable = require('../internals/is-callable');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar isForced = require('../internals/is-forced');\nvar path = require('../internals/path');\nvar bind = require('../internals/function-bind-context');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\n\nvar wrapConstructor = function (NativeConstructor) {\n var Wrapper = function (a, b, c) {\n if (this instanceof Wrapper) {\n switch (arguments.length) {\n case 0: return new NativeConstructor();\n case 1: return new NativeConstructor(a);\n case 2: return new NativeConstructor(a, b);\n } return new NativeConstructor(a, b, c);\n } return apply(NativeConstructor, this, arguments);\n };\n Wrapper.prototype = NativeConstructor.prototype;\n return Wrapper;\n};\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var PROTO = options.proto;\n\n var nativeSource = GLOBAL ? global : STATIC ? global[TARGET] : (global[TARGET] || {}).prototype;\n\n var target = GLOBAL ? path : path[TARGET] || createNonEnumerableProperty(path, TARGET, {})[TARGET];\n var targetPrototype = target.prototype;\n\n var FORCED, USE_NATIVE, VIRTUAL_PROTOTYPE;\n var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor;\n\n for (key in source) {\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contains in native\n USE_NATIVE = !FORCED && nativeSource && hasOwn(nativeSource, key);\n\n targetProperty = target[key];\n\n if (USE_NATIVE) if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(nativeSource, key);\n nativeProperty = descriptor && descriptor.value;\n } else nativeProperty = nativeSource[key];\n\n // export native or implementation\n sourceProperty = (USE_NATIVE && nativeProperty) ? nativeProperty : source[key];\n\n if (USE_NATIVE && typeof targetProperty == typeof sourceProperty) continue;\n\n // bind timers to global for call from export context\n if (options.bind && USE_NATIVE) resultProperty = bind(sourceProperty, global);\n // wrap global constructors for prevent changs in this version\n else if (options.wrap && USE_NATIVE) resultProperty = wrapConstructor(sourceProperty);\n // make static versions for prototype methods\n else if (PROTO && isCallable(sourceProperty)) resultProperty = uncurryThis(sourceProperty);\n // default case\n else resultProperty = sourceProperty;\n\n // add a flag to not completely full polyfills\n if (options.sham || (sourceProperty && sourceProperty.sham) || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(resultProperty, 'sham', true);\n }\n\n createNonEnumerableProperty(target, key, resultProperty);\n\n if (PROTO) {\n VIRTUAL_PROTOTYPE = TARGET + 'Prototype';\n if (!hasOwn(path, VIRTUAL_PROTOTYPE)) {\n createNonEnumerableProperty(path, VIRTUAL_PROTOTYPE, {});\n }\n // export virtual prototype methods\n createNonEnumerableProperty(path[VIRTUAL_PROTOTYPE], key, sourceProperty);\n // export real prototype methods\n if (options.real && targetPrototype && (FORCED || !targetPrototype[key])) {\n createNonEnumerableProperty(targetPrototype, key, sourceProperty);\n }\n }\n }\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","var trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n// eslint-disable-next-line es/no-object-keys -- safe\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar definePropertyModule = require('../internals/object-define-property');\nvar anObject = require('../internals/an-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar objectKeys = require('../internals/object-keys');\n\n// `Object.defineProperties` method\n// https://tc39.es/ecma262/#sec-object.defineproperties\n// eslint-disable-next-line es/no-object-defineproperties -- safe\nexports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var props = toIndexedObject(Properties);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);\n return O;\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n","/* global ActiveXObject -- old IE, WSH */\nvar anObject = require('../internals/an-object');\nvar definePropertiesModule = require('../internals/object-define-properties');\nvar enumBugKeys = require('../internals/enum-bug-keys');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar html = require('../internals/html');\nvar documentCreateElement = require('../internals/document-create-element');\nvar sharedKey = require('../internals/shared-key');\n\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO = sharedKey('IE_PROTO');\n\nvar EmptyConstructor = function () { /* empty */ };\n\nvar scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n};\n\n// Create object with fake `null` prototype: use ActiveX Object with cleared prototype\nvar NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n};\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n};\n\n// Check for document.domain and active x support\n// No need to use active x approach when document.domain is not set\n// see https://github.com/es-shims/es5-shim/issues/150\n// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n// avoid IE GC bug\nvar activeXDocument;\nvar NullProtoObject = function () {\n try {\n activeXDocument = new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = typeof document != 'undefined'\n ? document.domain && activeXDocument\n ? NullProtoObjectViaActiveX(activeXDocument) // old IE\n : NullProtoObjectViaIFrame()\n : NullProtoObjectViaActiveX(activeXDocument); // WSH\n var length = enumBugKeys.length;\n while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n return NullProtoObject();\n};\n\nhiddenKeys[IE_PROTO] = true;\n\n// `Object.create` method\n// https://tc39.es/ecma262/#sec-object.create\n// eslint-disable-next-line es/no-object-create -- safe\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE] = anObject(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : definePropertiesModule.f(result, Properties);\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar create = require('../internals/object-create');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar BUGGY_SAFARI_ITERATORS = false;\n\n// `%IteratorPrototype%` object\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-object\nvar IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;\n\n/* eslint-disable es/no-array-prototype-keys -- safe */\nif ([].keys) {\n arrayIterator = [].keys();\n // Safari 8 has buggy iterators w/o `next`\n if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;\n else {\n PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));\n if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;\n }\n}\n\nvar NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () {\n var test = {};\n // FF44- legacy iterators case\n return IteratorPrototype[ITERATOR].call(test) !== test;\n});\n\nif (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};\nelse if (IS_PURE) IteratorPrototype = create(IteratorPrototype);\n\n// `%IteratorPrototype%[@@iterator]()` method\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator\nif (!isCallable(IteratorPrototype[ITERATOR])) {\n defineBuiltIn(IteratorPrototype, ITERATOR, function () {\n return this;\n });\n}\n\nmodule.exports = {\n IteratorPrototype: IteratorPrototype,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n function F() { /* empty */ }\n F.prototype.constructor = null;\n // eslint-disable-next-line es/no-object-getprototypeof -- required for testing\n return Object.getPrototypeOf(new F()) !== F.prototype;\n});\n","var hasOwn = require('../internals/has-own-property');\nvar isCallable = require('../internals/is-callable');\nvar toObject = require('../internals/to-object');\nvar sharedKey = require('../internals/shared-key');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\nvar IE_PROTO = sharedKey('IE_PROTO');\nvar $Object = Object;\nvar ObjectPrototype = $Object.prototype;\n\n// `Object.getPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.getprototypeof\n// eslint-disable-next-line es/no-object-getprototypeof -- safe\nmodule.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {\n var object = toObject(O);\n if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];\n var constructor = object.constructor;\n if (isCallable(constructor) && object instanceof constructor) {\n return constructor.prototype;\n } return object instanceof $Object ? ObjectPrototype : null;\n};\n","var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nmodule.exports = function (target, key, value, options) {\n if (options && options.enumerable) target[key] = value;\n else createNonEnumerableProperty(target, key, value);\n return target;\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Object = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar classof = require('../internals/classof');\n\n// `Object.prototype.toString` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nmodule.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {\n return '[object ' + classof(this) + ']';\n};\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar defineProperty = require('../internals/object-define-property').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar toString = require('../internals/object-to-string');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nmodule.exports = function (it, TAG, STATIC, SET_METHOD) {\n if (it) {\n var target = STATIC ? it : it.prototype;\n if (!hasOwn(target, TO_STRING_TAG)) {\n defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });\n }\n if (SET_METHOD && !TO_STRING_TAG_SUPPORT) {\n createNonEnumerableProperty(target, 'toString', toString);\n }\n }\n};\n","'use strict';\nvar IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;\nvar create = require('../internals/object-create');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar Iterators = require('../internals/iterators');\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {\n var TO_STRING_TAG = NAME + ' Iterator';\n IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });\n setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);\n Iterators[TO_STRING_TAG] = returnThis;\n return IteratorConstructor;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar IS_PURE = require('../internals/is-pure');\nvar FunctionName = require('../internals/function-name');\nvar isCallable = require('../internals/is-callable');\nvar createIteratorConstructor = require('../internals/iterator-create-constructor');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\nvar IteratorsCore = require('../internals/iterators-core');\n\nvar PROPER_FUNCTION_NAME = FunctionName.PROPER;\nvar CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;\nvar IteratorPrototype = IteratorsCore.IteratorPrototype;\nvar BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;\nvar ITERATOR = wellKnownSymbol('iterator');\nvar KEYS = 'keys';\nvar VALUES = 'values';\nvar ENTRIES = 'entries';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {\n createIteratorConstructor(IteratorConstructor, NAME, next);\n\n var getIterationMethod = function (KIND) {\n if (KIND === DEFAULT && defaultIterator) return defaultIterator;\n if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];\n switch (KIND) {\n case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };\n case VALUES: return function values() { return new IteratorConstructor(this, KIND); };\n case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };\n } return function () { return new IteratorConstructor(this); };\n };\n\n var TO_STRING_TAG = NAME + ' Iterator';\n var INCORRECT_VALUES_NAME = false;\n var IterablePrototype = Iterable.prototype;\n var nativeIterator = IterablePrototype[ITERATOR]\n || IterablePrototype['@@iterator']\n || DEFAULT && IterablePrototype[DEFAULT];\n var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);\n var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;\n var CurrentIteratorPrototype, methods, KEY;\n\n // fix native\n if (anyNativeIterator) {\n CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));\n if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {\n if (setPrototypeOf) {\n setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);\n } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {\n defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis);\n }\n }\n // Set @@toStringTag to native iterators\n setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);\n if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;\n }\n }\n\n // fix Array.prototype.{ values, @@iterator }.name in V8 / FF\n if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {\n createNonEnumerableProperty(IterablePrototype, 'name', VALUES);\n } else {\n INCORRECT_VALUES_NAME = true;\n defaultIterator = function values() { return call(nativeIterator, this); };\n }\n }\n\n // export additional methods\n if (DEFAULT) {\n methods = {\n values: getIterationMethod(VALUES),\n keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),\n entries: getIterationMethod(ENTRIES)\n };\n if (FORCED) for (KEY in methods) {\n if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {\n defineBuiltIn(IterablePrototype, KEY, methods[KEY]);\n }\n } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);\n }\n\n // define iterator\n if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {\n defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });\n }\n Iterators[NAME] = defaultIterator;\n\n return methods;\n};\n","// `CreateIterResultObject` abstract operation\n// https://tc39.es/ecma262/#sec-createiterresultobject\nmodule.exports = function (value, done) {\n return { value: value, done: done };\n};\n","'use strict';\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar Iterators = require('../internals/iterators');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineProperty = require('../internals/object-define-property').f;\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar ARRAY_ITERATOR = 'Array Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);\n\n// `Array.prototype.entries` method\n// https://tc39.es/ecma262/#sec-array.prototype.entries\n// `Array.prototype.keys` method\n// https://tc39.es/ecma262/#sec-array.prototype.keys\n// `Array.prototype.values` method\n// https://tc39.es/ecma262/#sec-array.prototype.values\n// `Array.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-array.prototype-@@iterator\n// `CreateArrayIterator` internal method\n// https://tc39.es/ecma262/#sec-createarrayiterator\nmodule.exports = defineIterator(Array, 'Array', function (iterated, kind) {\n setInternalState(this, {\n type: ARRAY_ITERATOR,\n target: toIndexedObject(iterated), // target\n index: 0, // next index\n kind: kind // kind\n });\n// `%ArrayIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next\n}, function () {\n var state = getInternalState(this);\n var target = state.target;\n var kind = state.kind;\n var index = state.index++;\n if (!target || index >= target.length) {\n state.target = undefined;\n return createIterResultObject(undefined, true);\n }\n if (kind == 'keys') return createIterResultObject(index, false);\n if (kind == 'values') return createIterResultObject(target[index], false);\n return createIterResultObject([index, target[index]], false);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values%\n// https://tc39.es/ecma262/#sec-createunmappedargumentsobject\n// https://tc39.es/ecma262/#sec-createmappedargumentsobject\nvar values = Iterators.Arguments = Iterators.Array;\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n// V8 ~ Chrome 45- bug\nif (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {\n defineProperty(values, 'name', { value: 'values' });\n} catch (error) { /* empty */ }\n","module.exports = function () { /* empty */ };\n","var classof = require('../internals/classof');\n\nvar $String = String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n return $String(argument);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar charAt = uncurryThis(''.charAt);\nvar charCodeAt = uncurryThis(''.charCodeAt);\nvar stringSlice = uncurryThis(''.slice);\n\nvar createMethod = function (CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = toString(requireObjectCoercible($this));\n var position = toIntegerOrInfinity(pos);\n var size = S.length;\n var first, second;\n if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n first = charCodeAt(S, position);\n return first < 0xD800 || first > 0xDBFF || position + 1 === size\n || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF\n ? CONVERT_TO_STRING\n ? charAt(S, position)\n : first\n : CONVERT_TO_STRING\n ? stringSlice(S, position, position + 2)\n : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;\n };\n};\n\nmodule.exports = {\n // `String.prototype.codePointAt` method\n // https://tc39.es/ecma262/#sec-string.prototype.codepointat\n codeAt: createMethod(false),\n // `String.prototype.at` method\n // https://github.com/mathiasbynens/String.prototype.at\n charAt: createMethod(true)\n};\n","'use strict';\nvar charAt = require('../internals/string-multibyte').charAt;\nvar toString = require('../internals/to-string');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\n\nvar STRING_ITERATOR = 'String Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);\n\n// `String.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-string.prototype-@@iterator\ndefineIterator(String, 'String', function (iterated) {\n setInternalState(this, {\n type: STRING_ITERATOR,\n string: toString(iterated),\n index: 0\n });\n// `%StringIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next\n}, function next() {\n var state = getInternalState(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return createIterResultObject(undefined, true);\n point = charAt(string, index);\n state.index += point.length;\n return createIterResultObject(point, false);\n});\n","var classof = require('../internals/classof');\nvar hasOwn = require('../internals/has-own-property');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar $Object = Object;\n\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) return false;\n var O = $Object(it);\n return O[ITERATOR] !== undefined\n || '@@iterator' in O\n || hasOwn(Iterators, classof(O));\n};\n","require('../modules/es.array.iterator');\nrequire('../modules/es.string.iterator');\nvar isIterable = require('../internals/is-iterable');\n\nmodule.exports = isIterable;\n","require('../modules/es.array.iterator');\nvar DOMIterables = require('../internals/dom-iterables');\nvar global = require('../internals/global');\nvar classof = require('../internals/classof');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nfor (var COLLECTION_NAME in DOMIterables) {\n var Collection = global[COLLECTION_NAME];\n var CollectionPrototype = Collection && Collection.prototype;\n if (CollectionPrototype && classof(CollectionPrototype) !== TO_STRING_TAG) {\n createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);\n }\n Iterators[COLLECTION_NAME] = Iterators.Array;\n}\n","// iterable DOM collections\n// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods\nmodule.exports = {\n CSSRuleList: 0,\n CSSStyleDeclaration: 0,\n CSSValueList: 0,\n ClientRectList: 0,\n DOMRectList: 0,\n DOMStringList: 0,\n DOMTokenList: 1,\n DataTransferItemList: 0,\n FileList: 0,\n HTMLAllCollection: 0,\n HTMLCollection: 0,\n HTMLFormElement: 0,\n HTMLSelectElement: 0,\n MediaList: 0,\n MimeTypeArray: 0,\n NamedNodeMap: 0,\n NodeList: 1,\n PaintRequestList: 0,\n Plugin: 0,\n PluginArray: 0,\n SVGLengthList: 0,\n SVGNumberList: 0,\n SVGPathSegList: 0,\n SVGPointList: 0,\n SVGStringList: 0,\n SVGTransformList: 0,\n SourceBufferList: 0,\n StyleSheetList: 0,\n TextTrackCueList: 0,\n TextTrackList: 0,\n TouchList: 0\n};\n","var parent = require('../es/is-iterable');\nrequire('../modules/web.dom-collections.iterator');\n\nmodule.exports = parent;\n","var parent = require('../actual/is-iterable');\n\nmodule.exports = parent;\n","function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n // @ts-ignore\n for (const k in src)\n tar[k] = src[k];\n return tar;\n}\n// Adapted from https://github.com/then/is-promise/blob/master/index.js\n// Distributed under MIT License https://github.com/then/is-promise/blob/master/LICENSE\nfunction is_promise(value) {\n return !!value && (typeof value === 'object' || typeof value === 'function') && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n element.__svelte_meta = {\n loc: { file, line, column, char }\n };\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction is_function(thing) {\n return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nlet src_url_equal_anchor;\nfunction src_url_equal(element_src, url) {\n if (!src_url_equal_anchor) {\n src_url_equal_anchor = document.createElement('a');\n }\n src_url_equal_anchor.href = url;\n return element_src === src_url_equal_anchor.href;\n}\nfunction not_equal(a, b) {\n return a != a ? b == b : a !== b;\n}\nfunction is_empty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction validate_store(store, name) {\n if (store != null && typeof store.subscribe !== 'function') {\n throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n }\n}\nfunction subscribe(store, ...callbacks) {\n if (store == null) {\n return noop;\n }\n const unsub = store.subscribe(...callbacks);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, _ => value = _)();\n return value;\n}\nfunction component_subscribe(component, store, callback) {\n component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, $$scope, fn) {\n if (definition) {\n const slot_ctx = get_slot_context(definition, ctx, $$scope, fn);\n return definition[0](slot_ctx);\n }\n}\nfunction get_slot_context(definition, ctx, $$scope, fn) {\n return definition[1] && fn\n ? assign($$scope.ctx.slice(), definition[1](fn(ctx)))\n : $$scope.ctx;\n}\nfunction get_slot_changes(definition, $$scope, dirty, fn) {\n if (definition[2] && fn) {\n const lets = definition[2](fn(dirty));\n if ($$scope.dirty === undefined) {\n return lets;\n }\n if (typeof lets === 'object') {\n const merged = [];\n const len = Math.max($$scope.dirty.length, lets.length);\n for (let i = 0; i < len; i += 1) {\n merged[i] = $$scope.dirty[i] | lets[i];\n }\n return merged;\n }\n return $$scope.dirty | lets;\n }\n return $$scope.dirty;\n}\nfunction update_slot_base(slot, slot_definition, ctx, $$scope, slot_changes, get_slot_context_fn) {\n if (slot_changes) {\n const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n slot.p(slot_context, slot_changes);\n }\n}\nfunction update_slot(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_context_fn) {\n const slot_changes = get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n update_slot_base(slot, slot_definition, ctx, $$scope, slot_changes, get_slot_context_fn);\n}\nfunction get_all_dirty_from_scope($$scope) {\n if ($$scope.ctx.length > 32) {\n const dirty = [];\n const length = $$scope.ctx.length / 32;\n for (let i = 0; i < length; i++) {\n dirty[i] = -1;\n }\n return dirty;\n }\n return -1;\n}\nfunction exclude_internal_props(props) {\n const result = {};\n for (const k in props)\n if (k[0] !== '$')\n result[k] = props[k];\n return result;\n}\nfunction compute_rest_props(props, keys) {\n const rest = {};\n keys = new Set(keys);\n for (const k in props)\n if (!keys.has(k) && k[0] !== '$')\n rest[k] = props[k];\n return rest;\n}\nfunction compute_slots(slots) {\n const result = {};\n for (const key in slots) {\n result[key] = true;\n }\n return result;\n}\nfunction once(fn) {\n let ran = false;\n return function (...args) {\n if (ran)\n return;\n ran = true;\n fn.call(this, ...args);\n };\n}\nfunction null_to_empty(value) {\n return value == null ? '' : value;\n}\nfunction set_store_value(store, ret, value) {\n store.set(value);\n return ret;\n}\nconst has_prop = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\nfunction action_destroyer(action_result) {\n return action_result && is_function(action_result.destroy) ? action_result.destroy : noop;\n}\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n ? () => window.performance.now()\n : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n now = fn;\n}\nfunction set_raf(fn) {\n raf = fn;\n}\n\nconst tasks = new Set();\nfunction run_tasks(now) {\n tasks.forEach(task => {\n if (!task.c(now)) {\n tasks.delete(task);\n task.f();\n }\n });\n if (tasks.size !== 0)\n raf(run_tasks);\n}\n/**\n * For testing purposes only!\n */\nfunction clear_loops() {\n tasks.clear();\n}\n/**\n * Creates a new task that runs on each raf frame\n * until it returns a falsy value or is aborted\n */\nfunction loop(callback) {\n let task;\n if (tasks.size === 0)\n raf(run_tasks);\n return {\n promise: new Promise(fulfill => {\n tasks.add(task = { c: callback, f: fulfill });\n }),\n abort() {\n tasks.delete(task);\n }\n };\n}\n\n// Track which nodes are claimed during hydration. Unclaimed nodes can then be removed from the DOM\n// at the end of hydration without touching the remaining nodes.\nlet is_hydrating = false;\nfunction start_hydrating() {\n is_hydrating = true;\n}\nfunction end_hydrating() {\n is_hydrating = false;\n}\nfunction upper_bound(low, high, key, value) {\n // Return first index of value larger than input value in the range [low, high)\n while (low < high) {\n const mid = low + ((high - low) >> 1);\n if (key(mid) <= value) {\n low = mid + 1;\n }\n else {\n high = mid;\n }\n }\n return low;\n}\nfunction init_hydrate(target) {\n if (target.hydrate_init)\n return;\n target.hydrate_init = true;\n // We know that all children have claim_order values since the unclaimed have been detached if target is not <head>\n let children = target.childNodes;\n // If target is <head>, there may be children without claim_order\n if (target.nodeName === 'HEAD') {\n const myChildren = [];\n for (let i = 0; i < children.length; i++) {\n const node = children[i];\n if (node.claim_order !== undefined) {\n myChildren.push(node);\n }\n }\n children = myChildren;\n }\n /*\n * Reorder claimed children optimally.\n * We can reorder claimed children optimally by finding the longest subsequence of\n * nodes that are already claimed in order and only moving the rest. The longest\n * subsequence of nodes that are claimed in order can be found by\n * computing the longest increasing subsequence of .claim_order values.\n *\n * This algorithm is optimal in generating the least amount of reorder operations\n * possible.\n *\n * Proof:\n * We know that, given a set of reordering operations, the nodes that do not move\n * always form an increasing subsequence, since they do not move among each other\n * meaning that they must be already ordered among each other. Thus, the maximal\n * set of nodes that do not move form a longest increasing subsequence.\n */\n // Compute longest increasing subsequence\n // m: subsequence length j => index k of smallest value that ends an increasing subsequence of length j\n const m = new Int32Array(children.length + 1);\n // Predecessor indices + 1\n const p = new Int32Array(children.length);\n m[0] = -1;\n let longest = 0;\n for (let i = 0; i < children.length; i++) {\n const current = children[i].claim_order;\n // Find the largest subsequence length such that it ends in a value less than our current value\n // upper_bound returns first greater value, so we subtract one\n // with fast path for when we are on the current longest subsequence\n const seqLen = ((longest > 0 && children[m[longest]].claim_order <= current) ? longest + 1 : upper_bound(1, longest, idx => children[m[idx]].claim_order, current)) - 1;\n p[i] = m[seqLen] + 1;\n const newLen = seqLen + 1;\n // We can guarantee that current is the smallest value. Otherwise, we would have generated a longer sequence.\n m[newLen] = i;\n longest = Math.max(newLen, longest);\n }\n // The longest increasing subsequence of nodes (initially reversed)\n const lis = [];\n // The rest of the nodes, nodes that will be moved\n const toMove = [];\n let last = children.length - 1;\n for (let cur = m[longest] + 1; cur != 0; cur = p[cur - 1]) {\n lis.push(children[cur - 1]);\n for (; last >= cur; last--) {\n toMove.push(children[last]);\n }\n last--;\n }\n for (; last >= 0; last--) {\n toMove.push(children[last]);\n }\n lis.reverse();\n // We sort the nodes being moved to guarantee that their insertion order matches the claim order\n toMove.sort((a, b) => a.claim_order - b.claim_order);\n // Finally, we move the nodes\n for (let i = 0, j = 0; i < toMove.length; i++) {\n while (j < lis.length && toMove[i].claim_order >= lis[j].claim_order) {\n j++;\n }\n const anchor = j < lis.length ? lis[j] : null;\n target.insertBefore(toMove[i], anchor);\n }\n}\nfunction append(target, node) {\n target.appendChild(node);\n}\nfunction append_styles(target, style_sheet_id, styles) {\n const append_styles_to = get_root_for_style(target);\n if (!append_styles_to.getElementById(style_sheet_id)) {\n const style = element('style');\n style.id = style_sheet_id;\n style.textContent = styles;\n append_stylesheet(append_styles_to, style);\n }\n}\nfunction get_root_for_style(node) {\n if (!node)\n return document;\n const root = node.getRootNode ? node.getRootNode() : node.ownerDocument;\n if (root && root.host) {\n return root;\n }\n return node.ownerDocument;\n}\nfunction append_empty_stylesheet(node) {\n const style_element = element('style');\n append_stylesheet(get_root_for_style(node), style_element);\n return style_element.sheet;\n}\nfunction append_stylesheet(node, style) {\n append(node.head || node, style);\n return style.sheet;\n}\nfunction append_hydration(target, node) {\n if (is_hydrating) {\n init_hydrate(target);\n if ((target.actual_end_child === undefined) || ((target.actual_end_child !== null) && (target.actual_end_child.parentNode !== target))) {\n target.actual_end_child = target.firstChild;\n }\n // Skip nodes of undefined ordering\n while ((target.actual_end_child !== null) && (target.actual_end_child.claim_order === undefined)) {\n target.actual_end_child = target.actual_end_child.nextSibling;\n }\n if (node !== target.actual_end_child) {\n // We only insert if the ordering of this node should be modified or the parent node is not target\n if (node.claim_order !== undefined || node.parentNode !== target) {\n target.insertBefore(node, target.actual_end_child);\n }\n }\n else {\n target.actual_end_child = node.nextSibling;\n }\n }\n else if (node.parentNode !== target || node.nextSibling !== null) {\n target.appendChild(node);\n }\n}\nfunction insert(target, node, anchor) {\n target.insertBefore(node, anchor || null);\n}\nfunction insert_hydration(target, node, anchor) {\n if (is_hydrating && !anchor) {\n append_hydration(target, node);\n }\n else if (node.parentNode !== target || node.nextSibling != anchor) {\n target.insertBefore(node, anchor || null);\n }\n}\nfunction detach(node) {\n if (node.parentNode) {\n node.parentNode.removeChild(node);\n }\n}\nfunction destroy_each(iterations, detaching) {\n for (let i = 0; i < iterations.length; i += 1) {\n if (iterations[i])\n iterations[i].d(detaching);\n }\n}\nfunction element(name) {\n return document.createElement(name);\n}\nfunction element_is(name, is) {\n return document.createElement(name, { is });\n}\nfunction object_without_properties(obj, exclude) {\n const target = {};\n for (const k in obj) {\n if (has_prop(obj, k)\n // @ts-ignore\n && exclude.indexOf(k) === -1) {\n // @ts-ignore\n target[k] = obj[k];\n }\n }\n return target;\n}\nfunction svg_element(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n return document.createTextNode(data);\n}\nfunction space() {\n return text(' ');\n}\nfunction empty() {\n return text('');\n}\nfunction listen(node, event, handler, options) {\n node.addEventListener(event, handler, options);\n return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n return function (event) {\n event.preventDefault();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_propagation(fn) {\n return function (event) {\n event.stopPropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction self(fn) {\n return function (event) {\n // @ts-ignore\n if (event.target === this)\n fn.call(this, event);\n };\n}\nfunction trusted(fn) {\n return function (event) {\n // @ts-ignore\n if (event.isTrusted)\n fn.call(this, event);\n };\n}\nfunction attr(node, attribute, value) {\n if (value == null)\n node.removeAttribute(attribute);\n else if (node.getAttribute(attribute) !== value)\n node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n // @ts-ignore\n const descriptors = Object.getOwnPropertyDescriptors(node.__proto__);\n for (const key in attributes) {\n if (attributes[key] == null) {\n node.removeAttribute(key);\n }\n else if (key === 'style') {\n node.style.cssText = attributes[key];\n }\n else if (key === '__value') {\n node.value = node[key] = attributes[key];\n }\n else if (descriptors[key] && descriptors[key].set) {\n node[key] = attributes[key];\n }\n else {\n attr(node, key, attributes[key]);\n }\n }\n}\nfunction set_svg_attributes(node, attributes) {\n for (const key in attributes) {\n attr(node, key, attributes[key]);\n }\n}\nfunction set_custom_element_data_map(node, data_map) {\n Object.keys(data_map).forEach((key) => {\n set_custom_element_data(node, key, data_map[key]);\n });\n}\nfunction set_custom_element_data(node, prop, value) {\n if (prop in node) {\n node[prop] = typeof node[prop] === 'boolean' && value === '' ? true : value;\n }\n else {\n attr(node, prop, value);\n }\n}\nfunction xlink_attr(node, attribute, value) {\n node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group, __value, checked) {\n const value = new Set();\n for (let i = 0; i < group.length; i += 1) {\n if (group[i].checked)\n value.add(group[i].__value);\n }\n if (!checked) {\n value.delete(__value);\n }\n return Array.from(value);\n}\nfunction to_number(value) {\n return value === '' ? null : +value;\n}\nfunction time_ranges_to_array(ranges) {\n const array = [];\n for (let i = 0; i < ranges.length; i += 1) {\n array.push({ start: ranges.start(i), end: ranges.end(i) });\n }\n return array;\n}\nfunction children(element) {\n return Array.from(element.childNodes);\n}\nfunction init_claim_info(nodes) {\n if (nodes.claim_info === undefined) {\n nodes.claim_info = { last_index: 0, total_claimed: 0 };\n }\n}\nfunction claim_node(nodes, predicate, processNode, createNode, dontUpdateLastIndex = false) {\n // Try to find nodes in an order such that we lengthen the longest increasing subsequence\n init_claim_info(nodes);\n const resultNode = (() => {\n // We first try to find an element after the previous one\n for (let i = nodes.claim_info.last_index; i < nodes.length; i++) {\n const node = nodes[i];\n if (predicate(node)) {\n const replacement = processNode(node);\n if (replacement === undefined) {\n nodes.splice(i, 1);\n }\n else {\n nodes[i] = replacement;\n }\n if (!dontUpdateLastIndex) {\n nodes.claim_info.last_index = i;\n }\n return node;\n }\n }\n // Otherwise, we try to find one before\n // We iterate in reverse so that we don't go too far back\n for (let i = nodes.claim_info.last_index - 1; i >= 0; i--) {\n const node = nodes[i];\n if (predicate(node)) {\n const replacement = processNode(node);\n if (replacement === undefined) {\n nodes.splice(i, 1);\n }\n else {\n nodes[i] = replacement;\n }\n if (!dontUpdateLastIndex) {\n nodes.claim_info.last_index = i;\n }\n else if (replacement === undefined) {\n // Since we spliced before the last_index, we decrease it\n nodes.claim_info.last_index--;\n }\n return node;\n }\n }\n // If we can't find any matching node, we create a new one\n return createNode();\n })();\n resultNode.claim_order = nodes.claim_info.total_claimed;\n nodes.claim_info.total_claimed += 1;\n return resultNode;\n}\nfunction claim_element_base(nodes, name, attributes, create_element) {\n return claim_node(nodes, (node) => node.nodeName === name, (node) => {\n const remove = [];\n for (let j = 0; j < node.attributes.length; j++) {\n const attribute = node.attributes[j];\n if (!attributes[attribute.name]) {\n remove.push(attribute.name);\n }\n }\n remove.forEach(v => node.removeAttribute(v));\n return undefined;\n }, () => create_element(name));\n}\nfunction claim_element(nodes, name, attributes) {\n return claim_element_base(nodes, name, attributes, element);\n}\nfunction claim_svg_element(nodes, name, attributes) {\n return claim_element_base(nodes, name, attributes, svg_element);\n}\nfunction claim_text(nodes, data) {\n return claim_node(nodes, (node) => node.nodeType === 3, (node) => {\n const dataStr = '' + data;\n if (node.data.startsWith(dataStr)) {\n if (node.data.length !== dataStr.length) {\n return node.splitText(dataStr.length);\n }\n }\n else {\n node.data = dataStr;\n }\n }, () => text(data), true // Text nodes should not update last index since it is likely not worth it to eliminate an increasing subsequence of actual elements\n );\n}\nfunction claim_space(nodes) {\n return claim_text(nodes, ' ');\n}\nfunction find_comment(nodes, text, start) {\n for (let i = start; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeType === 8 /* comment node */ && node.textContent.trim() === text) {\n return i;\n }\n }\n return nodes.length;\n}\nfunction claim_html_tag(nodes, is_svg) {\n // find html opening tag\n const start_index = find_comment(nodes, 'HTML_TAG_START', 0);\n const end_index = find_comment(nodes, 'HTML_TAG_END', start_index);\n if (start_index === end_index) {\n return new HtmlTagHydration(undefined, is_svg);\n }\n init_claim_info(nodes);\n const html_tag_nodes = nodes.splice(start_index, end_index - start_index + 1);\n detach(html_tag_nodes[0]);\n detach(html_tag_nodes[html_tag_nodes.length - 1]);\n const claimed_nodes = html_tag_nodes.slice(1, html_tag_nodes.length - 1);\n for (const n of claimed_nodes) {\n n.claim_order = nodes.claim_info.total_claimed;\n nodes.claim_info.total_claimed += 1;\n }\n return new HtmlTagHydration(claimed_nodes, is_svg);\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.wholeText !== data)\n text.data = data;\n}\nfunction set_input_value(input, value) {\n input.value = value == null ? '' : value;\n}\nfunction set_input_type(input, type) {\n try {\n input.type = type;\n }\n catch (e) {\n // do nothing\n }\n}\nfunction set_style(node, key, value, important) {\n if (value === null) {\n node.style.removeProperty(key);\n }\n else {\n node.style.setProperty(key, value, important ? 'important' : '');\n }\n}\nfunction select_option(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n if (option.__value === value) {\n option.selected = true;\n return;\n }\n }\n select.selectedIndex = -1; // no option should be selected\n}\nfunction select_options(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n option.selected = ~value.indexOf(option.__value);\n }\n}\nfunction select_value(select) {\n const selected_option = select.querySelector(':checked') || select.options[0];\n return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\n// unfortunately this can't be a constant as that wouldn't be tree-shakeable\n// so we cache the result instead\nlet crossorigin;\nfunction is_crossorigin() {\n if (crossorigin === undefined) {\n crossorigin = false;\n try {\n if (typeof window !== 'undefined' && window.parent) {\n void window.parent.document;\n }\n }\n catch (error) {\n crossorigin = true;\n }\n }\n return crossorigin;\n}\nfunction add_resize_listener(node, fn) {\n const computed_style = getComputedStyle(node);\n if (computed_style.position === 'static') {\n node.style.position = 'relative';\n }\n const iframe = element('iframe');\n iframe.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; ' +\n 'overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;');\n iframe.setAttribute('aria-hidden', 'true');\n iframe.tabIndex = -1;\n const crossorigin = is_crossorigin();\n let unsubscribe;\n if (crossorigin) {\n iframe.src = \"data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}</script>\";\n unsubscribe = listen(window, 'message', (event) => {\n if (event.source === iframe.contentWindow)\n fn();\n });\n }\n else {\n iframe.src = 'about:blank';\n iframe.onload = () => {\n unsubscribe = listen(iframe.contentWindow, 'resize', fn);\n };\n }\n append(node, iframe);\n return () => {\n if (crossorigin) {\n unsubscribe();\n }\n else if (unsubscribe && iframe.contentWindow) {\n unsubscribe();\n }\n detach(iframe);\n };\n}\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, bubbles, cancelable, detail);\n return e;\n}\nfunction query_selector_all(selector, parent = document.body) {\n return Array.from(parent.querySelectorAll(selector));\n}\nfunction head_selector(nodeId, head) {\n const result = [];\n let started = 0;\n for (const node of head.childNodes) {\n if (node.nodeType === 8 /* comment node */) {\n const comment = node.textContent.trim();\n if (comment === `HEAD_${nodeId}_END`) {\n started -= 1;\n result.push(node);\n }\n else if (comment === `HEAD_${nodeId}_START`) {\n started += 1;\n result.push(node);\n }\n }\n else if (started > 0) {\n result.push(node);\n }\n }\n return result;\n}\nclass HtmlTag {\n constructor(is_svg = false) {\n this.is_svg = false;\n this.is_svg = is_svg;\n this.e = this.n = null;\n }\n c(html) {\n this.h(html);\n }\n m(html, target, anchor = null) {\n if (!this.e) {\n if (this.is_svg)\n this.e = svg_element(target.nodeName);\n else\n this.e = element(target.nodeName);\n this.t = target;\n this.c(html);\n }\n this.i(anchor);\n }\n h(html) {\n this.e.innerHTML = html;\n this.n = Array.from(this.e.childNodes);\n }\n i(anchor) {\n for (let i = 0; i < this.n.length; i += 1) {\n insert(this.t, this.n[i], anchor);\n }\n }\n p(html) {\n this.d();\n this.h(html);\n this.i(this.a);\n }\n d() {\n this.n.forEach(detach);\n }\n}\nclass HtmlTagHydration extends HtmlTag {\n constructor(claimed_nodes, is_svg = false) {\n super(is_svg);\n this.e = this.n = null;\n this.l = claimed_nodes;\n }\n c(html) {\n if (this.l) {\n this.n = this.l;\n }\n else {\n super.c(html);\n }\n }\n i(anchor) {\n for (let i = 0; i < this.n.length; i += 1) {\n insert_hydration(this.t, this.n[i], anchor);\n }\n }\n}\nfunction attribute_to_object(attributes) {\n const result = {};\n for (const attribute of attributes) {\n result[attribute.name] = attribute.value;\n }\n return result;\n}\nfunction get_custom_elements_slots(element) {\n const result = {};\n element.childNodes.forEach((node) => {\n result[node.slot || 'default'] = true;\n });\n return result;\n}\nfunction construct_svelte_component(component, props) {\n return new component(props);\n}\n\n// we need to store the information for multiple documents because a Svelte application could also contain iframes\n// https://github.com/sveltejs/svelte/issues/3624\nconst managed_styles = new Map();\nlet active = 0;\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i--)\n hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n return hash >>> 0;\n}\nfunction create_style_information(doc, node) {\n const info = { stylesheet: append_empty_stylesheet(node), rules: {} };\n managed_styles.set(doc, info);\n return info;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n const step = 16.666 / duration;\n let keyframes = '{\\n';\n for (let p = 0; p <= 1; p += step) {\n const t = a + (b - a) * ease(p);\n keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n }\n const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n const name = `__svelte_${hash(rule)}_${uid}`;\n const doc = get_root_for_style(node);\n const { stylesheet, rules } = managed_styles.get(doc) || create_style_information(doc, node);\n if (!rules[name]) {\n rules[name] = true;\n stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n }\n const animation = node.style.animation || '';\n node.style.animation = `${animation ? `${animation}, ` : ''}${name} ${duration}ms linear ${delay}ms 1 both`;\n active += 1;\n return name;\n}\nfunction delete_rule(node, name) {\n const previous = (node.style.animation || '').split(', ');\n const next = previous.filter(name\n ? anim => anim.indexOf(name) < 0 // remove specific animation\n : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n );\n const deleted = previous.length - next.length;\n if (deleted) {\n node.style.animation = next.join(', ');\n active -= deleted;\n if (!active)\n clear_rules();\n }\n}\nfunction clear_rules() {\n raf(() => {\n if (active)\n return;\n managed_styles.forEach(info => {\n const { ownerNode } = info.stylesheet;\n // there is no ownerNode if it runs on jsdom.\n if (ownerNode)\n detach(ownerNode);\n });\n managed_styles.clear();\n });\n}\n\nfunction create_animation(node, from, fn, params) {\n if (!from)\n return noop;\n const to = node.getBoundingClientRect();\n if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n return noop;\n const { delay = 0, duration = 300, easing = identity, \n // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n start: start_time = now() + delay, \n // @ts-ignore todo:\n end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n let running = true;\n let started = false;\n let name;\n function start() {\n if (css) {\n name = create_rule(node, 0, 1, duration, delay, easing, css);\n }\n if (!delay) {\n started = true;\n }\n }\n function stop() {\n if (css)\n delete_rule(node, name);\n running = false;\n }\n loop(now => {\n if (!started && now >= start_time) {\n started = true;\n }\n if (started && now >= end) {\n tick(1, 0);\n stop();\n }\n if (!running) {\n return false;\n }\n if (started) {\n const p = now - start_time;\n const t = 0 + 1 * easing(p / duration);\n tick(t, 1 - t);\n }\n return true;\n });\n start();\n tick(0, 1);\n return stop;\n}\nfunction fix_position(node) {\n const style = getComputedStyle(node);\n if (style.position !== 'absolute' && style.position !== 'fixed') {\n const { width, height } = style;\n const a = node.getBoundingClientRect();\n node.style.position = 'absolute';\n node.style.width = width;\n node.style.height = height;\n add_transform(node, a);\n }\n}\nfunction add_transform(node, a) {\n const b = node.getBoundingClientRect();\n if (a.left !== b.left || a.top !== b.top) {\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error('Function called outside component initialization');\n return current_component;\n}\n/**\n * Schedules a callback to run immediately before the component is updated after any state change.\n *\n * The first time the callback runs will be before the initial `onMount`\n *\n * https://svelte.dev/docs#run-time-svelte-beforeupdate\n */\nfunction beforeUpdate(fn) {\n get_current_component().$$.before_update.push(fn);\n}\n/**\n * The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.\n * It must be called during the component's initialisation (but doesn't need to live *inside* the component;\n * it can be called from an external module).\n *\n * `onMount` does not run inside a [server-side component](/docs#run-time-server-side-component-api).\n *\n * https://svelte.dev/docs#run-time-svelte-onmount\n */\nfunction onMount(fn) {\n get_current_component().$$.on_mount.push(fn);\n}\n/**\n * Schedules a callback to run immediately after the component has been updated.\n *\n * The first time the callback runs will be after the initial `onMount`\n */\nfunction afterUpdate(fn) {\n get_current_component().$$.after_update.push(fn);\n}\n/**\n * Schedules a callback to run immediately before the component is unmounted.\n *\n * Out of `onMount`, `beforeUpdate`, `afterUpdate` and `onDestroy`, this is the\n * only one that runs inside a server-side component.\n *\n * https://svelte.dev/docs#run-time-svelte-ondestroy\n */\nfunction onDestroy(fn) {\n get_current_component().$$.on_destroy.push(fn);\n}\n/**\n * Creates an event dispatcher that can be used to dispatch [component events](/docs#template-syntax-component-directives-on-eventname).\n * Event dispatchers are functions that can take two arguments: `name` and `detail`.\n *\n * Component events created with `createEventDispatcher` create a\n * [CustomEvent](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent).\n * These events do not [bubble](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Events#Event_bubbling_and_capture).\n * The `detail` argument corresponds to the [CustomEvent.detail](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/detail)\n * property and can contain any type of data.\n *\n * https://svelte.dev/docs#run-time-svelte-createeventdispatcher\n */\nfunction createEventDispatcher() {\n const component = get_current_component();\n return (type, detail, { cancelable = false } = {}) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n // TODO are there situations where events could be dispatched\n // in a server (non-DOM) environment?\n const event = custom_event(type, detail, { cancelable });\n callbacks.slice().forEach(fn => {\n fn.call(component, event);\n });\n return !event.defaultPrevented;\n }\n return true;\n };\n}\n/**\n * Associates an arbitrary `context` object with the current component and the specified `key`\n * and returns that object. The context is then available to children of the component\n * (including slotted content) with `getContext`.\n *\n * Like lifecycle functions, this must be called during component initialisation.\n *\n * https://svelte.dev/docs#run-time-svelte-setcontext\n */\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n return context;\n}\n/**\n * Retrieves the context that belongs to the closest parent component with the specified `key`.\n * Must be called during component initialisation.\n *\n * https://svelte.dev/docs#run-time-svelte-getcontext\n */\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\n/**\n * Retrieves the whole context map that belongs to the closest parent component.\n * Must be called during component initialisation. Useful, for example, if you\n * programmatically create a component and want to pass the existing context to it.\n *\n * https://svelte.dev/docs#run-time-svelte-getallcontexts\n */\nfunction getAllContexts() {\n return get_current_component().$$.context;\n}\n/**\n * Checks whether a given `key` has been set in the context of a parent component.\n * Must be called during component initialisation.\n *\n * https://svelte.dev/docs#run-time-svelte-hascontext\n */\nfunction hasContext(key) {\n return get_current_component().$$.context.has(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n const callbacks = component.$$.callbacks[event.type];\n if (callbacks) {\n // @ts-ignore\n callbacks.slice().forEach(fn => fn.call(this, event));\n }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n if (!update_scheduled) {\n update_scheduled = true;\n resolved_promise.then(flush);\n }\n}\nfunction tick() {\n schedule_update();\n return resolved_promise;\n}\nfunction add_render_callback(fn) {\n render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n flush_callbacks.push(fn);\n}\n// flush() calls callbacks in this order:\n// 1. All beforeUpdate callbacks, in order: parents before children\n// 2. All bind:this callbacks, in reverse order: children before parents.\n// 3. All afterUpdate callbacks, in order: parents before children. EXCEPT\n// for afterUpdates called during the initial onMount, which are called in\n// reverse order: children before parents.\n// Since callbacks might update component values, which could trigger another\n// call to flush(), the following steps guard against this:\n// 1. During beforeUpdate, any updated components will be added to the\n// dirty_components array and will cause a reentrant call to flush(). Because\n// the flush index is kept outside the function, the reentrant call will pick\n// up where the earlier call left off and go through all dirty components. The\n// current_component value is saved and restored so that the reentrant call will\n// not interfere with the \"parent\" flush() call.\n// 2. bind:this callbacks cannot trigger new flush() calls.\n// 3. During afterUpdate, any updated components will NOT have their afterUpdate\n// callback called a second time; the seen_callbacks set, outside the flush()\n// function, guarantees this behavior.\nconst seen_callbacks = new Set();\nlet flushidx = 0; // Do *not* move this inside the flush() function\nfunction flush() {\n // Do not reenter flush while dirty components are updated, as this can\n // result in an infinite loop. Instead, let the inner flush handle it.\n // Reentrancy is ok afterwards for bindings etc.\n if (flushidx !== 0) {\n return;\n }\n const saved_component = current_component;\n do {\n // first, call beforeUpdate functions\n // and update components\n try {\n while (flushidx < dirty_components.length) {\n const component = dirty_components[flushidx];\n flushidx++;\n set_current_component(component);\n update(component.$$);\n }\n }\n catch (e) {\n // reset dirty state to not end up in a deadlocked state and then rethrow\n dirty_components.length = 0;\n flushidx = 0;\n throw e;\n }\n set_current_component(null);\n dirty_components.length = 0;\n flushidx = 0;\n while (binding_callbacks.length)\n binding_callbacks.pop()();\n // then, once components are updated, call\n // afterUpdate functions. This may cause\n // subsequent updates...\n for (let i = 0; i < render_callbacks.length; i += 1) {\n const callback = render_callbacks[i];\n if (!seen_callbacks.has(callback)) {\n // ...so guard against infinite loops\n seen_callbacks.add(callback);\n callback();\n }\n }\n render_callbacks.length = 0;\n } while (dirty_components.length);\n while (flush_callbacks.length) {\n flush_callbacks.pop()();\n }\n update_scheduled = false;\n seen_callbacks.clear();\n set_current_component(saved_component);\n}\nfunction update($$) {\n if ($$.fragment !== null) {\n $$.update();\n run_all($$.before_update);\n const dirty = $$.dirty;\n $$.dirty = [-1];\n $$.fragment && $$.fragment.p($$.ctx, dirty);\n $$.after_update.forEach(add_render_callback);\n }\n}\n\nlet promise;\nfunction wait() {\n if (!promise) {\n promise = Promise.resolve();\n promise.then(() => {\n promise = null;\n });\n }\n return promise;\n}\nfunction dispatch(node, direction, kind) {\n node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n outros = {\n r: 0,\n c: [],\n p: outros // parent group\n };\n}\nfunction check_outros() {\n if (!outros.r) {\n run_all(outros.c);\n }\n outros = outros.p;\n}\nfunction transition_in(block, local) {\n if (block && block.i) {\n outroing.delete(block);\n block.i(local);\n }\n}\nfunction transition_out(block, local, detach, callback) {\n if (block && block.o) {\n if (outroing.has(block))\n return;\n outroing.add(block);\n outros.c.push(() => {\n outroing.delete(block);\n if (callback) {\n if (detach)\n block.d(1);\n callback();\n }\n });\n block.o(local);\n }\n else if (callback) {\n callback();\n }\n}\nconst null_transition = { duration: 0 };\nfunction create_in_transition(node, fn, params) {\n const options = { direction: 'in' };\n let config = fn(node, params, options);\n let running = false;\n let animation_name;\n let task;\n let uid = 0;\n function cleanup() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n tick(0, 1);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n if (task)\n task.abort();\n running = true;\n add_render_callback(() => dispatch(node, true, 'start'));\n task = loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(1, 0);\n dispatch(node, true, 'end');\n cleanup();\n return running = false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(t, 1 - t);\n }\n }\n return running;\n });\n }\n let started = false;\n return {\n start() {\n if (started)\n return;\n started = true;\n delete_rule(node);\n if (is_function(config)) {\n config = config(options);\n wait().then(go);\n }\n else {\n go();\n }\n },\n invalidate() {\n started = false;\n },\n end() {\n if (running) {\n cleanup();\n running = false;\n }\n }\n };\n}\nfunction create_out_transition(node, fn, params) {\n const options = { direction: 'out' };\n let config = fn(node, params, options);\n let running = true;\n let animation_name;\n const group = outros;\n group.r += 1;\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n add_render_callback(() => dispatch(node, false, 'start'));\n loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(0, 1);\n dispatch(node, false, 'end');\n if (!--group.r) {\n // this will result in `end()` being called,\n // so we don't need to clean up here\n run_all(group.c);\n }\n return false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(1 - t, t);\n }\n }\n return running;\n });\n }\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config(options);\n go();\n });\n }\n else {\n go();\n }\n return {\n end(reset) {\n if (reset && config.tick) {\n config.tick(1, 0);\n }\n if (running) {\n if (animation_name)\n delete_rule(node, animation_name);\n running = false;\n }\n }\n };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n const options = { direction: 'both' };\n let config = fn(node, params, options);\n let t = intro ? 0 : 1;\n let running_program = null;\n let pending_program = null;\n let animation_name = null;\n function clear_animation() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function init(program, duration) {\n const d = (program.b - t);\n duration *= Math.abs(d);\n return {\n a: t,\n b: program.b,\n d,\n duration,\n start: program.start,\n end: program.start + duration,\n group: program.group\n };\n }\n function go(b) {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n const program = {\n start: now() + delay,\n b\n };\n if (!b) {\n // @ts-ignore todo: improve typings\n program.group = outros;\n outros.r += 1;\n }\n if (running_program || pending_program) {\n pending_program = program;\n }\n else {\n // if this is an intro, and there's a delay, we need to do\n // an initial tick and/or apply CSS animation immediately\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, b, duration, delay, easing, css);\n }\n if (b)\n tick(0, 1);\n running_program = init(program, duration);\n add_render_callback(() => dispatch(node, b, 'start'));\n loop(now => {\n if (pending_program && now > pending_program.start) {\n running_program = init(pending_program, duration);\n pending_program = null;\n dispatch(node, running_program.b, 'start');\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n }\n }\n if (running_program) {\n if (now >= running_program.end) {\n tick(t = running_program.b, 1 - t);\n dispatch(node, running_program.b, 'end');\n if (!pending_program) {\n // we're done\n if (running_program.b) {\n // intro — we can tidy up immediately\n clear_animation();\n }\n else {\n // outro — needs to be coordinated\n if (!--running_program.group.r)\n run_all(running_program.group.c);\n }\n }\n running_program = null;\n }\n else if (now >= running_program.start) {\n const p = now - running_program.start;\n t = running_program.a + running_program.d * easing(p / running_program.duration);\n tick(t, 1 - t);\n }\n }\n return !!(running_program || pending_program);\n });\n }\n }\n return {\n run(b) {\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config(options);\n go(b);\n });\n }\n else {\n go(b);\n }\n },\n end() {\n clear_animation();\n running_program = pending_program = null;\n }\n };\n}\n\nfunction handle_promise(promise, info) {\n const token = info.token = {};\n function update(type, index, key, value) {\n if (info.token !== token)\n return;\n info.resolved = value;\n let child_ctx = info.ctx;\n if (key !== undefined) {\n child_ctx = child_ctx.slice();\n child_ctx[key] = value;\n }\n const block = type && (info.current = type)(child_ctx);\n let needs_flush = false;\n if (info.block) {\n if (info.blocks) {\n info.blocks.forEach((block, i) => {\n if (i !== index && block) {\n group_outros();\n transition_out(block, 1, 1, () => {\n if (info.blocks[i] === block) {\n info.blocks[i] = null;\n }\n });\n check_outros();\n }\n });\n }\n else {\n info.block.d(1);\n }\n block.c();\n transition_in(block, 1);\n block.m(info.mount(), info.anchor);\n needs_flush = true;\n }\n info.block = block;\n if (info.blocks)\n info.blocks[index] = block;\n if (needs_flush) {\n flush();\n }\n }\n if (is_promise(promise)) {\n const current_component = get_current_component();\n promise.then(value => {\n set_current_component(current_component);\n update(info.then, 1, info.value, value);\n set_current_component(null);\n }, error => {\n set_current_component(current_component);\n update(info.catch, 2, info.error, error);\n set_current_component(null);\n if (!info.hasCatch) {\n throw error;\n }\n });\n // if we previously had a then/catch block, destroy it\n if (info.current !== info.pending) {\n update(info.pending, 0);\n return true;\n }\n }\n else {\n if (info.current !== info.then) {\n update(info.then, 1, info.value, promise);\n return true;\n }\n info.resolved = promise;\n }\n}\nfunction update_await_block_branch(info, ctx, dirty) {\n const child_ctx = ctx.slice();\n const { resolved } = info;\n if (info.current === info.then) {\n child_ctx[info.value] = resolved;\n }\n if (info.current === info.catch) {\n child_ctx[info.error] = resolved;\n }\n info.block.p(child_ctx, dirty);\n}\n\nconst globals = (typeof window !== 'undefined'\n ? window\n : typeof globalThis !== 'undefined'\n ? globalThis\n : global);\n\nfunction destroy_block(block, lookup) {\n block.d(1);\n lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n transition_out(block, 1, 1, () => {\n lookup.delete(block.key);\n });\n}\nfunction fix_and_destroy_block(block, lookup) {\n block.f();\n destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n block.f();\n outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, dirty, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n let o = old_blocks.length;\n let n = list.length;\n let i = o;\n const old_indexes = {};\n while (i--)\n old_indexes[old_blocks[i].key] = i;\n const new_blocks = [];\n const new_lookup = new Map();\n const deltas = new Map();\n i = n;\n while (i--) {\n const child_ctx = get_context(ctx, list, i);\n const key = get_key(child_ctx);\n let block = lookup.get(key);\n if (!block) {\n block = create_each_block(key, child_ctx);\n block.c();\n }\n else if (dynamic) {\n block.p(child_ctx, dirty);\n }\n new_lookup.set(key, new_blocks[i] = block);\n if (key in old_indexes)\n deltas.set(key, Math.abs(i - old_indexes[key]));\n }\n const will_move = new Set();\n const did_move = new Set();\n function insert(block) {\n transition_in(block, 1);\n block.m(node, next);\n lookup.set(block.key, block);\n next = block.first;\n n--;\n }\n while (o && n) {\n const new_block = new_blocks[n - 1];\n const old_block = old_blocks[o - 1];\n const new_key = new_block.key;\n const old_key = old_block.key;\n if (new_block === old_block) {\n // do nothing\n next = new_block.first;\n o--;\n n--;\n }\n else if (!new_lookup.has(old_key)) {\n // remove old block\n destroy(old_block, lookup);\n o--;\n }\n else if (!lookup.has(new_key) || will_move.has(new_key)) {\n insert(new_block);\n }\n else if (did_move.has(old_key)) {\n o--;\n }\n else if (deltas.get(new_key) > deltas.get(old_key)) {\n did_move.add(new_key);\n insert(new_block);\n }\n else {\n will_move.add(old_key);\n o--;\n }\n }\n while (o--) {\n const old_block = old_blocks[o];\n if (!new_lookup.has(old_block.key))\n destroy(old_block, lookup);\n }\n while (n)\n insert(new_blocks[n - 1]);\n return new_blocks;\n}\nfunction validate_each_keys(ctx, list, get_context, get_key) {\n const keys = new Set();\n for (let i = 0; i < list.length; i++) {\n const key = get_key(get_context(ctx, list, i));\n if (keys.has(key)) {\n throw new Error('Cannot have duplicate keys in a keyed each');\n }\n keys.add(key);\n }\n}\n\nfunction get_spread_update(levels, updates) {\n const update = {};\n const to_null_out = {};\n const accounted_for = { $$scope: 1 };\n let i = levels.length;\n while (i--) {\n const o = levels[i];\n const n = updates[i];\n if (n) {\n for (const key in o) {\n if (!(key in n))\n to_null_out[key] = 1;\n }\n for (const key in n) {\n if (!accounted_for[key]) {\n update[key] = n[key];\n accounted_for[key] = 1;\n }\n }\n levels[i] = n;\n }\n else {\n for (const key in o) {\n accounted_for[key] = 1;\n }\n }\n }\n for (const key in to_null_out) {\n if (!(key in update))\n update[key] = undefined;\n }\n return update;\n}\nfunction get_spread_object(spread_props) {\n return typeof spread_props === 'object' && spread_props !== null ? spread_props : {};\n}\n\n// source: https://html.spec.whatwg.org/multipage/indices.html\nconst boolean_attributes = new Set([\n 'allowfullscreen',\n 'allowpaymentrequest',\n 'async',\n 'autofocus',\n 'autoplay',\n 'checked',\n 'controls',\n 'default',\n 'defer',\n 'disabled',\n 'formnovalidate',\n 'hidden',\n 'inert',\n 'ismap',\n 'itemscope',\n 'loop',\n 'multiple',\n 'muted',\n 'nomodule',\n 'novalidate',\n 'open',\n 'playsinline',\n 'readonly',\n 'required',\n 'reversed',\n 'selected'\n]);\n\n/** regex of all html void element names */\nconst void_element_names = /^(?:area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)$/;\nfunction is_void(name) {\n return void_element_names.test(name) || name.toLowerCase() === '!doctype';\n}\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args, attrs_to_add) {\n const attributes = Object.assign({}, ...args);\n if (attrs_to_add) {\n const classes_to_add = attrs_to_add.classes;\n const styles_to_add = attrs_to_add.styles;\n if (classes_to_add) {\n if (attributes.class == null) {\n attributes.class = classes_to_add;\n }\n else {\n attributes.class += ' ' + classes_to_add;\n }\n }\n if (styles_to_add) {\n if (attributes.style == null) {\n attributes.style = style_object_to_string(styles_to_add);\n }\n else {\n attributes.style = style_object_to_string(merge_ssr_styles(attributes.style, styles_to_add));\n }\n }\n }\n let str = '';\n Object.keys(attributes).forEach(name => {\n if (invalid_attribute_name_character.test(name))\n return;\n const value = attributes[name];\n if (value === true)\n str += ' ' + name;\n else if (boolean_attributes.has(name.toLowerCase())) {\n if (value)\n str += ' ' + name;\n }\n else if (value != null) {\n str += ` ${name}=\"${value}\"`;\n }\n });\n return str;\n}\nfunction merge_ssr_styles(style_attribute, style_directive) {\n const style_object = {};\n for (const individual_style of style_attribute.split(';')) {\n const colon_index = individual_style.indexOf(':');\n const name = individual_style.slice(0, colon_index).trim();\n const value = individual_style.slice(colon_index + 1).trim();\n if (!name)\n continue;\n style_object[name] = value;\n }\n for (const name in style_directive) {\n const value = style_directive[name];\n if (value) {\n style_object[name] = value;\n }\n else {\n delete style_object[name];\n }\n }\n return style_object;\n}\nconst ATTR_REGEX = /[&\"]/g;\nconst CONTENT_REGEX = /[&<]/g;\n/**\n * Note: this method is performance sensitive and has been optimized\n * https://github.com/sveltejs/svelte/pull/5701\n */\nfunction escape(value, is_attr = false) {\n const str = String(value);\n const pattern = is_attr ? ATTR_REGEX : CONTENT_REGEX;\n pattern.lastIndex = 0;\n let escaped = '';\n let last = 0;\n while (pattern.test(str)) {\n const i = pattern.lastIndex - 1;\n const ch = str[i];\n escaped += str.substring(last, i) + (ch === '&' ? '&' : (ch === '\"' ? '"' : '<'));\n last = i + 1;\n }\n return escaped + str.substring(last);\n}\nfunction escape_attribute_value(value) {\n // keep booleans, null, and undefined for the sake of `spread`\n const should_escape = typeof value === 'string' || (value && typeof value === 'object');\n return should_escape ? escape(value, true) : value;\n}\nfunction escape_object(obj) {\n const result = {};\n for (const key in obj) {\n result[key] = escape_attribute_value(obj[key]);\n }\n return result;\n}\nfunction each(items, fn) {\n let str = '';\n for (let i = 0; i < items.length; i += 1) {\n str += fn(items[i], i);\n }\n return str;\n}\nconst missing_component = {\n $$render: () => ''\n};\nfunction validate_component(component, name) {\n if (!component || !component.$$render) {\n if (name === 'svelte:component')\n name += ' this={...}';\n throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules. Otherwise you may need to fix a <${name}>.`);\n }\n return component;\n}\nfunction debug(file, line, column, values) {\n console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n console.log(values); // eslint-disable-line no-console\n return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n function $$render(result, props, bindings, slots, context) {\n const parent_component = current_component;\n const $$ = {\n on_destroy,\n context: new Map(context || (parent_component ? parent_component.$$.context : [])),\n // these will be immediately discarded\n on_mount: [],\n before_update: [],\n after_update: [],\n callbacks: blank_object()\n };\n set_current_component({ $$ });\n const html = fn(result, props, bindings, slots);\n set_current_component(parent_component);\n return html;\n }\n return {\n render: (props = {}, { $$slots = {}, context = new Map() } = {}) => {\n on_destroy = [];\n const result = { title: '', head: '', css: new Set() };\n const html = $$render(result, props, {}, $$slots, context);\n run_all(on_destroy);\n return {\n html,\n css: {\n code: Array.from(result.css).map(css => css.code).join('\\n'),\n map: null // TODO\n },\n head: result.title + result.head\n };\n },\n $$render\n };\n}\nfunction add_attribute(name, value, boolean) {\n if (value == null || (boolean && !value))\n return '';\n const assignment = (boolean && value === true) ? '' : `=\"${escape(value, true)}\"`;\n return ` ${name}${assignment}`;\n}\nfunction add_classes(classes) {\n return classes ? ` class=\"${classes}\"` : '';\n}\nfunction style_object_to_string(style_object) {\n return Object.keys(style_object)\n .filter(key => style_object[key])\n .map(key => `${key}: ${escape_attribute_value(style_object[key])};`)\n .join(' ');\n}\nfunction add_styles(style_object) {\n const styles = style_object_to_string(style_object);\n return styles ? ` style=\"${styles}\"` : '';\n}\n\nfunction bind(component, name, callback) {\n const index = component.$$.props[name];\n if (index !== undefined) {\n component.$$.bound[index] = callback;\n callback(component.$$.ctx[index]);\n }\n}\nfunction create_component(block) {\n block && block.c();\n}\nfunction claim_component(block, parent_nodes) {\n block && block.l(parent_nodes);\n}\nfunction mount_component(component, target, anchor, customElement) {\n const { fragment, after_update } = component.$$;\n fragment && fragment.m(target, anchor);\n if (!customElement) {\n // onMount happens before the initial afterUpdate\n add_render_callback(() => {\n const new_on_destroy = component.$$.on_mount.map(run).filter(is_function);\n // if the component was destroyed immediately\n // it will update the `$$.on_destroy` reference to `null`.\n // the destructured on_destroy may still reference to the old array\n if (component.$$.on_destroy) {\n component.$$.on_destroy.push(...new_on_destroy);\n }\n else {\n // Edge case - component was destroyed immediately,\n // most likely as a result of a binding initialising\n run_all(new_on_destroy);\n }\n component.$$.on_mount = [];\n });\n }\n after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n const $$ = component.$$;\n if ($$.fragment !== null) {\n run_all($$.on_destroy);\n $$.fragment && $$.fragment.d(detaching);\n // TODO null out other refs, including component.$$ (but need to\n // preserve final state?)\n $$.on_destroy = $$.fragment = null;\n $$.ctx = [];\n }\n}\nfunction make_dirty(component, i) {\n if (component.$$.dirty[0] === -1) {\n dirty_components.push(component);\n schedule_update();\n component.$$.dirty.fill(0);\n }\n component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));\n}\nfunction init(component, options, instance, create_fragment, not_equal, props, append_styles, dirty = [-1]) {\n const parent_component = current_component;\n set_current_component(component);\n const $$ = component.$$ = {\n fragment: null,\n ctx: [],\n // state\n props,\n update: noop,\n not_equal,\n bound: blank_object(),\n // lifecycle\n on_mount: [],\n on_destroy: [],\n on_disconnect: [],\n before_update: [],\n after_update: [],\n context: new Map(options.context || (parent_component ? parent_component.$$.context : [])),\n // everything else\n callbacks: blank_object(),\n dirty,\n skip_bound: false,\n root: options.target || parent_component.$$.root\n };\n append_styles && append_styles($$.root);\n let ready = false;\n $$.ctx = instance\n ? instance(component, options.props || {}, (i, ret, ...rest) => {\n const value = rest.length ? rest[0] : ret;\n if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {\n if (!$$.skip_bound && $$.bound[i])\n $$.bound[i](value);\n if (ready)\n make_dirty(component, i);\n }\n return ret;\n })\n : [];\n $$.update();\n ready = true;\n run_all($$.before_update);\n // `false` as a special case of no DOM component\n $$.fragment = create_fragment ? create_fragment($$.ctx) : false;\n if (options.target) {\n if (options.hydrate) {\n start_hydrating();\n const nodes = children(options.target);\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.l(nodes);\n nodes.forEach(detach);\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.c();\n }\n if (options.intro)\n transition_in(component.$$.fragment);\n mount_component(component, options.target, options.anchor, options.customElement);\n end_hydrating();\n flush();\n }\n set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement === 'function') {\n SvelteElement = class extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n }\n connectedCallback() {\n const { on_mount } = this.$$;\n this.$$.on_disconnect = on_mount.map(run).filter(is_function);\n // @ts-ignore todo: improve typings\n for (const key in this.$$.slotted) {\n // @ts-ignore todo: improve typings\n this.appendChild(this.$$.slotted[key]);\n }\n }\n attributeChangedCallback(attr, _oldValue, newValue) {\n this[attr] = newValue;\n }\n disconnectedCallback() {\n run_all(this.$$.on_disconnect);\n }\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n // TODO should this delegate to addEventListener?\n if (!is_function(callback)) {\n return noop;\n }\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n };\n}\n/**\n * Base class for Svelte components. Used when dev=false.\n */\nclass SvelteComponent {\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n if (!is_function(callback)) {\n return noop;\n }\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n}\n\nfunction dispatch_dev(type, detail) {\n document.dispatchEvent(custom_event(type, Object.assign({ version: '3.55.1' }, detail), { bubbles: true }));\n}\nfunction append_dev(target, node) {\n dispatch_dev('SvelteDOMInsert', { target, node });\n append(target, node);\n}\nfunction append_hydration_dev(target, node) {\n dispatch_dev('SvelteDOMInsert', { target, node });\n append_hydration(target, node);\n}\nfunction insert_dev(target, node, anchor) {\n dispatch_dev('SvelteDOMInsert', { target, node, anchor });\n insert(target, node, anchor);\n}\nfunction insert_hydration_dev(target, node, anchor) {\n dispatch_dev('SvelteDOMInsert', { target, node, anchor });\n insert_hydration(target, node, anchor);\n}\nfunction detach_dev(node) {\n dispatch_dev('SvelteDOMRemove', { node });\n detach(node);\n}\nfunction detach_between_dev(before, after) {\n while (before.nextSibling && before.nextSibling !== after) {\n detach_dev(before.nextSibling);\n }\n}\nfunction detach_before_dev(after) {\n while (after.previousSibling) {\n detach_dev(after.previousSibling);\n }\n}\nfunction detach_after_dev(before) {\n while (before.nextSibling) {\n detach_dev(before.nextSibling);\n }\n}\nfunction listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation) {\n const modifiers = options === true ? ['capture'] : options ? Array.from(Object.keys(options)) : [];\n if (has_prevent_default)\n modifiers.push('preventDefault');\n if (has_stop_propagation)\n modifiers.push('stopPropagation');\n dispatch_dev('SvelteDOMAddEventListener', { node, event, handler, modifiers });\n const dispose = listen(node, event, handler, options);\n return () => {\n dispatch_dev('SvelteDOMRemoveEventListener', { node, event, handler, modifiers });\n dispose();\n };\n}\nfunction attr_dev(node, attribute, value) {\n attr(node, attribute, value);\n if (value == null)\n dispatch_dev('SvelteDOMRemoveAttribute', { node, attribute });\n else\n dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value });\n}\nfunction prop_dev(node, property, value) {\n node[property] = value;\n dispatch_dev('SvelteDOMSetProperty', { node, property, value });\n}\nfunction dataset_dev(node, property, value) {\n node.dataset[property] = value;\n dispatch_dev('SvelteDOMSetDataset', { node, property, value });\n}\nfunction set_data_dev(text, data) {\n data = '' + data;\n if (text.wholeText === data)\n return;\n dispatch_dev('SvelteDOMSetData', { node: text, data });\n text.data = data;\n}\nfunction validate_each_argument(arg) {\n if (typeof arg !== 'string' && !(arg && typeof arg === 'object' && 'length' in arg)) {\n let msg = '{#each} only iterates over array-like objects.';\n if (typeof Symbol === 'function' && arg && Symbol.iterator in arg) {\n msg += ' You can use a spread to convert this iterable into an array.';\n }\n throw new Error(msg);\n }\n}\nfunction validate_slots(name, slot, keys) {\n for (const slot_key of Object.keys(slot)) {\n if (!~keys.indexOf(slot_key)) {\n console.warn(`<${name}> received an unexpected slot \"${slot_key}\".`);\n }\n }\n}\nfunction validate_dynamic_element(tag) {\n const is_string = typeof tag === 'string';\n if (tag && !is_string) {\n throw new Error('<svelte:element> expects \"this\" attribute to be a string.');\n }\n}\nfunction validate_void_dynamic_element(tag) {\n if (tag && is_void(tag)) {\n console.warn(`<svelte:element this=\"${tag}\"> is self-closing and cannot have content.`);\n }\n}\nfunction construct_svelte_component_dev(component, props) {\n const error_message = 'this={...} of <svelte:component> should specify a Svelte component.';\n try {\n const instance = new component(props);\n if (!instance.$$ || !instance.$set || !instance.$on || !instance.$destroy) {\n throw new Error(error_message);\n }\n return instance;\n }\n catch (err) {\n const { message } = err;\n if (typeof message === 'string' && message.indexOf('is not a constructor') !== -1) {\n throw new Error(error_message);\n }\n else {\n throw err;\n }\n }\n}\n/**\n * Base class for Svelte components with some minor dev-enhancements. Used when dev=true.\n */\nclass SvelteComponentDev extends SvelteComponent {\n constructor(options) {\n if (!options || (!options.target && !options.$$inline)) {\n throw new Error(\"'target' is a required option\");\n }\n super();\n }\n $destroy() {\n super.$destroy();\n this.$destroy = () => {\n console.warn('Component was already destroyed'); // eslint-disable-line no-console\n };\n }\n $capture_state() { }\n $inject_state() { }\n}\n/**\n * Base class to create strongly typed Svelte components.\n * This only exists for typing purposes and should be used in `.d.ts` files.\n *\n * ### Example:\n *\n * You have component library on npm called `component-library`, from which\n * you export a component called `MyComponent`. For Svelte+TypeScript users,\n * you want to provide typings. Therefore you create a `index.d.ts`:\n * ```ts\n * import { SvelteComponentTyped } from \"svelte\";\n * export class MyComponent extends SvelteComponentTyped<{foo: string}> {}\n * ```\n * Typing this makes it possible for IDEs like VS Code with the Svelte extension\n * to provide intellisense and to use the component like this in a Svelte file\n * with TypeScript:\n * ```svelte\n * <script lang=\"ts\">\n * \timport { MyComponent } from \"component-library\";\n * </script>\n * <MyComponent foo={'bar'} />\n * ```\n *\n * #### Why not make this part of `SvelteComponent(Dev)`?\n * Because\n * ```ts\n * class ASubclassOfSvelteComponent extends SvelteComponent<{foo: string}> {}\n * const component: typeof SvelteComponent = ASubclassOfSvelteComponent;\n * ```\n * will throw a type error, so we need to separate the more strictly typed class.\n */\nclass SvelteComponentTyped extends SvelteComponentDev {\n constructor(options) {\n super(options);\n }\n}\nfunction loop_guard(timeout) {\n const start = Date.now();\n return () => {\n if (Date.now() - start > timeout) {\n throw new Error('Infinite loop detected');\n }\n };\n}\n\nexport { HtmlTag, HtmlTagHydration, SvelteComponent, SvelteComponentDev, SvelteComponentTyped, SvelteElement, action_destroyer, add_attribute, add_classes, add_flush_callback, add_location, add_render_callback, add_resize_listener, add_styles, add_transform, afterUpdate, append, append_dev, append_empty_stylesheet, append_hydration, append_hydration_dev, append_styles, assign, attr, attr_dev, attribute_to_object, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_component, claim_element, claim_html_tag, claim_space, claim_svg_element, claim_text, clear_loops, component_subscribe, compute_rest_props, compute_slots, construct_svelte_component, construct_svelte_component_dev, createEventDispatcher, create_animation, create_bidirectional_transition, create_component, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, dataset_dev, debug, destroy_block, destroy_component, destroy_each, detach, detach_after_dev, detach_before_dev, detach_between_dev, detach_dev, dirty_components, dispatch_dev, each, element, element_is, empty, end_hydrating, escape, escape_attribute_value, escape_object, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, getAllContexts, getContext, get_all_dirty_from_scope, get_binding_group_value, get_current_component, get_custom_elements_slots, get_root_for_style, get_slot_changes, get_spread_object, get_spread_update, get_store_value, globals, group_outros, handle_promise, hasContext, has_prop, head_selector, identity, init, insert, insert_dev, insert_hydration, insert_hydration_dev, intros, invalid_attribute_name_character, is_client, is_crossorigin, is_empty, is_function, is_promise, is_void, listen, listen_dev, loop, loop_guard, merge_ssr_styles, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, prop_dev, query_selector_all, raf, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, self, setContext, set_attributes, set_current_component, set_custom_element_data, set_custom_element_data_map, set_data, set_data_dev, set_input_type, set_input_value, set_now, set_raf, set_store_value, set_style, set_svg_attributes, space, spread, src_url_equal, start_hydrating, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, trusted, update_await_block_branch, update_keyed_each, update_slot, update_slot_base, validate_component, validate_dynamic_element, validate_each_argument, validate_each_keys, validate_slots, validate_store, validate_void_dynamic_element, xlink_attr };\n","module.exports = require('../full/is-iterable');\n","module.exports = require(\"core-js-pure/features/is-iterable\");","import { noop, safe_not_equal, subscribe, run_all, is_function } from '../internal/index.mjs';\nexport { get_store_value as get } from '../internal/index.mjs';\n\nconst subscriber_queue = [];\n/**\n * Creates a `Readable` store that allows reading by subscription.\n * @param value initial value\n * @param {StartStopNotifier}start start and stop notifications for subscriptions\n */\nfunction readable(value, start) {\n return {\n subscribe: writable(value, start).subscribe\n };\n}\n/**\n * Create a `Writable` store that allows both updating and reading by subscription.\n * @param {*=}value initial value\n * @param {StartStopNotifier=}start start and stop notifications for subscriptions\n */\nfunction writable(value, start = noop) {\n let stop;\n const subscribers = new Set();\n function set(new_value) {\n if (safe_not_equal(value, new_value)) {\n value = new_value;\n if (stop) { // store is ready\n const run_queue = !subscriber_queue.length;\n for (const subscriber of subscribers) {\n subscriber[1]();\n subscriber_queue.push(subscriber, value);\n }\n if (run_queue) {\n for (let i = 0; i < subscriber_queue.length; i += 2) {\n subscriber_queue[i][0](subscriber_queue[i + 1]);\n }\n subscriber_queue.length = 0;\n }\n }\n }\n }\n function update(fn) {\n set(fn(value));\n }\n function subscribe(run, invalidate = noop) {\n const subscriber = [run, invalidate];\n subscribers.add(subscriber);\n if (subscribers.size === 1) {\n stop = start(set) || noop;\n }\n run(value);\n return () => {\n subscribers.delete(subscriber);\n if (subscribers.size === 0) {\n stop();\n stop = null;\n }\n };\n }\n return { set, update, subscribe };\n}\nfunction derived(stores, fn, initial_value) {\n const single = !Array.isArray(stores);\n const stores_array = single\n ? [stores]\n : stores;\n const auto = fn.length < 2;\n return readable(initial_value, (set) => {\n let inited = false;\n const values = [];\n let pending = 0;\n let cleanup = noop;\n const sync = () => {\n if (pending) {\n return;\n }\n cleanup();\n const result = fn(single ? values[0] : values, set);\n if (auto) {\n set(result);\n }\n else {\n cleanup = is_function(result) ? result : noop;\n }\n };\n const unsubscribers = stores_array.map((store, i) => subscribe(store, (value) => {\n values[i] = value;\n pending &= ~(1 << i);\n if (inited) {\n sync();\n }\n }, () => {\n pending |= (1 << i);\n }));\n inited = true;\n sync();\n return function stop() {\n run_all(unsubscribers);\n cleanup();\n };\n });\n}\n\nexport { derived, readable, writable };\n","import { run_all, is_function } from 'svelte/internal';\nimport { writable, derived, get } from 'svelte/store';\n\nfunction assign(...args) {\n return Object.assign(...args);\n}\n\nfunction isObject(test) {\n return typeof test === 'object' && test !== null;\n}\n\nfunction symbol() {\n return Symbol('ec');\n}\n\nfunction setContent(node, content) {\n let actions = {\n update(content) {\n while (node.firstChild) {\n node.removeChild(node.lastChild);\n }\n if (!isObject(content)) {\n node.innerText = content;\n } else if (content.domNodes) {\n for (let child of content.domNodes) {\n node.appendChild(child);\n }\n } else if (content.html) {\n node.innerHTML = content.html;\n }\n }\n };\n actions.update(content);\n\n return actions;\n}\n\n/** Dispatch event occurred outside of node */\nfunction outsideEvent(node, type) {\n\n const handlePointerDown = jsEvent => {\n if (node && !node.contains(jsEvent.target)) {\n node.dispatchEvent(\n new CustomEvent(type + 'outside', {detail: {jsEvent}})\n );\n }\n };\n\n document.addEventListener(type, handlePointerDown, true);\n\n return {\n destroy() {\n document.removeEventListener(type, handlePointerDown, true);\n }\n };\n}\n\nconst DAY_IN_SECONDS = 86400;\n\nfunction createDate(input) {\n if (input !== undefined) {\n return input instanceof Date ? _fromLocalDate(input) : _fromISOString(input);\n }\n\n return _fromLocalDate(new Date());\n}\n\nfunction createDuration(input) {\n if (typeof input === 'number') {\n input = {seconds: input};\n } else if (typeof input === 'string') {\n // Expected format hh[:mm[:ss]]\n let seconds = 0, exp = 2;\n for (let part of input.split(':', 3)) {\n seconds += parseInt(part, 10) * Math.pow(60, exp--);\n }\n input = {seconds};\n } else if (input instanceof Date) {\n input = {hours: input.getUTCHours(), minutes: input.getUTCMinutes(), seconds: input.getUTCSeconds()};\n }\n\n let weeks = input.weeks || input.week || 0;\n\n return {\n years: input.years || input.year || 0,\n months: input.months || input.month || 0,\n days: weeks * 7 + (input.days || input.day || 0),\n seconds: (input.hours || input.hour || 0) * 60 * 60 +\n (input.minutes || input.minute || 0) * 60 +\n (input.seconds || input.second || 0),\n inWeeks: !!weeks\n };\n}\n\nfunction cloneDate(date) {\n return new Date(date.getTime());\n}\n\nfunction addDuration(date, duration, x) {\n if (x === undefined) {\n x = 1;\n }\n date.setUTCFullYear(date.getUTCFullYear() + x * duration.years);\n let month = date.getUTCMonth() + x * duration.months;\n date.setUTCMonth(month);\n month %= 12;\n if (month < 0) {\n month += 12;\n }\n while (date.getUTCMonth() !== month) {\n subtractDay(date);\n }\n date.setUTCDate(date.getUTCDate() + x * duration.days);\n date.setUTCSeconds(date.getUTCSeconds() + x * duration.seconds);\n\n return date;\n}\n\nfunction subtractDuration(date, duration, x) {\n return addDuration(date, duration, x === undefined ? -1 : -x);\n}\n\nfunction addDay(date, x) {\n date.setUTCDate(date.getUTCDate() + (x === undefined ? 1 : x));\n\n return date;\n}\n\nfunction subtractDay(date, x) {\n return addDay(date, x === undefined ? -1 : -x);\n}\n\nfunction setMidnight(date) {\n date.setUTCHours(0, 0, 0, 0);\n\n return date;\n}\n\nfunction toLocalDate(date) {\n return new Date(\n date.getUTCFullYear(),\n date.getUTCMonth(),\n date.getUTCDate(),\n date.getUTCHours(),\n date.getUTCMinutes(),\n date.getUTCSeconds()\n );\n}\n\nfunction toISOString(date) {\n return date.toISOString().substring(0, 19);\n}\n\nfunction formatRange(start, end, intl) {\n if (start.getFullYear() !== end.getFullYear()) {\n return intl.format(start) + ' - ' + intl.format(end);\n }\n\n let diff = [];\n if (start.getMonth() !== end.getMonth()) {\n diff.push('month');\n }\n if (start.getDate() !== end.getDate()) {\n diff.push('day');\n }\n\n if (!diff.length) {\n return intl.format(start);\n }\n\n let opts1 = intl.resolvedOptions();\n let opts2 = {};\n for (let key of diff) {\n opts2[key] = opts1[key];\n }\n let intl2 = new Intl.DateTimeFormat(opts1.locale, opts2);\n\n let full1 = intl.format(start);\n let full2 = intl.format(end);\n let part1 = intl2.format(start);\n let part2 = intl2.format(end);\n\n let common = _commonChunks(full1, part1, full2, part2);\n if (common) {\n return common.head + part1 + ' - ' + part2 + common.tail;\n }\n\n return full1 + ' - ' + full2;\n}\n\nfunction datesEqual(date1, ...dates2) {\n return dates2.every(date2 => date1.getTime() === date2.getTime());\n}\n\nfunction nextClosestDay(date, day) {\n let diff = day - date.getUTCDay();\n date.setUTCDate(date.getUTCDate() + (diff >= 0 ? diff : diff + 7));\n return date;\n}\n\nfunction prevClosestDay(date, day) {\n let diff = day - date.getUTCDay();\n date.setUTCDate(date.getUTCDate() + (diff <= 0 ? diff : diff - 7));\n return date;\n}\n\n/**\n * Check whether given date is string which contains no time part\n */\nfunction noTimePart(date) {\n return typeof date === 'string' && date.length <= 10;\n}\n\n/**\n * Private functions\n */\n\nfunction _fromLocalDate(date) {\n return new Date(Date.UTC(\n date.getFullYear(),\n date.getMonth(),\n date.getDate(),\n date.getHours(),\n date.getMinutes(),\n date.getSeconds()\n ));\n}\n\nfunction _fromISOString(str) {\n const parts = str.match(/\\d+/g);\n return new Date(Date.UTC(\n Number(parts[0]),\n Number(parts[1]) - 1,\n Number(parts[2]),\n Number(parts[3] || 0),\n Number(parts[4] || 0),\n Number(parts[5] || 0)\n ));\n}\n\nfunction _commonChunks(str1, substr1, str2, substr2) {\n let i = 0;\n while (i < str1.length) {\n let res1;\n [i, res1] = _cut(str1, substr1, i);\n if (!res1) {\n break;\n }\n\n let j = 0;\n while (j < str2.length) {\n let res2;\n [j, res2] = _cut(str2, substr2, j);\n if (!res2) {\n break;\n }\n\n if (res1.head === res2.head && res1.tail === res2.tail) {\n return res1;\n }\n }\n }\n\n return null\n}\n\nfunction _cut(str, substr, from) {\n let start = str.indexOf(substr, from);\n if (start >= 0) {\n let end = start + substr.length;\n\n return [end, {\n head: str.substr(0, start),\n tail: str.substr(end)\n }];\n }\n\n return [-1, null];\n}\n\nfunction debounce(fn, handle, queueStore) {\n queueStore.update(queue => queue.set(handle, fn));\n}\n\nfunction flushDebounce(queue) {\n run_all(queue);\n queue.clear();\n}\n\nfunction createElement(tag, className, html, text) {\n let el = document.createElement(tag);\n el.className = className;\n if (html) {\n el.innerHTML = html;\n } else if (text) {\n el.innerText = text;\n }\n return el;\n}\n\nfunction hasYScroll(el) {\n return el.scrollHeight > el.clientHeight;\n}\n\nfunction rect(el) {\n return el.getBoundingClientRect();\n}\n\nfunction ancestor(el, up) {\n while (up--) {\n el = el.parentElement;\n }\n return el;\n}\n\nfunction height(el) {\n return rect(el).height;\n}\n\nlet fnProp = symbol();\nfunction setFn(el, fn) {\n el[fnProp] = fn;\n}\n\nfunction hasFn(el) {\n return !!el[fnProp];\n}\n\nfunction runFn(el, ...args) {\n return el[fnProp](...args);\n}\n\nfunction createView(view, _viewTitle, _currentRange, _activeRange) {\n return {\n type: view,\n title: _viewTitle,\n currentStart: _currentRange.start,\n currentEnd: _currentRange.end,\n activeStart: _activeRange.start,\n activeEnd: _activeRange.end,\n calendar: undefined\n };\n}\n\nfunction toViewWithLocalDates(view) {\n view = assign({}, view);\n view.currentStart = toLocalDate(view.currentStart);\n view.currentEnd = toLocalDate(view.currentEnd);\n view.activeStart = toLocalDate(view.activeStart);\n view.activeEnd = toLocalDate(view.activeEnd);\n\n return view;\n}\n\nconst display = ['background'];\n\nlet eventId = 1;\nfunction createEvents(input) {\n return input.map(event => ({\n id: 'id' in event ? String(event.id) : `{generated-${eventId++}}`,\n resourceIds: Array.isArray(event.resourceIds)\n ? event.resourceIds.map(String)\n : ('resourceId' in event ? [String(event.resourceId)] : []),\n allDay: event.allDay ?? (noTimePart(event.start) && noTimePart(event.end)),\n start: createDate(event.start),\n end: createDate(event.end),\n title: event.title || '',\n titleHTML: event.titleHTML || '',\n editable: event.editable,\n startEditable: event.startEditable,\n durationEditable: event.durationEditable,\n display: display.includes(event.display) ? event.display : 'auto',\n extendedProps: event.extendedProps || {},\n backgroundColor: event.backgroundColor || event.color\n }));\n}\n\nfunction createEventSources(input) {\n return input.map(source => ({\n events: source.events,\n url: (source.url && source.url.trimEnd('&')) || '',\n method: (source.method && source.method.toUpperCase()) || 'GET',\n extraParams: source.extraParams || {}\n }));\n}\n\nfunction createEventChunk(event, start, end) {\n return {\n start: event.start > start ? event.start : start,\n end: event.end < end ? event.end : end,\n event\n };\n}\n\nfunction sortEventChunks(chunks) {\n // Sort by start date\n chunks.sort((a, b) => {\n if (a.start < b.start) {\n return -1;\n }\n if (a.start > b.start) {\n return 1;\n }\n return 0;\n });\n}\n\n/**\n * Prepare event chunks for month view and all-day slot in week view\n */\nfunction prepareEventChunks(chunks, hiddenDays) {\n let longChunks = {};\n\n if (chunks.length) {\n sortEventChunks(chunks);\n\n let prevChunk;\n for (let chunk of chunks) {\n let dates = [];\n let date = setMidnight(cloneDate(chunk.start));\n while (chunk.end > date) {\n if (!hiddenDays.includes(date.getUTCDay())) {\n dates.push(cloneDate(date));\n if (dates.length > 1) {\n let key = date.getTime();\n if (longChunks[key]) {\n longChunks[key].chunks.push(chunk);\n } else {\n longChunks[key] = {\n sorted: false,\n chunks: [chunk]\n };\n }\n }\n }\n addDay(date);\n }\n if (dates.length) {\n chunk.date = dates[0];\n chunk.days = dates.length;\n chunk.dates = dates;\n if (chunk.start < dates[0]) {\n chunk.start = dates[0];\n }\n if (setMidnight(cloneDate(chunk.end)) > dates[dates.length - 1]) {\n chunk.end = dates[dates.length - 1];\n }\n } else {\n chunk.date = setMidnight(cloneDate(chunk.start));\n chunk.days = 1;\n chunk.dates = [chunk.date];\n }\n\n if (prevChunk && datesEqual(prevChunk.date, chunk.date)) {\n chunk.prev = prevChunk;\n }\n prevChunk = chunk;\n }\n }\n\n return longChunks;\n}\n\nfunction repositionEvent(chunk, longChunks, height) {\n chunk.top = 0;\n if (chunk.prev) {\n chunk.top = chunk.prev.bottom + 1;\n }\n chunk.bottom = chunk.top + height;\n let margin = 1;\n let key = chunk.date.getTime();\n if (longChunks[key]) {\n if (!longChunks[key].sorted) {\n longChunks[key].chunks.sort((a, b) => a.top - b.top);\n longChunks[key].sorted = true;\n }\n for (let longChunk of longChunks[key].chunks) {\n if (chunk.top < longChunk.bottom && chunk.bottom > longChunk.top) {\n let offset = longChunk.bottom - chunk.top + 1;\n margin += offset;\n chunk.top += offset;\n chunk.bottom += offset;\n }\n }\n }\n\n return margin;\n}\n\nfunction createEventContent(chunk, displayEventEnd, eventContent, theme, _intlEventTime, _view) {\n let timeText = _intlEventTime.format(chunk.start), content;\n if (displayEventEnd && chunk.event.display !== 'pointer') {\n timeText += ` - ${_intlEventTime.format(chunk.end)}`;\n }\n if (eventContent) {\n content = is_function(eventContent)\n ? eventContent({\n event: toEventWithLocalDates(chunk.event),\n timeText,\n view: toViewWithLocalDates(_view)\n })\n : eventContent;\n } else {\n switch (chunk.event.display) {\n case 'background':\n content = '';\n break;\n case 'pointer':\n content = {\n domNodes: [createElement('div', theme.eventTime, null, timeText)]\n };\n break;\n default:\n content = {\n domNodes: [\n createElement('div', theme.eventTime, null, timeText),\n createElement('div', theme.eventTitle, chunk.event.titleHTML, chunk.event.title)\n ]\n };\n }\n }\n\n return [timeText, content];\n}\n\nfunction toEventWithLocalDates(event) {\n return _cloneEvent(event, toLocalDate);\n}\n\nfunction cloneEvent(event) {\n return _cloneEvent(event, cloneDate);\n}\n\nfunction _cloneEvent(event, dateFn) {\n event = assign({}, event);\n event.start = dateFn(event.start);\n event.end = dateFn(event.end);\n\n return event;\n}\n\n/**\n * Check whether the event intersects with the given date range and resource\n * @param event\n * @param start\n * @param end\n * @param [resource]\n * @param [timeMode] Zero-length events should be allowed (@see https://github.com/vkurko/calendar/issues/50), except in time mode\n * @return boolean\n */\nfunction eventIntersects(event, start, end, resource, timeMode) {\n return (\n event.start < end && event.end > start || !timeMode && datesEqual(event.start, event.end, start)\n ) && (\n resource === undefined || event.resourceIds.includes(resource.id)\n );\n}\n\nlet ignoreProp = symbol();\nfunction ignore(jsEvent) {\n jsEvent[ignoreProp] = true;\n}\n\nfunction maybeIgnore(fn) {\n return jsEvent => {\n if (!jsEvent[ignoreProp]) {\n fn && fn(jsEvent);\n // Make upper listeners ignore the event\n ignore(jsEvent);\n }\n };\n}\n\nfunction writable2(value, parser, start) {\n return {\n ...writable(parser ? parser(value) : value, start),\n parse: parser\n };\n}\n\nfunction derived2(stores, fn, initValue) {\n let storeValue = initValue;\n let hasSubscribers = false;\n let auto = fn.length < 2;\n let fn2 = (_, set) => {\n hasSubscribers = true;\n if (auto) {\n storeValue = fn(_, set);\n set(storeValue);\n } else {\n fn(_, value => {storeValue = value; set(value);});\n }\n return () => {hasSubscribers = false;};\n };\n let store = derived(stores, fn2, storeValue);\n return {\n ...store,\n get: () => hasSubscribers ? storeValue : get(store)\n };\n}\n\nfunction intl(locale, format) {\n return derived([locale, format], ([$locale, $format]) => {\n let intl = is_function($format)\n ? {format: $format}\n : new Intl.DateTimeFormat($locale, $format);\n return {\n format: date => intl.format(toLocalDate(date))\n };\n });\n}\n\nfunction intlRange(locale, format) {\n return derived([locale, format], ([$locale, $format]) => {\n if (is_function($format)) {\n return {format: (start, end) => $format(toLocalDate(start), toLocalDate(end))};\n }\n let intl = new Intl.DateTimeFormat($locale, $format);\n return {\n format: (start, end) => formatRange(toLocalDate(start), toLocalDate(end), intl)\n };\n });\n}\n\nexport { DAY_IN_SECONDS, addDay, addDuration, ancestor, assign, cloneDate, cloneEvent, createDate, createDuration, createElement, createEventChunk, createEventContent, createEventSources, createEvents, createView, datesEqual, debounce, derived2, eventIntersects, flushDebounce, formatRange, hasFn, hasYScroll, height, ignore, intl, intlRange, isObject, maybeIgnore, nextClosestDay, noTimePart, outsideEvent, prepareEventChunks, prevClosestDay, rect, repositionEvent, runFn, setContent, setFn, setMidnight, sortEventChunks, subtractDay, subtractDuration, symbol, toEventWithLocalDates, toISOString, toLocalDate, toViewWithLocalDates, writable2 };\n","import { is_function, noop, identity, tick, SvelteComponent, init, safe_not_equal, empty, insert, destroy_each, detach, component_subscribe, set_store_value, element, text, attr, append, listen, set_data, transition_in, group_outros, check_outros, transition_out, space, create_component, mount_component, destroy_component, construct_svelte_component, set_style, get_current_component } from 'svelte/internal';\nimport { getContext, setContext, beforeUpdate } from 'svelte';\nimport { derived, writable, readable, get } from 'svelte/store';\nimport { assign, setMidnight, createDate, createDuration, createEvents, createEventSources, cloneDate, prevClosestDay, nextClosestDay, DAY_IN_SECONDS, addDuration, subtractDay, derived2, addDay, createView, debounce, toISOString, toLocalDate, writable2, intl, intlRange, subtractDuration, toViewWithLocalDates, flushDebounce, toEventWithLocalDates, hasFn, runFn, ignore } from '@event-calendar/common';\n\nfunction createOptions(plugins) {\n let options = {\n allDayContent: undefined,\n allDaySlot: true,\n buttonText: {\n today: 'today',\n },\n date: new Date(),\n dateClick: undefined,\n datesSet: undefined,\n dayHeaderFormat: {\n weekday: 'short',\n month: 'numeric',\n day: 'numeric'\n },\n displayEventEnd: true,\n duration: {weeks: 1},\n events: [],\n eventBackgroundColor: undefined,\n eventClick: undefined,\n eventColor: undefined,\n eventContent: undefined,\n eventDidMount: undefined,\n eventMouseEnter: undefined,\n eventMouseLeave: undefined,\n eventSources: [],\n eventTimeFormat: {\n hour: 'numeric',\n minute: '2-digit'\n },\n firstDay: 0,\n flexibleSlotTimeLimits: false, // ec option\n headerToolbar: {\n start: 'title',\n center: '',\n end: 'today prev,next'\n },\n height: 'auto',\n hiddenDays: [],\n highlightedDates: [], // ec option\n lazyFetching: true,\n loading: undefined,\n locale: undefined,\n monthMode: false,\n nowIndicator: false,\n selectable: false,\n scrollTime: '06:00:00',\n slotDuration: '00:30:00',\n slotEventOverlap: true,\n slotHeight: 24, // ec option\n slotLabelFormat: {\n hour: 'numeric',\n minute: '2-digit'\n },\n slotMaxTime: '24:00:00',\n slotMinTime: '00:00:00',\n theme: {\n allDay: 'ec-all-day',\n active: 'ec-active',\n bgEvent: 'ec-bg-event',\n bgEvents: 'ec-bg-events',\n body: 'ec-body',\n button: 'ec-button',\n buttonGroup: 'ec-button-group',\n calendar: 'ec',\n compact: 'ec-compact',\n content: 'ec-content',\n day: 'ec-day',\n dayHead: 'ec-day-head',\n days: 'ec-days',\n event: 'ec-event',\n eventBody: 'ec-event-body',\n eventTime: 'ec-event-time',\n eventTitle: 'ec-event-title',\n events: 'ec-events',\n extra: 'ec-extra',\n handle: 'ec-handle',\n header: 'ec-header',\n hiddenScroll: 'ec-hidden-scroll',\n hiddenTimes: 'ec-hidden-times',\n highlight: 'ec-highlight',\n icon: 'ec-icon',\n line: 'ec-line',\n lines: 'ec-lines',\n nowIndicator: 'ec-now-indicator',\n otherMonth: 'ec-other-month',\n sidebar: 'ec-sidebar',\n sidebarTitle: 'ec-sidebar-title',\n today: 'ec-today',\n time: 'ec-time',\n title: 'ec-title',\n toolbar: 'ec-toolbar',\n week: 'ec-week',\n withScroll: 'ec-with-scroll'\n },\n titleFormat: {\n year: 'numeric',\n month: 'short',\n day: 'numeric'\n },\n view: undefined,\n viewDidMount: undefined,\n views: {}\n };\n\n for (let plugin of plugins) {\n if ('createOptions' in plugin) {\n plugin.createOptions(options);\n }\n }\n\n return options;\n}\n\nfunction createParsers(options, plugins) {\n let parsers = {\n buttonText: input => is_function(input) ? input(options.buttonText) : input,\n date: date => setMidnight(createDate(date)),\n duration: createDuration,\n events: createEvents,\n eventSources: createEventSources,\n hiddenDays: days => [...new Set(days)],\n highlightedDates: dates => dates.map(createDate),\n scrollTime: createDuration,\n slotDuration: createDuration,\n slotMaxTime: createDuration,\n slotMinTime: createDuration,\n theme: input => is_function(input) ? input(options.theme) : input\n };\n\n for (let plugin of plugins) {\n if ('createParsers' in plugin) {\n plugin.createParsers(parsers, options);\n }\n }\n\n return parsers;\n}\n\nlet prev;\nfunction diff(options) {\n let diff = [];\n if (prev) {\n for (let name of Object.keys(options)) {\n if (options[name] !== prev[name]) {\n diff.push([name, options[name]]);\n }\n }\n }\n prev = assign({}, options);\n\n return diff;\n}\n\nfunction activeRange(state) {\n return derived(\n [state._currentRange, state.firstDay, state.monthMode, state.slotMinTime, state.slotMaxTime],\n ([$_currentRange, $firstDay, $monthMode, $slotMinTime, $slotMaxTime]) => {\n let start = cloneDate($_currentRange.start);\n let end = cloneDate($_currentRange.end);\n\n if ($monthMode) {\n // First day of week\n prevClosestDay(start, $firstDay);\n nextClosestDay(end, $firstDay);\n } else if ($slotMaxTime.days || $slotMaxTime.seconds > DAY_IN_SECONDS) {\n addDuration(subtractDay(end), $slotMaxTime);\n let start2 = subtractDay(cloneDate(end));\n if (start2 < start) {\n start = start2;\n }\n }\n\n return {start, end};\n }\n );\n}\n\nfunction currentRange(state) {\n return derived(\n [state.date, state.duration, state.monthMode, state.firstDay],\n ([$date, $duration, $monthMode, $firstDay]) => {\n let start = cloneDate($date), end;\n if ($monthMode) {\n start.setUTCDate(1);\n } else if ($duration.inWeeks) {\n // First day of week\n prevClosestDay(start, $firstDay);\n }\n end = addDuration(cloneDate(start), $duration);\n\n return {start, end};\n }\n );\n}\n\nfunction viewDates(state) {\n return derived2([state._activeRange, state.hiddenDays], ([$_activeRange, $hiddenDays]) => {\n let dates = [];\n let date = setMidnight(cloneDate($_activeRange.start));\n let end = setMidnight(cloneDate($_activeRange.end));\n while (date < end) {\n if (!$hiddenDays.includes(date.getUTCDay())) {\n dates.push(cloneDate(date));\n }\n addDay(date);\n }\n if (!dates.length && $hiddenDays.length && $hiddenDays.length < 7) {\n // Try to move the date\n state.date.update(date => {\n while ($hiddenDays.includes(date.getUTCDay())) {\n addDay(date);\n }\n return date;\n });\n dates = state._viewDates.get();\n }\n\n return dates;\n });\n}\n\nfunction viewTitle(state) {\n return derived(\n [state.date, state._activeRange, state._titleIntlRange, state.monthMode],\n ([$date, $_activeRange, $_titleIntlRange, $monthMode]) => {\n return $monthMode\n ? $_titleIntlRange.format($date, $date)\n : $_titleIntlRange.format($_activeRange.start, subtractDay(cloneDate($_activeRange.end)));\n }\n );\n}\n\nfunction view(state) {\n return derived2([state.view, state._viewTitle, state._currentRange, state._activeRange], args => createView(...args));\n}\n\nfunction events(state) {\n let _events = writable([]);\n let abortController;\n let fetching = 0;\n let debounceHandle = {};\n derived(\n [state.events, state.eventSources, state._activeRange, state._fetchedRange, state.lazyFetching, state.loading],\n (values, set) => debounce(() => {\n let [$events, $eventSources, $_activeRange, $_fetchedRange, $lazyFetching, $loading] = values;\n if (!$eventSources.length) {\n set($events);\n return;\n }\n // Do not fetch if new range is within the previous one\n if (!$_fetchedRange.start || $_fetchedRange.start > $_activeRange.start || $_fetchedRange.end < $_activeRange.end || !$lazyFetching) {\n if (abortController) {\n // Abort previous request\n abortController.abort();\n }\n // Create new abort controller\n abortController = new AbortController();\n // Call loading hook\n if (is_function($loading) && !fetching) {\n $loading(true);\n }\n let stopLoading = () => {\n if (--fetching === 0 && is_function($loading)) {\n $loading(false);\n }\n };\n let events = [];\n // Prepare handlers\n let failure = e => stopLoading();\n let success = data => {\n events = events.concat(createEvents(data));\n set(events);\n stopLoading();\n };\n // Prepare other stuff\n let startStr = toISOString($_activeRange.start);\n let endStr = toISOString($_activeRange.end);\n // Loop over event sources\n for (let source of $eventSources) {\n if (is_function(source.events)) {\n // Events as a function\n let result = source.events({\n start: toLocalDate($_activeRange.start),\n end: toLocalDate($_activeRange.end),\n startStr,\n endStr\n }, success, failure);\n if (result !== undefined) {\n Promise.resolve(result).then(success, failure);\n }\n } else {\n // Events as a JSON feed\n // Prepare params\n let params = is_function(source.extraParams) ? source.extraParams() : assign({}, source.extraParams);\n params.start = startStr;\n params.end = endStr;\n params = new URLSearchParams(params);\n // Prepare fetch\n let url = source.url, headers = {}, body;\n if (['GET', 'HEAD'].includes(source.method)) {\n url += (url.includes('?') ? '&' : '?') + params;\n } else {\n headers['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';\n body = String(params); // Safari 10.1 doesn't convert to string automatically\n }\n // Do the fetch\n fetch(url, {method: source.method, headers, body, signal: abortController.signal, credentials: 'same-origin'})\n .then(response => response.json())\n .then(success)\n .catch(failure);\n }\n ++fetching;\n }\n // Save current range for future requests\n $_fetchedRange.start = $_activeRange.start;\n $_fetchedRange.end = $_activeRange.end;\n }\n }, debounceHandle, state._queue),\n []\n ).subscribe(_events.set);\n\n return _events;\n}\n\nfunction now() {\n return readable(createDate(), set => {\n let interval = setInterval(() => {\n set(createDate());\n }, 1000);\n\n return () => clearInterval(interval);\n });\n}\n\nfunction today(state) {\n return derived(state._now, $_now => setMidnight(cloneDate($_now)));\n}\n\nclass State {\n constructor(plugins, input) {\n plugins = plugins || [];\n\n // Create options\n let options = createOptions(plugins);\n let parsers = createParsers(options, plugins);\n\n // Create stores for options\n for (let [option, value] of Object.entries(options)) {\n this[option] = writable2(value, parsers[option]);\n }\n\n // Private stores\n this._queue = writable(new Map()); // debounce queue\n this._auxiliary = writable([]); // auxiliary components\n this._currentRange = currentRange(this);\n this._activeRange = activeRange(this);\n this._fetchedRange = writable({start: undefined, end: undefined});\n this._events = events(this);\n this._now = now();\n this._today = today(this);\n this._ignoreClick = writable(false);\n this._intlEventTime = intl(this.locale, this.eventTimeFormat);\n this._intlSlotLabel = intl(this.locale, this.slotLabelFormat);\n this._intlDayHeader = intl(this.locale, this.dayHeaderFormat);\n this._titleIntlRange = intlRange(this.locale, this.titleFormat);\n this._scrollable = writable(false);\n this._viewTitle = viewTitle(this);\n this._viewDates = viewDates(this);\n this._view = view(this);\n this._viewComponent = writable(undefined);\n this._viewClass = writable(undefined);\n // Resources\n this._resBgColor = writable(noop);\n // Interaction\n this._interaction = writable({});\n this._iEvents = writable([null, null]); // interaction events: [drag/resize, pointer]\n this._draggable = writable(noop);\n this._resizable = writable(noop);\n this._classes = writable(identity);\n this._iClass = writable(undefined);\n this._scroll = writable(undefined);\n\n // Let plugins create their private stores\n for (let plugin of plugins) {\n if ('createStores' in plugin) {\n plugin.createStores(this);\n }\n }\n\n if (input.view) {\n // Set initial view based on input\n this.view.set(input.view);\n }\n\n // Set options for each view\n let commonOpts = assign({}, options, input);\n parseOpts(commonOpts, this);\n let views = new Set([...Object.keys(options.views), ...Object.keys(input.views || {})]);\n for (let view of views) {\n let viewOpts = assign({}, options.views[view] || {}, input.views && input.views[view] || {});\n parseOpts(viewOpts, this);\n let opts = assign({}, commonOpts, viewOpts);\n // Change view component when view changes\n this.view.subscribe(newView => {\n if (newView === view) {\n this._viewComponent.set(opts.component);\n if (is_function(opts.viewDidMount)) {\n tick().then(() => opts.viewDidMount(this._view.get()));\n }\n }\n });\n // Process options\n for (let key of Object.keys(opts)) {\n if (this.hasOwnProperty(key) && key[0] !== '_') {\n let {set, _set, ...rest} = this[key];\n\n if (!_set) {\n // Original set\n _set = set;\n }\n\n this[key] = {\n // Set value in all views\n set: value => {opts[key] = value; set(value);},\n _set,\n ...rest\n };\n\n // Change value when view changes\n this.view.subscribe(newView => {\n if (newView === view) {\n _set(opts[key]);\n }\n });\n }\n }\n }\n }\n}\n\nfunction parseOpts(opts, state) {\n for (let key of Object.keys(opts)) {\n if (state.hasOwnProperty(key) && key[0] !== '_') {\n if (state[key].parse) {\n opts[key] = state[key].parse(opts[key]);\n }\n }\n }\n}\n\n/* packages/core/src/Buttons.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context$2(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[23] = list[i];\n\treturn child_ctx;\n}\n\n// (38:4) {:else}\nfunction create_else_block$1(ctx) {\n\tlet button;\n\tlet t_value = /*$buttonText*/ ctx[5][/*button*/ ctx[23]] + \"\";\n\tlet t;\n\tlet button_class_value;\n\tlet mounted;\n\tlet dispose;\n\n\tfunction click_handler_1() {\n\t\treturn /*click_handler_1*/ ctx[20](/*button*/ ctx[23]);\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tbutton = element(\"button\");\n\t\t\tt = text(t_value);\n\n\t\t\tattr(button, \"class\", button_class_value = \"\" + (/*$theme*/ ctx[3].button + (/*$view*/ ctx[6] === /*button*/ ctx[23]\n\t\t\t? ' ' + /*$theme*/ ctx[3].active\n\t\t\t: '') + \" ec-\" + /*button*/ ctx[23]));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, button, anchor);\n\t\t\tappend(button, t);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = listen(button, \"click\", click_handler_1);\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\t\t\tif (dirty & /*$buttonText, buttons*/ 33 && t_value !== (t_value = /*$buttonText*/ ctx[5][/*button*/ ctx[23]] + \"\")) set_data(t, t_value);\n\n\t\t\tif (dirty & /*$theme, $view, buttons*/ 73 && button_class_value !== (button_class_value = \"\" + (/*$theme*/ ctx[3].button + (/*$view*/ ctx[6] === /*button*/ ctx[23]\n\t\t\t? ' ' + /*$theme*/ ctx[3].active\n\t\t\t: '') + \" ec-\" + /*button*/ ctx[23]))) {\n\t\t\t\tattr(button, \"class\", button_class_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(button);\n\t\t\tmounted = false;\n\t\t\tdispose();\n\t\t}\n\t};\n}\n\n// (36:33) \nfunction create_if_block_4(ctx) {\n\tlet button;\n\tlet t_value = /*$buttonText*/ ctx[5][/*button*/ ctx[23]] + \"\";\n\tlet t;\n\tlet button_class_value;\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tc() {\n\t\t\tbutton = element(\"button\");\n\t\t\tt = text(t_value);\n\t\t\tattr(button, \"class\", button_class_value = \"\" + (/*$theme*/ ctx[3].button + \" ec-\" + /*button*/ ctx[23]));\n\t\t\tbutton.disabled = /*isToday*/ ctx[1];\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, button, anchor);\n\t\t\tappend(button, t);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = listen(button, \"click\", /*click_handler*/ ctx[19]);\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*$buttonText, buttons*/ 33 && t_value !== (t_value = /*$buttonText*/ ctx[5][/*button*/ ctx[23]] + \"\")) set_data(t, t_value);\n\n\t\t\tif (dirty & /*$theme, buttons*/ 9 && button_class_value !== (button_class_value = \"\" + (/*$theme*/ ctx[3].button + \" ec-\" + /*button*/ ctx[23]))) {\n\t\t\t\tattr(button, \"class\", button_class_value);\n\t\t\t}\n\n\t\t\tif (dirty & /*isToday*/ 2) {\n\t\t\t\tbutton.disabled = /*isToday*/ ctx[1];\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(button);\n\t\t\tmounted = false;\n\t\t\tdispose();\n\t\t}\n\t};\n}\n\n// (34:32) \nfunction create_if_block_3(ctx) {\n\tlet button;\n\tlet i;\n\tlet i_class_value;\n\tlet button_class_value;\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tc() {\n\t\t\tbutton = element(\"button\");\n\t\t\ti = element(\"i\");\n\t\t\tattr(i, \"class\", i_class_value = \"\" + (/*$theme*/ ctx[3].icon + \" ec-\" + /*button*/ ctx[23]));\n\t\t\tattr(button, \"class\", button_class_value = \"\" + (/*$theme*/ ctx[3].button + \" ec-\" + /*button*/ ctx[23]));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, button, anchor);\n\t\t\tappend(button, i);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = listen(button, \"click\", /*next*/ ctx[17]);\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*$theme, buttons*/ 9 && i_class_value !== (i_class_value = \"\" + (/*$theme*/ ctx[3].icon + \" ec-\" + /*button*/ ctx[23]))) {\n\t\t\t\tattr(i, \"class\", i_class_value);\n\t\t\t}\n\n\t\t\tif (dirty & /*$theme, buttons*/ 9 && button_class_value !== (button_class_value = \"\" + (/*$theme*/ ctx[3].button + \" ec-\" + /*button*/ ctx[23]))) {\n\t\t\t\tattr(button, \"class\", button_class_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(button);\n\t\t\tmounted = false;\n\t\t\tdispose();\n\t\t}\n\t};\n}\n\n// (32:31) \nfunction create_if_block_2(ctx) {\n\tlet button;\n\tlet i;\n\tlet i_class_value;\n\tlet button_class_value;\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tc() {\n\t\t\tbutton = element(\"button\");\n\t\t\ti = element(\"i\");\n\t\t\tattr(i, \"class\", i_class_value = \"\" + (/*$theme*/ ctx[3].icon + \" ec-\" + /*button*/ ctx[23]));\n\t\t\tattr(button, \"class\", button_class_value = \"\" + (/*$theme*/ ctx[3].button + \" ec-\" + /*button*/ ctx[23]));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, button, anchor);\n\t\t\tappend(button, i);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = listen(button, \"click\", /*prev*/ ctx[16]);\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*$theme, buttons*/ 9 && i_class_value !== (i_class_value = \"\" + (/*$theme*/ ctx[3].icon + \" ec-\" + /*button*/ ctx[23]))) {\n\t\t\t\tattr(i, \"class\", i_class_value);\n\t\t\t}\n\n\t\t\tif (dirty & /*$theme, buttons*/ 9 && button_class_value !== (button_class_value = \"\" + (/*$theme*/ ctx[3].button + \" ec-\" + /*button*/ ctx[23]))) {\n\t\t\t\tattr(button, \"class\", button_class_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(button);\n\t\t\tmounted = false;\n\t\t\tdispose();\n\t\t}\n\t};\n}\n\n// (30:32) \nfunction create_if_block_1(ctx) {\n\tlet h2;\n\tlet t;\n\tlet h2_class_value;\n\n\treturn {\n\t\tc() {\n\t\t\th2 = element(\"h2\");\n\t\t\tt = text(/*$_viewTitle*/ ctx[4]);\n\t\t\tattr(h2, \"class\", h2_class_value = /*$theme*/ ctx[3].title);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, h2, anchor);\n\t\t\tappend(h2, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*$_viewTitle*/ 16) set_data(t, /*$_viewTitle*/ ctx[4]);\n\n\t\t\tif (dirty & /*$theme*/ 8 && h2_class_value !== (h2_class_value = /*$theme*/ ctx[3].title)) {\n\t\t\t\tattr(h2, \"class\", h2_class_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(h2);\n\t\t}\n\t};\n}\n\n// (29:4) {#if button == ''}\nfunction create_if_block$1(ctx) {\n\treturn { c: noop, m: noop, p: noop, d: noop };\n}\n\n// (28:0) {#each buttons as button}\nfunction create_each_block$2(ctx) {\n\tlet if_block_anchor;\n\n\tfunction select_block_type(ctx, dirty) {\n\t\tif (/*button*/ ctx[23] == '') return create_if_block$1;\n\t\tif (/*button*/ ctx[23] == 'title') return create_if_block_1;\n\t\tif (/*button*/ ctx[23] == 'prev') return create_if_block_2;\n\t\tif (/*button*/ ctx[23] === 'next') return create_if_block_3;\n\t\tif (/*button*/ ctx[23] === 'today') return create_if_block_4;\n\t\treturn create_else_block$1;\n\t}\n\n\tlet current_block_type = select_block_type(ctx);\n\tlet if_block = current_block_type(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif_block.c();\n\t\t\tif_block_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif_block.m(target, anchor);\n\t\t\tinsert(target, if_block_anchor, anchor);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {\n\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t} else {\n\t\t\t\tif_block.d(1);\n\t\t\t\tif_block = current_block_type(ctx);\n\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.c();\n\t\t\t\t\tif_block.m(if_block_anchor.parentNode, if_block_anchor);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif_block.d(detaching);\n\t\t\tif (detaching) detach(if_block_anchor);\n\t\t}\n\t};\n}\n\nfunction create_fragment$3(ctx) {\n\tlet each_1_anchor;\n\tlet each_value = /*buttons*/ ctx[0];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\teach_blocks[i] = create_each_block$2(get_each_context$2(ctx, each_value, i));\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\teach_1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, each_1_anchor, anchor);\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (dirty & /*buttons, $theme, $_viewTitle, prev, next, isToday, $date, cloneDate, today, $buttonText, $view*/ 229503) {\n\t\t\t\teach_value = /*buttons*/ ctx[0];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context$2(ctx, each_value, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block$2(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\teach_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (; i < each_blocks.length; i += 1) {\n\t\t\t\t\teach_blocks[i].d(1);\n\t\t\t\t}\n\n\t\t\t\teach_blocks.length = each_value.length;\n\t\t\t}\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t\tif (detaching) detach(each_1_anchor);\n\t\t}\n\t};\n}\n\nfunction instance$3($$self, $$props, $$invalidate) {\n\tlet $duration;\n\tlet $date;\n\tlet $hiddenDays;\n\tlet $_currentRange;\n\tlet $theme;\n\tlet $_viewTitle;\n\tlet $buttonText;\n\tlet $view;\n\tlet { buttons } = $$props;\n\tlet { _currentRange, _viewTitle, buttonText, date, duration, hiddenDays, theme, view } = getContext('state');\n\tcomponent_subscribe($$self, _currentRange, value => $$invalidate(18, $_currentRange = value));\n\tcomponent_subscribe($$self, _viewTitle, value => $$invalidate(4, $_viewTitle = value));\n\tcomponent_subscribe($$self, buttonText, value => $$invalidate(5, $buttonText = value));\n\tcomponent_subscribe($$self, date, value => $$invalidate(2, $date = value));\n\tcomponent_subscribe($$self, duration, value => $$invalidate(21, $duration = value));\n\tcomponent_subscribe($$self, hiddenDays, value => $$invalidate(22, $hiddenDays = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(3, $theme = value));\n\tcomponent_subscribe($$self, view, value => $$invalidate(6, $view = value));\n\tlet today = setMidnight(createDate()), isToday;\n\n\tfunction prev() {\n\t\tlet d = subtractDuration($date, $duration);\n\n\t\tif ($hiddenDays.length && $hiddenDays.length < 7) {\n\t\t\twhile ($hiddenDays.includes(d.getUTCDay())) {\n\t\t\t\tsubtractDay(d);\n\t\t\t}\n\t\t}\n\n\t\tset_store_value(date, $date = d, $date);\n\t}\n\n\tfunction next() {\n\t\tset_store_value(date, $date = addDuration($date, $duration), $date);\n\t}\n\n\tconst click_handler = () => set_store_value(date, $date = cloneDate(today), $date);\n\tconst click_handler_1 = button => set_store_value(view, $view = button, $view);\n\n\t$$self.$$set = $$props => {\n\t\tif ('buttons' in $$props) $$invalidate(0, buttons = $$props.buttons);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*$_currentRange*/ 262144) {\n\t\t\t$$invalidate(1, isToday = today >= $_currentRange.start && today < $_currentRange.end || null);\n\t\t}\n\t};\n\n\treturn [\n\t\tbuttons,\n\t\tisToday,\n\t\t$date,\n\t\t$theme,\n\t\t$_viewTitle,\n\t\t$buttonText,\n\t\t$view,\n\t\t_currentRange,\n\t\t_viewTitle,\n\t\tbuttonText,\n\t\tdate,\n\t\tduration,\n\t\thiddenDays,\n\t\ttheme,\n\t\tview,\n\t\ttoday,\n\t\tprev,\n\t\tnext,\n\t\t$_currentRange,\n\t\tclick_handler,\n\t\tclick_handler_1\n\t];\n}\n\nclass Buttons extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$3, create_fragment$3, safe_not_equal, { buttons: 0 });\n\t}\n}\n\n/* packages/core/src/Toolbar.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context$1(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[5] = list[i];\n\treturn child_ctx;\n}\n\nfunction get_each_context_1(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[8] = list[i];\n\treturn child_ctx;\n}\n\n// (28:16) {:else}\nfunction create_else_block(ctx) {\n\tlet buttons;\n\tlet current;\n\tbuttons = new Buttons({ props: { buttons: /*buttons*/ ctx[8] } });\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(buttons.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(buttons, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst buttons_changes = {};\n\t\t\tif (dirty & /*sections*/ 1) buttons_changes.buttons = /*buttons*/ ctx[8];\n\t\t\tbuttons.$set(buttons_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(buttons.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(buttons.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(buttons, detaching);\n\t\t}\n\t};\n}\n\n// (24:16) {#if buttons.length > 1}\nfunction create_if_block(ctx) {\n\tlet div;\n\tlet buttons;\n\tlet div_class_value;\n\tlet current;\n\tbuttons = new Buttons({ props: { buttons: /*buttons*/ ctx[8] } });\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcreate_component(buttons.$$.fragment);\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[1].buttonGroup);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tmount_component(buttons, div, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst buttons_changes = {};\n\t\t\tif (dirty & /*sections*/ 1) buttons_changes.buttons = /*buttons*/ ctx[8];\n\t\t\tbuttons.$set(buttons_changes);\n\n\t\t\tif (!current || dirty & /*$theme*/ 2 && div_class_value !== (div_class_value = /*$theme*/ ctx[1].buttonGroup)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(buttons.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(buttons.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_component(buttons);\n\t\t}\n\t};\n}\n\n// (23:12) {#each sections[key] as buttons}\nfunction create_each_block_1(ctx) {\n\tlet current_block_type_index;\n\tlet if_block;\n\tlet if_block_anchor;\n\tlet current;\n\tconst if_block_creators = [create_if_block, create_else_block];\n\tconst if_blocks = [];\n\n\tfunction select_block_type(ctx, dirty) {\n\t\tif (/*buttons*/ ctx[8].length > 1) return 0;\n\t\treturn 1;\n\t}\n\n\tcurrent_block_type_index = select_block_type(ctx);\n\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif_block.c();\n\t\t\tif_block_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif_blocks[current_block_type_index].m(target, anchor);\n\t\t\tinsert(target, if_block_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tlet previous_block_index = current_block_type_index;\n\t\t\tcurrent_block_type_index = select_block_type(ctx);\n\n\t\t\tif (current_block_type_index === previous_block_index) {\n\t\t\t\tif_blocks[current_block_type_index].p(ctx, dirty);\n\t\t\t} else {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_blocks[previous_block_index], 1, 1, () => {\n\t\t\t\t\tif_blocks[previous_block_index] = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t\tif_block = if_blocks[current_block_type_index];\n\n\t\t\t\tif (!if_block) {\n\t\t\t\t\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t} else {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t}\n\n\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\tif_block.m(if_block_anchor.parentNode, if_block_anchor);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif_blocks[current_block_type_index].d(detaching);\n\t\t\tif (detaching) detach(if_block_anchor);\n\t\t}\n\t};\n}\n\n// (21:4) {#each Object.keys(sections) as key}\nfunction create_each_block$1(ctx) {\n\tlet div;\n\tlet t;\n\tlet current;\n\tlet each_value_1 = /*sections*/ ctx[0][/*key*/ ctx[5]];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value_1.length; i += 1) {\n\t\teach_blocks[i] = create_each_block_1(get_each_context_1(ctx, each_value_1, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tt = space();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(div, null);\n\t\t\t}\n\n\t\t\tappend(div, t);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*$theme, sections, Object*/ 3) {\n\t\t\t\teach_value_1 = /*sections*/ ctx[0][/*key*/ ctx[5]];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value_1.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context_1(ctx, each_value_1, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block_1(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(div, t);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value_1.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value_1.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t}\n\t};\n}\n\nfunction create_fragment$2(ctx) {\n\tlet div;\n\tlet div_class_value;\n\tlet current;\n\tlet each_value = Object.keys(/*sections*/ ctx[0]);\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\teach_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[1].toolbar);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(div, null);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (dirty & /*sections, Object, $theme*/ 3) {\n\t\t\t\teach_value = Object.keys(/*sections*/ ctx[0]);\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context$1(ctx, each_value, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block$1(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(div, null);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*$theme*/ 2 && div_class_value !== (div_class_value = /*$theme*/ ctx[1].toolbar)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t}\n\t};\n}\n\nfunction instance$2($$self, $$props, $$invalidate) {\n\tlet $headerToolbar;\n\tlet $theme;\n\tlet { headerToolbar, theme } = getContext('state');\n\tcomponent_subscribe($$self, headerToolbar, value => $$invalidate(4, $headerToolbar = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(1, $theme = value));\n\tlet sections = { start: [], center: [], end: [] };\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*sections, $headerToolbar*/ 17) {\n\t\t\t{\n\t\t\t\tfor (let key of Object.keys(sections)) {\n\t\t\t\t\t$$invalidate(0, sections[key] = $headerToolbar[key].split(' ').map(group => group.split(',')), sections);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [sections, $theme, headerToolbar, theme, $headerToolbar];\n}\n\nclass Toolbar extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$2, create_fragment$2, safe_not_equal, {});\n\t}\n}\n\n/* packages/core/src/Auxiliary.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[11] = list[i];\n\treturn child_ctx;\n}\n\n// (25:0) {#each $_auxiliary as component}\nfunction create_each_block(ctx) {\n\tlet switch_instance;\n\tlet switch_instance_anchor;\n\tlet current;\n\tvar switch_value = /*component*/ ctx[11];\n\n\tfunction switch_props(ctx) {\n\t\treturn {};\n\t}\n\n\tif (switch_value) {\n\t\tswitch_instance = construct_svelte_component(switch_value, switch_props());\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tif (switch_instance) create_component(switch_instance.$$.fragment);\n\t\t\tswitch_instance_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (switch_instance) mount_component(switch_instance, target, anchor);\n\t\t\tinsert(target, switch_instance_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (switch_value !== (switch_value = /*component*/ ctx[11])) {\n\t\t\t\tif (switch_instance) {\n\t\t\t\t\tgroup_outros();\n\t\t\t\t\tconst old_component = switch_instance;\n\n\t\t\t\t\ttransition_out(old_component.$$.fragment, 1, 0, () => {\n\t\t\t\t\t\tdestroy_component(old_component, 1);\n\t\t\t\t\t});\n\n\t\t\t\t\tcheck_outros();\n\t\t\t\t}\n\n\t\t\t\tif (switch_value) {\n\t\t\t\t\tswitch_instance = construct_svelte_component(switch_value, switch_props());\n\t\t\t\t\tcreate_component(switch_instance.$$.fragment);\n\t\t\t\t\ttransition_in(switch_instance.$$.fragment, 1);\n\t\t\t\t\tmount_component(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor);\n\t\t\t\t} else {\n\t\t\t\t\tswitch_instance = null;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\tif (switch_instance) transition_in(switch_instance.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\tif (switch_instance) transition_out(switch_instance.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(switch_instance_anchor);\n\t\t\tif (switch_instance) destroy_component(switch_instance, detaching);\n\t\t}\n\t};\n}\n\nfunction create_fragment$1(ctx) {\n\tlet each_1_anchor;\n\tlet current;\n\tlet each_value = /*$_auxiliary*/ ctx[0];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\teach_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\teach_1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, each_1_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (dirty & /*$_auxiliary*/ 1) {\n\t\t\t\teach_value = /*$_auxiliary*/ ctx[0];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context(ctx, each_value, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t\tif (detaching) detach(each_1_anchor);\n\t\t}\n\t};\n}\n\nfunction instance$1($$self, $$props, $$invalidate) {\n\tlet $_view;\n\tlet $datesSet;\n\tlet $_activeRange;\n\tlet $_auxiliary;\n\tlet { datesSet, _auxiliary, _activeRange, _queue, _view } = getContext('state');\n\tcomponent_subscribe($$self, datesSet, value => $$invalidate(7, $datesSet = value));\n\tcomponent_subscribe($$self, _auxiliary, value => $$invalidate(0, $_auxiliary = value));\n\tcomponent_subscribe($$self, _activeRange, value => $$invalidate(5, $_activeRange = value));\n\tcomponent_subscribe($$self, _view, value => $$invalidate(6, $_view = value));\n\tlet debounceHandle = {};\n\n\tfunction runDatesSet(_activeRange) {\n\t\tif (is_function($datesSet)) {\n\t\t\tdebounce(\n\t\t\t\t() => $datesSet({\n\t\t\t\t\tstart: toLocalDate(_activeRange.start),\n\t\t\t\t\tend: toLocalDate(_activeRange.end),\n\t\t\t\t\tstartStr: toISOString(_activeRange.start),\n\t\t\t\t\tendStr: toISOString(_activeRange.end),\n\t\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t\t}),\n\t\t\t\tdebounceHandle,\n\t\t\t\t_queue\n\t\t\t);\n\t\t}\n\t}\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*$_activeRange*/ 32) {\n\t\t\t// Set up datesSet callback\n\t\t\trunDatesSet($_activeRange);\n\t\t}\n\t};\n\n\treturn [$_auxiliary, datesSet, _auxiliary, _activeRange, _view, $_activeRange];\n}\n\nclass Auxiliary extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$1, create_fragment$1, safe_not_equal, {});\n\t}\n}\n\n/* packages/core/src/Calendar.svelte generated by Svelte v3.55.1 */\n\nfunction create_fragment(ctx) {\n\tlet div;\n\tlet toolbar;\n\tlet t0;\n\tlet switch_instance;\n\tlet div_class_value;\n\tlet t1;\n\tlet auxiliary;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\ttoolbar = new Toolbar({});\n\tvar switch_value = /*$_viewComponent*/ ctx[4];\n\n\tfunction switch_props(ctx) {\n\t\treturn {};\n\t}\n\n\tif (switch_value) {\n\t\tswitch_instance = construct_svelte_component(switch_value, switch_props());\n\t}\n\n\tauxiliary = new Auxiliary({});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcreate_component(toolbar.$$.fragment);\n\t\t\tt0 = space();\n\t\t\tif (switch_instance) create_component(switch_instance.$$.fragment);\n\t\t\tt1 = space();\n\t\t\tcreate_component(auxiliary.$$.fragment);\n\n\t\t\tattr(div, \"class\", div_class_value = \"\" + (/*$theme*/ ctx[0].calendar + (/*$_viewClass*/ ctx[1]\n\t\t\t? ' ' + /*$theme*/ ctx[0][/*$_viewClass*/ ctx[1]]\n\t\t\t: '') + (/*$_iClass*/ ctx[2]\n\t\t\t? ' ' + /*$theme*/ ctx[0][/*$_iClass*/ ctx[2]]\n\t\t\t: '')));\n\n\t\t\tset_style(div, \"height\", /*$height*/ ctx[3]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tmount_component(toolbar, div, null);\n\t\t\tappend(div, t0);\n\t\t\tif (switch_instance) mount_component(switch_instance, div, null);\n\t\t\tinsert(target, t1, anchor);\n\t\t\tmount_component(auxiliary, target, anchor);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = listen(window, \"click\", /*handleClick*/ ctx[16], true);\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (switch_value !== (switch_value = /*$_viewComponent*/ ctx[4])) {\n\t\t\t\tif (switch_instance) {\n\t\t\t\t\tgroup_outros();\n\t\t\t\t\tconst old_component = switch_instance;\n\n\t\t\t\t\ttransition_out(old_component.$$.fragment, 1, 0, () => {\n\t\t\t\t\t\tdestroy_component(old_component, 1);\n\t\t\t\t\t});\n\n\t\t\t\t\tcheck_outros();\n\t\t\t\t}\n\n\t\t\t\tif (switch_value) {\n\t\t\t\t\tswitch_instance = construct_svelte_component(switch_value, switch_props());\n\t\t\t\t\tcreate_component(switch_instance.$$.fragment);\n\t\t\t\t\ttransition_in(switch_instance.$$.fragment, 1);\n\t\t\t\t\tmount_component(switch_instance, div, null);\n\t\t\t\t} else {\n\t\t\t\t\tswitch_instance = null;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme, $_viewClass, $_iClass*/ 7 && div_class_value !== (div_class_value = \"\" + (/*$theme*/ ctx[0].calendar + (/*$_viewClass*/ ctx[1]\n\t\t\t? ' ' + /*$theme*/ ctx[0][/*$_viewClass*/ ctx[1]]\n\t\t\t: '') + (/*$_iClass*/ ctx[2]\n\t\t\t? ' ' + /*$theme*/ ctx[0][/*$_iClass*/ ctx[2]]\n\t\t\t: '')))) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$height*/ 8) {\n\t\t\t\tset_style(div, \"height\", /*$height*/ ctx[3]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(toolbar.$$.fragment, local);\n\t\t\tif (switch_instance) transition_in(switch_instance.$$.fragment, local);\n\t\t\ttransition_in(auxiliary.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(toolbar.$$.fragment, local);\n\t\t\tif (switch_instance) transition_out(switch_instance.$$.fragment, local);\n\t\t\ttransition_out(auxiliary.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_component(toolbar);\n\t\t\tif (switch_instance) destroy_component(switch_instance);\n\t\t\tif (detaching) detach(t1);\n\t\t\tdestroy_component(auxiliary, detaching);\n\t\t\tmounted = false;\n\t\t\tdispose();\n\t\t}\n\t};\n}\n\nfunction instance($$self, $$props, $$invalidate) {\n\tlet $_queue;\n\tlet $_ignoreClick;\n\tlet $events;\n\tlet $_events;\n\tlet $eventSources;\n\tlet $_interaction;\n\tlet $theme;\n\tlet $_viewClass;\n\tlet $_iClass;\n\tlet $height;\n\tlet $_viewComponent;\n\tlet { plugins = [] } = $$props;\n\tlet { options = {} } = $$props;\n\tlet component = get_current_component();\n\tlet state = new State(plugins, options);\n\tsetContext('state', state);\n\tlet { _viewComponent, _viewClass, _ignoreClick, _interaction, _iClass, _events, _queue, events, eventSources, height, theme } = state;\n\tcomponent_subscribe($$self, _viewComponent, value => $$invalidate(4, $_viewComponent = value));\n\tcomponent_subscribe($$self, _viewClass, value => $$invalidate(1, $_viewClass = value));\n\tcomponent_subscribe($$self, _ignoreClick, value => $$invalidate(32, $_ignoreClick = value));\n\tcomponent_subscribe($$self, _interaction, value => $$invalidate(36, $_interaction = value));\n\tcomponent_subscribe($$self, _iClass, value => $$invalidate(2, $_iClass = value));\n\tcomponent_subscribe($$self, _events, value => $$invalidate(34, $_events = value));\n\tcomponent_subscribe($$self, _queue, value => $$invalidate(31, $_queue = value));\n\tcomponent_subscribe($$self, events, value => $$invalidate(33, $events = value));\n\tcomponent_subscribe($$self, eventSources, value => $$invalidate(35, $eventSources = value));\n\tcomponent_subscribe($$self, height, value => $$invalidate(3, $height = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(0, $theme = value));\n\n\tfunction setOption(name, value) {\n\t\tif (state.hasOwnProperty(name)) {\n\t\t\tif (state[name].parse) {\n\t\t\t\tvalue = state[name].parse(value);\n\t\t\t}\n\n\t\t\tstate[name].set(value);\n\t\t}\n\n\t\treturn this;\n\t}\n\n\tfunction getOption(name) {\n\t\tlet value = state.hasOwnProperty(name)\n\t\t? get(state[name])\n\t\t: undefined;\n\n\t\treturn value instanceof Date ? toLocalDate(value) : value;\n\t}\n\n\tfunction refetchEvents() {\n\t\tstate._fetchedRange.set({ start: undefined, end: undefined });\n\t\treturn this;\n\t}\n\n\tfunction getEvents() {\n\t\treturn $_events.map(toEventWithLocalDates);\n\t}\n\n\tfunction getEventById(id) {\n\t\tfor (let event of $_events) {\n\t\t\tif (event.id == id) {\n\t\t\t\treturn toEventWithLocalDates(event);\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tfunction addEvent(event) {\n\t\tupdateEvents(events => events.concat(state.events.parse([event])));\n\t\treturn this;\n\t}\n\n\tfunction updateEvent(event) {\n\t\tupdateEvents(events => {\n\t\t\tfor (let e of events) {\n\t\t\t\tif (e.id == event.id) {\n\t\t\t\t\tassign(e, state.events.parse([event])[0]);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn events;\n\t\t});\n\n\t\treturn this;\n\t}\n\n\tfunction removeEventById(id) {\n\t\tupdateEvents(events => events.filter(event => event.id != id));\n\t\treturn this;\n\t}\n\n\tfunction getView() {\n\t\treturn toViewWithLocalDates(state._view.get());\n\t}\n\n\tfunction unselect() {\n\t\tif ($_interaction.action) {\n\t\t\t$_interaction.action.unselect();\n\t\t}\n\n\t\treturn this;\n\t}\n\n\tfunction dateFromPoint(x, y) {\n\t\tfor (let el of document.elementsFromPoint(x, y)) {\n\t\t\tif (hasFn(el)) {\n\t\t\t\tlet date = runFn(el, y);\n\t\t\t\treturn date ? toLocalDate(date) : null;\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tfunction destroy() {\n\t\tdestroy_component(component, true);\n\t}\n\n\tfunction updateEvents(func) {\n\t\tif ($eventSources.length) {\n\t\t\tset_store_value(_events, $_events = func($_events), $_events);\n\t\t} else {\n\t\t\tset_store_value(events, $events = func($events), $events);\n\t\t}\n\t}\n\n\tfunction handleClick(jsEvent) {\n\t\tif ($_ignoreClick) {\n\t\t\tignore(jsEvent);\n\t\t\tset_store_value(_ignoreClick, $_ignoreClick = false, $_ignoreClick);\n\t\t}\n\t}\n\n\tbeforeUpdate(() => {\n\t\tflushDebounce($_queue);\n\t});\n\n\t$$self.$$set = $$props => {\n\t\tif ('plugins' in $$props) $$invalidate(17, plugins = $$props.plugins);\n\t\tif ('options' in $$props) $$invalidate(18, options = $$props.options);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*options*/ 262144) {\n\t\t\t// Reactively update options that did change\n\t\t\tfor (let [name, value] of diff(options)) {\n\t\t\t\tsetOption(name, value);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\t$theme,\n\t\t$_viewClass,\n\t\t$_iClass,\n\t\t$height,\n\t\t$_viewComponent,\n\t\t_viewComponent,\n\t\t_viewClass,\n\t\t_ignoreClick,\n\t\t_interaction,\n\t\t_iClass,\n\t\t_events,\n\t\t_queue,\n\t\tevents,\n\t\teventSources,\n\t\theight,\n\t\ttheme,\n\t\thandleClick,\n\t\tplugins,\n\t\toptions,\n\t\tsetOption,\n\t\tgetOption,\n\t\trefetchEvents,\n\t\tgetEvents,\n\t\tgetEventById,\n\t\taddEvent,\n\t\tupdateEvent,\n\t\tremoveEventById,\n\t\tgetView,\n\t\tunselect,\n\t\tdateFromPoint,\n\t\tdestroy\n\t];\n}\n\nclass Calendar extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance,\n\t\t\tcreate_fragment,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tplugins: 17,\n\t\t\t\toptions: 18,\n\t\t\t\tsetOption: 19,\n\t\t\t\tgetOption: 20,\n\t\t\t\trefetchEvents: 21,\n\t\t\t\tgetEvents: 22,\n\t\t\t\tgetEventById: 23,\n\t\t\t\taddEvent: 24,\n\t\t\t\tupdateEvent: 25,\n\t\t\t\tremoveEventById: 26,\n\t\t\t\tgetView: 27,\n\t\t\t\tunselect: 28,\n\t\t\t\tdateFromPoint: 29,\n\t\t\t\tdestroy: 30\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n\n\tget setOption() {\n\t\treturn this.$$.ctx[19];\n\t}\n\n\tget getOption() {\n\t\treturn this.$$.ctx[20];\n\t}\n\n\tget refetchEvents() {\n\t\treturn this.$$.ctx[21];\n\t}\n\n\tget getEvents() {\n\t\treturn this.$$.ctx[22];\n\t}\n\n\tget getEventById() {\n\t\treturn this.$$.ctx[23];\n\t}\n\n\tget addEvent() {\n\t\treturn this.$$.ctx[24];\n\t}\n\n\tget updateEvent() {\n\t\treturn this.$$.ctx[25];\n\t}\n\n\tget removeEventById() {\n\t\treturn this.$$.ctx[26];\n\t}\n\n\tget getView() {\n\t\treturn this.$$.ctx[27];\n\t}\n\n\tget unselect() {\n\t\treturn this.$$.ctx[28];\n\t}\n\n\tget dateFromPoint() {\n\t\treturn this.$$.ctx[29];\n\t}\n\n\tget destroy() {\n\t\treturn this.$$.ctx[30];\n\t}\n}\n\nexport { Calendar as default };\n","import { SvelteComponent, init, safe_not_equal, element, space, attr, insert, append, noop, detach, destroy_each, component_subscribe, text, set_data, create_slot, listen, is_function, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, run_all, set_store_value, binding_callbacks, construct_svelte_component, create_component, mount_component, action_destroyer, group_outros, destroy_component, check_outros, stop_propagation, update_keyed_each, outro_and_destroy_block, empty, bubble } from 'svelte/internal';\nimport { getContext, onMount, tick, afterUpdate, setContext } from 'svelte';\nimport { derived, writable } from 'svelte/store';\nimport { cloneDate, subtractDay, addDay, hasYScroll, setContent, maybeIgnore, toEventWithLocalDates, toViewWithLocalDates, createEventContent, repositionEvent, height, ancestor, outsideEvent, rect, datesEqual, setMidnight, createDate, debounce, toLocalDate, toISOString, assign, createEventChunk, setFn, eventIntersects, prepareEventChunks, intl } from '@event-calendar/common';\n\nfunction days(state) {\n return derived([state.date, state.firstDay, state.hiddenDays], ([$date, $firstDay, $hiddenDays]) => {\n let days = [];\n let day = cloneDate($date);\n let max = 7;\n // First day of week\n while (day.getUTCDay() !== $firstDay && max) {\n subtractDay(day);\n --max;\n }\n for (let i = 0; i < 7; ++i) {\n if (!$hiddenDays.includes(day.getUTCDay())) {\n days.push(cloneDate(day));\n }\n addDay(day);\n }\n\n return days;\n });\n}\n\nclass State {\n constructor(state) {\n this._days = days(state);\n this._hiddenEvents = writable({});\n this._popupDate = writable(null);\n this._popupChunks = writable([]);\n }\n}\n\n/* packages/day-grid/src/Header.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context$4(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[8] = list[i];\n\treturn child_ctx;\n}\n\n// (10:8) {#each $_days as day}\nfunction create_each_block$4(ctx) {\n\tlet div;\n\tlet t_value = /*$_intlDayHeader*/ ctx[3].format(/*day*/ ctx[8]) + \"\";\n\tlet t;\n\tlet div_class_value;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tt = text(t_value);\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[0].day);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tappend(div, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*$_intlDayHeader, $_days*/ 12 && t_value !== (t_value = /*$_intlDayHeader*/ ctx[3].format(/*day*/ ctx[8]) + \"\")) set_data(t, t_value);\n\n\t\t\tif (dirty & /*$theme*/ 1 && div_class_value !== (div_class_value = /*$theme*/ ctx[0].day)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t}\n\t};\n}\n\nfunction create_fragment$6(ctx) {\n\tlet div2;\n\tlet div0;\n\tlet div0_class_value;\n\tlet t;\n\tlet div1;\n\tlet div1_class_value;\n\tlet div2_class_value;\n\tlet each_value = /*$_days*/ ctx[2];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\teach_blocks[i] = create_each_block$4(get_each_context$4(ctx, each_value, i));\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tdiv2 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tt = space();\n\t\t\tdiv1 = element(\"div\");\n\t\t\tattr(div0, \"class\", div0_class_value = /*$theme*/ ctx[0].days);\n\t\t\tattr(div1, \"class\", div1_class_value = /*$theme*/ ctx[0].hiddenScroll);\n\n\t\t\tattr(div2, \"class\", div2_class_value = \"\" + (/*$theme*/ ctx[0].header + (/*$_scrollable*/ ctx[1]\n\t\t\t? ' ' + /*$theme*/ ctx[0].withScroll\n\t\t\t: '')));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div2, anchor);\n\t\t\tappend(div2, div0);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(div0, null);\n\t\t\t}\n\n\t\t\tappend(div2, t);\n\t\t\tappend(div2, div1);\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (dirty & /*$theme, $_intlDayHeader, $_days*/ 13) {\n\t\t\t\teach_value = /*$_days*/ ctx[2];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context$4(ctx, each_value, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block$4(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\teach_blocks[i].m(div0, null);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (; i < each_blocks.length; i += 1) {\n\t\t\t\t\teach_blocks[i].d(1);\n\t\t\t\t}\n\n\t\t\t\teach_blocks.length = each_value.length;\n\t\t\t}\n\n\t\t\tif (dirty & /*$theme*/ 1 && div0_class_value !== (div0_class_value = /*$theme*/ ctx[0].days)) {\n\t\t\t\tattr(div0, \"class\", div0_class_value);\n\t\t\t}\n\n\t\t\tif (dirty & /*$theme*/ 1 && div1_class_value !== (div1_class_value = /*$theme*/ ctx[0].hiddenScroll)) {\n\t\t\t\tattr(div1, \"class\", div1_class_value);\n\t\t\t}\n\n\t\t\tif (dirty & /*$theme, $_scrollable*/ 3 && div2_class_value !== (div2_class_value = \"\" + (/*$theme*/ ctx[0].header + (/*$_scrollable*/ ctx[1]\n\t\t\t? ' ' + /*$theme*/ ctx[0].withScroll\n\t\t\t: '')))) {\n\t\t\t\tattr(div2, \"class\", div2_class_value);\n\t\t\t}\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div2);\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t}\n\t};\n}\n\nfunction instance$6($$self, $$props, $$invalidate) {\n\tlet $theme;\n\tlet $_scrollable;\n\tlet $_days;\n\tlet $_intlDayHeader;\n\tlet { theme, _intlDayHeader, _scrollable } = getContext('state');\n\tcomponent_subscribe($$self, theme, value => $$invalidate(0, $theme = value));\n\tcomponent_subscribe($$self, _intlDayHeader, value => $$invalidate(3, $_intlDayHeader = value));\n\tcomponent_subscribe($$self, _scrollable, value => $$invalidate(1, $_scrollable = value));\n\tlet { _days } = getContext('view-state');\n\tcomponent_subscribe($$self, _days, value => $$invalidate(2, $_days = value));\n\n\treturn [\n\t\t$theme,\n\t\t$_scrollable,\n\t\t$_days,\n\t\t$_intlDayHeader,\n\t\ttheme,\n\t\t_intlDayHeader,\n\t\t_scrollable,\n\t\t_days\n\t];\n}\n\nclass Header extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$6, create_fragment$6, safe_not_equal, {});\n\t}\n}\n\n/* packages/day-grid/src/Body.svelte generated by Svelte v3.55.1 */\n\nfunction create_fragment$5(ctx) {\n\tlet div1;\n\tlet div0;\n\tlet div0_class_value;\n\tlet div1_class_value;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tconst default_slot_template = /*#slots*/ ctx[12].default;\n\tconst default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[11], null);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv1 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\t\t\tif (default_slot) default_slot.c();\n\t\t\tattr(div0, \"class\", div0_class_value = /*$theme*/ ctx[1].content);\n\n\t\t\tattr(div1, \"class\", div1_class_value = \"\" + (/*$theme*/ ctx[1].body + (/*$dayMaxEvents*/ ctx[2] === true\n\t\t\t? ' ' + /*$theme*/ ctx[1].uniform\n\t\t\t: '')));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div1, anchor);\n\t\t\tappend(div1, div0);\n\n\t\t\tif (default_slot) {\n\t\t\t\tdefault_slot.m(div0, null);\n\t\t\t}\n\n\t\t\t/*div1_binding*/ ctx[13](div1);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(window, \"resize\", /*recheckScrollable*/ ctx[9]),\n\t\t\t\t\tlisten(div1, \"scroll\", function () {\n\t\t\t\t\t\tif (is_function(/*$_scroll*/ ctx[3])) /*$_scroll*/ ctx[3].apply(this, arguments);\n\t\t\t\t\t})\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, [dirty]) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (default_slot) {\n\t\t\t\tif (default_slot.p && (!current || dirty & /*$$scope*/ 2048)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\tdefault_slot,\n\t\t\t\t\t\tdefault_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[11],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[11])\n\t\t\t\t\t\t: get_slot_changes(default_slot_template, /*$$scope*/ ctx[11], dirty, null),\n\t\t\t\t\t\tnull\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*$theme*/ 2 && div0_class_value !== (div0_class_value = /*$theme*/ ctx[1].content)) {\n\t\t\t\tattr(div0, \"class\", div0_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*$theme, $dayMaxEvents*/ 6 && div1_class_value !== (div1_class_value = \"\" + (/*$theme*/ ctx[1].body + (/*$dayMaxEvents*/ ctx[2] === true\n\t\t\t? ' ' + /*$theme*/ ctx[1].uniform\n\t\t\t: '')))) {\n\t\t\t\tattr(div1, \"class\", div1_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(default_slot, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(default_slot, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div1);\n\t\t\tif (default_slot) default_slot.d(detaching);\n\t\t\t/*div1_binding*/ ctx[13](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction instance$5($$self, $$props, $$invalidate) {\n\tlet $_scrollable;\n\tlet $_events;\n\tlet $theme;\n\tlet $dayMaxEvents;\n\tlet $_scroll;\n\tlet { $$slots: slots = {}, $$scope } = $$props;\n\tlet { dayMaxEvents, _events, _scrollable, _scroll, theme } = getContext('state');\n\tcomponent_subscribe($$self, dayMaxEvents, value => $$invalidate(2, $dayMaxEvents = value));\n\tcomponent_subscribe($$self, _events, value => $$invalidate(10, $_events = value));\n\tcomponent_subscribe($$self, _scrollable, value => $$invalidate(14, $_scrollable = value));\n\tcomponent_subscribe($$self, _scroll, value => $$invalidate(3, $_scroll = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(1, $theme = value));\n\tlet el;\n\n\tfunction recheckScrollable() {\n\t\tset_store_value(_scrollable, $_scrollable = hasYScroll(el), $_scrollable);\n\t}\n\n\tfunction div1_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tel = $$value;\n\t\t\t$$invalidate(0, el);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('$$scope' in $$props) $$invalidate(11, $$scope = $$props.$$scope);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*el, $_events*/ 1025) {\n\t\t\tif (el && $_events) {\n\t\t\t\tsetTimeout(recheckScrollable);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\tel,\n\t\t$theme,\n\t\t$dayMaxEvents,\n\t\t$_scroll,\n\t\tdayMaxEvents,\n\t\t_events,\n\t\t_scrollable,\n\t\t_scroll,\n\t\ttheme,\n\t\trecheckScrollable,\n\t\t$_events,\n\t\t$$scope,\n\t\tslots,\n\t\tdiv1_binding\n\t];\n}\n\nclass Body extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$5, create_fragment$5, safe_not_equal, {});\n\t}\n}\n\n/* packages/day-grid/src/Event.svelte generated by Svelte v3.55.1 */\n\nfunction create_fragment$4(ctx) {\n\tlet div1;\n\tlet div0;\n\tlet div0_class_value;\n\tlet setContent_action;\n\tlet t;\n\tlet switch_instance;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tvar switch_value = /*$_interaction*/ ctx[7].resizer;\n\n\tfunction switch_props(ctx) {\n\t\treturn { props: { event: /*event*/ ctx[0] } };\n\t}\n\n\tif (switch_value) {\n\t\tswitch_instance = construct_svelte_component(switch_value, switch_props(ctx));\n\t\tswitch_instance.$on(\"pointerdown\", /*createDragHandler*/ ctx[30](true));\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tdiv1 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\t\t\tt = space();\n\t\t\tif (switch_instance) create_component(switch_instance.$$.fragment);\n\t\t\tattr(div0, \"class\", div0_class_value = /*$theme*/ ctx[1].eventBody);\n\t\t\tattr(div1, \"class\", /*classes*/ ctx[3]);\n\t\t\tattr(div1, \"style\", /*style*/ ctx[4]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div1, anchor);\n\t\t\tappend(div1, div0);\n\t\t\tappend(div1, t);\n\t\t\tif (switch_instance) mount_component(switch_instance, div1, null);\n\t\t\t/*div1_binding*/ ctx[45](div1);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\taction_destroyer(setContent_action = setContent.call(null, div0, /*content*/ ctx[5])),\n\t\t\t\t\tlisten(div1, \"click\", function () {\n\t\t\t\t\t\tif (is_function(maybeIgnore(/*createHandler*/ ctx[29](/*$eventClick*/ ctx[8], /*display*/ ctx[6])))) maybeIgnore(/*createHandler*/ ctx[29](/*$eventClick*/ ctx[8], /*display*/ ctx[6])).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div1, \"mouseenter\", function () {\n\t\t\t\t\t\tif (is_function(/*createHandler*/ ctx[29](/*$eventMouseEnter*/ ctx[9], /*display*/ ctx[6]))) /*createHandler*/ ctx[29](/*$eventMouseEnter*/ ctx[9], /*display*/ ctx[6]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div1, \"mouseleave\", function () {\n\t\t\t\t\t\tif (is_function(/*createHandler*/ ctx[29](/*$eventMouseLeave*/ ctx[10], /*display*/ ctx[6]))) /*createHandler*/ ctx[29](/*$eventMouseLeave*/ ctx[10], /*display*/ ctx[6]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div1, \"pointerdown\", function () {\n\t\t\t\t\t\tif (is_function(/*display*/ ctx[6] === 'auto' && /*$_draggable*/ ctx[11](/*event*/ ctx[0])\n\t\t\t\t\t\t? /*createDragHandler*/ ctx[30]()\n\t\t\t\t\t\t: undefined)) (/*display*/ ctx[6] === 'auto' && /*$_draggable*/ ctx[11](/*event*/ ctx[0])\n\t\t\t\t\t\t? /*createDragHandler*/ ctx[30]()\n\t\t\t\t\t\t: undefined).apply(this, arguments);\n\t\t\t\t\t})\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 2 && div0_class_value !== (div0_class_value = /*$theme*/ ctx[1].eventBody)) {\n\t\t\t\tattr(div0, \"class\", div0_class_value);\n\t\t\t}\n\n\t\t\tif (setContent_action && is_function(setContent_action.update) && dirty[0] & /*content*/ 32) setContent_action.update.call(null, /*content*/ ctx[5]);\n\t\t\tconst switch_instance_changes = {};\n\t\t\tif (dirty[0] & /*event*/ 1) switch_instance_changes.event = /*event*/ ctx[0];\n\n\t\t\tif (switch_value !== (switch_value = /*$_interaction*/ ctx[7].resizer)) {\n\t\t\t\tif (switch_instance) {\n\t\t\t\t\tgroup_outros();\n\t\t\t\t\tconst old_component = switch_instance;\n\n\t\t\t\t\ttransition_out(old_component.$$.fragment, 1, 0, () => {\n\t\t\t\t\t\tdestroy_component(old_component, 1);\n\t\t\t\t\t});\n\n\t\t\t\t\tcheck_outros();\n\t\t\t\t}\n\n\t\t\t\tif (switch_value) {\n\t\t\t\t\tswitch_instance = construct_svelte_component(switch_value, switch_props(ctx));\n\t\t\t\t\tswitch_instance.$on(\"pointerdown\", /*createDragHandler*/ ctx[30](true));\n\t\t\t\t\tcreate_component(switch_instance.$$.fragment);\n\t\t\t\t\ttransition_in(switch_instance.$$.fragment, 1);\n\t\t\t\t\tmount_component(switch_instance, div1, null);\n\t\t\t\t} else {\n\t\t\t\t\tswitch_instance = null;\n\t\t\t\t}\n\t\t\t} else if (switch_value) {\n\t\t\t\tswitch_instance.$set(switch_instance_changes);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*classes*/ 8) {\n\t\t\t\tattr(div1, \"class\", /*classes*/ ctx[3]);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*style*/ 16) {\n\t\t\t\tattr(div1, \"style\", /*style*/ ctx[4]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\tif (switch_instance) transition_in(switch_instance.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\tif (switch_instance) transition_out(switch_instance.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div1);\n\t\t\tif (switch_instance) destroy_component(switch_instance);\n\t\t\t/*div1_binding*/ ctx[45](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction instance$4($$self, $$props, $$invalidate) {\n\tlet $_hiddenEvents;\n\tlet $dayMaxEvents;\n\tlet $_interaction;\n\tlet $_view;\n\tlet $eventDidMount;\n\tlet $_intlEventTime;\n\tlet $theme;\n\tlet $eventContent;\n\tlet $displayEventEnd;\n\tlet $_classes;\n\tlet $eventColor;\n\tlet $eventBackgroundColor;\n\tlet $_resBgColor;\n\tlet $eventClick;\n\tlet $eventMouseEnter;\n\tlet $eventMouseLeave;\n\tlet $_draggable;\n\tlet { chunk } = $$props;\n\tlet { longChunks = {} } = $$props;\n\tlet { inPopup = false } = $$props;\n\tlet { dayMaxEvents, displayEventEnd, eventBackgroundColor, eventClick, eventColor, eventContent, eventDidMount, eventMouseEnter, eventMouseLeave, theme, _view, _intlEventTime, _interaction, _classes, _draggable, _resBgColor } = getContext('state');\n\tcomponent_subscribe($$self, dayMaxEvents, value => $$invalidate(48, $dayMaxEvents = value));\n\tcomponent_subscribe($$self, displayEventEnd, value => $$invalidate(40, $displayEventEnd = value));\n\tcomponent_subscribe($$self, eventBackgroundColor, value => $$invalidate(43, $eventBackgroundColor = value));\n\tcomponent_subscribe($$self, eventClick, value => $$invalidate(8, $eventClick = value));\n\tcomponent_subscribe($$self, eventColor, value => $$invalidate(42, $eventColor = value));\n\tcomponent_subscribe($$self, eventContent, value => $$invalidate(39, $eventContent = value));\n\tcomponent_subscribe($$self, eventDidMount, value => $$invalidate(49, $eventDidMount = value));\n\tcomponent_subscribe($$self, eventMouseEnter, value => $$invalidate(9, $eventMouseEnter = value));\n\tcomponent_subscribe($$self, eventMouseLeave, value => $$invalidate(10, $eventMouseLeave = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(1, $theme = value));\n\tcomponent_subscribe($$self, _view, value => $$invalidate(37, $_view = value));\n\tcomponent_subscribe($$self, _intlEventTime, value => $$invalidate(38, $_intlEventTime = value));\n\tcomponent_subscribe($$self, _interaction, value => $$invalidate(7, $_interaction = value));\n\tcomponent_subscribe($$self, _classes, value => $$invalidate(41, $_classes = value));\n\tcomponent_subscribe($$self, _draggable, value => $$invalidate(11, $_draggable = value));\n\tcomponent_subscribe($$self, _resBgColor, value => $$invalidate(44, $_resBgColor = value));\n\tlet { _hiddenEvents } = getContext('view-state');\n\tcomponent_subscribe($$self, _hiddenEvents, value => $$invalidate(47, $_hiddenEvents = value));\n\tlet el;\n\tlet event;\n\tlet classes;\n\tlet style;\n\tlet content;\n\tlet timeText;\n\tlet margin = 1;\n\tlet hidden = false;\n\tlet display;\n\n\tonMount(() => {\n\t\tif (is_function($eventDidMount)) {\n\t\t\t$eventDidMount({\n\t\t\t\tevent: toEventWithLocalDates(event),\n\t\t\t\ttimeText,\n\t\t\t\tel,\n\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t});\n\t\t}\n\t});\n\n\tfunction createHandler(fn, display) {\n\t\treturn display !== 'preview' && is_function(fn)\n\t\t? jsEvent => fn({\n\t\t\t\tevent: toEventWithLocalDates(event),\n\t\t\t\tel,\n\t\t\t\tjsEvent,\n\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t})\n\t\t: undefined;\n\t}\n\n\tfunction createDragHandler(resize) {\n\t\treturn jsEvent => $_interaction.action.dragDayGrid(event, el, jsEvent, inPopup, resize);\n\t}\n\n\tfunction reposition() {\n\t\tif (!el || display === 'preview' || inPopup) {\n\t\t\treturn;\n\t\t}\n\n\t\t$$invalidate(35, margin = repositionEvent(chunk, longChunks, height(el)));\n\n\t\tif ($dayMaxEvents === true) {\n\t\t\thide();\n\t\t} else {\n\t\t\t$$invalidate(36, hidden = false);\n\t\t}\n\t}\n\n\tfunction hide() {\n\t\tlet dayEl = ancestor(el, 2);\n\t\tlet h = height(dayEl) - height(dayEl.firstElementChild) - footHeight(dayEl);\n\t\t$$invalidate(36, hidden = chunk.bottom > h);\n\t\tlet update = false;\n\n\t\t// Hide or show the event throughout all days\n\t\tfor (let date of chunk.dates) {\n\t\t\tlet hiddenEvents = $_hiddenEvents[date.getTime()];\n\n\t\t\tif (hiddenEvents) {\n\t\t\t\tlet size = hiddenEvents.size;\n\n\t\t\t\tif (hidden) {\n\t\t\t\t\thiddenEvents.add(chunk.event);\n\t\t\t\t} else {\n\t\t\t\t\thiddenEvents.delete(chunk.event);\n\t\t\t\t}\n\n\t\t\t\tif (size !== hiddenEvents.size) {\n\t\t\t\t\tupdate = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (update) {\n\t\t\t_hiddenEvents.set($_hiddenEvents);\n\t\t}\n\t}\n\n\tfunction footHeight(dayEl) {\n\t\tlet h = 0;\n\n\t\tfor (let i = 0; i < chunk.days; ++i) {\n\t\t\th = Math.max(h, height(dayEl.lastElementChild));\n\t\t\tdayEl = dayEl.nextElementSibling;\n\n\t\t\tif (!dayEl) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn h;\n\t}\n\n\tfunction div1_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tel = $$value;\n\t\t\t$$invalidate(2, el);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('chunk' in $$props) $$invalidate(31, chunk = $$props.chunk);\n\t\tif ('longChunks' in $$props) $$invalidate(32, longChunks = $$props.longChunks);\n\t\tif ('inPopup' in $$props) $$invalidate(33, inPopup = $$props.inPopup);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[1] & /*chunk*/ 1) {\n\t\t\t$$invalidate(0, event = chunk.event);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*event, style, $theme*/ 19 | $$self.$$.dirty[1] & /*$_resBgColor, $eventBackgroundColor, $eventColor, chunk, margin, hidden, $_classes*/ 15409) {\n\t\t\t{\n\t\t\t\t$$invalidate(6, display = event.display);\n\n\t\t\t\t// Class & Style\n\t\t\t\tlet bgColor = event.backgroundColor || $_resBgColor(event) || $eventBackgroundColor || $eventColor;\n\n\t\t\t\t$$invalidate(4, style = `width:calc(${chunk.days * 100}% + ${(chunk.days - 1) * 7}px);` + `margin-top:${margin}px;`);\n\n\t\t\t\tif (bgColor) {\n\t\t\t\t\t$$invalidate(4, style += `background-color:${bgColor};`);\n\t\t\t\t}\n\n\t\t\t\tif (hidden) {\n\t\t\t\t\t$$invalidate(4, style += 'visibility:hidden;');\n\t\t\t\t}\n\n\t\t\t\t$$invalidate(3, classes = $_classes($theme.event, event));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$theme*/ 2 | $$self.$$.dirty[1] & /*chunk, $displayEventEnd, $eventContent, $_intlEventTime, $_view*/ 961) {\n\t\t\t// Content\n\t\t\t$$invalidate(5, [timeText, content] = createEventContent(chunk, $displayEventEnd, $eventContent, $theme, $_intlEventTime, $_view), content);\n\t\t}\n\t};\n\n\treturn [\n\t\tevent,\n\t\t$theme,\n\t\tel,\n\t\tclasses,\n\t\tstyle,\n\t\tcontent,\n\t\tdisplay,\n\t\t$_interaction,\n\t\t$eventClick,\n\t\t$eventMouseEnter,\n\t\t$eventMouseLeave,\n\t\t$_draggable,\n\t\tdayMaxEvents,\n\t\tdisplayEventEnd,\n\t\teventBackgroundColor,\n\t\teventClick,\n\t\teventColor,\n\t\teventContent,\n\t\teventDidMount,\n\t\teventMouseEnter,\n\t\teventMouseLeave,\n\t\ttheme,\n\t\t_view,\n\t\t_intlEventTime,\n\t\t_interaction,\n\t\t_classes,\n\t\t_draggable,\n\t\t_resBgColor,\n\t\t_hiddenEvents,\n\t\tcreateHandler,\n\t\tcreateDragHandler,\n\t\tchunk,\n\t\tlongChunks,\n\t\tinPopup,\n\t\treposition,\n\t\tmargin,\n\t\thidden,\n\t\t$_view,\n\t\t$_intlEventTime,\n\t\t$eventContent,\n\t\t$displayEventEnd,\n\t\t$_classes,\n\t\t$eventColor,\n\t\t$eventBackgroundColor,\n\t\t$_resBgColor,\n\t\tdiv1_binding\n\t];\n}\n\nclass Event extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$4,\n\t\t\tcreate_fragment$4,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tchunk: 31,\n\t\t\t\tlongChunks: 32,\n\t\t\t\tinPopup: 33,\n\t\t\t\treposition: 34\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n\n\tget reposition() {\n\t\treturn this.$$.ctx[34];\n\t}\n}\n\n/* packages/day-grid/src/Popup.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context$3(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[18] = list[i];\n\treturn child_ctx;\n}\n\n// (84:8) {#each $_popupChunks as chunk (chunk.event)}\nfunction create_each_block$3(key_1, ctx) {\n\tlet first;\n\tlet event;\n\tlet current;\n\n\tevent = new Event({\n\t\t\tprops: { chunk: /*chunk*/ ctx[18], inPopup: true }\n\t\t});\n\n\treturn {\n\t\tkey: key_1,\n\t\tfirst: null,\n\t\tc() {\n\t\t\tfirst = empty();\n\t\t\tcreate_component(event.$$.fragment);\n\t\t\tthis.first = first;\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, first, anchor);\n\t\t\tmount_component(event, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\t\t\tconst event_changes = {};\n\t\t\tif (dirty & /*$_popupChunks*/ 1) event_changes.chunk = /*chunk*/ ctx[18];\n\t\t\tevent.$set(event_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(event.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(event.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(first);\n\t\t\tdestroy_component(event, detaching);\n\t\t}\n\t};\n}\n\nfunction create_fragment$3(ctx) {\n\tlet div2;\n\tlet div0;\n\tlet t0_value = /*$_intlDayPopover*/ ctx[5].format(/*$_popupDate*/ ctx[3]) + \"\";\n\tlet t0;\n\tlet t1;\n\tlet a;\n\tlet div0_class_value;\n\tlet t3;\n\tlet div1;\n\tlet each_blocks = [];\n\tlet each_1_lookup = new Map();\n\tlet div1_class_value;\n\tlet div2_class_value;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tlet each_value = /*$_popupChunks*/ ctx[0];\n\tconst get_key = ctx => /*chunk*/ ctx[18].event;\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\tlet child_ctx = get_each_context$3(ctx, each_value, i);\n\t\tlet key = get_key(child_ctx);\n\t\teach_1_lookup.set(key, each_blocks[i] = create_each_block$3(key, child_ctx));\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tdiv2 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\t\t\tt0 = text(t0_value);\n\t\t\tt1 = space();\n\t\t\ta = element(\"a\");\n\t\t\ta.textContent = \"×\";\n\t\t\tt3 = space();\n\t\t\tdiv1 = element(\"div\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tattr(div0, \"class\", div0_class_value = /*$theme*/ ctx[4].dayHead);\n\t\t\tattr(div1, \"class\", div1_class_value = /*$theme*/ ctx[4].events);\n\t\t\tattr(div2, \"class\", div2_class_value = /*$theme*/ ctx[4].popup);\n\t\t\tattr(div2, \"style\", /*style*/ ctx[2]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div2, anchor);\n\t\t\tappend(div2, div0);\n\t\t\tappend(div0, t0);\n\t\t\tappend(div0, t1);\n\t\t\tappend(div0, a);\n\t\t\tappend(div2, t3);\n\t\t\tappend(div2, div1);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(div1, null);\n\t\t\t}\n\n\t\t\t/*div2_binding*/ ctx[14](div2);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(a, \"click\", stop_propagation(/*close*/ ctx[11])),\n\t\t\t\t\taction_destroyer(outsideEvent.call(null, div2, 'pointerdown')),\n\t\t\t\t\tlisten(div2, \"pointerdown\", stop_propagation(/*pointerdown_handler*/ ctx[13])),\n\t\t\t\t\tlisten(div2, \"pointerdownoutside\", /*handlePointerDownOutside*/ ctx[12])\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif ((!current || dirty & /*$_intlDayPopover, $_popupDate*/ 40) && t0_value !== (t0_value = /*$_intlDayPopover*/ ctx[5].format(/*$_popupDate*/ ctx[3]) + \"\")) set_data(t0, t0_value);\n\n\t\t\tif (!current || dirty & /*$theme*/ 16 && div0_class_value !== (div0_class_value = /*$theme*/ ctx[4].dayHead)) {\n\t\t\t\tattr(div0, \"class\", div0_class_value);\n\t\t\t}\n\n\t\t\tif (dirty & /*$_popupChunks*/ 1) {\n\t\t\t\teach_value = /*$_popupChunks*/ ctx[0];\n\t\t\t\tgroup_outros();\n\t\t\t\teach_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div1, outro_and_destroy_block, create_each_block$3, null, get_each_context$3);\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*$theme*/ 16 && div1_class_value !== (div1_class_value = /*$theme*/ ctx[4].events)) {\n\t\t\t\tattr(div1, \"class\", div1_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*$theme*/ 16 && div2_class_value !== (div2_class_value = /*$theme*/ ctx[4].popup)) {\n\t\t\t\tattr(div2, \"class\", div2_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*style*/ 4) {\n\t\t\t\tattr(div2, \"style\", /*style*/ ctx[2]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div2);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].d();\n\t\t\t}\n\n\t\t\t/*div2_binding*/ ctx[14](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction instance$3($$self, $$props, $$invalidate) {\n\tlet $_ignoreClick;\n\tlet $_popupDate;\n\tlet $_popupChunks;\n\tlet $theme;\n\tlet $_intlDayPopover;\n\tlet { theme, _ignoreClick, _intlDayPopover } = getContext('state');\n\tcomponent_subscribe($$self, theme, value => $$invalidate(4, $theme = value));\n\tcomponent_subscribe($$self, _ignoreClick, value => $$invalidate(15, $_ignoreClick = value));\n\tcomponent_subscribe($$self, _intlDayPopover, value => $$invalidate(5, $_intlDayPopover = value));\n\tlet { _popupDate, _popupChunks } = getContext('view-state');\n\tcomponent_subscribe($$self, _popupDate, value => $$invalidate(3, $_popupDate = value));\n\tcomponent_subscribe($$self, _popupChunks, value => $$invalidate(0, $_popupChunks = value));\n\tlet el;\n\tlet style = '';\n\n\tfunction position() {\n\t\tlet dayEl = ancestor(el, 1);\n\t\tlet bodyEl = ancestor(dayEl, 3);\n\t\tlet popupRect = rect(el);\n\t\tlet dayRect = rect(dayEl);\n\t\tlet bodyRect = rect(bodyEl);\n\n\t\tif (!dayEl.previousElementSibling) {\n\t\t\t$$invalidate(2, style = 'left:0;');\n\t\t} else if (!dayEl.nextElementSibling) {\n\t\t\t$$invalidate(2, style = 'right:0;');\n\t\t} else {\n\t\t\tlet left = (dayEl.offsetWidth - popupRect.width) / 2;\n\t\t\t$$invalidate(2, style = `left:${left}px;`);\n\t\t}\n\n\t\tlet top;\n\n\t\tif (popupRect.height >= bodyRect.height) {\n\t\t\ttop = bodyRect.top - dayRect.top;\n\t\t\tlet bottom = dayRect.bottom - bodyRect.bottom;\n\t\t\t$$invalidate(2, style += `bottom:${bottom}px;`);\n\t\t} else {\n\t\t\ttop = (dayRect.height - popupRect.height) / 2;\n\n\t\t\tif (dayRect.top + top < bodyRect.top) {\n\t\t\t\ttop = bodyRect.top - dayRect.top;\n\t\t\t} else if (dayRect.top + top + popupRect.height > bodyRect.bottom) {\n\t\t\t\ttop = bodyRect.bottom - dayRect.top - popupRect.height;\n\t\t\t}\n\t\t}\n\n\t\t$$invalidate(2, style += `top:${top}px;`);\n\t}\n\n\tfunction reposition() {\n\t\t// Skip the first call (el is not defined at this time)\n\t\tif (el) {\n\t\t\t$$invalidate(2, style = '');\n\n\t\t\t// Let chunks to update/mount then position the popup\n\t\t\ttick().then(() => {\n\t\t\t\tif ($_popupChunks.length) {\n\t\t\t\t\tposition();\n\t\t\t\t} else {\n\t\t\t\t\tclose();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\n\tfunction close(e) {\n\t\tset_store_value(_popupDate, $_popupDate = null, $_popupDate);\n\t}\n\n\tfunction handlePointerDownOutside(e) {\n\t\tclose();\n\t\tset_store_value(_ignoreClick, $_ignoreClick = true, $_ignoreClick);\n\t}\n\n\tfunction pointerdown_handler(event) {\n\t\tbubble.call(this, $$self, event);\n\t}\n\n\tfunction div2_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tel = $$value;\n\t\t\t$$invalidate(1, el);\n\t\t});\n\t}\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*$_popupChunks*/ 1) {\n\t\t\tif ($_popupChunks) {\n\t\t\t\t// Fire reposition only on popup chunks change\n\t\t\t\treposition();\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\t$_popupChunks,\n\t\tel,\n\t\tstyle,\n\t\t$_popupDate,\n\t\t$theme,\n\t\t$_intlDayPopover,\n\t\ttheme,\n\t\t_ignoreClick,\n\t\t_intlDayPopover,\n\t\t_popupDate,\n\t\t_popupChunks,\n\t\tclose,\n\t\thandlePointerDownOutside,\n\t\tpointerdown_handler,\n\t\tdiv2_binding\n\t];\n}\n\nclass Popup extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$3, create_fragment$3, safe_not_equal, {});\n\t}\n}\n\n/* packages/day-grid/src/Day.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context$2(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[48] = list[i];\n\tchild_ctx[49] = list;\n\tchild_ctx[50] = i;\n\treturn child_ctx;\n}\n\n// (141:4) {#if iChunks[1] && datesEqual(iChunks[1].date, date)}\nfunction create_if_block_3(ctx) {\n\tlet div;\n\tlet event;\n\tlet div_class_value;\n\tlet current;\n\tevent = new Event({ props: { chunk: /*iChunks*/ ctx[2][1] } });\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcreate_component(event.$$.fragment);\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[12].events);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tmount_component(event, div, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst event_changes = {};\n\t\t\tif (dirty[0] & /*iChunks*/ 4) event_changes.chunk = /*iChunks*/ ctx[2][1];\n\t\t\tevent.$set(event_changes);\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 4096 && div_class_value !== (div_class_value = /*$theme*/ ctx[12].events)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(event.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(event.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_component(event);\n\t\t}\n\t};\n}\n\n// (147:4) {#if iChunks[0] && datesEqual(iChunks[0].date, date)}\nfunction create_if_block_2(ctx) {\n\tlet div;\n\tlet event;\n\tlet div_class_value;\n\tlet current;\n\tevent = new Event({ props: { chunk: /*iChunks*/ ctx[2][0] } });\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcreate_component(event.$$.fragment);\n\t\t\tattr(div, \"class\", div_class_value = \"\" + (/*$theme*/ ctx[12].events + \" \" + /*$theme*/ ctx[12].preview));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tmount_component(event, div, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst event_changes = {};\n\t\t\tif (dirty[0] & /*iChunks*/ 4) event_changes.chunk = /*iChunks*/ ctx[2][0];\n\t\t\tevent.$set(event_changes);\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 4096 && div_class_value !== (div_class_value = \"\" + (/*$theme*/ ctx[12].events + \" \" + /*$theme*/ ctx[12].preview))) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(event.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(event.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_component(event);\n\t\t}\n\t};\n}\n\n// (153:8) {#each dayChunks as chunk, i (chunk.event)}\nfunction create_each_block$2(key_1, ctx) {\n\tlet first;\n\tlet event;\n\tlet i = /*i*/ ctx[50];\n\tlet current;\n\tconst assign_event = () => /*event_binding*/ ctx[39](event, i);\n\tconst unassign_event = () => /*event_binding*/ ctx[39](null, i);\n\n\tlet event_props = {\n\t\tchunk: /*chunk*/ ctx[48],\n\t\tlongChunks: /*longChunks*/ ctx[1]\n\t};\n\n\tevent = new Event({ props: event_props });\n\tassign_event();\n\n\treturn {\n\t\tkey: key_1,\n\t\tfirst: null,\n\t\tc() {\n\t\t\tfirst = empty();\n\t\t\tcreate_component(event.$$.fragment);\n\t\t\tthis.first = first;\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, first, anchor);\n\t\t\tmount_component(event, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (i !== /*i*/ ctx[50]) {\n\t\t\t\tunassign_event();\n\t\t\t\ti = /*i*/ ctx[50];\n\t\t\t\tassign_event();\n\t\t\t}\n\n\t\t\tconst event_changes = {};\n\t\t\tif (dirty[0] & /*dayChunks*/ 16) event_changes.chunk = /*chunk*/ ctx[48];\n\t\t\tif (dirty[0] & /*longChunks*/ 2) event_changes.longChunks = /*longChunks*/ ctx[1];\n\t\t\tevent.$set(event_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(event.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(event.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(first);\n\t\t\tunassign_event();\n\t\t\tdestroy_component(event, detaching);\n\t\t}\n\t};\n}\n\n// (157:4) {#if showPopup}\nfunction create_if_block_1(ctx) {\n\tlet popup;\n\tlet current;\n\tpopup = new Popup({});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(popup.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(popup, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(popup.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(popup.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(popup, detaching);\n\t\t}\n\t};\n}\n\n// (161:8) {#if hiddenEvents.size}\nfunction create_if_block(ctx) {\n\tlet a;\n\tlet setContent_action;\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tc() {\n\t\t\ta = element(\"a\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, a, anchor);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(a, \"click\", stop_propagation(/*showMore*/ ctx[29])),\n\t\t\t\t\tlisten(a, \"pointerdown\", stop_propagation(/*pointerdown_handler*/ ctx[38])),\n\t\t\t\t\taction_destroyer(setContent_action = setContent.call(null, a, /*moreLink*/ ctx[6]))\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (setContent_action && is_function(setContent_action.update) && dirty[0] & /*moreLink*/ 64) setContent_action.update.call(null, /*moreLink*/ ctx[6]);\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(a);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction create_fragment$2(ctx) {\n\tlet div3;\n\tlet div0;\n\tlet t0_value = /*date*/ ctx[0].getUTCDate() + \"\";\n\tlet t0;\n\tlet div0_class_value;\n\tlet t1;\n\tlet show_if_1 = /*iChunks*/ ctx[2][1] && datesEqual(/*iChunks*/ ctx[2][1].date, /*date*/ ctx[0]);\n\tlet t2;\n\tlet show_if = /*iChunks*/ ctx[2][0] && datesEqual(/*iChunks*/ ctx[2][0].date, /*date*/ ctx[0]);\n\tlet t3;\n\tlet div1;\n\tlet each_blocks = [];\n\tlet each_1_lookup = new Map();\n\tlet div1_class_value;\n\tlet t4;\n\tlet t5;\n\tlet div2;\n\tlet div2_class_value;\n\tlet div3_class_value;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tlet if_block0 = show_if_1 && create_if_block_3(ctx);\n\tlet if_block1 = show_if && create_if_block_2(ctx);\n\tlet each_value = /*dayChunks*/ ctx[4];\n\tconst get_key = ctx => /*chunk*/ ctx[48].event;\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\tlet child_ctx = get_each_context$2(ctx, each_value, i);\n\t\tlet key = get_key(child_ctx);\n\t\teach_1_lookup.set(key, each_blocks[i] = create_each_block$2(key, child_ctx));\n\t}\n\n\tlet if_block2 = /*showPopup*/ ctx[7] && create_if_block_1();\n\tlet if_block3 = /*hiddenEvents*/ ctx[5].size && create_if_block(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv3 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\t\t\tt0 = text(t0_value);\n\t\t\tt1 = space();\n\t\t\tif (if_block0) if_block0.c();\n\t\t\tt2 = space();\n\t\t\tif (if_block1) if_block1.c();\n\t\t\tt3 = space();\n\t\t\tdiv1 = element(\"div\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tt4 = space();\n\t\t\tif (if_block2) if_block2.c();\n\t\t\tt5 = space();\n\t\t\tdiv2 = element(\"div\");\n\t\t\tif (if_block3) if_block3.c();\n\t\t\tattr(div0, \"class\", div0_class_value = /*$theme*/ ctx[12].dayHead);\n\t\t\tattr(div1, \"class\", div1_class_value = /*$theme*/ ctx[12].events);\n\t\t\tattr(div2, \"class\", div2_class_value = /*$theme*/ ctx[12].dayFoot);\n\n\t\t\tattr(div3, \"class\", div3_class_value = \"\" + (/*$theme*/ ctx[12].day + (/*isToday*/ ctx[8] ? ' ' + /*$theme*/ ctx[12].today : '') + (/*otherMonth*/ ctx[9]\n\t\t\t? ' ' + /*$theme*/ ctx[12].otherMonth\n\t\t\t: '') + (/*highlight*/ ctx[10]\n\t\t\t? ' ' + /*$theme*/ ctx[12].highlight\n\t\t\t: '')));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div3, anchor);\n\t\t\tappend(div3, div0);\n\t\t\tappend(div0, t0);\n\t\t\tappend(div3, t1);\n\t\t\tif (if_block0) if_block0.m(div3, null);\n\t\t\tappend(div3, t2);\n\t\t\tif (if_block1) if_block1.m(div3, null);\n\t\t\tappend(div3, t3);\n\t\t\tappend(div3, div1);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(div1, null);\n\t\t\t}\n\n\t\t\tappend(div3, t4);\n\t\t\tif (if_block2) if_block2.m(div3, null);\n\t\t\tappend(div3, t5);\n\t\t\tappend(div3, div2);\n\t\t\tif (if_block3) if_block3.m(div2, null);\n\t\t\t/*div3_binding*/ ctx[40](div3);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(window, \"resize\", /*reposition*/ ctx[31]),\n\t\t\t\t\tlisten(div3, \"click\", function () {\n\t\t\t\t\t\tif (is_function(maybeIgnore(/*createClickHandler*/ ctx[27](/*$dateClick*/ ctx[13])))) maybeIgnore(/*createClickHandler*/ ctx[27](/*$dateClick*/ ctx[13])).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div3, \"pointerenter\", function () {\n\t\t\t\t\t\tif (is_function(/*createPointerEnterHandler*/ ctx[28](/*$_interaction*/ ctx[14]))) /*createPointerEnterHandler*/ ctx[28](/*$_interaction*/ ctx[14]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div3, \"pointerleave\", function () {\n\t\t\t\t\t\tif (is_function(createPointerLeaveHandler(/*$_interaction*/ ctx[14]))) createPointerLeaveHandler(/*$_interaction*/ ctx[14]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div3, \"pointerdown\", function () {\n\t\t\t\t\t\tif (is_function(/*createPointerDownHandler*/ ctx[30](/*$_interaction*/ ctx[14], /*$selectable*/ ctx[15]))) /*createPointerDownHandler*/ ctx[30](/*$_interaction*/ ctx[14], /*$selectable*/ ctx[15]).apply(this, arguments);\n\t\t\t\t\t})\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\t\t\tif ((!current || dirty[0] & /*date*/ 1) && t0_value !== (t0_value = /*date*/ ctx[0].getUTCDate() + \"\")) set_data(t0, t0_value);\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 4096 && div0_class_value !== (div0_class_value = /*$theme*/ ctx[12].dayHead)) {\n\t\t\t\tattr(div0, \"class\", div0_class_value);\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*iChunks, date*/ 5) show_if_1 = /*iChunks*/ ctx[2][1] && datesEqual(/*iChunks*/ ctx[2][1].date, /*date*/ ctx[0]);\n\n\t\t\tif (show_if_1) {\n\t\t\t\tif (if_block0) {\n\t\t\t\t\tif_block0.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*iChunks, date*/ 5) {\n\t\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block0 = create_if_block_3(ctx);\n\t\t\t\t\tif_block0.c();\n\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\tif_block0.m(div3, t2);\n\t\t\t\t}\n\t\t\t} else if (if_block0) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block0, 1, 1, () => {\n\t\t\t\t\tif_block0 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*iChunks, date*/ 5) show_if = /*iChunks*/ ctx[2][0] && datesEqual(/*iChunks*/ ctx[2][0].date, /*date*/ ctx[0]);\n\n\t\t\tif (show_if) {\n\t\t\t\tif (if_block1) {\n\t\t\t\t\tif_block1.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*iChunks, date*/ 5) {\n\t\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block1 = create_if_block_2(ctx);\n\t\t\t\t\tif_block1.c();\n\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\tif_block1.m(div3, t3);\n\t\t\t\t}\n\t\t\t} else if (if_block1) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block1, 1, 1, () => {\n\t\t\t\t\tif_block1 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*dayChunks, longChunks, refs*/ 2066) {\n\t\t\t\teach_value = /*dayChunks*/ ctx[4];\n\t\t\t\tgroup_outros();\n\t\t\t\teach_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div1, outro_and_destroy_block, create_each_block$2, null, get_each_context$2);\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 4096 && div1_class_value !== (div1_class_value = /*$theme*/ ctx[12].events)) {\n\t\t\t\tattr(div1, \"class\", div1_class_value);\n\t\t\t}\n\n\t\t\tif (/*showPopup*/ ctx[7]) {\n\t\t\t\tif (if_block2) {\n\t\t\t\t\tif (dirty[0] & /*showPopup*/ 128) {\n\t\t\t\t\t\ttransition_in(if_block2, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block2 = create_if_block_1();\n\t\t\t\t\tif_block2.c();\n\t\t\t\t\ttransition_in(if_block2, 1);\n\t\t\t\t\tif_block2.m(div3, t5);\n\t\t\t\t}\n\t\t\t} else if (if_block2) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block2, 1, 1, () => {\n\t\t\t\t\tif_block2 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (/*hiddenEvents*/ ctx[5].size) {\n\t\t\t\tif (if_block3) {\n\t\t\t\t\tif_block3.p(ctx, dirty);\n\t\t\t\t} else {\n\t\t\t\t\tif_block3 = create_if_block(ctx);\n\t\t\t\t\tif_block3.c();\n\t\t\t\t\tif_block3.m(div2, null);\n\t\t\t\t}\n\t\t\t} else if (if_block3) {\n\t\t\t\tif_block3.d(1);\n\t\t\t\tif_block3 = null;\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 4096 && div2_class_value !== (div2_class_value = /*$theme*/ ctx[12].dayFoot)) {\n\t\t\t\tattr(div2, \"class\", div2_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme, isToday, otherMonth, highlight*/ 5888 && div3_class_value !== (div3_class_value = \"\" + (/*$theme*/ ctx[12].day + (/*isToday*/ ctx[8] ? ' ' + /*$theme*/ ctx[12].today : '') + (/*otherMonth*/ ctx[9]\n\t\t\t? ' ' + /*$theme*/ ctx[12].otherMonth\n\t\t\t: '') + (/*highlight*/ ctx[10]\n\t\t\t? ' ' + /*$theme*/ ctx[12].highlight\n\t\t\t: '')))) {\n\t\t\t\tattr(div3, \"class\", div3_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block0);\n\t\t\ttransition_in(if_block1);\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\ttransition_in(if_block2);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block0);\n\t\t\ttransition_out(if_block1);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\ttransition_out(if_block2);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div3);\n\t\t\tif (if_block0) if_block0.d();\n\t\t\tif (if_block1) if_block1.d();\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].d();\n\t\t\t}\n\n\t\t\tif (if_block2) if_block2.d();\n\t\t\tif (if_block3) if_block3.d();\n\t\t\t/*div3_binding*/ ctx[40](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction createPointerLeaveHandler(interaction) {\n\treturn interaction.pointer\n\t? interaction.pointer.leave\n\t: undefined;\n}\n\nfunction instance$2($$self, $$props, $$invalidate) {\n\tlet $_hiddenEvents;\n\tlet $_popupChunks;\n\tlet $_popupDate;\n\tlet $_view;\n\tlet $moreLinkContent;\n\tlet $highlightedDates;\n\tlet $currentDate;\n\tlet $theme;\n\tlet $dateClick;\n\tlet $_interaction;\n\tlet $selectable;\n\tlet { date } = $$props;\n\tlet { chunks } = $$props;\n\tlet { longChunks } = $$props;\n\tlet { iChunks = [] } = $$props;\n\tlet { date: currentDate, dateClick, dayMaxEvents, highlightedDates, moreLinkContent, theme, _view, _interaction, selectable, _queue } = getContext('state');\n\tcomponent_subscribe($$self, currentDate, value => $$invalidate(37, $currentDate = value));\n\tcomponent_subscribe($$self, dateClick, value => $$invalidate(13, $dateClick = value));\n\tcomponent_subscribe($$self, highlightedDates, value => $$invalidate(36, $highlightedDates = value));\n\tcomponent_subscribe($$self, moreLinkContent, value => $$invalidate(35, $moreLinkContent = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(12, $theme = value));\n\tcomponent_subscribe($$self, _view, value => $$invalidate(42, $_view = value));\n\tcomponent_subscribe($$self, _interaction, value => $$invalidate(14, $_interaction = value));\n\tcomponent_subscribe($$self, selectable, value => $$invalidate(15, $selectable = value));\n\tlet { _hiddenEvents, _popupDate, _popupChunks } = getContext('view-state');\n\tcomponent_subscribe($$self, _hiddenEvents, value => $$invalidate(33, $_hiddenEvents = value));\n\tcomponent_subscribe($$self, _popupDate, value => $$invalidate(34, $_popupDate = value));\n\tcomponent_subscribe($$self, _popupChunks, value => $$invalidate(41, $_popupChunks = value));\n\tlet el;\n\tlet dayChunks;\n\tlet today = setMidnight(createDate());\n\tlet isToday;\n\tlet otherMonth;\n\tlet highlight;\n\tlet hiddenEvents = new Set(); // hidden events of this day\n\tlet moreLink = '';\n\tlet showPopup;\n\tlet refs = [];\n\n\tfunction createClickHandler(fn) {\n\t\treturn is_function(fn)\n\t\t? jsEvent => fn({\n\t\t\t\tallDay: true,\n\t\t\t\tdate: toLocalDate(date),\n\t\t\t\tdateStr: toISOString(date),\n\t\t\t\tdayEl: el,\n\t\t\t\tjsEvent,\n\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t})\n\t\t: undefined;\n\t}\n\n\tfunction createPointerEnterHandler(interaction) {\n\t\treturn interaction.pointer\n\t\t? jsEvent => interaction.pointer.enterDayGrid(date, jsEvent)\n\t\t: undefined;\n\t}\n\n\tfunction showMore() {\n\t\tset_store_value(_popupDate, $_popupDate = date, $_popupDate);\n\t}\n\n\tfunction setPopupChunks() {\n\t\tlet nextDay = addDay(cloneDate(date));\n\t\tlet chunks = dayChunks.concat(longChunks[date.getTime()]?.chunks || []);\n\t\tset_store_value(_popupChunks, $_popupChunks = chunks.map(chunk => assign({}, chunk, createEventChunk(chunk.event, date, nextDay), { days: 1, dates: [date] })).sort((a, b) => a.top - b.top), $_popupChunks);\n\t}\n\n\tfunction createPointerDownHandler(interaction, selectable) {\n\t\treturn selectable && interaction.action\n\t\t? jsEvent => interaction.action.selectDayGrid(date, el, jsEvent)\n\t\t: undefined;\n\t}\n\n\tfunction reposition() {\n\t\t$$invalidate(11, refs.length = dayChunks.length, refs);\n\n\t\tfor (let ref of refs) {\n\t\t\tref && ref.reposition && ref.reposition();\n\t\t}\n\t}\n\n\tafterUpdate(reposition);\n\tlet debounceHandle = {};\n\n\tfunction pointerdown_handler(event) {\n\t\tbubble.call(this, $$self, event);\n\t}\n\n\tfunction event_binding($$value, i) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\trefs[i] = $$value;\n\t\t\t$$invalidate(11, refs);\n\t\t});\n\t}\n\n\tfunction div3_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tel = $$value;\n\t\t\t$$invalidate(3, el);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('date' in $$props) $$invalidate(0, date = $$props.date);\n\t\tif ('chunks' in $$props) $$invalidate(32, chunks = $$props.chunks);\n\t\tif ('longChunks' in $$props) $$invalidate(1, longChunks = $$props.longChunks);\n\t\tif ('iChunks' in $$props) $$invalidate(2, iChunks = $$props.iChunks);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*hiddenEvents, date, dayChunks*/ 49 | $$self.$$.dirty[1] & /*chunks*/ 2) {\n\t\t\t{\n\t\t\t\t$$invalidate(4, dayChunks = []);\n\t\t\t\thiddenEvents.clear();\n\t\t\t\t((($$invalidate(5, hiddenEvents), $$invalidate(32, chunks)), $$invalidate(0, date)), $$invalidate(4, dayChunks));\n\n\t\t\t\tfor (let chunk of chunks) {\n\t\t\t\t\tif (datesEqual(chunk.date, date)) {\n\t\t\t\t\t\tdayChunks.push(chunk);\n\t\t\t\t\t} // if ($dayMaxEvents !== false && dayChunks.length > $dayMaxEvents) {\n\t\t\t\t\t// \tchunk.hidden = true;\n\t\t\t\t} // }\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*date, hiddenEvents*/ 33) {\n\t\t\tset_store_value(_hiddenEvents, $_hiddenEvents[date.getTime()] = hiddenEvents, $_hiddenEvents);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*date*/ 1 | $$self.$$.dirty[1] & /*$currentDate, $highlightedDates*/ 96) {\n\t\t\t{\n\t\t\t\t$$invalidate(8, isToday = datesEqual(date, today));\n\t\t\t\t$$invalidate(9, otherMonth = date.getUTCMonth() !== $currentDate.getUTCMonth());\n\t\t\t\t$$invalidate(10, highlight = $highlightedDates.some(d => datesEqual(d, date)));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*hiddenEvents, moreLink*/ 96 | $$self.$$.dirty[1] & /*$_hiddenEvents, $moreLinkContent*/ 20) {\n\t\t\tif ($_hiddenEvents && hiddenEvents.size) {\n\t\t\t\t// make Svelte update this block on $_hiddenEvents update\n\t\t\t\tlet text = '+' + hiddenEvents.size + ' more';\n\n\t\t\t\tif ($moreLinkContent) {\n\t\t\t\t\t$$invalidate(6, moreLink = is_function($moreLinkContent)\n\t\t\t\t\t? $moreLinkContent({ num: hiddenEvents.size, text })\n\t\t\t\t\t: $moreLinkContent);\n\n\t\t\t\t\tif (typeof moreLink === 'string') {\n\t\t\t\t\t\t$$invalidate(6, moreLink = { html: moreLink });\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$$invalidate(6, moreLink = { html: text });\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*date*/ 1 | $$self.$$.dirty[1] & /*$_popupDate*/ 8) {\n\t\t\t$$invalidate(7, showPopup = $_popupDate && datesEqual(date, $_popupDate));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*showPopup, longChunks, dayChunks*/ 146) {\n\t\t\tif (showPopup && longChunks && dayChunks) {\n\t\t\t\t// Let chunks to reposition then set popup chunks\n\t\t\t\ttick().then(setPopupChunks);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*el, date*/ 9) {\n\t\t\t// dateFromPoint\n\t\t\tif (el) {\n\t\t\t\tsetFn(el, () => date);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$_hiddenEvents*/ 4) {\n\t\t\tif ($_hiddenEvents) {\n\t\t\t\tdebounce(reposition, debounceHandle, _queue);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\tdate,\n\t\tlongChunks,\n\t\tiChunks,\n\t\tel,\n\t\tdayChunks,\n\t\thiddenEvents,\n\t\tmoreLink,\n\t\tshowPopup,\n\t\tisToday,\n\t\totherMonth,\n\t\thighlight,\n\t\trefs,\n\t\t$theme,\n\t\t$dateClick,\n\t\t$_interaction,\n\t\t$selectable,\n\t\tcurrentDate,\n\t\tdateClick,\n\t\thighlightedDates,\n\t\tmoreLinkContent,\n\t\ttheme,\n\t\t_view,\n\t\t_interaction,\n\t\tselectable,\n\t\t_hiddenEvents,\n\t\t_popupDate,\n\t\t_popupChunks,\n\t\tcreateClickHandler,\n\t\tcreatePointerEnterHandler,\n\t\tshowMore,\n\t\tcreatePointerDownHandler,\n\t\treposition,\n\t\tchunks,\n\t\t$_hiddenEvents,\n\t\t$_popupDate,\n\t\t$moreLinkContent,\n\t\t$highlightedDates,\n\t\t$currentDate,\n\t\tpointerdown_handler,\n\t\tevent_binding,\n\t\tdiv3_binding\n\t];\n}\n\nclass Day extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$2,\n\t\t\tcreate_fragment$2,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tdate: 0,\n\t\t\t\tchunks: 32,\n\t\t\t\tlongChunks: 1,\n\t\t\t\tiChunks: 2\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n}\n\n/* packages/day-grid/src/Week.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context$1(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[14] = list[i];\n\treturn child_ctx;\n}\n\n// (45:4) {#each dates as date}\nfunction create_each_block$1(ctx) {\n\tlet day;\n\tlet current;\n\n\tday = new Day({\n\t\t\tprops: {\n\t\t\t\tdate: /*date*/ ctx[14],\n\t\t\t\tchunks: /*chunks*/ ctx[1],\n\t\t\t\tlongChunks: /*longChunks*/ ctx[2],\n\t\t\t\tiChunks: /*iChunks*/ ctx[3]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(day.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(day, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst day_changes = {};\n\t\t\tif (dirty & /*dates*/ 1) day_changes.date = /*date*/ ctx[14];\n\t\t\tif (dirty & /*chunks*/ 2) day_changes.chunks = /*chunks*/ ctx[1];\n\t\t\tif (dirty & /*longChunks*/ 4) day_changes.longChunks = /*longChunks*/ ctx[2];\n\t\t\tif (dirty & /*iChunks*/ 8) day_changes.iChunks = /*iChunks*/ ctx[3];\n\t\t\tday.$set(day_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(day.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(day.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(day, detaching);\n\t\t}\n\t};\n}\n\nfunction create_fragment$1(ctx) {\n\tlet div;\n\tlet div_class_value;\n\tlet current;\n\tlet each_value = /*dates*/ ctx[0];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\teach_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[4].days);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(div, null);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (dirty & /*dates, chunks, longChunks, iChunks*/ 15) {\n\t\t\t\teach_value = /*dates*/ ctx[0];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context$1(ctx, each_value, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block$1(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(div, null);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*$theme*/ 16 && div_class_value !== (div_class_value = /*$theme*/ ctx[4].days)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t}\n\t};\n}\n\nfunction instance$1($$self, $$props, $$invalidate) {\n\tlet $hiddenDays;\n\tlet $_iEvents;\n\tlet $_events;\n\tlet $theme;\n\tlet { dates } = $$props;\n\tlet { _events, _iEvents, hiddenDays, theme } = getContext('state');\n\tcomponent_subscribe($$self, _events, value => $$invalidate(13, $_events = value));\n\tcomponent_subscribe($$self, _iEvents, value => $$invalidate(12, $_iEvents = value));\n\tcomponent_subscribe($$self, hiddenDays, value => $$invalidate(11, $hiddenDays = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(4, $theme = value));\n\tlet chunks, longChunks, iChunks = [];\n\tlet start;\n\tlet end;\n\n\t$$self.$$set = $$props => {\n\t\tif ('dates' in $$props) $$invalidate(0, dates = $$props.dates);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*dates*/ 1) {\n\t\t\t{\n\t\t\t\t$$invalidate(9, start = dates[0]);\n\t\t\t\t$$invalidate(10, end = addDay(cloneDate(dates[dates.length - 1])));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*$_events, start, end, chunks, $hiddenDays*/ 11778) {\n\t\t\t{\n\t\t\t\t$$invalidate(1, chunks = []);\n\n\t\t\t\tfor (let event of $_events) {\n\t\t\t\t\tif (event.display !== 'background' && eventIntersects(event, start, end)) {\n\t\t\t\t\t\tlet chunk = createEventChunk(event, start, end);\n\t\t\t\t\t\tchunks.push(chunk);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$$invalidate(2, longChunks = prepareEventChunks(chunks, $hiddenDays));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*$_iEvents, start, end, $hiddenDays*/ 7680) {\n\t\t\t$$invalidate(3, iChunks = $_iEvents.map(event => {\n\t\t\t\tlet chunk;\n\n\t\t\t\tif (event && eventIntersects(event, start, end)) {\n\t\t\t\t\tchunk = createEventChunk(event, start, end);\n\t\t\t\t\tprepareEventChunks([chunk], $hiddenDays);\n\t\t\t\t} else {\n\t\t\t\t\tchunk = null;\n\t\t\t\t}\n\n\t\t\t\treturn chunk;\n\t\t\t}));\n\t\t}\n\t};\n\n\treturn [\n\t\tdates,\n\t\tchunks,\n\t\tlongChunks,\n\t\tiChunks,\n\t\t$theme,\n\t\t_events,\n\t\t_iEvents,\n\t\thiddenDays,\n\t\ttheme,\n\t\tstart,\n\t\tend,\n\t\t$hiddenDays,\n\t\t$_iEvents,\n\t\t$_events\n\t];\n}\n\nclass Week extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$1, create_fragment$1, safe_not_equal, { dates: 0 });\n\t}\n}\n\n/* packages/day-grid/src/View.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[14] = list[i];\n\treturn child_ctx;\n}\n\n// (37:0) {#each weeks as dates}\nfunction create_each_block(ctx) {\n\tlet week;\n\tlet current;\n\tweek = new Week({ props: { dates: /*dates*/ ctx[14] } });\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(week.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(week, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst week_changes = {};\n\t\t\tif (dirty & /*weeks*/ 1) week_changes.dates = /*dates*/ ctx[14];\n\t\t\tweek.$set(week_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(week.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(week.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(week, detaching);\n\t\t}\n\t};\n}\n\n// (36:0) <Body>\nfunction create_default_slot(ctx) {\n\tlet each_1_anchor;\n\tlet current;\n\tlet each_value = /*weeks*/ ctx[0];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\teach_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\teach_1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, each_1_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*weeks*/ 1) {\n\t\t\t\teach_value = /*weeks*/ ctx[0];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context(ctx, each_value, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t\tif (detaching) detach(each_1_anchor);\n\t\t}\n\t};\n}\n\nfunction create_fragment(ctx) {\n\tlet header;\n\tlet t;\n\tlet body;\n\tlet current;\n\theader = new Header({});\n\n\tbody = new Body({\n\t\t\tprops: {\n\t\t\t\t$$slots: { default: [create_default_slot] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(header.$$.fragment);\n\t\t\tt = space();\n\t\t\tcreate_component(body.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(header, target, anchor);\n\t\t\tinsert(target, t, anchor);\n\t\t\tmount_component(body, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tconst body_changes = {};\n\n\t\t\tif (dirty & /*$$scope, weeks*/ 131073) {\n\t\t\t\tbody_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tbody.$set(body_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(header.$$.fragment, local);\n\t\t\ttransition_in(body.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(header.$$.fragment, local);\n\t\t\ttransition_out(body.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(header, detaching);\n\t\t\tif (detaching) detach(t);\n\t\t\tdestroy_component(body, detaching);\n\t\t}\n\t};\n}\n\nfunction instance($$self, $$props, $$invalidate) {\n\tlet $_viewDates;\n\tlet $dayMaxEvents;\n\tlet $_hiddenEvents;\n\tlet $hiddenDays;\n\tlet $_viewClass;\n\tlet { _viewDates, _viewClass, dayMaxEvents, hiddenDays, theme } = getContext('state');\n\tcomponent_subscribe($$self, _viewDates, value => $$invalidate(7, $_viewDates = value));\n\tcomponent_subscribe($$self, _viewClass, value => $$invalidate(11, $_viewClass = value));\n\tcomponent_subscribe($$self, dayMaxEvents, value => $$invalidate(8, $dayMaxEvents = value));\n\tcomponent_subscribe($$self, hiddenDays, value => $$invalidate(9, $hiddenDays = value));\n\tlet viewState = new State(getContext('state'));\n\tsetContext('view-state', viewState);\n\tlet { _hiddenEvents } = viewState;\n\tcomponent_subscribe($$self, _hiddenEvents, value => $$invalidate(10, $_hiddenEvents = value));\n\tset_store_value(_viewClass, $_viewClass = 'month', $_viewClass);\n\tlet weeks;\n\tlet days;\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*$hiddenDays, $dayMaxEvents, $_viewDates, days, weeks*/ 961) {\n\t\t\t{\n\t\t\t\t$$invalidate(0, weeks = []);\n\t\t\t\t$$invalidate(6, days = 7 - $hiddenDays.length);\n\t\t\t\tset_store_value(_hiddenEvents, $_hiddenEvents = {}, $_hiddenEvents);\n\n\t\t\t\tfor (let i = 0; i < $_viewDates.length / days; ++i) {\n\t\t\t\t\tlet dates = [];\n\n\t\t\t\t\tfor (let j = 0; j < days; ++j) {\n\t\t\t\t\t\tdates.push($_viewDates[i * days + j]);\n\t\t\t\t\t}\n\n\t\t\t\t\tweeks.push(dates);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\tweeks,\n\t\t_viewDates,\n\t\t_viewClass,\n\t\tdayMaxEvents,\n\t\thiddenDays,\n\t\t_hiddenEvents,\n\t\tdays,\n\t\t$_viewDates,\n\t\t$dayMaxEvents,\n\t\t$hiddenDays\n\t];\n}\n\nclass View extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance, create_fragment, safe_not_equal, {});\n\t}\n}\n\nvar index = {\n\tcreateOptions(options) {\n\t\toptions.dayMaxEvents = false;\n\t\toptions.dayPopoverFormat = {month: 'long', day: 'numeric', year: 'numeric'};\n\t\toptions.moreLinkContent = undefined;\n\t\t// Common options\n\t\toptions.buttonText.dayGridMonth = 'month';\n\t\toptions.theme.uniform = 'ec-uniform';\n\t\toptions.theme.dayFoot = 'ec-day-foot';\n\t\toptions.theme.month = 'ec-month';\n\t\toptions.theme.popup = 'ec-popup';\n\t\toptions.view = 'dayGridMonth';\n\t\toptions.views.dayGridMonth = {\n\t\t\tcomponent: View,\n\t\t\tdayHeaderFormat: {weekday: 'short'},\n\t\t\tdisplayEventEnd: false,\n\t\t\tduration: {months: 1},\n\t\t\tmonthMode: true,\n\t\t\ttitleFormat: {year: 'numeric', month: 'long'}\n\t\t};\n\t},\n\n\tcreateStores(state) {\n\t\tstate._intlDayPopover = intl(state.locale, state.dayPopoverFormat);\n\t}\n};\n\nexport { index as default };\n","import { SvelteComponent, init, safe_not_equal, create_slot, element, attr, insert, append, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, detach, component_subscribe, space, action_destroyer, listen, is_function, noop, run_all, binding_callbacks, empty, group_outros, check_outros, text, set_data, update_keyed_each, outro_and_destroy_block, create_component, mount_component, destroy_component, set_store_value, destroy_each } from 'svelte/internal';\nimport { getContext, onMount, setContext } from 'svelte';\nimport { setContent, toEventWithLocalDates, toViewWithLocalDates, createEventContent, setMidnight, createDate, addDay, cloneDate, eventIntersects, createEventChunk, sortEventChunks, datesEqual, toLocalDate, toISOString, setFn, intl } from '@event-calendar/common';\n\n/* packages/list/src/Body.svelte generated by Svelte v3.55.1 */\n\nfunction create_fragment$3(ctx) {\n\tlet div1;\n\tlet div0;\n\tlet div0_class_value;\n\tlet div1_class_value;\n\tlet current;\n\tconst default_slot_template = /*#slots*/ ctx[3].default;\n\tconst default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[2], null);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv1 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\t\t\tif (default_slot) default_slot.c();\n\t\t\tattr(div0, \"class\", div0_class_value = /*$theme*/ ctx[0].content);\n\t\t\tattr(div1, \"class\", div1_class_value = /*$theme*/ ctx[0].body);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div1, anchor);\n\t\t\tappend(div1, div0);\n\n\t\t\tif (default_slot) {\n\t\t\t\tdefault_slot.m(div0, null);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (default_slot) {\n\t\t\t\tif (default_slot.p && (!current || dirty & /*$$scope*/ 4)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\tdefault_slot,\n\t\t\t\t\t\tdefault_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[2],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[2])\n\t\t\t\t\t\t: get_slot_changes(default_slot_template, /*$$scope*/ ctx[2], dirty, null),\n\t\t\t\t\t\tnull\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*$theme*/ 1 && div0_class_value !== (div0_class_value = /*$theme*/ ctx[0].content)) {\n\t\t\t\tattr(div0, \"class\", div0_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*$theme*/ 1 && div1_class_value !== (div1_class_value = /*$theme*/ ctx[0].body)) {\n\t\t\t\tattr(div1, \"class\", div1_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(default_slot, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(default_slot, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div1);\n\t\t\tif (default_slot) default_slot.d(detaching);\n\t\t}\n\t};\n}\n\nfunction instance$3($$self, $$props, $$invalidate) {\n\tlet $theme;\n\tlet { $$slots: slots = {}, $$scope } = $$props;\n\tlet { theme } = getContext('state');\n\tcomponent_subscribe($$self, theme, value => $$invalidate(0, $theme = value));\n\n\t$$self.$$set = $$props => {\n\t\tif ('$$scope' in $$props) $$invalidate(2, $$scope = $$props.$$scope);\n\t};\n\n\treturn [$theme, theme, $$scope, slots];\n}\n\nclass Body extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$3, create_fragment$3, safe_not_equal, {});\n\t}\n}\n\n/* packages/list/src/Event.svelte generated by Svelte v3.55.1 */\n\nfunction create_fragment$2(ctx) {\n\tlet div2;\n\tlet div0;\n\tlet div0_class_value;\n\tlet t;\n\tlet div1;\n\tlet div1_class_value;\n\tlet setContent_action;\n\tlet div2_class_value;\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv2 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\t\t\tt = space();\n\t\t\tdiv1 = element(\"div\");\n\t\t\tattr(div0, \"class\", div0_class_value = /*$theme*/ ctx[0].eventTag);\n\t\t\tattr(div0, \"style\", /*style*/ ctx[2]);\n\t\t\tattr(div1, \"class\", div1_class_value = /*$theme*/ ctx[0].eventBody);\n\t\t\tattr(div2, \"class\", div2_class_value = /*$theme*/ ctx[0].event);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div2, anchor);\n\t\t\tappend(div2, div0);\n\t\t\tappend(div2, t);\n\t\t\tappend(div2, div1);\n\t\t\t/*div2_binding*/ ctx[29](div2);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\taction_destroyer(setContent_action = setContent.call(null, div1, /*content*/ ctx[3])),\n\t\t\t\t\tlisten(div2, \"click\", function () {\n\t\t\t\t\t\tif (is_function(/*createHandler*/ ctx[19](/*$eventClick*/ ctx[4]))) /*createHandler*/ ctx[19](/*$eventClick*/ ctx[4]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div2, \"mouseenter\", function () {\n\t\t\t\t\t\tif (is_function(/*createHandler*/ ctx[19](/*$eventMouseEnter*/ ctx[5]))) /*createHandler*/ ctx[19](/*$eventMouseEnter*/ ctx[5]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div2, \"mouseleave\", function () {\n\t\t\t\t\t\tif (is_function(/*createHandler*/ ctx[19](/*$eventMouseLeave*/ ctx[6]))) /*createHandler*/ ctx[19](/*$eventMouseLeave*/ ctx[6]).apply(this, arguments);\n\t\t\t\t\t})\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (dirty[0] & /*$theme*/ 1 && div0_class_value !== (div0_class_value = /*$theme*/ ctx[0].eventTag)) {\n\t\t\t\tattr(div0, \"class\", div0_class_value);\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*style*/ 4) {\n\t\t\t\tattr(div0, \"style\", /*style*/ ctx[2]);\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*$theme*/ 1 && div1_class_value !== (div1_class_value = /*$theme*/ ctx[0].eventBody)) {\n\t\t\t\tattr(div1, \"class\", div1_class_value);\n\t\t\t}\n\n\t\t\tif (setContent_action && is_function(setContent_action.update) && dirty[0] & /*content*/ 8) setContent_action.update.call(null, /*content*/ ctx[3]);\n\n\t\t\tif (dirty[0] & /*$theme*/ 1 && div2_class_value !== (div2_class_value = /*$theme*/ ctx[0].event)) {\n\t\t\t\tattr(div2, \"class\", div2_class_value);\n\t\t\t}\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div2);\n\t\t\t/*div2_binding*/ ctx[29](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction instance$2($$self, $$props, $$invalidate) {\n\tlet $_view;\n\tlet $eventDidMount;\n\tlet $_intlEventTime;\n\tlet $theme;\n\tlet $eventContent;\n\tlet $displayEventEnd;\n\tlet $eventColor;\n\tlet $eventBackgroundColor;\n\tlet $_resBgColor;\n\tlet $eventClick;\n\tlet $eventMouseEnter;\n\tlet $eventMouseLeave;\n\tlet { chunk } = $$props;\n\tlet { displayEventEnd, eventBackgroundColor, eventColor, eventContent, eventClick, eventDidMount, eventMouseEnter, eventMouseLeave, theme, _view, _intlEventTime, _resBgColor } = getContext('state');\n\tcomponent_subscribe($$self, displayEventEnd, value => $$invalidate(25, $displayEventEnd = value));\n\tcomponent_subscribe($$self, eventBackgroundColor, value => $$invalidate(27, $eventBackgroundColor = value));\n\tcomponent_subscribe($$self, eventColor, value => $$invalidate(26, $eventColor = value));\n\tcomponent_subscribe($$self, eventContent, value => $$invalidate(24, $eventContent = value));\n\tcomponent_subscribe($$self, eventClick, value => $$invalidate(4, $eventClick = value));\n\tcomponent_subscribe($$self, eventDidMount, value => $$invalidate(31, $eventDidMount = value));\n\tcomponent_subscribe($$self, eventMouseEnter, value => $$invalidate(5, $eventMouseEnter = value));\n\tcomponent_subscribe($$self, eventMouseLeave, value => $$invalidate(6, $eventMouseLeave = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(0, $theme = value));\n\tcomponent_subscribe($$self, _view, value => $$invalidate(22, $_view = value));\n\tcomponent_subscribe($$self, _intlEventTime, value => $$invalidate(23, $_intlEventTime = value));\n\tcomponent_subscribe($$self, _resBgColor, value => $$invalidate(28, $_resBgColor = value));\n\tlet el;\n\tlet event;\n\tlet style;\n\tlet content;\n\tlet timeText;\n\n\tonMount(() => {\n\t\tif (is_function($eventDidMount)) {\n\t\t\t$eventDidMount({\n\t\t\t\tevent: toEventWithLocalDates(event),\n\t\t\t\ttimeText,\n\t\t\t\tel,\n\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t});\n\t\t}\n\t});\n\n\tfunction createHandler(fn) {\n\t\treturn jsEvent => {\n\t\t\tif (is_function(fn)) {\n\t\t\t\tfn({\n\t\t\t\t\tevent: toEventWithLocalDates(event),\n\t\t\t\t\tel,\n\t\t\t\t\tjsEvent,\n\t\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\t}\n\n\tfunction div2_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tel = $$value;\n\t\t\t$$invalidate(1, el);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('chunk' in $$props) $$invalidate(20, chunk = $$props.chunk);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*chunk*/ 1048576) {\n\t\t\t$$invalidate(21, event = chunk.event);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*event, $_resBgColor, $eventBackgroundColor, $eventColor*/ 471859200) {\n\t\t\t{\n\t\t\t\t// Class & Style\n\t\t\t\tlet bgColor = event.backgroundColor || $_resBgColor(event) || $eventBackgroundColor || $eventColor;\n\n\t\t\t\tif (bgColor) {\n\t\t\t\t\t$$invalidate(2, style = `background-color:${bgColor};`);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*chunk, $displayEventEnd, $eventContent, $theme, $_intlEventTime, $_view*/ 63963137) {\n\t\t\t{\n\t\t\t\t// Content\n\t\t\t\t$$invalidate(3, [timeText, content] = createEventContent(chunk, $displayEventEnd, $eventContent, $theme, $_intlEventTime, $_view), content);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\t$theme,\n\t\tel,\n\t\tstyle,\n\t\tcontent,\n\t\t$eventClick,\n\t\t$eventMouseEnter,\n\t\t$eventMouseLeave,\n\t\tdisplayEventEnd,\n\t\teventBackgroundColor,\n\t\teventColor,\n\t\teventContent,\n\t\teventClick,\n\t\teventDidMount,\n\t\teventMouseEnter,\n\t\teventMouseLeave,\n\t\ttheme,\n\t\t_view,\n\t\t_intlEventTime,\n\t\t_resBgColor,\n\t\tcreateHandler,\n\t\tchunk,\n\t\tevent,\n\t\t$_view,\n\t\t$_intlEventTime,\n\t\t$eventContent,\n\t\t$displayEventEnd,\n\t\t$eventColor,\n\t\t$eventBackgroundColor,\n\t\t$_resBgColor,\n\t\tdiv2_binding\n\t];\n}\n\nclass Event extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$2, create_fragment$2, safe_not_equal, { chunk: 20 }, null, [-1, -1]);\n\t}\n}\n\n/* packages/list/src/Day.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context$1(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[24] = list[i];\n\treturn child_ctx;\n}\n\n// (68:0) {#if chunks.length}\nfunction create_if_block$1(ctx) {\n\tlet div;\n\tlet t0_value = /*$_intlListDayFormat*/ ctx[7].format(/*date*/ ctx[0]) + \"\";\n\tlet t0;\n\tlet t1;\n\tlet span;\n\tlet t2_value = /*$_intlListDaySideFormat*/ ctx[8].format(/*date*/ ctx[0]) + \"\";\n\tlet t2;\n\tlet span_class_value;\n\tlet div_class_value;\n\tlet t3;\n\tlet each_blocks = [];\n\tlet each_1_lookup = new Map();\n\tlet each_1_anchor;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tlet each_value = /*chunks*/ ctx[2];\n\tconst get_key = ctx => /*chunk*/ ctx[24].event;\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\tlet child_ctx = get_each_context$1(ctx, each_value, i);\n\t\tlet key = get_key(child_ctx);\n\t\teach_1_lookup.set(key, each_blocks[i] = create_each_block$1(key, child_ctx));\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tt0 = text(t0_value);\n\t\t\tt1 = space();\n\t\t\tspan = element(\"span\");\n\t\t\tt2 = text(t2_value);\n\t\t\tt3 = space();\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\teach_1_anchor = empty();\n\t\t\tattr(span, \"class\", span_class_value = /*$theme*/ ctx[5].daySide);\n\n\t\t\tattr(div, \"class\", div_class_value = \"\" + (/*$theme*/ ctx[5].day + (/*isToday*/ ctx[3] ? ' ' + /*$theme*/ ctx[5].today : '') + (/*highlight*/ ctx[4]\n\t\t\t? ' ' + /*$theme*/ ctx[5].highlight\n\t\t\t: '')));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tappend(div, t0);\n\t\t\tappend(div, t1);\n\t\t\tappend(div, span);\n\t\t\tappend(span, t2);\n\t\t\t/*div_binding*/ ctx[19](div);\n\t\t\tinsert(target, t3, anchor);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, each_1_anchor, anchor);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = listen(div, \"click\", function () {\n\t\t\t\t\tif (is_function(/*createClickHandler*/ ctx[16](/*$dateClick*/ ctx[6]))) /*createClickHandler*/ ctx[16](/*$dateClick*/ ctx[6]).apply(this, arguments);\n\t\t\t\t});\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\t\t\tif ((!current || dirty & /*$_intlListDayFormat, date*/ 129) && t0_value !== (t0_value = /*$_intlListDayFormat*/ ctx[7].format(/*date*/ ctx[0]) + \"\")) set_data(t0, t0_value);\n\t\t\tif ((!current || dirty & /*$_intlListDaySideFormat, date*/ 257) && t2_value !== (t2_value = /*$_intlListDaySideFormat*/ ctx[8].format(/*date*/ ctx[0]) + \"\")) set_data(t2, t2_value);\n\n\t\t\tif (!current || dirty & /*$theme*/ 32 && span_class_value !== (span_class_value = /*$theme*/ ctx[5].daySide)) {\n\t\t\t\tattr(span, \"class\", span_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*$theme, isToday, highlight*/ 56 && div_class_value !== (div_class_value = \"\" + (/*$theme*/ ctx[5].day + (/*isToday*/ ctx[3] ? ' ' + /*$theme*/ ctx[5].today : '') + (/*highlight*/ ctx[4]\n\t\t\t? ' ' + /*$theme*/ ctx[5].highlight\n\t\t\t: '')))) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\n\t\t\tif (dirty & /*chunks*/ 4) {\n\t\t\t\teach_value = /*chunks*/ ctx[2];\n\t\t\t\tgroup_outros();\n\t\t\t\teach_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, each_1_anchor.parentNode, outro_and_destroy_block, create_each_block$1, each_1_anchor, get_each_context$1);\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\t/*div_binding*/ ctx[19](null);\n\t\t\tif (detaching) detach(t3);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].d(detaching);\n\t\t\t}\n\n\t\t\tif (detaching) detach(each_1_anchor);\n\t\t\tmounted = false;\n\t\t\tdispose();\n\t\t}\n\t};\n}\n\n// (77:4) {#each chunks as chunk (chunk.event)}\nfunction create_each_block$1(key_1, ctx) {\n\tlet first;\n\tlet event;\n\tlet current;\n\tevent = new Event({ props: { chunk: /*chunk*/ ctx[24] } });\n\n\treturn {\n\t\tkey: key_1,\n\t\tfirst: null,\n\t\tc() {\n\t\t\tfirst = empty();\n\t\t\tcreate_component(event.$$.fragment);\n\t\t\tthis.first = first;\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, first, anchor);\n\t\t\tmount_component(event, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\t\t\tconst event_changes = {};\n\t\t\tif (dirty & /*chunks*/ 4) event_changes.chunk = /*chunk*/ ctx[24];\n\t\t\tevent.$set(event_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(event.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(event.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(first);\n\t\t\tdestroy_component(event, detaching);\n\t\t}\n\t};\n}\n\nfunction create_fragment$1(ctx) {\n\tlet if_block_anchor;\n\tlet current;\n\tlet if_block = /*chunks*/ ctx[2].length && create_if_block$1(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif (if_block) if_block.c();\n\t\t\tif_block_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (if_block) if_block.m(target, anchor);\n\t\t\tinsert(target, if_block_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (/*chunks*/ ctx[2].length) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty & /*chunks*/ 4) {\n\t\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block$1(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\tif_block.m(if_block_anchor.parentNode, if_block_anchor);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block, 1, 1, () => {\n\t\t\t\t\tif_block = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (if_block) if_block.d(detaching);\n\t\t\tif (detaching) detach(if_block_anchor);\n\t\t}\n\t};\n}\n\nfunction instance$1($$self, $$props, $$invalidate) {\n\tlet $_view;\n\tlet $highlightedDates;\n\tlet $_events;\n\tlet $theme;\n\tlet $dateClick;\n\tlet $_intlListDayFormat;\n\tlet $_intlListDaySideFormat;\n\tlet { date } = $$props;\n\tlet { _events, _intlDayHeader, _view, date: currentDate, dateClick, highlightedDates, theme } = getContext('state');\n\tcomponent_subscribe($$self, _events, value => $$invalidate(18, $_events = value));\n\tcomponent_subscribe($$self, _view, value => $$invalidate(20, $_view = value));\n\tcomponent_subscribe($$self, dateClick, value => $$invalidate(6, $dateClick = value));\n\tcomponent_subscribe($$self, highlightedDates, value => $$invalidate(17, $highlightedDates = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(5, $theme = value));\n\tlet { _intlListDayFormat, _intlListDaySideFormat } = getContext('view-state');\n\tcomponent_subscribe($$self, _intlListDayFormat, value => $$invalidate(7, $_intlListDayFormat = value));\n\tcomponent_subscribe($$self, _intlListDaySideFormat, value => $$invalidate(8, $_intlListDaySideFormat = value));\n\tlet el;\n\tlet chunks;\n\tlet today = setMidnight(createDate()), isToday, highlight;\n\n\tfunction createClickHandler(fn) {\n\t\treturn is_function(fn)\n\t\t? jsEvent => {\n\t\t\t\tfn({\n\t\t\t\t\tallDay: true,\n\t\t\t\t\tdate: toLocalDate(date),\n\t\t\t\t\tdateStr: toISOString(date),\n\t\t\t\t\tdayEl: el,\n\t\t\t\t\tjsEvent,\n\t\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t\t});\n\t\t\t}\n\t\t: undefined;\n\t}\n\n\tfunction div_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tel = $$value;\n\t\t\t$$invalidate(1, el);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('date' in $$props) $$invalidate(0, date = $$props.date);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*date, $_events, chunks*/ 262149) {\n\t\t\t{\n\t\t\t\t$$invalidate(2, chunks = []);\n\t\t\t\tlet start = date;\n\t\t\t\tlet end = addDay(cloneDate(date));\n\n\t\t\t\tfor (let event of $_events) {\n\t\t\t\t\tif (event.display === 'auto' && eventIntersects(event, start, end)) {\n\t\t\t\t\t\tlet chunk = createEventChunk(event, start, end);\n\t\t\t\t\t\tchunks.push(chunk);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tsortEventChunks(chunks);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*date, $highlightedDates*/ 131073) {\n\t\t\t{\n\t\t\t\t$$invalidate(3, isToday = datesEqual(date, today));\n\t\t\t\t$$invalidate(4, highlight = $highlightedDates.some(d => datesEqual(d, date)));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*el, date*/ 3) {\n\t\t\t// dateFromPoint\n\t\t\tif (el) {\n\t\t\t\tsetFn(el, () => date);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\tdate,\n\t\tel,\n\t\tchunks,\n\t\tisToday,\n\t\thighlight,\n\t\t$theme,\n\t\t$dateClick,\n\t\t$_intlListDayFormat,\n\t\t$_intlListDaySideFormat,\n\t\t_events,\n\t\t_view,\n\t\tdateClick,\n\t\thighlightedDates,\n\t\ttheme,\n\t\t_intlListDayFormat,\n\t\t_intlListDaySideFormat,\n\t\tcreateClickHandler,\n\t\t$highlightedDates,\n\t\t$_events,\n\t\tdiv_binding\n\t];\n}\n\nclass Day extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$1, create_fragment$1, safe_not_equal, { date: 0 });\n\t}\n}\n\nclass State {\n constructor(state) {\n this._intlListDayFormat = intl(state.locale, state.listDayFormat);\n this._intlListDaySideFormat = intl(state.locale, state.listDaySideFormat);\n }\n}\n\n/* packages/list/src/View.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[18] = list[i];\n\treturn child_ctx;\n}\n\n// (49:0) {:else}\nfunction create_else_block(ctx) {\n\tlet each_1_anchor;\n\tlet current;\n\tlet each_value = /*$_viewDates*/ ctx[1];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\teach_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\teach_1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, each_1_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*$_viewDates*/ 2) {\n\t\t\t\teach_value = /*$_viewDates*/ ctx[1];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context(ctx, each_value, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t\tif (detaching) detach(each_1_anchor);\n\t\t}\n\t};\n}\n\n// (47:0) {#if noEvents}\nfunction create_if_block(ctx) {\n\tlet div;\n\tlet div_class_value;\n\tlet setContent_action;\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[3].noEvents);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\taction_destroyer(setContent_action = setContent.call(null, div, /*content*/ ctx[0])),\n\t\t\t\t\tlisten(div, \"click\", /*handleClick*/ ctx[11])\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*$theme*/ 8 && div_class_value !== (div_class_value = /*$theme*/ ctx[3].noEvents)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\n\t\t\tif (setContent_action && is_function(setContent_action.update) && dirty & /*content*/ 1) setContent_action.update.call(null, /*content*/ ctx[0]);\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\n// (50:4) {#each $_viewDates as date}\nfunction create_each_block(ctx) {\n\tlet day;\n\tlet current;\n\tday = new Day({ props: { date: /*date*/ ctx[18] } });\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(day.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(day, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst day_changes = {};\n\t\t\tif (dirty & /*$_viewDates*/ 2) day_changes.date = /*date*/ ctx[18];\n\t\t\tday.$set(day_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(day.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(day.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(day, detaching);\n\t\t}\n\t};\n}\n\n// (46:0) <Body>\nfunction create_default_slot(ctx) {\n\tlet current_block_type_index;\n\tlet if_block;\n\tlet if_block_anchor;\n\tlet current;\n\tconst if_block_creators = [create_if_block, create_else_block];\n\tconst if_blocks = [];\n\n\tfunction select_block_type(ctx, dirty) {\n\t\tif (/*noEvents*/ ctx[2]) return 0;\n\t\treturn 1;\n\t}\n\n\tcurrent_block_type_index = select_block_type(ctx);\n\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif_block.c();\n\t\t\tif_block_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif_blocks[current_block_type_index].m(target, anchor);\n\t\t\tinsert(target, if_block_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tlet previous_block_index = current_block_type_index;\n\t\t\tcurrent_block_type_index = select_block_type(ctx);\n\n\t\t\tif (current_block_type_index === previous_block_index) {\n\t\t\t\tif_blocks[current_block_type_index].p(ctx, dirty);\n\t\t\t} else {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_blocks[previous_block_index], 1, 1, () => {\n\t\t\t\t\tif_blocks[previous_block_index] = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t\tif_block = if_blocks[current_block_type_index];\n\n\t\t\t\tif (!if_block) {\n\t\t\t\t\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t} else {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t}\n\n\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\tif_block.m(if_block_anchor.parentNode, if_block_anchor);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif_blocks[current_block_type_index].d(detaching);\n\t\t\tif (detaching) detach(if_block_anchor);\n\t\t}\n\t};\n}\n\nfunction create_fragment(ctx) {\n\tlet body;\n\tlet current;\n\n\tbody = new Body({\n\t\t\tprops: {\n\t\t\t\t$$slots: { default: [create_default_slot] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(body.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(body, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tconst body_changes = {};\n\n\t\t\tif (dirty & /*$$scope, $theme, content, noEvents, $_viewDates*/ 2097167) {\n\t\t\t\tbody_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tbody.$set(body_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(body.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(body.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(body, detaching);\n\t\t}\n\t};\n}\n\nfunction instance($$self, $$props, $$invalidate) {\n\tlet $_view;\n\tlet $noEventsClick;\n\tlet $noEventsContent;\n\tlet $_events;\n\tlet $_viewDates;\n\tlet $_viewClass;\n\tlet $theme;\n\tlet { _events, _view, _viewDates, _viewClass, noEventsClick, noEventsContent, theme } = getContext('state');\n\tcomponent_subscribe($$self, _events, value => $$invalidate(13, $_events = value));\n\tcomponent_subscribe($$self, _view, value => $$invalidate(14, $_view = value));\n\tcomponent_subscribe($$self, _viewDates, value => $$invalidate(1, $_viewDates = value));\n\tcomponent_subscribe($$self, _viewClass, value => $$invalidate(16, $_viewClass = value));\n\tcomponent_subscribe($$self, noEventsClick, value => $$invalidate(15, $noEventsClick = value));\n\tcomponent_subscribe($$self, noEventsContent, value => $$invalidate(12, $noEventsContent = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(3, $theme = value));\n\tlet state = new State(getContext('state'));\n\tsetContext('view-state', state);\n\tset_store_value(_viewClass, $_viewClass = 'list', $_viewClass);\n\tlet noEvents, content;\n\n\tfunction handleClick(jsEvent) {\n\t\tif (is_function($noEventsClick)) {\n\t\t\t$noEventsClick({\n\t\t\t\tjsEvent,\n\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t});\n\t\t}\n\t}\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*$_viewDates, $_events*/ 8194) {\n\t\t\t{\n\t\t\t\t$$invalidate(2, noEvents = true);\n\n\t\t\t\tif ($_viewDates.length) {\n\t\t\t\t\tlet start = $_viewDates[0];\n\t\t\t\t\tlet end = addDay(cloneDate($_viewDates[$_viewDates.length - 1]));\n\n\t\t\t\t\tfor (let event of $_events) {\n\t\t\t\t\t\tif (event.display === 'auto' && event.start < end && event.end > start) {\n\t\t\t\t\t\t\t$$invalidate(2, noEvents = false);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*$noEventsContent, content*/ 4097) {\n\t\t\t{\n\t\t\t\t$$invalidate(0, content = is_function($noEventsContent)\n\t\t\t\t? $noEventsContent()\n\t\t\t\t: $noEventsContent);\n\n\t\t\t\tif (typeof content === 'string') {\n\t\t\t\t\t$$invalidate(0, content = { html: content });\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\tcontent,\n\t\t$_viewDates,\n\t\tnoEvents,\n\t\t$theme,\n\t\t_events,\n\t\t_view,\n\t\t_viewDates,\n\t\t_viewClass,\n\t\tnoEventsClick,\n\t\tnoEventsContent,\n\t\ttheme,\n\t\thandleClick,\n\t\t$noEventsContent,\n\t\t$_events\n\t];\n}\n\nclass View extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance, create_fragment, safe_not_equal, {});\n\t}\n}\n\nvar index = {\n\tcreateOptions(options) {\n\t\t// Common options\n\t\toptions.buttonText.listDay = 'list';\n\t\toptions.buttonText.listWeek = 'list';\n\t\toptions.buttonText.listMonth = 'list';\n\t\toptions.buttonText.listYear = 'list';\n\t\toptions.listDayFormat = {weekday: 'long'};\n\t\toptions.listDaySideFormat = {year: 'numeric', month: 'long', day: 'numeric'};\n\t\toptions.noEventsClick = undefined; // ec option\n\t\toptions.noEventsContent = 'No events';\n\t\toptions.theme.daySide = 'ec-day-side';\n\t\toptions.theme.eventTag = 'ec-event-tag';\n\t\toptions.theme.list = 'ec-list';\n\t\toptions.theme.noEvents = 'ec-no-events';\n\t\toptions.view = 'listWeek';\n\t\toptions.views.listDay = {\n\t\t\tcomponent: View,\n\t\t\tduration: {days: 1}\n\t\t};\n\t\toptions.views.listWeek = {\n\t\t\tcomponent: View,\n\t\t\tduration: {weeks: 1}\n\t\t};\n\t\toptions.views.listMonth = {\n\t\t\tcomponent: View,\n\t\t\tduration: {months: 1}\n\t\t};\n\t\toptions.views.listYear = {\n\t\t\tcomponent: View,\n\t\t\tduration: {years: 1}\n\t\t};\n\t}\n};\n\nexport { index as default };\n","import { is_function, SvelteComponent, init, safe_not_equal, create_slot, element, space, attr, insert, append, action_destroyer, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, detach, destroy_each, component_subscribe, text, set_data, listen, run_all, set_store_value, binding_callbacks, construct_svelte_component, create_component, mount_component, group_outros, destroy_component, check_outros, set_style, noop, update_keyed_each, outro_and_destroy_block, empty } from 'svelte/internal';\nimport { getContext, onMount, createEventDispatcher, afterUpdate, setContext } from 'svelte';\nimport { derived } from 'svelte/store';\nimport { createDate, cloneDate, addDuration, createDuration, DAY_IN_SECONDS, sortEventChunks, setContent, hasYScroll, maybeIgnore, toEventWithLocalDates, toViewWithLocalDates, createEventContent, eventIntersects, createEventChunk, datesEqual, toLocalDate, toISOString, setFn, rect, repositionEvent, height, setMidnight, addDay, prepareEventChunks } from '@event-calendar/common';\n\nfunction times(state, localState) {\n return derived(\n [localState._slotTimeLimits, state._intlSlotLabel, state.slotDuration],\n ([$_slotTimeLimits, $_intlSlotLabel, $slotDuration]) => {\n let compact = $slotDuration.seconds >= 3600;\n let times = [];\n let date = createDate('2020-01-01');\n let end = cloneDate(date);\n let i = 1;\n addDuration(date, $_slotTimeLimits.min);\n addDuration(end, $_slotTimeLimits.max);\n while (date < end) {\n times.push(times.length && (i || compact) ? $_intlSlotLabel.format(date) : '');\n addDuration(date, $slotDuration);\n i = 1 - i;\n }\n\n return times;\n }\n );\n}\n\nfunction slotTimeLimits(state) {\n return derived(\n [state._events, state._viewDates, state.flexibleSlotTimeLimits, state.slotMinTime, state.slotMaxTime],\n ([$_events, $_viewDates, $flexibleSlotTimeLimits, $slotMinTime, $slotMaxTime]) => {\n let min = createDuration($slotMinTime);\n let max = createDuration($slotMaxTime);\n\n if ($flexibleSlotTimeLimits) {\n let minMin = createDuration(Math.min(min.seconds, Math.max(0, max.seconds - DAY_IN_SECONDS)));\n let maxMax = createDuration(Math.max(max.seconds, minMin.seconds + DAY_IN_SECONDS));\n loop: for (let date of $_viewDates) {\n let start = addDuration(cloneDate(date), min);\n let end = addDuration(cloneDate(date), max);\n let minStart = addDuration(cloneDate(date), minMin);\n let maxEnd = addDuration(cloneDate(date), maxMax);\n for (let event of $_events) {\n if (event.display === 'auto' && event.start < maxEnd && event.end > minStart) {\n if (event.start < start) {\n let seconds = Math.max((event.start - date) / 1000, minMin.seconds);\n if (seconds < min.seconds) {\n min.seconds = seconds;\n }\n }\n if (event.end > end) {\n let seconds = Math.min((event.end - date) / 1000, maxMax.seconds);\n if (seconds > max.seconds) {\n max.seconds = seconds;\n }\n }\n if (min.seconds === minMin.seconds && max.seconds === maxMax.seconds) {\n break loop;\n }\n }\n }\n }\n }\n\n return {min, max};\n }\n );\n}\n\nclass State {\n constructor(state) {\n this._slotTimeLimits = slotTimeLimits(state); // flexible limits\n this._times = times(state, this);\n }\n}\n\nfunction groupEventChunks(chunks) {\n if (!chunks.length) {\n return;\n }\n\n sortEventChunks(chunks);\n\n // Group\n let group = {\n columns: [],\n end: chunks[0].end\n };\n for (let chunk of chunks) {\n let c = 0;\n if (chunk.start < group.end) {\n for (; c < group.columns.length; ++c) {\n if (group.columns[c][group.columns[c].length - 1].end <= chunk.start) {\n break;\n }\n }\n if (chunk.end > group.end) {\n group.end = chunk.end;\n }\n } else {\n group = {\n columns: [],\n end: chunk.end\n };\n }\n\n if (group.columns.length < c + 1) {\n group.columns.push([]);\n }\n group.columns[c].push(chunk);\n\n chunk.group = group;\n chunk.column = c;\n }\n}\n\nfunction createAllDayContent(allDayContent) {\n let text = 'all-day';\n let content;\n if (allDayContent) {\n content = is_function(allDayContent) ? allDayContent({text}) : allDayContent;\n if (typeof content === 'string') {\n content = {html: content};\n }\n } else {\n content = {\n html: text\n };\n }\n\n return content;\n}\n\n/* packages/time-grid/src/Header.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context$5(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[12] = list[i];\n\treturn child_ctx;\n}\n\n// (19:12) {#each $_times as time}\nfunction create_each_block$5(ctx) {\n\tlet div;\n\tlet t_value = /*time*/ ctx[12] + \"\";\n\tlet t;\n\tlet div_class_value;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tt = text(t_value);\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[2].time);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tappend(div, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*$_times*/ 16 && t_value !== (t_value = /*time*/ ctx[12] + \"\")) set_data(t, t_value);\n\n\t\t\tif (dirty & /*$theme*/ 4 && div_class_value !== (div_class_value = /*$theme*/ ctx[2].time)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t}\n\t};\n}\n\nfunction create_fragment$8(ctx) {\n\tlet div6;\n\tlet div2;\n\tlet div0;\n\tlet div0_class_value;\n\tlet setContent_action;\n\tlet t0;\n\tlet div1;\n\tlet div1_class_value;\n\tlet div2_class_value;\n\tlet t1;\n\tlet div4;\n\tlet div3;\n\tlet div3_class_value;\n\tlet t2;\n\tlet div4_class_value;\n\tlet t3;\n\tlet div5;\n\tlet div5_class_value;\n\tlet div6_class_value;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tlet each_value = /*$_times*/ ctx[4];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\teach_blocks[i] = create_each_block$5(get_each_context$5(ctx, each_value, i));\n\t}\n\n\tconst default_slot_template = /*#slots*/ ctx[11].default;\n\tconst default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[10], null);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv6 = element(\"div\");\n\t\t\tdiv2 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\t\t\tt0 = space();\n\t\t\tdiv1 = element(\"div\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tt1 = space();\n\t\t\tdiv4 = element(\"div\");\n\t\t\tdiv3 = element(\"div\");\n\t\t\tt2 = space();\n\t\t\tif (default_slot) default_slot.c();\n\t\t\tt3 = space();\n\t\t\tdiv5 = element(\"div\");\n\t\t\tattr(div0, \"class\", div0_class_value = /*$theme*/ ctx[2].sidebarTitle);\n\t\t\tattr(div1, \"class\", div1_class_value = /*$theme*/ ctx[2].hiddenTimes);\n\t\t\tattr(div2, \"class\", div2_class_value = /*$theme*/ ctx[2].sidebar);\n\t\t\tattr(div3, \"class\", div3_class_value = /*$theme*/ ctx[2].lines);\n\t\t\tattr(div4, \"class\", div4_class_value = /*$theme*/ ctx[2].days);\n\t\t\tattr(div5, \"class\", div5_class_value = /*$theme*/ ctx[2].hiddenScroll);\n\n\t\t\tattr(div6, \"class\", div6_class_value = \"\" + ((/*allDay*/ ctx[0]\n\t\t\t? /*$theme*/ ctx[2].allDay\n\t\t\t: /*$theme*/ ctx[2].header) + (/*$_scrollable*/ ctx[3]\n\t\t\t? ' ' + /*$theme*/ ctx[2].withScroll\n\t\t\t: '')));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div6, anchor);\n\t\t\tappend(div6, div2);\n\t\t\tappend(div2, div0);\n\t\t\tappend(div2, t0);\n\t\t\tappend(div2, div1);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(div1, null);\n\t\t\t}\n\n\t\t\tappend(div6, t1);\n\t\t\tappend(div6, div4);\n\t\t\tappend(div4, div3);\n\t\t\tappend(div4, t2);\n\n\t\t\tif (default_slot) {\n\t\t\t\tdefault_slot.m(div4, null);\n\t\t\t}\n\n\t\t\tappend(div6, t3);\n\t\t\tappend(div6, div5);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = action_destroyer(setContent_action = setContent.call(null, div0, /*allDayText*/ ctx[1]));\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (!current || dirty & /*$theme*/ 4 && div0_class_value !== (div0_class_value = /*$theme*/ ctx[2].sidebarTitle)) {\n\t\t\t\tattr(div0, \"class\", div0_class_value);\n\t\t\t}\n\n\t\t\tif (setContent_action && is_function(setContent_action.update) && dirty & /*allDayText*/ 2) setContent_action.update.call(null, /*allDayText*/ ctx[1]);\n\n\t\t\tif (dirty & /*$theme, $_times*/ 20) {\n\t\t\t\teach_value = /*$_times*/ ctx[4];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context$5(ctx, each_value, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block$5(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\teach_blocks[i].m(div1, null);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (; i < each_blocks.length; i += 1) {\n\t\t\t\t\teach_blocks[i].d(1);\n\t\t\t\t}\n\n\t\t\t\teach_blocks.length = each_value.length;\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*$theme*/ 4 && div1_class_value !== (div1_class_value = /*$theme*/ ctx[2].hiddenTimes)) {\n\t\t\t\tattr(div1, \"class\", div1_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*$theme*/ 4 && div2_class_value !== (div2_class_value = /*$theme*/ ctx[2].sidebar)) {\n\t\t\t\tattr(div2, \"class\", div2_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*$theme*/ 4 && div3_class_value !== (div3_class_value = /*$theme*/ ctx[2].lines)) {\n\t\t\t\tattr(div3, \"class\", div3_class_value);\n\t\t\t}\n\n\t\t\tif (default_slot) {\n\t\t\t\tif (default_slot.p && (!current || dirty & /*$$scope*/ 1024)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\tdefault_slot,\n\t\t\t\t\t\tdefault_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[10],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[10])\n\t\t\t\t\t\t: get_slot_changes(default_slot_template, /*$$scope*/ ctx[10], dirty, null),\n\t\t\t\t\t\tnull\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*$theme*/ 4 && div4_class_value !== (div4_class_value = /*$theme*/ ctx[2].days)) {\n\t\t\t\tattr(div4, \"class\", div4_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*$theme*/ 4 && div5_class_value !== (div5_class_value = /*$theme*/ ctx[2].hiddenScroll)) {\n\t\t\t\tattr(div5, \"class\", div5_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*allDay, $theme, $_scrollable*/ 13 && div6_class_value !== (div6_class_value = \"\" + ((/*allDay*/ ctx[0]\n\t\t\t? /*$theme*/ ctx[2].allDay\n\t\t\t: /*$theme*/ ctx[2].header) + (/*$_scrollable*/ ctx[3]\n\t\t\t? ' ' + /*$theme*/ ctx[2].withScroll\n\t\t\t: '')))) {\n\t\t\t\tattr(div6, \"class\", div6_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(default_slot, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(default_slot, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div6);\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t\tif (default_slot) default_slot.d(detaching);\n\t\t\tmounted = false;\n\t\t\tdispose();\n\t\t}\n\t};\n}\n\nfunction instance$8($$self, $$props, $$invalidate) {\n\tlet $allDayContent;\n\tlet $theme;\n\tlet $_scrollable;\n\tlet $_times;\n\tlet { $$slots: slots = {}, $$scope } = $$props;\n\tlet { allDay = false } = $$props;\n\tlet { _scrollable, allDayContent, theme } = getContext('state');\n\tcomponent_subscribe($$self, _scrollable, value => $$invalidate(3, $_scrollable = value));\n\tcomponent_subscribe($$self, allDayContent, value => $$invalidate(9, $allDayContent = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(2, $theme = value));\n\tlet { _times } = getContext('view-state');\n\tcomponent_subscribe($$self, _times, value => $$invalidate(4, $_times = value));\n\tlet allDayText;\n\n\t$$self.$$set = $$props => {\n\t\tif ('allDay' in $$props) $$invalidate(0, allDay = $$props.allDay);\n\t\tif ('$$scope' in $$props) $$invalidate(10, $$scope = $$props.$$scope);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*$allDayContent*/ 512) {\n\t\t\t$$invalidate(1, allDayText = createAllDayContent($allDayContent));\n\t\t}\n\t};\n\n\treturn [\n\t\tallDay,\n\t\tallDayText,\n\t\t$theme,\n\t\t$_scrollable,\n\t\t$_times,\n\t\t_scrollable,\n\t\tallDayContent,\n\t\ttheme,\n\t\t_times,\n\t\t$allDayContent,\n\t\t$$scope,\n\t\tslots\n\t];\n}\n\nclass Header extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$8, create_fragment$8, safe_not_equal, { allDay: 0 });\n\t}\n}\n\n/* packages/time-grid/src/Body.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context$4(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[30] = list[i];\n\treturn child_ctx;\n}\n\nfunction get_each_context_1$2(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[33] = list[i];\n\treturn child_ctx;\n}\n\n// (46:12) {#each $_times as time}\nfunction create_each_block_1$2(ctx) {\n\tlet div;\n\tlet t_value = /*time*/ ctx[33] + \"\";\n\tlet t;\n\tlet div_class_value;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tt = text(t_value);\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[5].time);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tappend(div, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*$_times*/ 2 && t_value !== (t_value = /*time*/ ctx[33] + \"\")) set_data(t, t_value);\n\n\t\t\tif (dirty[0] & /*$theme*/ 32 && div_class_value !== (div_class_value = /*$theme*/ ctx[5].time)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t}\n\t};\n}\n\n// (52:16) {#each lines as line}\nfunction create_each_block$4(ctx) {\n\tlet div;\n\tlet div_class_value;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[5].line);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*$theme*/ 32 && div_class_value !== (div_class_value = /*$theme*/ ctx[5].line)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t}\n\t};\n}\n\nfunction create_fragment$7(ctx) {\n\tlet div5;\n\tlet div4;\n\tlet div1;\n\tlet div0;\n\tlet div0_class_value;\n\tlet setContent_action;\n\tlet t0;\n\tlet div1_class_value;\n\tlet t1;\n\tlet div3;\n\tlet div2;\n\tlet div2_class_value;\n\tlet t2;\n\tlet div3_class_value;\n\tlet div4_class_value;\n\tlet div5_class_value;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tlet each_value_1 = /*$_times*/ ctx[1];\n\tlet each_blocks_1 = [];\n\n\tfor (let i = 0; i < each_value_1.length; i += 1) {\n\t\teach_blocks_1[i] = create_each_block_1$2(get_each_context_1$2(ctx, each_value_1, i));\n\t}\n\n\tlet each_value = /*lines*/ ctx[3];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\teach_blocks[i] = create_each_block$4(get_each_context$4(ctx, each_value, i));\n\t}\n\n\tconst default_slot_template = /*#slots*/ ctx[26].default;\n\tconst default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[25], null);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv5 = element(\"div\");\n\t\t\tdiv4 = element(\"div\");\n\t\t\tdiv1 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\t\t\tt0 = space();\n\n\t\t\tfor (let i = 0; i < each_blocks_1.length; i += 1) {\n\t\t\t\teach_blocks_1[i].c();\n\t\t\t}\n\n\t\t\tt1 = space();\n\t\t\tdiv3 = element(\"div\");\n\t\t\tdiv2 = element(\"div\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tt2 = space();\n\t\t\tif (default_slot) default_slot.c();\n\t\t\tattr(div0, \"class\", div0_class_value = /*$theme*/ ctx[5].sidebarTitle);\n\t\t\tattr(div1, \"class\", div1_class_value = /*$theme*/ ctx[5].sidebar);\n\t\t\tattr(div2, \"class\", div2_class_value = /*$theme*/ ctx[5].lines);\n\t\t\tattr(div3, \"class\", div3_class_value = /*$theme*/ ctx[5].days);\n\t\t\tattr(div4, \"class\", div4_class_value = /*$theme*/ ctx[5].content);\n\n\t\t\tattr(div5, \"class\", div5_class_value = \"\" + (/*$theme*/ ctx[5].body + (/*compact*/ ctx[2]\n\t\t\t? ' ' + /*$theme*/ ctx[5].compact\n\t\t\t: '')));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div5, anchor);\n\t\t\tappend(div5, div4);\n\t\t\tappend(div4, div1);\n\t\t\tappend(div1, div0);\n\t\t\tappend(div1, t0);\n\n\t\t\tfor (let i = 0; i < each_blocks_1.length; i += 1) {\n\t\t\t\teach_blocks_1[i].m(div1, null);\n\t\t\t}\n\n\t\t\tappend(div4, t1);\n\t\t\tappend(div4, div3);\n\t\t\tappend(div3, div2);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(div2, null);\n\t\t\t}\n\n\t\t\tappend(div3, t2);\n\n\t\t\tif (default_slot) {\n\t\t\t\tdefault_slot.m(div3, null);\n\t\t\t}\n\n\t\t\t/*div5_binding*/ ctx[27](div5);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(window, \"resize\", /*recheckScrollable*/ ctx[17]),\n\t\t\t\t\taction_destroyer(setContent_action = setContent.call(null, div0, /*allDayText*/ ctx[4])),\n\t\t\t\t\tlisten(div5, \"scroll\", function () {\n\t\t\t\t\t\tif (is_function(/*$_scroll*/ ctx[6])) /*$_scroll*/ ctx[6].apply(this, arguments);\n\t\t\t\t\t})\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 32 && div0_class_value !== (div0_class_value = /*$theme*/ ctx[5].sidebarTitle)) {\n\t\t\t\tattr(div0, \"class\", div0_class_value);\n\t\t\t}\n\n\t\t\tif (setContent_action && is_function(setContent_action.update) && dirty[0] & /*allDayText*/ 16) setContent_action.update.call(null, /*allDayText*/ ctx[4]);\n\n\t\t\tif (dirty[0] & /*$theme, $_times*/ 34) {\n\t\t\t\teach_value_1 = /*$_times*/ ctx[1];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value_1.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context_1$2(ctx, each_value_1, i);\n\n\t\t\t\t\tif (each_blocks_1[i]) {\n\t\t\t\t\t\teach_blocks_1[i].p(child_ctx, dirty);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks_1[i] = create_each_block_1$2(child_ctx);\n\t\t\t\t\t\teach_blocks_1[i].c();\n\t\t\t\t\t\teach_blocks_1[i].m(div1, null);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (; i < each_blocks_1.length; i += 1) {\n\t\t\t\t\teach_blocks_1[i].d(1);\n\t\t\t\t}\n\n\t\t\t\teach_blocks_1.length = each_value_1.length;\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 32 && div1_class_value !== (div1_class_value = /*$theme*/ ctx[5].sidebar)) {\n\t\t\t\tattr(div1, \"class\", div1_class_value);\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*$theme, lines*/ 40) {\n\t\t\t\teach_value = /*lines*/ ctx[3];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context$4(ctx, each_value, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block$4(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\teach_blocks[i].m(div2, null);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (; i < each_blocks.length; i += 1) {\n\t\t\t\t\teach_blocks[i].d(1);\n\t\t\t\t}\n\n\t\t\t\teach_blocks.length = each_value.length;\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 32 && div2_class_value !== (div2_class_value = /*$theme*/ ctx[5].lines)) {\n\t\t\t\tattr(div2, \"class\", div2_class_value);\n\t\t\t}\n\n\t\t\tif (default_slot) {\n\t\t\t\tif (default_slot.p && (!current || dirty[0] & /*$$scope*/ 33554432)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\tdefault_slot,\n\t\t\t\t\t\tdefault_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[25],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[25])\n\t\t\t\t\t\t: get_slot_changes(default_slot_template, /*$$scope*/ ctx[25], dirty, null),\n\t\t\t\t\t\tnull\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 32 && div3_class_value !== (div3_class_value = /*$theme*/ ctx[5].days)) {\n\t\t\t\tattr(div3, \"class\", div3_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 32 && div4_class_value !== (div4_class_value = /*$theme*/ ctx[5].content)) {\n\t\t\t\tattr(div4, \"class\", div4_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme, compact*/ 36 && div5_class_value !== (div5_class_value = \"\" + (/*$theme*/ ctx[5].body + (/*compact*/ ctx[2]\n\t\t\t? ' ' + /*$theme*/ ctx[5].compact\n\t\t\t: '')))) {\n\t\t\t\tattr(div5, \"class\", div5_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(default_slot, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(default_slot, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div5);\n\t\t\tdestroy_each(each_blocks_1, detaching);\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t\tif (default_slot) default_slot.d(detaching);\n\t\t\t/*div5_binding*/ ctx[27](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction instance$7($$self, $$props, $$invalidate) {\n\tlet $_scrollable;\n\tlet $slotDuration;\n\tlet $_times;\n\tlet $slotHeight;\n\tlet $scrollTime;\n\tlet $_viewDates;\n\tlet $allDayContent;\n\tlet $_slotTimeLimits;\n\tlet $theme;\n\tlet $_scroll;\n\tlet { $$slots: slots = {}, $$scope } = $$props;\n\tlet { _intlSlotLabel, _viewDates, scrollTime, _scrollable, _scroll, allDayContent, slotDuration, slotHeight, theme } = getContext('state');\n\tcomponent_subscribe($$self, _viewDates, value => $$invalidate(22, $_viewDates = value));\n\tcomponent_subscribe($$self, scrollTime, value => $$invalidate(21, $scrollTime = value));\n\tcomponent_subscribe($$self, _scrollable, value => $$invalidate(28, $_scrollable = value));\n\tcomponent_subscribe($$self, _scroll, value => $$invalidate(6, $_scroll = value));\n\tcomponent_subscribe($$self, allDayContent, value => $$invalidate(23, $allDayContent = value));\n\tcomponent_subscribe($$self, slotDuration, value => $$invalidate(19, $slotDuration = value));\n\tcomponent_subscribe($$self, slotHeight, value => $$invalidate(20, $slotHeight = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(5, $theme = value));\n\tlet { _slotTimeLimits, _times } = getContext('view-state');\n\tcomponent_subscribe($$self, _slotTimeLimits, value => $$invalidate(24, $_slotTimeLimits = value));\n\tcomponent_subscribe($$self, _times, value => $$invalidate(1, $_times = value));\n\tlet el;\n\tlet compact;\n\tlet lines = [];\n\tlet timeLimitMin;\n\tlet allDayText;\n\n\tfunction recheckScrollable() {\n\t\tset_store_value(_scrollable, $_scrollable = hasYScroll(el), $_scrollable);\n\t}\n\n\tfunction div5_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tel = $$value;\n\t\t\t((((((($$invalidate(0, el), $$invalidate(22, $_viewDates)), $$invalidate(21, $scrollTime)), $$invalidate(18, timeLimitMin)), $$invalidate(19, $slotDuration)), $$invalidate(20, $slotHeight)), $$invalidate(1, $_times)), $$invalidate(24, $_slotTimeLimits));\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('$$scope' in $$props) $$invalidate(25, $$scope = $$props.$$scope);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*$slotDuration, $_times, $_slotTimeLimits*/ 17301506) {\n\t\t\t{\n\t\t\t\t$$invalidate(2, compact = $slotDuration.seconds >= 3600);\n\t\t\t\t$$invalidate(3, lines.length = $_times.length, lines);\n\n\t\t\t\t// Use intermediate variable so that changes in _slotTimeLimits do not trigger setting the el.scrollTop\n\t\t\t\t$$invalidate(18, timeLimitMin = $_slotTimeLimits.min.seconds);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$allDayContent*/ 8388608) {\n\t\t\t$$invalidate(4, allDayText = createAllDayContent($allDayContent));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*el, $_viewDates, $scrollTime, timeLimitMin, $slotDuration, $slotHeight*/ 8126465) {\n\t\t\tif (el && $_viewDates) {\n\t\t\t\t$$invalidate(0, el.scrollTop = (($scrollTime.seconds - timeLimitMin) / $slotDuration.seconds - 0.5) * $slotHeight, el);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*el, $_times, $slotDuration*/ 524291) {\n\t\t\tif (el && $_times && $slotDuration) {\n\t\t\t\tsetTimeout(recheckScrollable);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\tel,\n\t\t$_times,\n\t\tcompact,\n\t\tlines,\n\t\tallDayText,\n\t\t$theme,\n\t\t$_scroll,\n\t\t_viewDates,\n\t\tscrollTime,\n\t\t_scrollable,\n\t\t_scroll,\n\t\tallDayContent,\n\t\tslotDuration,\n\t\tslotHeight,\n\t\ttheme,\n\t\t_slotTimeLimits,\n\t\t_times,\n\t\trecheckScrollable,\n\t\ttimeLimitMin,\n\t\t$slotDuration,\n\t\t$slotHeight,\n\t\t$scrollTime,\n\t\t$_viewDates,\n\t\t$allDayContent,\n\t\t$_slotTimeLimits,\n\t\t$$scope,\n\t\tslots,\n\t\tdiv5_binding\n\t];\n}\n\nclass Body extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$7, create_fragment$7, safe_not_equal, {}, null, [-1, -1]);\n\t}\n}\n\n/* packages/time-grid/src/Event.svelte generated by Svelte v3.55.1 */\n\nfunction create_fragment$6(ctx) {\n\tlet div1;\n\tlet div0;\n\tlet div0_class_value;\n\tlet setContent_action;\n\tlet t;\n\tlet switch_instance;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tvar switch_value = /*$_interaction*/ ctx[7].resizer;\n\n\tfunction switch_props(ctx) {\n\t\treturn { props: { event: /*event*/ ctx[0] } };\n\t}\n\n\tif (switch_value) {\n\t\tswitch_instance = construct_svelte_component(switch_value, switch_props(ctx));\n\t\tswitch_instance.$on(\"pointerdown\", /*createDragHandler*/ ctx[32](true));\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tdiv1 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\t\t\tt = space();\n\t\t\tif (switch_instance) create_component(switch_instance.$$.fragment);\n\t\t\tattr(div0, \"class\", div0_class_value = /*$theme*/ ctx[2].eventBody);\n\t\t\tattr(div1, \"class\", /*classes*/ ctx[4]);\n\t\t\tattr(div1, \"style\", /*style*/ ctx[5]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div1, anchor);\n\t\t\tappend(div1, div0);\n\t\t\tappend(div1, t);\n\t\t\tif (switch_instance) mount_component(switch_instance, div1, null);\n\t\t\t/*div1_binding*/ ctx[47](div1);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\taction_destroyer(setContent_action = setContent.call(null, div0, /*content*/ ctx[6])),\n\t\t\t\t\tlisten(div1, \"click\", function () {\n\t\t\t\t\t\tif (is_function(maybeIgnore(/*createHandler*/ ctx[31](/*$eventClick*/ ctx[8], /*display*/ ctx[1])))) maybeIgnore(/*createHandler*/ ctx[31](/*$eventClick*/ ctx[8], /*display*/ ctx[1])).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div1, \"mouseenter\", function () {\n\t\t\t\t\t\tif (is_function(/*createHandler*/ ctx[31](/*$eventMouseEnter*/ ctx[9], /*display*/ ctx[1]))) /*createHandler*/ ctx[31](/*$eventMouseEnter*/ ctx[9], /*display*/ ctx[1]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div1, \"mouseleave\", function () {\n\t\t\t\t\t\tif (is_function(/*createHandler*/ ctx[31](/*$eventMouseLeave*/ ctx[10], /*display*/ ctx[1]))) /*createHandler*/ ctx[31](/*$eventMouseLeave*/ ctx[10], /*display*/ ctx[1]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div1, \"pointerdown\", function () {\n\t\t\t\t\t\tif (is_function(/*display*/ ctx[1] === 'auto' && /*$_draggable*/ ctx[11](/*event*/ ctx[0])\n\t\t\t\t\t\t? /*createDragHandler*/ ctx[32]()\n\t\t\t\t\t\t: undefined)) (/*display*/ ctx[1] === 'auto' && /*$_draggable*/ ctx[11](/*event*/ ctx[0])\n\t\t\t\t\t\t? /*createDragHandler*/ ctx[32]()\n\t\t\t\t\t\t: undefined).apply(this, arguments);\n\t\t\t\t\t})\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 4 && div0_class_value !== (div0_class_value = /*$theme*/ ctx[2].eventBody)) {\n\t\t\t\tattr(div0, \"class\", div0_class_value);\n\t\t\t}\n\n\t\t\tif (setContent_action && is_function(setContent_action.update) && dirty[0] & /*content*/ 64) setContent_action.update.call(null, /*content*/ ctx[6]);\n\t\t\tconst switch_instance_changes = {};\n\t\t\tif (dirty[0] & /*event*/ 1) switch_instance_changes.event = /*event*/ ctx[0];\n\n\t\t\tif (switch_value !== (switch_value = /*$_interaction*/ ctx[7].resizer)) {\n\t\t\t\tif (switch_instance) {\n\t\t\t\t\tgroup_outros();\n\t\t\t\t\tconst old_component = switch_instance;\n\n\t\t\t\t\ttransition_out(old_component.$$.fragment, 1, 0, () => {\n\t\t\t\t\t\tdestroy_component(old_component, 1);\n\t\t\t\t\t});\n\n\t\t\t\t\tcheck_outros();\n\t\t\t\t}\n\n\t\t\t\tif (switch_value) {\n\t\t\t\t\tswitch_instance = construct_svelte_component(switch_value, switch_props(ctx));\n\t\t\t\t\tswitch_instance.$on(\"pointerdown\", /*createDragHandler*/ ctx[32](true));\n\t\t\t\t\tcreate_component(switch_instance.$$.fragment);\n\t\t\t\t\ttransition_in(switch_instance.$$.fragment, 1);\n\t\t\t\t\tmount_component(switch_instance, div1, null);\n\t\t\t\t} else {\n\t\t\t\t\tswitch_instance = null;\n\t\t\t\t}\n\t\t\t} else if (switch_value) {\n\t\t\t\tswitch_instance.$set(switch_instance_changes);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*classes*/ 16) {\n\t\t\t\tattr(div1, \"class\", /*classes*/ ctx[4]);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*style*/ 32) {\n\t\t\t\tattr(div1, \"style\", /*style*/ ctx[5]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\tif (switch_instance) transition_in(switch_instance.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\tif (switch_instance) transition_out(switch_instance.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div1);\n\t\t\tif (switch_instance) destroy_component(switch_instance);\n\t\t\t/*div1_binding*/ ctx[47](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction instance$6($$self, $$props, $$invalidate) {\n\tlet $_interaction;\n\tlet $_view;\n\tlet $eventDidMount;\n\tlet $_intlEventTime;\n\tlet $theme;\n\tlet $eventContent;\n\tlet $displayEventEnd;\n\tlet $_classes;\n\tlet $slotEventOverlap;\n\tlet $eventColor;\n\tlet $eventBackgroundColor;\n\tlet $_resBgColor;\n\tlet $slotHeight;\n\tlet $_slotTimeLimits;\n\tlet $slotDuration;\n\tlet $eventClick;\n\tlet $eventMouseEnter;\n\tlet $eventMouseLeave;\n\tlet $_draggable;\n\tlet { date } = $$props;\n\tlet { chunk } = $$props;\n\tlet { displayEventEnd, eventBackgroundColor, eventColor, eventContent, eventClick, eventDidMount, eventMouseEnter, eventMouseLeave, slotEventOverlap, slotDuration, slotHeight, theme, _view, _intlEventTime, _interaction, _classes, _draggable, _resBgColor } = getContext('state');\n\tcomponent_subscribe($$self, displayEventEnd, value => $$invalidate(38, $displayEventEnd = value));\n\tcomponent_subscribe($$self, eventBackgroundColor, value => $$invalidate(42, $eventBackgroundColor = value));\n\tcomponent_subscribe($$self, eventColor, value => $$invalidate(41, $eventColor = value));\n\tcomponent_subscribe($$self, eventContent, value => $$invalidate(37, $eventContent = value));\n\tcomponent_subscribe($$self, eventClick, value => $$invalidate(8, $eventClick = value));\n\tcomponent_subscribe($$self, eventDidMount, value => $$invalidate(49, $eventDidMount = value));\n\tcomponent_subscribe($$self, eventMouseEnter, value => $$invalidate(9, $eventMouseEnter = value));\n\tcomponent_subscribe($$self, eventMouseLeave, value => $$invalidate(10, $eventMouseLeave = value));\n\tcomponent_subscribe($$self, slotEventOverlap, value => $$invalidate(40, $slotEventOverlap = value));\n\tcomponent_subscribe($$self, slotDuration, value => $$invalidate(46, $slotDuration = value));\n\tcomponent_subscribe($$self, slotHeight, value => $$invalidate(44, $slotHeight = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(2, $theme = value));\n\tcomponent_subscribe($$self, _view, value => $$invalidate(35, $_view = value));\n\tcomponent_subscribe($$self, _intlEventTime, value => $$invalidate(36, $_intlEventTime = value));\n\tcomponent_subscribe($$self, _interaction, value => $$invalidate(7, $_interaction = value));\n\tcomponent_subscribe($$self, _classes, value => $$invalidate(39, $_classes = value));\n\tcomponent_subscribe($$self, _draggable, value => $$invalidate(11, $_draggable = value));\n\tcomponent_subscribe($$self, _resBgColor, value => $$invalidate(43, $_resBgColor = value));\n\tlet { _slotTimeLimits, _viewResources } = getContext('view-state');\n\tcomponent_subscribe($$self, _slotTimeLimits, value => $$invalidate(45, $_slotTimeLimits = value));\n\tlet el;\n\tlet event;\n\tlet display;\n\tlet classes;\n\tlet style;\n\tlet content;\n\tlet timeText;\n\n\tonMount(() => {\n\t\tif (is_function($eventDidMount)) {\n\t\t\t$eventDidMount({\n\t\t\t\tevent: toEventWithLocalDates(event),\n\t\t\t\ttimeText,\n\t\t\t\tel,\n\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t});\n\t\t}\n\t});\n\n\tfunction createHandler(fn, display) {\n\t\treturn display !== 'preview' && is_function(fn)\n\t\t? jsEvent => fn({\n\t\t\t\tevent: toEventWithLocalDates(event),\n\t\t\t\tel,\n\t\t\t\tjsEvent,\n\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t})\n\t\t: undefined;\n\t}\n\n\tfunction createDragHandler(resize) {\n\t\treturn jsEvent => $_interaction.action.dragTimeGrid(event, el, jsEvent, _viewResources, false, resize);\n\t}\n\n\tfunction div1_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tel = $$value;\n\t\t\t$$invalidate(3, el);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('date' in $$props) $$invalidate(33, date = $$props.date);\n\t\tif ('chunk' in $$props) $$invalidate(34, chunk = $$props.chunk);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[1] & /*chunk*/ 8) {\n\t\t\t$$invalidate(0, event = chunk.event);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*event, style, display, $theme*/ 39 | $$self.$$.dirty[1] & /*$slotDuration, $_slotTimeLimits, chunk, date, $slotHeight, $_resBgColor, $eventBackgroundColor, $eventColor, $slotEventOverlap, $_classes*/ 65292) {\n\t\t\t{\n\t\t\t\t$$invalidate(1, display = event.display);\n\n\t\t\t\t// Style\n\t\t\t\tlet step = $slotDuration.seconds / 60;\n\n\t\t\t\tlet offset = $_slotTimeLimits.min.seconds / 60;\n\t\t\t\tlet start = (chunk.start - date) / 1000 / 60;\n\t\t\t\tlet end = (chunk.end - date) / 1000 / 60;\n\t\t\t\tlet top = (start - offset) / step * $slotHeight;\n\t\t\t\tlet height = (end - start) / step * $slotHeight;\n\t\t\t\tlet maxHeight = ($_slotTimeLimits.max.seconds / 60 - start) / step * $slotHeight;\n\t\t\t\tlet bgColor = event.backgroundColor || $_resBgColor(event) || $eventBackgroundColor || $eventColor;\n\t\t\t\t$$invalidate(5, style = `top:${top}px;` + `min-height:${height}px;` + `height:${height}px;` + `max-height:${maxHeight}px;`);\n\n\t\t\t\tif (bgColor) {\n\t\t\t\t\t$$invalidate(5, style += `background-color:${bgColor};`);\n\t\t\t\t}\n\n\t\t\t\tif (display === 'auto' || display === 'ghost') {\n\t\t\t\t\t$$invalidate(5, style += `z-index:${chunk.column + 1};` + `left:${100 / chunk.group.columns.length * chunk.column}%;` + `width:${100 / chunk.group.columns.length * ($slotEventOverlap\n\t\t\t\t\t? 0.5 * (1 + chunk.group.columns.length - chunk.column)\n\t\t\t\t\t: 1)}%;`);\n\t\t\t\t}\n\n\t\t\t\t// Class\n\t\t\t\t$$invalidate(4, classes = $_classes(display === 'background' ? $theme.bgEvent : $theme.event, event));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$theme*/ 4 | $$self.$$.dirty[1] & /*chunk, $displayEventEnd, $eventContent, $_intlEventTime, $_view*/ 248) {\n\t\t\t// Content\n\t\t\t$$invalidate(6, [timeText, content] = createEventContent(chunk, $displayEventEnd, $eventContent, $theme, $_intlEventTime, $_view), content);\n\t\t}\n\t};\n\n\treturn [\n\t\tevent,\n\t\tdisplay,\n\t\t$theme,\n\t\tel,\n\t\tclasses,\n\t\tstyle,\n\t\tcontent,\n\t\t$_interaction,\n\t\t$eventClick,\n\t\t$eventMouseEnter,\n\t\t$eventMouseLeave,\n\t\t$_draggable,\n\t\tdisplayEventEnd,\n\t\teventBackgroundColor,\n\t\teventColor,\n\t\teventContent,\n\t\teventClick,\n\t\teventDidMount,\n\t\teventMouseEnter,\n\t\teventMouseLeave,\n\t\tslotEventOverlap,\n\t\tslotDuration,\n\t\tslotHeight,\n\t\ttheme,\n\t\t_view,\n\t\t_intlEventTime,\n\t\t_interaction,\n\t\t_classes,\n\t\t_draggable,\n\t\t_resBgColor,\n\t\t_slotTimeLimits,\n\t\tcreateHandler,\n\t\tcreateDragHandler,\n\t\tdate,\n\t\tchunk,\n\t\t$_view,\n\t\t$_intlEventTime,\n\t\t$eventContent,\n\t\t$displayEventEnd,\n\t\t$_classes,\n\t\t$slotEventOverlap,\n\t\t$eventColor,\n\t\t$eventBackgroundColor,\n\t\t$_resBgColor,\n\t\t$slotHeight,\n\t\t$_slotTimeLimits,\n\t\t$slotDuration,\n\t\tdiv1_binding\n\t];\n}\n\nclass Event$1 extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$6, create_fragment$6, safe_not_equal, { date: 33, chunk: 34 }, null, [-1, -1]);\n\t}\n}\n\n/* packages/time-grid/src/NowIndicator.svelte generated by Svelte v3.55.1 */\n\nfunction create_fragment$5(ctx) {\n\tlet div;\n\tlet div_class_value;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[1].nowIndicator);\n\t\t\tset_style(div, \"top\", /*top*/ ctx[0] + \"px\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (dirty & /*$theme*/ 2 && div_class_value !== (div_class_value = /*$theme*/ ctx[1].nowIndicator)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\n\t\t\tif (dirty & /*top*/ 1) {\n\t\t\t\tset_style(div, \"top\", /*top*/ ctx[0] + \"px\");\n\t\t\t}\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t}\n\t};\n}\n\nfunction instance$5($$self, $$props, $$invalidate) {\n\tlet $slotHeight;\n\tlet $_slotTimeLimits;\n\tlet $slotDuration;\n\tlet $_today;\n\tlet $_now;\n\tlet $theme;\n\tlet { slotDuration, slotHeight, theme, _now, _today } = getContext('state');\n\tcomponent_subscribe($$self, slotDuration, value => $$invalidate(11, $slotDuration = value));\n\tcomponent_subscribe($$self, slotHeight, value => $$invalidate(9, $slotHeight = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(1, $theme = value));\n\tcomponent_subscribe($$self, _now, value => $$invalidate(13, $_now = value));\n\tcomponent_subscribe($$self, _today, value => $$invalidate(12, $_today = value));\n\tlet { _slotTimeLimits } = getContext('view-state');\n\tcomponent_subscribe($$self, _slotTimeLimits, value => $$invalidate(10, $_slotTimeLimits = value));\n\tlet start;\n\tlet top = 0;\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*$_now, $_today*/ 12288) {\n\t\t\t$$invalidate(8, start = ($_now - $_today) / 1000 / 60);\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*$slotDuration, $_slotTimeLimits, start, $slotHeight*/ 3840) {\n\t\t\t{\n\t\t\t\t// Style\n\t\t\t\tlet step = $slotDuration.seconds / 60;\n\n\t\t\t\tlet offset = $_slotTimeLimits.min.seconds / 60;\n\t\t\t\t$$invalidate(0, top = (start - offset) / step * $slotHeight);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\ttop,\n\t\t$theme,\n\t\tslotDuration,\n\t\tslotHeight,\n\t\ttheme,\n\t\t_now,\n\t\t_today,\n\t\t_slotTimeLimits,\n\t\tstart,\n\t\t$slotHeight,\n\t\t$_slotTimeLimits,\n\t\t$slotDuration,\n\t\t$_today,\n\t\t$_now\n\t];\n}\n\nclass NowIndicator extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$5, create_fragment$5, safe_not_equal, {});\n\t}\n}\n\n/* packages/time-grid/src/Day.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context$3(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[42] = list[i];\n\treturn child_ctx;\n}\n\nfunction get_each_context_1$1(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[42] = list[i];\n\treturn child_ctx;\n}\n\n// (117:8) {#each bgChunks as chunk (chunk.event)}\nfunction create_each_block_1$1(key_1, ctx) {\n\tlet first;\n\tlet event;\n\tlet current;\n\n\tevent = new Event$1({\n\t\t\tprops: {\n\t\t\t\tdate: /*date*/ ctx[0],\n\t\t\t\tchunk: /*chunk*/ ctx[42]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tkey: key_1,\n\t\tfirst: null,\n\t\tc() {\n\t\t\tfirst = empty();\n\t\t\tcreate_component(event.$$.fragment);\n\t\t\tthis.first = first;\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, first, anchor);\n\t\t\tmount_component(event, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\t\t\tconst event_changes = {};\n\t\t\tif (dirty[0] & /*date*/ 1) event_changes.date = /*date*/ ctx[0];\n\t\t\tif (dirty[0] & /*bgChunks*/ 8) event_changes.chunk = /*chunk*/ ctx[42];\n\t\t\tevent.$set(event_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(event.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(event.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(first);\n\t\t\tdestroy_component(event, detaching);\n\t\t}\n\t};\n}\n\n// (123:8) {#if iChunks[1]}\nfunction create_if_block_2(ctx) {\n\tlet event;\n\tlet current;\n\n\tevent = new Event$1({\n\t\t\tprops: {\n\t\t\t\tdate: /*date*/ ctx[0],\n\t\t\t\tchunk: /*iChunks*/ ctx[4][1]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(event.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(event, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst event_changes = {};\n\t\t\tif (dirty[0] & /*date*/ 1) event_changes.date = /*date*/ ctx[0];\n\t\t\tif (dirty[0] & /*iChunks*/ 16) event_changes.chunk = /*iChunks*/ ctx[4][1];\n\t\t\tevent.$set(event_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(event.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(event.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(event, detaching);\n\t\t}\n\t};\n}\n\n// (126:8) {#each chunks as chunk (chunk.event)}\nfunction create_each_block$3(key_1, ctx) {\n\tlet first;\n\tlet event;\n\tlet current;\n\n\tevent = new Event$1({\n\t\t\tprops: {\n\t\t\t\tdate: /*date*/ ctx[0],\n\t\t\t\tchunk: /*chunk*/ ctx[42]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tkey: key_1,\n\t\tfirst: null,\n\t\tc() {\n\t\t\tfirst = empty();\n\t\t\tcreate_component(event.$$.fragment);\n\t\t\tthis.first = first;\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, first, anchor);\n\t\t\tmount_component(event, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\t\t\tconst event_changes = {};\n\t\t\tif (dirty[0] & /*date*/ 1) event_changes.date = /*date*/ ctx[0];\n\t\t\tif (dirty[0] & /*chunks*/ 4) event_changes.chunk = /*chunk*/ ctx[42];\n\t\t\tevent.$set(event_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(event.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(event.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(first);\n\t\t\tdestroy_component(event, detaching);\n\t\t}\n\t};\n}\n\n// (130:8) {#if iChunks[0] && !iChunks[0].event.allDay}\nfunction create_if_block_1(ctx) {\n\tlet event;\n\tlet current;\n\n\tevent = new Event$1({\n\t\t\tprops: {\n\t\t\t\tdate: /*date*/ ctx[0],\n\t\t\t\tchunk: /*iChunks*/ ctx[4][0]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(event.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(event, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst event_changes = {};\n\t\t\tif (dirty[0] & /*date*/ 1) event_changes.date = /*date*/ ctx[0];\n\t\t\tif (dirty[0] & /*iChunks*/ 16) event_changes.chunk = /*iChunks*/ ctx[4][0];\n\t\t\tevent.$set(event_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(event.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(event.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(event, detaching);\n\t\t}\n\t};\n}\n\n// (136:8) {#if $nowIndicator && isToday}\nfunction create_if_block$2(ctx) {\n\tlet nowindicator;\n\tlet current;\n\tnowindicator = new NowIndicator({});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(nowindicator.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(nowindicator, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(nowindicator.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(nowindicator.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(nowindicator, detaching);\n\t\t}\n\t};\n}\n\nfunction create_fragment$4(ctx) {\n\tlet div3;\n\tlet div0;\n\tlet each_blocks_1 = [];\n\tlet each0_lookup = new Map();\n\tlet div0_class_value;\n\tlet t0;\n\tlet div1;\n\tlet t1;\n\tlet each_blocks = [];\n\tlet each1_lookup = new Map();\n\tlet t2;\n\tlet div1_class_value;\n\tlet t3;\n\tlet div2;\n\tlet div2_class_value;\n\tlet div3_class_value;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tlet each_value_1 = /*bgChunks*/ ctx[3];\n\tconst get_key = ctx => /*chunk*/ ctx[42].event;\n\n\tfor (let i = 0; i < each_value_1.length; i += 1) {\n\t\tlet child_ctx = get_each_context_1$1(ctx, each_value_1, i);\n\t\tlet key = get_key(child_ctx);\n\t\teach0_lookup.set(key, each_blocks_1[i] = create_each_block_1$1(key, child_ctx));\n\t}\n\n\tlet if_block0 = /*iChunks*/ ctx[4][1] && create_if_block_2(ctx);\n\tlet each_value = /*chunks*/ ctx[2];\n\tconst get_key_1 = ctx => /*chunk*/ ctx[42].event;\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\tlet child_ctx = get_each_context$3(ctx, each_value, i);\n\t\tlet key = get_key_1(child_ctx);\n\t\teach1_lookup.set(key, each_blocks[i] = create_each_block$3(key, child_ctx));\n\t}\n\n\tlet if_block1 = /*iChunks*/ ctx[4][0] && !/*iChunks*/ ctx[4][0].event.allDay && create_if_block_1(ctx);\n\tlet if_block2 = /*$nowIndicator*/ ctx[11] && /*isToday*/ ctx[5] && create_if_block$2();\n\n\treturn {\n\t\tc() {\n\t\t\tdiv3 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\n\t\t\tfor (let i = 0; i < each_blocks_1.length; i += 1) {\n\t\t\t\teach_blocks_1[i].c();\n\t\t\t}\n\n\t\t\tt0 = space();\n\t\t\tdiv1 = element(\"div\");\n\t\t\tif (if_block0) if_block0.c();\n\t\t\tt1 = space();\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tt2 = space();\n\t\t\tif (if_block1) if_block1.c();\n\t\t\tt3 = space();\n\t\t\tdiv2 = element(\"div\");\n\t\t\tif (if_block2) if_block2.c();\n\t\t\tattr(div0, \"class\", div0_class_value = /*$theme*/ ctx[7].bgEvents);\n\t\t\tattr(div1, \"class\", div1_class_value = /*$theme*/ ctx[7].events);\n\t\t\tattr(div2, \"class\", div2_class_value = /*$theme*/ ctx[7].extra);\n\n\t\t\tattr(div3, \"class\", div3_class_value = \"\" + (/*$theme*/ ctx[7].day + (/*isToday*/ ctx[5] ? ' ' + /*$theme*/ ctx[7].today : '') + (/*highlight*/ ctx[6]\n\t\t\t? ' ' + /*$theme*/ ctx[7].highlight\n\t\t\t: '')));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div3, anchor);\n\t\t\tappend(div3, div0);\n\n\t\t\tfor (let i = 0; i < each_blocks_1.length; i += 1) {\n\t\t\t\teach_blocks_1[i].m(div0, null);\n\t\t\t}\n\n\t\t\tappend(div3, t0);\n\t\t\tappend(div3, div1);\n\t\t\tif (if_block0) if_block0.m(div1, null);\n\t\t\tappend(div1, t1);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(div1, null);\n\t\t\t}\n\n\t\t\tappend(div1, t2);\n\t\t\tif (if_block1) if_block1.m(div1, null);\n\t\t\tappend(div3, t3);\n\t\t\tappend(div3, div2);\n\t\t\tif (if_block2) if_block2.m(div2, null);\n\t\t\t/*div3_binding*/ ctx[36](div3);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(div3, \"click\", function () {\n\t\t\t\t\t\tif (is_function(maybeIgnore(/*createClickHandler*/ ctx[25](/*$dateClick*/ ctx[8])))) maybeIgnore(/*createClickHandler*/ ctx[25](/*$dateClick*/ ctx[8])).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div3, \"pointerenter\", function () {\n\t\t\t\t\t\tif (is_function(/*createPointerEnterHandler*/ ctx[26](/*$_interaction*/ ctx[9]))) /*createPointerEnterHandler*/ ctx[26](/*$_interaction*/ ctx[9]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div3, \"pointerleave\", function () {\n\t\t\t\t\t\tif (is_function(createPointerLeaveHandler(/*$_interaction*/ ctx[9]))) createPointerLeaveHandler(/*$_interaction*/ ctx[9]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div3, \"pointerdown\", function () {\n\t\t\t\t\t\tif (is_function(/*createPointerDownHandler*/ ctx[27](/*$_interaction*/ ctx[9], /*$selectable*/ ctx[10]))) /*createPointerDownHandler*/ ctx[27](/*$_interaction*/ ctx[9], /*$selectable*/ ctx[10]).apply(this, arguments);\n\t\t\t\t\t})\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (dirty[0] & /*date, bgChunks*/ 9) {\n\t\t\t\teach_value_1 = /*bgChunks*/ ctx[3];\n\t\t\t\tgroup_outros();\n\t\t\t\teach_blocks_1 = update_keyed_each(each_blocks_1, dirty, get_key, 1, ctx, each_value_1, each0_lookup, div0, outro_and_destroy_block, create_each_block_1$1, null, get_each_context_1$1);\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 128 && div0_class_value !== (div0_class_value = /*$theme*/ ctx[7].bgEvents)) {\n\t\t\t\tattr(div0, \"class\", div0_class_value);\n\t\t\t}\n\n\t\t\tif (/*iChunks*/ ctx[4][1]) {\n\t\t\t\tif (if_block0) {\n\t\t\t\t\tif_block0.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*iChunks*/ 16) {\n\t\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block0 = create_if_block_2(ctx);\n\t\t\t\t\tif_block0.c();\n\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\tif_block0.m(div1, t1);\n\t\t\t\t}\n\t\t\t} else if (if_block0) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block0, 1, 1, () => {\n\t\t\t\t\tif_block0 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*date, chunks*/ 5) {\n\t\t\t\teach_value = /*chunks*/ ctx[2];\n\t\t\t\tgroup_outros();\n\t\t\t\teach_blocks = update_keyed_each(each_blocks, dirty, get_key_1, 1, ctx, each_value, each1_lookup, div1, outro_and_destroy_block, create_each_block$3, t2, get_each_context$3);\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (/*iChunks*/ ctx[4][0] && !/*iChunks*/ ctx[4][0].event.allDay) {\n\t\t\t\tif (if_block1) {\n\t\t\t\t\tif_block1.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*iChunks*/ 16) {\n\t\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block1 = create_if_block_1(ctx);\n\t\t\t\t\tif_block1.c();\n\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\tif_block1.m(div1, null);\n\t\t\t\t}\n\t\t\t} else if (if_block1) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block1, 1, 1, () => {\n\t\t\t\t\tif_block1 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 128 && div1_class_value !== (div1_class_value = /*$theme*/ ctx[7].events)) {\n\t\t\t\tattr(div1, \"class\", div1_class_value);\n\t\t\t}\n\n\t\t\tif (/*$nowIndicator*/ ctx[11] && /*isToday*/ ctx[5]) {\n\t\t\t\tif (if_block2) {\n\t\t\t\t\tif (dirty[0] & /*$nowIndicator, isToday*/ 2080) {\n\t\t\t\t\t\ttransition_in(if_block2, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block2 = create_if_block$2();\n\t\t\t\t\tif_block2.c();\n\t\t\t\t\ttransition_in(if_block2, 1);\n\t\t\t\t\tif_block2.m(div2, null);\n\t\t\t\t}\n\t\t\t} else if (if_block2) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block2, 1, 1, () => {\n\t\t\t\t\tif_block2 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 128 && div2_class_value !== (div2_class_value = /*$theme*/ ctx[7].extra)) {\n\t\t\t\tattr(div2, \"class\", div2_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme, isToday, highlight*/ 224 && div3_class_value !== (div3_class_value = \"\" + (/*$theme*/ ctx[7].day + (/*isToday*/ ctx[5] ? ' ' + /*$theme*/ ctx[7].today : '') + (/*highlight*/ ctx[6]\n\t\t\t? ' ' + /*$theme*/ ctx[7].highlight\n\t\t\t: '')))) {\n\t\t\t\tattr(div3, \"class\", div3_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value_1.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks_1[i]);\n\t\t\t}\n\n\t\t\ttransition_in(if_block0);\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\ttransition_in(if_block1);\n\t\t\ttransition_in(if_block2);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\tfor (let i = 0; i < each_blocks_1.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks_1[i]);\n\t\t\t}\n\n\t\t\ttransition_out(if_block0);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\ttransition_out(if_block1);\n\t\t\ttransition_out(if_block2);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div3);\n\n\t\t\tfor (let i = 0; i < each_blocks_1.length; i += 1) {\n\t\t\t\teach_blocks_1[i].d();\n\t\t\t}\n\n\t\t\tif (if_block0) if_block0.d();\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].d();\n\t\t\t}\n\n\t\t\tif (if_block1) if_block1.d();\n\t\t\tif (if_block2) if_block2.d();\n\t\t\t/*div3_binding*/ ctx[36](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction createPointerLeaveHandler(interaction) {\n\treturn interaction.pointer\n\t? interaction.pointer.leave\n\t: undefined;\n}\n\nfunction instance$4($$self, $$props, $$invalidate) {\n\tlet $_slotTimeLimits;\n\tlet $_view;\n\tlet $slotDuration;\n\tlet $slotHeight;\n\tlet $highlightedDates;\n\tlet $_today;\n\tlet $_iEvents;\n\tlet $_events;\n\tlet $theme;\n\tlet $dateClick;\n\tlet $_interaction;\n\tlet $selectable;\n\tlet $nowIndicator;\n\tlet { date } = $$props;\n\tlet { resource = undefined } = $$props;\n\tlet { _events, _iEvents, dateClick, highlightedDates, nowIndicator, slotDuration, slotHeight, selectable, theme, _interaction, _today, _view } = getContext('state');\n\tcomponent_subscribe($$self, _events, value => $$invalidate(35, $_events = value));\n\tcomponent_subscribe($$self, _iEvents, value => $$invalidate(34, $_iEvents = value));\n\tcomponent_subscribe($$self, dateClick, value => $$invalidate(8, $dateClick = value));\n\tcomponent_subscribe($$self, highlightedDates, value => $$invalidate(32, $highlightedDates = value));\n\tcomponent_subscribe($$self, nowIndicator, value => $$invalidate(11, $nowIndicator = value));\n\tcomponent_subscribe($$self, slotDuration, value => $$invalidate(38, $slotDuration = value));\n\tcomponent_subscribe($$self, slotHeight, value => $$invalidate(39, $slotHeight = value));\n\tcomponent_subscribe($$self, selectable, value => $$invalidate(10, $selectable = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(7, $theme = value));\n\tcomponent_subscribe($$self, _interaction, value => $$invalidate(9, $_interaction = value));\n\tcomponent_subscribe($$self, _today, value => $$invalidate(33, $_today = value));\n\tcomponent_subscribe($$self, _view, value => $$invalidate(37, $_view = value));\n\tlet { _slotTimeLimits, _viewResources } = getContext('view-state');\n\tcomponent_subscribe($$self, _slotTimeLimits, value => $$invalidate(31, $_slotTimeLimits = value));\n\tlet el;\n\tlet chunks, bgChunks, iChunks = [];\n\tlet isToday, highlight;\n\tlet start, end;\n\n\tfunction dateFromPoint(y) {\n\t\ty -= rect(el).top;\n\t\treturn addDuration(cloneDate(date), $slotDuration, Math.floor(y / $slotHeight + $_slotTimeLimits.min.seconds / $slotDuration.seconds));\n\t}\n\n\tfunction createClickHandler(fn) {\n\t\treturn is_function(fn)\n\t\t? jsEvent => {\n\t\t\t\tlet d = dateFromPoint(jsEvent.clientY);\n\n\t\t\t\tfn({\n\t\t\t\t\tallDay: false,\n\t\t\t\t\tdate: toLocalDate(d),\n\t\t\t\t\tdateStr: toISOString(d),\n\t\t\t\t\tdayEl: el,\n\t\t\t\t\tjsEvent,\n\t\t\t\t\tview: toViewWithLocalDates($_view),\n\t\t\t\t\tresource\n\t\t\t\t});\n\t\t\t}\n\t\t: undefined;\n\t}\n\n\tfunction createPointerEnterHandler(interaction) {\n\t\treturn interaction.pointer\n\t\t? jsEvent => interaction.pointer.enterTimeGrid(date, el, jsEvent, _slotTimeLimits, resource)\n\t\t: undefined;\n\t}\n\n\tfunction createPointerDownHandler(interaction, selectable) {\n\t\treturn selectable && interaction.action\n\t\t? jsEvent => interaction.action.selectTimeGrid(date, el, jsEvent, _viewResources, $_slotTimeLimits, false)\n\t\t: undefined;\n\t}\n\n\tfunction div3_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tel = $$value;\n\t\t\t$$invalidate(1, el);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('date' in $$props) $$invalidate(0, date = $$props.date);\n\t\tif ('resource' in $$props) $$invalidate(28, resource = $$props.resource);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*date*/ 1 | $$self.$$.dirty[1] & /*$_slotTimeLimits*/ 1) {\n\t\t\t{\n\t\t\t\t$$invalidate(29, start = addDuration(cloneDate(date), $_slotTimeLimits.min));\n\t\t\t\t$$invalidate(30, end = addDuration(cloneDate(date), $_slotTimeLimits.max));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*start, end, resource, bgChunks, chunks*/ 1879048204 | $$self.$$.dirty[1] & /*$_events*/ 16) {\n\t\t\t{\n\t\t\t\t$$invalidate(2, chunks = []);\n\t\t\t\t$$invalidate(3, bgChunks = []);\n\n\t\t\t\tfor (let event of $_events) {\n\t\t\t\t\tif (!event.allDay && eventIntersects(event, start, end, resource, true)) {\n\t\t\t\t\t\tlet chunk = createEventChunk(event, start, end);\n\n\t\t\t\t\t\tswitch (event.display) {\n\t\t\t\t\t\t\tcase 'background':\n\t\t\t\t\t\t\t\tbgChunks.push(chunk);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tchunks.push(chunk);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroupEventChunks(chunks);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*start, end, resource*/ 1879048192 | $$self.$$.dirty[1] & /*$_iEvents*/ 8) {\n\t\t\t$$invalidate(4, iChunks = $_iEvents.map(event => event && eventIntersects(event, start, end, resource, true)\n\t\t\t? createEventChunk(event, start, end)\n\t\t\t: null));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*date*/ 1 | $$self.$$.dirty[1] & /*$_today*/ 4) {\n\t\t\t$$invalidate(5, isToday = datesEqual(date, $_today));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*date*/ 1 | $$self.$$.dirty[1] & /*$highlightedDates*/ 2) {\n\t\t\t$$invalidate(6, highlight = $highlightedDates.some(d => datesEqual(d, date)));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*el*/ 2) {\n\t\t\tif (el) {\n\t\t\t\tsetFn(el, dateFromPoint);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\tdate,\n\t\tel,\n\t\tchunks,\n\t\tbgChunks,\n\t\tiChunks,\n\t\tisToday,\n\t\thighlight,\n\t\t$theme,\n\t\t$dateClick,\n\t\t$_interaction,\n\t\t$selectable,\n\t\t$nowIndicator,\n\t\t_events,\n\t\t_iEvents,\n\t\tdateClick,\n\t\thighlightedDates,\n\t\tnowIndicator,\n\t\tslotDuration,\n\t\tslotHeight,\n\t\tselectable,\n\t\ttheme,\n\t\t_interaction,\n\t\t_today,\n\t\t_view,\n\t\t_slotTimeLimits,\n\t\tcreateClickHandler,\n\t\tcreatePointerEnterHandler,\n\t\tcreatePointerDownHandler,\n\t\tresource,\n\t\tstart,\n\t\tend,\n\t\t$_slotTimeLimits,\n\t\t$highlightedDates,\n\t\t$_today,\n\t\t$_iEvents,\n\t\t$_events,\n\t\tdiv3_binding\n\t];\n}\n\nclass Day$1 extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$4, create_fragment$4, safe_not_equal, { date: 0, resource: 28 }, null, [-1, -1]);\n\t}\n}\n\n/* packages/time-grid/src/all-day/Event.svelte generated by Svelte v3.55.1 */\n\nfunction create_fragment$3(ctx) {\n\tlet div1;\n\tlet div0;\n\tlet div0_class_value;\n\tlet setContent_action;\n\tlet t;\n\tlet switch_instance;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tvar switch_value = /*$_interaction*/ ctx[7].resizer;\n\n\tfunction switch_props(ctx) {\n\t\treturn { props: { event: /*event*/ ctx[0] } };\n\t}\n\n\tif (switch_value) {\n\t\tswitch_instance = construct_svelte_component(switch_value, switch_props(ctx));\n\t\tswitch_instance.$on(\"pointerdown\", /*createDragHandler*/ ctx[27](true));\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tdiv1 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\t\t\tt = space();\n\t\t\tif (switch_instance) create_component(switch_instance.$$.fragment);\n\t\t\tattr(div0, \"class\", div0_class_value = /*$theme*/ ctx[1].eventBody);\n\t\t\tattr(div1, \"class\", /*classes*/ ctx[3]);\n\t\t\tattr(div1, \"style\", /*style*/ ctx[4]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div1, anchor);\n\t\t\tappend(div1, div0);\n\t\t\tappend(div1, t);\n\t\t\tif (switch_instance) mount_component(switch_instance, div1, null);\n\t\t\t/*div1_binding*/ ctx[39](div1);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\taction_destroyer(setContent_action = setContent.call(null, div0, /*content*/ ctx[5])),\n\t\t\t\t\tlisten(div1, \"click\", function () {\n\t\t\t\t\t\tif (is_function(maybeIgnore(/*createHandler*/ ctx[26](/*$eventClick*/ ctx[8], /*display*/ ctx[6])))) maybeIgnore(/*createHandler*/ ctx[26](/*$eventClick*/ ctx[8], /*display*/ ctx[6])).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div1, \"mouseenter\", function () {\n\t\t\t\t\t\tif (is_function(/*createHandler*/ ctx[26](/*$eventMouseEnter*/ ctx[9], /*display*/ ctx[6]))) /*createHandler*/ ctx[26](/*$eventMouseEnter*/ ctx[9], /*display*/ ctx[6]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div1, \"mouseleave\", function () {\n\t\t\t\t\t\tif (is_function(/*createHandler*/ ctx[26](/*$eventMouseLeave*/ ctx[10], /*display*/ ctx[6]))) /*createHandler*/ ctx[26](/*$eventMouseLeave*/ ctx[10], /*display*/ ctx[6]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div1, \"pointerdown\", function () {\n\t\t\t\t\t\tif (is_function(/*display*/ ctx[6] === 'auto' && /*$_draggable*/ ctx[11](/*event*/ ctx[0])\n\t\t\t\t\t\t? /*createDragHandler*/ ctx[27]()\n\t\t\t\t\t\t: undefined)) (/*display*/ ctx[6] === 'auto' && /*$_draggable*/ ctx[11](/*event*/ ctx[0])\n\t\t\t\t\t\t? /*createDragHandler*/ ctx[27]()\n\t\t\t\t\t\t: undefined).apply(this, arguments);\n\t\t\t\t\t})\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 2 && div0_class_value !== (div0_class_value = /*$theme*/ ctx[1].eventBody)) {\n\t\t\t\tattr(div0, \"class\", div0_class_value);\n\t\t\t}\n\n\t\t\tif (setContent_action && is_function(setContent_action.update) && dirty[0] & /*content*/ 32) setContent_action.update.call(null, /*content*/ ctx[5]);\n\t\t\tconst switch_instance_changes = {};\n\t\t\tif (dirty[0] & /*event*/ 1) switch_instance_changes.event = /*event*/ ctx[0];\n\n\t\t\tif (switch_value !== (switch_value = /*$_interaction*/ ctx[7].resizer)) {\n\t\t\t\tif (switch_instance) {\n\t\t\t\t\tgroup_outros();\n\t\t\t\t\tconst old_component = switch_instance;\n\n\t\t\t\t\ttransition_out(old_component.$$.fragment, 1, 0, () => {\n\t\t\t\t\t\tdestroy_component(old_component, 1);\n\t\t\t\t\t});\n\n\t\t\t\t\tcheck_outros();\n\t\t\t\t}\n\n\t\t\t\tif (switch_value) {\n\t\t\t\t\tswitch_instance = construct_svelte_component(switch_value, switch_props(ctx));\n\t\t\t\t\tswitch_instance.$on(\"pointerdown\", /*createDragHandler*/ ctx[27](true));\n\t\t\t\t\tcreate_component(switch_instance.$$.fragment);\n\t\t\t\t\ttransition_in(switch_instance.$$.fragment, 1);\n\t\t\t\t\tmount_component(switch_instance, div1, null);\n\t\t\t\t} else {\n\t\t\t\t\tswitch_instance = null;\n\t\t\t\t}\n\t\t\t} else if (switch_value) {\n\t\t\t\tswitch_instance.$set(switch_instance_changes);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*classes*/ 8) {\n\t\t\t\tattr(div1, \"class\", /*classes*/ ctx[3]);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*style*/ 16) {\n\t\t\t\tattr(div1, \"style\", /*style*/ ctx[4]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\tif (switch_instance) transition_in(switch_instance.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\tif (switch_instance) transition_out(switch_instance.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div1);\n\t\t\tif (switch_instance) destroy_component(switch_instance);\n\t\t\t/*div1_binding*/ ctx[39](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction instance$3($$self, $$props, $$invalidate) {\n\tlet $_interaction;\n\tlet $_view;\n\tlet $eventDidMount;\n\tlet $_intlEventTime;\n\tlet $theme;\n\tlet $eventContent;\n\tlet $displayEventEnd;\n\tlet $_classes;\n\tlet $eventColor;\n\tlet $eventBackgroundColor;\n\tlet $eventClick;\n\tlet $eventMouseEnter;\n\tlet $eventMouseLeave;\n\tlet $_draggable;\n\tlet { chunk } = $$props;\n\tlet { longChunks = {} } = $$props;\n\tlet { displayEventEnd, eventBackgroundColor, eventClick, eventColor, eventContent, eventDidMount, eventMouseEnter, eventMouseLeave, theme, _view, _intlEventTime, _interaction, _classes, _draggable } = getContext('state');\n\tcomponent_subscribe($$self, displayEventEnd, value => $$invalidate(35, $displayEventEnd = value));\n\tcomponent_subscribe($$self, eventBackgroundColor, value => $$invalidate(38, $eventBackgroundColor = value));\n\tcomponent_subscribe($$self, eventClick, value => $$invalidate(8, $eventClick = value));\n\tcomponent_subscribe($$self, eventColor, value => $$invalidate(37, $eventColor = value));\n\tcomponent_subscribe($$self, eventContent, value => $$invalidate(34, $eventContent = value));\n\tcomponent_subscribe($$self, eventDidMount, value => $$invalidate(41, $eventDidMount = value));\n\tcomponent_subscribe($$self, eventMouseEnter, value => $$invalidate(9, $eventMouseEnter = value));\n\tcomponent_subscribe($$self, eventMouseLeave, value => $$invalidate(10, $eventMouseLeave = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(1, $theme = value));\n\tcomponent_subscribe($$self, _view, value => $$invalidate(32, $_view = value));\n\tcomponent_subscribe($$self, _intlEventTime, value => $$invalidate(33, $_intlEventTime = value));\n\tcomponent_subscribe($$self, _interaction, value => $$invalidate(7, $_interaction = value));\n\tcomponent_subscribe($$self, _classes, value => $$invalidate(36, $_classes = value));\n\tcomponent_subscribe($$self, _draggable, value => $$invalidate(11, $_draggable = value));\n\tlet { _viewResources } = getContext('view-state');\n\tcreateEventDispatcher();\n\tlet el;\n\tlet event;\n\tlet classes;\n\tlet style;\n\tlet content;\n\tlet timeText;\n\tlet margin = 1;\n\tlet display;\n\n\tonMount(() => {\n\t\tif (is_function($eventDidMount)) {\n\t\t\t$eventDidMount({\n\t\t\t\tevent: toEventWithLocalDates(event),\n\t\t\t\ttimeText,\n\t\t\t\tel,\n\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t});\n\t\t}\n\t});\n\n\tfunction createHandler(fn, display) {\n\t\treturn display !== 'preview' && is_function(fn)\n\t\t? jsEvent => fn({\n\t\t\t\tevent: toEventWithLocalDates(event),\n\t\t\t\tel,\n\t\t\t\tjsEvent,\n\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t})\n\t\t: undefined;\n\t}\n\n\tfunction createDragHandler(resize) {\n\t\treturn jsEvent => $_interaction.action.dragTimeGrid(event, el, jsEvent, _viewResources, true, resize);\n\t}\n\n\tfunction reposition() {\n\t\tif (!el || display === 'preview') {\n\t\t\treturn;\n\t\t}\n\n\t\t$$invalidate(31, margin = repositionEvent(chunk, longChunks, height(el)));\n\t}\n\n\tfunction div1_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tel = $$value;\n\t\t\t$$invalidate(2, el);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('chunk' in $$props) $$invalidate(28, chunk = $$props.chunk);\n\t\tif ('longChunks' in $$props) $$invalidate(29, longChunks = $$props.longChunks);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*chunk*/ 268435456) {\n\t\t\t$$invalidate(0, event = chunk.event);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*event, chunk, style, $theme*/ 268435475 | $$self.$$.dirty[1] & /*$eventBackgroundColor, $eventColor, margin, $_classes*/ 225) {\n\t\t\t{\n\t\t\t\t$$invalidate(6, display = event.display);\n\n\t\t\t\t// Class & Style\n\t\t\t\tlet bgColor = event.backgroundColor || $eventBackgroundColor || $eventColor;\n\n\t\t\t\t$$invalidate(4, style = `width:calc(${chunk.days * 100}% + ${(chunk.days - 1) * 7}px);` + `margin-top:${margin}px;`);\n\n\t\t\t\tif (bgColor) {\n\t\t\t\t\t$$invalidate(4, style += `background-color:${bgColor};`);\n\t\t\t\t}\n\n\t\t\t\t$$invalidate(3, classes = $_classes($theme.event, event));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*chunk, $theme*/ 268435458 | $$self.$$.dirty[1] & /*$displayEventEnd, $eventContent, $_intlEventTime, $_view*/ 30) {\n\t\t\t// Content\n\t\t\t$$invalidate(5, [timeText, content] = createEventContent(chunk, $displayEventEnd, $eventContent, $theme, $_intlEventTime, $_view), content);\n\t\t}\n\t};\n\n\treturn [\n\t\tevent,\n\t\t$theme,\n\t\tel,\n\t\tclasses,\n\t\tstyle,\n\t\tcontent,\n\t\tdisplay,\n\t\t$_interaction,\n\t\t$eventClick,\n\t\t$eventMouseEnter,\n\t\t$eventMouseLeave,\n\t\t$_draggable,\n\t\tdisplayEventEnd,\n\t\teventBackgroundColor,\n\t\teventClick,\n\t\teventColor,\n\t\teventContent,\n\t\teventDidMount,\n\t\teventMouseEnter,\n\t\teventMouseLeave,\n\t\ttheme,\n\t\t_view,\n\t\t_intlEventTime,\n\t\t_interaction,\n\t\t_classes,\n\t\t_draggable,\n\t\tcreateHandler,\n\t\tcreateDragHandler,\n\t\tchunk,\n\t\tlongChunks,\n\t\treposition,\n\t\tmargin,\n\t\t$_view,\n\t\t$_intlEventTime,\n\t\t$eventContent,\n\t\t$displayEventEnd,\n\t\t$_classes,\n\t\t$eventColor,\n\t\t$eventBackgroundColor,\n\t\tdiv1_binding\n\t];\n}\n\nclass Event extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$3,\n\t\t\tcreate_fragment$3,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tchunk: 28,\n\t\t\t\tlongChunks: 29,\n\t\t\t\treposition: 30\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n\n\tget reposition() {\n\t\treturn this.$$.ctx[30];\n\t}\n}\n\n/* packages/time-grid/src/all-day/Day.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context$2(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[32] = list[i];\n\tchild_ctx[33] = list;\n\tchild_ctx[34] = i;\n\treturn child_ctx;\n}\n\n// (90:4) {#if iChunks[0] && datesEqual(iChunks[0].date, date)}\nfunction create_if_block$1(ctx) {\n\tlet div;\n\tlet event;\n\tlet div_class_value;\n\tlet current;\n\tevent = new Event({ props: { chunk: /*iChunks*/ ctx[2][0] } });\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcreate_component(event.$$.fragment);\n\t\t\tattr(div, \"class\", div_class_value = \"\" + (/*$theme*/ ctx[8].events + \" \" + /*$theme*/ ctx[8].preview));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tmount_component(event, div, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst event_changes = {};\n\t\t\tif (dirty[0] & /*iChunks*/ 4) event_changes.chunk = /*iChunks*/ ctx[2][0];\n\t\t\tevent.$set(event_changes);\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 256 && div_class_value !== (div_class_value = \"\" + (/*$theme*/ ctx[8].events + \" \" + /*$theme*/ ctx[8].preview))) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(event.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(event.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_component(event);\n\t\t}\n\t};\n}\n\n// (96:8) {#each dayChunks as chunk, i (chunk.event)}\nfunction create_each_block$2(key_1, ctx) {\n\tlet first;\n\tlet event;\n\tlet i = /*i*/ ctx[34];\n\tlet current;\n\tconst assign_event = () => /*event_binding*/ ctx[25](event, i);\n\tconst unassign_event = () => /*event_binding*/ ctx[25](null, i);\n\n\tlet event_props = {\n\t\tchunk: /*chunk*/ ctx[32],\n\t\tlongChunks: /*longChunks*/ ctx[1]\n\t};\n\n\tevent = new Event({ props: event_props });\n\tassign_event();\n\n\treturn {\n\t\tkey: key_1,\n\t\tfirst: null,\n\t\tc() {\n\t\t\tfirst = empty();\n\t\t\tcreate_component(event.$$.fragment);\n\t\t\tthis.first = first;\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, first, anchor);\n\t\t\tmount_component(event, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (i !== /*i*/ ctx[34]) {\n\t\t\t\tunassign_event();\n\t\t\t\ti = /*i*/ ctx[34];\n\t\t\t\tassign_event();\n\t\t\t}\n\n\t\t\tconst event_changes = {};\n\t\t\tif (dirty[0] & /*dayChunks*/ 16) event_changes.chunk = /*chunk*/ ctx[32];\n\t\t\tif (dirty[0] & /*longChunks*/ 2) event_changes.longChunks = /*longChunks*/ ctx[1];\n\t\t\tevent.$set(event_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(event.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(event.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(first);\n\t\t\tunassign_event();\n\t\t\tdestroy_component(event, detaching);\n\t\t}\n\t};\n}\n\nfunction create_fragment$2(ctx) {\n\tlet div1;\n\tlet show_if = /*iChunks*/ ctx[2][0] && datesEqual(/*iChunks*/ ctx[2][0].date, /*date*/ ctx[0]);\n\tlet t;\n\tlet div0;\n\tlet each_blocks = [];\n\tlet each_1_lookup = new Map();\n\tlet div0_class_value;\n\tlet div1_class_value;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tlet if_block = show_if && create_if_block$1(ctx);\n\tlet each_value = /*dayChunks*/ ctx[4];\n\tconst get_key = ctx => /*chunk*/ ctx[32].event;\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\tlet child_ctx = get_each_context$2(ctx, each_value, i);\n\t\tlet key = get_key(child_ctx);\n\t\teach_1_lookup.set(key, each_blocks[i] = create_each_block$2(key, child_ctx));\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tdiv1 = element(\"div\");\n\t\t\tif (if_block) if_block.c();\n\t\t\tt = space();\n\t\t\tdiv0 = element(\"div\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tattr(div0, \"class\", div0_class_value = /*$theme*/ ctx[8].events);\n\n\t\t\tattr(div1, \"class\", div1_class_value = \"\" + (/*$theme*/ ctx[8].day + (/*isToday*/ ctx[5] ? ' ' + /*$theme*/ ctx[8].today : '') + (/*highlight*/ ctx[6]\n\t\t\t? ' ' + /*$theme*/ ctx[8].highlight\n\t\t\t: '')));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div1, anchor);\n\t\t\tif (if_block) if_block.m(div1, null);\n\t\t\tappend(div1, t);\n\t\t\tappend(div1, div0);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(div0, null);\n\t\t\t}\n\n\t\t\t/*div1_binding*/ ctx[26](div1);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(window, \"resize\", /*reposition*/ ctx[21]),\n\t\t\t\t\tlisten(div1, \"click\", function () {\n\t\t\t\t\t\tif (is_function(maybeIgnore(/*createClickHandler*/ ctx[19](/*$dateClick*/ ctx[9])))) maybeIgnore(/*createClickHandler*/ ctx[19](/*$dateClick*/ ctx[9])).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div1, \"pointerdown\", function () {\n\t\t\t\t\t\tif (is_function(/*createPointerDownHandler*/ ctx[20](/*$_interaction*/ ctx[10], /*$selectable*/ ctx[11]))) /*createPointerDownHandler*/ ctx[20](/*$_interaction*/ ctx[10], /*$selectable*/ ctx[11]).apply(this, arguments);\n\t\t\t\t\t})\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\t\t\tif (dirty[0] & /*iChunks, date*/ 5) show_if = /*iChunks*/ ctx[2][0] && datesEqual(/*iChunks*/ ctx[2][0].date, /*date*/ ctx[0]);\n\n\t\t\tif (show_if) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*iChunks, date*/ 5) {\n\t\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block$1(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\tif_block.m(div1, t);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block, 1, 1, () => {\n\t\t\t\t\tif_block = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*dayChunks, longChunks, refs*/ 146) {\n\t\t\t\teach_value = /*dayChunks*/ ctx[4];\n\t\t\t\tgroup_outros();\n\t\t\t\teach_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div0, outro_and_destroy_block, create_each_block$2, null, get_each_context$2);\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 256 && div0_class_value !== (div0_class_value = /*$theme*/ ctx[8].events)) {\n\t\t\t\tattr(div0, \"class\", div0_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme, isToday, highlight*/ 352 && div1_class_value !== (div1_class_value = \"\" + (/*$theme*/ ctx[8].day + (/*isToday*/ ctx[5] ? ' ' + /*$theme*/ ctx[8].today : '') + (/*highlight*/ ctx[6]\n\t\t\t? ' ' + /*$theme*/ ctx[8].highlight\n\t\t\t: '')))) {\n\t\t\t\tattr(div1, \"class\", div1_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div1);\n\t\t\tif (if_block) if_block.d();\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].d();\n\t\t\t}\n\n\t\t\t/*div1_binding*/ ctx[26](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction instance$2($$self, $$props, $$invalidate) {\n\tlet $_slotTimeLimits;\n\tlet $_view;\n\tlet $highlightedDates;\n\tlet $theme;\n\tlet $dateClick;\n\tlet $_interaction;\n\tlet $selectable;\n\tlet { date } = $$props;\n\tlet { chunks } = $$props;\n\tlet { longChunks } = $$props;\n\tlet { iChunks = [] } = $$props;\n\tlet { resource = undefined } = $$props;\n\tlet { date: currentDate, dateClick, highlightedDates, theme, _view, _interaction, selectable } = getContext('state');\n\tcomponent_subscribe($$self, dateClick, value => $$invalidate(9, $dateClick = value));\n\tcomponent_subscribe($$self, highlightedDates, value => $$invalidate(24, $highlightedDates = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(8, $theme = value));\n\tcomponent_subscribe($$self, _view, value => $$invalidate(28, $_view = value));\n\tcomponent_subscribe($$self, _interaction, value => $$invalidate(10, $_interaction = value));\n\tcomponent_subscribe($$self, selectable, value => $$invalidate(11, $selectable = value));\n\tlet { _slotTimeLimits, _viewResources } = getContext('view-state');\n\tcomponent_subscribe($$self, _slotTimeLimits, value => $$invalidate(27, $_slotTimeLimits = value));\n\tlet el;\n\tlet dayChunks;\n\tlet today = setMidnight(createDate());\n\tlet isToday;\n\tlet highlight;\n\tlet refs = [];\n\n\tfunction createClickHandler(fn) {\n\t\treturn is_function(fn)\n\t\t? jsEvent => {\n\t\t\t\tfn({\n\t\t\t\t\tallDay: true,\n\t\t\t\t\tdate: toLocalDate(date),\n\t\t\t\t\tdateStr: toISOString(date),\n\t\t\t\t\tdayEl: el,\n\t\t\t\t\tjsEvent,\n\t\t\t\t\tview: toViewWithLocalDates($_view),\n\t\t\t\t\tresource\n\t\t\t\t});\n\t\t\t}\n\t\t: undefined;\n\t}\n\n\tfunction createPointerDownHandler(interaction, selectable) {\n\t\treturn selectable && interaction.action\n\t\t? jsEvent => interaction.action.selectTimeGrid(date, el, jsEvent, _viewResources, $_slotTimeLimits, true)\n\t\t: undefined;\n\t}\n\n\tfunction reposition() {\n\t\t$$invalidate(7, refs.length = dayChunks.length, refs);\n\n\t\tfor (let ref of refs) {\n\t\t\tref && ref.reposition && ref.reposition();\n\t\t}\n\t}\n\n\tafterUpdate(reposition);\n\n\tfunction event_binding($$value, i) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\trefs[i] = $$value;\n\t\t\t$$invalidate(7, refs);\n\t\t});\n\t}\n\n\tfunction div1_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tel = $$value;\n\t\t\t$$invalidate(3, el);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('date' in $$props) $$invalidate(0, date = $$props.date);\n\t\tif ('chunks' in $$props) $$invalidate(22, chunks = $$props.chunks);\n\t\tif ('longChunks' in $$props) $$invalidate(1, longChunks = $$props.longChunks);\n\t\tif ('iChunks' in $$props) $$invalidate(2, iChunks = $$props.iChunks);\n\t\tif ('resource' in $$props) $$invalidate(23, resource = $$props.resource);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*chunks, date, dayChunks*/ 4194321) {\n\t\t\t{\n\t\t\t\t$$invalidate(4, dayChunks = []);\n\n\t\t\t\tfor (let chunk of chunks) {\n\t\t\t\t\tif (datesEqual(chunk.date, date)) {\n\t\t\t\t\t\tdayChunks.push(chunk);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*date, $highlightedDates*/ 16777217) {\n\t\t\t{\n\t\t\t\t$$invalidate(5, isToday = datesEqual(date, today));\n\t\t\t\t$$invalidate(6, highlight = $highlightedDates.some(d => datesEqual(d, date)));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*el, date*/ 9) {\n\t\t\t// dateFromPoint\n\t\t\tif (el) {\n\t\t\t\tsetFn(el, () => date);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\tdate,\n\t\tlongChunks,\n\t\tiChunks,\n\t\tel,\n\t\tdayChunks,\n\t\tisToday,\n\t\thighlight,\n\t\trefs,\n\t\t$theme,\n\t\t$dateClick,\n\t\t$_interaction,\n\t\t$selectable,\n\t\tdateClick,\n\t\thighlightedDates,\n\t\ttheme,\n\t\t_view,\n\t\t_interaction,\n\t\tselectable,\n\t\t_slotTimeLimits,\n\t\tcreateClickHandler,\n\t\tcreatePointerDownHandler,\n\t\treposition,\n\t\tchunks,\n\t\tresource,\n\t\t$highlightedDates,\n\t\tevent_binding,\n\t\tdiv1_binding\n\t];\n}\n\nclass Day extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$2,\n\t\t\tcreate_fragment$2,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tdate: 0,\n\t\t\t\tchunks: 22,\n\t\t\t\tlongChunks: 1,\n\t\t\t\tiChunks: 2,\n\t\t\t\tresource: 23\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n}\n\n/* packages/time-grid/src/all-day/Week.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context$1(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[14] = list[i];\n\treturn child_ctx;\n}\n\n// (45:0) {#each dates as date}\nfunction create_each_block$1(ctx) {\n\tlet day;\n\tlet current;\n\n\tday = new Day({\n\t\t\tprops: {\n\t\t\t\tdate: /*date*/ ctx[14],\n\t\t\t\tchunks: /*chunks*/ ctx[2],\n\t\t\t\tlongChunks: /*longChunks*/ ctx[3],\n\t\t\t\tiChunks: /*iChunks*/ ctx[4],\n\t\t\t\tresource: /*resource*/ ctx[1]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(day.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(day, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst day_changes = {};\n\t\t\tif (dirty & /*dates*/ 1) day_changes.date = /*date*/ ctx[14];\n\t\t\tif (dirty & /*chunks*/ 4) day_changes.chunks = /*chunks*/ ctx[2];\n\t\t\tif (dirty & /*longChunks*/ 8) day_changes.longChunks = /*longChunks*/ ctx[3];\n\t\t\tif (dirty & /*iChunks*/ 16) day_changes.iChunks = /*iChunks*/ ctx[4];\n\t\t\tif (dirty & /*resource*/ 2) day_changes.resource = /*resource*/ ctx[1];\n\t\t\tday.$set(day_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(day.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(day.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(day, detaching);\n\t\t}\n\t};\n}\n\nfunction create_fragment$1(ctx) {\n\tlet each_1_anchor;\n\tlet current;\n\tlet each_value = /*dates*/ ctx[0];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\teach_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\teach_1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, each_1_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (dirty & /*dates, chunks, longChunks, iChunks, resource*/ 31) {\n\t\t\t\teach_value = /*dates*/ ctx[0];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context$1(ctx, each_value, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block$1(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t\tif (detaching) detach(each_1_anchor);\n\t\t}\n\t};\n}\n\nfunction instance$1($$self, $$props, $$invalidate) {\n\tlet $hiddenDays;\n\tlet $_iEvents;\n\tlet $_events;\n\tlet { dates } = $$props;\n\tlet { resource = undefined } = $$props;\n\tlet { _events, _iEvents, hiddenDays, theme } = getContext('state');\n\tcomponent_subscribe($$self, _events, value => $$invalidate(12, $_events = value));\n\tcomponent_subscribe($$self, _iEvents, value => $$invalidate(11, $_iEvents = value));\n\tcomponent_subscribe($$self, hiddenDays, value => $$invalidate(10, $hiddenDays = value));\n\tlet chunks, longChunks, iChunks = [];\n\tlet start;\n\tlet end;\n\n\t$$self.$$set = $$props => {\n\t\tif ('dates' in $$props) $$invalidate(0, dates = $$props.dates);\n\t\tif ('resource' in $$props) $$invalidate(1, resource = $$props.resource);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*dates*/ 1) {\n\t\t\t{\n\t\t\t\t$$invalidate(8, start = dates[0]);\n\t\t\t\t$$invalidate(9, end = addDay(cloneDate(dates[dates.length - 1])));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*$_events, start, end, resource, chunks, $hiddenDays*/ 5894) {\n\t\t\t{\n\t\t\t\t$$invalidate(2, chunks = []);\n\n\t\t\t\tfor (let event of $_events) {\n\t\t\t\t\tif (event.allDay && event.display !== 'background' && eventIntersects(event, start, end, resource)) {\n\t\t\t\t\t\tlet chunk = createEventChunk(event, start, end);\n\t\t\t\t\t\tchunks.push(chunk);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$$invalidate(3, longChunks = prepareEventChunks(chunks, $hiddenDays));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*$_iEvents, start, end, resource, $hiddenDays*/ 3842) {\n\t\t\t$$invalidate(4, iChunks = $_iEvents.map(event => {\n\t\t\t\tlet chunk;\n\n\t\t\t\tif (event && event.allDay && eventIntersects(event, start, end, resource)) {\n\t\t\t\t\tchunk = createEventChunk(event, start, end);\n\t\t\t\t\tprepareEventChunks([chunk], $hiddenDays);\n\t\t\t\t} else {\n\t\t\t\t\tchunk = null;\n\t\t\t\t}\n\n\t\t\t\treturn chunk;\n\t\t\t}));\n\t\t}\n\t};\n\n\treturn [\n\t\tdates,\n\t\tresource,\n\t\tchunks,\n\t\tlongChunks,\n\t\tiChunks,\n\t\t_events,\n\t\t_iEvents,\n\t\thiddenDays,\n\t\tstart,\n\t\tend,\n\t\t$hiddenDays,\n\t\t$_iEvents,\n\t\t$_events\n\t];\n}\n\nclass Week extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$1, create_fragment$1, safe_not_equal, { dates: 0, resource: 1 });\n\t}\n}\n\n/* packages/time-grid/src/View.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[11] = list[i];\n\treturn child_ctx;\n}\n\nfunction get_each_context_1(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[11] = list[i];\n\treturn child_ctx;\n}\n\n// (18:4) {#each $_viewDates as date}\nfunction create_each_block_1(ctx) {\n\tlet div;\n\tlet t_value = /*$_intlDayHeader*/ ctx[2].format(/*date*/ ctx[11]) + \"\";\n\tlet t;\n\tlet div_class_value;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tt = text(t_value);\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[1].day);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tappend(div, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*$_intlDayHeader, $_viewDates*/ 5 && t_value !== (t_value = /*$_intlDayHeader*/ ctx[2].format(/*date*/ ctx[11]) + \"\")) set_data(t, t_value);\n\n\t\t\tif (dirty & /*$theme*/ 2 && div_class_value !== (div_class_value = /*$theme*/ ctx[1].day)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t}\n\t};\n}\n\n// (17:0) <Header>\nfunction create_default_slot_2(ctx) {\n\tlet each_1_anchor;\n\tlet each_value_1 = /*$_viewDates*/ ctx[0];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value_1.length; i += 1) {\n\t\teach_blocks[i] = create_each_block_1(get_each_context_1(ctx, each_value_1, i));\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\teach_1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, each_1_anchor, anchor);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*$theme, $_intlDayHeader, $_viewDates*/ 7) {\n\t\t\t\teach_value_1 = /*$_viewDates*/ ctx[0];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value_1.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context_1(ctx, each_value_1, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block_1(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\teach_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (; i < each_blocks.length; i += 1) {\n\t\t\t\t\teach_blocks[i].d(1);\n\t\t\t\t}\n\n\t\t\t\teach_blocks.length = each_value_1.length;\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t\tif (detaching) detach(each_1_anchor);\n\t\t}\n\t};\n}\n\n// (22:0) {#if $allDaySlot}\nfunction create_if_block(ctx) {\n\tlet header;\n\tlet current;\n\n\theader = new Header({\n\t\t\tprops: {\n\t\t\t\tallDay: true,\n\t\t\t\t$$slots: { default: [create_default_slot_1] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(header.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(header, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst header_changes = {};\n\n\t\t\tif (dirty & /*$$scope, $_viewDates*/ 65537) {\n\t\t\t\theader_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\theader.$set(header_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(header.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(header.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(header, detaching);\n\t\t}\n\t};\n}\n\n// (23:4) <Header allDay>\nfunction create_default_slot_1(ctx) {\n\tlet week;\n\tlet current;\n\tweek = new Week({ props: { dates: /*$_viewDates*/ ctx[0] } });\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(week.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(week, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst week_changes = {};\n\t\t\tif (dirty & /*$_viewDates*/ 1) week_changes.dates = /*$_viewDates*/ ctx[0];\n\t\t\tweek.$set(week_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(week.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(week.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(week, detaching);\n\t\t}\n\t};\n}\n\n// (28:0) {#each $_viewDates as date}\nfunction create_each_block(ctx) {\n\tlet day;\n\tlet current;\n\tday = new Day$1({ props: { date: /*date*/ ctx[11] } });\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(day.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(day, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst day_changes = {};\n\t\t\tif (dirty & /*$_viewDates*/ 1) day_changes.date = /*date*/ ctx[11];\n\t\t\tday.$set(day_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(day.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(day.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(day, detaching);\n\t\t}\n\t};\n}\n\n// (27:0) <Body>\nfunction create_default_slot(ctx) {\n\tlet each_1_anchor;\n\tlet current;\n\tlet each_value = /*$_viewDates*/ ctx[0];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\teach_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\teach_1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, each_1_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*$_viewDates*/ 1) {\n\t\t\t\teach_value = /*$_viewDates*/ ctx[0];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context(ctx, each_value, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t\tif (detaching) detach(each_1_anchor);\n\t\t}\n\t};\n}\n\nfunction create_fragment(ctx) {\n\tlet header;\n\tlet t0;\n\tlet t1;\n\tlet body;\n\tlet current;\n\n\theader = new Header({\n\t\t\tprops: {\n\t\t\t\t$$slots: { default: [create_default_slot_2] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\tlet if_block = /*$allDaySlot*/ ctx[3] && create_if_block(ctx);\n\n\tbody = new Body({\n\t\t\tprops: {\n\t\t\t\t$$slots: { default: [create_default_slot] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(header.$$.fragment);\n\t\t\tt0 = space();\n\t\t\tif (if_block) if_block.c();\n\t\t\tt1 = space();\n\t\t\tcreate_component(body.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(header, target, anchor);\n\t\t\tinsert(target, t0, anchor);\n\t\t\tif (if_block) if_block.m(target, anchor);\n\t\t\tinsert(target, t1, anchor);\n\t\t\tmount_component(body, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tconst header_changes = {};\n\n\t\t\tif (dirty & /*$$scope, $_viewDates, $theme, $_intlDayHeader*/ 65543) {\n\t\t\t\theader_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\theader.$set(header_changes);\n\n\t\t\tif (/*$allDaySlot*/ ctx[3]) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty & /*$allDaySlot*/ 8) {\n\t\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\tif_block.m(t1.parentNode, t1);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block, 1, 1, () => {\n\t\t\t\t\tif_block = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tconst body_changes = {};\n\n\t\t\tif (dirty & /*$$scope, $_viewDates*/ 65537) {\n\t\t\t\tbody_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tbody.$set(body_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(header.$$.fragment, local);\n\t\t\ttransition_in(if_block);\n\t\t\ttransition_in(body.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(header.$$.fragment, local);\n\t\t\ttransition_out(if_block);\n\t\t\ttransition_out(body.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(header, detaching);\n\t\t\tif (detaching) detach(t0);\n\t\t\tif (if_block) if_block.d(detaching);\n\t\t\tif (detaching) detach(t1);\n\t\t\tdestroy_component(body, detaching);\n\t\t}\n\t};\n}\n\nfunction instance($$self, $$props, $$invalidate) {\n\tlet $_viewClass;\n\tlet $_viewDates;\n\tlet $theme;\n\tlet $_intlDayHeader;\n\tlet $allDaySlot;\n\tlet state = getContext('state');\n\tlet { _viewDates, _intlDayHeader, _viewClass, allDaySlot, theme } = state;\n\tcomponent_subscribe($$self, _viewDates, value => $$invalidate(0, $_viewDates = value));\n\tcomponent_subscribe($$self, _intlDayHeader, value => $$invalidate(2, $_intlDayHeader = value));\n\tcomponent_subscribe($$self, _viewClass, value => $$invalidate(9, $_viewClass = value));\n\tcomponent_subscribe($$self, allDaySlot, value => $$invalidate(3, $allDaySlot = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(1, $theme = value));\n\tsetContext('view-state', new State(state));\n\tset_store_value(_viewClass, $_viewClass = 'week', $_viewClass);\n\n\treturn [\n\t\t$_viewDates,\n\t\t$theme,\n\t\t$_intlDayHeader,\n\t\t$allDaySlot,\n\t\t_viewDates,\n\t\t_intlDayHeader,\n\t\t_viewClass,\n\t\tallDaySlot,\n\t\ttheme\n\t];\n}\n\nclass View extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance, create_fragment, safe_not_equal, {});\n\t}\n}\n\nvar index = {\n\tcreateOptions(options) {\n\t\t// Common options\n\t\toptions.buttonText.timeGridDay = 'day';\n\t\toptions.buttonText.timeGridWeek = 'week';\n\t\toptions.view = 'timeGridWeek';\n\t\toptions.views.timeGridDay = {\n\t\t\tcomponent: View,\n\t\t\tdayHeaderFormat: {weekday: 'long'},\n\t\t\tduration: {days: 1},\n\t\t\ttitleFormat: {year: 'numeric', month: 'long', day: 'numeric'}\n\t\t};\n\t\toptions.views.timeGridWeek = {\n\t\t\tcomponent: View,\n\t\t\tduration: {weeks: 1}\n\t\t};\n\t}\n};\n\nexport { Body, Day$1 as Day, Header, State, Week, index as default };\n","import { SvelteComponent, init, safe_not_equal, element, attr, insert, action_destroyer, is_function, noop, detach, component_subscribe, binding_callbacks, create_component, space, mount_component, transition_in, group_outros, transition_out, check_outros, destroy_component, set_store_value, empty, destroy_each, append, text, set_data } from 'svelte/internal';\nimport { getContext, onMount, setContext } from 'svelte';\nimport { State as State$1, Header, Body, Week, Day } from '@event-calendar/time-grid';\nimport { derived } from 'svelte/store';\n\nfunction viewResources(state) {\n return derived(\n [state.resources, state.filterResourcesWithEvents, state._events, state._activeRange],\n ([$resources, $filterResourcesWithEvents, $_events, $_activeRange]) => {\n let result = $resources;\n\n if ($filterResourcesWithEvents) {\n result = $resources.filter(resource => {\n for (let event of $_events) {\n if (\n event.display !== 'background' &&\n event.resourceIds.includes(resource.id) &&\n event.start < $_activeRange.end &&\n event.end > $_activeRange.start\n ) {\n return true;\n }\n }\n return false;\n });\n }\n\n if (!result.length) {\n result = state.resources.parse([{}]);\n }\n\n return result;\n }\n );\n}\n\nclass State extends State$1 {\n constructor(state) {\n super(state);\n\n this._viewResources = viewResources(state);\n }\n}\n\nfunction isObject(test) {\n return typeof test === 'object' && test !== null;\n}\n\nfunction setContent(node, content) {\n let actions = {\n update(content) {\n while (node.firstChild) {\n node.removeChild(node.lastChild);\n }\n if (!isObject(content)) {\n node.innerText = content;\n } else if (content.domNodes) {\n for (let child of content.domNodes) {\n node.appendChild(child);\n }\n } else if (content.html) {\n node.innerHTML = content.html;\n }\n }\n };\n actions.update(content);\n\n return actions;\n}\n\nfunction toLocalDate(date) {\n return new Date(\n date.getUTCFullYear(),\n date.getUTCMonth(),\n date.getUTCDate(),\n date.getUTCHours(),\n date.getUTCMinutes(),\n date.getUTCSeconds()\n );\n}\n\n/* packages/resource-time-grid/src/Label.svelte generated by Svelte v3.55.1 */\n\nfunction create_fragment$1(ctx) {\n\tlet div;\n\tlet div_class_value;\n\tlet setContent_action;\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[2].day);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\t/*div_binding*/ ctx[9](div);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = action_destroyer(setContent_action = setContent.call(null, div, /*content*/ ctx[1]));\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (dirty & /*$theme*/ 4 && div_class_value !== (div_class_value = /*$theme*/ ctx[2].day)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\n\t\t\tif (setContent_action && is_function(setContent_action.update) && dirty & /*content*/ 2) setContent_action.update.call(null, /*content*/ ctx[1]);\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\t/*div_binding*/ ctx[9](null);\n\t\t\tmounted = false;\n\t\t\tdispose();\n\t\t}\n\t};\n}\n\nfunction instance$2($$self, $$props, $$invalidate) {\n\tlet $resourceLabelDidMount;\n\tlet $resourceLabelContent;\n\tlet $theme;\n\tlet { resource } = $$props;\n\tlet { date = undefined } = $$props;\n\tlet { resourceLabelContent, resourceLabelDidMount, theme } = getContext('state');\n\tcomponent_subscribe($$self, resourceLabelContent, value => $$invalidate(8, $resourceLabelContent = value));\n\tcomponent_subscribe($$self, resourceLabelDidMount, value => $$invalidate(10, $resourceLabelDidMount = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(2, $theme = value));\n\tlet el;\n\tlet content;\n\n\tonMount(() => {\n\t\tif (is_function($resourceLabelDidMount)) {\n\t\t\t$resourceLabelDidMount({\n\t\t\t\tresource,\n\t\t\t\tdate: date ? toLocalDate(date) : undefined,\n\t\t\t\tel\n\t\t\t});\n\t\t}\n\t});\n\n\tfunction div_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tel = $$value;\n\t\t\t$$invalidate(0, el);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('resource' in $$props) $$invalidate(6, resource = $$props.resource);\n\t\tif ('date' in $$props) $$invalidate(7, date = $$props.date);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*$resourceLabelContent, resource, date*/ 448) {\n\t\t\t// Content\n\t\t\tif ($resourceLabelContent) {\n\t\t\t\t$$invalidate(1, content = is_function($resourceLabelContent)\n\t\t\t\t? $resourceLabelContent({\n\t\t\t\t\t\tresource,\n\t\t\t\t\t\tdate: date ? toLocalDate(date) : undefined\n\t\t\t\t\t})\n\t\t\t\t: $resourceLabelContent);\n\t\t\t} else {\n\t\t\t\t$$invalidate(1, content = resource.titleHTML\n\t\t\t\t? { html: resource.titleHTML }\n\t\t\t\t: resource.title);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\tel,\n\t\tcontent,\n\t\t$theme,\n\t\tresourceLabelContent,\n\t\tresourceLabelDidMount,\n\t\ttheme,\n\t\tresource,\n\t\tdate,\n\t\t$resourceLabelContent,\n\t\tdiv_binding\n\t];\n}\n\nclass Label extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$2, create_fragment$1, safe_not_equal, { resource: 6, date: 7 });\n\t}\n}\n\n/* packages/resource-time-grid/src/View.svelte generated by Svelte v3.55.1 */\n\nfunction get_each_context(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[17] = list[i];\n\treturn child_ctx;\n}\n\nfunction get_each_context_1(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[20] = list[i];\n\treturn child_ctx;\n}\n\nfunction get_each_context_4(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[26] = list[i];\n\treturn child_ctx;\n}\n\nfunction get_each_context_2(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[23] = list[i];\n\treturn child_ctx;\n}\n\nfunction get_each_context_3(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[26] = list[i];\n\treturn child_ctx;\n}\n\nfunction get_each_context_5(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[17] = list[i];\n\treturn child_ctx;\n}\n\nfunction get_each_context_6(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[20] = list[i];\n\treturn child_ctx;\n}\n\n// (26:12) {:else}\nfunction create_else_block_2(ctx) {\n\tlet label;\n\tlet current;\n\tlabel = new Label({ props: { resource: /*item0*/ ctx[17] } });\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(label.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(label, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst label_changes = {};\n\t\t\tif (dirty[0] & /*loops*/ 8) label_changes.resource = /*item0*/ ctx[17];\n\t\t\tlabel.$set(label_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(label.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(label.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(label, detaching);\n\t\t}\n\t};\n}\n\n// (24:12) {#if $datesAboveResources}\nfunction create_if_block_4(ctx) {\n\tlet div;\n\tlet t_value = /*$_intlDayHeader*/ ctx[5].format(/*item0*/ ctx[17]) + \"\";\n\tlet t;\n\tlet div_class_value;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tt = text(t_value);\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[4].day);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tappend(div, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*$_intlDayHeader, loops*/ 40 && t_value !== (t_value = /*$_intlDayHeader*/ ctx[5].format(/*item0*/ ctx[17]) + \"\")) set_data(t, t_value);\n\n\t\t\tif (dirty[0] & /*$theme*/ 16 && div_class_value !== (div_class_value = /*$theme*/ ctx[4].day)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t}\n\t};\n}\n\n// (29:12) {#if loops[1].length > 1}\nfunction create_if_block_2(ctx) {\n\tlet div;\n\tlet div_class_value;\n\tlet current;\n\tlet each_value_6 = /*loops*/ ctx[3][1];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value_6.length; i += 1) {\n\t\teach_blocks[i] = create_each_block_6(get_each_context_6(ctx, each_value_6, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[4].days);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(div, null);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*loops, $datesAboveResources, $theme, $_intlDayHeader*/ 60) {\n\t\t\t\teach_value_6 = /*loops*/ ctx[3][1];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value_6.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context_6(ctx, each_value_6, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block_6(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(div, null);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value_6.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 16 && div_class_value !== (div_class_value = /*$theme*/ ctx[4].days)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value_6.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t}\n\t};\n}\n\n// (34:24) {:else}\nfunction create_else_block_1(ctx) {\n\tlet div;\n\tlet t_value = /*$_intlDayHeader*/ ctx[5].format(/*item1*/ ctx[20]) + \"\";\n\tlet t;\n\tlet div_class_value;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tt = text(t_value);\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[4].day);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tappend(div, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*$_intlDayHeader, loops*/ 40 && t_value !== (t_value = /*$_intlDayHeader*/ ctx[5].format(/*item1*/ ctx[20]) + \"\")) set_data(t, t_value);\n\n\t\t\tif (dirty[0] & /*$theme*/ 16 && div_class_value !== (div_class_value = /*$theme*/ ctx[4].day)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t}\n\t};\n}\n\n// (32:24) {#if $datesAboveResources}\nfunction create_if_block_3(ctx) {\n\tlet label;\n\tlet current;\n\n\tlabel = new Label({\n\t\t\tprops: {\n\t\t\t\tresource: /*item1*/ ctx[20],\n\t\t\t\tdate: /*item0*/ ctx[17]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(label.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(label, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst label_changes = {};\n\t\t\tif (dirty[0] & /*loops*/ 8) label_changes.resource = /*item1*/ ctx[20];\n\t\t\tif (dirty[0] & /*loops*/ 8) label_changes.date = /*item0*/ ctx[17];\n\t\t\tlabel.$set(label_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(label.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(label.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(label, detaching);\n\t\t}\n\t};\n}\n\n// (31:20) {#each loops[1] as item1}\nfunction create_each_block_6(ctx) {\n\tlet current_block_type_index;\n\tlet if_block;\n\tlet if_block_anchor;\n\tlet current;\n\tconst if_block_creators = [create_if_block_3, create_else_block_1];\n\tconst if_blocks = [];\n\n\tfunction select_block_type_1(ctx, dirty) {\n\t\tif (/*$datesAboveResources*/ ctx[2]) return 0;\n\t\treturn 1;\n\t}\n\n\tcurrent_block_type_index = select_block_type_1(ctx);\n\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif_block.c();\n\t\t\tif_block_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif_blocks[current_block_type_index].m(target, anchor);\n\t\t\tinsert(target, if_block_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tlet previous_block_index = current_block_type_index;\n\t\t\tcurrent_block_type_index = select_block_type_1(ctx);\n\n\t\t\tif (current_block_type_index === previous_block_index) {\n\t\t\t\tif_blocks[current_block_type_index].p(ctx, dirty);\n\t\t\t} else {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_blocks[previous_block_index], 1, 1, () => {\n\t\t\t\t\tif_blocks[previous_block_index] = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t\tif_block = if_blocks[current_block_type_index];\n\n\t\t\t\tif (!if_block) {\n\t\t\t\t\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t} else {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t}\n\n\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\tif_block.m(if_block_anchor.parentNode, if_block_anchor);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif_blocks[current_block_type_index].d(detaching);\n\t\t\tif (detaching) detach(if_block_anchor);\n\t\t}\n\t};\n}\n\n// (22:4) {#each loops[0] as item0}\nfunction create_each_block_5(ctx) {\n\tlet div;\n\tlet current_block_type_index;\n\tlet if_block0;\n\tlet t0;\n\tlet t1;\n\tlet div_class_value;\n\tlet current;\n\tconst if_block_creators = [create_if_block_4, create_else_block_2];\n\tconst if_blocks = [];\n\n\tfunction select_block_type(ctx, dirty) {\n\t\tif (/*$datesAboveResources*/ ctx[2]) return 0;\n\t\treturn 1;\n\t}\n\n\tcurrent_block_type_index = select_block_type(ctx);\n\tif_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\tlet if_block1 = /*loops*/ ctx[3][1].length > 1 && create_if_block_2(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tif_block0.c();\n\t\t\tt0 = space();\n\t\t\tif (if_block1) if_block1.c();\n\t\t\tt1 = space();\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[4].resource);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tif_blocks[current_block_type_index].m(div, null);\n\t\t\tappend(div, t0);\n\t\t\tif (if_block1) if_block1.m(div, null);\n\t\t\tappend(div, t1);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tlet previous_block_index = current_block_type_index;\n\t\t\tcurrent_block_type_index = select_block_type(ctx);\n\n\t\t\tif (current_block_type_index === previous_block_index) {\n\t\t\t\tif_blocks[current_block_type_index].p(ctx, dirty);\n\t\t\t} else {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_blocks[previous_block_index], 1, 1, () => {\n\t\t\t\t\tif_blocks[previous_block_index] = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t\tif_block0 = if_blocks[current_block_type_index];\n\n\t\t\t\tif (!if_block0) {\n\t\t\t\t\tif_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t\t\t\t\tif_block0.c();\n\t\t\t\t} else {\n\t\t\t\t\tif_block0.p(ctx, dirty);\n\t\t\t\t}\n\n\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\tif_block0.m(div, t0);\n\t\t\t}\n\n\t\t\tif (/*loops*/ ctx[3][1].length > 1) {\n\t\t\t\tif (if_block1) {\n\t\t\t\t\tif_block1.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*loops*/ 8) {\n\t\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block1 = create_if_block_2(ctx);\n\t\t\t\t\tif_block1.c();\n\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\tif_block1.m(div, t1);\n\t\t\t\t}\n\t\t\t} else if (if_block1) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block1, 1, 1, () => {\n\t\t\t\t\tif_block1 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 16 && div_class_value !== (div_class_value = /*$theme*/ ctx[4].resource)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block0);\n\t\t\ttransition_in(if_block1);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block0);\n\t\t\ttransition_out(if_block1);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tif_blocks[current_block_type_index].d();\n\t\t\tif (if_block1) if_block1.d();\n\t\t}\n\t};\n}\n\n// (21:0) <Header>\nfunction create_default_slot_2(ctx) {\n\tlet each_1_anchor;\n\tlet current;\n\tlet each_value_5 = /*loops*/ ctx[3][0];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value_5.length; i += 1) {\n\t\teach_blocks[i] = create_each_block_5(get_each_context_5(ctx, each_value_5, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\teach_1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, each_1_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*$theme, loops, $datesAboveResources, $_intlDayHeader*/ 60) {\n\t\t\t\teach_value_5 = /*loops*/ ctx[3][0];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value_5.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context_5(ctx, each_value_5, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block_5(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value_5.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value_5.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t\tif (detaching) detach(each_1_anchor);\n\t\t}\n\t};\n}\n\n// (43:0) {#if $allDaySlot}\nfunction create_if_block(ctx) {\n\tlet header;\n\tlet current;\n\n\theader = new Header({\n\t\t\tprops: {\n\t\t\t\tallDay: true,\n\t\t\t\t$$slots: { default: [create_default_slot_1] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(header.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(header, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst header_changes = {};\n\n\t\t\tif (dirty[0] & /*$_viewDates, $theme, $_viewResources, $datesAboveResources*/ 23 | dirty[1] & /*$$scope*/ 16) {\n\t\t\t\theader_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\theader.$set(header_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(header.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(header.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(header, detaching);\n\t\t}\n\t};\n}\n\n// (53:8) {:else}\nfunction create_else_block(ctx) {\n\tlet each_1_anchor;\n\tlet current;\n\tlet each_value_4 = /*$_viewResources*/ ctx[1];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value_4.length; i += 1) {\n\t\teach_blocks[i] = create_each_block_4(get_each_context_4(ctx, each_value_4, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\teach_1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, each_1_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*$theme, $_viewDates, $_viewResources*/ 19) {\n\t\t\t\teach_value_4 = /*$_viewResources*/ ctx[1];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value_4.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context_4(ctx, each_value_4, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block_4(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value_4.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value_4.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t\tif (detaching) detach(each_1_anchor);\n\t\t}\n\t};\n}\n\n// (45:8) {#if $datesAboveResources}\nfunction create_if_block_1(ctx) {\n\tlet each_1_anchor;\n\tlet current;\n\tlet each_value_2 = /*$_viewDates*/ ctx[0];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value_2.length; i += 1) {\n\t\teach_blocks[i] = create_each_block_2(get_each_context_2(ctx, each_value_2, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\teach_1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, each_1_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*$theme, $_viewResources, $_viewDates*/ 19) {\n\t\t\t\teach_value_2 = /*$_viewDates*/ ctx[0];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value_2.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context_2(ctx, each_value_2, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block_2(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value_2.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value_2.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t\tif (detaching) detach(each_1_anchor);\n\t\t}\n\t};\n}\n\n// (54:12) {#each $_viewResources as resource}\nfunction create_each_block_4(ctx) {\n\tlet div;\n\tlet week;\n\tlet t;\n\tlet div_class_value;\n\tlet current;\n\n\tweek = new Week({\n\t\t\tprops: {\n\t\t\t\tdates: /*$_viewDates*/ ctx[0],\n\t\t\t\tresource: /*resource*/ ctx[26]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcreate_component(week.$$.fragment);\n\t\t\tt = space();\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[4].resource);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tmount_component(week, div, null);\n\t\t\tappend(div, t);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst week_changes = {};\n\t\t\tif (dirty[0] & /*$_viewDates*/ 1) week_changes.dates = /*$_viewDates*/ ctx[0];\n\t\t\tif (dirty[0] & /*$_viewResources*/ 2) week_changes.resource = /*resource*/ ctx[26];\n\t\t\tweek.$set(week_changes);\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 16 && div_class_value !== (div_class_value = /*$theme*/ ctx[4].resource)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(week.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(week.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_component(week);\n\t\t}\n\t};\n}\n\n// (48:20) {#each $_viewResources as resource}\nfunction create_each_block_3(ctx) {\n\tlet week;\n\tlet current;\n\n\tweek = new Week({\n\t\t\tprops: {\n\t\t\t\tdates: [/*date*/ ctx[23]],\n\t\t\t\tresource: /*resource*/ ctx[26]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(week.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(week, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst week_changes = {};\n\t\t\tif (dirty[0] & /*$_viewDates*/ 1) week_changes.dates = [/*date*/ ctx[23]];\n\t\t\tif (dirty[0] & /*$_viewResources*/ 2) week_changes.resource = /*resource*/ ctx[26];\n\t\t\tweek.$set(week_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(week.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(week.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(week, detaching);\n\t\t}\n\t};\n}\n\n// (46:12) {#each $_viewDates as date}\nfunction create_each_block_2(ctx) {\n\tlet div;\n\tlet t;\n\tlet div_class_value;\n\tlet current;\n\tlet each_value_3 = /*$_viewResources*/ ctx[1];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value_3.length; i += 1) {\n\t\teach_blocks[i] = create_each_block_3(get_each_context_3(ctx, each_value_3, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tt = space();\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[4].resource);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(div, null);\n\t\t\t}\n\n\t\t\tappend(div, t);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*$_viewDates, $_viewResources*/ 3) {\n\t\t\t\teach_value_3 = /*$_viewResources*/ ctx[1];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value_3.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context_3(ctx, each_value_3, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block_3(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(div, t);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value_3.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 16 && div_class_value !== (div_class_value = /*$theme*/ ctx[4].resource)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value_3.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t}\n\t};\n}\n\n// (44:4) <Header allDay>\nfunction create_default_slot_1(ctx) {\n\tlet current_block_type_index;\n\tlet if_block;\n\tlet if_block_anchor;\n\tlet current;\n\tconst if_block_creators = [create_if_block_1, create_else_block];\n\tconst if_blocks = [];\n\n\tfunction select_block_type_2(ctx, dirty) {\n\t\tif (/*$datesAboveResources*/ ctx[2]) return 0;\n\t\treturn 1;\n\t}\n\n\tcurrent_block_type_index = select_block_type_2(ctx);\n\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif_block.c();\n\t\t\tif_block_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif_blocks[current_block_type_index].m(target, anchor);\n\t\t\tinsert(target, if_block_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tlet previous_block_index = current_block_type_index;\n\t\t\tcurrent_block_type_index = select_block_type_2(ctx);\n\n\t\t\tif (current_block_type_index === previous_block_index) {\n\t\t\t\tif_blocks[current_block_type_index].p(ctx, dirty);\n\t\t\t} else {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_blocks[previous_block_index], 1, 1, () => {\n\t\t\t\t\tif_blocks[previous_block_index] = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t\tif_block = if_blocks[current_block_type_index];\n\n\t\t\t\tif (!if_block) {\n\t\t\t\t\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t} else {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t}\n\n\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\tif_block.m(if_block_anchor.parentNode, if_block_anchor);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif_blocks[current_block_type_index].d(detaching);\n\t\t\tif (detaching) detach(if_block_anchor);\n\t\t}\n\t};\n}\n\n// (65:8) {#each loops[1] as item1}\nfunction create_each_block_1(ctx) {\n\tlet day;\n\tlet current;\n\n\tday = new Day({\n\t\t\tprops: {\n\t\t\t\tdate: /*$datesAboveResources*/ ctx[2]\n\t\t\t\t? /*item0*/ ctx[17]\n\t\t\t\t: /*item1*/ ctx[20],\n\t\t\t\tresource: /*$datesAboveResources*/ ctx[2]\n\t\t\t\t? /*item1*/ ctx[20]\n\t\t\t\t: /*item0*/ ctx[17]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(day.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(day, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst day_changes = {};\n\n\t\t\tif (dirty[0] & /*$datesAboveResources, loops*/ 12) day_changes.date = /*$datesAboveResources*/ ctx[2]\n\t\t\t? /*item0*/ ctx[17]\n\t\t\t: /*item1*/ ctx[20];\n\n\t\t\tif (dirty[0] & /*$datesAboveResources, loops*/ 12) day_changes.resource = /*$datesAboveResources*/ ctx[2]\n\t\t\t? /*item1*/ ctx[20]\n\t\t\t: /*item0*/ ctx[17];\n\n\t\t\tday.$set(day_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(day.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(day.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(day, detaching);\n\t\t}\n\t};\n}\n\n// (63:0) {#each loops[0] as item0}\nfunction create_each_block(ctx) {\n\tlet div;\n\tlet t;\n\tlet div_class_value;\n\tlet current;\n\tlet each_value_1 = /*loops*/ ctx[3][1];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value_1.length; i += 1) {\n\t\teach_blocks[i] = create_each_block_1(get_each_context_1(ctx, each_value_1, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tt = space();\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[4].resource);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(div, null);\n\t\t\t}\n\n\t\t\tappend(div, t);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*$datesAboveResources, loops*/ 12) {\n\t\t\t\teach_value_1 = /*loops*/ ctx[3][1];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value_1.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context_1(ctx, each_value_1, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block_1(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(div, t);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value_1.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*$theme*/ 16 && div_class_value !== (div_class_value = /*$theme*/ ctx[4].resource)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value_1.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t}\n\t};\n}\n\n// (62:0) <Body>\nfunction create_default_slot(ctx) {\n\tlet each_1_anchor;\n\tlet current;\n\tlet each_value = /*loops*/ ctx[3][0];\n\tlet each_blocks = [];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\teach_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));\n\t}\n\n\tconst out = i => transition_out(each_blocks[i], 1, 1, () => {\n\t\teach_blocks[i] = null;\n\t});\n\n\treturn {\n\t\tc() {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\teach_1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, each_1_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*$theme, loops, $datesAboveResources*/ 28) {\n\t\t\t\teach_value = /*loops*/ ctx[3][0];\n\t\t\t\tlet i;\n\n\t\t\t\tfor (i = 0; i < each_value.length; i += 1) {\n\t\t\t\t\tconst child_ctx = get_each_context(ctx, each_value, i);\n\n\t\t\t\t\tif (each_blocks[i]) {\n\t\t\t\t\t\teach_blocks[i].p(child_ctx, dirty);\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\teach_blocks[i] = create_each_block(child_ctx);\n\t\t\t\t\t\teach_blocks[i].c();\n\t\t\t\t\t\ttransition_in(each_blocks[i], 1);\n\t\t\t\t\t\teach_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tgroup_outros();\n\n\t\t\t\tfor (i = each_value.length; i < each_blocks.length; i += 1) {\n\t\t\t\t\tout(i);\n\t\t\t\t}\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\teach_blocks = each_blocks.filter(Boolean);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_each(each_blocks, detaching);\n\t\t\tif (detaching) detach(each_1_anchor);\n\t\t}\n\t};\n}\n\nfunction create_fragment(ctx) {\n\tlet header;\n\tlet t0;\n\tlet t1;\n\tlet body;\n\tlet current;\n\n\theader = new Header({\n\t\t\tprops: {\n\t\t\t\t$$slots: { default: [create_default_slot_2] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\tlet if_block = /*$allDaySlot*/ ctx[6] && create_if_block(ctx);\n\n\tbody = new Body({\n\t\t\tprops: {\n\t\t\t\t$$slots: { default: [create_default_slot] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(header.$$.fragment);\n\t\t\tt0 = space();\n\t\t\tif (if_block) if_block.c();\n\t\t\tt1 = space();\n\t\t\tcreate_component(body.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(header, target, anchor);\n\t\t\tinsert(target, t0, anchor);\n\t\t\tif (if_block) if_block.m(target, anchor);\n\t\t\tinsert(target, t1, anchor);\n\t\t\tmount_component(body, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst header_changes = {};\n\n\t\t\tif (dirty[0] & /*loops, $theme, $datesAboveResources, $_intlDayHeader*/ 60 | dirty[1] & /*$$scope*/ 16) {\n\t\t\t\theader_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\theader.$set(header_changes);\n\n\t\t\tif (/*$allDaySlot*/ ctx[6]) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*$allDaySlot*/ 64) {\n\t\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\tif_block.m(t1.parentNode, t1);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block, 1, 1, () => {\n\t\t\t\t\tif_block = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tconst body_changes = {};\n\n\t\t\tif (dirty[0] & /*loops, $theme, $datesAboveResources*/ 28 | dirty[1] & /*$$scope*/ 16) {\n\t\t\t\tbody_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tbody.$set(body_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(header.$$.fragment, local);\n\t\t\ttransition_in(if_block);\n\t\t\ttransition_in(body.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(header.$$.fragment, local);\n\t\t\ttransition_out(if_block);\n\t\t\ttransition_out(body.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(header, detaching);\n\t\t\tif (detaching) detach(t0);\n\t\t\tif (if_block) if_block.d(detaching);\n\t\t\tif (detaching) detach(t1);\n\t\t\tdestroy_component(body, detaching);\n\t\t}\n\t};\n}\n\nfunction instance$1($$self, $$props, $$invalidate) {\n\tlet $_viewDates;\n\tlet $_viewResources;\n\tlet $datesAboveResources;\n\tlet $_viewClass;\n\tlet $theme;\n\tlet $_intlDayHeader;\n\tlet $allDaySlot;\n\tlet state = getContext('state');\n\tlet { datesAboveResources, _viewDates, _intlDayHeader, _viewClass, allDaySlot, theme } = state;\n\tcomponent_subscribe($$self, datesAboveResources, value => $$invalidate(2, $datesAboveResources = value));\n\tcomponent_subscribe($$self, _viewDates, value => $$invalidate(0, $_viewDates = value));\n\tcomponent_subscribe($$self, _intlDayHeader, value => $$invalidate(5, $_intlDayHeader = value));\n\tcomponent_subscribe($$self, _viewClass, value => $$invalidate(14, $_viewClass = value));\n\tcomponent_subscribe($$self, allDaySlot, value => $$invalidate(6, $allDaySlot = value));\n\tcomponent_subscribe($$self, theme, value => $$invalidate(4, $theme = value));\n\tlet viewState = new State(state);\n\tsetContext('view-state', viewState);\n\tlet { _viewResources } = viewState;\n\tcomponent_subscribe($$self, _viewResources, value => $$invalidate(1, $_viewResources = value));\n\tset_store_value(_viewClass, $_viewClass = 'week', $_viewClass);\n\tlet loops;\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*$datesAboveResources, $_viewDates, $_viewResources*/ 7) {\n\t\t\t$$invalidate(3, loops = $datesAboveResources\n\t\t\t? [$_viewDates, $_viewResources]\n\t\t\t: [$_viewResources, $_viewDates]);\n\t\t}\n\t};\n\n\treturn [\n\t\t$_viewDates,\n\t\t$_viewResources,\n\t\t$datesAboveResources,\n\t\tloops,\n\t\t$theme,\n\t\t$_intlDayHeader,\n\t\t$allDaySlot,\n\t\tdatesAboveResources,\n\t\t_viewDates,\n\t\t_intlDayHeader,\n\t\t_viewClass,\n\t\tallDaySlot,\n\t\ttheme,\n\t\t_viewResources\n\t];\n}\n\nclass View extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$1, create_fragment, safe_not_equal, {}, null, [-1, -1]);\n\t}\n}\n\n/* packages/resource-time-grid/src/Auxiliary.svelte generated by Svelte v3.55.1 */\n\nfunction instance($$self, $$props, $$invalidate) {\n\tlet $resources;\n\tlet $_resBgColor;\n\tlet { resources, _resBgColor } = getContext('state');\n\tcomponent_subscribe($$self, resources, value => $$invalidate(2, $resources = value));\n\tcomponent_subscribe($$self, _resBgColor, value => $$invalidate(3, $_resBgColor = value));\n\n\tset_store_value(\n\t\t_resBgColor,\n\t\t$_resBgColor = event => {\n\t\t\tlet resource = $resources.find(res => event.resourceIds.includes(res.id));\n\t\t\treturn resource?.eventBackgroundColor;\n\t\t},\n\t\t$_resBgColor\n\t);\n\n\treturn [resources, _resBgColor];\n}\n\nclass Auxiliary extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance, null, safe_not_equal, {});\n\t}\n}\n\nvar index = {\n\tcreateOptions(options) {\n\t\toptions.resources = [];\n\t\toptions.datesAboveResources = false;\n\t\toptions.filterResourcesWithEvents = false;\n\t\toptions.resourceLabelContent = undefined;\n\t\toptions.resourceLabelDidMount = undefined;\n\t\t// Common options\n\t\toptions.buttonText.resourceTimeGridDay = 'day';\n\t\toptions.buttonText.resourceTimeGridWeek = 'week';\n\t\toptions.theme.resource = 'ec-resource';\n\t\toptions.theme.resourceTitle = 'ec-resource-title';\n\t\toptions.view = 'resourceTimeGridWeek';\n\t\toptions.views.resourceTimeGridDay = {\n\t\t\tcomponent: View,\n\t\t\tduration: {days: 1}\n\t\t};\n\t\toptions.views.resourceTimeGridWeek = {\n\t\t\tcomponent: View,\n\t\t\tduration: {weeks: 1}\n\t\t};\n\t},\n\n\tcreateParsers(parsers, options) {\n\t\tparsers.resources = createResources;\n\t},\n\n\tcreateStores(state) {\n\t\tstate._auxiliary.update($_auxiliary => [...$_auxiliary, Auxiliary]);\n\t}\n};\n\nfunction createResources(input) {\n\treturn input.map(resource => ({\n\t\tid: String(resource.id),\n\t\ttitle: resource.title || '',\n\t\ttitleHTML: resource.titleHTML || '',\n\t\teventBackgroundColor: resource.eventBackgroundColor,\n\t}));\n}\n\nexport { index as default };\n","import { SvelteComponent, init, safe_not_equal, noop, listen, is_function, run_all, component_subscribe, globals, set_store_value, bubble, subscribe, empty, insert, detach, element, attr, create_component, space, mount_component, transition_in, group_outros, transition_out, check_outros, destroy_component, binding_callbacks } from 'svelte/internal';\nimport { getContext } from 'svelte';\nimport { ancestor, addDuration, cloneDate, addDay, rect, createDuration, toEventWithLocalDates, toISOString, toViewWithLocalDates, cloneEvent, assign } from '@event-calendar/common';\n\nfunction traverseTimeGrid(dayEl) {\n let colEl = child(ancestor(dayEl, 1), 1);\n let bodyEl = ancestor(dayEl, 3);\n let col = pos(dayEl) - 1;\n\n return [colEl, bodyEl, col];\n}\n\nfunction traverseResourceTimeGrid(dayEl, datesAboveResources) {\n let colEl = child(child(ancestor(dayEl, 2), 1), 0);\n let resourceEl = ancestor(dayEl, 1);\n let bodyEl = ancestor(resourceEl, 3);\n let col = pos(dayEl);\n let resourceCol = pos(resourceEl) - 1;\n\n return datesAboveResources ? [colEl, bodyEl, resourceCol, col] : [colEl, bodyEl, col, resourceCol];\n}\n\nfunction traverseDayGrid(dayEl) {\n let daysEl = ancestor(dayEl, 1);\n let contentEl = ancestor(daysEl, 1);\n let colEl = child(child(contentEl, 0), 0);\n let bodyEl = ancestor(contentEl, 1);\n let col = pos(dayEl);\n let row = pos(daysEl);\n\n return [colEl, bodyEl, col, row, contentEl.children];\n}\n\nfunction child(el, pos) {\n return el.children[pos];\n}\n\nfunction pos(el) {\n let result = 0;\n while ((el = el.previousElementSibling)) {\n ++result;\n }\n return result;\n}\n\nlet busy = false;\nfunction animate(fn) {\n if (!busy) {\n busy = true;\n window.requestAnimationFrame(() => {\n fn();\n busy = false;\n });\n }\n}\n\nfunction limit(value, max) {\n return Math.max(0, Math.min(max, value));\n}\n\nfunction floor(value) {\n return Math.floor(value);\n}\n\n/* packages/interaction/src/Action.svelte generated by Svelte v3.55.1 */\n\nconst { window: window_1 } = globals;\n\nfunction create_fragment$3(ctx) {\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tc: noop,\n\t\tm(target, anchor) {\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(window_1, \"pointermove\", /*handlePointerMove*/ ctx[31]),\n\t\t\t\t\tlisten(window_1, \"pointerup\", /*handlePointerUp*/ ctx[32]),\n\t\t\t\t\tlisten(window_1, \"pointercancel\", /*handlePointerUp*/ ctx[32]),\n\t\t\t\t\tlisten(window_1, \"scroll\", /*handleScroll*/ ctx[0]),\n\t\t\t\t\tlisten(window_1, \"selectstart\", function () {\n\t\t\t\t\t\tif (is_function(createPreventDefaultHandler(/*selectstart_handler*/ ctx[40]))) createPreventDefaultHandler(/*selectstart_handler*/ ctx[40]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(window_1, \"contextmenu\", function () {\n\t\t\t\t\t\tif (is_function(createPreventDefaultHandler(/*contextmenu_handler*/ ctx[41]))) createPreventDefaultHandler(/*contextmenu_handler*/ ctx[41]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(window_1, \"touchstart\", /*handleTouchStart*/ ctx[33]),\n\t\t\t\t\tlisten(window_1, \"touchmove\", /*touchmove_handler*/ ctx[39], { passive: false })\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nconst ACTION_DRAG = 1;\nconst ACTION_RESIZE = 2;\nconst ACTION_SELECT = 3;\nconst VIEW_TIME_GRID = 1;\nconst VIEW_DAY_GRID = 2;\n\nfunction createPreventDefaultHandler(condition) {\n\treturn jsEvent => {\n\t\tif (condition()) {\n\t\t\tjsEvent.preventDefault();\n\t\t}\n\t};\n}\n\nfunction instance$3($$self, $$props, $$invalidate) {\n\tlet $_view;\n\tlet $unselectFn;\n\tlet $_events;\n\tlet $_iEvents;\n\tlet $selectBackgroundColor;\n\tlet $_iClass;\n\n\tlet $_viewResources,\n\t\t$$unsubscribe__viewResources = noop,\n\t\t$$subscribe__viewResources = () => ($$unsubscribe__viewResources(), $$unsubscribe__viewResources = subscribe(_viewResources, $$value => $$invalidate(71, $_viewResources = $$value)), _viewResources);\n\n\tlet $eventDrop;\n\tlet $eventResize;\n\tlet $eventDragStop;\n\tlet $eventResizeStop;\n\tlet $select;\n\tlet $unselectCancel;\n\tlet $unselectAuto;\n\tlet $dragScroll;\n\tlet $eventDragStart;\n\tlet $eventResizeStart;\n\tlet $_viewDates;\n\tlet $hiddenDays;\n\tlet $slotDuration;\n\tlet $slotHeight;\n\tlet $datesAboveResources;\n\tlet $_ignoreClick;\n\tlet $eventDragMinDistance;\n\tlet $selectMinDistance;\n\tlet $longPressDelay;\n\tlet $eventLongPressDelay;\n\tlet $selectLongPressDelay;\n\t$$self.$$.on_destroy.push(() => $$unsubscribe__viewResources());\n\tlet { _iEvents, _iClass, _ignoreClick, _events, _viewDates, _view, datesAboveResources, dragScroll, editable, eventStartEditable, eventDragMinDistance, eventDragStart, eventDragStop, eventDrop, eventLongPressDelay, eventResizeStart, eventResizeStop, eventResize, longPressDelay, select, selectBackgroundColor, selectLongPressDelay, selectMinDistance, slotDuration, slotHeight, hiddenDays, unselect: unselectFn, unselectAuto, unselectCancel } = getContext('state');\n\tcomponent_subscribe($$self, _iEvents, value => $$invalidate(68, $_iEvents = value));\n\tcomponent_subscribe($$self, _iClass, value => $$invalidate(70, $_iClass = value));\n\tcomponent_subscribe($$self, _ignoreClick, value => $$invalidate(87, $_ignoreClick = value));\n\tcomponent_subscribe($$self, _events, value => $$invalidate(67, $_events = value));\n\tcomponent_subscribe($$self, _viewDates, value => $$invalidate(82, $_viewDates = value));\n\tcomponent_subscribe($$self, _view, value => $$invalidate(65, $_view = value));\n\tcomponent_subscribe($$self, datesAboveResources, value => $$invalidate(86, $datesAboveResources = value));\n\tcomponent_subscribe($$self, dragScroll, value => $$invalidate(79, $dragScroll = value));\n\tcomponent_subscribe($$self, eventDragMinDistance, value => $$invalidate(88, $eventDragMinDistance = value));\n\tcomponent_subscribe($$self, eventDragStart, value => $$invalidate(80, $eventDragStart = value));\n\tcomponent_subscribe($$self, eventDragStop, value => $$invalidate(74, $eventDragStop = value));\n\tcomponent_subscribe($$self, eventDrop, value => $$invalidate(72, $eventDrop = value));\n\tcomponent_subscribe($$self, eventLongPressDelay, value => $$invalidate(91, $eventLongPressDelay = value));\n\tcomponent_subscribe($$self, eventResizeStart, value => $$invalidate(81, $eventResizeStart = value));\n\tcomponent_subscribe($$self, eventResizeStop, value => $$invalidate(75, $eventResizeStop = value));\n\tcomponent_subscribe($$self, eventResize, value => $$invalidate(73, $eventResize = value));\n\tcomponent_subscribe($$self, longPressDelay, value => $$invalidate(90, $longPressDelay = value));\n\tcomponent_subscribe($$self, select, value => $$invalidate(76, $select = value));\n\tcomponent_subscribe($$self, selectBackgroundColor, value => $$invalidate(69, $selectBackgroundColor = value));\n\tcomponent_subscribe($$self, selectLongPressDelay, value => $$invalidate(92, $selectLongPressDelay = value));\n\tcomponent_subscribe($$self, selectMinDistance, value => $$invalidate(89, $selectMinDistance = value));\n\tcomponent_subscribe($$self, slotDuration, value => $$invalidate(84, $slotDuration = value));\n\tcomponent_subscribe($$self, slotHeight, value => $$invalidate(85, $slotHeight = value));\n\tcomponent_subscribe($$self, hiddenDays, value => $$invalidate(83, $hiddenDays = value));\n\tcomponent_subscribe($$self, unselectFn, value => $$invalidate(66, $unselectFn = value));\n\tcomponent_subscribe($$self, unselectAuto, value => $$invalidate(78, $unselectAuto = value));\n\tcomponent_subscribe($$self, unselectCancel, value => $$invalidate(77, $unselectCancel = value));\n\tlet action;\n\tlet view;\n\tlet interacting;\n\tlet event;\n\tlet col, row;\n\tlet offsetX, offsetY;\n\tlet fromX, fromY;\n\tlet toX, toY;\n\tlet delta;\n\tlet colEl, rowEls, bodyEl;\n\tlet colRect, bodyRect;\n\tlet _viewResources;\n\tlet resourceCol, newResourceCol;\n\tlet isAllDay = false;\n\tlet iClass;\n\tlet minEnd; // minimum end time when resizing\n\tlet selected; // whether selection has been made\n\tlet timer; // timer for long press delays\n\n\tfunction dragTimeGrid(eventToDrag, el, jsEvent, resourcesStore, allDay, resize) {\n\t\tif (!action && jsEvent.isPrimary) {\n\t\t\t$$invalidate(1, action = resize ? ACTION_RESIZE : ACTION_DRAG);\n\t\t\tview = VIEW_TIME_GRID;\n\t\t\tevent = eventToDrag;\n\t\t\t$$subscribe__viewResources($$invalidate(2, _viewResources = resourcesStore));\n\t\t\tisAllDay = allDay;\n\t\t\tiClass = resize ? allDay ? 'resizingX' : 'resizingY' : 'dragging';\n\t\t\tlet dayEl = ancestor(el, 2);\n\n\t\t\tif (resourcesStore) {\n\t\t\t\t[colEl, bodyEl, col, resourceCol] = traverseResourceTimeGrid(dayEl, $datesAboveResources);\n\t\t\t} else {\n\t\t\t\t[colEl, bodyEl, col] = traverseTimeGrid(dayEl);\n\t\t\t}\n\n\t\t\tcommon(jsEvent);\n\t\t\toffsetY = floor((jsEvent.clientY - colRect.top) / $slotHeight);\n\t\t\toffsetX = 0; // applicable for all-day slot\n\n\t\t\tif (allDay && (!resourcesStore || !$datesAboveResources)) {\n\t\t\t\toffsetX = floor((jsEvent.clientX - colRect.left) / colRect.width) - col - (resourceCol || 0) * $_viewDates.length;\n\t\t\t}\n\n\t\t\tif (resize) {\n\t\t\t\tminEnd = addDuration(cloneDate(event.start), $slotDuration);\n\t\t\t}\n\n\t\t\tmove(jsEvent);\n\t\t}\n\t}\n\n\tfunction dragDayGrid(eventToDrag, el, jsEvent, inPopup, resize) {\n\t\tif (!action && jsEvent.isPrimary) {\n\t\t\t$$invalidate(1, action = resize ? ACTION_RESIZE : ACTION_DRAG);\n\t\t\tview = VIEW_DAY_GRID;\n\t\t\tevent = eventToDrag;\n\t\t\tiClass = resize ? 'resizingX' : 'dragging';\n\t\t\tlet dayEl = ancestor(el, inPopup ? 3 : 2);\n\t\t\t[colEl, bodyEl, col, row, rowEls] = traverseDayGrid(dayEl);\n\t\t\tcommon(jsEvent);\n\n\t\t\toffsetX = inPopup\n\t\t\t? 0\n\t\t\t: floor((jsEvent.clientX - colRect.left) / colRect.width) - col;\n\n\t\t\tif (resize) {\n\t\t\t\tminEnd = cloneDate(event.start);\n\t\t\t\tminEnd.setUTCHours(event.end.getUTCHours(), event.end.getUTCMinutes(), event.end.getUTCSeconds());\n\n\t\t\t\tif (minEnd < event.start) {\n\t\t\t\t\taddDay(minEnd);\n\t\t\t\t} // minEnd = addDuration(cloneDate(event.start), $slotDuration); alternative version\n\t\t\t}\n\n\t\t\tmove(jsEvent);\n\t\t}\n\t}\n\n\tfunction selectTimeGrid(colDate, dayEl, jsEvent, resourcesStore, _slotTimeLimits, allDay) {\n\t\tif (!action && jsEvent.isPrimary) {\n\t\t\t$$invalidate(1, action = ACTION_SELECT);\n\t\t\tview = VIEW_TIME_GRID;\n\t\t\t$$subscribe__viewResources($$invalidate(2, _viewResources = resourcesStore));\n\t\t\tisAllDay = allDay;\n\t\t\tiClass = 'selecting';\n\n\t\t\tif (resourcesStore) {\n\t\t\t\t[colEl, bodyEl, col, resourceCol] = traverseResourceTimeGrid(dayEl, $datesAboveResources);\n\t\t\t} else {\n\t\t\t\t[colEl, bodyEl, col] = traverseTimeGrid(dayEl);\n\t\t\t}\n\n\t\t\tcommon(jsEvent);\n\t\t\toffsetY = floor((jsEvent.clientY - colRect.top) / $slotHeight);\n\t\t\toffsetX = 0; // applicable for all-day slot\n\n\t\t\tif (allDay && (!resourcesStore || !$datesAboveResources)) {\n\t\t\t\toffsetX = floor((jsEvent.clientX - colRect.left) / colRect.width) - col - (resourceCol || 0) * $_viewDates.length;\n\t\t\t}\n\n\t\t\t// Create dummy source event\n\t\t\tlet date = cloneDate(colDate);\n\n\t\t\tif (!allDay) {\n\t\t\t\taddDuration(date, $slotDuration, offsetY + _slotTimeLimits.min.seconds / $slotDuration.seconds);\n\t\t\t}\n\n\t\t\tevent = {\n\t\t\t\tallDay,\n\t\t\t\tstart: date,\n\t\t\t\tend: allDay\n\t\t\t\t? addDay(cloneDate(date))\n\t\t\t\t: addDuration(cloneDate(date), $slotDuration),\n\t\t\t\tresourceIds: _viewResources ? [$_viewResources[resourceCol].id] : []\n\t\t\t};\n\n\t\t\tmove(jsEvent);\n\t\t}\n\t}\n\n\tfunction selectDayGrid(dayDate, dayEl, jsEvent) {\n\t\tif (!action && jsEvent.isPrimary) {\n\t\t\t$$invalidate(1, action = ACTION_SELECT);\n\t\t\tview = VIEW_DAY_GRID;\n\t\t\tiClass = 'selecting';\n\t\t\t[colEl, bodyEl, col, row, rowEls] = traverseDayGrid(dayEl);\n\t\t\tcommon(jsEvent);\n\t\t\toffsetX = floor((jsEvent.clientX - colRect.left) / colRect.width) - col;\n\n\t\t\t// Create dummy source event\n\t\t\tlet date = cloneDate(dayDate);\n\n\t\t\tevent = {\n\t\t\t\tallDay: false,\n\t\t\t\tstart: date,\n\t\t\t\tend: addDay(cloneDate(date)),\n\t\t\t\tresourceIds: []\n\t\t\t};\n\n\t\t\tmove(jsEvent);\n\t\t}\n\t}\n\n\tfunction common(jsEvent) {\n\t\twindow.getSelection().removeAllRanges();\n\t\tcolRect = rect(colEl);\n\t\tbodyRect = rect(bodyEl);\n\t\tfromX = toX = jsEvent.clientX;\n\t\tfromY = toY = jsEvent.clientY;\n\n\t\tif (jsEvent.pointerType !== 'mouse') {\n\t\t\t// For touch devices init long press delay\n\t\t\t$$invalidate(3, timer = setTimeout(\n\t\t\t\t() => {\n\t\t\t\t\tif (action) {\n\t\t\t\t\t\tinteracting = true;\n\t\t\t\t\t\tmove(jsEvent);\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t(selecting()\n\t\t\t\t? $selectLongPressDelay\n\t\t\t\t: $eventLongPressDelay) ?? $longPressDelay\n\t\t\t));\n\t\t}\n\t}\n\n\tfunction move(jsEvent) {\n\t\tlet rx = toX - colRect.left;\n\t\tlet ry = toY - colRect.top;\n\n\t\tif (interacting || jsEvent && jsEvent.pointerType === 'mouse' && distance() >= (selecting() ? $selectMinDistance : $eventDragMinDistance)) {\n\t\t\tinteracting = true;\n\t\t\tunselect(jsEvent);\n\t\t\tset_store_value(_iClass, $_iClass = iClass, $_iClass);\n\t\t\tset_store_value(_ignoreClick, $_ignoreClick = true, $_ignoreClick);\n\t\t\tlet newCol = floor(rx / colRect.width);\n\n\t\t\tif (view === VIEW_TIME_GRID) {\n\t\t\t\t// timeGrid\n\t\t\t\tif (_viewResources) {\n\t\t\t\t\tif (dragging()) {\n\t\t\t\t\t\tif ($datesAboveResources) {\n\t\t\t\t\t\t\tlet dayCol = limit(floor(newCol / $_viewResources.length), $_viewDates.length - 1);\n\t\t\t\t\t\t\tnewResourceCol = limit(newCol - dayCol * $_viewResources.length, $_viewResources.length - 1);\n\t\t\t\t\t\t\tnewCol = dayCol;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnewResourceCol = limit(floor(newCol / $_viewDates.length), $_viewResources.length - 1);\n\t\t\t\t\t\t\tnewCol -= newResourceCol * $_viewDates.length;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ($datesAboveResources) {\n\t\t\t\t\t\t\tnewCol = floor(newCol / $_viewResources.length);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnewCol -= resourceCol * $_viewDates.length;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tnewCol = limit(newCol, $_viewDates.length - 1);\n\n\t\t\t\tdelta = createDuration({\n\t\t\t\t\tdays: ($_viewDates[newCol] - $_viewDates[col]) / 1000 / 60 / 60 / 24 - offsetX,\n\t\t\t\t\tseconds: isAllDay\n\t\t\t\t\t? 0\n\t\t\t\t\t: (floor(ry / $slotHeight) - offsetY) * $slotDuration.seconds\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\t// dayGrid\n\t\t\t\tlet cols = 7 - $hiddenDays.length;\n\n\t\t\t\tnewCol = limit(newCol, cols - 1);\n\t\t\t\tlet newRow = -1;\n\n\t\t\t\tdo {\n\t\t\t\t\t++newRow;\n\t\t\t\t\try -= rowEls[newRow].offsetHeight;\n\t\t\t\t} while (ry > 0 && newRow < rowEls.length - 1);\n\n\t\t\t\tdelta = createDuration({\n\t\t\t\t\tdays: ($_viewDates[newRow * cols + newCol] - $_viewDates[row * cols + col]) / 1000 / 60 / 60 / 24 - offsetX\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (!$_iEvents[0]) {\n\t\t\t\tif (selecting()) {\n\t\t\t\t\tcreateIEventSelect();\n\t\t\t\t} else {\n\t\t\t\t\tcreateIEvent(jsEvent, resizing() ? $eventResizeStart : $eventDragStart);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tset_store_value(_iEvents, $_iEvents[0].end = addDuration(cloneDate(event.end), delta), $_iEvents);\n\n\t\t\tif (resizing()) {\n\t\t\t\tif ($_iEvents[0].end < minEnd) {\n\t\t\t\t\tset_store_value(_iEvents, $_iEvents[0].end = minEnd, $_iEvents);\n\t\t\t\t\tdelta = createDuration(($_iEvents[0].end - event.end) / 1000);\n\t\t\t\t}\n\t\t\t} else if (selecting()) {\n\t\t\t\tif ($_iEvents[0].end < event.end) {\n\t\t\t\t\tset_store_value(_iEvents, $_iEvents[0].end = event.end, $_iEvents);\n\t\t\t\t\tset_store_value(_iEvents, $_iEvents[0].start = addDuration(cloneDate(event.start), delta), $_iEvents);\n\t\t\t\t} else {\n\t\t\t\t\tset_store_value(_iEvents, $_iEvents[0].start = event.start, $_iEvents);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tset_store_value(_iEvents, $_iEvents[0].start = addDuration(cloneDate(event.start), delta), $_iEvents);\n\n\t\t\t\tif (_viewResources) {\n\t\t\t\t\tset_store_value(_iEvents, $_iEvents[0].resourceIds = event.resourceIds.filter(id => id !== $_viewResources[resourceCol].id), $_iEvents);\n\t\t\t\t\t$_iEvents[0].resourceIds.push($_viewResources[newResourceCol].id);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ($dragScroll) {\n\t\t\tanimate(() => {\n\t\t\t\tif (toY < 0) {\n\t\t\t\t\twindow.scrollBy(0, Math.max(-10, toY / 3));\n\t\t\t\t}\n\n\t\t\t\tif (toY < bodyRect.top) {\n\t\t\t\t\tbodyEl.scrollTop += Math.max(-10, (toY - bodyRect.top) / 3);\n\t\t\t\t}\n\n\t\t\t\tif (toY > window.innerHeight) {\n\t\t\t\t\twindow.scrollBy(0, Math.min(10, (toY - window.innerHeight) / 3));\n\t\t\t\t}\n\n\t\t\t\tif (toY > bodyRect.bottom) {\n\t\t\t\t\tbodyEl.scrollTop += Math.min(10, (toY - bodyRect.bottom) / 3);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\n\tfunction handleScroll() {\n\t\tif (action) {\n\t\t\tcolRect = rect(colEl);\n\t\t\tbodyRect = rect(bodyEl);\n\t\t\tmove();\n\t\t}\n\t}\n\n\tfunction handlePointerMove(jsEvent) {\n\t\tif (action && jsEvent.isPrimary) {\n\t\t\ttoX = jsEvent.clientX;\n\t\t\ttoY = jsEvent.clientY;\n\t\t\tmove(jsEvent);\n\t\t}\n\t}\n\n\tfunction handlePointerUp(jsEvent) {\n\t\tif (selected && $unselectAuto && !($unselectCancel && jsEvent.target.closest($unselectCancel))) {\n\t\t\tunselect(jsEvent);\n\t\t}\n\n\t\tif (action && jsEvent.isPrimary) {\n\t\t\tif (interacting) {\n\t\t\t\tif (selecting()) {\n\t\t\t\t\tselected = true;\n\n\t\t\t\t\tif (is_function($select)) {\n\t\t\t\t\t\tlet { start, end } = toEventWithLocalDates($_iEvents[0]);\n\n\t\t\t\t\t\t$select({\n\t\t\t\t\t\t\tstart,\n\t\t\t\t\t\t\tend,\n\t\t\t\t\t\t\tstartStr: toISOString($_iEvents[0].start),\n\t\t\t\t\t\t\tendStr: toISOString($_iEvents[0].end),\n\t\t\t\t\t\t\tallDay: isAllDay,\n\t\t\t\t\t\t\tjsEvent,\n\t\t\t\t\t\t\tview: toViewWithLocalDates($_view),\n\t\t\t\t\t\t\tresource: resourceCol !== undefined\n\t\t\t\t\t\t\t? $_viewResources[resourceCol]\n\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tevent.display = 'auto';\n\t\t\t\t\tlet callback = resizing() ? $eventResizeStop : $eventDragStop;\n\n\t\t\t\t\tif (is_function(callback)) {\n\t\t\t\t\t\tcallback({\n\t\t\t\t\t\t\tevent: toEventWithLocalDates(event),\n\t\t\t\t\t\t\tjsEvent,\n\t\t\t\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\tlet oldEvent = cloneEvent(event);\n\t\t\t\t\tupdateEvent(event, $_iEvents[0]);\n\t\t\t\t\tdestroyIEvent();\n\t\t\t\t\tcallback = resizing() ? $eventResize : $eventDrop;\n\n\t\t\t\t\tif (is_function(callback)) {\n\t\t\t\t\t\tlet eventRef = event;\n\n\t\t\t\t\t\tlet info = resizing()\n\t\t\t\t\t\t? { endDelta: delta }\n\t\t\t\t\t\t: {\n\t\t\t\t\t\t\t\tdelta,\n\t\t\t\t\t\t\t\toldResource: resourceCol !== newResourceCol\n\t\t\t\t\t\t\t\t? $_viewResources[resourceCol]\n\t\t\t\t\t\t\t\t: undefined,\n\t\t\t\t\t\t\t\tnewResource: resourceCol !== newResourceCol\n\t\t\t\t\t\t\t\t? $_viewResources[newResourceCol]\n\t\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\tcallback(assign(info, {\n\t\t\t\t\t\t\tevent: toEventWithLocalDates(event),\n\t\t\t\t\t\t\toldEvent: toEventWithLocalDates(oldEvent),\n\t\t\t\t\t\t\tjsEvent,\n\t\t\t\t\t\t\tview: toViewWithLocalDates($_view),\n\t\t\t\t\t\t\trevert() {\n\t\t\t\t\t\t\t\tupdateEvent(eventRef, oldEvent);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tcolEl = rowEls = bodyEl = null;\n\t\t\tresourceCol = newResourceCol = undefined;\n\t\t\t$$invalidate(1, action = view = interacting = false);\n\t\t\tisAllDay = false;\n\t\t\tset_store_value(_iClass, $_iClass = undefined, $_iClass);\n\t\t\t$$subscribe__viewResources($$invalidate(2, _viewResources = undefined));\n\n\t\t\tif (timer) {\n\t\t\t\tclearTimeout(timer);\n\t\t\t\t$$invalidate(3, timer = undefined);\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction createIEvent(jsEvent, callback) {\n\t\tif (is_function(callback)) {\n\t\t\tcallback({\n\t\t\t\tevent: toEventWithLocalDates(event),\n\t\t\t\tjsEvent,\n\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t});\n\t\t}\n\n\t\tevent.display = 'preview';\n\t\tset_store_value(_iEvents, $_iEvents[0] = cloneEvent(event), $_iEvents);\n\t\tevent.display = 'ghost';\n\t\t_events.set($_events);\n\t}\n\n\tfunction createIEventSelect() {\n\t\tset_store_value(\n\t\t\t_iEvents,\n\t\t\t$_iEvents[0] = {\n\t\t\t\tid: '{select}',\n\t\t\t\tallDay: event.allDay,\n\t\t\t\tstart: event.start,\n\t\t\t\ttitle: '',\n\t\t\t\tdisplay: 'preview',\n\t\t\t\textendedProps: {},\n\t\t\t\tbackgroundColor: $selectBackgroundColor,\n\t\t\t\tresourceIds: event.resourceIds\n\t\t\t},\n\t\t\t$_iEvents\n\t\t);\n\t}\n\n\tfunction destroyIEvent() {\n\t\tset_store_value(_iEvents, $_iEvents[0] = null, $_iEvents);\n\t}\n\n\tfunction updateEvent(target, source) {\n\t\ttarget.start = source.start;\n\t\ttarget.end = source.end;\n\t\ttarget.resourceIds = source.resourceIds;\n\t\t_events.set($_events);\n\t}\n\n\tfunction distance() {\n\t\treturn Math.sqrt(Math.pow(toX - fromX, 2) + Math.pow(toY - fromY, 2));\n\t}\n\n\tfunction dragging() {\n\t\treturn action === ACTION_DRAG;\n\t}\n\n\tfunction resizing() {\n\t\treturn action === ACTION_RESIZE;\n\t}\n\n\tfunction selecting() {\n\t\treturn action === ACTION_SELECT;\n\t}\n\n\tfunction unselect(jsEvent) {\n\t\tif (selected) {\n\t\t\tselected = false;\n\t\t\tdestroyIEvent();\n\n\t\t\tif (is_function($unselectFn)) {\n\t\t\t\t$unselectFn({\n\t\t\t\t\tjsEvent,\n\t\t\t\t\tview: toViewWithLocalDates($_view)\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\n\t// Clear selection on view params change\n\t_view.subscribe(unselect);\n\n\tfunction handleTouchStart(jsEvent) {\n\t\tif (action) {\n\t\t\tlet target = jsEvent.target;\n\t\t\tlet stops = [];\n\t\t\tlet stop = () => run_all(stops);\n\t\t\tstops.push(listen(target, 'touchmove', createPreventDefaultHandler(() => interacting)));\n\t\t\tstops.push(listen(target, 'touchend', stop));\n\t\t\tstops.push(listen(target, 'touchcancel', stop));\n\t\t}\n\t}\n\n\tfunction touchmove_handler(event) {\n\t\tbubble.call(this, $$self, event);\n\t}\n\n\tconst selectstart_handler = () => action;\n\tconst contextmenu_handler = () => timer;\n\n\treturn [\n\t\thandleScroll,\n\t\taction,\n\t\t_viewResources,\n\t\ttimer,\n\t\t_iEvents,\n\t\t_iClass,\n\t\t_ignoreClick,\n\t\t_events,\n\t\t_viewDates,\n\t\t_view,\n\t\tdatesAboveResources,\n\t\tdragScroll,\n\t\teventDragMinDistance,\n\t\teventDragStart,\n\t\teventDragStop,\n\t\teventDrop,\n\t\teventLongPressDelay,\n\t\teventResizeStart,\n\t\teventResizeStop,\n\t\teventResize,\n\t\tlongPressDelay,\n\t\tselect,\n\t\tselectBackgroundColor,\n\t\tselectLongPressDelay,\n\t\tselectMinDistance,\n\t\tslotDuration,\n\t\tslotHeight,\n\t\thiddenDays,\n\t\tunselectFn,\n\t\tunselectAuto,\n\t\tunselectCancel,\n\t\thandlePointerMove,\n\t\thandlePointerUp,\n\t\thandleTouchStart,\n\t\tdragTimeGrid,\n\t\tdragDayGrid,\n\t\tselectTimeGrid,\n\t\tselectDayGrid,\n\t\tunselect,\n\t\ttouchmove_handler,\n\t\tselectstart_handler,\n\t\tcontextmenu_handler\n\t];\n}\n\nclass Action extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$3,\n\t\t\tcreate_fragment$3,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tdragTimeGrid: 34,\n\t\t\t\tdragDayGrid: 35,\n\t\t\t\tselectTimeGrid: 36,\n\t\t\t\tselectDayGrid: 37,\n\t\t\t\thandleScroll: 0,\n\t\t\t\tunselect: 38\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1, -1, -1]\n\t\t);\n\t}\n\n\tget dragTimeGrid() {\n\t\treturn this.$$.ctx[34];\n\t}\n\n\tget dragDayGrid() {\n\t\treturn this.$$.ctx[35];\n\t}\n\n\tget selectTimeGrid() {\n\t\treturn this.$$.ctx[36];\n\t}\n\n\tget selectDayGrid() {\n\t\treturn this.$$.ctx[37];\n\t}\n\n\tget handleScroll() {\n\t\treturn this.$$.ctx[0];\n\t}\n\n\tget unselect() {\n\t\treturn this.$$.ctx[38];\n\t}\n}\n\n/* packages/interaction/src/Pointer.svelte generated by Svelte v3.55.1 */\n\nfunction create_fragment$2(ctx) {\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tc: noop,\n\t\tm(target, anchor) {\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(window, \"pointermove\", /*handlePointerMove*/ ctx[5]),\n\t\t\t\t\tlisten(window, \"scroll\", /*handleScroll*/ ctx[0])\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp: noop,\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction validEvent(jsEvent) {\n\treturn jsEvent.isPrimary && jsEvent.pointerType === 'mouse';\n}\n\nfunction instance$2($$self, $$props, $$invalidate) {\n\tlet $_iEvents;\n\tlet $slotDuration;\n\n\tlet $_slotTimeLimits,\n\t\t$$unsubscribe__slotTimeLimits = noop,\n\t\t$$subscribe__slotTimeLimits = () => ($$unsubscribe__slotTimeLimits(), $$unsubscribe__slotTimeLimits = subscribe(_slotTimeLimits, $$value => $$invalidate(17, $_slotTimeLimits = $$value)), _slotTimeLimits);\n\n\tlet $slotHeight;\n\t$$self.$$.on_destroy.push(() => $$unsubscribe__slotTimeLimits());\n\tlet { _iEvents, _events, _viewDates, slotDuration, slotHeight, hiddenDays, _view, datesAboveResources, theme } = getContext('state');\n\tcomponent_subscribe($$self, _iEvents, value => $$invalidate(9, $_iEvents = value));\n\tcomponent_subscribe($$self, slotDuration, value => $$invalidate(16, $slotDuration = value));\n\tcomponent_subscribe($$self, slotHeight, value => $$invalidate(18, $slotHeight = value));\n\tlet y;\n\tlet colDate;\n\tlet colEl;\n\tlet colRect;\n\tlet resource;\n\tlet _slotTimeLimits;\n\tlet date;\n\n\tfunction enterTimeGrid(date, el, jsEvent, slotTimeLimitsStore, resourceObj) {\n\t\tif (validEvent(jsEvent)) {\n\t\t\tcolDate = date;\n\t\t\tcolEl = el;\n\t\t\tcolRect = rect(colEl);\n\t\t\ty = jsEvent.clientY;\n\t\t\t$$subscribe__slotTimeLimits($$invalidate(1, _slotTimeLimits = slotTimeLimitsStore));\n\t\t\tresource = resourceObj;\n\t\t}\n\t}\n\n\tfunction enterDayGrid(date, jsEvent) {\n\t\tif (validEvent(jsEvent)) {\n\t\t\tcolDate = date;\n\t\t\tcolEl = null;\n\t\t\ty = $$subscribe__slotTimeLimits($$invalidate(1, _slotTimeLimits = resource = undefined));\n\t\t}\n\t}\n\n\tfunction leave(jsEvent) {\n\t\tif (validEvent(jsEvent)) {\n\t\t\tremovePointerEvent();\n\t\t}\n\t}\n\n\tfunction move() {\n\t\tif (!colDate) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (colEl) {\n\t\t\t// timeGrid\n\t\t\tlet ry = y - colRect.top;\n\n\t\t\tdate = addDuration(cloneDate(colDate), $slotDuration, floor(ry / $slotHeight + $_slotTimeLimits.min.seconds / $slotDuration.seconds));\n\t\t} else {\n\t\t\t// dayGrid\n\t\t\tdate = colDate;\n\t\t}\n\n\t\tif (!$_iEvents[1]) {\n\t\t\tcreatePointerEvent();\n\t\t}\n\n\t\tset_store_value(_iEvents, $_iEvents[1].start = date, $_iEvents);\n\t\tset_store_value(_iEvents, $_iEvents[1].end = addDuration(cloneDate(date), $slotDuration), $_iEvents);\n\t\tset_store_value(_iEvents, $_iEvents[1].resourceIds = resource ? [resource.id] : [], $_iEvents);\n\t}\n\n\tfunction handleScroll() {\n\t\tif (colEl) {\n\t\t\tcolRect = rect(colEl);\n\t\t\tmove();\n\t\t}\n\t}\n\n\tfunction handlePointerMove(jsEvent) {\n\t\tif (validEvent(jsEvent)) {\n\t\t\ty = jsEvent.clientY;\n\t\t\tmove();\n\t\t}\n\t}\n\n\tfunction createPointerEvent() {\n\t\tset_store_value(\n\t\t\t_iEvents,\n\t\t\t$_iEvents[1] = {\n\t\t\t\tid: '{pointer}',\n\t\t\t\ttitle: '',\n\t\t\t\tdisplay: 'pointer',\n\t\t\t\textendedProps: {},\n\t\t\t\tbackgroundColor: 'transparent'\n\t\t\t},\n\t\t\t$_iEvents\n\t\t);\n\t}\n\n\tfunction removePointerEvent() {\n\t\tcolDate = colEl = set_store_value(_iEvents, $_iEvents[1] = null, $_iEvents);\n\t}\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*$_iEvents*/ 512) {\n\t\t\tif ($_iEvents[0]) {\n\t\t\t\tremovePointerEvent();\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\thandleScroll,\n\t\t_slotTimeLimits,\n\t\t_iEvents,\n\t\tslotDuration,\n\t\tslotHeight,\n\t\thandlePointerMove,\n\t\tenterTimeGrid,\n\t\tenterDayGrid,\n\t\tleave,\n\t\t$_iEvents\n\t];\n}\n\nclass Pointer extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(this, options, instance$2, create_fragment$2, safe_not_equal, {\n\t\t\tenterTimeGrid: 6,\n\t\t\tenterDayGrid: 7,\n\t\t\tleave: 8,\n\t\t\thandleScroll: 0\n\t\t});\n\t}\n\n\tget enterTimeGrid() {\n\t\treturn this.$$.ctx[6];\n\t}\n\n\tget enterDayGrid() {\n\t\treturn this.$$.ctx[7];\n\t}\n\n\tget leave() {\n\t\treturn this.$$.ctx[8];\n\t}\n\n\tget handleScroll() {\n\t\treturn this.$$.ctx[0];\n\t}\n}\n\n/* packages/interaction/src/Resizer.svelte generated by Svelte v3.55.1 */\n\nfunction create_if_block$1(ctx) {\n\tlet div;\n\tlet div_class_value;\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tattr(div, \"class\", div_class_value = /*$theme*/ ctx[2].resizer);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = listen(div, \"pointerdown\", /*pointerdown_handler*/ ctx[5]);\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*$theme*/ 4 && div_class_value !== (div_class_value = /*$theme*/ ctx[2].resizer)) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tmounted = false;\n\t\t\tdispose();\n\t\t}\n\t};\n}\n\nfunction create_fragment$1(ctx) {\n\tlet show_if = /*event*/ ctx[0].display === 'auto' && /*$_resizable*/ ctx[1](/*event*/ ctx[0]);\n\tlet if_block_anchor;\n\tlet if_block = show_if && create_if_block$1(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif (if_block) if_block.c();\n\t\t\tif_block_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (if_block) if_block.m(target, anchor);\n\t\t\tinsert(target, if_block_anchor, anchor);\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (dirty & /*event, $_resizable*/ 3) show_if = /*event*/ ctx[0].display === 'auto' && /*$_resizable*/ ctx[1](/*event*/ ctx[0]);\n\n\t\t\tif (show_if) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block$1(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\tif_block.m(if_block_anchor.parentNode, if_block_anchor);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tif_block.d(1);\n\t\t\t\tif_block = null;\n\t\t\t}\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tif (if_block) if_block.d(detaching);\n\t\t\tif (detaching) detach(if_block_anchor);\n\t\t}\n\t};\n}\n\nfunction instance$1($$self, $$props, $$invalidate) {\n\tlet $_resizable;\n\tlet $theme;\n\tlet { event } = $$props;\n\tlet { theme, _resizable } = getContext('state');\n\tcomponent_subscribe($$self, theme, value => $$invalidate(2, $theme = value));\n\tcomponent_subscribe($$self, _resizable, value => $$invalidate(1, $_resizable = value));\n\n\tfunction pointerdown_handler(event) {\n\t\tbubble.call(this, $$self, event);\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('event' in $$props) $$invalidate(0, event = $$props.event);\n\t};\n\n\treturn [event, $_resizable, $theme, theme, _resizable, pointerdown_handler];\n}\n\nclass Resizer extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$1, create_fragment$1, safe_not_equal, { event: 0 });\n\t}\n}\n\n/* packages/interaction/src/Auxiliary.svelte generated by Svelte v3.55.1 */\n\nfunction create_if_block(ctx) {\n\tlet pointer_1;\n\tlet current;\n\tlet pointer_1_props = {};\n\tpointer_1 = new Pointer({ props: pointer_1_props });\n\t/*pointer_1_binding*/ ctx[18](pointer_1);\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(pointer_1.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(pointer_1, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst pointer_1_changes = {};\n\t\t\tpointer_1.$set(pointer_1_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(pointer_1.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(pointer_1.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\t/*pointer_1_binding*/ ctx[18](null);\n\t\t\tdestroy_component(pointer_1, detaching);\n\t\t}\n\t};\n}\n\nfunction create_fragment(ctx) {\n\tlet action;\n\tlet t;\n\tlet if_block_anchor;\n\tlet current;\n\tlet action_props = {};\n\taction = new Action({ props: action_props });\n\t/*action_binding*/ ctx[17](action);\n\tlet if_block = /*$pointer*/ ctx[1] && create_if_block(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(action.$$.fragment);\n\t\t\tt = space();\n\t\t\tif (if_block) if_block.c();\n\t\t\tif_block_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(action, target, anchor);\n\t\t\tinsert(target, t, anchor);\n\t\t\tif (if_block) if_block.m(target, anchor);\n\t\t\tinsert(target, if_block_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tconst action_changes = {};\n\t\t\taction.$set(action_changes);\n\n\t\t\tif (/*$pointer*/ ctx[1]) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty & /*$pointer*/ 2) {\n\t\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\tif_block.m(if_block_anchor.parentNode, if_block_anchor);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block, 1, 1, () => {\n\t\t\t\t\tif_block = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(action.$$.fragment, local);\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(action.$$.fragment, local);\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\t/*action_binding*/ ctx[17](null);\n\t\t\tdestroy_component(action, detaching);\n\t\t\tif (detaching) detach(t);\n\t\t\tif (if_block) if_block.d(detaching);\n\t\t\tif (detaching) detach(if_block_anchor);\n\t\t}\n\t};\n}\n\nfunction instance($$self, $$props, $$invalidate) {\n\tlet $_interaction;\n\tlet $_scroll;\n\tlet $editable;\n\tlet $eventDurationEditable;\n\tlet $_resizable;\n\tlet $eventStartEditable;\n\tlet $_draggable;\n\tlet $theme;\n\tlet $_classes;\n\tlet $pointer;\n\tlet { theme, editable, eventStartEditable, eventDurationEditable, pointer, _interaction, _classes, _draggable, _resizable, _scroll } = getContext('state');\n\tcomponent_subscribe($$self, theme, value => $$invalidate(16, $theme = value));\n\tcomponent_subscribe($$self, editable, value => $$invalidate(12, $editable = value));\n\tcomponent_subscribe($$self, eventStartEditable, value => $$invalidate(14, $eventStartEditable = value));\n\tcomponent_subscribe($$self, eventDurationEditable, value => $$invalidate(13, $eventDurationEditable = value));\n\tcomponent_subscribe($$self, pointer, value => $$invalidate(1, $pointer = value));\n\tcomponent_subscribe($$self, _interaction, value => $$invalidate(0, $_interaction = value));\n\tcomponent_subscribe($$self, _classes, value => $$invalidate(21, $_classes = value));\n\tcomponent_subscribe($$self, _draggable, value => $$invalidate(15, $_draggable = value));\n\tcomponent_subscribe($$self, _resizable, value => $$invalidate(20, $_resizable = value));\n\tcomponent_subscribe($$self, _scroll, value => $$invalidate(19, $_scroll = value));\n\tset_store_value(_interaction, $_interaction.resizer = Resizer, $_interaction);\n\n\tset_store_value(\n\t\t_scroll,\n\t\t$_scroll = () => {\n\t\t\tfor (let component of Object.values($_interaction)) {\n\t\t\t\tcomponent?.handleScroll?.();\n\t\t\t}\n\t\t},\n\t\t$_scroll\n\t);\n\n\tfunction action_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\t$_interaction.action = $$value;\n\t\t\t_interaction.set($_interaction);\n\t\t});\n\t}\n\n\tfunction pointer_1_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\t$_interaction.pointer = $$value;\n\t\t\t_interaction.set($_interaction);\n\t\t});\n\t}\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*$eventStartEditable, $editable*/ 20480) {\n\t\t\tset_store_value(_draggable, $_draggable = event => (event.startEditable ?? $eventStartEditable) || (event.editable ?? $editable), $_draggable);\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*$_draggable, $theme*/ 98304) {\n\t\t\tset_store_value(\n\t\t\t\t_classes,\n\t\t\t\t$_classes = (className, event) => {\n\t\t\t\t\tswitch (event.display) {\n\t\t\t\t\t\tcase 'auto':\n\t\t\t\t\t\t\treturn className + ($_draggable(event) ? ' ' + $theme.draggable : '');\n\t\t\t\t\t\tcase 'ghost':\n\t\t\t\t\t\t\treturn `${$theme.event} ${$theme.ghost}`;\n\t\t\t\t\t\tcase 'preview':\n\t\t\t\t\t\t\treturn `${$theme.event} ${$theme.preview}`;\n\t\t\t\t\t\tcase 'pointer':\n\t\t\t\t\t\t\treturn `${$theme.event} ${$theme.pointer}`;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\treturn className;\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t$_classes\n\t\t\t);\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*$eventDurationEditable, $editable*/ 12288) {\n\t\t\tset_store_value(_resizable, $_resizable = event => (event.durationEditable ?? $eventDurationEditable) || (event.editable ?? $editable), $_resizable);\n\t\t}\n\t};\n\n\treturn [\n\t\t$_interaction,\n\t\t$pointer,\n\t\ttheme,\n\t\teditable,\n\t\teventStartEditable,\n\t\teventDurationEditable,\n\t\tpointer,\n\t\t_interaction,\n\t\t_classes,\n\t\t_draggable,\n\t\t_resizable,\n\t\t_scroll,\n\t\t$editable,\n\t\t$eventDurationEditable,\n\t\t$eventStartEditable,\n\t\t$_draggable,\n\t\t$theme,\n\t\taction_binding,\n\t\tpointer_1_binding\n\t];\n}\n\nclass Auxiliary extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance, create_fragment, safe_not_equal, {});\n\t}\n}\n\nvar index = {\n\tcreateOptions(options) {\n\t\toptions.dragScroll = true;\n\t\toptions.editable = false;\n\t\toptions.eventDragMinDistance = 5;\n\t\toptions.eventDragStart = undefined;\n\t\toptions.eventDragStop = undefined;\n\t\toptions.eventDrop = undefined;\n\t\toptions.eventDurationEditable = true;\n\t\toptions.eventLongPressDelay = undefined;\n\t\toptions.eventResizeStart = undefined;\n\t\toptions.eventResizeStop = undefined;\n\t\toptions.eventResize = undefined;\n\t\toptions.eventStartEditable = true;\n\t\toptions.longPressDelay = 1000;\n\t\toptions.pointer = false;\n\t\toptions.select = undefined;\n\t\toptions.selectBackgroundColor = undefined; // ec option\n\t\toptions.selectLongPressDelay = undefined;\n\t\toptions.selectMinDistance = 5;\n\t\toptions.unselect = undefined;\n\t\toptions.unselectAuto = true;\n\t\toptions.unselectCancel = '';\n\t\toptions.theme.draggable = 'ec-draggable';\n\t\toptions.theme.ghost = 'ec-ghost';\n\t\toptions.theme.preview = 'ec-preview';\n\t\toptions.theme.pointer = 'ec-pointer';\n\t\toptions.theme.resizer = 'ec-resizer';\n\t\toptions.theme.dragging = 'ec-dragging';\n\t\toptions.theme.resizingY = 'ec-resizing-y';\n\t\toptions.theme.resizingX = 'ec-resizing-x';\n\t\toptions.theme.selecting = 'ec-selecting';\n\t},\n\n\tcreateStores(state) {\n\t\tstate._auxiliary.update($_auxiliary => [...$_auxiliary, Auxiliary]);\n\t}\n};\n\nexport { index as default };\n","import Calendar from '@event-calendar/core';\nimport DayGrid from '@event-calendar/day-grid';\nimport List from '@event-calendar/list';\nimport TimeGrid from '@event-calendar/time-grid';\nimport ResourceTimeGrid from '@event-calendar/resource-time-grid';\nimport Interaction from '@event-calendar/interaction';\nimport '@event-calendar/core/index.css';\n\nexport default class extends Calendar {\n constructor(el, options) {\n super({\n target: el,\n props: {\n plugins: [DayGrid, List, TimeGrid, ResourceTimeGrid, Interaction],\n options\n }\n });\n }\n\n get view() {\n return this.getView();\n }\n}\n"],"names":["match","version","fails","exec","error","functionBindNative","require$$0","test","bind","hasOwnProperty","NATIVE_BIND","FunctionPrototype","Function","prototype","call","uncurryThisWithBind","functionUncurryThis","fn","apply","arguments","uncurryThis","toString","stringSlice","slice","classofRaw","it","require$$1","classof","require$$2","$Object","Object","split","indexedObject","propertyIsEnumerable","isNullOrUndefined","$TypeError","TypeError","requireObjectCoercible","IndexedObject","toIndexedObject","iterators","check","Math","global","globalThis","window","self","this","documentAll","document","all","documentAll_1","IS_HTMLDDA","undefined","isCallable","argument","WeakMap","weakMapBasicDetection","String","isObject","descriptors","defineProperty","get","EXISTS","createElement","documentCreateElement","ie8DomDefine","a","v8PrototypeDefineBug","value","writable","$String","anObject","functionCall","path","aFunction","variable","getBuiltIn","namespace","method","length","objectIsPrototypeOf","isPrototypeOf","userAgent","process","Deno","versions","v8","V8_VERSION","symbolConstructorDetection","getOwnPropertySymbols","symbol","Symbol","sham","useSymbolAsUid","iterator","isSymbol","require$$3","$Symbol","tryToString","aCallable","defineGlobalProperty","key","configurable","SHARED","sharedStore","store","sharedModule","push","mode","copyright","license","source","toObject","hasOwnProperty_1","hasOwn","id","postfix","random","uid","NATIVE_SYMBOL","require$$4","USE_SYMBOL_AS_UID","require$$5","WellKnownSymbolsStore","symbolFor","createWellKnownSymbol","withoutSetter","wellKnownSymbol","name","description","getMethod","V","P","func","ordinaryToPrimitive","input","pref","val","valueOf","TO_PRIMITIVE","toPrimitive","result","exoticToPrim","toPropertyKey","DESCRIPTORS","IE8_DOM_DEFINE","V8_PROTOTYPE_DEFINE_BUG","$defineProperty","$getOwnPropertyDescriptor","getOwnPropertyDescriptor","ENUMERABLE","CONFIGURABLE","WRITABLE","objectDefineProperty","f","O","Attributes","current","enumerable","set","has","createPropertyDescriptor","bitmap","definePropertyModule","createNonEnumerableProperty","object","keys","sharedKey","hiddenKeys","NATIVE_WEAK_MAP","shared","require$$6","require$$7","OBJECT_ALREADY_INITIALIZED","state","metadata","facade","STATE","internalState","enforce","getterFor","TYPE","type","functionApply","Reflect","functionUncurryThisClause","$propertyIsEnumerable","NASHORN_BUG","objectPropertyIsEnumerable","descriptor","propertyIsEnumerableModule","objectGetOwnPropertyDescriptor","replacement","isForced","feature","detection","data","normalize","POLYFILL","NATIVE","string","replace","toLowerCase","isForced_1","that","require$$8","require$$9","wrapConstructor","NativeConstructor","Wrapper","b","c","getDescriptor","functionName","PROPER","ceil","floor","trunc","x","n","toIntegerOrInfinity","number","max","min","toLength","toAbsoluteIndex","index","integer","lengthOfArrayLike","obj","createMethod","IS_INCLUDES","$this","el","fromIndex","arrayIncludes","includes","indexOf","enumBugKeys","internalObjectKeys","names","i","objectKeys","objectDefineProperties","defineProperties","Properties","props","activeXDocument","html","definePropertiesModule","PROTOTYPE","SCRIPT","IE_PROTO","EmptyConstructor","scriptTag","content","LT","NullProtoObjectViaActiveX","write","close","temp","parentWindow","NullProtoObject","ActiveXObject","iframeDocument","iframe","JS","domain","style","display","appendChild","src","contentWindow","open","F","IteratorPrototype","PrototypeOfArrayIteratorPrototype","arrayIterator","objectCreate","create","correctPrototypeGetter","constructor","getPrototypeOf","CORRECT_PROTOTYPE_GETTER","ObjectPrototype","objectGetPrototypeOf","defineBuiltIn","target","options","ITERATOR","BUGGY_SAFARI_ITERATORS","NEW_ITERATOR_PROTOTYPE","iteratorsCore","toStringTagSupport","TO_STRING_TAG_SUPPORT","TO_STRING_TAG","CORRECT_ARGUMENTS","tag","tryGet","callee","objectToString","setToStringTag","TAG","STATIC","SET_METHOD","Iterators","returnThis","$","FORCED","USE_NATIVE","VIRTUAL_PROTOTYPE","sourceProperty","targetProperty","nativeProperty","resultProperty","TARGET","GLOBAL","stat","PROTO","proto","nativeSource","targetPrototype","forced","dontCallGetSet","wrap","real","FunctionName","createIteratorConstructor","IteratorConstructor","NAME","next","ENUMERABLE_NEXT","require$$10","require$$12","IteratorsCore","require$$13","PROPER_FUNCTION_NAME","require$$11","KEYS","VALUES","ENTRIES","iteratorDefine","Iterable","DEFAULT","IS_SET","CurrentIteratorPrototype","methods","KEY","getIterationMethod","KIND","defaultIterator","IterablePrototype","INCORRECT_VALUES_NAME","nativeIterator","anyNativeIterator","entries","values","createIterResultObject","done","addToUnscopables","InternalStateModule","defineIterator","ARRAY_ITERATOR","setInternalState","getInternalState","defineIterator$1","Array","iterated","kind","Arguments","charAt","charCodeAt","CONVERT_TO_STRING","pos","first","second","S","position","size","codeAt","STRING_ITERATOR","point","isIterable_1","DOMIterables","CSSRuleList","CSSStyleDeclaration","CSSValueList","ClientRectList","DOMRectList","DOMStringList","DOMTokenList","DataTransferItemList","FileList","HTMLAllCollection","HTMLCollection","HTMLFormElement","HTMLSelectElement","MediaList","MimeTypeArray","NamedNodeMap","NodeList","PaintRequestList","Plugin","PluginArray","SVGLengthList","SVGNumberList","SVGPathSegList","SVGPointList","SVGStringList","SVGTransformList","SourceBufferList","StyleSheetList","TextTrackCueList","TextTrackList","TouchList","COLLECTION_NAME","Collection","CollectionPrototype","isIterable","noop","exports","module","identity","run","blank_object","run_all","fns","forEach","is_function","thing","safe_not_equal","subscribe","_len","callbacks","_key","unsub","unsubscribe","get_store_value","_","component_subscribe","component","callback","$$","on_destroy","create_slot","definition","ctx","$$scope","slot_ctx","get_slot_context","tar","k","assign","get_slot_changes","dirty","lets","merged","len","update_slot_base","slot","slot_definition","slot_changes","get_slot_context_fn","slot_context","p","get_all_dirty_from_scope","set_store_value","ret","action_destroyer","action_result","destroy","append","node","insert","anchor","insertBefore","detach","parentNode","removeChild","destroy_each","iterations","detaching","d","element","text","createTextNode","space","empty","listen","event","handler","addEventListener","removeEventListener","stop_propagation","stopPropagation","attr","attribute","removeAttribute","getAttribute","setAttribute","children","from","childNodes","set_data","wholeText","set_style","important","removeProperty","setProperty","construct_svelte_component","current_component","set_current_component","get_current_component","Error","onMount","on_mount","afterUpdate","after_update","setContext","context","getContext","bubble","dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","Promise","resolve","update_scheduled","schedule_update","then","flush","tick","add_render_callback","seen_callbacks","Set","flushidx","saved_component","update","e","pop","add","clear","fragment","before_update","outroing","outros","group_outros","r","check_outros","transition_in","block","local","delete","transition_out","o","globals","outro_and_destroy_block","lookup","update_keyed_each","old_blocks","get_key","dynamic","list","create_each_block","get_context","old_indexes","new_blocks","new_lookup","Map","deltas","child_ctx","abs","will_move","did_move","m","new_block","old_block","new_key","old_key","create_component","mount_component","customElement","new_on_destroy","map","filter","destroy_component","make_dirty","fill","init","instance","create_fragment","not_equal","append_styles","parent_component","bound","on_disconnect","skip_bound","root","ready","hydrate","nodes","l","intro","SvelteComponent","$destroy","$on","splice","$set","$$props","$$set","subscriber_queue","readable","start","stop","subscribers","new_value","run_queue","subscriber","invalidate","derived","stores","initial_value","single","isArray","stores_array","auto","inited","pending","cleanup","sync","unsubscribers","setContent","actions","firstChild","lastChild","domNodes","child","innerHTML","innerText","outsideEvent","handlePointerDown","jsEvent","contains","dispatchEvent","CustomEvent","detail","DAY_IN_SECONDS","createDate","Date","_fromLocalDate","str","parts","UTC","Number","_fromISOString","createDuration","seconds","exp","part","parseInt","pow","hours","getUTCHours","minutes","getUTCMinutes","getUTCSeconds","weeks","week","years","year","months","month","days","day","hour","minute","inWeeks","cloneDate","date","getTime","addDuration","duration","setUTCFullYear","getUTCFullYear","getUTCMonth","setUTCMonth","subtractDay","setUTCDate","getUTCDate","setUTCSeconds","addDay","setMidnight","setUTCHours","toLocalDate","toISOString","substring","formatRange","end","intl","getFullYear","format","diff","getMonth","getDate","opts1","resolvedOptions","opts2","intl2","Intl","DateTimeFormat","locale","full1","full2","part1","part2","common","str1","substr1","str2","substr2","res1","_cut","j","res2","head","tail","_commonChunks","datesEqual","date1","dates2","every","date2","prevClosestDay","getUTCDay","noTimePart","getHours","getMinutes","getSeconds","substr","debounce","handle","queueStore","queue","className","hasYScroll","scrollHeight","clientHeight","rect","getBoundingClientRect","ancestor","up","parentElement","height","fnProp","setFn","hasFn","runFn","_len2","args","_key2","toViewWithLocalDates","view","currentStart","currentEnd","activeStart","activeEnd","eventId","createEvents","resourceIds","resourceId","allDay","title","titleHTML","editable","startEditable","durationEditable","extendedProps","backgroundColor","color","createEventSources","events","url","trimEnd","toUpperCase","extraParams","createEventChunk","sortEventChunks","chunks","sort","prepareEventChunks","hiddenDays","longChunks","prevChunk","chunk","dates","sorted","prev","repositionEvent","top","bottom","margin","longChunk","offset","createEventContent","displayEventEnd","eventContent","theme","_intlEventTime","_view","timeText","toEventWithLocalDates","eventTime","eventTitle","_cloneEvent","cloneEvent","dateFn","eventIntersects","resource","timeMode","ignoreProp","ignore","maybeIgnore","writable2","parser","parse","derived2","initValue","storeValue","hasSubscribers","_ref","$locale","$format","State","plugins","allDayContent","allDaySlot","buttonText","today","dateClick","datesSet","dayHeaderFormat","weekday","eventBackgroundColor","eventClick","eventColor","eventDidMount","eventMouseEnter","eventMouseLeave","eventSources","eventTimeFormat","firstDay","flexibleSlotTimeLimits","headerToolbar","center","highlightedDates","lazyFetching","loading","monthMode","nowIndicator","selectable","scrollTime","slotDuration","slotEventOverlap","slotHeight","slotLabelFormat","slotMaxTime","slotMinTime","active","bgEvent","bgEvents","body","button","buttonGroup","calendar","compact","dayHead","eventBody","extra","header","hiddenScroll","hiddenTimes","highlight","icon","line","lines","otherMonth","sidebar","sidebarTitle","time","toolbar","withScroll","titleFormat","viewDidMount","views","plugin","createOptions","parsers","createParsers","option","_queue","_auxiliary","_currentRange","_ref2","$date","$duration","$monthMode","$firstDay","_activeRange","$_currentRange","$slotMinTime","$slotMaxTime","nextClosestDay","start2","activeRange","_fetchedRange","_events","abortController","fetching","debounceHandle","$events","$eventSources","$_activeRange","$_fetchedRange","$lazyFetching","$loading","abort","AbortController","stopLoading","failure","success","concat","startStr","endStr","params","URLSearchParams","headers","fetch","signal","credentials","response","json","catch","_now","interval","setInterval","clearInterval","_today","$_now","_ignoreClick","_intlSlotLabel","_intlDayHeader","_titleIntlRange","_scrollable","_viewTitle","_ref4","$_titleIntlRange","viewTitle","_viewDates","_ref3","$hiddenDays","viewDates","createView","_viewComponent","_viewClass","_resBgColor","_interaction","_iEvents","_draggable","_resizable","_classes","_iClass","_scroll","createStores","commonOpts","parseOpts","viewOpts","opts","newView","_set","rest","get_each_context$2","create_else_block$1","t","button_class_value","mounted","dispose","t_value","click_handler_1","new_ctx","create_if_block_4","disabled","create_if_block_3","i_class_value","create_if_block_2","create_if_block_1","h2","h2_class_value","create_if_block$1","create_each_block$2","if_block_anchor","select_block_type","current_block_type","if_block","create_fragment$3","each_1_anchor","each_value","each_blocks","_ref5","instance$3","$$self","$$invalidate","$theme","$_viewTitle","$buttonText","$view","buttons","isToday","subtractDuration","Buttons","super","get_each_context$1","get_each_context_1","create_else_block","buttons_changes","create_if_block","div","div_class_value","create_each_block_1","current_block_type_index","if_block_creators","if_blocks","previous_block_index","create_each_block$1","each_value_1","out","Boolean","create_fragment$2","_ref6","instance$2","$headerToolbar","sections","group","Toolbar","get_each_context","switch_instance","switch_instance_anchor","switch_value","old_component","create_fragment$1","_ref7","instance$1","$_view","$datesSet","$_auxiliary","runDatesSet","Auxiliary","t0","t1","auxiliary","$_queue","$_ignoreClick","$_events","$_interaction","$_viewClass","$_iClass","$height","$_viewComponent","setOption","updateEvents","action","unselect","y","elementsFromPoint","Calendar","getOption","refetchEvents","getEvents","getEventById","addEvent","updateEvent","removeEventById","getView","dateFromPoint","_days","_hiddenEvents","_popupDate","_popupChunks","get_each_context$4","create_each_block$4","create_fragment$6","div2","div0","div0_class_value","div1","div1_class_value","div2_class_value","instance$6","$_scrollable","$_days","$_intlDayHeader","Header","create_fragment$5","default_slot_template","default","default_slot","uniform","instance$5","$dayMaxEvents","$_scroll","$$slots","slots","dayMaxEvents","recheckScrollable","setTimeout","$$value","Body","create_fragment$4","setContent_action","resizer","switch_props","switch_instance_changes","instance$4","$_hiddenEvents","$eventDidMount","$_intlEventTime","$eventContent","$displayEventEnd","$_classes","$eventColor","$eventBackgroundColor","$_resBgColor","$eventClick","$eventMouseEnter","$eventMouseLeave","$_draggable","inPopup","classes","hidden","bgColor","resize","dragDayGrid","dayEl","h","firstElementChild","lastElementChild","nextElementSibling","footHeight","hiddenEvents","hide","Event","reposition","get_each_context$3","create_each_block$3","key_1","event_changes","t3","t0_value","each_1_lookup","textContent","popup","$_popupDate","$_popupChunks","$_intlDayPopover","_intlDayPopover","bodyEl","popupRect","dayRect","bodyRect","previousElementSibling","left","offsetWidth","width","Popup","preview","assign_event","unassign_event","event_props","div3","t2","t4","t5","div3_class_value","show_if_1","show_if","if_block0","if_block1","if_block2","if_block3","dayFoot","createPointerLeaveHandler","interaction","pointer","leave","$moreLinkContent","$highlightedDates","$currentDate","$dateClick","$selectable","iChunks","currentDate","moreLinkContent","dayChunks","showPopup","moreLink","refs","setPopupChunks","nextDay","ref","some","num","dateStr","enterDayGrid","selectDayGrid","Day","day_changes","$_iEvents","Week","week_changes","create_default_slot","body_changes","$_viewDates","viewState","View","dayPopoverFormat","dayGridMonth","eventTag","span","span_class_value","t2_value","daySide","$_intlListDayFormat","$_intlListDaySideFormat","_intlListDayFormat","_intlListDaySideFormat","listDayFormat","listDaySideFormat","noEvents","$noEventsClick","$noEventsContent","noEventsClick","noEventsContent","listDay","listWeek","listMonth","listYear","_slotTimeLimits","$flexibleSlotTimeLimits","minMin","maxMax","loop","minStart","maxEnd","slotTimeLimits","_times","localState","$_slotTimeLimits","$_intlSlotLabel","$slotDuration","times","createAllDayContent","get_each_context$5","create_each_block$5","create_fragment$8","div6","div4","div4_class_value","div5","div5_class_value","div6_class_value","instance$8","$allDayContent","$_times","allDayText","get_each_context_1$2","create_each_block_1$2","create_fragment$7","each_blocks_1","instance$7","$slotHeight","$scrollTime","timeLimitMin","scrollTop","$slotEventOverlap","_viewResources","step","maxHeight","column","columns","dragTimeGrid","Event$1","$_today","NowIndicator","get_each_context_1$1","create_each_block_1$1","create_if_block$2","nowindicator","each0_lookup","each1_lookup","get_key_1","$nowIndicator","bgChunks","groupEventChunks","clientY","enterTimeGrid","selectTimeGrid","Day$1","createEventDispatcher","create_default_slot_2","create_default_slot_1","header_changes","$allDaySlot","timeGridDay","timeGridWeek","State$1","resources","filterResourcesWithEvents","$resources","$filterResourcesWithEvents","viewResources","$resourceLabelDidMount","$resourceLabelContent","resourceLabelContent","resourceLabelDidMount","Label","get_each_context_4","get_each_context_2","get_each_context_3","get_each_context_5","get_each_context_6","create_else_block_2","label","label_changes","each_value_6","create_each_block_6","create_else_block_1","select_block_type_1","create_each_block_5","each_value_5","each_value_4","create_each_block_4","each_value_2","create_each_block_2","create_each_block_3","each_value_3","select_block_type_2","$_viewResources","$datesAboveResources","datesAboveResources","loops","find","res","resourceTimeGridDay","resourceTimeGridWeek","resourceTitle","createResources","traverseTimeGrid","traverseResourceTimeGrid","colEl","resourceEl","col","resourceCol","traverseDayGrid","daysEl","contentEl","busy","limit","window_1","createPreventDefaultHandler","passive","condition","preventDefault","$unselectFn","$selectBackgroundColor","$eventDrop","$eventResize","$eventDragStop","$eventResizeStop","$select","$unselectCancel","$unselectAuto","$dragScroll","$eventDragStart","$eventResizeStart","$eventDragMinDistance","$selectMinDistance","$longPressDelay","$eventLongPressDelay","$selectLongPressDelay","$$unsubscribe__viewResources","$$subscribe__viewResources","interacting","row","offsetX","offsetY","fromX","fromY","toX","toY","delta","rowEls","colRect","newResourceCol","dragScroll","eventStartEditable","eventDragMinDistance","eventDragStart","eventDragStop","eventDrop","eventLongPressDelay","eventResizeStart","eventResizeStop","eventResize","longPressDelay","select","selectBackgroundColor","selectLongPressDelay","selectMinDistance","unselectFn","unselectAuto","unselectCancel","iClass","minEnd","selected","timer","isAllDay","getSelection","removeAllRanges","clientX","pointerType","move","selecting","rx","ry","sqrt","newCol","dayCol","cols","newRow","offsetHeight","createIEvent","resizing","scrollBy","innerHeight","requestAnimationFrame","destroyIEvent","isPrimary","closest","oldEvent","eventRef","endDelta","oldResource","newResource","revert","clearTimeout","stops","eventToDrag","resourcesStore","colDate","dayDate","Action","handleScroll","validEvent","$$unsubscribe__slotTimeLimits","$$subscribe__slotTimeLimits","removePointerEvent","slotTimeLimitsStore","resourceObj","Pointer","$_resizable","Resizer","pointer_1","$editable","$eventDurationEditable","$eventStartEditable","$pointer","eventDurationEditable","draggable","ghost","dragging","resizingY","resizingX","DayGrid","List","TimeGrid","ResourceTimeGrid","Interaction"],"mappings":";;;;8CAOIA,EAAOC,6PCPXC,EAAiB,SAAUC,GACzB,IACE,QAASA,GAGV,CAFC,MAAOC,GACP,OAAO,CACR,CACH,ECJAC,GAFYC,GAEY,WAEtB,IAAIC,EAAO,WAA4B,EAAEC,OAEzC,MAAsB,mBAARD,GAAsBA,EAAKE,eAAe,YAC1D,ICPIC,EA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