\n// Get the document root in which the editor exists. This will\n// usually be the top-level `document`, but might be a [shadow\n// DOM](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Shadow_DOM)\n// root if the editor is inside one.\n\n\nprototypeAccessors$2.root.get = function () {\n var cached = this._root;\n\n if (cached == null) {\n for (var search = this.dom.parentNode; search; search = search.parentNode) {\n if (search.nodeType == 9 || search.nodeType == 11 && search.host) {\n if (!search.getSelection) {\n Object.getPrototypeOf(search).getSelection = function () {\n return document.getSelection();\n };\n }\n\n return this._root = search;\n }\n }\n }\n\n return cached || document;\n}; // :: ({left: number, top: number}) → ?{pos: number, inside: number}\n// Given a pair of viewport coordinates, return the document\n// position that corresponds to them. May return null if the given\n// coordinates aren't inside of the editor. When an object is\n// returned, its `pos` property is the position nearest to the\n// coordinates, and its `inside` property holds the position of the\n// inner node that the position falls inside of, or -1 if it is at\n// the top level, not in any node.\n\n\nEditorView.prototype.posAtCoords = function posAtCoords$1(coords) {\n return posAtCoords(this, coords);\n}; // :: (number, number) → {left: number, right: number, top: number, bottom: number}\n// Returns the viewport rectangle at a given document position.\n// `left` and `right` will be the same number, as this returns a\n// flat cursor-ish rectangle. If the position is between two things\n// that aren't directly adjacent, `side` determines which element is\n// used. When < 0, the element before the position is used,\n// otherwise the element after.\n\n\nEditorView.prototype.coordsAtPos = function coordsAtPos$1(pos, side) {\n if (side === void 0) side = 1;\n return coordsAtPos(this, pos, side);\n}; // :: (number, number) → {node: dom.Node, offset: number}\n// Find the DOM position that corresponds to the given document\n// position. When `side` is negative, find the position as close as\n// possible to the content before the position. When positive,\n// prefer positions close to the content after the position. When\n// zero, prefer as shallow a position as possible.\n//\n// Note that you should **not** mutate the editor's internal DOM,\n// only inspect it (and even that is usually not necessary).\n\n\nEditorView.prototype.domAtPos = function domAtPos(pos, side) {\n if (side === void 0) side = 0;\n return this.docView.domFromPos(pos, side);\n}; // :: (number) → ?dom.Node\n// Find the DOM node that represents the document node after the\n// given position. May return `null` when the position doesn't point\n// in front of a node or if the node is inside an opaque node view.\n//\n// This is intended to be able to call things like\n// `getBoundingClientRect` on that DOM node. Do **not** mutate the\n// editor DOM directly, or add styling this way, since that will be\n// immediately overriden by the editor as it redraws the node.\n\n\nEditorView.prototype.nodeDOM = function nodeDOM(pos) {\n var desc = this.docView.descAt(pos);\n return desc ? desc.nodeDOM : null;\n}; // :: (dom.Node, number, ?number) → number\n// Find the document position that corresponds to a given DOM\n// position. (Whenever possible, it is preferable to inspect the\n// document structure directly, rather than poking around in the\n// DOM, but sometimes—for example when interpreting an event\n// target—you don't have a choice.)\n//\n// The `bias` parameter can be used to influence which side of a DOM\n// node to use when the position is inside a leaf node.\n\n\nEditorView.prototype.posAtDOM = function posAtDOM(node, offset, bias) {\n if (bias === void 0) bias = -1;\n var pos = this.docView.posFromDOM(node, offset, bias);\n\n if (pos == null) {\n throw new RangeError(\"DOM position not inside the editor\");\n }\n\n return pos;\n}; // :: (union<\"up\", \"down\", \"left\", \"right\", \"forward\", \"backward\">, ?EditorState) → bool\n// Find out whether the selection is at the end of a textblock when\n// moving in a given direction. When, for example, given `\"left\"`,\n// it will return true if moving left from the current cursor\n// position would leave that position's parent textblock. Will apply\n// to the view's current state by default, but it is possible to\n// pass a different state.\n\n\nEditorView.prototype.endOfTextblock = function endOfTextblock$1(dir, state) {\n return endOfTextblock(this, state || this.state, dir);\n}; // :: ()\n// Removes the editor from the DOM and destroys all [node\n// views](#view.NodeView).\n\n\nEditorView.prototype.destroy = function destroy() {\n if (!this.docView) {\n return;\n }\n\n destroyInput(this);\n this.destroyPluginViews();\n\n if (this.mounted) {\n this.docView.update(this.state.doc, [], viewDecorations(this), this);\n this.dom.textContent = \"\";\n } else if (this.dom.parentNode) {\n this.dom.parentNode.removeChild(this.dom);\n }\n\n this.docView.destroy();\n this.docView = null;\n}; // Used for testing.\n\n\nEditorView.prototype.dispatchEvent = function dispatchEvent$1(event) {\n return dispatchEvent(this, event);\n}; // :: (Transaction)\n// Dispatch a transaction. Will call\n// [`dispatchTransaction`](#view.DirectEditorProps.dispatchTransaction)\n// when given, and otherwise defaults to applying the transaction to\n// the current state and calling\n// [`updateState`](#view.EditorView.updateState) with the result.\n// This method is bound to the view instance, so that it can be\n// easily passed around.\n\n\nEditorView.prototype.dispatch = function dispatch(tr) {\n var dispatchTransaction = this._props.dispatchTransaction;\n\n if (dispatchTransaction) {\n dispatchTransaction.call(this, tr);\n } else {\n this.updateState(this.state.apply(tr));\n }\n};\n\nObject.defineProperties(EditorView.prototype, prototypeAccessors$2);\n\nfunction computeDocDeco(view) {\n var attrs = Object.create(null);\n attrs.class = \"ProseMirror\";\n attrs.contenteditable = String(view.editable);\n view.someProp(\"attributes\", function (value) {\n if (typeof value == \"function\") {\n value = value(view.state);\n }\n\n if (value) {\n for (var attr in value) {\n if (attr == \"class\") {\n attrs.class += \" \" + value[attr];\n } else if (!attrs[attr] && attr != \"contenteditable\" && attr != \"nodeName\") {\n attrs[attr] = String(value[attr]);\n }\n }\n }\n });\n return [Decoration.node(0, view.state.doc.content.size, attrs)];\n}\n\nfunction updateCursorWrapper(view) {\n if (view.markCursor) {\n var dom = document.createElement(\"img\");\n dom.setAttribute(\"mark-placeholder\", \"true\");\n view.cursorWrapper = {\n dom: dom,\n deco: Decoration.widget(view.state.selection.head, dom, {\n raw: true,\n marks: view.markCursor\n })\n };\n } else {\n view.cursorWrapper = null;\n }\n}\n\nfunction getEditable(view) {\n return !view.someProp(\"editable\", function (value) {\n return value(view.state) === false;\n });\n}\n\nfunction selectionContextChanged(sel1, sel2) {\n var depth = Math.min(sel1.$anchor.sharedDepth(sel1.head), sel2.$anchor.sharedDepth(sel2.head));\n return sel1.$anchor.start(depth) != sel2.$anchor.start(depth);\n}\n\nfunction buildNodeViews(view) {\n var result = {};\n view.someProp(\"nodeViews\", function (obj) {\n for (var prop in obj) {\n if (!Object.prototype.hasOwnProperty.call(result, prop)) {\n result[prop] = obj[prop];\n }\n }\n });\n return result;\n}\n\nfunction changedNodeViews(a, b) {\n var nA = 0,\n nB = 0;\n\n for (var prop in a) {\n if (a[prop] != b[prop]) {\n return true;\n }\n\n nA++;\n }\n\n for (var _ in b) {\n nB++;\n }\n\n return nA != nB;\n} // EditorProps:: interface\n//\n// Props are configuration values that can be passed to an editor view\n// or included in a plugin. This interface lists the supported props.\n//\n// The various event-handling functions may all return `true` to\n// indicate that they handled the given event. The view will then take\n// care to call `preventDefault` on the event, except with\n// `handleDOMEvents`, where the handler itself is responsible for that.\n//\n// How a prop is resolved depends on the prop. Handler functions are\n// called one at a time, starting with the base props and then\n// searching through the plugins (in order of appearance) until one of\n// them returns true. For some props, the first plugin that yields a\n// value gets precedence.\n//\n// handleDOMEvents:: ?Object<(view: EditorView, event: dom.Event) → bool>\n// Can be an object mapping DOM event type names to functions that\n// handle them. Such functions will be called before any handling\n// ProseMirror does of events fired on the editable DOM element.\n// Contrary to the other event handling props, when returning true\n// from such a function, you are responsible for calling\n// `preventDefault` yourself (or not, if you want to allow the\n// default behavior).\n//\n// handleKeyDown:: ?(view: EditorView, event: dom.KeyboardEvent) → bool\n// Called when the editor receives a `keydown` event.\n//\n// handleKeyPress:: ?(view: EditorView, event: dom.KeyboardEvent) → bool\n// Handler for `keypress` events.\n//\n// handleTextInput:: ?(view: EditorView, from: number, to: number, text: string) → bool\n// Whenever the user directly input text, this handler is called\n// before the input is applied. If it returns `true`, the default\n// behavior of actually inserting the text is suppressed.\n//\n// handleClickOn:: ?(view: EditorView, pos: number, node: Node, nodePos: number, event: dom.MouseEvent, direct: bool) → bool\n// Called for each node around a click, from the inside out. The\n// `direct` flag will be true for the inner node.\n//\n// handleClick:: ?(view: EditorView, pos: number, event: dom.MouseEvent) → bool\n// Called when the editor is clicked, after `handleClickOn` handlers\n// have been called.\n//\n// handleDoubleClickOn:: ?(view: EditorView, pos: number, node: Node, nodePos: number, event: dom.MouseEvent, direct: bool) → bool\n// Called for each node around a double click.\n//\n// handleDoubleClick:: ?(view: EditorView, pos: number, event: dom.MouseEvent) → bool\n// Called when the editor is double-clicked, after `handleDoubleClickOn`.\n//\n// handleTripleClickOn:: ?(view: EditorView, pos: number, node: Node, nodePos: number, event: dom.MouseEvent, direct: bool) → bool\n// Called for each node around a triple click.\n//\n// handleTripleClick:: ?(view: EditorView, pos: number, event: dom.MouseEvent) → bool\n// Called when the editor is triple-clicked, after `handleTripleClickOn`.\n//\n// handlePaste:: ?(view: EditorView, event: dom.ClipboardEvent, slice: Slice) → bool\n// Can be used to override the behavior of pasting. `slice` is the\n// pasted content parsed by the editor, but you can directly access\n// the event to get at the raw content.\n//\n// handleDrop:: ?(view: EditorView, event: dom.Event, slice: Slice, moved: bool) → bool\n// Called when something is dropped on the editor. `moved` will be\n// true if this drop moves from the current selection (which should\n// thus be deleted).\n//\n// handleScrollToSelection:: ?(view: EditorView) → bool\n// Called when the view, after updating its state, tries to scroll\n// the selection into view. A handler function may return false to\n// indicate that it did not handle the scrolling and further\n// handlers or the default behavior should be tried.\n//\n// createSelectionBetween:: ?(view: EditorView, anchor: ResolvedPos, head: ResolvedPos) → ?Selection\n// Can be used to override the way a selection is created when\n// reading a DOM selection between the given anchor and head.\n//\n// domParser:: ?DOMParser\n// The [parser](#model.DOMParser) to use when reading editor changes\n// from the DOM. Defaults to calling\n// [`DOMParser.fromSchema`](#model.DOMParser^fromSchema) on the\n// editor's schema.\n//\n// transformPastedHTML:: ?(html: string) → string\n// Can be used to transform pasted HTML text, _before_ it is parsed,\n// for example to clean it up.\n//\n// clipboardParser:: ?DOMParser\n// The [parser](#model.DOMParser) to use when reading content from\n// the clipboard. When not given, the value of the\n// [`domParser`](#view.EditorProps.domParser) prop is used.\n//\n// transformPastedText:: ?(text: string, plain: bool) → string\n// Transform pasted plain text. The `plain` flag will be true when\n// the text is pasted as plain text.\n//\n// clipboardTextParser:: ?(text: string, $context: ResolvedPos, plain: bool) → Slice\n// A function to parse text from the clipboard into a document\n// slice. Called after\n// [`transformPastedText`](#view.EditorProps.transformPastedText).\n// The default behavior is to split the text into lines, wrap them\n// in `` tags, and call\n// [`clipboardParser`](#view.EditorProps.clipboardParser) on it.\n// The `plain` flag will be true when the text is pasted as plain text.\n//\n// transformPasted:: ?(Slice) → Slice\n// Can be used to transform pasted content before it is applied to\n// the document.\n//\n// nodeViews:: ?Object<(node: Node, view: EditorView, getPos: () → number, decorations: [Decoration], innerDecorations: DecorationSource) → NodeView>\n// Allows you to pass custom rendering and behavior logic for nodes\n// and marks. Should map node and mark names to constructor\n// functions that produce a [`NodeView`](#view.NodeView) object\n// implementing the node's display behavior. For nodes, the third\n// argument `getPos` is a function that can be called to get the\n// node's current position, which can be useful when creating\n// transactions to update it. For marks, the third argument is a\n// boolean that indicates whether the mark's content is inline.\n//\n// `decorations` is an array of node or inline decorations that are\n// active around the node. They are automatically drawn in the\n// normal way, and you will usually just want to ignore this, but\n// they can also be used as a way to provide context information to\n// the node view without adding it to the document itself.\n//\n// `innerDecorations` holds the decorations for the node's content.\n// You can safely ignore this if your view has no content or a\n// `contentDOM` property, since the editor will draw the decorations\n// on the content. But if you, for example, want to create a nested\n// editor with the content, it may make sense to provide it with the\n// inner decorations.\n//\n// clipboardSerializer:: ?DOMSerializer\n// The DOM serializer to use when putting content onto the\n// clipboard. If not given, the result of\n// [`DOMSerializer.fromSchema`](#model.DOMSerializer^fromSchema)\n// will be used.\n//\n// clipboardTextSerializer:: ?(Slice) → string\n// A function that will be called to get the text for the current\n// selection when copying text to the clipboard. By default, the\n// editor will use [`textBetween`](#model.Node.textBetween) on the\n// selected range.\n//\n// decorations:: ?(state: EditorState) → ?DecorationSource\n// A set of [document decorations](#view.Decoration) to show in the\n// view.\n//\n// editable:: ?(state: EditorState) → bool\n// When this returns false, the content of the view is not directly\n// editable.\n//\n// attributes:: ?union
\n\n","import { render, staticRenderFns } from \"./LoadingState.vue?vue&type=template&id=04ef48a6&\"\nimport script from \"./LoadingState.vue?vue&type=script&lang=js&\"\nexport * from \"./LoadingState.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && _typeof(value) == 'object';\n}\n\nmodule.exports = isObjectLike;","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar isForced = require('../internals/is-forced');\nvar redefine = require('../internals/redefine');\nvar InternalMetadataModule = require('../internals/internal-metadata');\nvar iterate = require('../internals/iterate');\nvar anInstance = require('../internals/an-instance');\nvar isObject = require('../internals/is-object');\nvar fails = require('../internals/fails');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar inheritIfRequired = require('../internals/inherit-if-required');\n\nmodule.exports = function (CONSTRUCTOR_NAME, wrapper, common) {\n var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;\n var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;\n var ADDER = IS_MAP ? 'set' : 'add';\n var NativeConstructor = global[CONSTRUCTOR_NAME];\n var NativePrototype = NativeConstructor && NativeConstructor.prototype;\n var Constructor = NativeConstructor;\n var exported = {};\n\n var fixMethod = function (KEY) {\n var nativeMethod = NativePrototype[KEY];\n redefine(NativePrototype, KEY,\n KEY == 'add' ? function add(value) {\n nativeMethod.call(this, value === 0 ? 0 : value);\n return this;\n } : KEY == 'delete' ? function (key) {\n return IS_WEAK && !isObject(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);\n } : KEY == 'get' ? function get(key) {\n return IS_WEAK && !isObject(key) ? undefined : nativeMethod.call(this, key === 0 ? 0 : key);\n } : KEY == 'has' ? function has(key) {\n return IS_WEAK && !isObject(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);\n } : function set(key, value) {\n nativeMethod.call(this, key === 0 ? 0 : key, value);\n return this;\n }\n );\n };\n\n var REPLACE = isForced(\n CONSTRUCTOR_NAME,\n typeof NativeConstructor != 'function' || !(IS_WEAK || NativePrototype.forEach && !fails(function () {\n new NativeConstructor().entries().next();\n }))\n );\n\n if (REPLACE) {\n // create collection constructor\n Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);\n InternalMetadataModule.REQUIRED = true;\n } else if (isForced(CONSTRUCTOR_NAME, true)) {\n var instance = new Constructor();\n // early implementations not supports chaining\n var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;\n // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false\n var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });\n // most early implementations doesn't supports iterables, most modern - not close it correctly\n // eslint-disable-next-line no-new -- required for testing\n var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });\n // for early implementations -0 and +0 not the same\n var BUGGY_ZERO = !IS_WEAK && fails(function () {\n // V8 ~ Chromium 42- fails only with 5+ elements\n var $instance = new NativeConstructor();\n var index = 5;\n while (index--) $instance[ADDER](index, index);\n return !$instance.has(-0);\n });\n\n if (!ACCEPT_ITERABLES) {\n Constructor = wrapper(function (dummy, iterable) {\n anInstance(dummy, Constructor, CONSTRUCTOR_NAME);\n var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);\n if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n return that;\n });\n Constructor.prototype = NativePrototype;\n NativePrototype.constructor = Constructor;\n }\n\n if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {\n fixMethod('delete');\n fixMethod('has');\n IS_MAP && fixMethod('get');\n }\n\n if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);\n\n // weak collections should not contains .clear method\n if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;\n }\n\n exported[CONSTRUCTOR_NAME] = Constructor;\n $({ global: true, forced: Constructor != NativeConstructor }, exported);\n\n setToStringTag(Constructor, CONSTRUCTOR_NAME);\n\n if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);\n\n return Constructor;\n};\n","var SemVer = require('../classes/semver');\n\nvar parse = function parse(version, options) {\n var throwErrors = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n if (version instanceof SemVer) {\n return version;\n }\n\n try {\n return new SemVer(version, options);\n } catch (er) {\n if (!throwErrors) {\n return null;\n }\n\n throw er;\n }\n};\n\nmodule.exports = parse;","export var base = {\n 8: \"Backspace\",\n 9: \"Tab\",\n 10: \"Enter\",\n 12: \"NumLock\",\n 13: \"Enter\",\n 16: \"Shift\",\n 17: \"Control\",\n 18: \"Alt\",\n 20: \"CapsLock\",\n 27: \"Escape\",\n 32: \" \",\n 33: \"PageUp\",\n 34: \"PageDown\",\n 35: \"End\",\n 36: \"Home\",\n 37: \"ArrowLeft\",\n 38: \"ArrowUp\",\n 39: \"ArrowRight\",\n 40: \"ArrowDown\",\n 44: \"PrintScreen\",\n 45: \"Insert\",\n 46: \"Delete\",\n 59: \";\",\n 61: \"=\",\n 91: \"Meta\",\n 92: \"Meta\",\n 106: \"*\",\n 107: \"+\",\n 108: \",\",\n 109: \"-\",\n 110: \".\",\n 111: \"/\",\n 144: \"NumLock\",\n 145: \"ScrollLock\",\n 160: \"Shift\",\n 161: \"Shift\",\n 162: \"Control\",\n 163: \"Control\",\n 164: \"Alt\",\n 165: \"Alt\",\n 173: \"-\",\n 186: \";\",\n 187: \"=\",\n 188: \",\",\n 189: \"-\",\n 190: \".\",\n 191: \"/\",\n 192: \"`\",\n 219: \"[\",\n 220: \"\\\\\",\n 221: \"]\",\n 222: \"'\",\n 229: \"q\"\n};\nexport var shift = {\n 48: \")\",\n 49: \"!\",\n 50: \"@\",\n 51: \"#\",\n 52: \"$\",\n 53: \"%\",\n 54: \"^\",\n 55: \"&\",\n 56: \"*\",\n 57: \"(\",\n 59: \":\",\n 61: \"+\",\n 173: \"_\",\n 186: \":\",\n 187: \"+\",\n 188: \"<\",\n 189: \"_\",\n 190: \">\",\n 191: \"?\",\n 192: \"~\",\n 219: \"{\",\n 220: \"|\",\n 221: \"}\",\n 222: \"\\\"\",\n 229: \"Q\"\n};\nvar chrome = typeof navigator != \"undefined\" && /Chrome\\/(\\d+)/.exec(navigator.userAgent);\nvar safari = typeof navigator != \"undefined\" && /Apple Computer/.test(navigator.vendor);\nvar gecko = typeof navigator != \"undefined\" && /Gecko\\/\\d+/.test(navigator.userAgent);\nvar mac = typeof navigator != \"undefined\" && /Mac/.test(navigator.platform);\nvar ie = typeof navigator != \"undefined\" && /MSIE \\d|Trident\\/(?:[7-9]|\\d{2,})\\..*rv:(\\d+)/.exec(navigator.userAgent);\nvar brokenModifierNames = chrome && (mac || +chrome[1] < 57) || gecko && mac; // Fill in the digit keys\n\nfor (var i = 0; i < 10; i++) {\n base[48 + i] = base[96 + i] = String(i);\n} // The function keys\n\n\nfor (var i = 1; i <= 24; i++) {\n base[i + 111] = \"F\" + i;\n} // And the alphabetic keys\n\n\nfor (var i = 65; i <= 90; i++) {\n base[i] = String.fromCharCode(i + 32);\n shift[i] = String.fromCharCode(i);\n} // For each code that doesn't have a shift-equivalent, copy the base name\n\n\nfor (var code in base) {\n if (!shift.hasOwnProperty(code)) shift[code] = base[code];\n}\n\nexport function keyName(event) {\n // Don't trust event.key in Chrome when there are modifiers until\n // they fix https://bugs.chromium.org/p/chromium/issues/detail?id=633838\n var ignoreKey = brokenModifierNames && (event.ctrlKey || event.altKey || event.metaKey) || (safari || ie) && event.shiftKey && event.key && event.key.length == 1;\n var name = !ignoreKey && event.key || (event.shiftKey ? shift : base)[event.keyCode] || event.key || \"Unidentified\"; // Edge sometimes produces wrong names (Issue #3)\n\n if (name == \"Esc\") name = \"Escape\";\n if (name == \"Del\") name = \"Delete\"; // https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/8860571/\n\n if (name == \"Left\") name = \"ArrowLeft\";\n if (name == \"Up\") name = \"ArrowUp\";\n if (name == \"Right\") name = \"ArrowRight\";\n if (name == \"Down\") name = \"ArrowDown\";\n return name;\n}","/* global axios */\n\n/**\n * Constants and Configuration\n */\n\n// Version for the API endpoint.\nconst API_VERSION = 'v1';\n\n// Default headers to be used in the axios request.\nconst HEADERS = {\n 'Content-Type': 'multipart/form-data',\n};\n\n/**\n * Uploads a file to the server.\n *\n * This function sends a POST request to a given API endpoint and uploads the specified file.\n * The function uses FormData to wrap the file and axios to send the request.\n *\n * @param {File} file - The file to be uploaded. It should be a File object (typically coming from a file input element).\n * @returns {Promise} A promise that resolves with the server's response when the upload is successful, or rejects if there's an error.\n */\nexport async function uploadFile(file, accountId) {\n // Create a new FormData instance.\n let formData = new FormData();\n\n if (!accountId) {\n accountId = window.location.pathname.split('/')[3];\n }\n\n // Append the file to the FormData instance under the key 'attachment'.\n formData.append('attachment', file);\n\n // Use axios to send a POST request to the upload endpoint.\n const { data } = await axios.post(\n `/api/${API_VERSION}/accounts/${accountId}/upload`,\n formData,\n {\n headers: HEADERS,\n }\n );\n\n return {\n fileUrl: data.file_url,\n blobKey: data.blob_key,\n blobId: data.blob_id,\n };\n}\n","var GOOD_LEAF_SIZE = 200; // :: class A rope sequence is a persistent sequence data structure\n// that supports appending, prepending, and slicing without doing a\n// full copy. It is represented as a mostly-balanced tree.\n\nvar RopeSequence = function RopeSequence() {};\n\nRopeSequence.prototype.append = function append(other) {\n if (!other.length) {\n return this;\n }\n\n other = RopeSequence.from(other);\n return !this.length && other || other.length < GOOD_LEAF_SIZE && this.leafAppend(other) || this.length < GOOD_LEAF_SIZE && other.leafPrepend(this) || this.appendInner(other);\n}; // :: (union<[T], RopeSequence>) → RopeSequence\n// Prepend an array or other rope to this one, returning a new rope.\n\n\nRopeSequence.prototype.prepend = function prepend(other) {\n if (!other.length) {\n return this;\n }\n\n return RopeSequence.from(other).append(this);\n};\n\nRopeSequence.prototype.appendInner = function appendInner(other) {\n return new Append(this, other);\n}; // :: (?number, ?number) → RopeSequence\n// Create a rope repesenting a sub-sequence of this rope.\n\n\nRopeSequence.prototype.slice = function slice(from, to) {\n if (from === void 0) from = 0;\n if (to === void 0) to = this.length;\n\n if (from >= to) {\n return RopeSequence.empty;\n }\n\n return this.sliceInner(Math.max(0, from), Math.min(this.length, to));\n}; // :: (number) → T\n// Retrieve the element at the given position from this rope.\n\n\nRopeSequence.prototype.get = function get(i) {\n if (i < 0 || i >= this.length) {\n return undefined;\n }\n\n return this.getInner(i);\n}; // :: ((element: T, index: number) → ?bool, ?number, ?number)\n// Call the given function for each element between the given\n// indices. This tends to be more efficient than looping over the\n// indices and calling `get`, because it doesn't have to descend the\n// tree for every element.\n\n\nRopeSequence.prototype.forEach = function forEach(f, from, to) {\n if (from === void 0) from = 0;\n if (to === void 0) to = this.length;\n\n if (from <= to) {\n this.forEachInner(f, from, to, 0);\n } else {\n this.forEachInvertedInner(f, from, to, 0);\n }\n}; // :: ((element: T, index: number) → U, ?number, ?number) → [U]\n// Map the given functions over the elements of the rope, producing\n// a flat array.\n\n\nRopeSequence.prototype.map = function map(f, from, to) {\n if (from === void 0) from = 0;\n if (to === void 0) to = this.length;\n var result = [];\n this.forEach(function (elt, i) {\n return result.push(f(elt, i));\n }, from, to);\n return result;\n}; // :: (?union<[T], RopeSequence>) → RopeSequence\n// Create a rope representing the given array, or return the rope\n// itself if a rope was given.\n\n\nRopeSequence.from = function from(values) {\n if (values instanceof RopeSequence) {\n return values;\n }\n\n return values && values.length ? new Leaf(values) : RopeSequence.empty;\n};\n\nvar Leaf = /*@__PURE__*/function (RopeSequence) {\n function Leaf(values) {\n RopeSequence.call(this);\n this.values = values;\n }\n\n if (RopeSequence) Leaf.__proto__ = RopeSequence;\n Leaf.prototype = Object.create(RopeSequence && RopeSequence.prototype);\n Leaf.prototype.constructor = Leaf;\n var prototypeAccessors = {\n length: {\n configurable: true\n },\n depth: {\n configurable: true\n }\n };\n\n Leaf.prototype.flatten = function flatten() {\n return this.values;\n };\n\n Leaf.prototype.sliceInner = function sliceInner(from, to) {\n if (from == 0 && to == this.length) {\n return this;\n }\n\n return new Leaf(this.values.slice(from, to));\n };\n\n Leaf.prototype.getInner = function getInner(i) {\n return this.values[i];\n };\n\n Leaf.prototype.forEachInner = function forEachInner(f, from, to, start) {\n for (var i = from; i < to; i++) {\n if (f(this.values[i], start + i) === false) {\n return false;\n }\n }\n };\n\n Leaf.prototype.forEachInvertedInner = function forEachInvertedInner(f, from, to, start) {\n for (var i = from - 1; i >= to; i--) {\n if (f(this.values[i], start + i) === false) {\n return false;\n }\n }\n };\n\n Leaf.prototype.leafAppend = function leafAppend(other) {\n if (this.length + other.length <= GOOD_LEAF_SIZE) {\n return new Leaf(this.values.concat(other.flatten()));\n }\n };\n\n Leaf.prototype.leafPrepend = function leafPrepend(other) {\n if (this.length + other.length <= GOOD_LEAF_SIZE) {\n return new Leaf(other.flatten().concat(this.values));\n }\n };\n\n prototypeAccessors.length.get = function () {\n return this.values.length;\n };\n\n prototypeAccessors.depth.get = function () {\n return 0;\n };\n\n Object.defineProperties(Leaf.prototype, prototypeAccessors);\n return Leaf;\n}(RopeSequence); // :: RopeSequence\n// The empty rope sequence.\n\n\nRopeSequence.empty = new Leaf([]);\n\nvar Append = /*@__PURE__*/function (RopeSequence) {\n function Append(left, right) {\n RopeSequence.call(this);\n this.left = left;\n this.right = right;\n this.length = left.length + right.length;\n this.depth = Math.max(left.depth, right.depth) + 1;\n }\n\n if (RopeSequence) Append.__proto__ = RopeSequence;\n Append.prototype = Object.create(RopeSequence && RopeSequence.prototype);\n Append.prototype.constructor = Append;\n\n Append.prototype.flatten = function flatten() {\n return this.left.flatten().concat(this.right.flatten());\n };\n\n Append.prototype.getInner = function getInner(i) {\n return i < this.left.length ? this.left.get(i) : this.right.get(i - this.left.length);\n };\n\n Append.prototype.forEachInner = function forEachInner(f, from, to, start) {\n var leftLen = this.left.length;\n\n if (from < leftLen && this.left.forEachInner(f, from, Math.min(to, leftLen), start) === false) {\n return false;\n }\n\n if (to > leftLen && this.right.forEachInner(f, Math.max(from - leftLen, 0), Math.min(this.length, to) - leftLen, start + leftLen) === false) {\n return false;\n }\n };\n\n Append.prototype.forEachInvertedInner = function forEachInvertedInner(f, from, to, start) {\n var leftLen = this.left.length;\n\n if (from > leftLen && this.right.forEachInvertedInner(f, from - leftLen, Math.max(to, leftLen) - leftLen, start + leftLen) === false) {\n return false;\n }\n\n if (to < leftLen && this.left.forEachInvertedInner(f, Math.min(from, leftLen), to, start) === false) {\n return false;\n }\n };\n\n Append.prototype.sliceInner = function sliceInner(from, to) {\n if (from == 0 && to == this.length) {\n return this;\n }\n\n var leftLen = this.left.length;\n\n if (to <= leftLen) {\n return this.left.slice(from, to);\n }\n\n if (from >= leftLen) {\n return this.right.slice(from - leftLen, to - leftLen);\n }\n\n return this.left.slice(from, leftLen).append(this.right.slice(0, to - leftLen));\n };\n\n Append.prototype.leafAppend = function leafAppend(other) {\n var inner = this.right.leafAppend(other);\n\n if (inner) {\n return new Append(this.left, inner);\n }\n };\n\n Append.prototype.leafPrepend = function leafPrepend(other) {\n var inner = this.left.leafPrepend(other);\n\n if (inner) {\n return new Append(inner, this.right);\n }\n };\n\n Append.prototype.appendInner = function appendInner(other) {\n if (this.left.depth >= Math.max(this.right.depth, other.depth) + 1) {\n return new Append(this.left, new Append(this.right, other));\n }\n\n return new Append(this, other);\n };\n\n return Append;\n}(RopeSequence);\n\nvar ropeSequence = RopeSequence;\nexport default ropeSequence;","import RopeSequence from 'rope-sequence';\nimport { Mapping } from 'prosemirror-transform';\nimport { PluginKey, Plugin } from 'prosemirror-state'; // ProseMirror's history isn't simply a way to roll back to a previous\n// state, because ProseMirror supports applying changes without adding\n// them to the history (for example during collaboration).\n//\n// To this end, each 'Branch' (one for the undo history and one for\n// the redo history) keeps an array of 'Items', which can optionally\n// hold a step (an actual undoable change), and always hold a position\n// map (which is needed to move changes below them to apply to the\n// current document).\n//\n// An item that has both a step and a selection bookmark is the start\n// of an 'event' — a group of changes that will be undone or redone at\n// once. (It stores only the bookmark, since that way we don't have to\n// provide a document until the selection is actually applied, which\n// is useful when compressing.)\n// Used to schedule history compression\n\nvar max_empty_items = 500;\n\nvar Branch = function Branch(items, eventCount) {\n this.items = items;\n this.eventCount = eventCount;\n}; // : (EditorState, bool) → ?{transform: Transform, selection: ?SelectionBookmark, remaining: Branch}\n// Pop the latest event off the branch's history and apply it\n// to a document transform.\n\n\nBranch.prototype.popEvent = function popEvent(state, preserveItems) {\n var this$1 = this;\n\n if (this.eventCount == 0) {\n return null;\n }\n\n var end = this.items.length;\n\n for (;; end--) {\n var next = this.items.get(end - 1);\n\n if (next.selection) {\n --end;\n break;\n }\n }\n\n var remap, mapFrom;\n\n if (preserveItems) {\n remap = this.remapping(end, this.items.length);\n mapFrom = remap.maps.length;\n }\n\n var transform = state.tr;\n var selection, remaining;\n var addAfter = [],\n addBefore = [];\n this.items.forEach(function (item, i) {\n if (!item.step) {\n if (!remap) {\n remap = this$1.remapping(end, i + 1);\n mapFrom = remap.maps.length;\n }\n\n mapFrom--;\n addBefore.push(item);\n return;\n }\n\n if (remap) {\n addBefore.push(new Item(item.map));\n var step = item.step.map(remap.slice(mapFrom)),\n map;\n\n if (step && transform.maybeStep(step).doc) {\n map = transform.mapping.maps[transform.mapping.maps.length - 1];\n addAfter.push(new Item(map, null, null, addAfter.length + addBefore.length));\n }\n\n mapFrom--;\n\n if (map) {\n remap.appendMap(map, mapFrom);\n }\n } else {\n transform.maybeStep(item.step);\n }\n\n if (item.selection) {\n selection = remap ? item.selection.map(remap.slice(mapFrom)) : item.selection;\n remaining = new Branch(this$1.items.slice(0, end).append(addBefore.reverse().concat(addAfter)), this$1.eventCount - 1);\n return false;\n }\n }, this.items.length, 0);\n return {\n remaining: remaining,\n transform: transform,\n selection: selection\n };\n}; // : (Transform, ?SelectionBookmark, Object) → Branch\n// Create a new branch with the given transform added.\n\n\nBranch.prototype.addTransform = function addTransform(transform, selection, histOptions, preserveItems) {\n var newItems = [],\n eventCount = this.eventCount;\n var oldItems = this.items,\n lastItem = !preserveItems && oldItems.length ? oldItems.get(oldItems.length - 1) : null;\n\n for (var i = 0; i < transform.steps.length; i++) {\n var step = transform.steps[i].invert(transform.docs[i]);\n var item = new Item(transform.mapping.maps[i], step, selection),\n merged = void 0;\n\n if (merged = lastItem && lastItem.merge(item)) {\n item = merged;\n\n if (i) {\n newItems.pop();\n } else {\n oldItems = oldItems.slice(0, oldItems.length - 1);\n }\n }\n\n newItems.push(item);\n\n if (selection) {\n eventCount++;\n selection = null;\n }\n\n if (!preserveItems) {\n lastItem = item;\n }\n }\n\n var overflow = eventCount - histOptions.depth;\n\n if (overflow > DEPTH_OVERFLOW) {\n oldItems = cutOffEvents(oldItems, overflow);\n eventCount -= overflow;\n }\n\n return new Branch(oldItems.append(newItems), eventCount);\n};\n\nBranch.prototype.remapping = function remapping(from, to) {\n var maps = new Mapping();\n this.items.forEach(function (item, i) {\n var mirrorPos = item.mirrorOffset != null && i - item.mirrorOffset >= from ? maps.maps.length - item.mirrorOffset : null;\n maps.appendMap(item.map, mirrorPos);\n }, from, to);\n return maps;\n};\n\nBranch.prototype.addMaps = function addMaps(array) {\n if (this.eventCount == 0) {\n return this;\n }\n\n return new Branch(this.items.append(array.map(function (map) {\n return new Item(map);\n })), this.eventCount);\n}; // : (Transform, number)\n// When the collab module receives remote changes, the history has\n// to know about those, so that it can adjust the steps that were\n// rebased on top of the remote changes, and include the position\n// maps for the remote changes in its array of items.\n\n\nBranch.prototype.rebased = function rebased(rebasedTransform, rebasedCount) {\n if (!this.eventCount) {\n return this;\n }\n\n var rebasedItems = [],\n start = Math.max(0, this.items.length - rebasedCount);\n var mapping = rebasedTransform.mapping;\n var newUntil = rebasedTransform.steps.length;\n var eventCount = this.eventCount;\n this.items.forEach(function (item) {\n if (item.selection) {\n eventCount--;\n }\n }, start);\n var iRebased = rebasedCount;\n this.items.forEach(function (item) {\n var pos = mapping.getMirror(--iRebased);\n\n if (pos == null) {\n return;\n }\n\n newUntil = Math.min(newUntil, pos);\n var map = mapping.maps[pos];\n\n if (item.step) {\n var step = rebasedTransform.steps[pos].invert(rebasedTransform.docs[pos]);\n var selection = item.selection && item.selection.map(mapping.slice(iRebased + 1, pos));\n\n if (selection) {\n eventCount++;\n }\n\n rebasedItems.push(new Item(map, step, selection));\n } else {\n rebasedItems.push(new Item(map));\n }\n }, start);\n var newMaps = [];\n\n for (var i = rebasedCount; i < newUntil; i++) {\n newMaps.push(new Item(mapping.maps[i]));\n }\n\n var items = this.items.slice(0, start).append(newMaps).append(rebasedItems);\n var branch = new Branch(items, eventCount);\n\n if (branch.emptyItemCount() > max_empty_items) {\n branch = branch.compress(this.items.length - rebasedItems.length);\n }\n\n return branch;\n};\n\nBranch.prototype.emptyItemCount = function emptyItemCount() {\n var count = 0;\n this.items.forEach(function (item) {\n if (!item.step) {\n count++;\n }\n });\n return count;\n}; // Compressing a branch means rewriting it to push the air (map-only\n// items) out. During collaboration, these naturally accumulate\n// because each remote change adds one. The `upto` argument is used\n// to ensure that only the items below a given level are compressed,\n// because `rebased` relies on a clean, untouched set of items in\n// order to associate old items with rebased steps.\n\n\nBranch.prototype.compress = function compress(upto) {\n if (upto === void 0) upto = this.items.length;\n var remap = this.remapping(0, upto),\n mapFrom = remap.maps.length;\n var items = [],\n events = 0;\n this.items.forEach(function (item, i) {\n if (i >= upto) {\n items.push(item);\n\n if (item.selection) {\n events++;\n }\n } else if (item.step) {\n var step = item.step.map(remap.slice(mapFrom)),\n map = step && step.getMap();\n mapFrom--;\n\n if (map) {\n remap.appendMap(map, mapFrom);\n }\n\n if (step) {\n var selection = item.selection && item.selection.map(remap.slice(mapFrom));\n\n if (selection) {\n events++;\n }\n\n var newItem = new Item(map.invert(), step, selection),\n merged,\n last = items.length - 1;\n\n if (merged = items.length && items[last].merge(newItem)) {\n items[last] = merged;\n } else {\n items.push(newItem);\n }\n }\n } else if (item.map) {\n mapFrom--;\n }\n }, this.items.length, 0);\n return new Branch(RopeSequence.from(items.reverse()), events);\n};\n\nBranch.empty = new Branch(RopeSequence.empty, 0);\n\nfunction cutOffEvents(items, n) {\n var cutPoint;\n items.forEach(function (item, i) {\n if (item.selection && n-- == 0) {\n cutPoint = i;\n return false;\n }\n });\n return items.slice(cutPoint);\n}\n\nvar Item = function Item(map, step, selection, mirrorOffset) {\n // The (forward) step map for this item.\n this.map = map; // The inverted step\n\n this.step = step; // If this is non-null, this item is the start of a group, and\n // this selection is the starting selection for the group (the one\n // that was active before the first step was applied)\n\n this.selection = selection; // If this item is the inverse of a previous mapping on the stack,\n // this points at the inverse's offset\n\n this.mirrorOffset = mirrorOffset;\n};\n\nItem.prototype.merge = function merge(other) {\n if (this.step && other.step && !other.selection) {\n var step = other.step.merge(this.step);\n\n if (step) {\n return new Item(step.getMap().invert(), step, this.selection);\n }\n }\n}; // The value of the state field that tracks undo/redo history for that\n// state. Will be stored in the plugin state when the history plugin\n// is active.\n\n\nvar HistoryState = function HistoryState(done, undone, prevRanges, prevTime) {\n this.done = done;\n this.undone = undone;\n this.prevRanges = prevRanges;\n this.prevTime = prevTime;\n};\n\nvar DEPTH_OVERFLOW = 20; // : (HistoryState, EditorState, Transaction, Object)\n// Record a transformation in undo history.\n\nfunction applyTransaction(history, state, tr, options) {\n var historyTr = tr.getMeta(historyKey),\n rebased;\n\n if (historyTr) {\n return historyTr.historyState;\n }\n\n if (tr.getMeta(closeHistoryKey)) {\n history = new HistoryState(history.done, history.undone, null, 0);\n }\n\n var appended = tr.getMeta(\"appendedTransaction\");\n\n if (tr.steps.length == 0) {\n return history;\n } else if (appended && appended.getMeta(historyKey)) {\n if (appended.getMeta(historyKey).redo) {\n return new HistoryState(history.done.addTransform(tr, null, options, mustPreserveItems(state)), history.undone, rangesFor(tr.mapping.maps[tr.steps.length - 1]), history.prevTime);\n } else {\n return new HistoryState(history.done, history.undone.addTransform(tr, null, options, mustPreserveItems(state)), null, history.prevTime);\n }\n } else if (tr.getMeta(\"addToHistory\") !== false && !(appended && appended.getMeta(\"addToHistory\") === false)) {\n // Group transforms that occur in quick succession into one event.\n var newGroup = history.prevTime == 0 || !appended && (history.prevTime < (tr.time || 0) - options.newGroupDelay || !isAdjacentTo(tr, history.prevRanges));\n var prevRanges = appended ? mapRanges(history.prevRanges, tr.mapping) : rangesFor(tr.mapping.maps[tr.steps.length - 1]);\n return new HistoryState(history.done.addTransform(tr, newGroup ? state.selection.getBookmark() : null, options, mustPreserveItems(state)), Branch.empty, prevRanges, tr.time);\n } else if (rebased = tr.getMeta(\"rebased\")) {\n // Used by the collab module to tell the history that some of its\n // content has been rebased.\n return new HistoryState(history.done.rebased(tr, rebased), history.undone.rebased(tr, rebased), mapRanges(history.prevRanges, tr.mapping), history.prevTime);\n } else {\n return new HistoryState(history.done.addMaps(tr.mapping.maps), history.undone.addMaps(tr.mapping.maps), mapRanges(history.prevRanges, tr.mapping), history.prevTime);\n }\n}\n\nfunction isAdjacentTo(transform, prevRanges) {\n if (!prevRanges) {\n return false;\n }\n\n if (!transform.docChanged) {\n return true;\n }\n\n var adjacent = false;\n transform.mapping.maps[0].forEach(function (start, end) {\n for (var i = 0; i < prevRanges.length; i += 2) {\n if (start <= prevRanges[i + 1] && end >= prevRanges[i]) {\n adjacent = true;\n }\n }\n });\n return adjacent;\n}\n\nfunction rangesFor(map) {\n var result = [];\n map.forEach(function (_from, _to, from, to) {\n return result.push(from, to);\n });\n return result;\n}\n\nfunction mapRanges(ranges, mapping) {\n if (!ranges) {\n return null;\n }\n\n var result = [];\n\n for (var i = 0; i < ranges.length; i += 2) {\n var from = mapping.map(ranges[i], 1),\n to = mapping.map(ranges[i + 1], -1);\n\n if (from <= to) {\n result.push(from, to);\n }\n }\n\n return result;\n} // : (HistoryState, EditorState, (tr: Transaction), bool)\n// Apply the latest event from one branch to the document and shift the event\n// onto the other branch.\n\n\nfunction histTransaction(history, state, dispatch, redo) {\n var preserveItems = mustPreserveItems(state),\n histOptions = historyKey.get(state).spec.config;\n var pop = (redo ? history.undone : history.done).popEvent(state, preserveItems);\n\n if (!pop) {\n return;\n }\n\n var selection = pop.selection.resolve(pop.transform.doc);\n var added = (redo ? history.done : history.undone).addTransform(pop.transform, state.selection.getBookmark(), histOptions, preserveItems);\n var newHist = new HistoryState(redo ? added : pop.remaining, redo ? pop.remaining : added, null, 0);\n dispatch(pop.transform.setSelection(selection).setMeta(historyKey, {\n redo: redo,\n historyState: newHist\n }).scrollIntoView());\n}\n\nvar cachedPreserveItems = false,\n cachedPreserveItemsPlugins = null; // Check whether any plugin in the given state has a\n// `historyPreserveItems` property in its spec, in which case we must\n// preserve steps exactly as they came in, so that they can be\n// rebased.\n\nfunction mustPreserveItems(state) {\n var plugins = state.plugins;\n\n if (cachedPreserveItemsPlugins != plugins) {\n cachedPreserveItems = false;\n cachedPreserveItemsPlugins = plugins;\n\n for (var i = 0; i < plugins.length; i++) {\n if (plugins[i].spec.historyPreserveItems) {\n cachedPreserveItems = true;\n break;\n }\n }\n }\n\n return cachedPreserveItems;\n} // :: (Transaction) → Transaction\n// Set a flag on the given transaction that will prevent further steps\n// from being appended to an existing history event (so that they\n// require a separate undo command to undo).\n\n\nfunction closeHistory(tr) {\n return tr.setMeta(closeHistoryKey, true);\n}\n\nvar historyKey = new PluginKey(\"history\");\nvar closeHistoryKey = new PluginKey(\"closeHistory\"); // :: (?Object) → Plugin\n// Returns a plugin that enables the undo history for an editor. The\n// plugin will track undo and redo stacks, which can be used with the\n// [`undo`](#history.undo) and [`redo`](#history.redo) commands.\n//\n// You can set an `\"addToHistory\"` [metadata\n// property](#state.Transaction.setMeta) of `false` on a transaction\n// to prevent it from being rolled back by undo.\n//\n// config::-\n// Supports the following configuration options:\n//\n// depth:: ?number\n// The amount of history events that are collected before the\n// oldest events are discarded. Defaults to 100.\n//\n// newGroupDelay:: ?number\n// The delay between changes after which a new group should be\n// started. Defaults to 500 (milliseconds). Note that when changes\n// aren't adjacent, a new group is always started.\n\nfunction history(config) {\n config = {\n depth: config && config.depth || 100,\n newGroupDelay: config && config.newGroupDelay || 500\n };\n return new Plugin({\n key: historyKey,\n state: {\n init: function init() {\n return new HistoryState(Branch.empty, Branch.empty, null, 0);\n },\n apply: function apply(tr, hist, state) {\n return applyTransaction(hist, state, tr, config);\n }\n },\n config: config\n });\n} // :: (EditorState, ?(tr: Transaction)) → bool\n// A command function that undoes the last change, if any.\n\n\nfunction undo(state, dispatch) {\n var hist = historyKey.getState(state);\n\n if (!hist || hist.done.eventCount == 0) {\n return false;\n }\n\n if (dispatch) {\n histTransaction(hist, state, dispatch, false);\n }\n\n return true;\n} // :: (EditorState, ?(tr: Transaction)) → bool\n// A command function that redoes the last undone change, if any.\n\n\nfunction redo(state, dispatch) {\n var hist = historyKey.getState(state);\n\n if (!hist || hist.undone.eventCount == 0) {\n return false;\n }\n\n if (dispatch) {\n histTransaction(hist, state, dispatch, true);\n }\n\n return true;\n} // :: (EditorState) → number\n// The amount of undoable events available in a given state.\n\n\nfunction undoDepth(state) {\n var hist = historyKey.getState(state);\n return hist ? hist.done.eventCount : 0;\n} // :: (EditorState) → number\n// The amount of redoable events available in a given editor state.\n\n\nfunction redoDepth(state) {\n var hist = historyKey.getState(state);\n return hist ? hist.undone.eventCount : 0;\n}\n\nexport { HistoryState, closeHistory, history, redo, redoDepth, undo, undoDepth };","/* global axios */\nimport ApiClient from '../ApiClient';\n\nclass PortalsAPI extends ApiClient {\n constructor() {\n super('portals', { accountScoped: true });\n }\n\n getPortal({ portalSlug, locale }) {\n return axios.get(`${this.url}/${portalSlug}?locale=${locale}`);\n }\n\n updatePortal({ portalSlug, portalObj }) {\n return axios.patch(`${this.url}/${portalSlug}`, portalObj);\n }\n\n deletePortal(portalSlug) {\n return axios.delete(`${this.url}/${portalSlug}`);\n }\n\n deleteLogo(portalSlug) {\n return axios.delete(`${this.url}/${portalSlug}/logo`);\n }\n}\n\nexport default PortalsAPI;\n","'use strict';\nvar fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');\nvar anObject = require('../internals/an-object');\nvar toLength = require('../internals/to-length');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar advanceStringIndex = require('../internals/advance-string-index');\nvar regExpExec = require('../internals/regexp-exec-abstract');\n\n// @@match logic\nfixRegExpWellKnownSymbolLogic('match', 1, function (MATCH, nativeMatch, maybeCallNative) {\n return [\n // `String.prototype.match` method\n // https://tc39.es/ecma262/#sec-string.prototype.match\n function match(regexp) {\n var O = requireObjectCoercible(this);\n var matcher = regexp == undefined ? undefined : regexp[MATCH];\n return matcher !== undefined ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));\n },\n // `RegExp.prototype[@@match]` method\n // https://tc39.es/ecma262/#sec-regexp.prototype-@@match\n function (regexp) {\n var res = maybeCallNative(nativeMatch, regexp, this);\n if (res.done) return res.value;\n\n var rx = anObject(regexp);\n var S = String(this);\n\n if (!rx.global) return regExpExec(rx, S);\n\n var fullUnicode = rx.unicode;\n rx.lastIndex = 0;\n var A = [];\n var n = 0;\n var result;\n while ((result = regExpExec(rx, S)) !== null) {\n var matchStr = String(result[0]);\n A[n] = matchStr;\n if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);\n n++;\n }\n return n === 0 ? null : A;\n }\n ];\n});\n","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js!../../../../node_modules/css-loader/dist/cjs.js??ref--3-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/dist/cjs.js??ref--3-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--3-3!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Spinner.vue?vue&type=style&index=0&id=309361b3&prod&scoped=true&lang=scss&\"","import { getCurrentInstance, reactive, watchEffect } from 'vue';\n\n/**\n * Returns the current route location. Equivalent to using `$route` inside\n * templates.\n */\nexport function useRoute() {\n const instance = getCurrentInstance();\n const route = reactive(Object.assign({}, instance.proxy.$root.$route));\n watchEffect(() => {\n Object.assign(route, instance.proxy.$root.$route);\n });\n\n return route;\n}\n\n/**\n * Returns the router instance. Equivalent to using `$router` inside\n * templates.\n */\nexport function useRouter() {\n const instance = getCurrentInstance();\n const router = instance.proxy.$root.$router;\n watchEffect(() => {\n if (router) {\n Object.assign(router, instance.proxy.$root.$router);\n }\n });\n return router;\n}\n","import startOfDay from \"../startOfDay/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isSameDay\n * @category Day Helpers\n * @summary Are the given dates in the same day?\n *\n * @description\n * Are the given dates in the same day?\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} dateLeft - the first date to check\n * @param {Date|Number} dateRight - the second date to check\n * @returns {Boolean} the dates are in the same day\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?\n * var result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))\n * //=> true\n */\n\nexport default function isSameDay(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeftStartOfDay = startOfDay(dirtyDateLeft);\n var dateRightStartOfDay = startOfDay(dirtyDateRight);\n return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime();\n}","/* globals __webpack_amd_options__ */\nmodule.exports = __webpack_amd_options__;\n","'use strict';\nvar $ = require('../internals/export');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar toInteger = require('../internals/to-integer');\nvar toLength = require('../internals/to-length');\nvar toObject = require('../internals/to-object');\nvar arraySpeciesCreate = require('../internals/array-species-create');\nvar createProperty = require('../internals/create-property');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');\n\nvar max = Math.max;\nvar min = Math.min;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;\nvar MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';\n\n// `Array.prototype.splice` method\n// https://tc39.es/ecma262/#sec-array.prototype.splice\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n splice: function splice(start, deleteCount /* , ...items */) {\n var O = toObject(this);\n var len = toLength(O.length);\n var actualStart = toAbsoluteIndex(start, len);\n var argumentsLength = arguments.length;\n var insertCount, actualDeleteCount, A, k, from, to;\n if (argumentsLength === 0) {\n insertCount = actualDeleteCount = 0;\n } else if (argumentsLength === 1) {\n insertCount = 0;\n actualDeleteCount = len - actualStart;\n } else {\n insertCount = argumentsLength - 2;\n actualDeleteCount = min(max(toInteger(deleteCount), 0), len - actualStart);\n }\n if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {\n throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);\n }\n A = arraySpeciesCreate(O, actualDeleteCount);\n for (k = 0; k < actualDeleteCount; k++) {\n from = actualStart + k;\n if (from in O) createProperty(A, k, O[from]);\n }\n A.length = actualDeleteCount;\n if (insertCount < actualDeleteCount) {\n for (k = actualStart; k < len - actualDeleteCount; k++) {\n from = k + actualDeleteCount;\n to = k + insertCount;\n if (from in O) O[to] = O[from];\n else delete O[to];\n }\n for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1];\n } else if (insertCount > actualDeleteCount) {\n for (k = len - actualDeleteCount; k > actualStart; k--) {\n from = k + actualDeleteCount - 1;\n to = k + insertCount - 1;\n if (from in O) O[to] = O[from];\n else delete O[to];\n }\n }\n for (k = 0; k < insertCount; k++) {\n O[k + actualStart] = arguments[k + 2];\n }\n O.length = len - actualDeleteCount + insertCount;\n return A;\n }\n});\n","import toInteger from \"../_lib/toInteger/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name addDays\n * @category Day Helpers\n * @summary Add the specified number of days to the given date.\n *\n * @description\n * Add the specified number of days to the given date.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} - the new date with the days added\n * @throws {TypeError} - 2 arguments required\n *\n * @example\n * // Add 10 days to 1 September 2014:\n * const result = addDays(new Date(2014, 8, 1), 10)\n * //=> Thu Sep 11 2014 00:00:00\n */\n\nexport default function addDays(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var amount = toInteger(dirtyAmount);\n\n if (isNaN(amount)) {\n return new Date(NaN);\n }\n\n if (!amount) {\n // If 0 days, no-op to avoid changing times in the hour before end of DST\n return date;\n }\n\n date.setDate(date.getDate() + amount);\n return date;\n}","// HTML5 entities map: { name -> utf16string }\n//\n'use strict';\n/*eslint quotes:0*/\n\nmodule.exports = require('entities/lib/maps/entities.json');","// Regexps to match html elements\n'use strict';\n\nvar attr_name = '[a-zA-Z_:][a-zA-Z0-9:._-]*';\nvar unquoted = '[^\"\\'=<>`\\\\x00-\\\\x20]+';\nvar single_quoted = \"'[^']*'\";\nvar double_quoted = '\"[^\"]*\"';\nvar attr_value = '(?:' + unquoted + '|' + single_quoted + '|' + double_quoted + ')';\nvar attribute = '(?:\\\\s+' + attr_name + '(?:\\\\s*=\\\\s*' + attr_value + ')?)';\nvar open_tag = '<[A-Za-z][A-Za-z0-9\\\\-]*' + attribute + '*\\\\s*\\\\/?>';\nvar close_tag = '<\\\\/[A-Za-z][A-Za-z0-9\\\\-]*\\\\s*>';\nvar comment = '|';\nvar processing = '<[?][\\\\s\\\\S]*?[?]>';\nvar declaration = ']*>';\nvar cdata = '';\nvar HTML_TAG_RE = new RegExp('^(?:' + open_tag + '|' + close_tag + '|' + comment + '|' + processing + '|' + declaration + '|' + cdata + ')');\nvar HTML_OPEN_CLOSE_TAG_RE = new RegExp('^(?:' + open_tag + '|' + close_tag + ')');\nmodule.exports.HTML_TAG_RE = HTML_TAG_RE;\nmodule.exports.HTML_OPEN_CLOSE_TAG_RE = HTML_OPEN_CLOSE_TAG_RE;","// ~~strike through~~\n//\n'use strict'; // Insert each marker as a separate text token, and add it to delimiter list\n//\n\nmodule.exports.tokenize = function strikethrough(state, silent) {\n var i,\n scanned,\n token,\n len,\n ch,\n start = state.pos,\n marker = state.src.charCodeAt(start);\n\n if (silent) {\n return false;\n }\n\n if (marker !== 0x7E\n /* ~ */\n ) {\n return false;\n }\n\n scanned = state.scanDelims(state.pos, true);\n len = scanned.length;\n ch = String.fromCharCode(marker);\n\n if (len < 2) {\n return false;\n }\n\n if (len % 2) {\n token = state.push('text', '', 0);\n token.content = ch;\n len--;\n }\n\n for (i = 0; i < len; i += 2) {\n token = state.push('text', '', 0);\n token.content = ch + ch;\n state.delimiters.push({\n marker: marker,\n length: 0,\n // disable \"rule of 3\" length checks meant for emphasis\n token: state.tokens.length - 1,\n end: -1,\n open: scanned.can_open,\n close: scanned.can_close\n });\n }\n\n state.pos += scanned.length;\n return true;\n};\n\nfunction postProcess(state, delimiters) {\n var i,\n j,\n startDelim,\n endDelim,\n token,\n loneMarkers = [],\n max = delimiters.length;\n\n for (i = 0; i < max; i++) {\n startDelim = delimiters[i];\n\n if (startDelim.marker !== 0x7E\n /* ~ */\n ) {\n continue;\n }\n\n if (startDelim.end === -1) {\n continue;\n }\n\n endDelim = delimiters[startDelim.end];\n token = state.tokens[startDelim.token];\n token.type = 's_open';\n token.tag = 's';\n token.nesting = 1;\n token.markup = '~~';\n token.content = '';\n token = state.tokens[endDelim.token];\n token.type = 's_close';\n token.tag = 's';\n token.nesting = -1;\n token.markup = '~~';\n token.content = '';\n\n if (state.tokens[endDelim.token - 1].type === 'text' && state.tokens[endDelim.token - 1].content === '~') {\n loneMarkers.push(endDelim.token - 1);\n }\n } // If a marker sequence has an odd number of characters, it's splitted\n // like this: `~~~~~` -> `~` + `~~` + `~~`, leaving one marker at the\n // start of the sequence.\n //\n // So, we have to move all those markers after subsequent s_close tags.\n //\n\n\n while (loneMarkers.length) {\n i = loneMarkers.pop();\n j = i + 1;\n\n while (j < state.tokens.length && state.tokens[j].type === 's_close') {\n j++;\n }\n\n j--;\n\n if (i !== j) {\n token = state.tokens[j];\n state.tokens[j] = state.tokens[i];\n state.tokens[i] = token;\n }\n }\n} // Walk through delimiter list and replace text tokens with tags\n//\n\n\nmodule.exports.postProcess = function strikethrough(state) {\n var curr,\n tokens_meta = state.tokens_meta,\n max = state.tokens_meta.length;\n postProcess(state, state.delimiters);\n\n for (curr = 0; curr < max; curr++) {\n if (tokens_meta[curr] && tokens_meta[curr].delimiters) {\n postProcess(state, tokens_meta[curr].delimiters);\n }\n }\n};","// Process *this* and _that_\n//\n'use strict'; // Insert each marker as a separate text token, and add it to delimiter list\n//\n\nmodule.exports.tokenize = function emphasis(state, silent) {\n var i,\n scanned,\n token,\n start = state.pos,\n marker = state.src.charCodeAt(start);\n\n if (silent) {\n return false;\n }\n\n if (marker !== 0x5F\n /* _ */\n && marker !== 0x2A\n /* * */\n ) {\n return false;\n }\n\n scanned = state.scanDelims(state.pos, marker === 0x2A);\n\n for (i = 0; i < scanned.length; i++) {\n token = state.push('text', '', 0);\n token.content = String.fromCharCode(marker);\n state.delimiters.push({\n // Char code of the starting marker (number).\n //\n marker: marker,\n // Total length of these series of delimiters.\n //\n length: scanned.length,\n // A position of the token this delimiter corresponds to.\n //\n token: state.tokens.length - 1,\n // If this delimiter is matched as a valid opener, `end` will be\n // equal to its position, otherwise it's `-1`.\n //\n end: -1,\n // Boolean flags that determine if this delimiter could open or close\n // an emphasis.\n //\n open: scanned.can_open,\n close: scanned.can_close\n });\n }\n\n state.pos += scanned.length;\n return true;\n};\n\nfunction postProcess(state, delimiters) {\n var i,\n startDelim,\n endDelim,\n token,\n ch,\n isStrong,\n max = delimiters.length;\n\n for (i = max - 1; i >= 0; i--) {\n startDelim = delimiters[i];\n\n if (startDelim.marker !== 0x5F\n /* _ */\n && startDelim.marker !== 0x2A\n /* * */\n ) {\n continue;\n } // Process only opening markers\n\n\n if (startDelim.end === -1) {\n continue;\n }\n\n endDelim = delimiters[startDelim.end]; // If the previous delimiter has the same marker and is adjacent to this one,\n // merge those into one strong delimiter.\n //\n // `whatever` -> `whatever`\n //\n\n isStrong = i > 0 && delimiters[i - 1].end === startDelim.end + 1 && // check that first two markers match and adjacent\n delimiters[i - 1].marker === startDelim.marker && delimiters[i - 1].token === startDelim.token - 1 && // check that last two markers are adjacent (we can safely assume they match)\n delimiters[startDelim.end + 1].token === endDelim.token + 1;\n ch = String.fromCharCode(startDelim.marker);\n token = state.tokens[startDelim.token];\n token.type = isStrong ? 'strong_open' : 'em_open';\n token.tag = isStrong ? 'strong' : 'em';\n token.nesting = 1;\n token.markup = isStrong ? ch + ch : ch;\n token.content = '';\n token = state.tokens[endDelim.token];\n token.type = isStrong ? 'strong_close' : 'em_close';\n token.tag = isStrong ? 'strong' : 'em';\n token.nesting = -1;\n token.markup = isStrong ? ch + ch : ch;\n token.content = '';\n\n if (isStrong) {\n state.tokens[delimiters[i - 1].token].content = '';\n state.tokens[delimiters[startDelim.end + 1].token].content = '';\n i--;\n }\n }\n} // Walk through delimiter list and replace text tokens with tags\n//\n\n\nmodule.exports.postProcess = function emphasis(state) {\n var curr,\n tokens_meta = state.tokens_meta,\n max = state.tokens_meta.length;\n postProcess(state, state.delimiters);\n\n for (curr = 0; curr < max; curr++) {\n if (tokens_meta[curr] && tokens_meta[curr].delimiters) {\n postProcess(state, tokens_meta[curr].delimiters);\n }\n }\n};","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.toPrimitive` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.toprimitive\ndefineWellKnownSymbol('toPrimitive');\n","var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar dateToPrimitive = require('../internals/date-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\nvar DatePrototype = Date.prototype;\n\n// `Date.prototype[@@toPrimitive]` method\n// https://tc39.es/ecma262/#sec-date.prototype-@@toprimitive\nif (!(TO_PRIMITIVE in DatePrototype)) {\n createNonEnumerableProperty(DatePrototype, TO_PRIMITIVE, dateToPrimitive);\n}\n","import Cookies from 'js-cookie';\nimport { DEFAULT_REDIRECT_URL } from 'dashboard/constants/globals';\nimport { frontendURL } from 'dashboard/helper/URLHelper';\n\nexport const hasAuthCookie = () => {\n return !!Cookies.get('cw_d_session_info');\n};\n\nconst getSSOAccountPath = ({ ssoAccountId, user }) => {\n const { accounts = [], account_id = null } = user || {};\n const ssoAccount = accounts.find(\n account => account.id === Number(ssoAccountId)\n );\n let accountPath = '';\n if (ssoAccount) {\n accountPath = `accounts/${ssoAccountId}`;\n } else if (accounts.length) {\n // If the account id is not found, redirect to the first account\n const accountId = account_id || accounts[0].id;\n accountPath = `accounts/${accountId}`;\n }\n return accountPath;\n};\n\nexport const getLoginRedirectURL = ({\n ssoAccountId,\n ssoConversationId,\n user,\n}) => {\n const accountPath = getSSOAccountPath({ ssoAccountId, user });\n if (accountPath) {\n if (ssoConversationId) {\n return frontendURL(`${accountPath}/conversations/${ssoConversationId}`);\n }\n return frontendURL(`${accountPath}/dashboard`);\n }\n return DEFAULT_REDIRECT_URL;\n};\n","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || value !== value && other !== other;\n}\n\nmodule.exports = eq;","var _Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n/** `Object#toString` result references. */\n\n\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n/** Built-in value references. */\n\nvar symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n\n return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);\n}\n\nmodule.exports = baseGetTag;","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Afrikaans [af]\n//! author : Werner Mollentze : https://github.com/wernerm\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var af = moment.defineLocale('af', {\n months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),\n monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),\n weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),\n weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),\n weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),\n meridiemParse: /vm|nm/i,\n isPM: function isPM(input) {\n return /^nm$/i.test(input);\n },\n meridiem: function meridiem(hours, minutes, isLower) {\n if (hours < 12) {\n return isLower ? 'vm' : 'VM';\n } else {\n return isLower ? 'nm' : 'NM';\n }\n },\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Vandag om] LT',\n nextDay: '[Môre om] LT',\n nextWeek: 'dddd [om] LT',\n lastDay: '[Gister om] LT',\n lastWeek: '[Laas] dddd [om] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'oor %s',\n past: '%s gelede',\n s: \"'n paar sekondes\",\n ss: '%d sekondes',\n m: \"'n minuut\",\n mm: '%d minute',\n h: \"'n uur\",\n hh: '%d ure',\n d: \"'n dag\",\n dd: '%d dae',\n M: \"'n maand\",\n MM: '%d maande',\n y: \"'n jaar\",\n yy: '%d jaar'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(ste|de)/,\n ordinal: function ordinal(number) {\n return number + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter\n },\n week: {\n dow: 1,\n // Maandag is die eerste dag van die week.\n doy: 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.\n\n }\n });\n return af;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Arabic [ar]\n//! author : Abdel Said: https://github.com/abdelsaid\n//! author : Ahmed Elkhatib\n//! author : forabi https://github.com/forabi\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var symbolMap = {\n 1: '١',\n 2: '٢',\n 3: '٣',\n 4: '٤',\n 5: '٥',\n 6: '٦',\n 7: '٧',\n 8: '٨',\n 9: '٩',\n 0: '٠'\n },\n numberMap = {\n '١': '1',\n '٢': '2',\n '٣': '3',\n '٤': '4',\n '٥': '5',\n '٦': '6',\n '٧': '7',\n '٨': '8',\n '٩': '9',\n '٠': '0'\n },\n pluralForm = function pluralForm(n) {\n return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;\n },\n plurals = {\n s: ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],\n m: ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],\n h: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],\n d: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],\n M: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],\n y: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']\n },\n pluralize = function pluralize(u) {\n return function (number, withoutSuffix, string, isFuture) {\n var f = pluralForm(number),\n str = plurals[u][pluralForm(number)];\n\n if (f === 2) {\n str = str[withoutSuffix ? 0 : 1];\n }\n\n return str.replace(/%d/i, number);\n };\n },\n months = ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'];\n\n var ar = moment.defineLocale('ar', {\n months: months,\n monthsShort: months,\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: \"D/\\u200FM/\\u200FYYYY\",\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n meridiemParse: /ص|م/,\n isPM: function isPM(input) {\n return 'م' === input;\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 12) {\n return 'ص';\n } else {\n return 'م';\n }\n },\n calendar: {\n sameDay: '[اليوم عند الساعة] LT',\n nextDay: '[غدًا عند الساعة] LT',\n nextWeek: 'dddd [عند الساعة] LT',\n lastDay: '[أمس عند الساعة] LT',\n lastWeek: 'dddd [عند الساعة] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'بعد %s',\n past: 'منذ %s',\n s: pluralize('s'),\n ss: pluralize('s'),\n m: pluralize('m'),\n mm: pluralize('m'),\n h: pluralize('h'),\n hh: pluralize('h'),\n d: pluralize('d'),\n dd: pluralize('d'),\n M: pluralize('M'),\n MM: pluralize('M'),\n y: pluralize('y'),\n yy: pluralize('y')\n },\n preparse: function preparse(string) {\n return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {\n return numberMap[match];\n }).replace(/،/g, ',');\n },\n postformat: function postformat(string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n }).replace(/,/g, '،');\n },\n week: {\n dow: 6,\n // Saturday is the first day of the week.\n doy: 12 // The week that contains Jan 12th is the first week of the year.\n\n }\n });\n return ar;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Arabic (Algeria) [ar-dz]\n//! author : Amine Roukh: https://github.com/Amine27\n//! author : Abdel Said: https://github.com/abdelsaid\n//! author : Ahmed Elkhatib\n//! author : forabi https://github.com/forabi\n//! author : Noureddine LOUAHEDJ : https://github.com/noureddinem\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var pluralForm = function pluralForm(n) {\n return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;\n },\n plurals = {\n s: ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],\n m: ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],\n h: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],\n d: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],\n M: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],\n y: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']\n },\n pluralize = function pluralize(u) {\n return function (number, withoutSuffix, string, isFuture) {\n var f = pluralForm(number),\n str = plurals[u][pluralForm(number)];\n\n if (f === 2) {\n str = str[withoutSuffix ? 0 : 1];\n }\n\n return str.replace(/%d/i, number);\n };\n },\n months = ['جانفي', 'فيفري', 'مارس', 'أفريل', 'ماي', 'جوان', 'جويلية', 'أوت', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'];\n\n var arDz = moment.defineLocale('ar-dz', {\n months: months,\n monthsShort: months,\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: \"D/\\u200FM/\\u200FYYYY\",\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n meridiemParse: /ص|م/,\n isPM: function isPM(input) {\n return 'م' === input;\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 12) {\n return 'ص';\n } else {\n return 'م';\n }\n },\n calendar: {\n sameDay: '[اليوم عند الساعة] LT',\n nextDay: '[غدًا عند الساعة] LT',\n nextWeek: 'dddd [عند الساعة] LT',\n lastDay: '[أمس عند الساعة] LT',\n lastWeek: 'dddd [عند الساعة] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'بعد %s',\n past: 'منذ %s',\n s: pluralize('s'),\n ss: pluralize('s'),\n m: pluralize('m'),\n mm: pluralize('m'),\n h: pluralize('h'),\n hh: pluralize('h'),\n d: pluralize('d'),\n dd: pluralize('d'),\n M: pluralize('M'),\n MM: pluralize('M'),\n y: pluralize('y'),\n yy: pluralize('y')\n },\n postformat: function postformat(string) {\n return string.replace(/,/g, '،');\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return arDz;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Arabic (Kuwait) [ar-kw]\n//! author : Nusret Parlak: https://github.com/nusretparlak\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var arKw = moment.defineLocale('ar-kw', {\n months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),\n monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),\n weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[اليوم على الساعة] LT',\n nextDay: '[غدا على الساعة] LT',\n nextWeek: 'dddd [على الساعة] LT',\n lastDay: '[أمس على الساعة] LT',\n lastWeek: 'dddd [على الساعة] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'في %s',\n past: 'منذ %s',\n s: 'ثوان',\n ss: '%d ثانية',\n m: 'دقيقة',\n mm: '%d دقائق',\n h: 'ساعة',\n hh: '%d ساعات',\n d: 'يوم',\n dd: '%d أيام',\n M: 'شهر',\n MM: '%d أشهر',\n y: 'سنة',\n yy: '%d سنوات'\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 12 // The week that contains Jan 12th is the first week of the year.\n\n }\n });\n return arKw;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Arabic (Libya) [ar-ly]\n//! author : Ali Hmer: https://github.com/kikoanis\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var symbolMap = {\n 1: '1',\n 2: '2',\n 3: '3',\n 4: '4',\n 5: '5',\n 6: '6',\n 7: '7',\n 8: '8',\n 9: '9',\n 0: '0'\n },\n pluralForm = function pluralForm(n) {\n return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;\n },\n plurals = {\n s: ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],\n m: ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],\n h: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],\n d: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],\n M: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],\n y: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']\n },\n pluralize = function pluralize(u) {\n return function (number, withoutSuffix, string, isFuture) {\n var f = pluralForm(number),\n str = plurals[u][pluralForm(number)];\n\n if (f === 2) {\n str = str[withoutSuffix ? 0 : 1];\n }\n\n return str.replace(/%d/i, number);\n };\n },\n months = ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'];\n\n var arLy = moment.defineLocale('ar-ly', {\n months: months,\n monthsShort: months,\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: \"D/\\u200FM/\\u200FYYYY\",\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n meridiemParse: /ص|م/,\n isPM: function isPM(input) {\n return 'م' === input;\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 12) {\n return 'ص';\n } else {\n return 'م';\n }\n },\n calendar: {\n sameDay: '[اليوم عند الساعة] LT',\n nextDay: '[غدًا عند الساعة] LT',\n nextWeek: 'dddd [عند الساعة] LT',\n lastDay: '[أمس عند الساعة] LT',\n lastWeek: 'dddd [عند الساعة] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'بعد %s',\n past: 'منذ %s',\n s: pluralize('s'),\n ss: pluralize('s'),\n m: pluralize('m'),\n mm: pluralize('m'),\n h: pluralize('h'),\n hh: pluralize('h'),\n d: pluralize('d'),\n dd: pluralize('d'),\n M: pluralize('M'),\n MM: pluralize('M'),\n y: pluralize('y'),\n yy: pluralize('y')\n },\n preparse: function preparse(string) {\n return string.replace(/،/g, ',');\n },\n postformat: function postformat(string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n }).replace(/,/g, '،');\n },\n week: {\n dow: 6,\n // Saturday is the first day of the week.\n doy: 12 // The week that contains Jan 12th is the first week of the year.\n\n }\n });\n return arLy;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Arabic (Morocco) [ar-ma]\n//! author : ElFadili Yassine : https://github.com/ElFadiliY\n//! author : Abdel Said : https://github.com/abdelsaid\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var arMa = moment.defineLocale('ar-ma', {\n months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),\n monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[اليوم على الساعة] LT',\n nextDay: '[غدا على الساعة] LT',\n nextWeek: 'dddd [على الساعة] LT',\n lastDay: '[أمس على الساعة] LT',\n lastWeek: 'dddd [على الساعة] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'في %s',\n past: 'منذ %s',\n s: 'ثوان',\n ss: '%d ثانية',\n m: 'دقيقة',\n mm: '%d دقائق',\n h: 'ساعة',\n hh: '%d ساعات',\n d: 'يوم',\n dd: '%d أيام',\n M: 'شهر',\n MM: '%d أشهر',\n y: 'سنة',\n yy: '%d سنوات'\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return arMa;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Arabic (Saudi Arabia) [ar-sa]\n//! author : Suhail Alkowaileet : https://github.com/xsoh\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var symbolMap = {\n 1: '١',\n 2: '٢',\n 3: '٣',\n 4: '٤',\n 5: '٥',\n 6: '٦',\n 7: '٧',\n 8: '٨',\n 9: '٩',\n 0: '٠'\n },\n numberMap = {\n '١': '1',\n '٢': '2',\n '٣': '3',\n '٤': '4',\n '٥': '5',\n '٦': '6',\n '٧': '7',\n '٨': '8',\n '٩': '9',\n '٠': '0'\n };\n var arSa = moment.defineLocale('ar-sa', {\n months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),\n monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n meridiemParse: /ص|م/,\n isPM: function isPM(input) {\n return 'م' === input;\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 12) {\n return 'ص';\n } else {\n return 'م';\n }\n },\n calendar: {\n sameDay: '[اليوم على الساعة] LT',\n nextDay: '[غدا على الساعة] LT',\n nextWeek: 'dddd [على الساعة] LT',\n lastDay: '[أمس على الساعة] LT',\n lastWeek: 'dddd [على الساعة] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'في %s',\n past: 'منذ %s',\n s: 'ثوان',\n ss: '%d ثانية',\n m: 'دقيقة',\n mm: '%d دقائق',\n h: 'ساعة',\n hh: '%d ساعات',\n d: 'يوم',\n dd: '%d أيام',\n M: 'شهر',\n MM: '%d أشهر',\n y: 'سنة',\n yy: '%d سنوات'\n },\n preparse: function preparse(string) {\n return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {\n return numberMap[match];\n }).replace(/،/g, ',');\n },\n postformat: function postformat(string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n }).replace(/,/g, '،');\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n\n }\n });\n return arSa;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Arabic (Tunisia) [ar-tn]\n//! author : Nader Toukabri : https://github.com/naderio\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var arTn = moment.defineLocale('ar-tn', {\n months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),\n monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[اليوم على الساعة] LT',\n nextDay: '[غدا على الساعة] LT',\n nextWeek: 'dddd [على الساعة] LT',\n lastDay: '[أمس على الساعة] LT',\n lastWeek: 'dddd [على الساعة] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'في %s',\n past: 'منذ %s',\n s: 'ثوان',\n ss: '%d ثانية',\n m: 'دقيقة',\n mm: '%d دقائق',\n h: 'ساعة',\n hh: '%d ساعات',\n d: 'يوم',\n dd: '%d أيام',\n M: 'شهر',\n MM: '%d أشهر',\n y: 'سنة',\n yy: '%d سنوات'\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return arTn;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Azerbaijani [az]\n//! author : topchiyev : https://github.com/topchiyev\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var suffixes = {\n 1: '-inci',\n 5: '-inci',\n 8: '-inci',\n 70: '-inci',\n 80: '-inci',\n 2: '-nci',\n 7: '-nci',\n 20: '-nci',\n 50: '-nci',\n 3: '-üncü',\n 4: '-üncü',\n 100: '-üncü',\n 6: '-ncı',\n 9: '-uncu',\n 10: '-uncu',\n 30: '-uncu',\n 60: '-ıncı',\n 90: '-ıncı'\n };\n var az = moment.defineLocale('az', {\n months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),\n monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),\n weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),\n weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),\n weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[bugün saat] LT',\n nextDay: '[sabah saat] LT',\n nextWeek: '[gələn həftə] dddd [saat] LT',\n lastDay: '[dünən] LT',\n lastWeek: '[keçən həftə] dddd [saat] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s sonra',\n past: '%s əvvəl',\n s: 'bir neçə saniyə',\n ss: '%d saniyə',\n m: 'bir dəqiqə',\n mm: '%d dəqiqə',\n h: 'bir saat',\n hh: '%d saat',\n d: 'bir gün',\n dd: '%d gün',\n M: 'bir ay',\n MM: '%d ay',\n y: 'bir il',\n yy: '%d il'\n },\n meridiemParse: /gecə|səhər|gündüz|axşam/,\n isPM: function isPM(input) {\n return /^(gündüz|axşam)$/.test(input);\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 4) {\n return 'gecə';\n } else if (hour < 12) {\n return 'səhər';\n } else if (hour < 17) {\n return 'gündüz';\n } else {\n return 'axşam';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,\n ordinal: function ordinal(number) {\n if (number === 0) {\n // special case for zero\n return number + '-ıncı';\n }\n\n var a = number % 10,\n b = number % 100 - a,\n c = number >= 100 ? 100 : null;\n return number + (suffixes[a] || suffixes[b] || suffixes[c]);\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n\n }\n });\n return az;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Belarusian [be]\n//! author : Dmitry Demidov : https://github.com/demidov91\n//! author: Praleska: http://praleska.pro/\n//! Author : Menelion Elensúle : https://github.com/Oire\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n function plural(word, num) {\n var forms = word.split('_');\n return num % 10 === 1 && num % 100 !== 11 ? forms[0] : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2];\n }\n\n function relativeTimeWithPlural(number, withoutSuffix, key) {\n var format = {\n ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',\n mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',\n hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',\n dd: 'дзень_дні_дзён',\n MM: 'месяц_месяцы_месяцаў',\n yy: 'год_гады_гадоў'\n };\n\n if (key === 'm') {\n return withoutSuffix ? 'хвіліна' : 'хвіліну';\n } else if (key === 'h') {\n return withoutSuffix ? 'гадзіна' : 'гадзіну';\n } else {\n return number + ' ' + plural(format[key], +number);\n }\n }\n\n var be = moment.defineLocale('be', {\n months: {\n format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),\n standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')\n },\n monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),\n weekdays: {\n format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),\n standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),\n isFormat: /\\[ ?[Ууў] ?(?:мінулую|наступную)? ?\\] ?dddd/\n },\n weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),\n weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY г.',\n LLL: 'D MMMM YYYY г., HH:mm',\n LLLL: 'dddd, D MMMM YYYY г., HH:mm'\n },\n calendar: {\n sameDay: '[Сёння ў] LT',\n nextDay: '[Заўтра ў] LT',\n lastDay: '[Учора ў] LT',\n nextWeek: function nextWeek() {\n return '[У] dddd [ў] LT';\n },\n lastWeek: function lastWeek() {\n switch (this.day()) {\n case 0:\n case 3:\n case 5:\n case 6:\n return '[У мінулую] dddd [ў] LT';\n\n case 1:\n case 2:\n case 4:\n return '[У мінулы] dddd [ў] LT';\n }\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'праз %s',\n past: '%s таму',\n s: 'некалькі секунд',\n m: relativeTimeWithPlural,\n mm: relativeTimeWithPlural,\n h: relativeTimeWithPlural,\n hh: relativeTimeWithPlural,\n d: 'дзень',\n dd: relativeTimeWithPlural,\n M: 'месяц',\n MM: relativeTimeWithPlural,\n y: 'год',\n yy: relativeTimeWithPlural\n },\n meridiemParse: /ночы|раніцы|дня|вечара/,\n isPM: function isPM(input) {\n return /^(дня|вечара)$/.test(input);\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 4) {\n return 'ночы';\n } else if (hour < 12) {\n return 'раніцы';\n } else if (hour < 17) {\n return 'дня';\n } else {\n return 'вечара';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(і|ы|га)/,\n ordinal: function ordinal(number, period) {\n switch (period) {\n case 'M':\n case 'd':\n case 'DDD':\n case 'w':\n case 'W':\n return (number % 10 === 2 || number % 10 === 3) && number % 100 !== 12 && number % 100 !== 13 ? number + '-і' : number + '-ы';\n\n case 'D':\n return number + '-га';\n\n default:\n return number;\n }\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n\n }\n });\n return be;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Bulgarian [bg]\n//! author : Krasen Borisov : https://github.com/kraz\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var bg = moment.defineLocale('bg', {\n months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),\n monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),\n weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),\n weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),\n weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'D.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY H:mm',\n LLLL: 'dddd, D MMMM YYYY H:mm'\n },\n calendar: {\n sameDay: '[Днес в] LT',\n nextDay: '[Утре в] LT',\n nextWeek: 'dddd [в] LT',\n lastDay: '[Вчера в] LT',\n lastWeek: function lastWeek() {\n switch (this.day()) {\n case 0:\n case 3:\n case 6:\n return '[Миналата] dddd [в] LT';\n\n case 1:\n case 2:\n case 4:\n case 5:\n return '[Миналия] dddd [в] LT';\n }\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'след %s',\n past: 'преди %s',\n s: 'няколко секунди',\n ss: '%d секунди',\n m: 'минута',\n mm: '%d минути',\n h: 'час',\n hh: '%d часа',\n d: 'ден',\n dd: '%d дена',\n w: 'седмица',\n ww: '%d седмици',\n M: 'месец',\n MM: '%d месеца',\n y: 'година',\n yy: '%d години'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(ев|ен|ти|ви|ри|ми)/,\n ordinal: function ordinal(number) {\n var lastDigit = number % 10,\n last2Digits = number % 100;\n\n if (number === 0) {\n return number + '-ев';\n } else if (last2Digits === 0) {\n return number + '-ен';\n } else if (last2Digits > 10 && last2Digits < 20) {\n return number + '-ти';\n } else if (lastDigit === 1) {\n return number + '-ви';\n } else if (lastDigit === 2) {\n return number + '-ри';\n } else if (lastDigit === 7 || lastDigit === 8) {\n return number + '-ми';\n } else {\n return number + '-ти';\n }\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n\n }\n });\n return bg;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Bambara [bm]\n//! author : Estelle Comment : https://github.com/estellecomment\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var bm = moment.defineLocale('bm', {\n months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split('_'),\n monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),\n weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),\n weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),\n weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'MMMM [tile] D [san] YYYY',\n LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',\n LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm'\n },\n calendar: {\n sameDay: '[Bi lɛrɛ] LT',\n nextDay: '[Sini lɛrɛ] LT',\n nextWeek: 'dddd [don lɛrɛ] LT',\n lastDay: '[Kunu lɛrɛ] LT',\n lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s kɔnɔ',\n past: 'a bɛ %s bɔ',\n s: 'sanga dama dama',\n ss: 'sekondi %d',\n m: 'miniti kelen',\n mm: 'miniti %d',\n h: 'lɛrɛ kelen',\n hh: 'lɛrɛ %d',\n d: 'tile kelen',\n dd: 'tile %d',\n M: 'kalo kelen',\n MM: 'kalo %d',\n y: 'san kelen',\n yy: 'san %d'\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return bm;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Bengali [bn]\n//! author : Kaushik Gandhi : https://github.com/kaushikgandhi\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var symbolMap = {\n 1: '১',\n 2: '২',\n 3: '৩',\n 4: '৪',\n 5: '৫',\n 6: '৬',\n 7: '৭',\n 8: '৮',\n 9: '৯',\n 0: '০'\n },\n numberMap = {\n '১': '1',\n '২': '2',\n '৩': '3',\n '৪': '4',\n '৫': '5',\n '৬': '6',\n '৭': '7',\n '৮': '8',\n '৯': '9',\n '০': '0'\n };\n var bn = moment.defineLocale('bn', {\n months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),\n monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),\n weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),\n weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),\n weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),\n longDateFormat: {\n LT: 'A h:mm সময়',\n LTS: 'A h:mm:ss সময়',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm সময়',\n LLLL: 'dddd, D MMMM YYYY, A h:mm সময়'\n },\n calendar: {\n sameDay: '[আজ] LT',\n nextDay: '[আগামীকাল] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[গতকাল] LT',\n lastWeek: '[গত] dddd, LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s পরে',\n past: '%s আগে',\n s: 'কয়েক সেকেন্ড',\n ss: '%d সেকেন্ড',\n m: 'এক মিনিট',\n mm: '%d মিনিট',\n h: 'এক ঘন্টা',\n hh: '%d ঘন্টা',\n d: 'এক দিন',\n dd: '%d দিন',\n M: 'এক মাস',\n MM: '%d মাস',\n y: 'এক বছর',\n yy: '%d বছর'\n },\n preparse: function preparse(string) {\n return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function postformat(string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,\n meridiemHour: function meridiemHour(hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n\n if (meridiem === 'রাত' && hour >= 4 || meridiem === 'দুপুর' && hour < 5 || meridiem === 'বিকাল') {\n return hour + 12;\n } else {\n return hour;\n }\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 4) {\n return 'রাত';\n } else if (hour < 10) {\n return 'সকাল';\n } else if (hour < 17) {\n return 'দুপুর';\n } else if (hour < 20) {\n return 'বিকাল';\n } else {\n return 'রাত';\n }\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n\n }\n });\n return bn;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Bengali (Bangladesh) [bn-bd]\n//! author : Asraf Hossain Patoary : https://github.com/ashwoolford\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var symbolMap = {\n 1: '১',\n 2: '২',\n 3: '৩',\n 4: '৪',\n 5: '৫',\n 6: '৬',\n 7: '৭',\n 8: '৮',\n 9: '৯',\n 0: '০'\n },\n numberMap = {\n '১': '1',\n '২': '2',\n '৩': '3',\n '৪': '4',\n '৫': '5',\n '৬': '6',\n '৭': '7',\n '৮': '8',\n '৯': '9',\n '০': '0'\n };\n var bnBd = moment.defineLocale('bn-bd', {\n months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),\n monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),\n weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),\n weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),\n weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),\n longDateFormat: {\n LT: 'A h:mm সময়',\n LTS: 'A h:mm:ss সময়',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm সময়',\n LLLL: 'dddd, D MMMM YYYY, A h:mm সময়'\n },\n calendar: {\n sameDay: '[আজ] LT',\n nextDay: '[আগামীকাল] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[গতকাল] LT',\n lastWeek: '[গত] dddd, LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s পরে',\n past: '%s আগে',\n s: 'কয়েক সেকেন্ড',\n ss: '%d সেকেন্ড',\n m: 'এক মিনিট',\n mm: '%d মিনিট',\n h: 'এক ঘন্টা',\n hh: '%d ঘন্টা',\n d: 'এক দিন',\n dd: '%d দিন',\n M: 'এক মাস',\n MM: '%d মাস',\n y: 'এক বছর',\n yy: '%d বছর'\n },\n preparse: function preparse(string) {\n return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function postformat(string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n meridiemParse: /রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,\n meridiemHour: function meridiemHour(hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n\n if (meridiem === 'রাত') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'ভোর') {\n return hour;\n } else if (meridiem === 'সকাল') {\n return hour;\n } else if (meridiem === 'দুপুর') {\n return hour >= 3 ? hour : hour + 12;\n } else if (meridiem === 'বিকাল') {\n return hour + 12;\n } else if (meridiem === 'সন্ধ্যা') {\n return hour + 12;\n }\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 4) {\n return 'রাত';\n } else if (hour < 6) {\n return 'ভোর';\n } else if (hour < 12) {\n return 'সকাল';\n } else if (hour < 15) {\n return 'দুপুর';\n } else if (hour < 18) {\n return 'বিকাল';\n } else if (hour < 20) {\n return 'সন্ধ্যা';\n } else {\n return 'রাত';\n }\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n\n }\n });\n return bnBd;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Tibetan [bo]\n//! author : Thupten N. Chakrishar : https://github.com/vajradog\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var symbolMap = {\n 1: '༡',\n 2: '༢',\n 3: '༣',\n 4: '༤',\n 5: '༥',\n 6: '༦',\n 7: '༧',\n 8: '༨',\n 9: '༩',\n 0: '༠'\n },\n numberMap = {\n '༡': '1',\n '༢': '2',\n '༣': '3',\n '༤': '4',\n '༥': '5',\n '༦': '6',\n '༧': '7',\n '༨': '8',\n '༩': '9',\n '༠': '0'\n };\n var bo = moment.defineLocale('bo', {\n months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),\n monthsShort: 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split('_'),\n monthsShortRegex: /^(ཟླ་\\d{1,2})/,\n monthsParseExact: true,\n weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),\n weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),\n weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'),\n longDateFormat: {\n LT: 'A h:mm',\n LTS: 'A h:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm',\n LLLL: 'dddd, D MMMM YYYY, A h:mm'\n },\n calendar: {\n sameDay: '[དི་རིང] LT',\n nextDay: '[སང་ཉིན] LT',\n nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',\n lastDay: '[ཁ་སང] LT',\n lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s ལ་',\n past: '%s སྔན་ལ',\n s: 'ལམ་སང',\n ss: '%d སྐར་ཆ།',\n m: 'སྐར་མ་གཅིག',\n mm: '%d སྐར་མ',\n h: 'ཆུ་ཚོད་གཅིག',\n hh: '%d ཆུ་ཚོད',\n d: 'ཉིན་གཅིག',\n dd: '%d ཉིན་',\n M: 'ཟླ་བ་གཅིག',\n MM: '%d ཟླ་བ',\n y: 'ལོ་གཅིག',\n yy: '%d ལོ'\n },\n preparse: function preparse(string) {\n return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function postformat(string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,\n meridiemHour: function meridiemHour(hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n\n if (meridiem === 'མཚན་མོ' && hour >= 4 || meridiem === 'ཉིན་གུང' && hour < 5 || meridiem === 'དགོང་དག') {\n return hour + 12;\n } else {\n return hour;\n }\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 4) {\n return 'མཚན་མོ';\n } else if (hour < 10) {\n return 'ཞོགས་ཀས';\n } else if (hour < 17) {\n return 'ཉིན་གུང';\n } else if (hour < 20) {\n return 'དགོང་དག';\n } else {\n return 'མཚན་མོ';\n }\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n\n }\n });\n return bo;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Breton [br]\n//! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n function relativeTimeWithMutation(number, withoutSuffix, key) {\n var format = {\n mm: 'munutenn',\n MM: 'miz',\n dd: 'devezh'\n };\n return number + ' ' + mutation(format[key], number);\n }\n\n function specialMutationForYears(number) {\n switch (lastNumber(number)) {\n case 1:\n case 3:\n case 4:\n case 5:\n case 9:\n return number + ' bloaz';\n\n default:\n return number + ' vloaz';\n }\n }\n\n function lastNumber(number) {\n if (number > 9) {\n return lastNumber(number % 10);\n }\n\n return number;\n }\n\n function mutation(text, number) {\n if (number === 2) {\n return softMutation(text);\n }\n\n return text;\n }\n\n function softMutation(text) {\n var mutationTable = {\n m: 'v',\n b: 'v',\n d: 'z'\n };\n\n if (mutationTable[text.charAt(0)] === undefined) {\n return text;\n }\n\n return mutationTable[text.charAt(0)] + text.substring(1);\n }\n\n var monthsParse = [/^gen/i, /^c[ʼ\\']hwe/i, /^meu/i, /^ebr/i, /^mae/i, /^(mez|eve)/i, /^gou/i, /^eos/i, /^gwe/i, /^her/i, /^du/i, /^ker/i],\n monthsRegex = /^(genver|c[ʼ\\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,\n monthsStrictRegex = /^(genver|c[ʼ\\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,\n monthsShortStrictRegex = /^(gen|c[ʼ\\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,\n fullWeekdaysParse = [/^sul/i, /^lun/i, /^meurzh/i, /^merc[ʼ\\']her/i, /^yaou/i, /^gwener/i, /^sadorn/i],\n shortWeekdaysParse = [/^Sul/i, /^Lun/i, /^Meu/i, /^Mer/i, /^Yao/i, /^Gwe/i, /^Sad/i],\n minWeekdaysParse = [/^Su/i, /^Lu/i, /^Me([^r]|$)/i, /^Mer/i, /^Ya/i, /^Gw/i, /^Sa/i];\n var br = moment.defineLocale('br', {\n months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),\n monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),\n weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),\n weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),\n weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),\n weekdaysParse: minWeekdaysParse,\n fullWeekdaysParse: fullWeekdaysParse,\n shortWeekdaysParse: shortWeekdaysParse,\n minWeekdaysParse: minWeekdaysParse,\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: monthsStrictRegex,\n monthsShortStrictRegex: monthsShortStrictRegex,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [a viz] MMMM YYYY',\n LLL: 'D [a viz] MMMM YYYY HH:mm',\n LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Hiziv da] LT',\n nextDay: '[Warcʼhoazh da] LT',\n nextWeek: 'dddd [da] LT',\n lastDay: '[Decʼh da] LT',\n lastWeek: 'dddd [paset da] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'a-benn %s',\n past: '%s ʼzo',\n s: 'un nebeud segondennoù',\n ss: '%d eilenn',\n m: 'ur vunutenn',\n mm: relativeTimeWithMutation,\n h: 'un eur',\n hh: '%d eur',\n d: 'un devezh',\n dd: relativeTimeWithMutation,\n M: 'ur miz',\n MM: relativeTimeWithMutation,\n y: 'ur bloaz',\n yy: specialMutationForYears\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(añ|vet)/,\n ordinal: function ordinal(number) {\n var output = number === 1 ? 'añ' : 'vet';\n return number + output;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n },\n meridiemParse: /a.m.|g.m./,\n // goude merenn | a-raok merenn\n isPM: function isPM(token) {\n return token === 'g.m.';\n },\n meridiem: function meridiem(hour, minute, isLower) {\n return hour < 12 ? 'a.m.' : 'g.m.';\n }\n });\n return br;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Bosnian [bs]\n//! author : Nedim Cholich : https://github.com/frontyard\n//! based on (hr) translation by Bojan Marković\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n function translate(number, withoutSuffix, key) {\n var result = number + ' ';\n\n switch (key) {\n case 'ss':\n if (number === 1) {\n result += 'sekunda';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'sekunde';\n } else {\n result += 'sekundi';\n }\n\n return result;\n\n case 'm':\n return withoutSuffix ? 'jedna minuta' : 'jedne minute';\n\n case 'mm':\n if (number === 1) {\n result += 'minuta';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'minute';\n } else {\n result += 'minuta';\n }\n\n return result;\n\n case 'h':\n return withoutSuffix ? 'jedan sat' : 'jednog sata';\n\n case 'hh':\n if (number === 1) {\n result += 'sat';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'sata';\n } else {\n result += 'sati';\n }\n\n return result;\n\n case 'dd':\n if (number === 1) {\n result += 'dan';\n } else {\n result += 'dana';\n }\n\n return result;\n\n case 'MM':\n if (number === 1) {\n result += 'mjesec';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'mjeseca';\n } else {\n result += 'mjeseci';\n }\n\n return result;\n\n case 'yy':\n if (number === 1) {\n result += 'godina';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'godine';\n } else {\n result += 'godina';\n }\n\n return result;\n }\n }\n\n var bs = moment.defineLocale('bs', {\n months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),\n monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),\n monthsParseExact: true,\n weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),\n weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),\n weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd, D. MMMM YYYY H:mm'\n },\n calendar: {\n sameDay: '[danas u] LT',\n nextDay: '[sutra u] LT',\n nextWeek: function nextWeek() {\n switch (this.day()) {\n case 0:\n return '[u] [nedjelju] [u] LT';\n\n case 3:\n return '[u] [srijedu] [u] LT';\n\n case 6:\n return '[u] [subotu] [u] LT';\n\n case 1:\n case 2:\n case 4:\n case 5:\n return '[u] dddd [u] LT';\n }\n },\n lastDay: '[jučer u] LT',\n lastWeek: function lastWeek() {\n switch (this.day()) {\n case 0:\n case 3:\n return '[prošlu] dddd [u] LT';\n\n case 6:\n return '[prošle] [subote] [u] LT';\n\n case 1:\n case 2:\n case 4:\n case 5:\n return '[prošli] dddd [u] LT';\n }\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'za %s',\n past: 'prije %s',\n s: 'par sekundi',\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: 'dan',\n dd: translate,\n M: 'mjesec',\n MM: translate,\n y: 'godinu',\n yy: translate\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n\n }\n });\n return bs;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Catalan [ca]\n//! author : Juan G. Hurtado : https://github.com/juanghurtado\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var ca = moment.defineLocale('ca', {\n months: {\n standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),\n format: \"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre\".split('_'),\n isFormat: /D[oD]?(\\s)+MMMM/\n },\n monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split('_'),\n monthsParseExact: true,\n weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),\n weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),\n weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM [de] YYYY',\n ll: 'D MMM YYYY',\n LLL: 'D MMMM [de] YYYY [a les] H:mm',\n lll: 'D MMM YYYY, H:mm',\n LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',\n llll: 'ddd D MMM YYYY, H:mm'\n },\n calendar: {\n sameDay: function sameDay() {\n return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n },\n nextDay: function nextDay() {\n return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n },\n nextWeek: function nextWeek() {\n return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n },\n lastDay: function lastDay() {\n return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n },\n lastWeek: function lastWeek() {\n return '[el] dddd [passat a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: \"d'aquí %s\",\n past: 'fa %s',\n s: 'uns segons',\n ss: '%d segons',\n m: 'un minut',\n mm: '%d minuts',\n h: 'una hora',\n hh: '%d hores',\n d: 'un dia',\n dd: '%d dies',\n M: 'un mes',\n MM: '%d mesos',\n y: 'un any',\n yy: '%d anys'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(r|n|t|è|a)/,\n ordinal: function ordinal(number, period) {\n var output = number === 1 ? 'r' : number === 2 ? 'n' : number === 3 ? 'r' : number === 4 ? 't' : 'è';\n\n if (period === 'w' || period === 'W') {\n output = 'a';\n }\n\n return number + output;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return ca;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Czech [cs]\n//! author : petrbela : https://github.com/petrbela\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var months = {\n format: 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),\n standalone: 'ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince'.split('_')\n },\n monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),\n monthsParse = [/^led/i, /^úno/i, /^bře/i, /^dub/i, /^kvě/i, /^(čvn|červen$|června)/i, /^(čvc|červenec|července)/i, /^srp/i, /^zář/i, /^říj/i, /^lis/i, /^pro/i],\n // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.\n // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.\n monthsRegex = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;\n\n function plural(n) {\n return n > 1 && n < 5 && ~~(n / 10) !== 1;\n }\n\n function translate(number, withoutSuffix, key, isFuture) {\n var result = number + ' ';\n\n switch (key) {\n case 's':\n // a few seconds / in a few seconds / a few seconds ago\n return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';\n\n case 'ss':\n // 9 seconds / in 9 seconds / 9 seconds ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'sekundy' : 'sekund');\n } else {\n return result + 'sekundami';\n }\n\n case 'm':\n // a minute / in a minute / a minute ago\n return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';\n\n case 'mm':\n // 9 minutes / in 9 minutes / 9 minutes ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'minuty' : 'minut');\n } else {\n return result + 'minutami';\n }\n\n case 'h':\n // an hour / in an hour / an hour ago\n return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';\n\n case 'hh':\n // 9 hours / in 9 hours / 9 hours ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'hodiny' : 'hodin');\n } else {\n return result + 'hodinami';\n }\n\n case 'd':\n // a day / in a day / a day ago\n return withoutSuffix || isFuture ? 'den' : 'dnem';\n\n case 'dd':\n // 9 days / in 9 days / 9 days ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'dny' : 'dní');\n } else {\n return result + 'dny';\n }\n\n case 'M':\n // a month / in a month / a month ago\n return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';\n\n case 'MM':\n // 9 months / in 9 months / 9 months ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'měsíce' : 'měsíců');\n } else {\n return result + 'měsíci';\n }\n\n case 'y':\n // a year / in a year / a year ago\n return withoutSuffix || isFuture ? 'rok' : 'rokem';\n\n case 'yy':\n // 9 years / in 9 years / 9 years ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'roky' : 'let');\n } else {\n return result + 'lety';\n }\n\n }\n }\n\n var cs = moment.defineLocale('cs', {\n months: months,\n monthsShort: monthsShort,\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.\n // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.\n monthsStrictRegex: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,\n monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),\n weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),\n weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd D. MMMM YYYY H:mm',\n l: 'D. M. YYYY'\n },\n calendar: {\n sameDay: '[dnes v] LT',\n nextDay: '[zítra v] LT',\n nextWeek: function nextWeek() {\n switch (this.day()) {\n case 0:\n return '[v neděli v] LT';\n\n case 1:\n case 2:\n return '[v] dddd [v] LT';\n\n case 3:\n return '[ve středu v] LT';\n\n case 4:\n return '[ve čtvrtek v] LT';\n\n case 5:\n return '[v pátek v] LT';\n\n case 6:\n return '[v sobotu v] LT';\n }\n },\n lastDay: '[včera v] LT',\n lastWeek: function lastWeek() {\n switch (this.day()) {\n case 0:\n return '[minulou neděli v] LT';\n\n case 1:\n case 2:\n return '[minulé] dddd [v] LT';\n\n case 3:\n return '[minulou středu v] LT';\n\n case 4:\n case 5:\n return '[minulý] dddd [v] LT';\n\n case 6:\n return '[minulou sobotu v] LT';\n }\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'za %s',\n past: 'před %s',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return cs;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Chuvash [cv]\n//! author : Anatoly Mironov : https://github.com/mirontoli\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var cv = moment.defineLocale('cv', {\n months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),\n monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),\n weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),\n weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),\n weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD-MM-YYYY',\n LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',\n LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',\n LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'\n },\n calendar: {\n sameDay: '[Паян] LT [сехетре]',\n nextDay: '[Ыран] LT [сехетре]',\n lastDay: '[Ӗнер] LT [сехетре]',\n nextWeek: '[Ҫитес] dddd LT [сехетре]',\n lastWeek: '[Иртнӗ] dddd LT [сехетре]',\n sameElse: 'L'\n },\n relativeTime: {\n future: function future(output) {\n var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран';\n return output + affix;\n },\n past: '%s каялла',\n s: 'пӗр-ик ҫеккунт',\n ss: '%d ҫеккунт',\n m: 'пӗр минут',\n mm: '%d минут',\n h: 'пӗр сехет',\n hh: '%d сехет',\n d: 'пӗр кун',\n dd: '%d кун',\n M: 'пӗр уйӑх',\n MM: '%d уйӑх',\n y: 'пӗр ҫул',\n yy: '%d ҫул'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-мӗш/,\n ordinal: '%d-мӗш',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n\n }\n });\n return cv;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Welsh [cy]\n//! author : Robert Allen : https://github.com/robgallen\n//! author : https://github.com/ryangreaves\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var cy = moment.defineLocale('cy', {\n months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),\n monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),\n weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),\n weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),\n weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),\n weekdaysParseExact: true,\n // time formats are the same as en-gb\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Heddiw am] LT',\n nextDay: '[Yfory am] LT',\n nextWeek: 'dddd [am] LT',\n lastDay: '[Ddoe am] LT',\n lastWeek: 'dddd [diwethaf am] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'mewn %s',\n past: '%s yn ôl',\n s: 'ychydig eiliadau',\n ss: '%d eiliad',\n m: 'munud',\n mm: '%d munud',\n h: 'awr',\n hh: '%d awr',\n d: 'diwrnod',\n dd: '%d diwrnod',\n M: 'mis',\n MM: '%d mis',\n y: 'blwyddyn',\n yy: '%d flynedd'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,\n // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh\n ordinal: function ordinal(number) {\n var b = number,\n output = '',\n lookup = ['', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed\n 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed\n ];\n\n if (b > 20) {\n if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {\n output = 'fed'; // not 30ain, 70ain or 90ain\n } else {\n output = 'ain';\n }\n } else if (b > 0) {\n output = lookup[b];\n }\n\n return number + output;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return cy;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Danish [da]\n//! author : Ulrik Nielsen : https://github.com/mrbase\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var da = moment.defineLocale('da', {\n months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),\n monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),\n weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),\n weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'),\n weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY HH:mm',\n LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm'\n },\n calendar: {\n sameDay: '[i dag kl.] LT',\n nextDay: '[i morgen kl.] LT',\n nextWeek: 'på dddd [kl.] LT',\n lastDay: '[i går kl.] LT',\n lastWeek: '[i] dddd[s kl.] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'om %s',\n past: '%s siden',\n s: 'få sekunder',\n ss: '%d sekunder',\n m: 'et minut',\n mm: '%d minutter',\n h: 'en time',\n hh: '%d timer',\n d: 'en dag',\n dd: '%d dage',\n M: 'en måned',\n MM: '%d måneder',\n y: 'et år',\n yy: '%d år'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return da;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : German [de]\n//! author : lluchs : https://github.com/lluchs\n//! author: Menelion Elensúle: https://github.com/Oire\n//! author : Mikolaj Dadela : https://github.com/mik01aj\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n m: ['eine Minute', 'einer Minute'],\n h: ['eine Stunde', 'einer Stunde'],\n d: ['ein Tag', 'einem Tag'],\n dd: [number + ' Tage', number + ' Tagen'],\n w: ['eine Woche', 'einer Woche'],\n M: ['ein Monat', 'einem Monat'],\n MM: [number + ' Monate', number + ' Monaten'],\n y: ['ein Jahr', 'einem Jahr'],\n yy: [number + ' Jahre', number + ' Jahren']\n };\n return withoutSuffix ? format[key][0] : format[key][1];\n }\n\n var de = moment.defineLocale('de', {\n months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),\n monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),\n monthsParseExact: true,\n weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),\n weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),\n weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY HH:mm',\n LLLL: 'dddd, D. MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[heute um] LT [Uhr]',\n sameElse: 'L',\n nextDay: '[morgen um] LT [Uhr]',\n nextWeek: 'dddd [um] LT [Uhr]',\n lastDay: '[gestern um] LT [Uhr]',\n lastWeek: '[letzten] dddd [um] LT [Uhr]'\n },\n relativeTime: {\n future: 'in %s',\n past: 'vor %s',\n s: 'ein paar Sekunden',\n ss: '%d Sekunden',\n m: processRelativeTime,\n mm: '%d Minuten',\n h: processRelativeTime,\n hh: '%d Stunden',\n d: processRelativeTime,\n dd: processRelativeTime,\n w: processRelativeTime,\n ww: '%d Wochen',\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return de;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : German (Austria) [de-at]\n//! author : lluchs : https://github.com/lluchs\n//! author: Menelion Elensúle: https://github.com/Oire\n//! author : Martin Groller : https://github.com/MadMG\n//! author : Mikolaj Dadela : https://github.com/mik01aj\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n m: ['eine Minute', 'einer Minute'],\n h: ['eine Stunde', 'einer Stunde'],\n d: ['ein Tag', 'einem Tag'],\n dd: [number + ' Tage', number + ' Tagen'],\n w: ['eine Woche', 'einer Woche'],\n M: ['ein Monat', 'einem Monat'],\n MM: [number + ' Monate', number + ' Monaten'],\n y: ['ein Jahr', 'einem Jahr'],\n yy: [number + ' Jahre', number + ' Jahren']\n };\n return withoutSuffix ? format[key][0] : format[key][1];\n }\n\n var deAt = moment.defineLocale('de-at', {\n months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),\n monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),\n monthsParseExact: true,\n weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),\n weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),\n weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY HH:mm',\n LLLL: 'dddd, D. MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[heute um] LT [Uhr]',\n sameElse: 'L',\n nextDay: '[morgen um] LT [Uhr]',\n nextWeek: 'dddd [um] LT [Uhr]',\n lastDay: '[gestern um] LT [Uhr]',\n lastWeek: '[letzten] dddd [um] LT [Uhr]'\n },\n relativeTime: {\n future: 'in %s',\n past: 'vor %s',\n s: 'ein paar Sekunden',\n ss: '%d Sekunden',\n m: processRelativeTime,\n mm: '%d Minuten',\n h: processRelativeTime,\n hh: '%d Stunden',\n d: processRelativeTime,\n dd: processRelativeTime,\n w: processRelativeTime,\n ww: '%d Wochen',\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return deAt;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : German (Switzerland) [de-ch]\n//! author : sschueller : https://github.com/sschueller\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n m: ['eine Minute', 'einer Minute'],\n h: ['eine Stunde', 'einer Stunde'],\n d: ['ein Tag', 'einem Tag'],\n dd: [number + ' Tage', number + ' Tagen'],\n w: ['eine Woche', 'einer Woche'],\n M: ['ein Monat', 'einem Monat'],\n MM: [number + ' Monate', number + ' Monaten'],\n y: ['ein Jahr', 'einem Jahr'],\n yy: [number + ' Jahre', number + ' Jahren']\n };\n return withoutSuffix ? format[key][0] : format[key][1];\n }\n\n var deCh = moment.defineLocale('de-ch', {\n months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),\n monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),\n monthsParseExact: true,\n weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),\n weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY HH:mm',\n LLLL: 'dddd, D. MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[heute um] LT [Uhr]',\n sameElse: 'L',\n nextDay: '[morgen um] LT [Uhr]',\n nextWeek: 'dddd [um] LT [Uhr]',\n lastDay: '[gestern um] LT [Uhr]',\n lastWeek: '[letzten] dddd [um] LT [Uhr]'\n },\n relativeTime: {\n future: 'in %s',\n past: 'vor %s',\n s: 'ein paar Sekunden',\n ss: '%d Sekunden',\n m: processRelativeTime,\n mm: '%d Minuten',\n h: processRelativeTime,\n hh: '%d Stunden',\n d: processRelativeTime,\n dd: processRelativeTime,\n w: processRelativeTime,\n ww: '%d Wochen',\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return deCh;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Maldivian [dv]\n//! author : Jawish Hameed : https://github.com/jawish\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var months = ['ޖެނުއަރީ', 'ފެބްރުއަރީ', 'މާރިޗު', 'އޭޕްރީލު', 'މޭ', 'ޖޫން', 'ޖުލައި', 'އޯގަސްޓު', 'ސެޕްޓެމްބަރު', 'އޮކްޓޯބަރު', 'ނޮވެމްބަރު', 'ޑިސެމްބަރު'],\n weekdays = ['އާދިއްތަ', 'ހޯމަ', 'އަންގާރަ', 'ބުދަ', 'ބުރާސްފަތި', 'ހުކުރު', 'ހޮނިހިރު'];\n var dv = moment.defineLocale('dv', {\n months: months,\n monthsShort: months,\n weekdays: weekdays,\n weekdaysShort: weekdays,\n weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'D/M/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n meridiemParse: /މކ|މފ/,\n isPM: function isPM(input) {\n return 'މފ' === input;\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 12) {\n return 'މކ';\n } else {\n return 'މފ';\n }\n },\n calendar: {\n sameDay: '[މިއަދު] LT',\n nextDay: '[މާދަމާ] LT',\n nextWeek: 'dddd LT',\n lastDay: '[އިއްޔެ] LT',\n lastWeek: '[ފާއިތުވި] dddd LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'ތެރޭގައި %s',\n past: 'ކުރިން %s',\n s: 'ސިކުންތުކޮޅެއް',\n ss: 'd% ސިކުންތު',\n m: 'މިނިޓެއް',\n mm: 'މިނިޓު %d',\n h: 'ގަޑިއިރެއް',\n hh: 'ގަޑިއިރު %d',\n d: 'ދުވަހެއް',\n dd: 'ދުވަސް %d',\n M: 'މަހެއް',\n MM: 'މަސް %d',\n y: 'އަހަރެއް',\n yy: 'އަހަރު %d'\n },\n preparse: function preparse(string) {\n return string.replace(/،/g, ',');\n },\n postformat: function postformat(string) {\n return string.replace(/,/g, '،');\n },\n week: {\n dow: 7,\n // Sunday is the first day of the week.\n doy: 12 // The week that contains Jan 12th is the first week of the year.\n\n }\n });\n return dv;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Greek [el]\n//! author : Aggelos Karalias : https://github.com/mehiel\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n function isFunction(input) {\n return typeof Function !== 'undefined' && input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';\n }\n\n var el = moment.defineLocale('el', {\n monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),\n monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),\n months: function months(momentToFormat, format) {\n if (!momentToFormat) {\n return this._monthsNominativeEl;\n } else if (typeof format === 'string' && /D/.test(format.substring(0, format.indexOf('MMMM')))) {\n // if there is a day number before 'MMMM'\n return this._monthsGenitiveEl[momentToFormat.month()];\n } else {\n return this._monthsNominativeEl[momentToFormat.month()];\n }\n },\n monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),\n weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),\n weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),\n weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),\n meridiem: function meridiem(hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? 'μμ' : 'ΜΜ';\n } else {\n return isLower ? 'πμ' : 'ΠΜ';\n }\n },\n isPM: function isPM(input) {\n return (input + '').toLowerCase()[0] === 'μ';\n },\n meridiemParse: /[ΠΜ]\\.?Μ?\\.?/i,\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A'\n },\n calendarEl: {\n sameDay: '[Σήμερα {}] LT',\n nextDay: '[Αύριο {}] LT',\n nextWeek: 'dddd [{}] LT',\n lastDay: '[Χθες {}] LT',\n lastWeek: function lastWeek() {\n switch (this.day()) {\n case 6:\n return '[το προηγούμενο] dddd [{}] LT';\n\n default:\n return '[την προηγούμενη] dddd [{}] LT';\n }\n },\n sameElse: 'L'\n },\n calendar: function calendar(key, mom) {\n var output = this._calendarEl[key],\n hours = mom && mom.hours();\n\n if (isFunction(output)) {\n output = output.apply(mom);\n }\n\n return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις');\n },\n relativeTime: {\n future: 'σε %s',\n past: '%s πριν',\n s: 'λίγα δευτερόλεπτα',\n ss: '%d δευτερόλεπτα',\n m: 'ένα λεπτό',\n mm: '%d λεπτά',\n h: 'μία ώρα',\n hh: '%d ώρες',\n d: 'μία μέρα',\n dd: '%d μέρες',\n M: 'ένας μήνας',\n MM: '%d μήνες',\n y: 'ένας χρόνος',\n yy: '%d χρόνια'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}η/,\n ordinal: '%dη',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4st is the first week of the year.\n\n }\n });\n return el;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : English (Australia) [en-au]\n//! author : Jared Morse : https://github.com/jarcoal\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var enAu = moment.defineLocale('en-au', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A'\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function ordinal(number) {\n var b = number % 10,\n output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';\n return number + output;\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return enAu;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : English (Canada) [en-ca]\n//! author : Jonathan Abourbih : https://github.com/jonbca\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var enCa = moment.defineLocale('en-ca', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'YYYY-MM-DD',\n LL: 'MMMM D, YYYY',\n LLL: 'MMMM D, YYYY h:mm A',\n LLLL: 'dddd, MMMM D, YYYY h:mm A'\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function ordinal(number) {\n var b = number % 10,\n output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';\n return number + output;\n }\n });\n return enCa;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : English (United Kingdom) [en-gb]\n//! author : Chris Gedrim : https://github.com/chrisgedrim\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var enGb = moment.defineLocale('en-gb', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function ordinal(number) {\n var b = number % 10,\n output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';\n return number + output;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return enGb;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : English (Ireland) [en-ie]\n//! author : Chris Cartlidge : https://github.com/chriscartlidge\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var enIe = moment.defineLocale('en-ie', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function ordinal(number) {\n var b = number % 10,\n output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';\n return number + output;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return enIe;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : English (Israel) [en-il]\n//! author : Chris Gedrim : https://github.com/chrisgedrim\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var enIl = moment.defineLocale('en-il', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function ordinal(number) {\n var b = number % 10,\n output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';\n return number + output;\n }\n });\n return enIl;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : English (India) [en-in]\n//! author : Jatin Agrawal : https://github.com/jatinag22\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var enIn = moment.defineLocale('en-in', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A'\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function ordinal(number) {\n var b = number % 10,\n output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';\n return number + output;\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 1st is the first week of the year.\n\n }\n });\n return enIn;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : English (New Zealand) [en-nz]\n//! author : Luke McGregor : https://github.com/lukemcgregor\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var enNz = moment.defineLocale('en-nz', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A'\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function ordinal(number) {\n var b = number % 10,\n output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';\n return number + output;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return enNz;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : English (Singapore) [en-sg]\n//! author : Matthew Castrillon-Madrigal : https://github.com/techdimension\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var enSg = moment.defineLocale('en-sg', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function ordinal(number) {\n var b = number % 10,\n output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';\n return number + output;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return enSg;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Esperanto [eo]\n//! author : Colin Dean : https://github.com/colindean\n//! author : Mia Nordentoft Imperatori : https://github.com/miestasmia\n//! comment : miestasmia corrected the translation by colindean\n//! comment : Vivakvo corrected the translation by colindean and miestasmia\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var eo = moment.defineLocale('eo', {\n months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),\n monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'),\n weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),\n weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),\n weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: '[la] D[-an de] MMMM, YYYY',\n LLL: '[la] D[-an de] MMMM, YYYY HH:mm',\n LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm',\n llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm'\n },\n meridiemParse: /[ap]\\.t\\.m/i,\n isPM: function isPM(input) {\n return input.charAt(0).toLowerCase() === 'p';\n },\n meridiem: function meridiem(hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? 'p.t.m.' : 'P.T.M.';\n } else {\n return isLower ? 'a.t.m.' : 'A.T.M.';\n }\n },\n calendar: {\n sameDay: '[Hodiaŭ je] LT',\n nextDay: '[Morgaŭ je] LT',\n nextWeek: 'dddd[n je] LT',\n lastDay: '[Hieraŭ je] LT',\n lastWeek: '[pasintan] dddd[n je] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'post %s',\n past: 'antaŭ %s',\n s: 'kelkaj sekundoj',\n ss: '%d sekundoj',\n m: 'unu minuto',\n mm: '%d minutoj',\n h: 'unu horo',\n hh: '%d horoj',\n d: 'unu tago',\n //ne 'diurno', ĉar estas uzita por proksimumo\n dd: '%d tagoj',\n M: 'unu monato',\n MM: '%d monatoj',\n y: 'unu jaro',\n yy: '%d jaroj'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}a/,\n ordinal: '%da',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n\n }\n });\n return eo;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Spanish [es]\n//! author : Julio Napurí : https://github.com/julionc\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),\n _monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),\n monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],\n monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;\n\n var es = moment.defineLocale('es', {\n months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),\n monthsShort: function monthsShort(m, format) {\n if (!m) {\n return monthsShortDot;\n } else if (/-MMM-/.test(format)) {\n return _monthsShort[m.month()];\n } else {\n return monthsShortDot[m.month()];\n }\n },\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,\n monthsShortStrictRegex: /^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),\n weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),\n weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY H:mm',\n LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'\n },\n calendar: {\n sameDay: function sameDay() {\n return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextDay: function nextDay() {\n return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextWeek: function nextWeek() {\n return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastDay: function lastDay() {\n return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastWeek: function lastWeek() {\n return '[el] dddd [pasado a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'en %s',\n past: 'hace %s',\n s: 'unos segundos',\n ss: '%d segundos',\n m: 'un minuto',\n mm: '%d minutos',\n h: 'una hora',\n hh: '%d horas',\n d: 'un día',\n dd: '%d días',\n w: 'una semana',\n ww: '%d semanas',\n M: 'un mes',\n MM: '%d meses',\n y: 'un año',\n yy: '%d años'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n },\n invalidDate: 'Fecha inválida'\n });\n return es;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Spanish (Dominican Republic) [es-do]\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),\n _monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),\n monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],\n monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;\n\n var esDo = moment.defineLocale('es-do', {\n months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),\n monthsShort: function monthsShort(m, format) {\n if (!m) {\n return monthsShortDot;\n } else if (/-MMM-/.test(format)) {\n return _monthsShort[m.month()];\n } else {\n return monthsShortDot[m.month()];\n }\n },\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,\n monthsShortStrictRegex: /^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),\n weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),\n weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY h:mm A',\n LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A'\n },\n calendar: {\n sameDay: function sameDay() {\n return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextDay: function nextDay() {\n return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextWeek: function nextWeek() {\n return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastDay: function lastDay() {\n return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastWeek: function lastWeek() {\n return '[el] dddd [pasado a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'en %s',\n past: 'hace %s',\n s: 'unos segundos',\n ss: '%d segundos',\n m: 'un minuto',\n mm: '%d minutos',\n h: 'una hora',\n hh: '%d horas',\n d: 'un día',\n dd: '%d días',\n w: 'una semana',\n ww: '%d semanas',\n M: 'un mes',\n MM: '%d meses',\n y: 'un año',\n yy: '%d años'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return esDo;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Spanish (Mexico) [es-mx]\n//! author : JC Franco : https://github.com/jcfranco\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),\n _monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),\n monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],\n monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;\n\n var esMx = moment.defineLocale('es-mx', {\n months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),\n monthsShort: function monthsShort(m, format) {\n if (!m) {\n return monthsShortDot;\n } else if (/-MMM-/.test(format)) {\n return _monthsShort[m.month()];\n } else {\n return monthsShortDot[m.month()];\n }\n },\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,\n monthsShortStrictRegex: /^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),\n weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),\n weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY H:mm',\n LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'\n },\n calendar: {\n sameDay: function sameDay() {\n return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextDay: function nextDay() {\n return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextWeek: function nextWeek() {\n return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastDay: function lastDay() {\n return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastWeek: function lastWeek() {\n return '[el] dddd [pasado a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'en %s',\n past: 'hace %s',\n s: 'unos segundos',\n ss: '%d segundos',\n m: 'un minuto',\n mm: '%d minutos',\n h: 'una hora',\n hh: '%d horas',\n d: 'un día',\n dd: '%d días',\n w: 'una semana',\n ww: '%d semanas',\n M: 'un mes',\n MM: '%d meses',\n y: 'un año',\n yy: '%d años'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n },\n invalidDate: 'Fecha inválida'\n });\n return esMx;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Spanish (United States) [es-us]\n//! author : bustta : https://github.com/bustta\n//! author : chrisrodz : https://github.com/chrisrodz\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),\n _monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),\n monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],\n monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;\n\n var esUs = moment.defineLocale('es-us', {\n months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),\n monthsShort: function monthsShort(m, format) {\n if (!m) {\n return monthsShortDot;\n } else if (/-MMM-/.test(format)) {\n return _monthsShort[m.month()];\n } else {\n return monthsShortDot[m.month()];\n }\n },\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,\n monthsShortStrictRegex: /^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),\n weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),\n weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'MM/DD/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY h:mm A',\n LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A'\n },\n calendar: {\n sameDay: function sameDay() {\n return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextDay: function nextDay() {\n return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextWeek: function nextWeek() {\n return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastDay: function lastDay() {\n return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastWeek: function lastWeek() {\n return '[el] dddd [pasado a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'en %s',\n past: 'hace %s',\n s: 'unos segundos',\n ss: '%d segundos',\n m: 'un minuto',\n mm: '%d minutos',\n h: 'una hora',\n hh: '%d horas',\n d: 'un día',\n dd: '%d días',\n w: 'una semana',\n ww: '%d semanas',\n M: 'un mes',\n MM: '%d meses',\n y: 'un año',\n yy: '%d años'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n\n }\n });\n return esUs;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Estonian [et]\n//! author : Henry Kehlmann : https://github.com/madhenry\n//! improvements : Illimar Tambek : https://github.com/ragulka\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],\n ss: [number + 'sekundi', number + 'sekundit'],\n m: ['ühe minuti', 'üks minut'],\n mm: [number + ' minuti', number + ' minutit'],\n h: ['ühe tunni', 'tund aega', 'üks tund'],\n hh: [number + ' tunni', number + ' tundi'],\n d: ['ühe päeva', 'üks päev'],\n M: ['kuu aja', 'kuu aega', 'üks kuu'],\n MM: [number + ' kuu', number + ' kuud'],\n y: ['ühe aasta', 'aasta', 'üks aasta'],\n yy: [number + ' aasta', number + ' aastat']\n };\n\n if (withoutSuffix) {\n return format[key][2] ? format[key][2] : format[key][1];\n }\n\n return isFuture ? format[key][0] : format[key][1];\n }\n\n var et = moment.defineLocale('et', {\n months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),\n monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),\n weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),\n weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),\n weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd, D. MMMM YYYY H:mm'\n },\n calendar: {\n sameDay: '[Täna,] LT',\n nextDay: '[Homme,] LT',\n nextWeek: '[Järgmine] dddd LT',\n lastDay: '[Eile,] LT',\n lastWeek: '[Eelmine] dddd LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s pärast',\n past: '%s tagasi',\n s: processRelativeTime,\n ss: processRelativeTime,\n m: processRelativeTime,\n mm: processRelativeTime,\n h: processRelativeTime,\n hh: processRelativeTime,\n d: processRelativeTime,\n dd: '%d päeva',\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return et;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Basque [eu]\n//! author : Eneko Illarramendi : https://github.com/eillarra\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var eu = moment.defineLocale('eu', {\n months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),\n monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),\n monthsParseExact: true,\n weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),\n weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),\n weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'YYYY[ko] MMMM[ren] D[a]',\n LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',\n LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',\n l: 'YYYY-M-D',\n ll: 'YYYY[ko] MMM D[a]',\n lll: 'YYYY[ko] MMM D[a] HH:mm',\n llll: 'ddd, YYYY[ko] MMM D[a] HH:mm'\n },\n calendar: {\n sameDay: '[gaur] LT[etan]',\n nextDay: '[bihar] LT[etan]',\n nextWeek: 'dddd LT[etan]',\n lastDay: '[atzo] LT[etan]',\n lastWeek: '[aurreko] dddd LT[etan]',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s barru',\n past: 'duela %s',\n s: 'segundo batzuk',\n ss: '%d segundo',\n m: 'minutu bat',\n mm: '%d minutu',\n h: 'ordu bat',\n hh: '%d ordu',\n d: 'egun bat',\n dd: '%d egun',\n M: 'hilabete bat',\n MM: '%d hilabete',\n y: 'urte bat',\n yy: '%d urte'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n\n }\n });\n return eu;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Persian [fa]\n//! author : Ebrahim Byagowi : https://github.com/ebraminio\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var symbolMap = {\n 1: '۱',\n 2: '۲',\n 3: '۳',\n 4: '۴',\n 5: '۵',\n 6: '۶',\n 7: '۷',\n 8: '۸',\n 9: '۹',\n 0: '۰'\n },\n numberMap = {\n '۱': '1',\n '۲': '2',\n '۳': '3',\n '۴': '4',\n '۵': '5',\n '۶': '6',\n '۷': '7',\n '۸': '8',\n '۹': '9',\n '۰': '0'\n };\n var fa = moment.defineLocale('fa', {\n months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),\n monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),\n weekdays: \"\\u06CC\\u06A9\\u200C\\u0634\\u0646\\u0628\\u0647_\\u062F\\u0648\\u0634\\u0646\\u0628\\u0647_\\u0633\\u0647\\u200C\\u0634\\u0646\\u0628\\u0647_\\u0686\\u0647\\u0627\\u0631\\u0634\\u0646\\u0628\\u0647_\\u067E\\u0646\\u062C\\u200C\\u0634\\u0646\\u0628\\u0647_\\u062C\\u0645\\u0639\\u0647_\\u0634\\u0646\\u0628\\u0647\".split('_'),\n weekdaysShort: \"\\u06CC\\u06A9\\u200C\\u0634\\u0646\\u0628\\u0647_\\u062F\\u0648\\u0634\\u0646\\u0628\\u0647_\\u0633\\u0647\\u200C\\u0634\\u0646\\u0628\\u0647_\\u0686\\u0647\\u0627\\u0631\\u0634\\u0646\\u0628\\u0647_\\u067E\\u0646\\u062C\\u200C\\u0634\\u0646\\u0628\\u0647_\\u062C\\u0645\\u0639\\u0647_\\u0634\\u0646\\u0628\\u0647\".split('_'),\n weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n meridiemParse: /قبل از ظهر|بعد از ظهر/,\n isPM: function isPM(input) {\n return /بعد از ظهر/.test(input);\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 12) {\n return 'قبل از ظهر';\n } else {\n return 'بعد از ظهر';\n }\n },\n calendar: {\n sameDay: '[امروز ساعت] LT',\n nextDay: '[فردا ساعت] LT',\n nextWeek: 'dddd [ساعت] LT',\n lastDay: '[دیروز ساعت] LT',\n lastWeek: 'dddd [پیش] [ساعت] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'در %s',\n past: '%s پیش',\n s: 'چند ثانیه',\n ss: '%d ثانیه',\n m: 'یک دقیقه',\n mm: '%d دقیقه',\n h: 'یک ساعت',\n hh: '%d ساعت',\n d: 'یک روز',\n dd: '%d روز',\n M: 'یک ماه',\n MM: '%d ماه',\n y: 'یک سال',\n yy: '%d سال'\n },\n preparse: function preparse(string) {\n return string.replace(/[۰-۹]/g, function (match) {\n return numberMap[match];\n }).replace(/،/g, ',');\n },\n postformat: function postformat(string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n }).replace(/,/g, '،');\n },\n dayOfMonthOrdinalParse: /\\d{1,2}م/,\n ordinal: '%dم',\n week: {\n dow: 6,\n // Saturday is the first day of the week.\n doy: 12 // The week that contains Jan 12th is the first week of the year.\n\n }\n });\n return fa;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Finnish [fi]\n//! author : Tarmo Aidantausta : https://github.com/bleadof\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '),\n numbersFuture = ['nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden', numbersPast[7], numbersPast[8], numbersPast[9]];\n\n function translate(number, withoutSuffix, key, isFuture) {\n var result = '';\n\n switch (key) {\n case 's':\n return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';\n\n case 'ss':\n result = isFuture ? 'sekunnin' : 'sekuntia';\n break;\n\n case 'm':\n return isFuture ? 'minuutin' : 'minuutti';\n\n case 'mm':\n result = isFuture ? 'minuutin' : 'minuuttia';\n break;\n\n case 'h':\n return isFuture ? 'tunnin' : 'tunti';\n\n case 'hh':\n result = isFuture ? 'tunnin' : 'tuntia';\n break;\n\n case 'd':\n return isFuture ? 'päivän' : 'päivä';\n\n case 'dd':\n result = isFuture ? 'päivän' : 'päivää';\n break;\n\n case 'M':\n return isFuture ? 'kuukauden' : 'kuukausi';\n\n case 'MM':\n result = isFuture ? 'kuukauden' : 'kuukautta';\n break;\n\n case 'y':\n return isFuture ? 'vuoden' : 'vuosi';\n\n case 'yy':\n result = isFuture ? 'vuoden' : 'vuotta';\n break;\n }\n\n result = verbalNumber(number, isFuture) + ' ' + result;\n return result;\n }\n\n function verbalNumber(number, isFuture) {\n return number < 10 ? isFuture ? numbersFuture[number] : numbersPast[number] : number;\n }\n\n var fi = moment.defineLocale('fi', {\n months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),\n monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),\n weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),\n weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),\n weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD.MM.YYYY',\n LL: 'Do MMMM[ta] YYYY',\n LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',\n LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',\n l: 'D.M.YYYY',\n ll: 'Do MMM YYYY',\n lll: 'Do MMM YYYY, [klo] HH.mm',\n llll: 'ddd, Do MMM YYYY, [klo] HH.mm'\n },\n calendar: {\n sameDay: '[tänään] [klo] LT',\n nextDay: '[huomenna] [klo] LT',\n nextWeek: 'dddd [klo] LT',\n lastDay: '[eilen] [klo] LT',\n lastWeek: '[viime] dddd[na] [klo] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s päästä',\n past: '%s sitten',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return fi;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Filipino [fil]\n//! author : Dan Hagman : https://github.com/hagmandan\n//! author : Matthew Co : https://github.com/matthewdeeco\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var fil = moment.defineLocale('fil', {\n months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),\n monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),\n weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),\n weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),\n weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'MM/D/YYYY',\n LL: 'MMMM D, YYYY',\n LLL: 'MMMM D, YYYY HH:mm',\n LLLL: 'dddd, MMMM DD, YYYY HH:mm'\n },\n calendar: {\n sameDay: 'LT [ngayong araw]',\n nextDay: '[Bukas ng] LT',\n nextWeek: 'LT [sa susunod na] dddd',\n lastDay: 'LT [kahapon]',\n lastWeek: 'LT [noong nakaraang] dddd',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'sa loob ng %s',\n past: '%s ang nakalipas',\n s: 'ilang segundo',\n ss: '%d segundo',\n m: 'isang minuto',\n mm: '%d minuto',\n h: 'isang oras',\n hh: '%d oras',\n d: 'isang araw',\n dd: '%d araw',\n M: 'isang buwan',\n MM: '%d buwan',\n y: 'isang taon',\n yy: '%d taon'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}/,\n ordinal: function ordinal(number) {\n return number;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return fil;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Faroese [fo]\n//! author : Ragnar Johannesen : https://github.com/ragnar123\n//! author : Kristian Sakarisson : https://github.com/sakarisson\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var fo = moment.defineLocale('fo', {\n months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),\n monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),\n weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),\n weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),\n weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D. MMMM, YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Í dag kl.] LT',\n nextDay: '[Í morgin kl.] LT',\n nextWeek: 'dddd [kl.] LT',\n lastDay: '[Í gjár kl.] LT',\n lastWeek: '[síðstu] dddd [kl] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'um %s',\n past: '%s síðani',\n s: 'fá sekund',\n ss: '%d sekundir',\n m: 'ein minuttur',\n mm: '%d minuttir',\n h: 'ein tími',\n hh: '%d tímar',\n d: 'ein dagur',\n dd: '%d dagar',\n M: 'ein mánaður',\n MM: '%d mánaðir',\n y: 'eitt ár',\n yy: '%d ár'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return fo;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : French [fr]\n//! author : John Fischer : https://github.com/jfroffice\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var monthsStrictRegex = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,\n monthsShortStrictRegex = /(janv\\.?|févr\\.?|mars|avr\\.?|mai|juin|juil\\.?|août|sept\\.?|oct\\.?|nov\\.?|déc\\.?)/i,\n monthsRegex = /(janv\\.?|févr\\.?|mars|avr\\.?|mai|juin|juil\\.?|août|sept\\.?|oct\\.?|nov\\.?|déc\\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,\n monthsParse = [/^janv/i, /^févr/i, /^mars/i, /^avr/i, /^mai/i, /^juin/i, /^juil/i, /^août/i, /^sept/i, /^oct/i, /^nov/i, /^déc/i];\n var fr = moment.defineLocale('fr', {\n months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),\n monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: monthsStrictRegex,\n monthsShortStrictRegex: monthsShortStrictRegex,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),\n weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),\n weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Aujourd’hui à] LT',\n nextDay: '[Demain à] LT',\n nextWeek: 'dddd [à] LT',\n lastDay: '[Hier à] LT',\n lastWeek: 'dddd [dernier à] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'dans %s',\n past: 'il y a %s',\n s: 'quelques secondes',\n ss: '%d secondes',\n m: 'une minute',\n mm: '%d minutes',\n h: 'une heure',\n hh: '%d heures',\n d: 'un jour',\n dd: '%d jours',\n w: 'une semaine',\n ww: '%d semaines',\n M: 'un mois',\n MM: '%d mois',\n y: 'un an',\n yy: '%d ans'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(er|)/,\n ordinal: function ordinal(number, period) {\n switch (period) {\n // TODO: Return 'e' when day of month > 1. Move this case inside\n // block for masculine words below.\n // See https://github.com/moment/moment/issues/3375\n case 'D':\n return number + (number === 1 ? 'er' : '');\n // Words with masculine grammatical gender: mois, trimestre, jour\n\n default:\n case 'M':\n case 'Q':\n case 'DDD':\n case 'd':\n return number + (number === 1 ? 'er' : 'e');\n // Words with feminine grammatical gender: semaine\n\n case 'w':\n case 'W':\n return number + (number === 1 ? 're' : 'e');\n }\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return fr;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : French (Canada) [fr-ca]\n//! author : Jonathan Abourbih : https://github.com/jonbca\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var frCa = moment.defineLocale('fr-ca', {\n months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),\n monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),\n monthsParseExact: true,\n weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),\n weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),\n weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Aujourd’hui à] LT',\n nextDay: '[Demain à] LT',\n nextWeek: 'dddd [à] LT',\n lastDay: '[Hier à] LT',\n lastWeek: 'dddd [dernier à] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'dans %s',\n past: 'il y a %s',\n s: 'quelques secondes',\n ss: '%d secondes',\n m: 'une minute',\n mm: '%d minutes',\n h: 'une heure',\n hh: '%d heures',\n d: 'un jour',\n dd: '%d jours',\n M: 'un mois',\n MM: '%d mois',\n y: 'un an',\n yy: '%d ans'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(er|e)/,\n ordinal: function ordinal(number, period) {\n switch (period) {\n // Words with masculine grammatical gender: mois, trimestre, jour\n default:\n case 'M':\n case 'Q':\n case 'D':\n case 'DDD':\n case 'd':\n return number + (number === 1 ? 'er' : 'e');\n // Words with feminine grammatical gender: semaine\n\n case 'w':\n case 'W':\n return number + (number === 1 ? 're' : 'e');\n }\n }\n });\n return frCa;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : French (Switzerland) [fr-ch]\n//! author : Gaspard Bucher : https://github.com/gaspard\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var frCh = moment.defineLocale('fr-ch', {\n months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),\n monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),\n monthsParseExact: true,\n weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),\n weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),\n weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Aujourd’hui à] LT',\n nextDay: '[Demain à] LT',\n nextWeek: 'dddd [à] LT',\n lastDay: '[Hier à] LT',\n lastWeek: 'dddd [dernier à] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'dans %s',\n past: 'il y a %s',\n s: 'quelques secondes',\n ss: '%d secondes',\n m: 'une minute',\n mm: '%d minutes',\n h: 'une heure',\n hh: '%d heures',\n d: 'un jour',\n dd: '%d jours',\n M: 'un mois',\n MM: '%d mois',\n y: 'un an',\n yy: '%d ans'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(er|e)/,\n ordinal: function ordinal(number, period) {\n switch (period) {\n // Words with masculine grammatical gender: mois, trimestre, jour\n default:\n case 'M':\n case 'Q':\n case 'D':\n case 'DDD':\n case 'd':\n return number + (number === 1 ? 'er' : 'e');\n // Words with feminine grammatical gender: semaine\n\n case 'w':\n case 'W':\n return number + (number === 1 ? 're' : 'e');\n }\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return frCh;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Frisian [fy]\n//! author : Robin van der Vliet : https://github.com/robin0van0der0v\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),\n monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');\n var fy = moment.defineLocale('fy', {\n months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),\n monthsShort: function monthsShort(m, format) {\n if (!m) {\n return monthsShortWithDots;\n } else if (/-MMM-/.test(format)) {\n return monthsShortWithoutDots[m.month()];\n } else {\n return monthsShortWithDots[m.month()];\n }\n },\n monthsParseExact: true,\n weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),\n weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),\n weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD-MM-YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[hjoed om] LT',\n nextDay: '[moarn om] LT',\n nextWeek: 'dddd [om] LT',\n lastDay: '[juster om] LT',\n lastWeek: '[ôfrûne] dddd [om] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'oer %s',\n past: '%s lyn',\n s: 'in pear sekonden',\n ss: '%d sekonden',\n m: 'ien minút',\n mm: '%d minuten',\n h: 'ien oere',\n hh: '%d oeren',\n d: 'ien dei',\n dd: '%d dagen',\n M: 'ien moanne',\n MM: '%d moannen',\n y: 'ien jier',\n yy: '%d jierren'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(ste|de)/,\n ordinal: function ordinal(number) {\n return number + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de');\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return fy;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Irish or Irish Gaelic [ga]\n//! author : André Silva : https://github.com/askpt\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var months = ['Eanáir', 'Feabhra', 'Márta', 'Aibreán', 'Bealtaine', 'Meitheamh', 'Iúil', 'Lúnasa', 'Meán Fómhair', 'Deireadh Fómhair', 'Samhain', 'Nollaig'],\n monthsShort = ['Ean', 'Feabh', 'Márt', 'Aib', 'Beal', 'Meith', 'Iúil', 'Lún', 'M.F.', 'D.F.', 'Samh', 'Noll'],\n weekdays = ['Dé Domhnaigh', 'Dé Luain', 'Dé Máirt', 'Dé Céadaoin', 'Déardaoin', 'Dé hAoine', 'Dé Sathairn'],\n weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],\n weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];\n var ga = moment.defineLocale('ga', {\n months: months,\n monthsShort: monthsShort,\n monthsParseExact: true,\n weekdays: weekdays,\n weekdaysShort: weekdaysShort,\n weekdaysMin: weekdaysMin,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Inniu ag] LT',\n nextDay: '[Amárach ag] LT',\n nextWeek: 'dddd [ag] LT',\n lastDay: '[Inné ag] LT',\n lastWeek: 'dddd [seo caite] [ag] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'i %s',\n past: '%s ó shin',\n s: 'cúpla soicind',\n ss: '%d soicind',\n m: 'nóiméad',\n mm: '%d nóiméad',\n h: 'uair an chloig',\n hh: '%d uair an chloig',\n d: 'lá',\n dd: '%d lá',\n M: 'mí',\n MM: '%d míonna',\n y: 'bliain',\n yy: '%d bliain'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(d|na|mh)/,\n ordinal: function ordinal(number) {\n var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';\n return number + output;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return ga;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Scottish Gaelic [gd]\n//! author : Jon Ashdown : https://github.com/jonashdown\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var months = ['Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd'],\n monthsShort = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'],\n weekdays = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'],\n weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],\n weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];\n var gd = moment.defineLocale('gd', {\n months: months,\n monthsShort: monthsShort,\n monthsParseExact: true,\n weekdays: weekdays,\n weekdaysShort: weekdaysShort,\n weekdaysMin: weekdaysMin,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[An-diugh aig] LT',\n nextDay: '[A-màireach aig] LT',\n nextWeek: 'dddd [aig] LT',\n lastDay: '[An-dè aig] LT',\n lastWeek: 'dddd [seo chaidh] [aig] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'ann an %s',\n past: 'bho chionn %s',\n s: 'beagan diogan',\n ss: '%d diogan',\n m: 'mionaid',\n mm: '%d mionaidean',\n h: 'uair',\n hh: '%d uairean',\n d: 'latha',\n dd: '%d latha',\n M: 'mìos',\n MM: '%d mìosan',\n y: 'bliadhna',\n yy: '%d bliadhna'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(d|na|mh)/,\n ordinal: function ordinal(number) {\n var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';\n return number + output;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return gd;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Galician [gl]\n//! author : Juan G. Hurtado : https://github.com/juanghurtado\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var gl = moment.defineLocale('gl', {\n months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'),\n monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),\n monthsParseExact: true,\n weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),\n weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),\n weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY H:mm',\n LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'\n },\n calendar: {\n sameDay: function sameDay() {\n return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';\n },\n nextDay: function nextDay() {\n return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';\n },\n nextWeek: function nextWeek() {\n return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';\n },\n lastDay: function lastDay() {\n return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT';\n },\n lastWeek: function lastWeek() {\n return '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: function future(str) {\n if (str.indexOf('un') === 0) {\n return 'n' + str;\n }\n\n return 'en ' + str;\n },\n past: 'hai %s',\n s: 'uns segundos',\n ss: '%d segundos',\n m: 'un minuto',\n mm: '%d minutos',\n h: 'unha hora',\n hh: '%d horas',\n d: 'un día',\n dd: '%d días',\n M: 'un mes',\n MM: '%d meses',\n y: 'un ano',\n yy: '%d anos'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return gl;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Konkani Devanagari script [gom-deva]\n//! author : The Discoverer : https://github.com/WikiDiscoverer\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'],\n ss: [number + ' सॅकंडांनी', number + ' सॅकंड'],\n m: ['एका मिणटान', 'एक मिनूट'],\n mm: [number + ' मिणटांनी', number + ' मिणटां'],\n h: ['एका वरान', 'एक वर'],\n hh: [number + ' वरांनी', number + ' वरां'],\n d: ['एका दिसान', 'एक दीस'],\n dd: [number + ' दिसांनी', number + ' दीस'],\n M: ['एका म्हयन्यान', 'एक म्हयनो'],\n MM: [number + ' म्हयन्यानी', number + ' म्हयने'],\n y: ['एका वर्सान', 'एक वर्स'],\n yy: [number + ' वर्सांनी', number + ' वर्सां']\n };\n return isFuture ? format[key][0] : format[key][1];\n }\n\n var gomDeva = moment.defineLocale('gom-deva', {\n months: {\n standalone: 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),\n format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split('_'),\n isFormat: /MMMM(\\s)+D[oD]?/\n },\n monthsShort: 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),\n monthsParseExact: true,\n weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'),\n weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'),\n weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'A h:mm [वाजतां]',\n LTS: 'A h:mm:ss [वाजतां]',\n L: 'DD-MM-YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY A h:mm [वाजतां]',\n LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]',\n llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]'\n },\n calendar: {\n sameDay: '[आयज] LT',\n nextDay: '[फाल्यां] LT',\n nextWeek: '[फुडलो] dddd[,] LT',\n lastDay: '[काल] LT',\n lastWeek: '[फाटलो] dddd[,] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s',\n past: '%s आदीं',\n s: processRelativeTime,\n ss: processRelativeTime,\n m: processRelativeTime,\n mm: processRelativeTime,\n h: processRelativeTime,\n hh: processRelativeTime,\n d: processRelativeTime,\n dd: processRelativeTime,\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(वेर)/,\n ordinal: function ordinal(number, period) {\n switch (period) {\n // the ordinal 'वेर' only applies to day of the month\n case 'D':\n return number + 'वेर';\n\n default:\n case 'M':\n case 'Q':\n case 'DDD':\n case 'd':\n case 'w':\n case 'W':\n return number;\n }\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week\n doy: 3 // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)\n\n },\n meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,\n meridiemHour: function meridiemHour(hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n\n if (meridiem === 'राती') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'सकाळीं') {\n return hour;\n } else if (meridiem === 'दनपारां') {\n return hour > 12 ? hour : hour + 12;\n } else if (meridiem === 'सांजे') {\n return hour + 12;\n }\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 4) {\n return 'राती';\n } else if (hour < 12) {\n return 'सकाळीं';\n } else if (hour < 16) {\n return 'दनपारां';\n } else if (hour < 20) {\n return 'सांजे';\n } else {\n return 'राती';\n }\n }\n });\n return gomDeva;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Konkani Latin script [gom-latn]\n//! author : The Discoverer : https://github.com/WikiDiscoverer\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n s: ['thoddea sekondamni', 'thodde sekond'],\n ss: [number + ' sekondamni', number + ' sekond'],\n m: ['eka mintan', 'ek minut'],\n mm: [number + ' mintamni', number + ' mintam'],\n h: ['eka voran', 'ek vor'],\n hh: [number + ' voramni', number + ' voram'],\n d: ['eka disan', 'ek dis'],\n dd: [number + ' disamni', number + ' dis'],\n M: ['eka mhoinean', 'ek mhoino'],\n MM: [number + ' mhoineamni', number + ' mhoine'],\n y: ['eka vorsan', 'ek voros'],\n yy: [number + ' vorsamni', number + ' vorsam']\n };\n return isFuture ? format[key][0] : format[key][1];\n }\n\n var gomLatn = moment.defineLocale('gom-latn', {\n months: {\n standalone: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split('_'),\n format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split('_'),\n isFormat: /MMMM(\\s)+D[oD]?/\n },\n monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),\n monthsParseExact: true,\n weekdays: \"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var\".split('_'),\n weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),\n weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'A h:mm [vazta]',\n LTS: 'A h:mm:ss [vazta]',\n L: 'DD-MM-YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY A h:mm [vazta]',\n LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',\n llll: 'ddd, D MMM YYYY, A h:mm [vazta]'\n },\n calendar: {\n sameDay: '[Aiz] LT',\n nextDay: '[Faleam] LT',\n nextWeek: '[Fuddlo] dddd[,] LT',\n lastDay: '[Kal] LT',\n lastWeek: '[Fattlo] dddd[,] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s',\n past: '%s adim',\n s: processRelativeTime,\n ss: processRelativeTime,\n m: processRelativeTime,\n mm: processRelativeTime,\n h: processRelativeTime,\n hh: processRelativeTime,\n d: processRelativeTime,\n dd: processRelativeTime,\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(er)/,\n ordinal: function ordinal(number, period) {\n switch (period) {\n // the ordinal 'er' only applies to day of the month\n case 'D':\n return number + 'er';\n\n default:\n case 'M':\n case 'Q':\n case 'DDD':\n case 'd':\n case 'w':\n case 'W':\n return number;\n }\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week\n doy: 3 // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)\n\n },\n meridiemParse: /rati|sokallim|donparam|sanje/,\n meridiemHour: function meridiemHour(hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n\n if (meridiem === 'rati') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'sokallim') {\n return hour;\n } else if (meridiem === 'donparam') {\n return hour > 12 ? hour : hour + 12;\n } else if (meridiem === 'sanje') {\n return hour + 12;\n }\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 4) {\n return 'rati';\n } else if (hour < 12) {\n return 'sokallim';\n } else if (hour < 16) {\n return 'donparam';\n } else if (hour < 20) {\n return 'sanje';\n } else {\n return 'rati';\n }\n }\n });\n return gomLatn;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Gujarati [gu]\n//! author : Kaushik Thanki : https://github.com/Kaushik1987\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var symbolMap = {\n 1: '૧',\n 2: '૨',\n 3: '૩',\n 4: '૪',\n 5: '૫',\n 6: '૬',\n 7: '૭',\n 8: '૮',\n 9: '૯',\n 0: '૦'\n },\n numberMap = {\n '૧': '1',\n '૨': '2',\n '૩': '3',\n '૪': '4',\n '૫': '5',\n '૬': '6',\n '૭': '7',\n '૮': '8',\n '૯': '9',\n '૦': '0'\n };\n var gu = moment.defineLocale('gu', {\n months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split('_'),\n monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split('_'),\n monthsParseExact: true,\n weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split('_'),\n weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),\n weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),\n longDateFormat: {\n LT: 'A h:mm વાગ્યે',\n LTS: 'A h:mm:ss વાગ્યે',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm વાગ્યે',\n LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે'\n },\n calendar: {\n sameDay: '[આજ] LT',\n nextDay: '[કાલે] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[ગઇકાલે] LT',\n lastWeek: '[પાછલા] dddd, LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s મા',\n past: '%s પહેલા',\n s: 'અમુક પળો',\n ss: '%d સેકંડ',\n m: 'એક મિનિટ',\n mm: '%d મિનિટ',\n h: 'એક કલાક',\n hh: '%d કલાક',\n d: 'એક દિવસ',\n dd: '%d દિવસ',\n M: 'એક મહિનો',\n MM: '%d મહિનો',\n y: 'એક વર્ષ',\n yy: '%d વર્ષ'\n },\n preparse: function preparse(string) {\n return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function postformat(string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n // Gujarati notation for meridiems are quite fuzzy in practice. While there exists\n // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.\n meridiemParse: /રાત|બપોર|સવાર|સાંજ/,\n meridiemHour: function meridiemHour(hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n\n if (meridiem === 'રાત') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'સવાર') {\n return hour;\n } else if (meridiem === 'બપોર') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'સાંજ') {\n return hour + 12;\n }\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 4) {\n return 'રાત';\n } else if (hour < 10) {\n return 'સવાર';\n } else if (hour < 17) {\n return 'બપોર';\n } else if (hour < 20) {\n return 'સાંજ';\n } else {\n return 'રાત';\n }\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n\n }\n });\n return gu;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Hebrew [he]\n//! author : Tomer Cohen : https://github.com/tomer\n//! author : Moshe Simantov : https://github.com/DevelopmentIL\n//! author : Tal Ater : https://github.com/TalAter\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var he = moment.defineLocale('he', {\n months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),\n monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),\n weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),\n weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),\n weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [ב]MMMM YYYY',\n LLL: 'D [ב]MMMM YYYY HH:mm',\n LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',\n l: 'D/M/YYYY',\n ll: 'D MMM YYYY',\n lll: 'D MMM YYYY HH:mm',\n llll: 'ddd, D MMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[היום ב־]LT',\n nextDay: '[מחר ב־]LT',\n nextWeek: 'dddd [בשעה] LT',\n lastDay: '[אתמול ב־]LT',\n lastWeek: '[ביום] dddd [האחרון בשעה] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'בעוד %s',\n past: 'לפני %s',\n s: 'מספר שניות',\n ss: '%d שניות',\n m: 'דקה',\n mm: '%d דקות',\n h: 'שעה',\n hh: function hh(number) {\n if (number === 2) {\n return 'שעתיים';\n }\n\n return number + ' שעות';\n },\n d: 'יום',\n dd: function dd(number) {\n if (number === 2) {\n return 'יומיים';\n }\n\n return number + ' ימים';\n },\n M: 'חודש',\n MM: function MM(number) {\n if (number === 2) {\n return 'חודשיים';\n }\n\n return number + ' חודשים';\n },\n y: 'שנה',\n yy: function yy(number) {\n if (number === 2) {\n return 'שנתיים';\n } else if (number % 10 === 0 && number !== 10) {\n return number + ' שנה';\n }\n\n return number + ' שנים';\n }\n },\n meridiemParse: /אחה\"צ|לפנה\"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,\n isPM: function isPM(input) {\n return /^(אחה\"צ|אחרי הצהריים|בערב)$/.test(input);\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 5) {\n return 'לפנות בוקר';\n } else if (hour < 10) {\n return 'בבוקר';\n } else if (hour < 12) {\n return isLower ? 'לפנה\"צ' : 'לפני הצהריים';\n } else if (hour < 18) {\n return isLower ? 'אחה\"צ' : 'אחרי הצהריים';\n } else {\n return 'בערב';\n }\n }\n });\n return he;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Hindi [hi]\n//! author : Mayank Singhal : https://github.com/mayanksinghal\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var symbolMap = {\n 1: '१',\n 2: '२',\n 3: '३',\n 4: '४',\n 5: '५',\n 6: '६',\n 7: '७',\n 8: '८',\n 9: '९',\n 0: '०'\n },\n numberMap = {\n '१': '1',\n '२': '2',\n '३': '3',\n '४': '4',\n '५': '5',\n '६': '6',\n '७': '7',\n '८': '8',\n '९': '9',\n '०': '0'\n },\n monthsParse = [/^जन/i, /^फ़र|फर/i, /^मार्च/i, /^अप्रै/i, /^मई/i, /^जून/i, /^जुल/i, /^अग/i, /^सितं|सित/i, /^अक्टू/i, /^नव|नवं/i, /^दिसं|दिस/i],\n shortMonthsParse = [/^जन/i, /^फ़र/i, /^मार्च/i, /^अप्रै/i, /^मई/i, /^जून/i, /^जुल/i, /^अग/i, /^सित/i, /^अक्टू/i, /^नव/i, /^दिस/i];\n var hi = moment.defineLocale('hi', {\n months: {\n format: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),\n standalone: 'जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर'.split('_')\n },\n monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),\n weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),\n weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),\n weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),\n longDateFormat: {\n LT: 'A h:mm बजे',\n LTS: 'A h:mm:ss बजे',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm बजे',\n LLLL: 'dddd, D MMMM YYYY, A h:mm बजे'\n },\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: shortMonthsParse,\n monthsRegex: /^(जनवरी|जन\\.?|फ़रवरी|फरवरी|फ़र\\.?|मार्च?|अप्रैल|अप्रै\\.?|मई?|जून?|जुलाई|जुल\\.?|अगस्त|अग\\.?|सितम्बर|सितंबर|सित\\.?|अक्टूबर|अक्टू\\.?|नवम्बर|नवंबर|नव\\.?|दिसम्बर|दिसंबर|दिस\\.?)/i,\n monthsShortRegex: /^(जनवरी|जन\\.?|फ़रवरी|फरवरी|फ़र\\.?|मार्च?|अप्रैल|अप्रै\\.?|मई?|जून?|जुलाई|जुल\\.?|अगस्त|अग\\.?|सितम्बर|सितंबर|सित\\.?|अक्टूबर|अक्टू\\.?|नवम्बर|नवंबर|नव\\.?|दिसम्बर|दिसंबर|दिस\\.?)/i,\n monthsStrictRegex: /^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\\.?|अक्टूबर|अक्टू\\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,\n monthsShortStrictRegex: /^(जन\\.?|फ़र\\.?|मार्च?|अप्रै\\.?|मई?|जून?|जुल\\.?|अग\\.?|सित\\.?|अक्टू\\.?|नव\\.?|दिस\\.?)/i,\n calendar: {\n sameDay: '[आज] LT',\n nextDay: '[कल] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[कल] LT',\n lastWeek: '[पिछले] dddd, LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s में',\n past: '%s पहले',\n s: 'कुछ ही क्षण',\n ss: '%d सेकंड',\n m: 'एक मिनट',\n mm: '%d मिनट',\n h: 'एक घंटा',\n hh: '%d घंटे',\n d: 'एक दिन',\n dd: '%d दिन',\n M: 'एक महीने',\n MM: '%d महीने',\n y: 'एक वर्ष',\n yy: '%d वर्ष'\n },\n preparse: function preparse(string) {\n return string.replace(/[१२३४५६७८९०]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function postformat(string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n // Hindi notation for meridiems are quite fuzzy in practice. While there exists\n // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.\n meridiemParse: /रात|सुबह|दोपहर|शाम/,\n meridiemHour: function meridiemHour(hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n\n if (meridiem === 'रात') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'सुबह') {\n return hour;\n } else if (meridiem === 'दोपहर') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'शाम') {\n return hour + 12;\n }\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 4) {\n return 'रात';\n } else if (hour < 10) {\n return 'सुबह';\n } else if (hour < 17) {\n return 'दोपहर';\n } else if (hour < 20) {\n return 'शाम';\n } else {\n return 'रात';\n }\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n\n }\n });\n return hi;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Croatian [hr]\n//! author : Bojan Marković : https://github.com/bmarkovic\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n function translate(number, withoutSuffix, key) {\n var result = number + ' ';\n\n switch (key) {\n case 'ss':\n if (number === 1) {\n result += 'sekunda';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'sekunde';\n } else {\n result += 'sekundi';\n }\n\n return result;\n\n case 'm':\n return withoutSuffix ? 'jedna minuta' : 'jedne minute';\n\n case 'mm':\n if (number === 1) {\n result += 'minuta';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'minute';\n } else {\n result += 'minuta';\n }\n\n return result;\n\n case 'h':\n return withoutSuffix ? 'jedan sat' : 'jednog sata';\n\n case 'hh':\n if (number === 1) {\n result += 'sat';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'sata';\n } else {\n result += 'sati';\n }\n\n return result;\n\n case 'dd':\n if (number === 1) {\n result += 'dan';\n } else {\n result += 'dana';\n }\n\n return result;\n\n case 'MM':\n if (number === 1) {\n result += 'mjesec';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'mjeseca';\n } else {\n result += 'mjeseci';\n }\n\n return result;\n\n case 'yy':\n if (number === 1) {\n result += 'godina';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'godine';\n } else {\n result += 'godina';\n }\n\n return result;\n }\n }\n\n var hr = moment.defineLocale('hr', {\n months: {\n format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'),\n standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_')\n },\n monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),\n monthsParseExact: true,\n weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),\n weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),\n weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'Do MMMM YYYY',\n LLL: 'Do MMMM YYYY H:mm',\n LLLL: 'dddd, Do MMMM YYYY H:mm'\n },\n calendar: {\n sameDay: '[danas u] LT',\n nextDay: '[sutra u] LT',\n nextWeek: function nextWeek() {\n switch (this.day()) {\n case 0:\n return '[u] [nedjelju] [u] LT';\n\n case 3:\n return '[u] [srijedu] [u] LT';\n\n case 6:\n return '[u] [subotu] [u] LT';\n\n case 1:\n case 2:\n case 4:\n case 5:\n return '[u] dddd [u] LT';\n }\n },\n lastDay: '[jučer u] LT',\n lastWeek: function lastWeek() {\n switch (this.day()) {\n case 0:\n return '[prošlu] [nedjelju] [u] LT';\n\n case 3:\n return '[prošlu] [srijedu] [u] LT';\n\n case 6:\n return '[prošle] [subote] [u] LT';\n\n case 1:\n case 2:\n case 4:\n case 5:\n return '[prošli] dddd [u] LT';\n }\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'za %s',\n past: 'prije %s',\n s: 'par sekundi',\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: 'dan',\n dd: translate,\n M: 'mjesec',\n MM: translate,\n y: 'godinu',\n yy: translate\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n\n }\n });\n return hr;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Hungarian [hu]\n//! author : Adam Brunner : https://github.com/adambrunner\n//! author : Peter Viszt : https://github.com/passatgt\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');\n\n function translate(number, withoutSuffix, key, isFuture) {\n var num = number;\n\n switch (key) {\n case 's':\n return isFuture || withoutSuffix ? 'néhány másodperc' : 'néhány másodperce';\n\n case 'ss':\n return num + (isFuture || withoutSuffix) ? ' másodperc' : ' másodperce';\n\n case 'm':\n return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');\n\n case 'mm':\n return num + (isFuture || withoutSuffix ? ' perc' : ' perce');\n\n case 'h':\n return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');\n\n case 'hh':\n return num + (isFuture || withoutSuffix ? ' óra' : ' órája');\n\n case 'd':\n return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');\n\n case 'dd':\n return num + (isFuture || withoutSuffix ? ' nap' : ' napja');\n\n case 'M':\n return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');\n\n case 'MM':\n return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');\n\n case 'y':\n return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');\n\n case 'yy':\n return num + (isFuture || withoutSuffix ? ' év' : ' éve');\n }\n\n return '';\n }\n\n function week(isFuture) {\n return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';\n }\n\n var hu = moment.defineLocale('hu', {\n months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),\n monthsShort: 'jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.'.split('_'),\n monthsParseExact: true,\n weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),\n weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),\n weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'YYYY.MM.DD.',\n LL: 'YYYY. MMMM D.',\n LLL: 'YYYY. MMMM D. H:mm',\n LLLL: 'YYYY. MMMM D., dddd H:mm'\n },\n meridiemParse: /de|du/i,\n isPM: function isPM(input) {\n return input.charAt(1).toLowerCase() === 'u';\n },\n meridiem: function meridiem(hours, minutes, isLower) {\n if (hours < 12) {\n return isLower === true ? 'de' : 'DE';\n } else {\n return isLower === true ? 'du' : 'DU';\n }\n },\n calendar: {\n sameDay: '[ma] LT[-kor]',\n nextDay: '[holnap] LT[-kor]',\n nextWeek: function nextWeek() {\n return week.call(this, true);\n },\n lastDay: '[tegnap] LT[-kor]',\n lastWeek: function lastWeek() {\n return week.call(this, false);\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s múlva',\n past: '%s',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return hu;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Armenian [hy-am]\n//! author : Armendarabyan : https://github.com/armendarabyan\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var hyAm = moment.defineLocale('hy-am', {\n months: {\n format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'),\n standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_')\n },\n monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),\n weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'),\n weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),\n weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY թ.',\n LLL: 'D MMMM YYYY թ., HH:mm',\n LLLL: 'dddd, D MMMM YYYY թ., HH:mm'\n },\n calendar: {\n sameDay: '[այսօր] LT',\n nextDay: '[վաղը] LT',\n lastDay: '[երեկ] LT',\n nextWeek: function nextWeek() {\n return 'dddd [օրը ժամը] LT';\n },\n lastWeek: function lastWeek() {\n return '[անցած] dddd [օրը ժամը] LT';\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s հետո',\n past: '%s առաջ',\n s: 'մի քանի վայրկյան',\n ss: '%d վայրկյան',\n m: 'րոպե',\n mm: '%d րոպե',\n h: 'ժամ',\n hh: '%d ժամ',\n d: 'օր',\n dd: '%d օր',\n M: 'ամիս',\n MM: '%d ամիս',\n y: 'տարի',\n yy: '%d տարի'\n },\n meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,\n isPM: function isPM(input) {\n return /^(ցերեկվա|երեկոյան)$/.test(input);\n },\n meridiem: function meridiem(hour) {\n if (hour < 4) {\n return 'գիշերվա';\n } else if (hour < 12) {\n return 'առավոտվա';\n } else if (hour < 17) {\n return 'ցերեկվա';\n } else {\n return 'երեկոյան';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}|\\d{1,2}-(ին|րդ)/,\n ordinal: function ordinal(number, period) {\n switch (period) {\n case 'DDD':\n case 'w':\n case 'W':\n case 'DDDo':\n if (number === 1) {\n return number + '-ին';\n }\n\n return number + '-րդ';\n\n default:\n return number;\n }\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n\n }\n });\n return hyAm;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Indonesian [id]\n//! author : Mohammad Satrio Utomo : https://github.com/tyok\n//! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var id = moment.defineLocale('id', {\n months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),\n monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),\n weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),\n weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),\n weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [pukul] HH.mm',\n LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'\n },\n meridiemParse: /pagi|siang|sore|malam/,\n meridiemHour: function meridiemHour(hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n\n if (meridiem === 'pagi') {\n return hour;\n } else if (meridiem === 'siang') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'sore' || meridiem === 'malam') {\n return hour + 12;\n }\n },\n meridiem: function meridiem(hours, minutes, isLower) {\n if (hours < 11) {\n return 'pagi';\n } else if (hours < 15) {\n return 'siang';\n } else if (hours < 19) {\n return 'sore';\n } else {\n return 'malam';\n }\n },\n calendar: {\n sameDay: '[Hari ini pukul] LT',\n nextDay: '[Besok pukul] LT',\n nextWeek: 'dddd [pukul] LT',\n lastDay: '[Kemarin pukul] LT',\n lastWeek: 'dddd [lalu pukul] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'dalam %s',\n past: '%s yang lalu',\n s: 'beberapa detik',\n ss: '%d detik',\n m: 'semenit',\n mm: '%d menit',\n h: 'sejam',\n hh: '%d jam',\n d: 'sehari',\n dd: '%d hari',\n M: 'sebulan',\n MM: '%d bulan',\n y: 'setahun',\n yy: '%d tahun'\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n\n }\n });\n return id;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Icelandic [is]\n//! author : Hinrik Örn Sigurðsson : https://github.com/hinrik\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n function plural(n) {\n if (n % 100 === 11) {\n return true;\n } else if (n % 10 === 1) {\n return false;\n }\n\n return true;\n }\n\n function translate(number, withoutSuffix, key, isFuture) {\n var result = number + ' ';\n\n switch (key) {\n case 's':\n return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';\n\n case 'ss':\n if (plural(number)) {\n return result + (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum');\n }\n\n return result + 'sekúnda';\n\n case 'm':\n return withoutSuffix ? 'mínúta' : 'mínútu';\n\n case 'mm':\n if (plural(number)) {\n return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');\n } else if (withoutSuffix) {\n return result + 'mínúta';\n }\n\n return result + 'mínútu';\n\n case 'hh':\n if (plural(number)) {\n return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');\n }\n\n return result + 'klukkustund';\n\n case 'd':\n if (withoutSuffix) {\n return 'dagur';\n }\n\n return isFuture ? 'dag' : 'degi';\n\n case 'dd':\n if (plural(number)) {\n if (withoutSuffix) {\n return result + 'dagar';\n }\n\n return result + (isFuture ? 'daga' : 'dögum');\n } else if (withoutSuffix) {\n return result + 'dagur';\n }\n\n return result + (isFuture ? 'dag' : 'degi');\n\n case 'M':\n if (withoutSuffix) {\n return 'mánuður';\n }\n\n return isFuture ? 'mánuð' : 'mánuði';\n\n case 'MM':\n if (plural(number)) {\n if (withoutSuffix) {\n return result + 'mánuðir';\n }\n\n return result + (isFuture ? 'mánuði' : 'mánuðum');\n } else if (withoutSuffix) {\n return result + 'mánuður';\n }\n\n return result + (isFuture ? 'mánuð' : 'mánuði');\n\n case 'y':\n return withoutSuffix || isFuture ? 'ár' : 'ári';\n\n case 'yy':\n if (plural(number)) {\n return result + (withoutSuffix || isFuture ? 'ár' : 'árum');\n }\n\n return result + (withoutSuffix || isFuture ? 'ár' : 'ári');\n }\n }\n\n var is = moment.defineLocale('is', {\n months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),\n monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),\n weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),\n weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),\n weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY [kl.] H:mm',\n LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm'\n },\n calendar: {\n sameDay: '[í dag kl.] LT',\n nextDay: '[á morgun kl.] LT',\n nextWeek: 'dddd [kl.] LT',\n lastDay: '[í gær kl.] LT',\n lastWeek: '[síðasta] dddd [kl.] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'eftir %s',\n past: 'fyrir %s síðan',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: 'klukkustund',\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return is;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Italian [it]\n//! author : Lorenzo : https://github.com/aliem\n//! author: Mattia Larentis: https://github.com/nostalgiaz\n//! author: Marco : https://github.com/Manfre98\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var it = moment.defineLocale('it', {\n months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),\n monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),\n weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),\n weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),\n weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: function sameDay() {\n return '[Oggi a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") + ']LT';\n },\n nextDay: function nextDay() {\n return '[Domani a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") + ']LT';\n },\n nextWeek: function nextWeek() {\n return 'dddd [a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") + ']LT';\n },\n lastDay: function lastDay() {\n return '[Ieri a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") + ']LT';\n },\n lastWeek: function lastWeek() {\n switch (this.day()) {\n case 0:\n return '[La scorsa] dddd [a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") + ']LT';\n\n default:\n return '[Lo scorso] dddd [a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") + ']LT';\n }\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'tra %s',\n past: '%s fa',\n s: 'alcuni secondi',\n ss: '%d secondi',\n m: 'un minuto',\n mm: '%d minuti',\n h: \"un'ora\",\n hh: '%d ore',\n d: 'un giorno',\n dd: '%d giorni',\n w: 'una settimana',\n ww: '%d settimane',\n M: 'un mese',\n MM: '%d mesi',\n y: 'un anno',\n yy: '%d anni'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return it;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Italian (Switzerland) [it-ch]\n//! author : xfh : https://github.com/xfh\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var itCh = moment.defineLocale('it-ch', {\n months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),\n monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),\n weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),\n weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),\n weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Oggi alle] LT',\n nextDay: '[Domani alle] LT',\n nextWeek: 'dddd [alle] LT',\n lastDay: '[Ieri alle] LT',\n lastWeek: function lastWeek() {\n switch (this.day()) {\n case 0:\n return '[la scorsa] dddd [alle] LT';\n\n default:\n return '[lo scorso] dddd [alle] LT';\n }\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: function future(s) {\n return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;\n },\n past: '%s fa',\n s: 'alcuni secondi',\n ss: '%d secondi',\n m: 'un minuto',\n mm: '%d minuti',\n h: \"un'ora\",\n hh: '%d ore',\n d: 'un giorno',\n dd: '%d giorni',\n M: 'un mese',\n MM: '%d mesi',\n y: 'un anno',\n yy: '%d anni'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return itCh;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Japanese [ja]\n//! author : LI Long : https://github.com/baryon\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var ja = moment.defineLocale('ja', {\n eras: [{\n since: '2019-05-01',\n offset: 1,\n name: '令和',\n narrow: '㋿',\n abbr: 'R'\n }, {\n since: '1989-01-08',\n until: '2019-04-30',\n offset: 1,\n name: '平成',\n narrow: '㍻',\n abbr: 'H'\n }, {\n since: '1926-12-25',\n until: '1989-01-07',\n offset: 1,\n name: '昭和',\n narrow: '㍼',\n abbr: 'S'\n }, {\n since: '1912-07-30',\n until: '1926-12-24',\n offset: 1,\n name: '大正',\n narrow: '㍽',\n abbr: 'T'\n }, {\n since: '1873-01-01',\n until: '1912-07-29',\n offset: 6,\n name: '明治',\n narrow: '㍾',\n abbr: 'M'\n }, {\n since: '0001-01-01',\n until: '1873-12-31',\n offset: 1,\n name: '西暦',\n narrow: 'AD',\n abbr: 'AD'\n }, {\n since: '0000-12-31',\n until: -Infinity,\n offset: 1,\n name: '紀元前',\n narrow: 'BC',\n abbr: 'BC'\n }],\n eraYearOrdinalRegex: /(元|\\d+)年/,\n eraYearOrdinalParse: function eraYearOrdinalParse(input, match) {\n return match[1] === '元' ? 1 : parseInt(match[1] || input, 10);\n },\n months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\n weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),\n weekdaysShort: '日_月_火_水_木_金_土'.split('_'),\n weekdaysMin: '日_月_火_水_木_金_土'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY/MM/DD',\n LL: 'YYYY年M月D日',\n LLL: 'YYYY年M月D日 HH:mm',\n LLLL: 'YYYY年M月D日 dddd HH:mm',\n l: 'YYYY/MM/DD',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日(ddd) HH:mm'\n },\n meridiemParse: /午前|午後/i,\n isPM: function isPM(input) {\n return input === '午後';\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 12) {\n return '午前';\n } else {\n return '午後';\n }\n },\n calendar: {\n sameDay: '[今日] LT',\n nextDay: '[明日] LT',\n nextWeek: function nextWeek(now) {\n if (now.week() !== this.week()) {\n return '[来週]dddd LT';\n } else {\n return 'dddd LT';\n }\n },\n lastDay: '[昨日] LT',\n lastWeek: function lastWeek(now) {\n if (this.week() !== now.week()) {\n return '[先週]dddd LT';\n } else {\n return 'dddd LT';\n }\n },\n sameElse: 'L'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}日/,\n ordinal: function ordinal(number, period) {\n switch (period) {\n case 'y':\n return number === 1 ? '元年' : number + '年';\n\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s後',\n past: '%s前',\n s: '数秒',\n ss: '%d秒',\n m: '1分',\n mm: '%d分',\n h: '1時間',\n hh: '%d時間',\n d: '1日',\n dd: '%d日',\n M: '1ヶ月',\n MM: '%dヶ月',\n y: '1年',\n yy: '%d年'\n }\n });\n return ja;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Javanese [jv]\n//! author : Rony Lantip : https://github.com/lantip\n//! reference: http://jv.wikipedia.org/wiki/Basa_Jawa\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var jv = moment.defineLocale('jv', {\n months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'),\n monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),\n weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),\n weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),\n weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [pukul] HH.mm',\n LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'\n },\n meridiemParse: /enjing|siyang|sonten|ndalu/,\n meridiemHour: function meridiemHour(hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n\n if (meridiem === 'enjing') {\n return hour;\n } else if (meridiem === 'siyang') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'sonten' || meridiem === 'ndalu') {\n return hour + 12;\n }\n },\n meridiem: function meridiem(hours, minutes, isLower) {\n if (hours < 11) {\n return 'enjing';\n } else if (hours < 15) {\n return 'siyang';\n } else if (hours < 19) {\n return 'sonten';\n } else {\n return 'ndalu';\n }\n },\n calendar: {\n sameDay: '[Dinten puniko pukul] LT',\n nextDay: '[Mbenjang pukul] LT',\n nextWeek: 'dddd [pukul] LT',\n lastDay: '[Kala wingi pukul] LT',\n lastWeek: 'dddd [kepengker pukul] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'wonten ing %s',\n past: '%s ingkang kepengker',\n s: 'sawetawis detik',\n ss: '%d detik',\n m: 'setunggal menit',\n mm: '%d menit',\n h: 'setunggal jam',\n hh: '%d jam',\n d: 'sedinten',\n dd: '%d dinten',\n M: 'sewulan',\n MM: '%d wulan',\n y: 'setaun',\n yy: '%d taun'\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n\n }\n });\n return jv;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Georgian [ka]\n//! author : Irakli Janiashvili : https://github.com/IrakliJani\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var ka = moment.defineLocale('ka', {\n months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),\n monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),\n weekdays: {\n standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),\n format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'),\n isFormat: /(წინა|შემდეგ)/\n },\n weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),\n weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[დღეს] LT[-ზე]',\n nextDay: '[ხვალ] LT[-ზე]',\n lastDay: '[გუშინ] LT[-ზე]',\n nextWeek: '[შემდეგ] dddd LT[-ზე]',\n lastWeek: '[წინა] dddd LT-ზე',\n sameElse: 'L'\n },\n relativeTime: {\n future: function future(s) {\n return s.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/, function ($0, $1, $2) {\n return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში';\n });\n },\n past: function past(s) {\n if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) {\n return s.replace(/(ი|ე)$/, 'ის წინ');\n }\n\n if (/წელი/.test(s)) {\n return s.replace(/წელი$/, 'წლის წინ');\n }\n\n return s;\n },\n s: 'რამდენიმე წამი',\n ss: '%d წამი',\n m: 'წუთი',\n mm: '%d წუთი',\n h: 'საათი',\n hh: '%d საათი',\n d: 'დღე',\n dd: '%d დღე',\n M: 'თვე',\n MM: '%d თვე',\n y: 'წელი',\n yy: '%d წელი'\n },\n dayOfMonthOrdinalParse: /0|1-ლი|მე-\\d{1,2}|\\d{1,2}-ე/,\n ordinal: function ordinal(number) {\n if (number === 0) {\n return number;\n }\n\n if (number === 1) {\n return number + '-ლი';\n }\n\n if (number < 20 || number <= 100 && number % 20 === 0 || number % 100 === 0) {\n return 'მე-' + number;\n }\n\n return number + '-ე';\n },\n week: {\n dow: 1,\n doy: 7\n }\n });\n return ka;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Kazakh [kk]\n//! authors : Nurlan Rakhimzhanov : https://github.com/nurlan\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var suffixes = {\n 0: '-ші',\n 1: '-ші',\n 2: '-ші',\n 3: '-ші',\n 4: '-ші',\n 5: '-ші',\n 6: '-шы',\n 7: '-ші',\n 8: '-ші',\n 9: '-шы',\n 10: '-шы',\n 20: '-шы',\n 30: '-шы',\n 40: '-шы',\n 50: '-ші',\n 60: '-шы',\n 70: '-ші',\n 80: '-ші',\n 90: '-шы',\n 100: '-ші'\n };\n var kk = moment.defineLocale('kk', {\n months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split('_'),\n monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),\n weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'),\n weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),\n weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Бүгін сағат] LT',\n nextDay: '[Ертең сағат] LT',\n nextWeek: 'dddd [сағат] LT',\n lastDay: '[Кеше сағат] LT',\n lastWeek: '[Өткен аптаның] dddd [сағат] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s ішінде',\n past: '%s бұрын',\n s: 'бірнеше секунд',\n ss: '%d секунд',\n m: 'бір минут',\n mm: '%d минут',\n h: 'бір сағат',\n hh: '%d сағат',\n d: 'бір күн',\n dd: '%d күн',\n M: 'бір ай',\n MM: '%d ай',\n y: 'бір жыл',\n yy: '%d жыл'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(ші|шы)/,\n ordinal: function ordinal(number) {\n var a = number % 10,\n b = number >= 100 ? 100 : null;\n return number + (suffixes[number] || suffixes[a] || suffixes[b]);\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n\n }\n });\n return kk;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Cambodian [km]\n//! author : Kruy Vanna : https://github.com/kruyvanna\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var symbolMap = {\n 1: '១',\n 2: '២',\n 3: '៣',\n 4: '៤',\n 5: '៥',\n 6: '៦',\n 7: '៧',\n 8: '៨',\n 9: '៩',\n 0: '០'\n },\n numberMap = {\n '១': '1',\n '២': '2',\n '៣': '3',\n '៤': '4',\n '៥': '5',\n '៦': '6',\n '៧': '7',\n '៨': '8',\n '៩': '9',\n '០': '0'\n };\n var km = moment.defineLocale('km', {\n months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),\n monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),\n weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),\n weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),\n weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n meridiemParse: /ព្រឹក|ល្ងាច/,\n isPM: function isPM(input) {\n return input === 'ល្ងាច';\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 12) {\n return 'ព្រឹក';\n } else {\n return 'ល្ងាច';\n }\n },\n calendar: {\n sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',\n nextDay: '[ស្អែក ម៉ោង] LT',\n nextWeek: 'dddd [ម៉ោង] LT',\n lastDay: '[ម្សិលមិញ ម៉ោង] LT',\n lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%sទៀត',\n past: '%sមុន',\n s: 'ប៉ុន្មានវិនាទី',\n ss: '%d វិនាទី',\n m: 'មួយនាទី',\n mm: '%d នាទី',\n h: 'មួយម៉ោង',\n hh: '%d ម៉ោង',\n d: 'មួយថ្ងៃ',\n dd: '%d ថ្ងៃ',\n M: 'មួយខែ',\n MM: '%d ខែ',\n y: 'មួយឆ្នាំ',\n yy: '%d ឆ្នាំ'\n },\n dayOfMonthOrdinalParse: /ទី\\d{1,2}/,\n ordinal: 'ទី%d',\n preparse: function preparse(string) {\n return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function postformat(string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return km;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Kannada [kn]\n//! author : Rajeev Naik : https://github.com/rajeevnaikte\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var symbolMap = {\n 1: '೧',\n 2: '೨',\n 3: '೩',\n 4: '೪',\n 5: '೫',\n 6: '೬',\n 7: '೭',\n 8: '೮',\n 9: '೯',\n 0: '೦'\n },\n numberMap = {\n '೧': '1',\n '೨': '2',\n '೩': '3',\n '೪': '4',\n '೫': '5',\n '೬': '6',\n '೭': '7',\n '೮': '8',\n '೯': '9',\n '೦': '0'\n };\n var kn = moment.defineLocale('kn', {\n months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split('_'),\n monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split('_'),\n monthsParseExact: true,\n weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split('_'),\n weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),\n weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),\n longDateFormat: {\n LT: 'A h:mm',\n LTS: 'A h:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm',\n LLLL: 'dddd, D MMMM YYYY, A h:mm'\n },\n calendar: {\n sameDay: '[ಇಂದು] LT',\n nextDay: '[ನಾಳೆ] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[ನಿನ್ನೆ] LT',\n lastWeek: '[ಕೊನೆಯ] dddd, LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s ನಂತರ',\n past: '%s ಹಿಂದೆ',\n s: 'ಕೆಲವು ಕ್ಷಣಗಳು',\n ss: '%d ಸೆಕೆಂಡುಗಳು',\n m: 'ಒಂದು ನಿಮಿಷ',\n mm: '%d ನಿಮಿಷ',\n h: 'ಒಂದು ಗಂಟೆ',\n hh: '%d ಗಂಟೆ',\n d: 'ಒಂದು ದಿನ',\n dd: '%d ದಿನ',\n M: 'ಒಂದು ತಿಂಗಳು',\n MM: '%d ತಿಂಗಳು',\n y: 'ಒಂದು ವರ್ಷ',\n yy: '%d ವರ್ಷ'\n },\n preparse: function preparse(string) {\n return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function postformat(string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,\n meridiemHour: function meridiemHour(hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n\n if (meridiem === 'ರಾತ್ರಿ') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {\n return hour;\n } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'ಸಂಜೆ') {\n return hour + 12;\n }\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 4) {\n return 'ರಾತ್ರಿ';\n } else if (hour < 10) {\n return 'ಬೆಳಿಗ್ಗೆ';\n } else if (hour < 17) {\n return 'ಮಧ್ಯಾಹ್ನ';\n } else if (hour < 20) {\n return 'ಸಂಜೆ';\n } else {\n return 'ರಾತ್ರಿ';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(ನೇ)/,\n ordinal: function ordinal(number) {\n return number + 'ನೇ';\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n\n }\n });\n return kn;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Korean [ko]\n//! author : Kyungwook, Park : https://github.com/kyungw00k\n//! author : Jeeeyul Lee \n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var ko = moment.defineLocale('ko', {\n months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),\n monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),\n weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),\n weekdaysShort: '일_월_화_수_목_금_토'.split('_'),\n weekdaysMin: '일_월_화_수_목_금_토'.split('_'),\n longDateFormat: {\n LT: 'A h:mm',\n LTS: 'A h:mm:ss',\n L: 'YYYY.MM.DD.',\n LL: 'YYYY년 MMMM D일',\n LLL: 'YYYY년 MMMM D일 A h:mm',\n LLLL: 'YYYY년 MMMM D일 dddd A h:mm',\n l: 'YYYY.MM.DD.',\n ll: 'YYYY년 MMMM D일',\n lll: 'YYYY년 MMMM D일 A h:mm',\n llll: 'YYYY년 MMMM D일 dddd A h:mm'\n },\n calendar: {\n sameDay: '오늘 LT',\n nextDay: '내일 LT',\n nextWeek: 'dddd LT',\n lastDay: '어제 LT',\n lastWeek: '지난주 dddd LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s 후',\n past: '%s 전',\n s: '몇 초',\n ss: '%d초',\n m: '1분',\n mm: '%d분',\n h: '한 시간',\n hh: '%d시간',\n d: '하루',\n dd: '%d일',\n M: '한 달',\n MM: '%d달',\n y: '일 년',\n yy: '%d년'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(일|월|주)/,\n ordinal: function ordinal(number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '일';\n\n case 'M':\n return number + '월';\n\n case 'w':\n case 'W':\n return number + '주';\n\n default:\n return number;\n }\n },\n meridiemParse: /오전|오후/,\n isPM: function isPM(token) {\n return token === '오후';\n },\n meridiem: function meridiem(hour, minute, isUpper) {\n return hour < 12 ? '오전' : '오후';\n }\n });\n return ko;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Kurdish [ku]\n//! author : Shahram Mebashar : https://github.com/ShahramMebashar\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var symbolMap = {\n 1: '١',\n 2: '٢',\n 3: '٣',\n 4: '٤',\n 5: '٥',\n 6: '٦',\n 7: '٧',\n 8: '٨',\n 9: '٩',\n 0: '٠'\n },\n numberMap = {\n '١': '1',\n '٢': '2',\n '٣': '3',\n '٤': '4',\n '٥': '5',\n '٦': '6',\n '٧': '7',\n '٨': '8',\n '٩': '9',\n '٠': '0'\n },\n months = ['کانونی دووەم', 'شوبات', 'ئازار', 'نیسان', 'ئایار', 'حوزەیران', 'تەمموز', 'ئاب', 'ئەیلوول', 'تشرینی یەكەم', 'تشرینی دووەم', 'كانونی یەکەم'];\n var ku = moment.defineLocale('ku', {\n months: months,\n monthsShort: months,\n weekdays: 'یهكشهممه_دووشهممه_سێشهممه_چوارشهممه_پێنجشهممه_ههینی_شهممه'.split('_'),\n weekdaysShort: 'یهكشهم_دووشهم_سێشهم_چوارشهم_پێنجشهم_ههینی_شهممه'.split('_'),\n weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n meridiemParse: /ئێواره|بهیانی/,\n isPM: function isPM(input) {\n return /ئێواره/.test(input);\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 12) {\n return 'بهیانی';\n } else {\n return 'ئێواره';\n }\n },\n calendar: {\n sameDay: '[ئهمرۆ كاتژمێر] LT',\n nextDay: '[بهیانی كاتژمێر] LT',\n nextWeek: 'dddd [كاتژمێر] LT',\n lastDay: '[دوێنێ كاتژمێر] LT',\n lastWeek: 'dddd [كاتژمێر] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'له %s',\n past: '%s',\n s: 'چهند چركهیهك',\n ss: 'چركه %d',\n m: 'یهك خولهك',\n mm: '%d خولهك',\n h: 'یهك كاتژمێر',\n hh: '%d كاتژمێر',\n d: 'یهك ڕۆژ',\n dd: '%d ڕۆژ',\n M: 'یهك مانگ',\n MM: '%d مانگ',\n y: 'یهك ساڵ',\n yy: '%d ساڵ'\n },\n preparse: function preparse(string) {\n return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {\n return numberMap[match];\n }).replace(/،/g, ',');\n },\n postformat: function postformat(string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n }).replace(/,/g, '،');\n },\n week: {\n dow: 6,\n // Saturday is the first day of the week.\n doy: 12 // The week that contains Jan 12th is the first week of the year.\n\n }\n });\n return ku;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Kyrgyz [ky]\n//! author : Chyngyz Arystan uulu : https://github.com/chyngyz\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var suffixes = {\n 0: '-чү',\n 1: '-чи',\n 2: '-чи',\n 3: '-чү',\n 4: '-чү',\n 5: '-чи',\n 6: '-чы',\n 7: '-чи',\n 8: '-чи',\n 9: '-чу',\n 10: '-чу',\n 20: '-чы',\n 30: '-чу',\n 40: '-чы',\n 50: '-чү',\n 60: '-чы',\n 70: '-чи',\n 80: '-чи',\n 90: '-чу',\n 100: '-чү'\n };\n var ky = moment.defineLocale('ky', {\n months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),\n monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),\n weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'),\n weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),\n weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Бүгүн саат] LT',\n nextDay: '[Эртең саат] LT',\n nextWeek: 'dddd [саат] LT',\n lastDay: '[Кечээ саат] LT',\n lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s ичинде',\n past: '%s мурун',\n s: 'бирнече секунд',\n ss: '%d секунд',\n m: 'бир мүнөт',\n mm: '%d мүнөт',\n h: 'бир саат',\n hh: '%d саат',\n d: 'бир күн',\n dd: '%d күн',\n M: 'бир ай',\n MM: '%d ай',\n y: 'бир жыл',\n yy: '%d жыл'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(чи|чы|чү|чу)/,\n ordinal: function ordinal(number) {\n var a = number % 10,\n b = number >= 100 ? 100 : null;\n return number + (suffixes[number] || suffixes[a] || suffixes[b]);\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n\n }\n });\n return ky;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Luxembourgish [lb]\n//! author : mweimerskirch : https://github.com/mweimerskirch\n//! author : David Raison : https://github.com/kwisatz\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n m: ['eng Minutt', 'enger Minutt'],\n h: ['eng Stonn', 'enger Stonn'],\n d: ['een Dag', 'engem Dag'],\n M: ['ee Mount', 'engem Mount'],\n y: ['ee Joer', 'engem Joer']\n };\n return withoutSuffix ? format[key][0] : format[key][1];\n }\n\n function processFutureTime(string) {\n var number = string.substr(0, string.indexOf(' '));\n\n if (eifelerRegelAppliesToNumber(number)) {\n return 'a ' + string;\n }\n\n return 'an ' + string;\n }\n\n function processPastTime(string) {\n var number = string.substr(0, string.indexOf(' '));\n\n if (eifelerRegelAppliesToNumber(number)) {\n return 'viru ' + string;\n }\n\n return 'virun ' + string;\n }\n /**\n * Returns true if the word before the given number loses the '-n' ending.\n * e.g. 'an 10 Deeg' but 'a 5 Deeg'\n *\n * @param number {integer}\n * @returns {boolean}\n */\n\n\n function eifelerRegelAppliesToNumber(number) {\n number = parseInt(number, 10);\n\n if (isNaN(number)) {\n return false;\n }\n\n if (number < 0) {\n // Negative Number --> always true\n return true;\n } else if (number < 10) {\n // Only 1 digit\n if (4 <= number && number <= 7) {\n return true;\n }\n\n return false;\n } else if (number < 100) {\n // 2 digits\n var lastDigit = number % 10,\n firstDigit = number / 10;\n\n if (lastDigit === 0) {\n return eifelerRegelAppliesToNumber(firstDigit);\n }\n\n return eifelerRegelAppliesToNumber(lastDigit);\n } else if (number < 10000) {\n // 3 or 4 digits --> recursively check first digit\n while (number >= 10) {\n number = number / 10;\n }\n\n return eifelerRegelAppliesToNumber(number);\n } else {\n // Anything larger than 4 digits: recursively check first n-3 digits\n number = number / 1000;\n return eifelerRegelAppliesToNumber(number);\n }\n }\n\n var lb = moment.defineLocale('lb', {\n months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),\n monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),\n monthsParseExact: true,\n weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),\n weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),\n weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm [Auer]',\n LTS: 'H:mm:ss [Auer]',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm [Auer]',\n LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'\n },\n calendar: {\n sameDay: '[Haut um] LT',\n sameElse: 'L',\n nextDay: '[Muer um] LT',\n nextWeek: 'dddd [um] LT',\n lastDay: '[Gëschter um] LT',\n lastWeek: function lastWeek() {\n // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule\n switch (this.day()) {\n case 2:\n case 4:\n return '[Leschten] dddd [um] LT';\n\n default:\n return '[Leschte] dddd [um] LT';\n }\n }\n },\n relativeTime: {\n future: processFutureTime,\n past: processPastTime,\n s: 'e puer Sekonnen',\n ss: '%d Sekonnen',\n m: processRelativeTime,\n mm: '%d Minutten',\n h: processRelativeTime,\n hh: '%d Stonnen',\n d: processRelativeTime,\n dd: '%d Deeg',\n M: processRelativeTime,\n MM: '%d Méint',\n y: processRelativeTime,\n yy: '%d Joer'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return lb;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Lao [lo]\n//! author : Ryan Hart : https://github.com/ryanhart2\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var lo = moment.defineLocale('lo', {\n months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),\n monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),\n weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),\n weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),\n weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'ວັນdddd D MMMM YYYY HH:mm'\n },\n meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,\n isPM: function isPM(input) {\n return input === 'ຕອນແລງ';\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 12) {\n return 'ຕອນເຊົ້າ';\n } else {\n return 'ຕອນແລງ';\n }\n },\n calendar: {\n sameDay: '[ມື້ນີ້ເວລາ] LT',\n nextDay: '[ມື້ອື່ນເວລາ] LT',\n nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',\n lastDay: '[ມື້ວານນີ້ເວລາ] LT',\n lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'ອີກ %s',\n past: '%sຜ່ານມາ',\n s: 'ບໍ່ເທົ່າໃດວິນາທີ',\n ss: '%d ວິນາທີ',\n m: '1 ນາທີ',\n mm: '%d ນາທີ',\n h: '1 ຊົ່ວໂມງ',\n hh: '%d ຊົ່ວໂມງ',\n d: '1 ມື້',\n dd: '%d ມື້',\n M: '1 ເດືອນ',\n MM: '%d ເດືອນ',\n y: '1 ປີ',\n yy: '%d ປີ'\n },\n dayOfMonthOrdinalParse: /(ທີ່)\\d{1,2}/,\n ordinal: function ordinal(number) {\n return 'ທີ່' + number;\n }\n });\n return lo;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Lithuanian [lt]\n//! author : Mindaugas Mozūras : https://github.com/mmozuras\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var units = {\n ss: 'sekundė_sekundžių_sekundes',\n m: 'minutė_minutės_minutę',\n mm: 'minutės_minučių_minutes',\n h: 'valanda_valandos_valandą',\n hh: 'valandos_valandų_valandas',\n d: 'diena_dienos_dieną',\n dd: 'dienos_dienų_dienas',\n M: 'mėnuo_mėnesio_mėnesį',\n MM: 'mėnesiai_mėnesių_mėnesius',\n y: 'metai_metų_metus',\n yy: 'metai_metų_metus'\n };\n\n function translateSeconds(number, withoutSuffix, key, isFuture) {\n if (withoutSuffix) {\n return 'kelios sekundės';\n } else {\n return isFuture ? 'kelių sekundžių' : 'kelias sekundes';\n }\n }\n\n function translateSingular(number, withoutSuffix, key, isFuture) {\n return withoutSuffix ? forms(key)[0] : isFuture ? forms(key)[1] : forms(key)[2];\n }\n\n function special(number) {\n return number % 10 === 0 || number > 10 && number < 20;\n }\n\n function forms(key) {\n return units[key].split('_');\n }\n\n function translate(number, withoutSuffix, key, isFuture) {\n var result = number + ' ';\n\n if (number === 1) {\n return result + translateSingular(number, withoutSuffix, key[0], isFuture);\n } else if (withoutSuffix) {\n return result + (special(number) ? forms(key)[1] : forms(key)[0]);\n } else {\n if (isFuture) {\n return result + forms(key)[1];\n } else {\n return result + (special(number) ? forms(key)[1] : forms(key)[2]);\n }\n }\n }\n\n var lt = moment.defineLocale('lt', {\n months: {\n format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),\n standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'),\n isFormat: /D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?|MMMM?(\\[[^\\[\\]]*\\]|\\s)+D[oD]?/\n },\n monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),\n weekdays: {\n format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),\n standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),\n isFormat: /dddd HH:mm/\n },\n weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),\n weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'YYYY [m.] MMMM D [d.]',\n LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',\n LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',\n l: 'YYYY-MM-DD',\n ll: 'YYYY [m.] MMMM D [d.]',\n lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',\n llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'\n },\n calendar: {\n sameDay: '[Šiandien] LT',\n nextDay: '[Rytoj] LT',\n nextWeek: 'dddd LT',\n lastDay: '[Vakar] LT',\n lastWeek: '[Praėjusį] dddd LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'po %s',\n past: 'prieš %s',\n s: translateSeconds,\n ss: translate,\n m: translateSingular,\n mm: translate,\n h: translateSingular,\n hh: translate,\n d: translateSingular,\n dd: translate,\n M: translateSingular,\n MM: translate,\n y: translateSingular,\n yy: translate\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-oji/,\n ordinal: function ordinal(number) {\n return number + '-oji';\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return lt;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Latvian [lv]\n//! author : Kristaps Karlsons : https://github.com/skakri\n//! author : Jānis Elmeris : https://github.com/JanisE\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var units = {\n ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'),\n m: 'minūtes_minūtēm_minūte_minūtes'.split('_'),\n mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'),\n h: 'stundas_stundām_stunda_stundas'.split('_'),\n hh: 'stundas_stundām_stunda_stundas'.split('_'),\n d: 'dienas_dienām_diena_dienas'.split('_'),\n dd: 'dienas_dienām_diena_dienas'.split('_'),\n M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),\n MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),\n y: 'gada_gadiem_gads_gadi'.split('_'),\n yy: 'gada_gadiem_gads_gadi'.split('_')\n };\n /**\n * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.\n */\n\n function format(forms, number, withoutSuffix) {\n if (withoutSuffix) {\n // E.g. \"21 minūte\", \"3 minūtes\".\n return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];\n } else {\n // E.g. \"21 minūtes\" as in \"pēc 21 minūtes\".\n // E.g. \"3 minūtēm\" as in \"pēc 3 minūtēm\".\n return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];\n }\n }\n\n function relativeTimeWithPlural(number, withoutSuffix, key) {\n return number + ' ' + format(units[key], number, withoutSuffix);\n }\n\n function relativeTimeWithSingular(number, withoutSuffix, key) {\n return format(units[key], number, withoutSuffix);\n }\n\n function relativeSeconds(number, withoutSuffix) {\n return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';\n }\n\n var lv = moment.defineLocale('lv', {\n months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),\n monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),\n weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),\n weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),\n weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY.',\n LL: 'YYYY. [gada] D. MMMM',\n LLL: 'YYYY. [gada] D. MMMM, HH:mm',\n LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm'\n },\n calendar: {\n sameDay: '[Šodien pulksten] LT',\n nextDay: '[Rīt pulksten] LT',\n nextWeek: 'dddd [pulksten] LT',\n lastDay: '[Vakar pulksten] LT',\n lastWeek: '[Pagājušā] dddd [pulksten] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'pēc %s',\n past: 'pirms %s',\n s: relativeSeconds,\n ss: relativeTimeWithPlural,\n m: relativeTimeWithSingular,\n mm: relativeTimeWithPlural,\n h: relativeTimeWithSingular,\n hh: relativeTimeWithPlural,\n d: relativeTimeWithSingular,\n dd: relativeTimeWithPlural,\n M: relativeTimeWithSingular,\n MM: relativeTimeWithPlural,\n y: relativeTimeWithSingular,\n yy: relativeTimeWithPlural\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return lv;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Montenegrin [me]\n//! author : Miodrag Nikač : https://github.com/miodragnikac\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var translator = {\n words: {\n //Different grammatical cases\n ss: ['sekund', 'sekunda', 'sekundi'],\n m: ['jedan minut', 'jednog minuta'],\n mm: ['minut', 'minuta', 'minuta'],\n h: ['jedan sat', 'jednog sata'],\n hh: ['sat', 'sata', 'sati'],\n dd: ['dan', 'dana', 'dana'],\n MM: ['mjesec', 'mjeseca', 'mjeseci'],\n yy: ['godina', 'godine', 'godina']\n },\n correctGrammaticalCase: function correctGrammaticalCase(number, wordKey) {\n return number === 1 ? wordKey[0] : number >= 2 && number <= 4 ? wordKey[1] : wordKey[2];\n },\n translate: function translate(number, withoutSuffix, key) {\n var wordKey = translator.words[key];\n\n if (key.length === 1) {\n return withoutSuffix ? wordKey[0] : wordKey[1];\n } else {\n return number + ' ' + translator.correctGrammaticalCase(number, wordKey);\n }\n }\n };\n var me = moment.defineLocale('me', {\n months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),\n monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),\n monthsParseExact: true,\n weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),\n weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),\n weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd, D. MMMM YYYY H:mm'\n },\n calendar: {\n sameDay: '[danas u] LT',\n nextDay: '[sjutra u] LT',\n nextWeek: function nextWeek() {\n switch (this.day()) {\n case 0:\n return '[u] [nedjelju] [u] LT';\n\n case 3:\n return '[u] [srijedu] [u] LT';\n\n case 6:\n return '[u] [subotu] [u] LT';\n\n case 1:\n case 2:\n case 4:\n case 5:\n return '[u] dddd [u] LT';\n }\n },\n lastDay: '[juče u] LT',\n lastWeek: function lastWeek() {\n var lastWeekDays = ['[prošle] [nedjelje] [u] LT', '[prošlog] [ponedjeljka] [u] LT', '[prošlog] [utorka] [u] LT', '[prošle] [srijede] [u] LT', '[prošlog] [četvrtka] [u] LT', '[prošlog] [petka] [u] LT', '[prošle] [subote] [u] LT'];\n return lastWeekDays[this.day()];\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'za %s',\n past: 'prije %s',\n s: 'nekoliko sekundi',\n ss: translator.translate,\n m: translator.translate,\n mm: translator.translate,\n h: translator.translate,\n hh: translator.translate,\n d: 'dan',\n dd: translator.translate,\n M: 'mjesec',\n MM: translator.translate,\n y: 'godinu',\n yy: translator.translate\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n\n }\n });\n return me;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Maori [mi]\n//! author : John Corrigan : https://github.com/johnideal\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var mi = moment.defineLocale('mi', {\n months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split('_'),\n monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'),\n monthsRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,3}/i,\n monthsStrictRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,3}/i,\n monthsShortRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,3}/i,\n monthsShortStrictRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,2}/i,\n weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),\n weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),\n weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [i] HH:mm',\n LLLL: 'dddd, D MMMM YYYY [i] HH:mm'\n },\n calendar: {\n sameDay: '[i teie mahana, i] LT',\n nextDay: '[apopo i] LT',\n nextWeek: 'dddd [i] LT',\n lastDay: '[inanahi i] LT',\n lastWeek: 'dddd [whakamutunga i] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'i roto i %s',\n past: '%s i mua',\n s: 'te hēkona ruarua',\n ss: '%d hēkona',\n m: 'he meneti',\n mm: '%d meneti',\n h: 'te haora',\n hh: '%d haora',\n d: 'he ra',\n dd: '%d ra',\n M: 'he marama',\n MM: '%d marama',\n y: 'he tau',\n yy: '%d tau'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return mi;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Macedonian [mk]\n//! author : Borislav Mickov : https://github.com/B0k0\n//! author : Sashko Todorov : https://github.com/bkyceh\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var mk = moment.defineLocale('mk', {\n months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),\n monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),\n weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),\n weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),\n weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'D.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY H:mm',\n LLLL: 'dddd, D MMMM YYYY H:mm'\n },\n calendar: {\n sameDay: '[Денес во] LT',\n nextDay: '[Утре во] LT',\n nextWeek: '[Во] dddd [во] LT',\n lastDay: '[Вчера во] LT',\n lastWeek: function lastWeek() {\n switch (this.day()) {\n case 0:\n case 3:\n case 6:\n return '[Изминатата] dddd [во] LT';\n\n case 1:\n case 2:\n case 4:\n case 5:\n return '[Изминатиот] dddd [во] LT';\n }\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'за %s',\n past: 'пред %s',\n s: 'неколку секунди',\n ss: '%d секунди',\n m: 'една минута',\n mm: '%d минути',\n h: 'еден час',\n hh: '%d часа',\n d: 'еден ден',\n dd: '%d дена',\n M: 'еден месец',\n MM: '%d месеци',\n y: 'една година',\n yy: '%d години'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(ев|ен|ти|ви|ри|ми)/,\n ordinal: function ordinal(number) {\n var lastDigit = number % 10,\n last2Digits = number % 100;\n\n if (number === 0) {\n return number + '-ев';\n } else if (last2Digits === 0) {\n return number + '-ен';\n } else if (last2Digits > 10 && last2Digits < 20) {\n return number + '-ти';\n } else if (lastDigit === 1) {\n return number + '-ви';\n } else if (lastDigit === 2) {\n return number + '-ри';\n } else if (lastDigit === 7 || lastDigit === 8) {\n return number + '-ми';\n } else {\n return number + '-ти';\n }\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n\n }\n });\n return mk;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Malayalam [ml]\n//! author : Floyd Pink : https://github.com/floydpink\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var ml = moment.defineLocale('ml', {\n months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),\n monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),\n monthsParseExact: true,\n weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),\n weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),\n weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),\n longDateFormat: {\n LT: 'A h:mm -നു',\n LTS: 'A h:mm:ss -നു',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm -നു',\n LLLL: 'dddd, D MMMM YYYY, A h:mm -നു'\n },\n calendar: {\n sameDay: '[ഇന്ന്] LT',\n nextDay: '[നാളെ] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[ഇന്നലെ] LT',\n lastWeek: '[കഴിഞ്ഞ] dddd, LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s കഴിഞ്ഞ്',\n past: '%s മുൻപ്',\n s: 'അൽപ നിമിഷങ്ങൾ',\n ss: '%d സെക്കൻഡ്',\n m: 'ഒരു മിനിറ്റ്',\n mm: '%d മിനിറ്റ്',\n h: 'ഒരു മണിക്കൂർ',\n hh: '%d മണിക്കൂർ',\n d: 'ഒരു ദിവസം',\n dd: '%d ദിവസം',\n M: 'ഒരു മാസം',\n MM: '%d മാസം',\n y: 'ഒരു വർഷം',\n yy: '%d വർഷം'\n },\n meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,\n meridiemHour: function meridiemHour(hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n\n if (meridiem === 'രാത്രി' && hour >= 4 || meridiem === 'ഉച്ച കഴിഞ്ഞ്' || meridiem === 'വൈകുന്നേരം') {\n return hour + 12;\n } else {\n return hour;\n }\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 4) {\n return 'രാത്രി';\n } else if (hour < 12) {\n return 'രാവിലെ';\n } else if (hour < 17) {\n return 'ഉച്ച കഴിഞ്ഞ്';\n } else if (hour < 20) {\n return 'വൈകുന്നേരം';\n } else {\n return 'രാത്രി';\n }\n }\n });\n return ml;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Mongolian [mn]\n//! author : Javkhlantugs Nyamdorj : https://github.com/javkhaanj7\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n function translate(number, withoutSuffix, key, isFuture) {\n switch (key) {\n case 's':\n return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын';\n\n case 'ss':\n return number + (withoutSuffix ? ' секунд' : ' секундын');\n\n case 'm':\n case 'mm':\n return number + (withoutSuffix ? ' минут' : ' минутын');\n\n case 'h':\n case 'hh':\n return number + (withoutSuffix ? ' цаг' : ' цагийн');\n\n case 'd':\n case 'dd':\n return number + (withoutSuffix ? ' өдөр' : ' өдрийн');\n\n case 'M':\n case 'MM':\n return number + (withoutSuffix ? ' сар' : ' сарын');\n\n case 'y':\n case 'yy':\n return number + (withoutSuffix ? ' жил' : ' жилийн');\n\n default:\n return number;\n }\n }\n\n var mn = moment.defineLocale('mn', {\n months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split('_'),\n monthsShort: '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split('_'),\n monthsParseExact: true,\n weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),\n weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),\n weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'YYYY оны MMMMын D',\n LLL: 'YYYY оны MMMMын D HH:mm',\n LLLL: 'dddd, YYYY оны MMMMын D HH:mm'\n },\n meridiemParse: /ҮӨ|ҮХ/i,\n isPM: function isPM(input) {\n return input === 'ҮХ';\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 12) {\n return 'ҮӨ';\n } else {\n return 'ҮХ';\n }\n },\n calendar: {\n sameDay: '[Өнөөдөр] LT',\n nextDay: '[Маргааш] LT',\n nextWeek: '[Ирэх] dddd LT',\n lastDay: '[Өчигдөр] LT',\n lastWeek: '[Өнгөрсөн] dddd LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s дараа',\n past: '%s өмнө',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate\n },\n dayOfMonthOrdinalParse: /\\d{1,2} өдөр/,\n ordinal: function ordinal(number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + ' өдөр';\n\n default:\n return number;\n }\n }\n });\n return mn;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Marathi [mr]\n//! author : Harshad Kale : https://github.com/kalehv\n//! author : Vivek Athalye : https://github.com/vnathalye\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var symbolMap = {\n 1: '१',\n 2: '२',\n 3: '३',\n 4: '४',\n 5: '५',\n 6: '६',\n 7: '७',\n 8: '८',\n 9: '९',\n 0: '०'\n },\n numberMap = {\n '१': '1',\n '२': '2',\n '३': '3',\n '४': '4',\n '५': '5',\n '६': '6',\n '७': '7',\n '८': '8',\n '९': '9',\n '०': '0'\n };\n\n function relativeTimeMr(number, withoutSuffix, string, isFuture) {\n var output = '';\n\n if (withoutSuffix) {\n switch (string) {\n case 's':\n output = 'काही सेकंद';\n break;\n\n case 'ss':\n output = '%d सेकंद';\n break;\n\n case 'm':\n output = 'एक मिनिट';\n break;\n\n case 'mm':\n output = '%d मिनिटे';\n break;\n\n case 'h':\n output = 'एक तास';\n break;\n\n case 'hh':\n output = '%d तास';\n break;\n\n case 'd':\n output = 'एक दिवस';\n break;\n\n case 'dd':\n output = '%d दिवस';\n break;\n\n case 'M':\n output = 'एक महिना';\n break;\n\n case 'MM':\n output = '%d महिने';\n break;\n\n case 'y':\n output = 'एक वर्ष';\n break;\n\n case 'yy':\n output = '%d वर्षे';\n break;\n }\n } else {\n switch (string) {\n case 's':\n output = 'काही सेकंदां';\n break;\n\n case 'ss':\n output = '%d सेकंदां';\n break;\n\n case 'm':\n output = 'एका मिनिटा';\n break;\n\n case 'mm':\n output = '%d मिनिटां';\n break;\n\n case 'h':\n output = 'एका तासा';\n break;\n\n case 'hh':\n output = '%d तासां';\n break;\n\n case 'd':\n output = 'एका दिवसा';\n break;\n\n case 'dd':\n output = '%d दिवसां';\n break;\n\n case 'M':\n output = 'एका महिन्या';\n break;\n\n case 'MM':\n output = '%d महिन्यां';\n break;\n\n case 'y':\n output = 'एका वर्षा';\n break;\n\n case 'yy':\n output = '%d वर्षां';\n break;\n }\n }\n\n return output.replace(/%d/i, number);\n }\n\n var mr = moment.defineLocale('mr', {\n months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),\n monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),\n monthsParseExact: true,\n weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),\n weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),\n weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),\n longDateFormat: {\n LT: 'A h:mm वाजता',\n LTS: 'A h:mm:ss वाजता',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm वाजता',\n LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता'\n },\n calendar: {\n sameDay: '[आज] LT',\n nextDay: '[उद्या] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[काल] LT',\n lastWeek: '[मागील] dddd, LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%sमध्ये',\n past: '%sपूर्वी',\n s: relativeTimeMr,\n ss: relativeTimeMr,\n m: relativeTimeMr,\n mm: relativeTimeMr,\n h: relativeTimeMr,\n hh: relativeTimeMr,\n d: relativeTimeMr,\n dd: relativeTimeMr,\n M: relativeTimeMr,\n MM: relativeTimeMr,\n y: relativeTimeMr,\n yy: relativeTimeMr\n },\n preparse: function preparse(string) {\n return string.replace(/[१२३४५६७८९०]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function postformat(string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,\n meridiemHour: function meridiemHour(hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n\n if (meridiem === 'पहाटे' || meridiem === 'सकाळी') {\n return hour;\n } else if (meridiem === 'दुपारी' || meridiem === 'सायंकाळी' || meridiem === 'रात्री') {\n return hour >= 12 ? hour : hour + 12;\n }\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour >= 0 && hour < 6) {\n return 'पहाटे';\n } else if (hour < 12) {\n return 'सकाळी';\n } else if (hour < 17) {\n return 'दुपारी';\n } else if (hour < 20) {\n return 'सायंकाळी';\n } else {\n return 'रात्री';\n }\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n\n }\n });\n return mr;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Malay [ms]\n//! author : Weldan Jamili : https://github.com/weldan\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var ms = moment.defineLocale('ms', {\n months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),\n monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),\n weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),\n weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),\n weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [pukul] HH.mm',\n LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'\n },\n meridiemParse: /pagi|tengahari|petang|malam/,\n meridiemHour: function meridiemHour(hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n\n if (meridiem === 'pagi') {\n return hour;\n } else if (meridiem === 'tengahari') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'petang' || meridiem === 'malam') {\n return hour + 12;\n }\n },\n meridiem: function meridiem(hours, minutes, isLower) {\n if (hours < 11) {\n return 'pagi';\n } else if (hours < 15) {\n return 'tengahari';\n } else if (hours < 19) {\n return 'petang';\n } else {\n return 'malam';\n }\n },\n calendar: {\n sameDay: '[Hari ini pukul] LT',\n nextDay: '[Esok pukul] LT',\n nextWeek: 'dddd [pukul] LT',\n lastDay: '[Kelmarin pukul] LT',\n lastWeek: 'dddd [lepas pukul] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'dalam %s',\n past: '%s yang lepas',\n s: 'beberapa saat',\n ss: '%d saat',\n m: 'seminit',\n mm: '%d minit',\n h: 'sejam',\n hh: '%d jam',\n d: 'sehari',\n dd: '%d hari',\n M: 'sebulan',\n MM: '%d bulan',\n y: 'setahun',\n yy: '%d tahun'\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n\n }\n });\n return ms;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Malay [ms-my]\n//! note : DEPRECATED, the correct one is [ms]\n//! author : Weldan Jamili : https://github.com/weldan\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var msMy = moment.defineLocale('ms-my', {\n months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),\n monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),\n weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),\n weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),\n weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [pukul] HH.mm',\n LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'\n },\n meridiemParse: /pagi|tengahari|petang|malam/,\n meridiemHour: function meridiemHour(hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n\n if (meridiem === 'pagi') {\n return hour;\n } else if (meridiem === 'tengahari') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'petang' || meridiem === 'malam') {\n return hour + 12;\n }\n },\n meridiem: function meridiem(hours, minutes, isLower) {\n if (hours < 11) {\n return 'pagi';\n } else if (hours < 15) {\n return 'tengahari';\n } else if (hours < 19) {\n return 'petang';\n } else {\n return 'malam';\n }\n },\n calendar: {\n sameDay: '[Hari ini pukul] LT',\n nextDay: '[Esok pukul] LT',\n nextWeek: 'dddd [pukul] LT',\n lastDay: '[Kelmarin pukul] LT',\n lastWeek: 'dddd [lepas pukul] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'dalam %s',\n past: '%s yang lepas',\n s: 'beberapa saat',\n ss: '%d saat',\n m: 'seminit',\n mm: '%d minit',\n h: 'sejam',\n hh: '%d jam',\n d: 'sehari',\n dd: '%d hari',\n M: 'sebulan',\n MM: '%d bulan',\n y: 'setahun',\n yy: '%d tahun'\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n\n }\n });\n return msMy;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Maltese (Malta) [mt]\n//! author : Alessandro Maruccia : https://github.com/alesma\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var mt = moment.defineLocale('mt', {\n months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split('_'),\n monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),\n weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split('_'),\n weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),\n weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Illum fil-]LT',\n nextDay: '[Għada fil-]LT',\n nextWeek: 'dddd [fil-]LT',\n lastDay: '[Il-bieraħ fil-]LT',\n lastWeek: 'dddd [li għadda] [fil-]LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'f’ %s',\n past: '%s ilu',\n s: 'ftit sekondi',\n ss: '%d sekondi',\n m: 'minuta',\n mm: '%d minuti',\n h: 'siegħa',\n hh: '%d siegħat',\n d: 'ġurnata',\n dd: '%d ġranet',\n M: 'xahar',\n MM: '%d xhur',\n y: 'sena',\n yy: '%d sni'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return mt;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Burmese [my]\n//! author : Squar team, mysquar.com\n//! author : David Rossellat : https://github.com/gholadr\n//! author : Tin Aung Lin : https://github.com/thanyawzinmin\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var symbolMap = {\n 1: '၁',\n 2: '၂',\n 3: '၃',\n 4: '၄',\n 5: '၅',\n 6: '၆',\n 7: '၇',\n 8: '၈',\n 9: '၉',\n 0: '၀'\n },\n numberMap = {\n '၁': '1',\n '၂': '2',\n '၃': '3',\n '၄': '4',\n '၅': '5',\n '၆': '6',\n '၇': '7',\n '၈': '8',\n '၉': '9',\n '၀': '0'\n };\n var my = moment.defineLocale('my', {\n months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),\n monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),\n weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),\n weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),\n weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[ယနေ.] LT [မှာ]',\n nextDay: '[မနက်ဖြန်] LT [မှာ]',\n nextWeek: 'dddd LT [မှာ]',\n lastDay: '[မနေ.က] LT [မှာ]',\n lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'လာမည့် %s မှာ',\n past: 'လွန်ခဲ့သော %s က',\n s: 'စက္ကန်.အနည်းငယ်',\n ss: '%d စက္ကန့်',\n m: 'တစ်မိနစ်',\n mm: '%d မိနစ်',\n h: 'တစ်နာရီ',\n hh: '%d နာရီ',\n d: 'တစ်ရက်',\n dd: '%d ရက်',\n M: 'တစ်လ',\n MM: '%d လ',\n y: 'တစ်နှစ်',\n yy: '%d နှစ်'\n },\n preparse: function preparse(string) {\n return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function postformat(string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return my;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Norwegian Bokmål [nb]\n//! authors : Espen Hovlandsdal : https://github.com/rexxars\n//! Sigurd Gartmann : https://github.com/sigurdga\n//! Stephen Ramthun : https://github.com/stephenramthun\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var nb = moment.defineLocale('nb', {\n months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),\n monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),\n monthsParseExact: true,\n weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),\n weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),\n weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY [kl.] HH:mm',\n LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm'\n },\n calendar: {\n sameDay: '[i dag kl.] LT',\n nextDay: '[i morgen kl.] LT',\n nextWeek: 'dddd [kl.] LT',\n lastDay: '[i går kl.] LT',\n lastWeek: '[forrige] dddd [kl.] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'om %s',\n past: '%s siden',\n s: 'noen sekunder',\n ss: '%d sekunder',\n m: 'ett minutt',\n mm: '%d minutter',\n h: 'en time',\n hh: '%d timer',\n d: 'en dag',\n dd: '%d dager',\n w: 'en uke',\n ww: '%d uker',\n M: 'en måned',\n MM: '%d måneder',\n y: 'ett år',\n yy: '%d år'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return nb;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Nepalese [ne]\n//! author : suvash : https://github.com/suvash\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var symbolMap = {\n 1: '१',\n 2: '२',\n 3: '३',\n 4: '४',\n 5: '५',\n 6: '६',\n 7: '७',\n 8: '८',\n 9: '९',\n 0: '०'\n },\n numberMap = {\n '१': '1',\n '२': '2',\n '३': '3',\n '४': '4',\n '५': '5',\n '६': '6',\n '७': '7',\n '८': '8',\n '९': '9',\n '०': '0'\n };\n var ne = moment.defineLocale('ne', {\n months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),\n monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),\n monthsParseExact: true,\n weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),\n weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),\n weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'Aको h:mm बजे',\n LTS: 'Aको h:mm:ss बजे',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, Aको h:mm बजे',\n LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे'\n },\n preparse: function preparse(string) {\n return string.replace(/[१२३४५६७८९०]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function postformat(string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n meridiemParse: /राति|बिहान|दिउँसो|साँझ/,\n meridiemHour: function meridiemHour(hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n\n if (meridiem === 'राति') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'बिहान') {\n return hour;\n } else if (meridiem === 'दिउँसो') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'साँझ') {\n return hour + 12;\n }\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 3) {\n return 'राति';\n } else if (hour < 12) {\n return 'बिहान';\n } else if (hour < 16) {\n return 'दिउँसो';\n } else if (hour < 20) {\n return 'साँझ';\n } else {\n return 'राति';\n }\n },\n calendar: {\n sameDay: '[आज] LT',\n nextDay: '[भोलि] LT',\n nextWeek: '[आउँदो] dddd[,] LT',\n lastDay: '[हिजो] LT',\n lastWeek: '[गएको] dddd[,] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%sमा',\n past: '%s अगाडि',\n s: 'केही क्षण',\n ss: '%d सेकेण्ड',\n m: 'एक मिनेट',\n mm: '%d मिनेट',\n h: 'एक घण्टा',\n hh: '%d घण्टा',\n d: 'एक दिन',\n dd: '%d दिन',\n M: 'एक महिना',\n MM: '%d महिना',\n y: 'एक बर्ष',\n yy: '%d बर्ष'\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n\n }\n });\n return ne;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Dutch [nl]\n//! author : Joris Röling : https://github.com/jorisroling\n//! author : Jacob Middag : https://github.com/middagj\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),\n monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),\n monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i],\n monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\\.?|feb\\.?|mrt\\.?|apr\\.?|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i;\n var nl = moment.defineLocale('nl', {\n months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),\n monthsShort: function monthsShort(m, format) {\n if (!m) {\n return monthsShortWithDots;\n } else if (/-MMM-/.test(format)) {\n return monthsShortWithoutDots[m.month()];\n } else {\n return monthsShortWithDots[m.month()];\n }\n },\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,\n monthsShortStrictRegex: /^(jan\\.?|feb\\.?|mrt\\.?|apr\\.?|mei|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),\n weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),\n weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD-MM-YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[vandaag om] LT',\n nextDay: '[morgen om] LT',\n nextWeek: 'dddd [om] LT',\n lastDay: '[gisteren om] LT',\n lastWeek: '[afgelopen] dddd [om] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'over %s',\n past: '%s geleden',\n s: 'een paar seconden',\n ss: '%d seconden',\n m: 'één minuut',\n mm: '%d minuten',\n h: 'één uur',\n hh: '%d uur',\n d: 'één dag',\n dd: '%d dagen',\n w: 'één week',\n ww: '%d weken',\n M: 'één maand',\n MM: '%d maanden',\n y: 'één jaar',\n yy: '%d jaar'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(ste|de)/,\n ordinal: function ordinal(number) {\n return number + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de');\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return nl;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Dutch (Belgium) [nl-be]\n//! author : Joris Röling : https://github.com/jorisroling\n//! author : Jacob Middag : https://github.com/middagj\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),\n monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),\n monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i],\n monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\\.?|feb\\.?|mrt\\.?|apr\\.?|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i;\n var nlBe = moment.defineLocale('nl-be', {\n months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),\n monthsShort: function monthsShort(m, format) {\n if (!m) {\n return monthsShortWithDots;\n } else if (/-MMM-/.test(format)) {\n return monthsShortWithoutDots[m.month()];\n } else {\n return monthsShortWithDots[m.month()];\n }\n },\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,\n monthsShortStrictRegex: /^(jan\\.?|feb\\.?|mrt\\.?|apr\\.?|mei|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),\n weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),\n weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[vandaag om] LT',\n nextDay: '[morgen om] LT',\n nextWeek: 'dddd [om] LT',\n lastDay: '[gisteren om] LT',\n lastWeek: '[afgelopen] dddd [om] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'over %s',\n past: '%s geleden',\n s: 'een paar seconden',\n ss: '%d seconden',\n m: 'één minuut',\n mm: '%d minuten',\n h: 'één uur',\n hh: '%d uur',\n d: 'één dag',\n dd: '%d dagen',\n M: 'één maand',\n MM: '%d maanden',\n y: 'één jaar',\n yy: '%d jaar'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(ste|de)/,\n ordinal: function ordinal(number) {\n return number + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de');\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return nlBe;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Nynorsk [nn]\n//! authors : https://github.com/mechuwind\n//! Stephen Ramthun : https://github.com/stephenramthun\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var nn = moment.defineLocale('nn', {\n months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),\n monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),\n monthsParseExact: true,\n weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),\n weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),\n weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY [kl.] H:mm',\n LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm'\n },\n calendar: {\n sameDay: '[I dag klokka] LT',\n nextDay: '[I morgon klokka] LT',\n nextWeek: 'dddd [klokka] LT',\n lastDay: '[I går klokka] LT',\n lastWeek: '[Føregåande] dddd [klokka] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'om %s',\n past: '%s sidan',\n s: 'nokre sekund',\n ss: '%d sekund',\n m: 'eit minutt',\n mm: '%d minutt',\n h: 'ein time',\n hh: '%d timar',\n d: 'ein dag',\n dd: '%d dagar',\n w: 'ei veke',\n ww: '%d veker',\n M: 'ein månad',\n MM: '%d månader',\n y: 'eit år',\n yy: '%d år'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return nn;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Occitan, lengadocian dialecte [oc-lnc]\n//! author : Quentin PAGÈS : https://github.com/Quenty31\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var ocLnc = moment.defineLocale('oc-lnc', {\n months: {\n standalone: 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split('_'),\n format: \"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre\".split('_'),\n isFormat: /D[oD]?(\\s)+MMMM/\n },\n monthsShort: 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split('_'),\n monthsParseExact: true,\n weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split('_'),\n weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),\n weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM [de] YYYY',\n ll: 'D MMM YYYY',\n LLL: 'D MMMM [de] YYYY [a] H:mm',\n lll: 'D MMM YYYY, H:mm',\n LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',\n llll: 'ddd D MMM YYYY, H:mm'\n },\n calendar: {\n sameDay: '[uèi a] LT',\n nextDay: '[deman a] LT',\n nextWeek: 'dddd [a] LT',\n lastDay: '[ièr a] LT',\n lastWeek: 'dddd [passat a] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: \"d'aquí %s\",\n past: 'fa %s',\n s: 'unas segondas',\n ss: '%d segondas',\n m: 'una minuta',\n mm: '%d minutas',\n h: 'una ora',\n hh: '%d oras',\n d: 'un jorn',\n dd: '%d jorns',\n M: 'un mes',\n MM: '%d meses',\n y: 'un an',\n yy: '%d ans'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(r|n|t|è|a)/,\n ordinal: function ordinal(number, period) {\n var output = number === 1 ? 'r' : number === 2 ? 'n' : number === 3 ? 'r' : number === 4 ? 't' : 'è';\n\n if (period === 'w' || period === 'W') {\n output = 'a';\n }\n\n return number + output;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4\n }\n });\n return ocLnc;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Punjabi (India) [pa-in]\n//! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var symbolMap = {\n 1: '੧',\n 2: '੨',\n 3: '੩',\n 4: '੪',\n 5: '੫',\n 6: '੬',\n 7: '੭',\n 8: '੮',\n 9: '੯',\n 0: '੦'\n },\n numberMap = {\n '੧': '1',\n '੨': '2',\n '੩': '3',\n '੪': '4',\n '੫': '5',\n '੬': '6',\n '੭': '7',\n '੮': '8',\n '੯': '9',\n '੦': '0'\n };\n var paIn = moment.defineLocale('pa-in', {\n // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.\n months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),\n monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),\n weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'),\n weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),\n weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),\n longDateFormat: {\n LT: 'A h:mm ਵਜੇ',\n LTS: 'A h:mm:ss ਵਜੇ',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm ਵਜੇ',\n LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ'\n },\n calendar: {\n sameDay: '[ਅਜ] LT',\n nextDay: '[ਕਲ] LT',\n nextWeek: '[ਅਗਲਾ] dddd, LT',\n lastDay: '[ਕਲ] LT',\n lastWeek: '[ਪਿਛਲੇ] dddd, LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s ਵਿੱਚ',\n past: '%s ਪਿਛਲੇ',\n s: 'ਕੁਝ ਸਕਿੰਟ',\n ss: '%d ਸਕਿੰਟ',\n m: 'ਇਕ ਮਿੰਟ',\n mm: '%d ਮਿੰਟ',\n h: 'ਇੱਕ ਘੰਟਾ',\n hh: '%d ਘੰਟੇ',\n d: 'ਇੱਕ ਦਿਨ',\n dd: '%d ਦਿਨ',\n M: 'ਇੱਕ ਮਹੀਨਾ',\n MM: '%d ਮਹੀਨੇ',\n y: 'ਇੱਕ ਸਾਲ',\n yy: '%d ਸਾਲ'\n },\n preparse: function preparse(string) {\n return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function postformat(string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n // Punjabi notation for meridiems are quite fuzzy in practice. While there exists\n // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.\n meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,\n meridiemHour: function meridiemHour(hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n\n if (meridiem === 'ਰਾਤ') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'ਸਵੇਰ') {\n return hour;\n } else if (meridiem === 'ਦੁਪਹਿਰ') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'ਸ਼ਾਮ') {\n return hour + 12;\n }\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 4) {\n return 'ਰਾਤ';\n } else if (hour < 10) {\n return 'ਸਵੇਰ';\n } else if (hour < 17) {\n return 'ਦੁਪਹਿਰ';\n } else if (hour < 20) {\n return 'ਸ਼ਾਮ';\n } else {\n return 'ਰਾਤ';\n }\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n\n }\n });\n return paIn;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Polish [pl]\n//! author : Rafal Hirsz : https://github.com/evoL\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_'),\n monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_'),\n monthsParse = [/^sty/i, /^lut/i, /^mar/i, /^kwi/i, /^maj/i, /^cze/i, /^lip/i, /^sie/i, /^wrz/i, /^paź/i, /^lis/i, /^gru/i];\n\n function plural(n) {\n return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;\n }\n\n function translate(number, withoutSuffix, key) {\n var result = number + ' ';\n\n switch (key) {\n case 'ss':\n return result + (plural(number) ? 'sekundy' : 'sekund');\n\n case 'm':\n return withoutSuffix ? 'minuta' : 'minutę';\n\n case 'mm':\n return result + (plural(number) ? 'minuty' : 'minut');\n\n case 'h':\n return withoutSuffix ? 'godzina' : 'godzinę';\n\n case 'hh':\n return result + (plural(number) ? 'godziny' : 'godzin');\n\n case 'ww':\n return result + (plural(number) ? 'tygodnie' : 'tygodni');\n\n case 'MM':\n return result + (plural(number) ? 'miesiące' : 'miesięcy');\n\n case 'yy':\n return result + (plural(number) ? 'lata' : 'lat');\n }\n }\n\n var pl = moment.defineLocale('pl', {\n months: function months(momentToFormat, format) {\n if (!momentToFormat) {\n return monthsNominative;\n } else if (/D MMMM/.test(format)) {\n return monthsSubjective[momentToFormat.month()];\n } else {\n return monthsNominative[momentToFormat.month()];\n }\n },\n monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),\n weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),\n weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Dziś o] LT',\n nextDay: '[Jutro o] LT',\n nextWeek: function nextWeek() {\n switch (this.day()) {\n case 0:\n return '[W niedzielę o] LT';\n\n case 2:\n return '[We wtorek o] LT';\n\n case 3:\n return '[W środę o] LT';\n\n case 6:\n return '[W sobotę o] LT';\n\n default:\n return '[W] dddd [o] LT';\n }\n },\n lastDay: '[Wczoraj o] LT',\n lastWeek: function lastWeek() {\n switch (this.day()) {\n case 0:\n return '[W zeszłą niedzielę o] LT';\n\n case 3:\n return '[W zeszłą środę o] LT';\n\n case 6:\n return '[W zeszłą sobotę o] LT';\n\n default:\n return '[W zeszły] dddd [o] LT';\n }\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'za %s',\n past: '%s temu',\n s: 'kilka sekund',\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: '1 dzień',\n dd: '%d dni',\n w: 'tydzień',\n ww: translate,\n M: 'miesiąc',\n MM: translate,\n y: 'rok',\n yy: translate\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return pl;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Portuguese [pt]\n//! author : Jefferson : https://github.com/jalex79\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var pt = moment.defineLocale('pt', {\n months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),\n monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),\n weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),\n weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),\n weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY HH:mm',\n LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Hoje às] LT',\n nextDay: '[Amanhã às] LT',\n nextWeek: 'dddd [às] LT',\n lastDay: '[Ontem às] LT',\n lastWeek: function lastWeek() {\n return this.day() === 0 || this.day() === 6 ? '[Último] dddd [às] LT' // Saturday + Sunday\n : '[Última] dddd [às] LT'; // Monday - Friday\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'em %s',\n past: 'há %s',\n s: 'segundos',\n ss: '%d segundos',\n m: 'um minuto',\n mm: '%d minutos',\n h: 'uma hora',\n hh: '%d horas',\n d: 'um dia',\n dd: '%d dias',\n w: 'uma semana',\n ww: '%d semanas',\n M: 'um mês',\n MM: '%d meses',\n y: 'um ano',\n yy: '%d anos'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return pt;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Portuguese (Brazil) [pt-br]\n//! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var ptBr = moment.defineLocale('pt-br', {\n months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),\n monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),\n weekdays: 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split('_'),\n weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),\n weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',\n LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'\n },\n calendar: {\n sameDay: '[Hoje às] LT',\n nextDay: '[Amanhã às] LT',\n nextWeek: 'dddd [às] LT',\n lastDay: '[Ontem às] LT',\n lastWeek: function lastWeek() {\n return this.day() === 0 || this.day() === 6 ? '[Último] dddd [às] LT' // Saturday + Sunday\n : '[Última] dddd [às] LT'; // Monday - Friday\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'em %s',\n past: 'há %s',\n s: 'poucos segundos',\n ss: '%d segundos',\n m: 'um minuto',\n mm: '%d minutos',\n h: 'uma hora',\n hh: '%d horas',\n d: 'um dia',\n dd: '%d dias',\n M: 'um mês',\n MM: '%d meses',\n y: 'um ano',\n yy: '%d anos'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n invalidDate: 'Data inválida'\n });\n return ptBr;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Romanian [ro]\n//! author : Vlad Gurdiga : https://github.com/gurdiga\n//! author : Valentin Agachi : https://github.com/avaly\n//! author : Emanuel Cepoi : https://github.com/cepem\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n function relativeTimeWithPlural(number, withoutSuffix, key) {\n var format = {\n ss: 'secunde',\n mm: 'minute',\n hh: 'ore',\n dd: 'zile',\n ww: 'săptămâni',\n MM: 'luni',\n yy: 'ani'\n },\n separator = ' ';\n\n if (number % 100 >= 20 || number >= 100 && number % 100 === 0) {\n separator = ' de ';\n }\n\n return number + separator + format[key];\n }\n\n var ro = moment.defineLocale('ro', {\n months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),\n monthsShort: 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),\n monthsParseExact: true,\n weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),\n weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),\n weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY H:mm',\n LLLL: 'dddd, D MMMM YYYY H:mm'\n },\n calendar: {\n sameDay: '[azi la] LT',\n nextDay: '[mâine la] LT',\n nextWeek: 'dddd [la] LT',\n lastDay: '[ieri la] LT',\n lastWeek: '[fosta] dddd [la] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'peste %s',\n past: '%s în urmă',\n s: 'câteva secunde',\n ss: relativeTimeWithPlural,\n m: 'un minut',\n mm: relativeTimeWithPlural,\n h: 'o oră',\n hh: relativeTimeWithPlural,\n d: 'o zi',\n dd: relativeTimeWithPlural,\n w: 'o săptămână',\n ww: relativeTimeWithPlural,\n M: 'o lună',\n MM: relativeTimeWithPlural,\n y: 'un an',\n yy: relativeTimeWithPlural\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n\n }\n });\n return ro;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Russian [ru]\n//! author : Viktorminator : https://github.com/Viktorminator\n//! author : Menelion Elensúle : https://github.com/Oire\n//! author : Коренберг Марк : https://github.com/socketpair\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n function plural(word, num) {\n var forms = word.split('_');\n return num % 10 === 1 && num % 100 !== 11 ? forms[0] : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2];\n }\n\n function relativeTimeWithPlural(number, withoutSuffix, key) {\n var format = {\n ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',\n mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',\n hh: 'час_часа_часов',\n dd: 'день_дня_дней',\n ww: 'неделя_недели_недель',\n MM: 'месяц_месяца_месяцев',\n yy: 'год_года_лет'\n };\n\n if (key === 'm') {\n return withoutSuffix ? 'минута' : 'минуту';\n } else {\n return number + ' ' + plural(format[key], +number);\n }\n }\n\n var monthsParse = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i]; // http://new.gramota.ru/spravka/rules/139-prop : § 103\n // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637\n // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753\n\n var ru = moment.defineLocale('ru', {\n months: {\n format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_'),\n standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_')\n },\n monthsShort: {\n // по CLDR именно \"июл.\" и \"июн.\", но какой смысл менять букву на точку?\n format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'),\n standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_')\n },\n weekdays: {\n standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),\n format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'),\n isFormat: /\\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/\n },\n weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),\n weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки\n monthsRegex: /^(январ[ья]|янв\\.?|феврал[ья]|февр?\\.?|марта?|мар\\.?|апрел[ья]|апр\\.?|ма[йя]|июн[ья]|июн\\.?|июл[ья]|июл\\.?|августа?|авг\\.?|сентябр[ья]|сент?\\.?|октябр[ья]|окт\\.?|ноябр[ья]|нояб?\\.?|декабр[ья]|дек\\.?)/i,\n // копия предыдущего\n monthsShortRegex: /^(январ[ья]|янв\\.?|феврал[ья]|февр?\\.?|марта?|мар\\.?|апрел[ья]|апр\\.?|ма[йя]|июн[ья]|июн\\.?|июл[ья]|июл\\.?|августа?|авг\\.?|сентябр[ья]|сент?\\.?|октябр[ья]|окт\\.?|ноябр[ья]|нояб?\\.?|декабр[ья]|дек\\.?)/i,\n // полные названия с падежами\n monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,\n // Выражение, которое соответствует только сокращённым формам\n monthsShortStrictRegex: /^(янв\\.|февр?\\.|мар[т.]|апр\\.|ма[яй]|июн[ья.]|июл[ья.]|авг\\.|сент?\\.|окт\\.|нояб?\\.|дек\\.)/i,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY г.',\n LLL: 'D MMMM YYYY г., H:mm',\n LLLL: 'dddd, D MMMM YYYY г., H:mm'\n },\n calendar: {\n sameDay: '[Сегодня, в] LT',\n nextDay: '[Завтра, в] LT',\n lastDay: '[Вчера, в] LT',\n nextWeek: function nextWeek(now) {\n if (now.week() !== this.week()) {\n switch (this.day()) {\n case 0:\n return '[В следующее] dddd, [в] LT';\n\n case 1:\n case 2:\n case 4:\n return '[В следующий] dddd, [в] LT';\n\n case 3:\n case 5:\n case 6:\n return '[В следующую] dddd, [в] LT';\n }\n } else {\n if (this.day() === 2) {\n return '[Во] dddd, [в] LT';\n } else {\n return '[В] dddd, [в] LT';\n }\n }\n },\n lastWeek: function lastWeek(now) {\n if (now.week() !== this.week()) {\n switch (this.day()) {\n case 0:\n return '[В прошлое] dddd, [в] LT';\n\n case 1:\n case 2:\n case 4:\n return '[В прошлый] dddd, [в] LT';\n\n case 3:\n case 5:\n case 6:\n return '[В прошлую] dddd, [в] LT';\n }\n } else {\n if (this.day() === 2) {\n return '[Во] dddd, [в] LT';\n } else {\n return '[В] dddd, [в] LT';\n }\n }\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'через %s',\n past: '%s назад',\n s: 'несколько секунд',\n ss: relativeTimeWithPlural,\n m: relativeTimeWithPlural,\n mm: relativeTimeWithPlural,\n h: 'час',\n hh: relativeTimeWithPlural,\n d: 'день',\n dd: relativeTimeWithPlural,\n w: 'неделя',\n ww: relativeTimeWithPlural,\n M: 'месяц',\n MM: relativeTimeWithPlural,\n y: 'год',\n yy: relativeTimeWithPlural\n },\n meridiemParse: /ночи|утра|дня|вечера/i,\n isPM: function isPM(input) {\n return /^(дня|вечера)$/.test(input);\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 4) {\n return 'ночи';\n } else if (hour < 12) {\n return 'утра';\n } else if (hour < 17) {\n return 'дня';\n } else {\n return 'вечера';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(й|го|я)/,\n ordinal: function ordinal(number, period) {\n switch (period) {\n case 'M':\n case 'd':\n case 'DDD':\n return number + '-й';\n\n case 'D':\n return number + '-го';\n\n case 'w':\n case 'W':\n return number + '-я';\n\n default:\n return number;\n }\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return ru;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Sindhi [sd]\n//! author : Narain Sagar : https://github.com/narainsagar\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var months = ['جنوري', 'فيبروري', 'مارچ', 'اپريل', 'مئي', 'جون', 'جولاءِ', 'آگسٽ', 'سيپٽمبر', 'آڪٽوبر', 'نومبر', 'ڊسمبر'],\n days = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر'];\n var sd = moment.defineLocale('sd', {\n months: months,\n monthsShort: months,\n weekdays: days,\n weekdaysShort: days,\n weekdaysMin: days,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd، D MMMM YYYY HH:mm'\n },\n meridiemParse: /صبح|شام/,\n isPM: function isPM(input) {\n return 'شام' === input;\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 12) {\n return 'صبح';\n }\n\n return 'شام';\n },\n calendar: {\n sameDay: '[اڄ] LT',\n nextDay: '[سڀاڻي] LT',\n nextWeek: 'dddd [اڳين هفتي تي] LT',\n lastDay: '[ڪالهه] LT',\n lastWeek: '[گزريل هفتي] dddd [تي] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s پوء',\n past: '%s اڳ',\n s: 'چند سيڪنڊ',\n ss: '%d سيڪنڊ',\n m: 'هڪ منٽ',\n mm: '%d منٽ',\n h: 'هڪ ڪلاڪ',\n hh: '%d ڪلاڪ',\n d: 'هڪ ڏينهن',\n dd: '%d ڏينهن',\n M: 'هڪ مهينو',\n MM: '%d مهينا',\n y: 'هڪ سال',\n yy: '%d سال'\n },\n preparse: function preparse(string) {\n return string.replace(/،/g, ',');\n },\n postformat: function postformat(string) {\n return string.replace(/,/g, '،');\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return sd;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Northern Sami [se]\n//! authors : Bård Rolstad Henriksen : https://github.com/karamell\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var se = moment.defineLocale('se', {\n months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split('_'),\n monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),\n weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),\n weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),\n weekdaysMin: 's_v_m_g_d_b_L'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'MMMM D. [b.] YYYY',\n LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm',\n LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'\n },\n calendar: {\n sameDay: '[otne ti] LT',\n nextDay: '[ihttin ti] LT',\n nextWeek: 'dddd [ti] LT',\n lastDay: '[ikte ti] LT',\n lastWeek: '[ovddit] dddd [ti] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s geažes',\n past: 'maŋit %s',\n s: 'moadde sekunddat',\n ss: '%d sekunddat',\n m: 'okta minuhta',\n mm: '%d minuhtat',\n h: 'okta diimmu',\n hh: '%d diimmut',\n d: 'okta beaivi',\n dd: '%d beaivvit',\n M: 'okta mánnu',\n MM: '%d mánut',\n y: 'okta jahki',\n yy: '%d jagit'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return se;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Sinhalese [si]\n//! author : Sampath Sitinamaluwa : https://github.com/sampathsris\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n /*jshint -W100*/\n\n var si = moment.defineLocale('si', {\n months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),\n monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),\n weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),\n weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන'.split('_'),\n weekdaysMin: 'ඉ_ස_අ_බ_බ්ර_සි_සෙ'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'a h:mm',\n LTS: 'a h:mm:ss',\n L: 'YYYY/MM/DD',\n LL: 'YYYY MMMM D',\n LLL: 'YYYY MMMM D, a h:mm',\n LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'\n },\n calendar: {\n sameDay: '[අද] LT[ට]',\n nextDay: '[හෙට] LT[ට]',\n nextWeek: 'dddd LT[ට]',\n lastDay: '[ඊයේ] LT[ට]',\n lastWeek: '[පසුගිය] dddd LT[ට]',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%sකින්',\n past: '%sකට පෙර',\n s: 'තත්පර කිහිපය',\n ss: 'තත්පර %d',\n m: 'මිනිත්තුව',\n mm: 'මිනිත්තු %d',\n h: 'පැය',\n hh: 'පැය %d',\n d: 'දිනය',\n dd: 'දින %d',\n M: 'මාසය',\n MM: 'මාස %d',\n y: 'වසර',\n yy: 'වසර %d'\n },\n dayOfMonthOrdinalParse: /\\d{1,2} වැනි/,\n ordinal: function ordinal(number) {\n return number + ' වැනි';\n },\n meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,\n isPM: function isPM(input) {\n return input === 'ප.ව.' || input === 'පස් වරු';\n },\n meridiem: function meridiem(hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? 'ප.ව.' : 'පස් වරු';\n } else {\n return isLower ? 'පෙ.ව.' : 'පෙර වරු';\n }\n }\n });\n return si;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Slovak [sk]\n//! author : Martin Minka : https://github.com/k2s\n//! based on work of petrbela : https://github.com/petrbela\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'),\n monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');\n\n function plural(n) {\n return n > 1 && n < 5;\n }\n\n function translate(number, withoutSuffix, key, isFuture) {\n var result = number + ' ';\n\n switch (key) {\n case 's':\n // a few seconds / in a few seconds / a few seconds ago\n return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami';\n\n case 'ss':\n // 9 seconds / in 9 seconds / 9 seconds ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'sekundy' : 'sekúnd');\n } else {\n return result + 'sekundami';\n }\n\n case 'm':\n // a minute / in a minute / a minute ago\n return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou';\n\n case 'mm':\n // 9 minutes / in 9 minutes / 9 minutes ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'minúty' : 'minút');\n } else {\n return result + 'minútami';\n }\n\n case 'h':\n // an hour / in an hour / an hour ago\n return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';\n\n case 'hh':\n // 9 hours / in 9 hours / 9 hours ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'hodiny' : 'hodín');\n } else {\n return result + 'hodinami';\n }\n\n case 'd':\n // a day / in a day / a day ago\n return withoutSuffix || isFuture ? 'deň' : 'dňom';\n\n case 'dd':\n // 9 days / in 9 days / 9 days ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'dni' : 'dní');\n } else {\n return result + 'dňami';\n }\n\n case 'M':\n // a month / in a month / a month ago\n return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom';\n\n case 'MM':\n // 9 months / in 9 months / 9 months ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'mesiace' : 'mesiacov');\n } else {\n return result + 'mesiacmi';\n }\n\n case 'y':\n // a year / in a year / a year ago\n return withoutSuffix || isFuture ? 'rok' : 'rokom';\n\n case 'yy':\n // 9 years / in 9 years / 9 years ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'roky' : 'rokov');\n } else {\n return result + 'rokmi';\n }\n\n }\n }\n\n var sk = moment.defineLocale('sk', {\n months: months,\n monthsShort: monthsShort,\n weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),\n weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'),\n weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd D. MMMM YYYY H:mm'\n },\n calendar: {\n sameDay: '[dnes o] LT',\n nextDay: '[zajtra o] LT',\n nextWeek: function nextWeek() {\n switch (this.day()) {\n case 0:\n return '[v nedeľu o] LT';\n\n case 1:\n case 2:\n return '[v] dddd [o] LT';\n\n case 3:\n return '[v stredu o] LT';\n\n case 4:\n return '[vo štvrtok o] LT';\n\n case 5:\n return '[v piatok o] LT';\n\n case 6:\n return '[v sobotu o] LT';\n }\n },\n lastDay: '[včera o] LT',\n lastWeek: function lastWeek() {\n switch (this.day()) {\n case 0:\n return '[minulú nedeľu o] LT';\n\n case 1:\n case 2:\n return '[minulý] dddd [o] LT';\n\n case 3:\n return '[minulú stredu o] LT';\n\n case 4:\n case 5:\n return '[minulý] dddd [o] LT';\n\n case 6:\n return '[minulú sobotu o] LT';\n }\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'za %s',\n past: 'pred %s',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return sk;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Slovenian [sl]\n//! author : Robert Sedovšek : https://github.com/sedovsek\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var result = number + ' ';\n\n switch (key) {\n case 's':\n return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';\n\n case 'ss':\n if (number === 1) {\n result += withoutSuffix ? 'sekundo' : 'sekundi';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';\n } else if (number < 5) {\n result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';\n } else {\n result += 'sekund';\n }\n\n return result;\n\n case 'm':\n return withoutSuffix ? 'ena minuta' : 'eno minuto';\n\n case 'mm':\n if (number === 1) {\n result += withoutSuffix ? 'minuta' : 'minuto';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'minuti' : 'minutama';\n } else if (number < 5) {\n result += withoutSuffix || isFuture ? 'minute' : 'minutami';\n } else {\n result += withoutSuffix || isFuture ? 'minut' : 'minutami';\n }\n\n return result;\n\n case 'h':\n return withoutSuffix ? 'ena ura' : 'eno uro';\n\n case 'hh':\n if (number === 1) {\n result += withoutSuffix ? 'ura' : 'uro';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'uri' : 'urama';\n } else if (number < 5) {\n result += withoutSuffix || isFuture ? 'ure' : 'urami';\n } else {\n result += withoutSuffix || isFuture ? 'ur' : 'urami';\n }\n\n return result;\n\n case 'd':\n return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';\n\n case 'dd':\n if (number === 1) {\n result += withoutSuffix || isFuture ? 'dan' : 'dnem';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';\n } else {\n result += withoutSuffix || isFuture ? 'dni' : 'dnevi';\n }\n\n return result;\n\n case 'M':\n return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';\n\n case 'MM':\n if (number === 1) {\n result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';\n } else if (number < 5) {\n result += withoutSuffix || isFuture ? 'mesece' : 'meseci';\n } else {\n result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';\n }\n\n return result;\n\n case 'y':\n return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';\n\n case 'yy':\n if (number === 1) {\n result += withoutSuffix || isFuture ? 'leto' : 'letom';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'leti' : 'letoma';\n } else if (number < 5) {\n result += withoutSuffix || isFuture ? 'leta' : 'leti';\n } else {\n result += withoutSuffix || isFuture ? 'let' : 'leti';\n }\n\n return result;\n }\n }\n\n var sl = moment.defineLocale('sl', {\n months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),\n monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),\n monthsParseExact: true,\n weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),\n weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),\n weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD. MM. YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd, D. MMMM YYYY H:mm'\n },\n calendar: {\n sameDay: '[danes ob] LT',\n nextDay: '[jutri ob] LT',\n nextWeek: function nextWeek() {\n switch (this.day()) {\n case 0:\n return '[v] [nedeljo] [ob] LT';\n\n case 3:\n return '[v] [sredo] [ob] LT';\n\n case 6:\n return '[v] [soboto] [ob] LT';\n\n case 1:\n case 2:\n case 4:\n case 5:\n return '[v] dddd [ob] LT';\n }\n },\n lastDay: '[včeraj ob] LT',\n lastWeek: function lastWeek() {\n switch (this.day()) {\n case 0:\n return '[prejšnjo] [nedeljo] [ob] LT';\n\n case 3:\n return '[prejšnjo] [sredo] [ob] LT';\n\n case 6:\n return '[prejšnjo] [soboto] [ob] LT';\n\n case 1:\n case 2:\n case 4:\n case 5:\n return '[prejšnji] dddd [ob] LT';\n }\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'čez %s',\n past: 'pred %s',\n s: processRelativeTime,\n ss: processRelativeTime,\n m: processRelativeTime,\n mm: processRelativeTime,\n h: processRelativeTime,\n hh: processRelativeTime,\n d: processRelativeTime,\n dd: processRelativeTime,\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n\n }\n });\n return sl;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Albanian [sq]\n//! author : Flakërim Ismani : https://github.com/flakerimi\n//! author : Menelion Elensúle : https://github.com/Oire\n//! author : Oerd Cukalla : https://github.com/oerd\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var sq = moment.defineLocale('sq', {\n months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),\n monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),\n weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),\n weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),\n weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),\n weekdaysParseExact: true,\n meridiemParse: /PD|MD/,\n isPM: function isPM(input) {\n return input.charAt(0) === 'M';\n },\n meridiem: function meridiem(hours, minutes, isLower) {\n return hours < 12 ? 'PD' : 'MD';\n },\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Sot në] LT',\n nextDay: '[Nesër në] LT',\n nextWeek: 'dddd [në] LT',\n lastDay: '[Dje në] LT',\n lastWeek: 'dddd [e kaluar në] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'në %s',\n past: '%s më parë',\n s: 'disa sekonda',\n ss: '%d sekonda',\n m: 'një minutë',\n mm: '%d minuta',\n h: 'një orë',\n hh: '%d orë',\n d: 'një ditë',\n dd: '%d ditë',\n M: 'një muaj',\n MM: '%d muaj',\n y: 'një vit',\n yy: '%d vite'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return sq;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Serbian [sr]\n//! author : Milan Janačković : https://github.com/milan-j\n//! author : Stefan Crnjaković : https://github.com/crnjakovic\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var translator = {\n words: {\n //Different grammatical cases\n ss: ['sekunda', 'sekunde', 'sekundi'],\n m: ['jedan minut', 'jednog minuta'],\n mm: ['minut', 'minuta', 'minuta'],\n h: ['jedan sat', 'jednog sata'],\n hh: ['sat', 'sata', 'sati'],\n d: ['jedan dan', 'jednog dana'],\n dd: ['dan', 'dana', 'dana'],\n M: ['jedan mesec', 'jednog meseca'],\n MM: ['mesec', 'meseca', 'meseci'],\n y: ['jednu godinu', 'jedne godine'],\n yy: ['godinu', 'godine', 'godina']\n },\n correctGrammaticalCase: function correctGrammaticalCase(number, wordKey) {\n if (number % 10 >= 1 && number % 10 <= 4 && (number % 100 < 10 || number % 100 >= 20)) {\n return number % 10 === 1 ? wordKey[0] : wordKey[1];\n }\n\n return wordKey[2];\n },\n translate: function translate(number, withoutSuffix, key, isFuture) {\n var wordKey = translator.words[key],\n word;\n\n if (key.length === 1) {\n // Nominativ\n if (key === 'y' && withoutSuffix) return 'jedna godina';\n return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];\n }\n\n word = translator.correctGrammaticalCase(number, wordKey); // Nominativ\n\n if (key === 'yy' && withoutSuffix && word === 'godinu') {\n return number + ' godina';\n }\n\n return number + ' ' + word;\n }\n };\n var sr = moment.defineLocale('sr', {\n months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),\n monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),\n monthsParseExact: true,\n weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'),\n weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),\n weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'D. M. YYYY.',\n LL: 'D. MMMM YYYY.',\n LLL: 'D. MMMM YYYY. H:mm',\n LLLL: 'dddd, D. MMMM YYYY. H:mm'\n },\n calendar: {\n sameDay: '[danas u] LT',\n nextDay: '[sutra u] LT',\n nextWeek: function nextWeek() {\n switch (this.day()) {\n case 0:\n return '[u] [nedelju] [u] LT';\n\n case 3:\n return '[u] [sredu] [u] LT';\n\n case 6:\n return '[u] [subotu] [u] LT';\n\n case 1:\n case 2:\n case 4:\n case 5:\n return '[u] dddd [u] LT';\n }\n },\n lastDay: '[juče u] LT',\n lastWeek: function lastWeek() {\n var lastWeekDays = ['[prošle] [nedelje] [u] LT', '[prošlog] [ponedeljka] [u] LT', '[prošlog] [utorka] [u] LT', '[prošle] [srede] [u] LT', '[prošlog] [četvrtka] [u] LT', '[prošlog] [petka] [u] LT', '[prošle] [subote] [u] LT'];\n return lastWeekDays[this.day()];\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'za %s',\n past: 'pre %s',\n s: 'nekoliko sekundi',\n ss: translator.translate,\n m: translator.translate,\n mm: translator.translate,\n h: translator.translate,\n hh: translator.translate,\n d: translator.translate,\n dd: translator.translate,\n M: translator.translate,\n MM: translator.translate,\n y: translator.translate,\n yy: translator.translate\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n\n }\n });\n return sr;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Serbian Cyrillic [sr-cyrl]\n//! author : Milan Janačković : https://github.com/milan-j\n//! author : Stefan Crnjaković : https://github.com/crnjakovic\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var translator = {\n words: {\n //Different grammatical cases\n ss: ['секунда', 'секунде', 'секунди'],\n m: ['један минут', 'једног минута'],\n mm: ['минут', 'минута', 'минута'],\n h: ['један сат', 'једног сата'],\n hh: ['сат', 'сата', 'сати'],\n d: ['један дан', 'једног дана'],\n dd: ['дан', 'дана', 'дана'],\n M: ['један месец', 'једног месеца'],\n MM: ['месец', 'месеца', 'месеци'],\n y: ['једну годину', 'једне године'],\n yy: ['годину', 'године', 'година']\n },\n correctGrammaticalCase: function correctGrammaticalCase(number, wordKey) {\n if (number % 10 >= 1 && number % 10 <= 4 && (number % 100 < 10 || number % 100 >= 20)) {\n return number % 10 === 1 ? wordKey[0] : wordKey[1];\n }\n\n return wordKey[2];\n },\n translate: function translate(number, withoutSuffix, key, isFuture) {\n var wordKey = translator.words[key],\n word;\n\n if (key.length === 1) {\n // Nominativ\n if (key === 'y' && withoutSuffix) return 'једна година';\n return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];\n }\n\n word = translator.correctGrammaticalCase(number, wordKey); // Nominativ\n\n if (key === 'yy' && withoutSuffix && word === 'годину') {\n return number + ' година';\n }\n\n return number + ' ' + word;\n }\n };\n var srCyrl = moment.defineLocale('sr-cyrl', {\n months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'),\n monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),\n monthsParseExact: true,\n weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),\n weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),\n weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'D. M. YYYY.',\n LL: 'D. MMMM YYYY.',\n LLL: 'D. MMMM YYYY. H:mm',\n LLLL: 'dddd, D. MMMM YYYY. H:mm'\n },\n calendar: {\n sameDay: '[данас у] LT',\n nextDay: '[сутра у] LT',\n nextWeek: function nextWeek() {\n switch (this.day()) {\n case 0:\n return '[у] [недељу] [у] LT';\n\n case 3:\n return '[у] [среду] [у] LT';\n\n case 6:\n return '[у] [суботу] [у] LT';\n\n case 1:\n case 2:\n case 4:\n case 5:\n return '[у] dddd [у] LT';\n }\n },\n lastDay: '[јуче у] LT',\n lastWeek: function lastWeek() {\n var lastWeekDays = ['[прошле] [недеље] [у] LT', '[прошлог] [понедељка] [у] LT', '[прошлог] [уторка] [у] LT', '[прошле] [среде] [у] LT', '[прошлог] [четвртка] [у] LT', '[прошлог] [петка] [у] LT', '[прошле] [суботе] [у] LT'];\n return lastWeekDays[this.day()];\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'за %s',\n past: 'пре %s',\n s: 'неколико секунди',\n ss: translator.translate,\n m: translator.translate,\n mm: translator.translate,\n h: translator.translate,\n hh: translator.translate,\n d: translator.translate,\n dd: translator.translate,\n M: translator.translate,\n MM: translator.translate,\n y: translator.translate,\n yy: translator.translate\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 1st is the first week of the year.\n\n }\n });\n return srCyrl;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : siSwati [ss]\n//! author : Nicolai Davies : https://github.com/nicolaidavies\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var ss = moment.defineLocale('ss', {\n months: \"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni\".split('_'),\n monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),\n weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'),\n weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),\n weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A'\n },\n calendar: {\n sameDay: '[Namuhla nga] LT',\n nextDay: '[Kusasa nga] LT',\n nextWeek: 'dddd [nga] LT',\n lastDay: '[Itolo nga] LT',\n lastWeek: 'dddd [leliphelile] [nga] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'nga %s',\n past: 'wenteka nga %s',\n s: 'emizuzwana lomcane',\n ss: '%d mzuzwana',\n m: 'umzuzu',\n mm: '%d emizuzu',\n h: 'lihora',\n hh: '%d emahora',\n d: 'lilanga',\n dd: '%d emalanga',\n M: 'inyanga',\n MM: '%d tinyanga',\n y: 'umnyaka',\n yy: '%d iminyaka'\n },\n meridiemParse: /ekuseni|emini|entsambama|ebusuku/,\n meridiem: function meridiem(hours, minutes, isLower) {\n if (hours < 11) {\n return 'ekuseni';\n } else if (hours < 15) {\n return 'emini';\n } else if (hours < 19) {\n return 'entsambama';\n } else {\n return 'ebusuku';\n }\n },\n meridiemHour: function meridiemHour(hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n\n if (meridiem === 'ekuseni') {\n return hour;\n } else if (meridiem === 'emini') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {\n if (hour === 0) {\n return 0;\n }\n\n return hour + 12;\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}/,\n ordinal: '%d',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return ss;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Swedish [sv]\n//! author : Jens Alm : https://github.com/ulmus\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var sv = moment.defineLocale('sv', {\n months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),\n monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),\n weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),\n weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),\n weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [kl.] HH:mm',\n LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',\n lll: 'D MMM YYYY HH:mm',\n llll: 'ddd D MMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Idag] LT',\n nextDay: '[Imorgon] LT',\n lastDay: '[Igår] LT',\n nextWeek: '[På] dddd LT',\n lastWeek: '[I] dddd[s] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'om %s',\n past: 'för %s sedan',\n s: 'några sekunder',\n ss: '%d sekunder',\n m: 'en minut',\n mm: '%d minuter',\n h: 'en timme',\n hh: '%d timmar',\n d: 'en dag',\n dd: '%d dagar',\n M: 'en månad',\n MM: '%d månader',\n y: 'ett år',\n yy: '%d år'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(\\:e|\\:a)/,\n ordinal: function ordinal(number) {\n var b = number % 10,\n output = ~~(number % 100 / 10) === 1 ? ':e' : b === 1 ? ':a' : b === 2 ? ':a' : b === 3 ? ':e' : ':e';\n return number + output;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return sv;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Swahili [sw]\n//! author : Fahad Kassim : https://github.com/fadsel\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var sw = moment.defineLocale('sw', {\n months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),\n monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),\n weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),\n weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),\n weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'hh:mm A',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[leo saa] LT',\n nextDay: '[kesho saa] LT',\n nextWeek: '[wiki ijayo] dddd [saat] LT',\n lastDay: '[jana] LT',\n lastWeek: '[wiki iliyopita] dddd [saat] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s baadaye',\n past: 'tokea %s',\n s: 'hivi punde',\n ss: 'sekunde %d',\n m: 'dakika moja',\n mm: 'dakika %d',\n h: 'saa limoja',\n hh: 'masaa %d',\n d: 'siku moja',\n dd: 'siku %d',\n M: 'mwezi mmoja',\n MM: 'miezi %d',\n y: 'mwaka mmoja',\n yy: 'miaka %d'\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n\n }\n });\n return sw;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Tamil [ta]\n//! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var symbolMap = {\n 1: '௧',\n 2: '௨',\n 3: '௩',\n 4: '௪',\n 5: '௫',\n 6: '௬',\n 7: '௭',\n 8: '௮',\n 9: '௯',\n 0: '௦'\n },\n numberMap = {\n '௧': '1',\n '௨': '2',\n '௩': '3',\n '௪': '4',\n '௫': '5',\n '௬': '6',\n '௭': '7',\n '௮': '8',\n '௯': '9',\n '௦': '0'\n };\n var ta = moment.defineLocale('ta', {\n months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),\n monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),\n weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),\n weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),\n weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, HH:mm',\n LLLL: 'dddd, D MMMM YYYY, HH:mm'\n },\n calendar: {\n sameDay: '[இன்று] LT',\n nextDay: '[நாளை] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[நேற்று] LT',\n lastWeek: '[கடந்த வாரம்] dddd, LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s இல்',\n past: '%s முன்',\n s: 'ஒரு சில விநாடிகள்',\n ss: '%d விநாடிகள்',\n m: 'ஒரு நிமிடம்',\n mm: '%d நிமிடங்கள்',\n h: 'ஒரு மணி நேரம்',\n hh: '%d மணி நேரம்',\n d: 'ஒரு நாள்',\n dd: '%d நாட்கள்',\n M: 'ஒரு மாதம்',\n MM: '%d மாதங்கள்',\n y: 'ஒரு வருடம்',\n yy: '%d ஆண்டுகள்'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}வது/,\n ordinal: function ordinal(number) {\n return number + 'வது';\n },\n preparse: function preparse(string) {\n return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function postformat(string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n // refer http://ta.wikipedia.org/s/1er1\n meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 2) {\n return ' யாமம்';\n } else if (hour < 6) {\n return ' வைகறை'; // வைகறை\n } else if (hour < 10) {\n return ' காலை'; // காலை\n } else if (hour < 14) {\n return ' நண்பகல்'; // நண்பகல்\n } else if (hour < 18) {\n return ' எற்பாடு'; // எற்பாடு\n } else if (hour < 22) {\n return ' மாலை'; // மாலை\n } else {\n return ' யாமம்';\n }\n },\n meridiemHour: function meridiemHour(hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n\n if (meridiem === 'யாமம்') {\n return hour < 2 ? hour : hour + 12;\n } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {\n return hour;\n } else if (meridiem === 'நண்பகல்') {\n return hour >= 10 ? hour : hour + 12;\n } else {\n return hour + 12;\n }\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n\n }\n });\n return ta;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Telugu [te]\n//! author : Krishna Chaitanya Thota : https://github.com/kcthota\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var te = moment.defineLocale('te', {\n months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'),\n monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'),\n monthsParseExact: true,\n weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'),\n weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),\n weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),\n longDateFormat: {\n LT: 'A h:mm',\n LTS: 'A h:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm',\n LLLL: 'dddd, D MMMM YYYY, A h:mm'\n },\n calendar: {\n sameDay: '[నేడు] LT',\n nextDay: '[రేపు] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[నిన్న] LT',\n lastWeek: '[గత] dddd, LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s లో',\n past: '%s క్రితం',\n s: 'కొన్ని క్షణాలు',\n ss: '%d సెకన్లు',\n m: 'ఒక నిమిషం',\n mm: '%d నిమిషాలు',\n h: 'ఒక గంట',\n hh: '%d గంటలు',\n d: 'ఒక రోజు',\n dd: '%d రోజులు',\n M: 'ఒక నెల',\n MM: '%d నెలలు',\n y: 'ఒక సంవత్సరం',\n yy: '%d సంవత్సరాలు'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}వ/,\n ordinal: '%dవ',\n meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,\n meridiemHour: function meridiemHour(hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n\n if (meridiem === 'రాత్రి') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'ఉదయం') {\n return hour;\n } else if (meridiem === 'మధ్యాహ్నం') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'సాయంత్రం') {\n return hour + 12;\n }\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 4) {\n return 'రాత్రి';\n } else if (hour < 10) {\n return 'ఉదయం';\n } else if (hour < 17) {\n return 'మధ్యాహ్నం';\n } else if (hour < 20) {\n return 'సాయంత్రం';\n } else {\n return 'రాత్రి';\n }\n },\n week: {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n\n }\n });\n return te;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Tetun Dili (East Timor) [tet]\n//! author : Joshua Brooks : https://github.com/joshbrooks\n//! author : Onorio De J. Afonso : https://github.com/marobo\n//! author : Sonia Simoes : https://github.com/soniasimoes\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var tet = moment.defineLocale('tet', {\n months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split('_'),\n monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),\n weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),\n weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),\n weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Ohin iha] LT',\n nextDay: '[Aban iha] LT',\n nextWeek: 'dddd [iha] LT',\n lastDay: '[Horiseik iha] LT',\n lastWeek: 'dddd [semana kotuk] [iha] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'iha %s',\n past: '%s liuba',\n s: 'segundu balun',\n ss: 'segundu %d',\n m: 'minutu ida',\n mm: 'minutu %d',\n h: 'oras ida',\n hh: 'oras %d',\n d: 'loron ida',\n dd: 'loron %d',\n M: 'fulan ida',\n MM: 'fulan %d',\n y: 'tinan ida',\n yy: 'tinan %d'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function ordinal(number) {\n var b = number % 10,\n output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';\n return number + output;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return tet;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Tajik [tg]\n//! author : Orif N. Jr. : https://github.com/orif-jr\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var suffixes = {\n 0: '-ум',\n 1: '-ум',\n 2: '-юм',\n 3: '-юм',\n 4: '-ум',\n 5: '-ум',\n 6: '-ум',\n 7: '-ум',\n 8: '-ум',\n 9: '-ум',\n 10: '-ум',\n 12: '-ум',\n 13: '-ум',\n 20: '-ум',\n 30: '-юм',\n 40: '-ум',\n 50: '-ум',\n 60: '-ум',\n 70: '-ум',\n 80: '-ум',\n 90: '-ум',\n 100: '-ум'\n };\n var tg = moment.defineLocale('tg', {\n months: {\n format: 'январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри'.split('_'),\n standalone: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_')\n },\n monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),\n weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split('_'),\n weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),\n weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Имрӯз соати] LT',\n nextDay: '[Фардо соати] LT',\n lastDay: '[Дирӯз соати] LT',\n nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',\n lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'баъди %s',\n past: '%s пеш',\n s: 'якчанд сония',\n m: 'як дақиқа',\n mm: '%d дақиқа',\n h: 'як соат',\n hh: '%d соат',\n d: 'як рӯз',\n dd: '%d рӯз',\n M: 'як моҳ',\n MM: '%d моҳ',\n y: 'як сол',\n yy: '%d сол'\n },\n meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,\n meridiemHour: function meridiemHour(hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n\n if (meridiem === 'шаб') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'субҳ') {\n return hour;\n } else if (meridiem === 'рӯз') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'бегоҳ') {\n return hour + 12;\n }\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 4) {\n return 'шаб';\n } else if (hour < 11) {\n return 'субҳ';\n } else if (hour < 16) {\n return 'рӯз';\n } else if (hour < 19) {\n return 'бегоҳ';\n } else {\n return 'шаб';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(ум|юм)/,\n ordinal: function ordinal(number) {\n var a = number % 10,\n b = number >= 100 ? 100 : null;\n return number + (suffixes[number] || suffixes[a] || suffixes[b]);\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 1th is the first week of the year.\n\n }\n });\n return tg;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Thai [th]\n//! author : Kridsada Thanabulpong : https://github.com/sirn\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var th = moment.defineLocale('th', {\n months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),\n monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'),\n monthsParseExact: true,\n weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),\n weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'),\n // yes, three characters difference\n weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY เวลา H:mm',\n LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm'\n },\n meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,\n isPM: function isPM(input) {\n return input === 'หลังเที่ยง';\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 12) {\n return 'ก่อนเที่ยง';\n } else {\n return 'หลังเที่ยง';\n }\n },\n calendar: {\n sameDay: '[วันนี้ เวลา] LT',\n nextDay: '[พรุ่งนี้ เวลา] LT',\n nextWeek: 'dddd[หน้า เวลา] LT',\n lastDay: '[เมื่อวานนี้ เวลา] LT',\n lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'อีก %s',\n past: '%sที่แล้ว',\n s: 'ไม่กี่วินาที',\n ss: '%d วินาที',\n m: '1 นาที',\n mm: '%d นาที',\n h: '1 ชั่วโมง',\n hh: '%d ชั่วโมง',\n d: '1 วัน',\n dd: '%d วัน',\n w: '1 สัปดาห์',\n ww: '%d สัปดาห์',\n M: '1 เดือน',\n MM: '%d เดือน',\n y: '1 ปี',\n yy: '%d ปี'\n }\n });\n return th;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Turkmen [tk]\n//! author : Atamyrat Abdyrahmanov : https://github.com/atamyratabdy\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var suffixes = {\n 1: \"'inji\",\n 5: \"'inji\",\n 8: \"'inji\",\n 70: \"'inji\",\n 80: \"'inji\",\n 2: \"'nji\",\n 7: \"'nji\",\n 20: \"'nji\",\n 50: \"'nji\",\n 3: \"'ünji\",\n 4: \"'ünji\",\n 100: \"'ünji\",\n 6: \"'njy\",\n 9: \"'unjy\",\n 10: \"'unjy\",\n 30: \"'unjy\",\n 60: \"'ynjy\",\n 90: \"'ynjy\"\n };\n var tk = moment.defineLocale('tk', {\n months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split('_'),\n monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'),\n weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split('_'),\n weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),\n weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[bugün sagat] LT',\n nextDay: '[ertir sagat] LT',\n nextWeek: '[indiki] dddd [sagat] LT',\n lastDay: '[düýn] LT',\n lastWeek: '[geçen] dddd [sagat] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s soň',\n past: '%s öň',\n s: 'birnäçe sekunt',\n m: 'bir minut',\n mm: '%d minut',\n h: 'bir sagat',\n hh: '%d sagat',\n d: 'bir gün',\n dd: '%d gün',\n M: 'bir aý',\n MM: '%d aý',\n y: 'bir ýyl',\n yy: '%d ýyl'\n },\n ordinal: function ordinal(number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'Do':\n case 'DD':\n return number;\n\n default:\n if (number === 0) {\n // special case for zero\n return number + \"'unjy\";\n }\n\n var a = number % 10,\n b = number % 100 - a,\n c = number >= 100 ? 100 : null;\n return number + (suffixes[a] || suffixes[b] || suffixes[c]);\n }\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n\n }\n });\n return tk;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Tagalog (Philippines) [tl-ph]\n//! author : Dan Hagman : https://github.com/hagmandan\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var tlPh = moment.defineLocale('tl-ph', {\n months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),\n monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),\n weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),\n weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),\n weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'MM/D/YYYY',\n LL: 'MMMM D, YYYY',\n LLL: 'MMMM D, YYYY HH:mm',\n LLLL: 'dddd, MMMM DD, YYYY HH:mm'\n },\n calendar: {\n sameDay: 'LT [ngayong araw]',\n nextDay: '[Bukas ng] LT',\n nextWeek: 'LT [sa susunod na] dddd',\n lastDay: 'LT [kahapon]',\n lastWeek: 'LT [noong nakaraang] dddd',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'sa loob ng %s',\n past: '%s ang nakalipas',\n s: 'ilang segundo',\n ss: '%d segundo',\n m: 'isang minuto',\n mm: '%d minuto',\n h: 'isang oras',\n hh: '%d oras',\n d: 'isang araw',\n dd: '%d araw',\n M: 'isang buwan',\n MM: '%d buwan',\n y: 'isang taon',\n yy: '%d taon'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}/,\n ordinal: function ordinal(number) {\n return number;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return tlPh;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Klingon [tlh]\n//! author : Dominika Kruk : https://github.com/amaranthrose\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');\n\n function translateFuture(output) {\n var time = output;\n time = output.indexOf('jaj') !== -1 ? time.slice(0, -3) + 'leS' : output.indexOf('jar') !== -1 ? time.slice(0, -3) + 'waQ' : output.indexOf('DIS') !== -1 ? time.slice(0, -3) + 'nem' : time + ' pIq';\n return time;\n }\n\n function translatePast(output) {\n var time = output;\n time = output.indexOf('jaj') !== -1 ? time.slice(0, -3) + 'Hu’' : output.indexOf('jar') !== -1 ? time.slice(0, -3) + 'wen' : output.indexOf('DIS') !== -1 ? time.slice(0, -3) + 'ben' : time + ' ret';\n return time;\n }\n\n function translate(number, withoutSuffix, string, isFuture) {\n var numberNoun = numberAsNoun(number);\n\n switch (string) {\n case 'ss':\n return numberNoun + ' lup';\n\n case 'mm':\n return numberNoun + ' tup';\n\n case 'hh':\n return numberNoun + ' rep';\n\n case 'dd':\n return numberNoun + ' jaj';\n\n case 'MM':\n return numberNoun + ' jar';\n\n case 'yy':\n return numberNoun + ' DIS';\n }\n }\n\n function numberAsNoun(number) {\n var hundred = Math.floor(number % 1000 / 100),\n ten = Math.floor(number % 100 / 10),\n one = number % 10,\n word = '';\n\n if (hundred > 0) {\n word += numbersNouns[hundred] + 'vatlh';\n }\n\n if (ten > 0) {\n word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH';\n }\n\n if (one > 0) {\n word += (word !== '' ? ' ' : '') + numbersNouns[one];\n }\n\n return word === '' ? 'pagh' : word;\n }\n\n var tlh = moment.defineLocale('tlh', {\n months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split('_'),\n monthsShort: 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split('_'),\n monthsParseExact: true,\n weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),\n weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),\n weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[DaHjaj] LT',\n nextDay: '[wa’leS] LT',\n nextWeek: 'LLL',\n lastDay: '[wa’Hu’] LT',\n lastWeek: 'LLL',\n sameElse: 'L'\n },\n relativeTime: {\n future: translateFuture,\n past: translatePast,\n s: 'puS lup',\n ss: translate,\n m: 'wa’ tup',\n mm: translate,\n h: 'wa’ rep',\n hh: translate,\n d: 'wa’ jaj',\n dd: translate,\n M: 'wa’ jar',\n MM: translate,\n y: 'wa’ DIS',\n yy: translate\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return tlh;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Turkish [tr]\n//! authors : Erhan Gundogan : https://github.com/erhangundogan,\n//! Burak Yiğit Kaya: https://github.com/BYK\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var suffixes = {\n 1: \"'inci\",\n 5: \"'inci\",\n 8: \"'inci\",\n 70: \"'inci\",\n 80: \"'inci\",\n 2: \"'nci\",\n 7: \"'nci\",\n 20: \"'nci\",\n 50: \"'nci\",\n 3: \"'üncü\",\n 4: \"'üncü\",\n 100: \"'üncü\",\n 6: \"'ncı\",\n 9: \"'uncu\",\n 10: \"'uncu\",\n 30: \"'uncu\",\n 60: \"'ıncı\",\n 90: \"'ıncı\"\n };\n var tr = moment.defineLocale('tr', {\n months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),\n monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),\n weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),\n weekdaysShort: 'Paz_Pzt_Sal_Çar_Per_Cum_Cmt'.split('_'),\n weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),\n meridiem: function meridiem(hours, minutes, isLower) {\n if (hours < 12) {\n return isLower ? 'öö' : 'ÖÖ';\n } else {\n return isLower ? 'ös' : 'ÖS';\n }\n },\n meridiemParse: /öö|ÖÖ|ös|ÖS/,\n isPM: function isPM(input) {\n return input === 'ös' || input === 'ÖS';\n },\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[bugün saat] LT',\n nextDay: '[yarın saat] LT',\n nextWeek: '[gelecek] dddd [saat] LT',\n lastDay: '[dün] LT',\n lastWeek: '[geçen] dddd [saat] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s sonra',\n past: '%s önce',\n s: 'birkaç saniye',\n ss: '%d saniye',\n m: 'bir dakika',\n mm: '%d dakika',\n h: 'bir saat',\n hh: '%d saat',\n d: 'bir gün',\n dd: '%d gün',\n w: 'bir hafta',\n ww: '%d hafta',\n M: 'bir ay',\n MM: '%d ay',\n y: 'bir yıl',\n yy: '%d yıl'\n },\n ordinal: function ordinal(number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'Do':\n case 'DD':\n return number;\n\n default:\n if (number === 0) {\n // special case for zero\n return number + \"'ıncı\";\n }\n\n var a = number % 10,\n b = number % 100 - a,\n c = number >= 100 ? 100 : null;\n return number + (suffixes[a] || suffixes[b] || suffixes[c]);\n }\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n\n }\n });\n return tr;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Talossan [tzl]\n//! author : Robin van der Vliet : https://github.com/robin0van0der0v\n//! author : Iustì Canun\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.\n // This is currently too difficult (maybe even impossible) to add.\n\n var tzl = moment.defineLocale('tzl', {\n months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'),\n monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),\n weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),\n weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),\n weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM [dallas] YYYY',\n LLL: 'D. MMMM [dallas] YYYY HH.mm',\n LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm'\n },\n meridiemParse: /d\\'o|d\\'a/i,\n isPM: function isPM(input) {\n return \"d'o\" === input.toLowerCase();\n },\n meridiem: function meridiem(hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? \"d'o\" : \"D'O\";\n } else {\n return isLower ? \"d'a\" : \"D'A\";\n }\n },\n calendar: {\n sameDay: '[oxhi à] LT',\n nextDay: '[demà à] LT',\n nextWeek: 'dddd [à] LT',\n lastDay: '[ieiri à] LT',\n lastWeek: '[sür el] dddd [lasteu à] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'osprei %s',\n past: 'ja%s',\n s: processRelativeTime,\n ss: processRelativeTime,\n m: processRelativeTime,\n mm: processRelativeTime,\n h: processRelativeTime,\n hh: processRelativeTime,\n d: processRelativeTime,\n dd: processRelativeTime,\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n s: ['viensas secunds', \"'iensas secunds\"],\n ss: [number + ' secunds', '' + number + ' secunds'],\n m: [\"'n míut\", \"'iens míut\"],\n mm: [number + ' míuts', '' + number + ' míuts'],\n h: [\"'n þora\", \"'iensa þora\"],\n hh: [number + ' þoras', '' + number + ' þoras'],\n d: [\"'n ziua\", \"'iensa ziua\"],\n dd: [number + ' ziuas', '' + number + ' ziuas'],\n M: [\"'n mes\", \"'iens mes\"],\n MM: [number + ' mesen', '' + number + ' mesen'],\n y: [\"'n ar\", \"'iens ar\"],\n yy: [number + ' ars', '' + number + ' ars']\n };\n return isFuture ? format[key][0] : withoutSuffix ? format[key][0] : format[key][1];\n }\n\n return tzl;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Central Atlas Tamazight [tzm]\n//! author : Abdel Said : https://github.com/abdelsaid\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var tzm = moment.defineLocale('tzm', {\n months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),\n monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),\n weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),\n weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),\n weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',\n nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',\n nextWeek: 'dddd [ⴴ] LT',\n lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',\n lastWeek: 'dddd [ⴴ] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',\n past: 'ⵢⴰⵏ %s',\n s: 'ⵉⵎⵉⴽ',\n ss: '%d ⵉⵎⵉⴽ',\n m: 'ⵎⵉⵏⵓⴺ',\n mm: '%d ⵎⵉⵏⵓⴺ',\n h: 'ⵙⴰⵄⴰ',\n hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',\n d: 'ⴰⵙⵙ',\n dd: '%d oⵙⵙⴰⵏ',\n M: 'ⴰⵢoⵓⵔ',\n MM: '%d ⵉⵢⵢⵉⵔⵏ',\n y: 'ⴰⵙⴳⴰⵙ',\n yy: '%d ⵉⵙⴳⴰⵙⵏ'\n },\n week: {\n dow: 6,\n // Saturday is the first day of the week.\n doy: 12 // The week that contains Jan 12th is the first week of the year.\n\n }\n });\n return tzm;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Central Atlas Tamazight Latin [tzm-latn]\n//! author : Abdel Said : https://github.com/abdelsaid\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var tzmLatn = moment.defineLocale('tzm-latn', {\n months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),\n monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),\n weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),\n weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),\n weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[asdkh g] LT',\n nextDay: '[aska g] LT',\n nextWeek: 'dddd [g] LT',\n lastDay: '[assant g] LT',\n lastWeek: 'dddd [g] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'dadkh s yan %s',\n past: 'yan %s',\n s: 'imik',\n ss: '%d imik',\n m: 'minuḍ',\n mm: '%d minuḍ',\n h: 'saɛa',\n hh: '%d tassaɛin',\n d: 'ass',\n dd: '%d ossan',\n M: 'ayowr',\n MM: '%d iyyirn',\n y: 'asgas',\n yy: '%d isgasn'\n },\n week: {\n dow: 6,\n // Saturday is the first day of the week.\n doy: 12 // The week that contains Jan 12th is the first week of the year.\n\n }\n });\n return tzmLatn;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Uyghur (China) [ug-cn]\n//! author: boyaq : https://github.com/boyaq\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var ugCn = moment.defineLocale('ug-cn', {\n months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split('_'),\n monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split('_'),\n weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split('_'),\n weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),\n weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',\n LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',\n LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm'\n },\n meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,\n meridiemHour: function meridiemHour(hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n\n if (meridiem === 'يېرىم كېچە' || meridiem === 'سەھەر' || meridiem === 'چۈشتىن بۇرۇن') {\n return hour;\n } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {\n return hour + 12;\n } else {\n return hour >= 11 ? hour : hour + 12;\n }\n },\n meridiem: function meridiem(hour, minute, isLower) {\n var hm = hour * 100 + minute;\n\n if (hm < 600) {\n return 'يېرىم كېچە';\n } else if (hm < 900) {\n return 'سەھەر';\n } else if (hm < 1130) {\n return 'چۈشتىن بۇرۇن';\n } else if (hm < 1230) {\n return 'چۈش';\n } else if (hm < 1800) {\n return 'چۈشتىن كېيىن';\n } else {\n return 'كەچ';\n }\n },\n calendar: {\n sameDay: '[بۈگۈن سائەت] LT',\n nextDay: '[ئەتە سائەت] LT',\n nextWeek: '[كېلەركى] dddd [سائەت] LT',\n lastDay: '[تۆنۈگۈن] LT',\n lastWeek: '[ئالدىنقى] dddd [سائەت] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s كېيىن',\n past: '%s بۇرۇن',\n s: 'نەچچە سېكونت',\n ss: '%d سېكونت',\n m: 'بىر مىنۇت',\n mm: '%d مىنۇت',\n h: 'بىر سائەت',\n hh: '%d سائەت',\n d: 'بىر كۈن',\n dd: '%d كۈن',\n M: 'بىر ئاي',\n MM: '%d ئاي',\n y: 'بىر يىل',\n yy: '%d يىل'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,\n ordinal: function ordinal(number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '-كۈنى';\n\n case 'w':\n case 'W':\n return number + '-ھەپتە';\n\n default:\n return number;\n }\n },\n preparse: function preparse(string) {\n return string.replace(/،/g, ',');\n },\n postformat: function postformat(string) {\n return string.replace(/,/g, '،');\n },\n week: {\n // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 1st is the first week of the year.\n\n }\n });\n return ugCn;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Ukrainian [uk]\n//! author : zemlanin : https://github.com/zemlanin\n//! Author : Menelion Elensúle : https://github.com/Oire\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n function plural(word, num) {\n var forms = word.split('_');\n return num % 10 === 1 && num % 100 !== 11 ? forms[0] : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2];\n }\n\n function relativeTimeWithPlural(number, withoutSuffix, key) {\n var format = {\n ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',\n mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',\n hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин',\n dd: 'день_дні_днів',\n MM: 'місяць_місяці_місяців',\n yy: 'рік_роки_років'\n };\n\n if (key === 'm') {\n return withoutSuffix ? 'хвилина' : 'хвилину';\n } else if (key === 'h') {\n return withoutSuffix ? 'година' : 'годину';\n } else {\n return number + ' ' + plural(format[key], +number);\n }\n }\n\n function weekdaysCaseReplace(m, format) {\n var weekdays = {\n nominative: 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),\n accusative: 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),\n genitive: 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')\n },\n nounCase;\n\n if (m === true) {\n return weekdays['nominative'].slice(1, 7).concat(weekdays['nominative'].slice(0, 1));\n }\n\n if (!m) {\n return weekdays['nominative'];\n }\n\n nounCase = /(\\[[ВвУу]\\]) ?dddd/.test(format) ? 'accusative' : /\\[?(?:минулої|наступної)? ?\\] ?dddd/.test(format) ? 'genitive' : 'nominative';\n return weekdays[nounCase][m.day()];\n }\n\n function processHoursFunction(str) {\n return function () {\n return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';\n };\n }\n\n var uk = moment.defineLocale('uk', {\n months: {\n format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'),\n standalone: 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_')\n },\n monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),\n weekdays: weekdaysCaseReplace,\n weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),\n weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY р.',\n LLL: 'D MMMM YYYY р., HH:mm',\n LLLL: 'dddd, D MMMM YYYY р., HH:mm'\n },\n calendar: {\n sameDay: processHoursFunction('[Сьогодні '),\n nextDay: processHoursFunction('[Завтра '),\n lastDay: processHoursFunction('[Вчора '),\n nextWeek: processHoursFunction('[У] dddd ['),\n lastWeek: function lastWeek() {\n switch (this.day()) {\n case 0:\n case 3:\n case 5:\n case 6:\n return processHoursFunction('[Минулої] dddd [').call(this);\n\n case 1:\n case 2:\n case 4:\n return processHoursFunction('[Минулого] dddd [').call(this);\n }\n },\n sameElse: 'L'\n },\n relativeTime: {\n future: 'за %s',\n past: '%s тому',\n s: 'декілька секунд',\n ss: relativeTimeWithPlural,\n m: relativeTimeWithPlural,\n mm: relativeTimeWithPlural,\n h: 'годину',\n hh: relativeTimeWithPlural,\n d: 'день',\n dd: relativeTimeWithPlural,\n M: 'місяць',\n MM: relativeTimeWithPlural,\n y: 'рік',\n yy: relativeTimeWithPlural\n },\n // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason\n meridiemParse: /ночі|ранку|дня|вечора/,\n isPM: function isPM(input) {\n return /^(дня|вечора)$/.test(input);\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 4) {\n return 'ночі';\n } else if (hour < 12) {\n return 'ранку';\n } else if (hour < 17) {\n return 'дня';\n } else {\n return 'вечора';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(й|го)/,\n ordinal: function ordinal(number, period) {\n switch (period) {\n case 'M':\n case 'd':\n case 'DDD':\n case 'w':\n case 'W':\n return number + '-й';\n\n case 'D':\n return number + '-го';\n\n default:\n return number;\n }\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n\n }\n });\n return uk;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Urdu [ur]\n//! author : Sawood Alam : https://github.com/ibnesayeed\n//! author : Zack : https://github.com/ZackVision\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var months = ['جنوری', 'فروری', 'مارچ', 'اپریل', 'مئی', 'جون', 'جولائی', 'اگست', 'ستمبر', 'اکتوبر', 'نومبر', 'دسمبر'],\n days = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];\n var ur = moment.defineLocale('ur', {\n months: months,\n monthsShort: months,\n weekdays: days,\n weekdaysShort: days,\n weekdaysMin: days,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd، D MMMM YYYY HH:mm'\n },\n meridiemParse: /صبح|شام/,\n isPM: function isPM(input) {\n return 'شام' === input;\n },\n meridiem: function meridiem(hour, minute, isLower) {\n if (hour < 12) {\n return 'صبح';\n }\n\n return 'شام';\n },\n calendar: {\n sameDay: '[آج بوقت] LT',\n nextDay: '[کل بوقت] LT',\n nextWeek: 'dddd [بوقت] LT',\n lastDay: '[گذشتہ روز بوقت] LT',\n lastWeek: '[گذشتہ] dddd [بوقت] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s بعد',\n past: '%s قبل',\n s: 'چند سیکنڈ',\n ss: '%d سیکنڈ',\n m: 'ایک منٹ',\n mm: '%d منٹ',\n h: 'ایک گھنٹہ',\n hh: '%d گھنٹے',\n d: 'ایک دن',\n dd: '%d دن',\n M: 'ایک ماہ',\n MM: '%d ماہ',\n y: 'ایک سال',\n yy: '%d سال'\n },\n preparse: function preparse(string) {\n return string.replace(/،/g, ',');\n },\n postformat: function postformat(string) {\n return string.replace(/,/g, '،');\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return ur;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Uzbek [uz]\n//! author : Sardor Muminov : https://github.com/muminoff\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var uz = moment.defineLocale('uz', {\n months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),\n monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),\n weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),\n weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),\n weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'D MMMM YYYY, dddd HH:mm'\n },\n calendar: {\n sameDay: '[Бугун соат] LT [да]',\n nextDay: '[Эртага] LT [да]',\n nextWeek: 'dddd [куни соат] LT [да]',\n lastDay: '[Кеча соат] LT [да]',\n lastWeek: '[Утган] dddd [куни соат] LT [да]',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'Якин %s ичида',\n past: 'Бир неча %s олдин',\n s: 'фурсат',\n ss: '%d фурсат',\n m: 'бир дакика',\n mm: '%d дакика',\n h: 'бир соат',\n hh: '%d соат',\n d: 'бир кун',\n dd: '%d кун',\n M: 'бир ой',\n MM: '%d ой',\n y: 'бир йил',\n yy: '%d йил'\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return uz;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Uzbek Latin [uz-latn]\n//! author : Rasulbek Mirzayev : github.com/Rasulbeeek\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var uzLatn = moment.defineLocale('uz-latn', {\n months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split('_'),\n monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),\n weekdays: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split('_'),\n weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),\n weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'D MMMM YYYY, dddd HH:mm'\n },\n calendar: {\n sameDay: '[Bugun soat] LT [da]',\n nextDay: '[Ertaga] LT [da]',\n nextWeek: 'dddd [kuni soat] LT [da]',\n lastDay: '[Kecha soat] LT [da]',\n lastWeek: \"[O'tgan] dddd [kuni soat] LT [da]\",\n sameElse: 'L'\n },\n relativeTime: {\n future: 'Yaqin %s ichida',\n past: 'Bir necha %s oldin',\n s: 'soniya',\n ss: '%d soniya',\n m: 'bir daqiqa',\n mm: '%d daqiqa',\n h: 'bir soat',\n hh: '%d soat',\n d: 'bir kun',\n dd: '%d kun',\n M: 'bir oy',\n MM: '%d oy',\n y: 'bir yil',\n yy: '%d yil'\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 7 // The week that contains Jan 7th is the first week of the year.\n\n }\n });\n return uzLatn;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Vietnamese [vi]\n//! author : Bang Nguyen : https://github.com/bangnk\n//! author : Chien Kira : https://github.com/chienkira\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var vi = moment.defineLocale('vi', {\n months: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'),\n monthsShort: 'Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12'.split('_'),\n monthsParseExact: true,\n weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),\n weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),\n weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),\n weekdaysParseExact: true,\n meridiemParse: /sa|ch/i,\n isPM: function isPM(input) {\n return /^ch$/i.test(input);\n },\n meridiem: function meridiem(hours, minutes, isLower) {\n if (hours < 12) {\n return isLower ? 'sa' : 'SA';\n } else {\n return isLower ? 'ch' : 'CH';\n }\n },\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM [năm] YYYY',\n LLL: 'D MMMM [năm] YYYY HH:mm',\n LLLL: 'dddd, D MMMM [năm] YYYY HH:mm',\n l: 'DD/M/YYYY',\n ll: 'D MMM YYYY',\n lll: 'D MMM YYYY HH:mm',\n llll: 'ddd, D MMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[Hôm nay lúc] LT',\n nextDay: '[Ngày mai lúc] LT',\n nextWeek: 'dddd [tuần tới lúc] LT',\n lastDay: '[Hôm qua lúc] LT',\n lastWeek: 'dddd [tuần trước lúc] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: '%s tới',\n past: '%s trước',\n s: 'vài giây',\n ss: '%d giây',\n m: 'một phút',\n mm: '%d phút',\n h: 'một giờ',\n hh: '%d giờ',\n d: 'một ngày',\n dd: '%d ngày',\n w: 'một tuần',\n ww: '%d tuần',\n M: 'một tháng',\n MM: '%d tháng',\n y: 'một năm',\n yy: '%d năm'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}/,\n ordinal: function ordinal(number) {\n return number;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return vi;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Pseudo [x-pseudo]\n//! author : Andrew Hood : https://github.com/andrewhood125\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var xPseudo = moment.defineLocale('x-pseudo', {\n months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split('_'),\n monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'),\n monthsParseExact: true,\n weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'),\n weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),\n weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm'\n },\n calendar: {\n sameDay: '[T~ódá~ý át] LT',\n nextDay: '[T~ómó~rró~w át] LT',\n nextWeek: 'dddd [át] LT',\n lastDay: '[Ý~ést~érdá~ý át] LT',\n lastWeek: '[L~ást] dddd [át] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'í~ñ %s',\n past: '%s á~gó',\n s: 'á ~féw ~sécó~ñds',\n ss: '%d s~écóñ~ds',\n m: 'á ~míñ~úté',\n mm: '%d m~íñú~tés',\n h: 'á~ñ hó~úr',\n hh: '%d h~óúrs',\n d: 'á ~dáý',\n dd: '%d d~áýs',\n M: 'á ~móñ~th',\n MM: '%d m~óñt~hs',\n y: 'á ~ýéár',\n yy: '%d ý~éárs'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(th|st|nd|rd)/,\n ordinal: function ordinal(number) {\n var b = number % 10,\n output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';\n return number + output;\n },\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return xPseudo;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Yoruba Nigeria [yo]\n//! author : Atolagbe Abisoye : https://github.com/andela-batolagbe\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var yo = moment.defineLocale('yo', {\n months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split('_'),\n monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),\n weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),\n weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),\n weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A'\n },\n calendar: {\n sameDay: '[Ònì ni] LT',\n nextDay: '[Ọ̀la ni] LT',\n nextWeek: \"dddd [Ọsẹ̀ tón'bọ] [ni] LT\",\n lastDay: '[Àna ni] LT',\n lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',\n sameElse: 'L'\n },\n relativeTime: {\n future: 'ní %s',\n past: '%s kọjá',\n s: 'ìsẹjú aayá die',\n ss: 'aayá %d',\n m: 'ìsẹjú kan',\n mm: 'ìsẹjú %d',\n h: 'wákati kan',\n hh: 'wákati %d',\n d: 'ọjọ́ kan',\n dd: 'ọjọ́ %d',\n M: 'osù kan',\n MM: 'osù %d',\n y: 'ọdún kan',\n yy: 'ọdún %d'\n },\n dayOfMonthOrdinalParse: /ọjọ́\\s\\d{1,2}/,\n ordinal: 'ọjọ́ %d',\n week: {\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return yo;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Chinese (China) [zh-cn]\n//! author : suupic : https://github.com/suupic\n//! author : Zeno Zeng : https://github.com/zenozeng\n//! author : uu109 : https://github.com/uu109\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var zhCn = moment.defineLocale('zh-cn', {\n months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\n weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),\n weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY/MM/DD',\n LL: 'YYYY年M月D日',\n LLL: 'YYYY年M月D日Ah点mm分',\n LLLL: 'YYYY年M月D日ddddAh点mm分',\n l: 'YYYY/M/D',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日dddd HH:mm'\n },\n meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n meridiemHour: function meridiemHour(hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n\n if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\n return hour;\n } else if (meridiem === '下午' || meridiem === '晚上') {\n return hour + 12;\n } else {\n // '中午'\n return hour >= 11 ? hour : hour + 12;\n }\n },\n meridiem: function meridiem(hour, minute, isLower) {\n var hm = hour * 100 + minute;\n\n if (hm < 600) {\n return '凌晨';\n } else if (hm < 900) {\n return '早上';\n } else if (hm < 1130) {\n return '上午';\n } else if (hm < 1230) {\n return '中午';\n } else if (hm < 1800) {\n return '下午';\n } else {\n return '晚上';\n }\n },\n calendar: {\n sameDay: '[今天]LT',\n nextDay: '[明天]LT',\n nextWeek: function nextWeek(now) {\n if (now.week() !== this.week()) {\n return '[下]dddLT';\n } else {\n return '[本]dddLT';\n }\n },\n lastDay: '[昨天]LT',\n lastWeek: function lastWeek(now) {\n if (this.week() !== now.week()) {\n return '[上]dddLT';\n } else {\n return '[本]dddLT';\n }\n },\n sameElse: 'L'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(日|月|周)/,\n ordinal: function ordinal(number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n\n case 'M':\n return number + '月';\n\n case 'w':\n case 'W':\n return number + '周';\n\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s后',\n past: '%s前',\n s: '几秒',\n ss: '%d 秒',\n m: '1 分钟',\n mm: '%d 分钟',\n h: '1 小时',\n hh: '%d 小时',\n d: '1 天',\n dd: '%d 天',\n w: '1 周',\n ww: '%d 周',\n M: '1 个月',\n MM: '%d 个月',\n y: '1 年',\n yy: '%d 年'\n },\n week: {\n // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效\n dow: 1,\n // Monday is the first day of the week.\n doy: 4 // The week that contains Jan 4th is the first week of the year.\n\n }\n });\n return zhCn;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Chinese (Hong Kong) [zh-hk]\n//! author : Ben : https://github.com/ben-lin\n//! author : Chris Lam : https://github.com/hehachris\n//! author : Konstantin : https://github.com/skfd\n//! author : Anthony : https://github.com/anthonylau\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var zhHk = moment.defineLocale('zh-hk', {\n months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\n weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),\n weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY/MM/DD',\n LL: 'YYYY年M月D日',\n LLL: 'YYYY年M月D日 HH:mm',\n LLLL: 'YYYY年M月D日dddd HH:mm',\n l: 'YYYY/M/D',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日dddd HH:mm'\n },\n meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n meridiemHour: function meridiemHour(hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n\n if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\n return hour;\n } else if (meridiem === '中午') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === '下午' || meridiem === '晚上') {\n return hour + 12;\n }\n },\n meridiem: function meridiem(hour, minute, isLower) {\n var hm = hour * 100 + minute;\n\n if (hm < 600) {\n return '凌晨';\n } else if (hm < 900) {\n return '早上';\n } else if (hm < 1200) {\n return '上午';\n } else if (hm === 1200) {\n return '中午';\n } else if (hm < 1800) {\n return '下午';\n } else {\n return '晚上';\n }\n },\n calendar: {\n sameDay: '[今天]LT',\n nextDay: '[明天]LT',\n nextWeek: '[下]ddddLT',\n lastDay: '[昨天]LT',\n lastWeek: '[上]ddddLT',\n sameElse: 'L'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(日|月|週)/,\n ordinal: function ordinal(number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n\n case 'M':\n return number + '月';\n\n case 'w':\n case 'W':\n return number + '週';\n\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s後',\n past: '%s前',\n s: '幾秒',\n ss: '%d 秒',\n m: '1 分鐘',\n mm: '%d 分鐘',\n h: '1 小時',\n hh: '%d 小時',\n d: '1 天',\n dd: '%d 天',\n M: '1 個月',\n MM: '%d 個月',\n y: '1 年',\n yy: '%d 年'\n }\n });\n return zhHk;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Chinese (Macau) [zh-mo]\n//! author : Ben : https://github.com/ben-lin\n//! author : Chris Lam : https://github.com/hehachris\n//! author : Tan Yuanhong : https://github.com/le0tan\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var zhMo = moment.defineLocale('zh-mo', {\n months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\n weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),\n weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'YYYY年M月D日',\n LLL: 'YYYY年M月D日 HH:mm',\n LLLL: 'YYYY年M月D日dddd HH:mm',\n l: 'D/M/YYYY',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日dddd HH:mm'\n },\n meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n meridiemHour: function meridiemHour(hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n\n if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\n return hour;\n } else if (meridiem === '中午') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === '下午' || meridiem === '晚上') {\n return hour + 12;\n }\n },\n meridiem: function meridiem(hour, minute, isLower) {\n var hm = hour * 100 + minute;\n\n if (hm < 600) {\n return '凌晨';\n } else if (hm < 900) {\n return '早上';\n } else if (hm < 1130) {\n return '上午';\n } else if (hm < 1230) {\n return '中午';\n } else if (hm < 1800) {\n return '下午';\n } else {\n return '晚上';\n }\n },\n calendar: {\n sameDay: '[今天] LT',\n nextDay: '[明天] LT',\n nextWeek: '[下]dddd LT',\n lastDay: '[昨天] LT',\n lastWeek: '[上]dddd LT',\n sameElse: 'L'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(日|月|週)/,\n ordinal: function ordinal(number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n\n case 'M':\n return number + '月';\n\n case 'w':\n case 'W':\n return number + '週';\n\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s內',\n past: '%s前',\n s: '幾秒',\n ss: '%d 秒',\n m: '1 分鐘',\n mm: '%d 分鐘',\n h: '1 小時',\n hh: '%d 小時',\n d: '1 天',\n dd: '%d 天',\n M: '1 個月',\n MM: '%d 個月',\n y: '1 年',\n yy: '%d 年'\n }\n });\n return zhMo;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n//! moment.js locale configuration\n//! locale : Chinese (Taiwan) [zh-tw]\n//! author : Ben : https://github.com/ben-lin\n//! author : Chris Lam : https://github.com/hehachris\n;\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment);\n})(this, function (moment) {\n 'use strict'; //! moment.js locale configuration\n\n var zhTw = moment.defineLocale('zh-tw', {\n months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\n weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),\n weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY/MM/DD',\n LL: 'YYYY年M月D日',\n LLL: 'YYYY年M月D日 HH:mm',\n LLLL: 'YYYY年M月D日dddd HH:mm',\n l: 'YYYY/M/D',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日dddd HH:mm'\n },\n meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n meridiemHour: function meridiemHour(hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n\n if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\n return hour;\n } else if (meridiem === '中午') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === '下午' || meridiem === '晚上') {\n return hour + 12;\n }\n },\n meridiem: function meridiem(hour, minute, isLower) {\n var hm = hour * 100 + minute;\n\n if (hm < 600) {\n return '凌晨';\n } else if (hm < 900) {\n return '早上';\n } else if (hm < 1130) {\n return '上午';\n } else if (hm < 1230) {\n return '中午';\n } else if (hm < 1800) {\n return '下午';\n } else {\n return '晚上';\n }\n },\n calendar: {\n sameDay: '[今天] LT',\n nextDay: '[明天] LT',\n nextWeek: '[下]dddd LT',\n lastDay: '[昨天] LT',\n lastWeek: '[上]dddd LT',\n sameElse: 'L'\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(日|月|週)/,\n ordinal: function ordinal(number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n\n case 'M':\n return number + '月';\n\n case 'w':\n case 'W':\n return number + '週';\n\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s後',\n past: '%s前',\n s: '幾秒',\n ss: '%d 秒',\n m: '1 分鐘',\n mm: '%d 分鐘',\n h: '1 小時',\n hh: '%d 小時',\n d: '1 天',\n dd: '%d 天',\n M: '1 個月',\n MM: '%d 個月',\n y: '1 年',\n yy: '%d 年'\n }\n });\n return zhTw;\n});","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name endOfDay\n * @category Day Helpers\n * @summary Return the end of a day for the given date.\n *\n * @description\n * Return the end of a day for the given date.\n * The result will be in the local timezone.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the end of a day\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The end of a day for 2 September 2014 11:55:00:\n * const result = endOfDay(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 02 2014 23:59:59.999\n */\n\nexport default function endOfDay(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n date.setHours(23, 59, 59, 999);\n return date;\n}","/*\n * This module exists for optimizations in the build process through rollup and terser. We define some global\n * constants, which can be overridden during build. By guarding certain pieces of code with functions that return these\n * constants, we can control whether or not they appear in the final bundle. (Any code guarded by a false condition will\n * never run, and will hence be dropped during treeshaking.) The two primary uses for this are stripping out calls to\n * `logger` and preventing node-related code from appearing in browser bundles.\n *\n * Attention:\n * This file should not be used to define constants/flags that are intended to be used for tree-shaking conducted by\n * users. These fags should live in their respective packages, as we identified user tooling (specifically webpack)\n * having issues tree-shaking these constants across package boundaries.\n * An example for this is the __SENTRY_DEBUG__ constant. It is declared in each package individually because we want\n * users to be able to shake away expressions that it guards.\n */\n\n/**\n * Figures out if we're building a browser bundle.\n *\n * @returns true if this is a browser bundle build.\n */\nexport function isBrowserBundle() {\n return typeof __SENTRY_BROWSER_BUNDLE__ !== 'undefined' && !!__SENTRY_BROWSER_BUNDLE__;\n}","import { getGlobalObject } from './global';\nimport { isString } from './is';\n/**\n * Given a child DOM element, returns a query-selector statement describing that\n * and its ancestors\n * e.g. [HTMLElement] => body > div > input#foo.btn[name=baz]\n * @returns generated DOM path\n */\n\nexport function htmlTreeAsString(elem, keyAttrs) {\n // try/catch both:\n // - accessing event.target (see getsentry/raven-js#838, #768)\n // - `htmlTreeAsString` because it's complex, and just accessing the DOM incorrectly\n // - can throw an exception in some circumstances.\n try {\n var currentElem = elem;\n var MAX_TRAVERSE_HEIGHT = 5;\n var MAX_OUTPUT_LEN = 80;\n var out = [];\n var height = 0;\n var len = 0;\n var separator = ' > ';\n var sepLength = separator.length;\n var nextStr = void 0; // eslint-disable-next-line no-plusplus\n\n while (currentElem && height++ < MAX_TRAVERSE_HEIGHT) {\n nextStr = _htmlElementAsString(currentElem, keyAttrs); // bail out if\n // - nextStr is the 'html' element\n // - the length of the string that would be created exceeds MAX_OUTPUT_LEN\n // (ignore this limit if we are on the first iteration)\n\n if (nextStr === 'html' || height > 1 && len + out.length * sepLength + nextStr.length >= MAX_OUTPUT_LEN) {\n break;\n }\n\n out.push(nextStr);\n len += nextStr.length;\n currentElem = currentElem.parentNode;\n }\n\n return out.reverse().join(separator);\n } catch (_oO) {\n return '';\n }\n}\n/**\n * Returns a simple, query-selector representation of a DOM element\n * e.g. [HTMLElement] => input#foo.btn[name=baz]\n * @returns generated DOM path\n */\n\nfunction _htmlElementAsString(el, keyAttrs) {\n var elem = el;\n var out = [];\n var className;\n var classes;\n var key;\n var attr;\n var i;\n\n if (!elem || !elem.tagName) {\n return '';\n }\n\n out.push(elem.tagName.toLowerCase()); // Pairs of attribute keys defined in `serializeAttribute` and their values on element.\n\n var keyAttrPairs = keyAttrs && keyAttrs.length ? keyAttrs.filter(function (keyAttr) {\n return elem.getAttribute(keyAttr);\n }).map(function (keyAttr) {\n return [keyAttr, elem.getAttribute(keyAttr)];\n }) : null;\n\n if (keyAttrPairs && keyAttrPairs.length) {\n keyAttrPairs.forEach(function (keyAttrPair) {\n out.push(\"[\" + keyAttrPair[0] + \"=\\\"\" + keyAttrPair[1] + \"\\\"]\");\n });\n } else {\n if (elem.id) {\n out.push(\"#\" + elem.id);\n } // eslint-disable-next-line prefer-const\n\n\n className = elem.className;\n\n if (className && isString(className)) {\n classes = className.split(/\\s+/);\n\n for (i = 0; i < classes.length; i++) {\n out.push(\".\" + classes[i]);\n }\n }\n }\n\n var allowedAttrs = ['type', 'name', 'title', 'alt'];\n\n for (i = 0; i < allowedAttrs.length; i++) {\n key = allowedAttrs[i];\n attr = elem.getAttribute(key);\n\n if (attr) {\n out.push(\"[\" + key + \"=\\\"\" + attr + \"\\\"]\");\n }\n }\n\n return out.join('');\n}\n/**\n * A safe form of location.href\n */\n\n\nexport function getLocationHref() {\n var global = getGlobalObject();\n\n try {\n return global.document.location.href;\n } catch (oO) {\n return '';\n }\n}","import { dropUndefinedKeys, timestampInSeconds, uuid4 } from '@sentry/utils';\n/**\n * @inheritdoc\n */\n\nvar Session =\n/** @class */\nfunction () {\n function Session(context) {\n this.errors = 0;\n this.sid = uuid4();\n this.duration = 0;\n this.status = 'ok';\n this.init = true;\n this.ignoreDuration = false; // Both timestamp and started are in seconds since the UNIX epoch.\n\n var startingTime = timestampInSeconds();\n this.timestamp = startingTime;\n this.started = startingTime;\n\n if (context) {\n this.update(context);\n }\n }\n /** JSDoc */\n // eslint-disable-next-line complexity\n\n\n Session.prototype.update = function (context) {\n if (context === void 0) {\n context = {};\n }\n\n if (context.user) {\n if (!this.ipAddress && context.user.ip_address) {\n this.ipAddress = context.user.ip_address;\n }\n\n if (!this.did && !context.did) {\n this.did = context.user.id || context.user.email || context.user.username;\n }\n }\n\n this.timestamp = context.timestamp || timestampInSeconds();\n\n if (context.ignoreDuration) {\n this.ignoreDuration = context.ignoreDuration;\n }\n\n if (context.sid) {\n // Good enough uuid validation. — Kamil\n this.sid = context.sid.length === 32 ? context.sid : uuid4();\n }\n\n if (context.init !== undefined) {\n this.init = context.init;\n }\n\n if (!this.did && context.did) {\n this.did = \"\" + context.did;\n }\n\n if (typeof context.started === 'number') {\n this.started = context.started;\n }\n\n if (this.ignoreDuration) {\n this.duration = undefined;\n } else if (typeof context.duration === 'number') {\n this.duration = context.duration;\n } else {\n var duration = this.timestamp - this.started;\n this.duration = duration >= 0 ? duration : 0;\n }\n\n if (context.release) {\n this.release = context.release;\n }\n\n if (context.environment) {\n this.environment = context.environment;\n }\n\n if (!this.ipAddress && context.ipAddress) {\n this.ipAddress = context.ipAddress;\n }\n\n if (!this.userAgent && context.userAgent) {\n this.userAgent = context.userAgent;\n }\n\n if (typeof context.errors === 'number') {\n this.errors = context.errors;\n }\n\n if (context.status) {\n this.status = context.status;\n }\n };\n /** JSDoc */\n\n\n Session.prototype.close = function (status) {\n if (status) {\n this.update({\n status: status\n });\n } else if (this.status === 'ok') {\n this.update({\n status: 'exited'\n });\n } else {\n this.update();\n }\n };\n /** JSDoc */\n\n\n Session.prototype.toJSON = function () {\n return dropUndefinedKeys({\n sid: \"\" + this.sid,\n init: this.init,\n // Make sure that sec is converted to ms for date constructor\n started: new Date(this.started * 1000).toISOString(),\n timestamp: new Date(this.timestamp * 1000).toISOString(),\n status: this.status,\n errors: this.errors,\n did: typeof this.did === 'number' || typeof this.did === 'string' ? \"\" + this.did : undefined,\n duration: this.duration,\n attrs: {\n release: this.release,\n environment: this.environment,\n ip_address: this.ipAddress,\n user_agent: this.userAgent\n }\n });\n };\n\n return Session;\n}();\n\nexport { Session };","'use strict';\n/**\n * Matcher, slightly modified from:\n *\n * https://github.com/csnover/js-iso8601/blob/lax/iso8601.js\n */\n\nvar matcher = /^(\\d{4})(?:-?(\\d{2})(?:-?(\\d{2}))?)?(?:([ T])(\\d{2}):?(\\d{2})(?::?(\\d{2})(?:[,\\.](\\d{1,}))?)?(?:(Z)|([+\\-])(\\d{2})(?::?(\\d{2}))?)?)?$/;\n/**\n * Convert an ISO date string to a date. Fallback to native `Date.parse`.\n *\n * https://github.com/csnover/js-iso8601/blob/lax/iso8601.js\n *\n * @param {String} iso\n * @return {Date}\n */\n\nexports.parse = function (iso) {\n var numericKeys = [1, 5, 6, 7, 11, 12];\n var arr = matcher.exec(iso);\n var offset = 0; // fallback to native parsing\n\n if (!arr) {\n return new Date(iso);\n }\n /* eslint-disable no-cond-assign */\n // remove undefined values\n\n\n for (var i = 0, val; val = numericKeys[i]; i++) {\n arr[val] = parseInt(arr[val], 10) || 0;\n }\n /* eslint-enable no-cond-assign */\n // allow undefined days and months\n\n\n arr[2] = parseInt(arr[2], 10) || 1;\n arr[3] = parseInt(arr[3], 10) || 1; // month is 0-11\n\n arr[2]--; // allow abitrary sub-second precision\n\n arr[8] = arr[8] ? (arr[8] + '00').substring(0, 3) : 0; // apply timezone if one exists\n\n if (arr[4] === ' ') {\n offset = new Date().getTimezoneOffset();\n } else if (arr[9] !== 'Z' && arr[10]) {\n offset = arr[11] * 60 + arr[12];\n\n if (arr[10] === '+') {\n offset = 0 - offset;\n }\n }\n\n var millis = Date.UTC(arr[1], arr[2], arr[3], arr[5], arr[6] + offset, arr[7], arr[8]);\n return new Date(millis);\n};\n/**\n * Checks whether a `string` is an ISO date string. `strict` mode requires that\n * the date string at least have a year, month and date.\n *\n * @param {String} string\n * @param {Boolean} strict\n * @return {Boolean}\n */\n\n\nexports.is = function (string, strict) {\n if (typeof string !== 'string') {\n return false;\n }\n\n if (strict && /^\\d{4}-\\d{2}-\\d{2}/.test(string) === false) {\n return false;\n }\n\n return matcher.test(string);\n};","\"use strict\";\n\nvar __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Identify = void 0;\n\nvar facade_1 = require(\"./facade\");\n\nvar obj_case_1 = __importDefault(require(\"obj-case\"));\n\nvar inherits_1 = __importDefault(require(\"inherits\"));\n\nvar is_email_1 = __importDefault(require(\"./is-email\"));\n\nvar new_date_1 = __importDefault(require(\"new-date\"));\n\nvar trim = function trim(str) {\n return str.trim();\n};\n\nfunction Identify(dictionary, opts) {\n facade_1.Facade.call(this, dictionary, opts);\n}\n\nexports.Identify = Identify;\ninherits_1.default(Identify, facade_1.Facade);\nvar i = Identify.prototype;\n\ni.action = function () {\n return \"identify\";\n};\n\ni.type = i.action;\n\ni.traits = function (aliases) {\n var ret = this.field(\"traits\") || {};\n var id = this.userId();\n aliases = aliases || {};\n if (id) ret.id = id;\n\n for (var alias in aliases) {\n var value = this[alias] == null ? this.proxy(\"traits.\" + alias) : this[alias]();\n if (value == null) continue;\n ret[aliases[alias]] = value;\n if (alias !== aliases[alias]) delete ret[alias];\n }\n\n return ret;\n};\n\ni.email = function () {\n var email = this.proxy(\"traits.email\");\n if (email) return email;\n var userId = this.userId();\n if (is_email_1.default(userId)) return userId;\n};\n\ni.created = function () {\n var created = this.proxy(\"traits.created\") || this.proxy(\"traits.createdAt\");\n if (created) return new_date_1.default(created);\n};\n\ni.companyCreated = function () {\n var created = this.proxy(\"traits.company.created\") || this.proxy(\"traits.company.createdAt\");\n\n if (created) {\n return new_date_1.default(created);\n }\n};\n\ni.companyName = function () {\n return this.proxy(\"traits.company.name\");\n};\n\ni.name = function () {\n var name = this.proxy(\"traits.name\");\n\n if (typeof name === \"string\") {\n return trim(name);\n }\n\n var firstName = this.firstName();\n var lastName = this.lastName();\n\n if (firstName && lastName) {\n return trim(firstName + \" \" + lastName);\n }\n};\n\ni.firstName = function () {\n var firstName = this.proxy(\"traits.firstName\");\n\n if (typeof firstName === \"string\") {\n return trim(firstName);\n }\n\n var name = this.proxy(\"traits.name\");\n\n if (typeof name === \"string\") {\n return trim(name).split(\" \")[0];\n }\n};\n\ni.lastName = function () {\n var lastName = this.proxy(\"traits.lastName\");\n\n if (typeof lastName === \"string\") {\n return trim(lastName);\n }\n\n var name = this.proxy(\"traits.name\");\n\n if (typeof name !== \"string\") {\n return;\n }\n\n var space = trim(name).indexOf(\" \");\n\n if (space === -1) {\n return;\n }\n\n return trim(name.substr(space + 1));\n};\n\ni.uid = function () {\n return this.userId() || this.username() || this.email();\n};\n\ni.description = function () {\n return this.proxy(\"traits.description\") || this.proxy(\"traits.background\");\n};\n\ni.age = function () {\n var date = this.birthday();\n var age = obj_case_1.default(this.traits(), \"age\");\n if (age != null) return age;\n if (!(date instanceof Date)) return;\n var now = new Date();\n return now.getFullYear() - date.getFullYear();\n};\n\ni.avatar = function () {\n var traits = this.traits();\n return obj_case_1.default(traits, \"avatar\") || obj_case_1.default(traits, \"photoUrl\") || obj_case_1.default(traits, \"avatarUrl\");\n};\n\ni.position = function () {\n var traits = this.traits();\n return obj_case_1.default(traits, \"position\") || obj_case_1.default(traits, \"jobTitle\");\n};\n\ni.username = facade_1.Facade.proxy(\"traits.username\");\ni.website = facade_1.Facade.one(\"traits.website\");\ni.websites = facade_1.Facade.multi(\"traits.website\");\ni.phone = facade_1.Facade.one(\"traits.phone\");\ni.phones = facade_1.Facade.multi(\"traits.phone\");\ni.address = facade_1.Facade.proxy(\"traits.address\");\ni.gender = facade_1.Facade.proxy(\"traits.gender\");\ni.birthday = facade_1.Facade.proxy(\"traits.birthday\");","\"use strict\";\n\nvar __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Page = void 0;\n\nvar inherits_1 = __importDefault(require(\"inherits\"));\n\nvar facade_1 = require(\"./facade\");\n\nvar track_1 = require(\"./track\");\n\nvar is_email_1 = __importDefault(require(\"./is-email\"));\n\nfunction Page(dictionary, opts) {\n facade_1.Facade.call(this, dictionary, opts);\n}\n\nexports.Page = Page;\ninherits_1.default(Page, facade_1.Facade);\nvar p = Page.prototype;\n\np.action = function () {\n return \"page\";\n};\n\np.type = p.action;\np.category = facade_1.Facade.field(\"category\");\np.name = facade_1.Facade.field(\"name\");\np.title = facade_1.Facade.proxy(\"properties.title\");\np.path = facade_1.Facade.proxy(\"properties.path\");\np.url = facade_1.Facade.proxy(\"properties.url\");\n\np.referrer = function () {\n return this.proxy(\"context.referrer.url\") || this.proxy(\"context.page.referrer\") || this.proxy(\"properties.referrer\");\n};\n\np.properties = function (aliases) {\n var props = this.field(\"properties\") || {};\n var category = this.category();\n var name = this.name();\n aliases = aliases || {};\n if (category) props.category = category;\n if (name) props.name = name;\n\n for (var alias in aliases) {\n if (Object.prototype.hasOwnProperty.call(aliases, alias)) {\n var value = this[alias] == null ? this.proxy(\"properties.\" + alias) : this[alias]();\n if (value == null) continue;\n props[aliases[alias]] = value;\n if (alias !== aliases[alias]) delete props[alias];\n }\n }\n\n return props;\n};\n\np.email = function () {\n var email = this.proxy(\"context.traits.email\") || this.proxy(\"properties.email\");\n if (email) return email;\n var userId = this.userId();\n if (is_email_1.default(userId)) return userId;\n};\n\np.fullName = function () {\n var category = this.category();\n var name = this.name();\n return name && category ? category + \" \" + name : name;\n};\n\np.event = function (name) {\n return name ? \"Viewed \" + name + \" Page\" : \"Loaded a Page\";\n};\n\np.track = function (name) {\n var json = this.json();\n json.event = this.event(name);\n json.timestamp = this.timestamp();\n json.properties = this.properties();\n return new track_1.Track(json, this.opts);\n};","const getUuid = () =>\n 'xxxxxxxx4xxx'.replace(/[xy]/g, c => {\n // eslint-disable-next-line\n const r = (Math.random() * 16) | 0;\n // eslint-disable-next-line\n const v = c === 'x' ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n\nexport default getUuid;\n","function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nvar _require = require('./constants'),\n MAX_SAFE_COMPONENT_LENGTH = _require.MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH = _require.MAX_SAFE_BUILD_LENGTH;\n\nvar debug = require('./debug');\n\nexports = module.exports = {}; // The actual regexps go on exports.re\n\nvar re = exports.re = [];\nvar safeRe = exports.safeRe = [];\nvar src = exports.src = [];\nvar t = exports.t = {};\nvar R = 0;\nvar LETTERDASHNUMBER = '[a-zA-Z0-9-]'; // Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\n\nvar safeRegexReplacements = [['\\\\s', 1], ['\\\\d', MAX_SAFE_COMPONENT_LENGTH], [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]];\n\nvar makeSafeRegex = function makeSafeRegex(value) {\n var _iterator = _createForOfIteratorHelper(safeRegexReplacements),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var _step$value = _slicedToArray(_step.value, 2),\n token = _step$value[0],\n max = _step$value[1];\n\n value = value.split(\"\".concat(token, \"*\")).join(\"\".concat(token, \"{0,\").concat(max, \"}\")).split(\"\".concat(token, \"+\")).join(\"\".concat(token, \"{1,\").concat(max, \"}\"));\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n return value;\n};\n\nvar createToken = function createToken(name, value, isGlobal) {\n var safe = makeSafeRegex(value);\n var index = R++;\n debug(name, index, value);\n t[name] = index;\n src[index] = value;\n re[index] = new RegExp(value, isGlobal ? 'g' : undefined);\n safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined);\n}; // The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\n\ncreateToken('NUMERICIDENTIFIER', '0|[1-9]\\\\d*');\ncreateToken('NUMERICIDENTIFIERLOOSE', '\\\\d+'); // ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ncreateToken('NONNUMERICIDENTIFIER', \"\\\\d*[a-zA-Z-]\".concat(LETTERDASHNUMBER, \"*\")); // ## Main Version\n// Three dot-separated numeric identifiers.\n\ncreateToken('MAINVERSION', \"(\".concat(src[t.NUMERICIDENTIFIER], \")\\\\.\") + \"(\".concat(src[t.NUMERICIDENTIFIER], \")\\\\.\") + \"(\".concat(src[t.NUMERICIDENTIFIER], \")\"));\ncreateToken('MAINVERSIONLOOSE', \"(\".concat(src[t.NUMERICIDENTIFIERLOOSE], \")\\\\.\") + \"(\".concat(src[t.NUMERICIDENTIFIERLOOSE], \")\\\\.\") + \"(\".concat(src[t.NUMERICIDENTIFIERLOOSE], \")\")); // ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n\ncreateToken('PRERELEASEIDENTIFIER', \"(?:\".concat(src[t.NUMERICIDENTIFIER], \"|\").concat(src[t.NONNUMERICIDENTIFIER], \")\"));\ncreateToken('PRERELEASEIDENTIFIERLOOSE', \"(?:\".concat(src[t.NUMERICIDENTIFIERLOOSE], \"|\").concat(src[t.NONNUMERICIDENTIFIER], \")\")); // ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ncreateToken('PRERELEASE', \"(?:-(\".concat(src[t.PRERELEASEIDENTIFIER], \"(?:\\\\.\").concat(src[t.PRERELEASEIDENTIFIER], \")*))\"));\ncreateToken('PRERELEASELOOSE', \"(?:-?(\".concat(src[t.PRERELEASEIDENTIFIERLOOSE], \"(?:\\\\.\").concat(src[t.PRERELEASEIDENTIFIERLOOSE], \")*))\")); // ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ncreateToken('BUILDIDENTIFIER', \"\".concat(LETTERDASHNUMBER, \"+\")); // ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ncreateToken('BUILD', \"(?:\\\\+(\".concat(src[t.BUILDIDENTIFIER], \"(?:\\\\.\").concat(src[t.BUILDIDENTIFIER], \")*))\")); // ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ncreateToken('FULLPLAIN', \"v?\".concat(src[t.MAINVERSION]).concat(src[t.PRERELEASE], \"?\").concat(src[t.BUILD], \"?\"));\ncreateToken('FULL', \"^\".concat(src[t.FULLPLAIN], \"$\")); // like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\n\ncreateToken('LOOSEPLAIN', \"[v=\\\\s]*\".concat(src[t.MAINVERSIONLOOSE]).concat(src[t.PRERELEASELOOSE], \"?\").concat(src[t.BUILD], \"?\"));\ncreateToken('LOOSE', \"^\".concat(src[t.LOOSEPLAIN], \"$\"));\ncreateToken('GTLT', '((?:<|>)?=?)'); // Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\n\ncreateToken('XRANGEIDENTIFIERLOOSE', \"\".concat(src[t.NUMERICIDENTIFIERLOOSE], \"|x|X|\\\\*\"));\ncreateToken('XRANGEIDENTIFIER', \"\".concat(src[t.NUMERICIDENTIFIER], \"|x|X|\\\\*\"));\ncreateToken('XRANGEPLAIN', \"[v=\\\\s]*(\".concat(src[t.XRANGEIDENTIFIER], \")\") + \"(?:\\\\.(\".concat(src[t.XRANGEIDENTIFIER], \")\") + \"(?:\\\\.(\".concat(src[t.XRANGEIDENTIFIER], \")\") + \"(?:\".concat(src[t.PRERELEASE], \")?\").concat(src[t.BUILD], \"?\") + \")?)?\");\ncreateToken('XRANGEPLAINLOOSE', \"[v=\\\\s]*(\".concat(src[t.XRANGEIDENTIFIERLOOSE], \")\") + \"(?:\\\\.(\".concat(src[t.XRANGEIDENTIFIERLOOSE], \")\") + \"(?:\\\\.(\".concat(src[t.XRANGEIDENTIFIERLOOSE], \")\") + \"(?:\".concat(src[t.PRERELEASELOOSE], \")?\").concat(src[t.BUILD], \"?\") + \")?)?\");\ncreateToken('XRANGE', \"^\".concat(src[t.GTLT], \"\\\\s*\").concat(src[t.XRANGEPLAIN], \"$\"));\ncreateToken('XRANGELOOSE', \"^\".concat(src[t.GTLT], \"\\\\s*\").concat(src[t.XRANGEPLAINLOOSE], \"$\")); // Coercion.\n// Extract anything that could conceivably be a part of a valid semver\n\ncreateToken('COERCE', \"\".concat('(^|[^\\\\d])' + '(\\\\d{1,').concat(MAX_SAFE_COMPONENT_LENGTH, \"})\") + \"(?:\\\\.(\\\\d{1,\".concat(MAX_SAFE_COMPONENT_LENGTH, \"}))?\") + \"(?:\\\\.(\\\\d{1,\".concat(MAX_SAFE_COMPONENT_LENGTH, \"}))?\") + \"(?:$|[^\\\\d])\");\ncreateToken('COERCERTL', src[t.COERCE], true); // Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\n\ncreateToken('LONETILDE', '(?:~>?)');\ncreateToken('TILDETRIM', \"(\\\\s*)\".concat(src[t.LONETILDE], \"\\\\s+\"), true);\nexports.tildeTrimReplace = '$1~';\ncreateToken('TILDE', \"^\".concat(src[t.LONETILDE]).concat(src[t.XRANGEPLAIN], \"$\"));\ncreateToken('TILDELOOSE', \"^\".concat(src[t.LONETILDE]).concat(src[t.XRANGEPLAINLOOSE], \"$\")); // Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\n\ncreateToken('LONECARET', '(?:\\\\^)');\ncreateToken('CARETTRIM', \"(\\\\s*)\".concat(src[t.LONECARET], \"\\\\s+\"), true);\nexports.caretTrimReplace = '$1^';\ncreateToken('CARET', \"^\".concat(src[t.LONECARET]).concat(src[t.XRANGEPLAIN], \"$\"));\ncreateToken('CARETLOOSE', \"^\".concat(src[t.LONECARET]).concat(src[t.XRANGEPLAINLOOSE], \"$\")); // A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\n\ncreateToken('COMPARATORLOOSE', \"^\".concat(src[t.GTLT], \"\\\\s*(\").concat(src[t.LOOSEPLAIN], \")$|^$\"));\ncreateToken('COMPARATOR', \"^\".concat(src[t.GTLT], \"\\\\s*(\").concat(src[t.FULLPLAIN], \")$|^$\")); // An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\n\ncreateToken('COMPARATORTRIM', \"(\\\\s*)\".concat(src[t.GTLT], \"\\\\s*(\").concat(src[t.LOOSEPLAIN], \"|\").concat(src[t.XRANGEPLAIN], \")\"), true);\nexports.comparatorTrimReplace = '$1$2$3'; // Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\n\ncreateToken('HYPHENRANGE', \"^\\\\s*(\".concat(src[t.XRANGEPLAIN], \")\") + \"\\\\s+-\\\\s+\" + \"(\".concat(src[t.XRANGEPLAIN], \")\") + \"\\\\s*$\");\ncreateToken('HYPHENRANGELOOSE', \"^\\\\s*(\".concat(src[t.XRANGEPLAINLOOSE], \")\") + \"\\\\s+-\\\\s+\" + \"(\".concat(src[t.XRANGEPLAINLOOSE], \")\") + \"\\\\s*$\"); // Star ranges basically just allow anything at all.\n\ncreateToken('STAR', '(<|>)?=?\\\\s*\\\\*'); // >=0.0.0 is like a star\n\ncreateToken('GTE0', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$');\ncreateToken('GTE0PRE', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$');","export var TRACEPARENT_REGEXP = new RegExp('^[ \\\\t]*' + // whitespace\n'([0-9a-f]{32})?' + // trace_id\n'-?([0-9a-f]{16})?' + // span_id\n'-?([01])?' + // sampled\n'[ \\\\t]*$');\n/**\n * Extract transaction context data from a `sentry-trace` header.\n *\n * @param traceparent Traceparent string\n *\n * @returns Object containing data from the header, or undefined if traceparent string is malformed\n */\n\nexport function extractTraceparentData(traceparent) {\n var matches = traceparent.match(TRACEPARENT_REGEXP);\n\n if (matches) {\n var parentSampled = void 0;\n\n if (matches[3] === '1') {\n parentSampled = true;\n } else if (matches[3] === '0') {\n parentSampled = false;\n }\n\n return {\n traceId: matches[1],\n parentSampled: parentSampled,\n parentSpanId: matches[2]\n };\n }\n\n return undefined;\n}","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('BaseIcon',{attrs:{\"size\":_vm.size,\"icon\":_vm.icon,\"type\":_vm.type,\"icons\":_vm.icons,\"view-box\":_vm.viewBox,\"icon-lib\":_vm.iconLib}})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DashboardIcon.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DashboardIcon.vue?vue&type=script&lang=js&\"","\n\n\n \n\n","import { render, staticRenderFns } from \"./DashboardIcon.vue?vue&type=template&id=ca4bca30&\"\nimport script from \"./DashboardIcon.vue?vue&type=script&lang=js&\"\nexport * from \"./DashboardIcon.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nimport { __assign } from \"tslib\";\n/**\n * Merge legacy settings and initialized Integration option overrides.\n *\n * This will merge any options that were passed from initialization into\n * overrides for settings that are returned by the Segment CDN.\n *\n * i.e. this allows for passing options directly into destinations from\n * the Analytics constructor.\n */\n\nexport function mergedOptions(settings, options) {\n var _a;\n\n var optionOverrides = Object.entries((_a = options.integrations) !== null && _a !== void 0 ? _a : {}).reduce(function (overrides, _a) {\n var _b, _c;\n\n var integration = _a[0],\n options = _a[1];\n\n if (_typeof(options) === 'object') {\n return __assign(__assign({}, overrides), (_b = {}, _b[integration] = options, _b));\n }\n\n return __assign(__assign({}, overrides), (_c = {}, _c[integration] = {}, _c));\n }, {});\n return Object.entries(settings.integrations).reduce(function (integrationSettings, _a) {\n var _b;\n\n var integration = _a[0],\n settings = _a[1];\n return __assign(__assign({}, integrationSettings), (_b = {}, _b[integration] = __assign(__assign({}, settings), optionOverrides[integration]), _b));\n }, {});\n}","import { __assign, __awaiter, __generator } from \"tslib\";\nimport { ContextCancelation } from '../../core/context';\nimport { toFacade } from '../../lib/to-facade';\nexport function applyDestinationMiddleware(destination, evt, middleware) {\n return __awaiter(this, void 0, void 0, function () {\n function applyMiddleware(event, fn) {\n return __awaiter(this, void 0, void 0, function () {\n var nextCalled, returnedEvent;\n\n var _a;\n\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n nextCalled = false;\n returnedEvent = null;\n return [4\n /*yield*/\n , fn({\n payload: toFacade(event, {\n clone: true,\n traverse: false\n }),\n integration: destination,\n next: function next(evt) {\n nextCalled = true;\n\n if (evt === null) {\n returnedEvent = null;\n }\n\n if (evt) {\n returnedEvent = evt.obj;\n }\n }\n })];\n\n case 1:\n _b.sent();\n\n if (!nextCalled && returnedEvent !== null) {\n returnedEvent = returnedEvent;\n returnedEvent.integrations = __assign(__assign({}, event.integrations), (_a = {}, _a[destination] = false, _a));\n }\n\n return [2\n /*return*/\n , returnedEvent];\n }\n });\n });\n }\n\n var modifiedEvent, _i, middleware_1, md, result;\n\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n modifiedEvent = toFacade(evt, {\n clone: true,\n traverse: false\n }).rawEvent();\n _i = 0, middleware_1 = middleware;\n _a.label = 1;\n\n case 1:\n if (!(_i < middleware_1.length)) return [3\n /*break*/\n , 4];\n md = middleware_1[_i];\n return [4\n /*yield*/\n , applyMiddleware(modifiedEvent, md)];\n\n case 2:\n result = _a.sent();\n\n if (result === null) {\n return [2\n /*return*/\n , null];\n }\n\n modifiedEvent = result;\n _a.label = 3;\n\n case 3:\n _i++;\n return [3\n /*break*/\n , 1];\n\n case 4:\n return [2\n /*return*/\n , modifiedEvent];\n }\n });\n });\n}\nexport function sourceMiddlewarePlugin(fn, integrations) {\n function apply(ctx) {\n return __awaiter(this, void 0, void 0, function () {\n var nextCalled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n nextCalled = false;\n return [4\n /*yield*/\n , fn({\n payload: toFacade(ctx.event, {\n clone: true,\n traverse: false\n }),\n integrations: integrations !== null && integrations !== void 0 ? integrations : {},\n next: function next(evt) {\n nextCalled = true;\n\n if (evt) {\n ctx.event = evt.obj;\n }\n }\n })];\n\n case 1:\n _a.sent();\n\n if (!nextCalled) {\n throw new ContextCancelation({\n retry: false,\n type: 'middleware_cancellation',\n reason: 'Middleware `next` function skipped'\n });\n }\n\n return [2\n /*return*/\n , ctx];\n }\n });\n });\n }\n\n return {\n name: \"Source Middleware \".concat(fn.name),\n type: 'before',\n version: '0.1.0',\n isLoaded: function isLoaded() {\n return true;\n },\n load: function load(ctx) {\n return Promise.resolve(ctx);\n },\n track: apply,\n page: apply,\n identify: apply,\n alias: apply,\n group: apply\n };\n}","/**\n * Tries to gets the unencoded version of an encoded component of a\n * Uniform Resource Identifier (URI). If input string is malformed,\n * returns it back as-is.\n *\n * Note: All occurences of the `+` character become ` ` (spaces).\n **/\nexport function gracefulDecodeURIComponent(encodedURIComponent) {\n try {\n return decodeURIComponent(encodedURIComponent.replace(/\\+/g, ' '));\n } catch (_a) {\n return encodedURIComponent;\n }\n}","import { __awaiter, __generator } from \"tslib\";\nexport var pWhile = function pWhile(condition, action) {\n return __awaiter(void 0, void 0, void 0, function () {\n var _loop;\n\n return __generator(this, function (_a) {\n _loop = function loop(actionResult) {\n return __awaiter(void 0, void 0, void 0, function () {\n var _a;\n\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!condition(actionResult)) return [3\n /*break*/\n , 2];\n _a = _loop;\n return [4\n /*yield*/\n , action()];\n\n case 1:\n return [2\n /*return*/\n , _a.apply(void 0, [_b.sent()])];\n\n case 2:\n return [2\n /*return*/\n ];\n }\n });\n });\n };\n\n return [2\n /*return*/\n , _loop(undefined)];\n });\n });\n};","export const replaceRouteWithReload = url => {\n window.location = url;\n};\n\nexport const userInitial = name => {\n const parts = name.split(/[ -]/).filter(Boolean);\n let initials = parts.map(part => part[0].toUpperCase()).join('');\n return initials.slice(0, 2);\n};\n","'use strict';\n\nimport toFormData from './toFormData.js';\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\n\nfunction encode(str) {\n var charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object} params - The parameters to be converted to a FormData object.\n * @param {Object} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\n\n\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n params && toFormData(params, this, options);\n}\n\nvar prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n var _encode = encoder ? function (value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\nexport default AxiosURLSearchParams;","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\n\nfunction encode(val) {\n return encodeURIComponent(val).replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');\n}\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?object} options\n *\n * @returns {string} The formatted url\n */\n\n\nexport default function buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var _encode = options && options.encode || encode;\n\n var serializeFn = options && options.serialize;\n var serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = utils.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, options).toString(_encode);\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}","'use strict';\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport utils from './../utils.js';\n\nvar InterceptorManager = /*#__PURE__*/function () {\n function InterceptorManager() {\n _classCallCheck(this, InterceptorManager);\n\n this.handlers = [];\n }\n /**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n\n\n _createClass(InterceptorManager, [{\n key: \"use\",\n value: function use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n }\n /**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n *\n * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n */\n\n }, {\n key: \"eject\",\n value: function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n /**\n * Clear all interceptors from the stack\n *\n * @returns {void}\n */\n\n }, {\n key: \"clear\",\n value: function clear() {\n if (this.handlers) {\n this.handlers = [];\n }\n }\n /**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n *\n * @returns {void}\n */\n\n }, {\n key: \"forEach\",\n value: function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n }\n }]);\n\n return InterceptorManager;\n}();\n\nexport default InterceptorManager;","import URLSearchParams from './classes/URLSearchParams.js';\nimport FormData from './classes/FormData.js';\nimport Blob from './classes/Blob.js';\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\n\nvar isStandardBrowserEnv = function () {\n var product;\n\n if (typeof navigator !== 'undefined' && ((product = navigator.product) === 'ReactNative' || product === 'NativeScript' || product === 'NS')) {\n return false;\n }\n\n return typeof window !== 'undefined' && typeof document !== 'undefined';\n}();\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\n\n\nvar isStandardBrowserWebWorkerEnv = function () {\n return typeof WorkerGlobalScope !== 'undefined' && // eslint-disable-next-line no-undef\n self instanceof WorkerGlobalScope && typeof self.importScripts === 'function';\n}();\n\nexport default {\n isBrowser: true,\n classes: {\n URLSearchParams: URLSearchParams,\n FormData: FormData,\n Blob: Blob\n },\n isStandardBrowserEnv: isStandardBrowserEnv,\n isStandardBrowserWebWorkerEnv: isStandardBrowserWebWorkerEnv,\n protocols: ['http', 'https', 'file', 'blob', 'url', 'data']\n};","'use strict';\n\nexport default {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n};","'use strict';\n\nimport AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js';\nexport default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;","'use strict';\n\nexport default typeof FormData !== 'undefined' ? FormData : null;","'use strict';\n\nexport default typeof Blob !== 'undefined' ? Blob : null;","'use strict';\n\nimport utils from '../utils.js';\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\n\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map(function (match) {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n/**\n * Convert an array to an object.\n *\n * @param {Array} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\n\n\nfunction arrayToObject(arr) {\n var obj = {};\n var keys = Object.keys(arr);\n var i;\n var len = keys.length;\n var key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n\n return obj;\n}\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object | null} The converted object.\n */\n\n\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n var name = path[index++];\n var isNumericKey = Number.isFinite(+name);\n var isLast = index >= path.length;\n name = !name && utils.isArray(target) ? target.length : name;\n\n if (isLast) {\n if (utils.hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !utils.isObject(target[name])) {\n target[name] = [];\n }\n\n var result = buildPath(path, value, target[name], index);\n\n if (result && utils.isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n var obj = {};\n utils.forEachEntry(formData, function (name, value) {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n return obj;\n }\n\n return null;\n}\n\nexport default formDataToJSON;","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport transitionalDefaults from './transitional.js';\nimport toFormData from '../helpers/toFormData.js';\nimport toURLEncodedForm from '../helpers/toURLEncodedForm.js';\nimport platform from '../platform/index.js';\nimport formDataToJSON from '../helpers/formDataToJSON.js';\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\n\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nvar defaults = {\n transitional: transitionalDefaults,\n adapter: ['xhr', 'http'],\n transformRequest: [function transformRequest(data, headers) {\n var contentType = headers.getContentType() || '';\n var hasJSONContentType = contentType.indexOf('application/json') > -1;\n var isObjectPayload = utils.isObject(data);\n\n if (isObjectPayload && utils.isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n var isFormData = utils.isFormData(data);\n\n if (isFormData) {\n if (!hasJSONContentType) {\n return data;\n }\n\n return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n }\n\n if (utils.isArrayBuffer(data) || utils.isBuffer(data) || utils.isStream(data) || utils.isFile(data) || utils.isBlob(data)) {\n return data;\n }\n\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n\n if (utils.isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n var isFileList;\n\n if (isObjectPayload) {\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return toURLEncodedForm(data, this.formSerializer).toString();\n }\n\n if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n var _FormData = this.env && this.env.FormData;\n\n return toFormData(isFileList ? {\n 'files[]': data\n } : data, _FormData && new _FormData(), this.formSerializer);\n }\n }\n\n if (isObjectPayload || hasJSONContentType) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n }],\n transformResponse: [function transformResponse(data) {\n var transitional = this.transitional || defaults.transitional;\n var forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n var JSONRequested = this.responseType === 'json';\n\n if (data && utils.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {\n var silentJSONParsing = transitional && transitional.silentJSONParsing;\n var strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\n }\n\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n maxContentLength: -1,\n maxBodyLength: -1,\n env: {\n FormData: platform.classes.FormData,\n Blob: platform.classes.Blob\n },\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*',\n 'Content-Type': undefined\n }\n }\n};\nutils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], function (method) {\n defaults.headers[method] = {};\n});\nexport default defaults;","'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\nexport default function toURLEncodedForm(data, options) {\n return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({\n visitor: function visitor(value, key, path, helpers) {\n if (platform.isNode && utils.isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n }\n }, options));\n}","'use strict';\n\nimport utils from './../utils.js'; // RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\n\nvar ignoreDuplicateOf = utils.toObjectSet(['age', 'authorization', 'content-length', 'content-type', 'etag', 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', 'last-modified', 'location', 'max-forwards', 'proxy-authorization', 'referer', 'retry-after', 'user-agent']);\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\n\nexport default (function (rawHeaders) {\n var parsed = {};\n var key;\n var val;\n var i;\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || parsed[key] && ignoreDuplicateOf[key]) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n return parsed;\n});","'use strict';\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport utils from '../utils.js';\nimport parseHeaders from '../helpers/parseHeaders.js';\nvar $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return utils.isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n var tokens = Object.create(null);\n var tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n var match;\n\n while (match = tokensRE.exec(str)) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nvar isValidHeaderName = function isValidHeaderName(str) {\n return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n};\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n if (utils.isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (isHeaderNameFilter) {\n value = header;\n }\n\n if (!utils.isString(value)) return;\n\n if (utils.isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (utils.isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header.trim().toLowerCase().replace(/([a-z\\d])(\\w*)/g, function (w, char, str) {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n var accessorName = utils.toCamelCase(' ' + header);\n ['get', 'set', 'has'].forEach(function (methodName) {\n Object.defineProperty(obj, methodName + accessorName, {\n value: function value(arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true\n });\n });\n}\n\nvar AxiosHeaders = /*#__PURE__*/function () {\n function AxiosHeaders(headers) {\n _classCallCheck(this, AxiosHeaders);\n\n headers && this.set(headers);\n }\n\n _createClass(AxiosHeaders, [{\n key: \"set\",\n value: function set(header, valueOrRewrite, rewrite) {\n var self = this;\n\n function setHeader(_value, _header, _rewrite) {\n var lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n throw new Error('header name must be a non-empty string');\n }\n\n var key = utils.findKey(self, lHeader);\n\n if (!key || self[key] === undefined || _rewrite === true || _rewrite === undefined && self[key] !== false) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n var setHeaders = function setHeaders(headers, _rewrite) {\n return utils.forEach(headers, function (_value, _header) {\n return setHeader(_value, _header, _rewrite);\n });\n };\n\n if (utils.isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite);\n } else if (utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders(parseHeaders(header), valueOrRewrite);\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n }, {\n key: \"get\",\n value: function get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n var key = utils.findKey(this, header);\n\n if (key) {\n var value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (utils.isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (utils.isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n }, {\n key: \"has\",\n value: function has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n var key = utils.findKey(this, header);\n return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n }\n\n return false;\n }\n }, {\n key: \"delete\",\n value: function _delete(header, matcher) {\n var self = this;\n var deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n var key = utils.findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n deleted = true;\n }\n }\n }\n\n if (utils.isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n }, {\n key: \"clear\",\n value: function clear(matcher) {\n var keys = Object.keys(this);\n var i = keys.length;\n var deleted = false;\n\n while (i--) {\n var key = keys[i];\n\n if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n delete this[key];\n deleted = true;\n }\n }\n\n return deleted;\n }\n }, {\n key: \"normalize\",\n value: function normalize(format) {\n var self = this;\n var headers = {};\n utils.forEach(this, function (value, header) {\n var key = utils.findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n var normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n headers[normalized] = true;\n });\n return this;\n }\n }, {\n key: \"concat\",\n value: function concat() {\n var _this$constructor;\n\n for (var _len = arguments.length, targets = new Array(_len), _key = 0; _key < _len; _key++) {\n targets[_key] = arguments[_key];\n }\n\n return (_this$constructor = this.constructor).concat.apply(_this$constructor, [this].concat(targets));\n }\n }, {\n key: \"toJSON\",\n value: function toJSON(asStrings) {\n var obj = Object.create(null);\n utils.forEach(this, function (value, header) {\n value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n });\n return obj;\n }\n }, {\n key: Symbol.iterator,\n value: function value() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n }, {\n key: \"toString\",\n value: function toString() {\n return Object.entries(this.toJSON()).map(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n header = _ref2[0],\n value = _ref2[1];\n\n return header + ': ' + value;\n }).join('\\n');\n }\n }, {\n key: Symbol.toStringTag,\n get: function get() {\n return 'AxiosHeaders';\n }\n }], [{\n key: \"from\",\n value: function from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n }, {\n key: \"concat\",\n value: function concat(first) {\n var computed = new this(first);\n\n for (var _len2 = arguments.length, targets = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n targets[_key2 - 1] = arguments[_key2];\n }\n\n targets.forEach(function (target) {\n return computed.set(target);\n });\n return computed;\n }\n }, {\n key: \"accessor\",\n value: function accessor(header) {\n var internals = this[$internals] = this[$internals] = {\n accessors: {}\n };\n var accessors = internals.accessors;\n var prototype = this.prototype;\n\n function defineAccessor(_header) {\n var lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n return this;\n }\n }]);\n\n return AxiosHeaders;\n}();\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']); // reserved names hotfix\n\nutils.reduceDescriptors(AxiosHeaders.prototype, function (_ref3, key) {\n var value = _ref3.value;\n var mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n\n return {\n get: function get() {\n return value;\n },\n set: function set(headerValue) {\n this[mapped] = headerValue;\n }\n };\n});\nutils.freezeMethods(AxiosHeaders);\nexport default AxiosHeaders;","'use strict';\n\nimport utils from './../utils.js';\nimport defaults from '../defaults/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\n\nexport default function transformData(fns, response) {\n var config = this || defaults;\n var context = response || config;\n var headers = AxiosHeaders.from(context.headers);\n var data = context.data;\n utils.forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n headers.normalize();\n return data;\n}","'use strict';\n\nexport default function isCancel(value) {\n return !!(value && value.__CANCEL__);\n}","'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\n\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\nexport default CanceledError;","'use strict';\n\nimport utils from './../utils.js';\nimport platform from '../platform/index.js';\nexport default platform.isStandardBrowserEnv ? // Standard browser envs support document.cookie\nfunction standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return match ? decodeURIComponent(match[3]) : null;\n },\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n}() : // Non standard browser env (web workers, react-native) lack needed support.\nfunction nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() {\n return null;\n },\n remove: function remove() {}\n };\n}();","'use strict';\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\n\nexport default function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n\n return requestedURL;\n}","'use strict';\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\n\nexport default function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}","'use strict';\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\n\nexport default function combineURLs(baseURL, relativeURL) {\n return relativeURL ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '') : baseURL;\n}","'use strict';\n\nimport utils from './../utils.js';\nimport platform from '../platform/index.js';\nexport default platform.isStandardBrowserEnv ? // Standard browser envs have full support of the APIs needed to test\n// whether the request URL is of the same origin as current location.\nfunction standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href); // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: urlParsingNode.pathname.charAt(0) === '/' ? urlParsingNode.pathname : '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n\n return function isURLSameOrigin(requestURL) {\n var parsed = utils.isString(requestURL) ? resolveURL(requestURL) : requestURL;\n return parsed.protocol === originURL.protocol && parsed.host === originURL.host;\n };\n}() : // Non standard browser envs (web workers, react-native) lack needed support.\nfunction nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n}();","'use strict';\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\n\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n var bytes = new Array(samplesCount);\n var timestamps = new Array(samplesCount);\n var head = 0;\n var tail = 0;\n var firstSampleTS;\n min = min !== undefined ? min : 1000;\n return function push(chunkLength) {\n var now = Date.now();\n var startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n var i = tail;\n var bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n var passed = startedAt && now - startedAt;\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\nexport default speedometer;","'use strict';\n\nimport utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport cookies from './../helpers/cookies.js';\nimport buildURL from './../helpers/buildURL.js';\nimport buildFullPath from '../core/buildFullPath.js';\nimport isURLSameOrigin from './../helpers/isURLSameOrigin.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport parseProtocol from '../helpers/parseProtocol.js';\nimport platform from '../platform/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport speedometer from '../helpers/speedometer.js';\n\nfunction progressEventReducer(listener, isDownloadStream) {\n var bytesNotified = 0;\n\n var _speedometer = speedometer(50, 250);\n\n return function (e) {\n var loaded = e.loaded;\n var total = e.lengthComputable ? e.total : undefined;\n var progressBytes = loaded - bytesNotified;\n\n var rate = _speedometer(progressBytes);\n\n var inRange = loaded <= total;\n bytesNotified = loaded;\n var data = {\n loaded: loaded,\n total: total,\n progress: total ? loaded / total : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e\n };\n data[isDownloadStream ? 'download' : 'upload'] = true;\n listener(data);\n };\n}\n\nvar isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\nexport default isXHRAdapterSupported && function (config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = AxiosHeaders.from(config.headers).normalize();\n var responseType = config.responseType;\n var onCanceled;\n\n function done() {\n if (config.cancelToken) {\n config.cancelToken.unsubscribe(onCanceled);\n }\n\n if (config.signal) {\n config.signal.removeEventListener('abort', onCanceled);\n }\n }\n\n var contentType;\n\n if (utils.isFormData(requestData)) {\n if (platform.isStandardBrowserEnv || platform.isStandardBrowserWebWorkerEnv) {\n requestHeaders.setContentType(false); // Let the browser set it\n } else if (!requestHeaders.getContentType(/^\\s*multipart\\/form-data/)) {\n requestHeaders.setContentType('multipart/form-data'); // mobile/desktop app frameworks\n } else if (utils.isString(contentType = requestHeaders.getContentType())) {\n // fix semicolon duplication issue for ReactNative FormData implementation\n requestHeaders.setContentType(contentType.replace(/^\\s*(multipart\\/form-data);+/, '$1'));\n }\n }\n\n var request = new XMLHttpRequest(); // HTTP basic authentication\n\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password));\n }\n\n var fullPath = buildFullPath(config.baseURL, config.url);\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true); // Set the request timeout in MS\n\n request.timeout = config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n } // Prepare the response\n\n\n var responseHeaders = AxiosHeaders.from('getAllResponseHeaders' in request && request.getAllResponseHeaders());\n var responseData = !responseType || responseType === 'text' || responseType === 'json' ? request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response); // Clean up request\n\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n } // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n\n\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n } // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n\n\n setTimeout(onloadend);\n };\n } // Handle browser request cancellation (as opposed to a manual cancellation)\n\n\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request)); // Clean up request\n\n request = null;\n }; // Handle low level network errors\n\n\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request)); // Clean up request\n\n request = null;\n }; // Handle timeout\n\n\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';\n var transitional = config.transitional || transitionalDefaults;\n\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n\n reject(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, request)); // Clean up request\n\n request = null;\n }; // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n\n\n if (platform.isStandardBrowserEnv) {\n // Add xsrf header\n // regarding CVE-2023-45857 config.withCredentials condition was removed temporarily\n var xsrfValue = isURLSameOrigin(fullPath) && config.xsrfCookieName && cookies.read(config.xsrfCookieName);\n\n if (xsrfValue) {\n requestHeaders.set(config.xsrfHeaderName, xsrfValue);\n }\n } // Remove Content-Type if data is undefined\n\n\n requestData === undefined && requestHeaders.setContentType(null); // Add headers to the request\n\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n request.setRequestHeader(key, val);\n });\n } // Add withCredentials to request if needed\n\n\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n } // Add responseType to request if needed\n\n\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n } // Handle progress if needed\n\n\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true));\n } // Not all browsers support upload events\n\n\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress));\n }\n\n if (config.cancelToken || config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = function onCanceled(cancel) {\n if (!request) {\n return;\n }\n\n reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);\n request.abort();\n request = null;\n };\n\n config.cancelToken && config.cancelToken.subscribe(onCanceled);\n\n if (config.signal) {\n config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n var protocol = parseProtocol(fullPath);\n\n if (protocol && platform.protocols.indexOf(protocol) === -1) {\n reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n return;\n } // Send the request\n\n\n request.send(requestData || null);\n });\n};","'use strict';\n\nimport AxiosError from './AxiosError.js';\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\n\nexport default function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new AxiosError('Request failed with status code ' + response.status, [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], response.config, response.request, response));\n }\n}","'use strict';\n\nexport default function parseProtocol(url) {\n var match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}","function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nimport utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport AxiosError from \"../core/AxiosError.js\";\nvar knownAdapters = {\n http: httpAdapter,\n xhr: xhrAdapter\n};\nutils.forEach(knownAdapters, function (fn, value) {\n if (fn) {\n try {\n Object.defineProperty(fn, 'name', {\n value: value\n });\n } catch (e) {// eslint-disable-next-line no-empty\n }\n\n Object.defineProperty(fn, 'adapterName', {\n value: value\n });\n }\n});\n\nvar renderReason = function renderReason(reason) {\n return \"- \".concat(reason);\n};\n\nvar isResolvedHandle = function isResolvedHandle(adapter) {\n return utils.isFunction(adapter) || adapter === null || adapter === false;\n};\n\nexport default {\n getAdapter: function getAdapter(adapters) {\n adapters = utils.isArray(adapters) ? adapters : [adapters];\n var _adapters = adapters,\n length = _adapters.length;\n var nameOrAdapter;\n var adapter;\n var rejectedReasons = {};\n\n for (var i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n var id = void 0;\n adapter = nameOrAdapter;\n\n if (!isResolvedHandle(nameOrAdapter)) {\n adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];\n\n if (adapter === undefined) {\n throw new AxiosError(\"Unknown adapter '\".concat(id, \"'\"));\n }\n }\n\n if (adapter) {\n break;\n }\n\n rejectedReasons[id || '#' + i] = adapter;\n }\n\n if (!adapter) {\n var reasons = Object.entries(rejectedReasons).map(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n id = _ref2[0],\n state = _ref2[1];\n\n return \"adapter \".concat(id, \" \") + (state === false ? 'is not supported by the environment' : 'is not available in the build');\n });\n var s = length ? reasons.length > 1 ? 'since :\\n' + reasons.map(renderReason).join('\\n') : ' ' + renderReason(reasons[0]) : 'as no adapter specified';\n throw new AxiosError(\"There is no suitable adapter to dispatch the request \" + s, 'ERR_NOT_SUPPORT');\n }\n\n return adapter;\n },\n adapters: knownAdapters\n};","'use strict';\n\nimport transformData from './transformData.js';\nimport isCancel from '../cancel/isCancel.js';\nimport defaults from '../defaults/index.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport adapters from \"../adapters/adapters.js\";\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\n\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new CanceledError(null, config);\n }\n}\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n\n\nexport default function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n config.headers = AxiosHeaders.from(config.headers); // Transform request data\n\n config.data = transformData.call(config, config.transformRequest);\n\n if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n config.headers.setContentType('application/x-www-form-urlencoded', false);\n }\n\n var adapter = adapters.getAdapter(config.adapter || defaults.adapter);\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config); // Transform response data\n\n response.data = transformData.call(config, config.transformResponse, response);\n response.headers = AxiosHeaders.from(response.headers);\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config); // Transform response data\n\n if (reason && reason.response) {\n reason.response.data = transformData.call(config, config.transformResponse, reason.response);\n reason.response.headers = AxiosHeaders.from(reason.response.headers);\n }\n }\n\n return Promise.reject(reason);\n });\n}","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosHeaders from \"./AxiosHeaders.js\";\n\nvar headersToObject = function headersToObject(thing) {\n return thing instanceof AxiosHeaders ? thing.toJSON() : thing;\n};\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\n\n\nexport default function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n\n function getMergedValue(target, source, caseless) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge.call({\n caseless: caseless\n }, target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n\n return source;\n } // eslint-disable-next-line consistent-return\n\n\n function mergeDeepProperties(a, b, caseless) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(a, b, caseless);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a, caseless);\n }\n } // eslint-disable-next-line consistent-return\n\n\n function valueFromConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n }\n } // eslint-disable-next-line consistent-return\n\n\n function defaultToConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a);\n }\n } // eslint-disable-next-line consistent-return\n\n\n function mergeDirectKeys(a, b, prop) {\n if (prop in config2) {\n return getMergedValue(a, b);\n } else if (prop in config1) {\n return getMergedValue(undefined, a);\n }\n }\n\n var mergeMap = {\n url: valueFromConfig2,\n method: valueFromConfig2,\n data: valueFromConfig2,\n baseURL: defaultToConfig2,\n transformRequest: defaultToConfig2,\n transformResponse: defaultToConfig2,\n paramsSerializer: defaultToConfig2,\n timeout: defaultToConfig2,\n timeoutMessage: defaultToConfig2,\n withCredentials: defaultToConfig2,\n adapter: defaultToConfig2,\n responseType: defaultToConfig2,\n xsrfCookieName: defaultToConfig2,\n xsrfHeaderName: defaultToConfig2,\n onUploadProgress: defaultToConfig2,\n onDownloadProgress: defaultToConfig2,\n decompress: defaultToConfig2,\n maxContentLength: defaultToConfig2,\n maxBodyLength: defaultToConfig2,\n beforeRedirect: defaultToConfig2,\n transport: defaultToConfig2,\n httpAgent: defaultToConfig2,\n httpsAgent: defaultToConfig2,\n cancelToken: defaultToConfig2,\n socketPath: defaultToConfig2,\n responseEncoding: defaultToConfig2,\n validateStatus: mergeDirectKeys,\n headers: function headers(a, b) {\n return mergeDeepProperties(headersToObject(a), headersToObject(b), true);\n }\n };\n utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {\n var merge = mergeMap[prop] || mergeDeepProperties;\n var configValue = merge(config1[prop], config2[prop], prop);\n utils.isUndefined(configValue) && merge !== mergeDirectKeys || (config[prop] = configValue);\n });\n return config;\n}","export var VERSION = \"1.6.0\";","'use strict';\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nimport { VERSION } from '../env/data.js';\nimport AxiosError from '../core/AxiosError.js';\nvar validators = {}; // eslint-disable-next-line func-names\n\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function (type, i) {\n validators[type] = function validator(thing) {\n return _typeof(thing) === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\nvar deprecatedWarnings = {};\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\n\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n } // eslint-disable-next-line func-names\n\n\n return function (value, opt, opts) {\n if (validator === false) {\n throw new AxiosError(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), AxiosError.ERR_DEPRECATED);\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true; // eslint-disable-next-line no-console\n\n console.warn(formatMessage(opt, ' has been deprecated since v' + version + ' and will be removed in the near future'));\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (_typeof(options) !== 'object') {\n throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n }\n\n var keys = Object.keys(options);\n var i = keys.length;\n\n while (i-- > 0) {\n var opt = keys[i];\n var validator = schema[opt];\n\n if (validator) {\n var value = options[opt];\n var result = value === undefined || validator(value, opt, options);\n\n if (result !== true) {\n throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n }\n\n continue;\n }\n\n if (allowUnknown !== true) {\n throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n }\n }\n}\n\nexport default {\n assertOptions: assertOptions,\n validators: validators\n};","'use strict';\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport utils from './../utils.js';\nimport buildURL from '../helpers/buildURL.js';\nimport InterceptorManager from './InterceptorManager.js';\nimport dispatchRequest from './dispatchRequest.js';\nimport mergeConfig from './mergeConfig.js';\nimport buildFullPath from './buildFullPath.js';\nimport validator from '../helpers/validator.js';\nimport AxiosHeaders from './AxiosHeaders.js';\nvar validators = validator.validators;\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\n\nvar Axios = /*#__PURE__*/function () {\n function Axios(instanceConfig) {\n _classCallCheck(this, Axios);\n\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n }\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n\n\n _createClass(Axios, [{\n key: \"request\",\n value: function request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = mergeConfig(this.defaults, config);\n var _config = config,\n transitional = _config.transitional,\n paramsSerializer = _config.paramsSerializer,\n headers = _config.headers;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer != null) {\n if (utils.isFunction(paramsSerializer)) {\n config.paramsSerializer = {\n serialize: paramsSerializer\n };\n } else {\n validator.assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n } // Set config.method\n\n\n config.method = (config.method || this.defaults.method || 'get').toLowerCase(); // Flatten headers\n\n var contextHeaders = headers && utils.merge(headers.common, headers[config.method]);\n headers && utils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], function (method) {\n delete headers[method];\n });\n config.headers = AxiosHeaders.concat(contextHeaders, headers); // filter out skipped interceptors\n\n var requestInterceptorChain = [];\n var synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n var responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n var promise;\n var i = 0;\n var len;\n\n if (!synchronousRequestInterceptors) {\n var chain = [dispatchRequest.bind(this), undefined];\n chain.unshift.apply(chain, requestInterceptorChain);\n chain.push.apply(chain, responseInterceptorChain);\n len = chain.length;\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n var newConfig = config;\n i = 0;\n\n while (i < len) {\n var onFulfilled = requestInterceptorChain[i++];\n var onRejected = requestInterceptorChain[i++];\n\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest.call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n }, {\n key: \"getUri\",\n value: function getUri(config) {\n config = mergeConfig(this.defaults, config);\n var fullPath = buildFullPath(config.baseURL, config.url);\n return buildURL(fullPath, config.params, config.paramsSerializer);\n }\n }]);\n\n return Axios;\n}(); // Provide aliases for supported request methods\n\n\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function (url, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: (config || {}).data\n }));\n };\n});\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url: url,\n data: data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\nexport default Axios;","'use strict';\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport CanceledError from './CanceledError.js';\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\n\nvar CancelToken = /*#__PURE__*/function () {\n function CancelToken(executor) {\n _classCallCheck(this, CancelToken);\n\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n var token = this; // eslint-disable-next-line func-names\n\n this.promise.then(function (cancel) {\n if (!token._listeners) return;\n var i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n\n token._listeners = null;\n }); // eslint-disable-next-line func-names\n\n this.promise.then = function (onfulfilled) {\n var _resolve; // eslint-disable-next-line func-names\n\n\n var promise = new Promise(function (resolve) {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message, config, request);\n resolvePromise(token.reason);\n });\n }\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n\n\n _createClass(CancelToken, [{\n key: \"throwIfRequested\",\n value: function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n /**\n * Subscribe to the cancel signal\n */\n\n }, {\n key: \"subscribe\",\n value: function subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n /**\n * Unsubscribe from the cancel signal\n */\n\n }, {\n key: \"unsubscribe\",\n value: function unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n\n var index = this._listeners.indexOf(listener);\n\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n\n }], [{\n key: \"source\",\n value: function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n }\n }]);\n\n return CancelToken;\n}();\n\nexport default CancelToken;","function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nvar HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511\n};\nObject.entries(HttpStatusCode).forEach(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n key = _ref2[0],\n value = _ref2[1];\n\n HttpStatusCode[value] = key;\n});\nexport default HttpStatusCode;","'use strict';\n\nimport utils from './utils.js';\nimport bind from './helpers/bind.js';\nimport Axios from './core/Axios.js';\nimport mergeConfig from './core/mergeConfig.js';\nimport defaults from './defaults/index.js';\nimport formDataToJSON from './helpers/formDataToJSON.js';\nimport CanceledError from './cancel/CanceledError.js';\nimport CancelToken from './cancel/CancelToken.js';\nimport isCancel from './cancel/isCancel.js';\nimport { VERSION } from './env/data.js';\nimport toFormData from './helpers/toFormData.js';\nimport AxiosError from './core/AxiosError.js';\nimport spread from './helpers/spread.js';\nimport isAxiosError from './helpers/isAxiosError.js';\nimport AxiosHeaders from \"./core/AxiosHeaders.js\";\nimport adapters from './adapters/adapters.js';\nimport HttpStatusCode from './helpers/HttpStatusCode.js';\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\n\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context); // Copy axios.prototype to instance\n\n utils.extend(instance, Axios.prototype, context, {\n allOwnKeys: true\n }); // Copy context to instance\n\n utils.extend(instance, context, null, {\n allOwnKeys: true\n }); // Factory for creating new instances\n\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n} // Create the default instance to be exported\n\n\nvar axios = createInstance(defaults); // Expose Axios class to allow class inheritance\n\naxios.Axios = Axios; // Expose Cancel & CancelToken\n\naxios.CanceledError = CanceledError;\naxios.CancelToken = CancelToken;\naxios.isCancel = isCancel;\naxios.VERSION = VERSION;\naxios.toFormData = toFormData; // Expose AxiosError class\n\naxios.AxiosError = AxiosError; // alias for CanceledError for backward compatibility\n\naxios.Cancel = axios.CanceledError; // Expose all/spread\n\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = spread; // Expose isAxiosError\n\naxios.isAxiosError = isAxiosError; // Expose mergeConfig\n\naxios.mergeConfig = mergeConfig;\naxios.AxiosHeaders = AxiosHeaders;\n\naxios.formToJSON = function (thing) {\n return formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);\n};\n\naxios.getAdapter = adapters.getAdapter;\naxios.HttpStatusCode = HttpStatusCode;\naxios.default = axios; // this module should only have a default export\n\nexport default axios;","'use strict';\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\n\nexport default function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}","'use strict';\n\nimport utils from './../utils.js';\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\n\nexport default function isAxiosError(payload) {\n return utils.isObject(payload) && payload.isAxiosError === true;\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isValid\n * @category Common Helpers\n * @summary Is the given date valid?\n *\n * @description\n * Returns false if argument is Invalid Date and true otherwise.\n * Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}\n * Invalid Date is a Date, whose time value is NaN.\n *\n * Time value of Date: http://es5.github.io/#x15.9.1.1\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * - Now `isValid` doesn't throw an exception\n * if the first argument is not an instance of Date.\n * Instead, argument is converted beforehand using `toDate`.\n *\n * Examples:\n *\n * | `isValid` argument | Before v2.0.0 | v2.0.0 onward |\n * |---------------------------|---------------|---------------|\n * | `new Date()` | `true` | `true` |\n * | `new Date('2016-01-01')` | `true` | `true` |\n * | `new Date('')` | `false` | `false` |\n * | `new Date(1488370835081)` | `true` | `true` |\n * | `new Date(NaN)` | `false` | `false` |\n * | `'2016-01-01'` | `TypeError` | `false` |\n * | `''` | `TypeError` | `false` |\n * | `1488370835081` | `TypeError` | `true` |\n * | `NaN` | `TypeError` | `false` |\n *\n * We introduce this change to make *date-fns* consistent with ECMAScript behavior\n * that try to coerce arguments to the expected type\n * (which is also the case with other *date-fns* functions).\n *\n * @param {*} date - the date to check\n * @returns {Boolean} the date is valid\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // For the valid date:\n * var result = isValid(new Date(2014, 1, 31))\n * //=> true\n *\n * @example\n * // For the value, convertable into a date:\n * var result = isValid(1393804800000)\n * //=> true\n *\n * @example\n * // For the invalid date:\n * var result = isValid(new Date(''))\n * //=> false\n */\n\nexport default function isValid(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n return !isNaN(date);\n}","import { __assign, __extends } from \"tslib\";\n\nvar compactMetricType = function compactMetricType(type) {\n var enums = {\n gauge: 'g',\n counter: 'c'\n };\n return enums[type];\n};\n\nvar CoreStats =\n/** @class */\nfunction () {\n function CoreStats() {\n this.metrics = [];\n }\n\n CoreStats.prototype.increment = function (metric, by, tags) {\n if (by === void 0) {\n by = 1;\n }\n\n this.metrics.push({\n metric: metric,\n value: by,\n tags: tags !== null && tags !== void 0 ? tags : [],\n type: 'counter',\n timestamp: Date.now()\n });\n };\n\n CoreStats.prototype.gauge = function (metric, value, tags) {\n this.metrics.push({\n metric: metric,\n value: value,\n tags: tags !== null && tags !== void 0 ? tags : [],\n type: 'gauge',\n timestamp: Date.now()\n });\n };\n\n CoreStats.prototype.flush = function () {\n var formatted = this.metrics.map(function (m) {\n return __assign(__assign({}, m), {\n tags: m.tags.join(',')\n });\n }); // ie doesn't like console.table\n\n if (console.table) {\n console.table(formatted);\n } else {\n console.log(formatted);\n }\n\n this.metrics = [];\n };\n /**\n * compact keys for smaller payload\n */\n\n\n CoreStats.prototype.serialize = function () {\n return this.metrics.map(function (m) {\n return {\n m: m.metric,\n v: m.value,\n t: m.tags,\n k: compactMetricType(m.type),\n e: m.timestamp\n };\n });\n };\n\n return CoreStats;\n}();\n\nexport { CoreStats };\n\nvar NullStats =\n/** @class */\nfunction (_super) {\n __extends(NullStats, _super);\n\n function NullStats() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n NullStats.prototype.gauge = function () {\n var _args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n _args[_i] = arguments[_i];\n }\n };\n\n NullStats.prototype.increment = function () {\n var _args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n _args[_i] = arguments[_i];\n }\n };\n\n NullStats.prototype.flush = function () {\n var _args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n _args[_i] = arguments[_i];\n }\n };\n\n NullStats.prototype.serialize = function () {\n var _args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n _args[_i] = arguments[_i];\n }\n\n return [];\n };\n\n return NullStats;\n}(CoreStats);\n\nexport { NullStats };","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n(function (factory) {\n if ((typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object') {\n // Node/CommonJS\n module.exports = factory();\n } else if (typeof define === 'function' && define.amd) {\n // AMD\n define(factory);\n } else {\n // Browser globals (with support for web workers)\n var glob;\n\n try {\n glob = window;\n } catch (e) {\n glob = self;\n }\n\n glob.SparkMD5 = factory();\n }\n})(function (undefined) {\n 'use strict';\n /*\n * Fastest md5 implementation around (JKM md5).\n * Credits: Joseph Myers\n *\n * @see http://www.myersdaily.org/joseph/javascript/md5-text.html\n * @see http://jsperf.com/md5-shootout/7\n */\n\n /* this function is much faster,\n so if possible we use it. Some IEs\n are the only ones I know of that\n need the idiotic second function,\n generated by an if clause. */\n\n var add32 = function add32(a, b) {\n return a + b & 0xFFFFFFFF;\n },\n hex_chr = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'];\n\n function cmn(q, a, b, x, s, t) {\n a = add32(add32(a, q), add32(x, t));\n return add32(a << s | a >>> 32 - s, b);\n }\n\n function md5cycle(x, k) {\n var a = x[0],\n b = x[1],\n c = x[2],\n d = x[3];\n a += (b & c | ~b & d) + k[0] - 680876936 | 0;\n a = (a << 7 | a >>> 25) + b | 0;\n d += (a & b | ~a & c) + k[1] - 389564586 | 0;\n d = (d << 12 | d >>> 20) + a | 0;\n c += (d & a | ~d & b) + k[2] + 606105819 | 0;\n c = (c << 17 | c >>> 15) + d | 0;\n b += (c & d | ~c & a) + k[3] - 1044525330 | 0;\n b = (b << 22 | b >>> 10) + c | 0;\n a += (b & c | ~b & d) + k[4] - 176418897 | 0;\n a = (a << 7 | a >>> 25) + b | 0;\n d += (a & b | ~a & c) + k[5] + 1200080426 | 0;\n d = (d << 12 | d >>> 20) + a | 0;\n c += (d & a | ~d & b) + k[6] - 1473231341 | 0;\n c = (c << 17 | c >>> 15) + d | 0;\n b += (c & d | ~c & a) + k[7] - 45705983 | 0;\n b = (b << 22 | b >>> 10) + c | 0;\n a += (b & c | ~b & d) + k[8] + 1770035416 | 0;\n a = (a << 7 | a >>> 25) + b | 0;\n d += (a & b | ~a & c) + k[9] - 1958414417 | 0;\n d = (d << 12 | d >>> 20) + a | 0;\n c += (d & a | ~d & b) + k[10] - 42063 | 0;\n c = (c << 17 | c >>> 15) + d | 0;\n b += (c & d | ~c & a) + k[11] - 1990404162 | 0;\n b = (b << 22 | b >>> 10) + c | 0;\n a += (b & c | ~b & d) + k[12] + 1804603682 | 0;\n a = (a << 7 | a >>> 25) + b | 0;\n d += (a & b | ~a & c) + k[13] - 40341101 | 0;\n d = (d << 12 | d >>> 20) + a | 0;\n c += (d & a | ~d & b) + k[14] - 1502002290 | 0;\n c = (c << 17 | c >>> 15) + d | 0;\n b += (c & d | ~c & a) + k[15] + 1236535329 | 0;\n b = (b << 22 | b >>> 10) + c | 0;\n a += (b & d | c & ~d) + k[1] - 165796510 | 0;\n a = (a << 5 | a >>> 27) + b | 0;\n d += (a & c | b & ~c) + k[6] - 1069501632 | 0;\n d = (d << 9 | d >>> 23) + a | 0;\n c += (d & b | a & ~b) + k[11] + 643717713 | 0;\n c = (c << 14 | c >>> 18) + d | 0;\n b += (c & a | d & ~a) + k[0] - 373897302 | 0;\n b = (b << 20 | b >>> 12) + c | 0;\n a += (b & d | c & ~d) + k[5] - 701558691 | 0;\n a = (a << 5 | a >>> 27) + b | 0;\n d += (a & c | b & ~c) + k[10] + 38016083 | 0;\n d = (d << 9 | d >>> 23) + a | 0;\n c += (d & b | a & ~b) + k[15] - 660478335 | 0;\n c = (c << 14 | c >>> 18) + d | 0;\n b += (c & a | d & ~a) + k[4] - 405537848 | 0;\n b = (b << 20 | b >>> 12) + c | 0;\n a += (b & d | c & ~d) + k[9] + 568446438 | 0;\n a = (a << 5 | a >>> 27) + b | 0;\n d += (a & c | b & ~c) + k[14] - 1019803690 | 0;\n d = (d << 9 | d >>> 23) + a | 0;\n c += (d & b | a & ~b) + k[3] - 187363961 | 0;\n c = (c << 14 | c >>> 18) + d | 0;\n b += (c & a | d & ~a) + k[8] + 1163531501 | 0;\n b = (b << 20 | b >>> 12) + c | 0;\n a += (b & d | c & ~d) + k[13] - 1444681467 | 0;\n a = (a << 5 | a >>> 27) + b | 0;\n d += (a & c | b & ~c) + k[2] - 51403784 | 0;\n d = (d << 9 | d >>> 23) + a | 0;\n c += (d & b | a & ~b) + k[7] + 1735328473 | 0;\n c = (c << 14 | c >>> 18) + d | 0;\n b += (c & a | d & ~a) + k[12] - 1926607734 | 0;\n b = (b << 20 | b >>> 12) + c | 0;\n a += (b ^ c ^ d) + k[5] - 378558 | 0;\n a = (a << 4 | a >>> 28) + b | 0;\n d += (a ^ b ^ c) + k[8] - 2022574463 | 0;\n d = (d << 11 | d >>> 21) + a | 0;\n c += (d ^ a ^ b) + k[11] + 1839030562 | 0;\n c = (c << 16 | c >>> 16) + d | 0;\n b += (c ^ d ^ a) + k[14] - 35309556 | 0;\n b = (b << 23 | b >>> 9) + c | 0;\n a += (b ^ c ^ d) + k[1] - 1530992060 | 0;\n a = (a << 4 | a >>> 28) + b | 0;\n d += (a ^ b ^ c) + k[4] + 1272893353 | 0;\n d = (d << 11 | d >>> 21) + a | 0;\n c += (d ^ a ^ b) + k[7] - 155497632 | 0;\n c = (c << 16 | c >>> 16) + d | 0;\n b += (c ^ d ^ a) + k[10] - 1094730640 | 0;\n b = (b << 23 | b >>> 9) + c | 0;\n a += (b ^ c ^ d) + k[13] + 681279174 | 0;\n a = (a << 4 | a >>> 28) + b | 0;\n d += (a ^ b ^ c) + k[0] - 358537222 | 0;\n d = (d << 11 | d >>> 21) + a | 0;\n c += (d ^ a ^ b) + k[3] - 722521979 | 0;\n c = (c << 16 | c >>> 16) + d | 0;\n b += (c ^ d ^ a) + k[6] + 76029189 | 0;\n b = (b << 23 | b >>> 9) + c | 0;\n a += (b ^ c ^ d) + k[9] - 640364487 | 0;\n a = (a << 4 | a >>> 28) + b | 0;\n d += (a ^ b ^ c) + k[12] - 421815835 | 0;\n d = (d << 11 | d >>> 21) + a | 0;\n c += (d ^ a ^ b) + k[15] + 530742520 | 0;\n c = (c << 16 | c >>> 16) + d | 0;\n b += (c ^ d ^ a) + k[2] - 995338651 | 0;\n b = (b << 23 | b >>> 9) + c | 0;\n a += (c ^ (b | ~d)) + k[0] - 198630844 | 0;\n a = (a << 6 | a >>> 26) + b | 0;\n d += (b ^ (a | ~c)) + k[7] + 1126891415 | 0;\n d = (d << 10 | d >>> 22) + a | 0;\n c += (a ^ (d | ~b)) + k[14] - 1416354905 | 0;\n c = (c << 15 | c >>> 17) + d | 0;\n b += (d ^ (c | ~a)) + k[5] - 57434055 | 0;\n b = (b << 21 | b >>> 11) + c | 0;\n a += (c ^ (b | ~d)) + k[12] + 1700485571 | 0;\n a = (a << 6 | a >>> 26) + b | 0;\n d += (b ^ (a | ~c)) + k[3] - 1894986606 | 0;\n d = (d << 10 | d >>> 22) + a | 0;\n c += (a ^ (d | ~b)) + k[10] - 1051523 | 0;\n c = (c << 15 | c >>> 17) + d | 0;\n b += (d ^ (c | ~a)) + k[1] - 2054922799 | 0;\n b = (b << 21 | b >>> 11) + c | 0;\n a += (c ^ (b | ~d)) + k[8] + 1873313359 | 0;\n a = (a << 6 | a >>> 26) + b | 0;\n d += (b ^ (a | ~c)) + k[15] - 30611744 | 0;\n d = (d << 10 | d >>> 22) + a | 0;\n c += (a ^ (d | ~b)) + k[6] - 1560198380 | 0;\n c = (c << 15 | c >>> 17) + d | 0;\n b += (d ^ (c | ~a)) + k[13] + 1309151649 | 0;\n b = (b << 21 | b >>> 11) + c | 0;\n a += (c ^ (b | ~d)) + k[4] - 145523070 | 0;\n a = (a << 6 | a >>> 26) + b | 0;\n d += (b ^ (a | ~c)) + k[11] - 1120210379 | 0;\n d = (d << 10 | d >>> 22) + a | 0;\n c += (a ^ (d | ~b)) + k[2] + 718787259 | 0;\n c = (c << 15 | c >>> 17) + d | 0;\n b += (d ^ (c | ~a)) + k[9] - 343485551 | 0;\n b = (b << 21 | b >>> 11) + c | 0;\n x[0] = a + x[0] | 0;\n x[1] = b + x[1] | 0;\n x[2] = c + x[2] | 0;\n x[3] = d + x[3] | 0;\n }\n\n function md5blk(s) {\n var md5blks = [],\n i;\n /* Andy King said do it this way. */\n\n for (i = 0; i < 64; i += 4) {\n md5blks[i >> 2] = s.charCodeAt(i) + (s.charCodeAt(i + 1) << 8) + (s.charCodeAt(i + 2) << 16) + (s.charCodeAt(i + 3) << 24);\n }\n\n return md5blks;\n }\n\n function md5blk_array(a) {\n var md5blks = [],\n i;\n /* Andy King said do it this way. */\n\n for (i = 0; i < 64; i += 4) {\n md5blks[i >> 2] = a[i] + (a[i + 1] << 8) + (a[i + 2] << 16) + (a[i + 3] << 24);\n }\n\n return md5blks;\n }\n\n function md51(s) {\n var n = s.length,\n state = [1732584193, -271733879, -1732584194, 271733878],\n i,\n length,\n tail,\n tmp,\n lo,\n hi;\n\n for (i = 64; i <= n; i += 64) {\n md5cycle(state, md5blk(s.substring(i - 64, i)));\n }\n\n s = s.substring(i - 64);\n length = s.length;\n tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\n\n for (i = 0; i < length; i += 1) {\n tail[i >> 2] |= s.charCodeAt(i) << (i % 4 << 3);\n }\n\n tail[i >> 2] |= 0x80 << (i % 4 << 3);\n\n if (i > 55) {\n md5cycle(state, tail);\n\n for (i = 0; i < 16; i += 1) {\n tail[i] = 0;\n }\n } // Beware that the final length might not fit in 32 bits so we take care of that\n\n\n tmp = n * 8;\n tmp = tmp.toString(16).match(/(.*?)(.{0,8})$/);\n lo = parseInt(tmp[2], 16);\n hi = parseInt(tmp[1], 16) || 0;\n tail[14] = lo;\n tail[15] = hi;\n md5cycle(state, tail);\n return state;\n }\n\n function md51_array(a) {\n var n = a.length,\n state = [1732584193, -271733879, -1732584194, 271733878],\n i,\n length,\n tail,\n tmp,\n lo,\n hi;\n\n for (i = 64; i <= n; i += 64) {\n md5cycle(state, md5blk_array(a.subarray(i - 64, i)));\n } // Not sure if it is a bug, however IE10 will always produce a sub array of length 1\n // containing the last element of the parent array if the sub array specified starts\n // beyond the length of the parent array - weird.\n // https://connect.microsoft.com/IE/feedback/details/771452/typed-array-subarray-issue\n\n\n a = i - 64 < n ? a.subarray(i - 64) : new Uint8Array(0);\n length = a.length;\n tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\n\n for (i = 0; i < length; i += 1) {\n tail[i >> 2] |= a[i] << (i % 4 << 3);\n }\n\n tail[i >> 2] |= 0x80 << (i % 4 << 3);\n\n if (i > 55) {\n md5cycle(state, tail);\n\n for (i = 0; i < 16; i += 1) {\n tail[i] = 0;\n }\n } // Beware that the final length might not fit in 32 bits so we take care of that\n\n\n tmp = n * 8;\n tmp = tmp.toString(16).match(/(.*?)(.{0,8})$/);\n lo = parseInt(tmp[2], 16);\n hi = parseInt(tmp[1], 16) || 0;\n tail[14] = lo;\n tail[15] = hi;\n md5cycle(state, tail);\n return state;\n }\n\n function rhex(n) {\n var s = '',\n j;\n\n for (j = 0; j < 4; j += 1) {\n s += hex_chr[n >> j * 8 + 4 & 0x0F] + hex_chr[n >> j * 8 & 0x0F];\n }\n\n return s;\n }\n\n function hex(x) {\n var i;\n\n for (i = 0; i < x.length; i += 1) {\n x[i] = rhex(x[i]);\n }\n\n return x.join('');\n } // In some cases the fast add32 function cannot be used..\n\n\n if (hex(md51('hello')) !== '5d41402abc4b2a76b9719d911017c592') {\n add32 = function add32(x, y) {\n var lsw = (x & 0xFFFF) + (y & 0xFFFF),\n msw = (x >> 16) + (y >> 16) + (lsw >> 16);\n return msw << 16 | lsw & 0xFFFF;\n };\n } // ---------------------------------------------------\n\n /**\n * ArrayBuffer slice polyfill.\n *\n * @see https://github.com/ttaubert/node-arraybuffer-slice\n */\n\n\n if (typeof ArrayBuffer !== 'undefined' && !ArrayBuffer.prototype.slice) {\n (function () {\n function clamp(val, length) {\n val = val | 0 || 0;\n\n if (val < 0) {\n return Math.max(val + length, 0);\n }\n\n return Math.min(val, length);\n }\n\n ArrayBuffer.prototype.slice = function (from, to) {\n var length = this.byteLength,\n begin = clamp(from, length),\n end = length,\n num,\n target,\n targetArray,\n sourceArray;\n\n if (to !== undefined) {\n end = clamp(to, length);\n }\n\n if (begin > end) {\n return new ArrayBuffer(0);\n }\n\n num = end - begin;\n target = new ArrayBuffer(num);\n targetArray = new Uint8Array(target);\n sourceArray = new Uint8Array(this, begin, num);\n targetArray.set(sourceArray);\n return target;\n };\n })();\n } // ---------------------------------------------------\n\n /**\n * Helpers.\n */\n\n\n function toUtf8(str) {\n if (/[\\u0080-\\uFFFF]/.test(str)) {\n str = unescape(encodeURIComponent(str));\n }\n\n return str;\n }\n\n function utf8Str2ArrayBuffer(str, returnUInt8Array) {\n var length = str.length,\n buff = new ArrayBuffer(length),\n arr = new Uint8Array(buff),\n i;\n\n for (i = 0; i < length; i += 1) {\n arr[i] = str.charCodeAt(i);\n }\n\n return returnUInt8Array ? arr : buff;\n }\n\n function arrayBuffer2Utf8Str(buff) {\n return String.fromCharCode.apply(null, new Uint8Array(buff));\n }\n\n function concatenateArrayBuffers(first, second, returnUInt8Array) {\n var result = new Uint8Array(first.byteLength + second.byteLength);\n result.set(new Uint8Array(first));\n result.set(new Uint8Array(second), first.byteLength);\n return returnUInt8Array ? result : result.buffer;\n }\n\n function hexToBinaryString(hex) {\n var bytes = [],\n length = hex.length,\n x;\n\n for (x = 0; x < length - 1; x += 2) {\n bytes.push(parseInt(hex.substr(x, 2), 16));\n }\n\n return String.fromCharCode.apply(String, bytes);\n } // ---------------------------------------------------\n\n /**\n * SparkMD5 OOP implementation.\n *\n * Use this class to perform an incremental md5, otherwise use the\n * static methods instead.\n */\n\n\n function SparkMD5() {\n // call reset to init the instance\n this.reset();\n }\n /**\n * Appends a string.\n * A conversion will be applied if an utf8 string is detected.\n *\n * @param {String} str The string to be appended\n *\n * @return {SparkMD5} The instance itself\n */\n\n\n SparkMD5.prototype.append = function (str) {\n // Converts the string to utf8 bytes if necessary\n // Then append as binary\n this.appendBinary(toUtf8(str));\n return this;\n };\n /**\n * Appends a binary string.\n *\n * @param {String} contents The binary string to be appended\n *\n * @return {SparkMD5} The instance itself\n */\n\n\n SparkMD5.prototype.appendBinary = function (contents) {\n this._buff += contents;\n this._length += contents.length;\n var length = this._buff.length,\n i;\n\n for (i = 64; i <= length; i += 64) {\n md5cycle(this._hash, md5blk(this._buff.substring(i - 64, i)));\n }\n\n this._buff = this._buff.substring(i - 64);\n return this;\n };\n /**\n * Finishes the incremental computation, reseting the internal state and\n * returning the result.\n *\n * @param {Boolean} raw True to get the raw string, false to get the hex string\n *\n * @return {String} The result\n */\n\n\n SparkMD5.prototype.end = function (raw) {\n var buff = this._buff,\n length = buff.length,\n i,\n tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n ret;\n\n for (i = 0; i < length; i += 1) {\n tail[i >> 2] |= buff.charCodeAt(i) << (i % 4 << 3);\n }\n\n this._finish(tail, length);\n\n ret = hex(this._hash);\n\n if (raw) {\n ret = hexToBinaryString(ret);\n }\n\n this.reset();\n return ret;\n };\n /**\n * Resets the internal state of the computation.\n *\n * @return {SparkMD5} The instance itself\n */\n\n\n SparkMD5.prototype.reset = function () {\n this._buff = '';\n this._length = 0;\n this._hash = [1732584193, -271733879, -1732584194, 271733878];\n return this;\n };\n /**\n * Gets the internal state of the computation.\n *\n * @return {Object} The state\n */\n\n\n SparkMD5.prototype.getState = function () {\n return {\n buff: this._buff,\n length: this._length,\n hash: this._hash.slice()\n };\n };\n /**\n * Gets the internal state of the computation.\n *\n * @param {Object} state The state\n *\n * @return {SparkMD5} The instance itself\n */\n\n\n SparkMD5.prototype.setState = function (state) {\n this._buff = state.buff;\n this._length = state.length;\n this._hash = state.hash;\n return this;\n };\n /**\n * Releases memory used by the incremental buffer and other additional\n * resources. If you plan to use the instance again, use reset instead.\n */\n\n\n SparkMD5.prototype.destroy = function () {\n delete this._hash;\n delete this._buff;\n delete this._length;\n };\n /**\n * Finish the final calculation based on the tail.\n *\n * @param {Array} tail The tail (will be modified)\n * @param {Number} length The length of the remaining buffer\n */\n\n\n SparkMD5.prototype._finish = function (tail, length) {\n var i = length,\n tmp,\n lo,\n hi;\n tail[i >> 2] |= 0x80 << (i % 4 << 3);\n\n if (i > 55) {\n md5cycle(this._hash, tail);\n\n for (i = 0; i < 16; i += 1) {\n tail[i] = 0;\n }\n } // Do the final computation based on the tail and length\n // Beware that the final length may not fit in 32 bits so we take care of that\n\n\n tmp = this._length * 8;\n tmp = tmp.toString(16).match(/(.*?)(.{0,8})$/);\n lo = parseInt(tmp[2], 16);\n hi = parseInt(tmp[1], 16) || 0;\n tail[14] = lo;\n tail[15] = hi;\n md5cycle(this._hash, tail);\n };\n /**\n * Performs the md5 hash on a string.\n * A conversion will be applied if utf8 string is detected.\n *\n * @param {String} str The string\n * @param {Boolean} [raw] True to get the raw string, false to get the hex string\n *\n * @return {String} The result\n */\n\n\n SparkMD5.hash = function (str, raw) {\n // Converts the string to utf8 bytes if necessary\n // Then compute it using the binary function\n return SparkMD5.hashBinary(toUtf8(str), raw);\n };\n /**\n * Performs the md5 hash on a binary string.\n *\n * @param {String} content The binary string\n * @param {Boolean} [raw] True to get the raw string, false to get the hex string\n *\n * @return {String} The result\n */\n\n\n SparkMD5.hashBinary = function (content, raw) {\n var hash = md51(content),\n ret = hex(hash);\n return raw ? hexToBinaryString(ret) : ret;\n }; // ---------------------------------------------------\n\n /**\n * SparkMD5 OOP implementation for array buffers.\n *\n * Use this class to perform an incremental md5 ONLY for array buffers.\n */\n\n\n SparkMD5.ArrayBuffer = function () {\n // call reset to init the instance\n this.reset();\n };\n /**\n * Appends an array buffer.\n *\n * @param {ArrayBuffer} arr The array to be appended\n *\n * @return {SparkMD5.ArrayBuffer} The instance itself\n */\n\n\n SparkMD5.ArrayBuffer.prototype.append = function (arr) {\n var buff = concatenateArrayBuffers(this._buff.buffer, arr, true),\n length = buff.length,\n i;\n this._length += arr.byteLength;\n\n for (i = 64; i <= length; i += 64) {\n md5cycle(this._hash, md5blk_array(buff.subarray(i - 64, i)));\n }\n\n this._buff = i - 64 < length ? new Uint8Array(buff.buffer.slice(i - 64)) : new Uint8Array(0);\n return this;\n };\n /**\n * Finishes the incremental computation, reseting the internal state and\n * returning the result.\n *\n * @param {Boolean} raw True to get the raw string, false to get the hex string\n *\n * @return {String} The result\n */\n\n\n SparkMD5.ArrayBuffer.prototype.end = function (raw) {\n var buff = this._buff,\n length = buff.length,\n tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n i,\n ret;\n\n for (i = 0; i < length; i += 1) {\n tail[i >> 2] |= buff[i] << (i % 4 << 3);\n }\n\n this._finish(tail, length);\n\n ret = hex(this._hash);\n\n if (raw) {\n ret = hexToBinaryString(ret);\n }\n\n this.reset();\n return ret;\n };\n /**\n * Resets the internal state of the computation.\n *\n * @return {SparkMD5.ArrayBuffer} The instance itself\n */\n\n\n SparkMD5.ArrayBuffer.prototype.reset = function () {\n this._buff = new Uint8Array(0);\n this._length = 0;\n this._hash = [1732584193, -271733879, -1732584194, 271733878];\n return this;\n };\n /**\n * Gets the internal state of the computation.\n *\n * @return {Object} The state\n */\n\n\n SparkMD5.ArrayBuffer.prototype.getState = function () {\n var state = SparkMD5.prototype.getState.call(this); // Convert buffer to a string\n\n state.buff = arrayBuffer2Utf8Str(state.buff);\n return state;\n };\n /**\n * Gets the internal state of the computation.\n *\n * @param {Object} state The state\n *\n * @return {SparkMD5.ArrayBuffer} The instance itself\n */\n\n\n SparkMD5.ArrayBuffer.prototype.setState = function (state) {\n // Convert string to buffer\n state.buff = utf8Str2ArrayBuffer(state.buff, true);\n return SparkMD5.prototype.setState.call(this, state);\n };\n\n SparkMD5.ArrayBuffer.prototype.destroy = SparkMD5.prototype.destroy;\n SparkMD5.ArrayBuffer.prototype._finish = SparkMD5.prototype._finish;\n /**\n * Performs the md5 hash on an array buffer.\n *\n * @param {ArrayBuffer} arr The array buffer\n * @param {Boolean} [raw] True to get the raw string, false to get the hex one\n *\n * @return {String} The result\n */\n\n SparkMD5.ArrayBuffer.hash = function (arr, raw) {\n var hash = md51_array(new Uint8Array(arr)),\n ret = hex(hash);\n return raw ? hexToBinaryString(ret) : ret;\n };\n\n return SparkMD5;\n});","export function pTimeout(promise, timeout) {\n return new Promise(function (resolve, reject) {\n var timeoutId = setTimeout(function () {\n reject(Error('Promise timed out'));\n }, timeout);\n promise.then(function (val) {\n clearTimeout(timeoutId);\n return resolve(val);\n }).catch(reject);\n });\n}\nexport function sleep(timeoutInMs) {\n return new Promise(function (resolve) {\n return setTimeout(resolve, timeoutInMs);\n });\n}\n/**\n * @param ctx\n * @param callback - the function to invoke\n * @param delay - aka \"timeout\". The amount of time in ms to wait before invoking the callback.\n */\n\nexport function invokeCallback(ctx, callback, delay) {\n var cb = function cb() {\n try {\n return Promise.resolve(callback(ctx));\n } catch (err) {\n return Promise.reject(err);\n }\n };\n\n return sleep(delay) // pTimeout ensures that the callback can't cause the context to hang\n .then(function () {\n return pTimeout(cb(), 1000);\n }).catch(function (err) {\n ctx === null || ctx === void 0 ? void 0 : ctx.log('warn', 'Callback Error', {\n error: err\n });\n ctx === null || ctx === void 0 ? void 0 : ctx.stats.increment('callback_error');\n }).then(function () {\n return ctx;\n });\n}","import { createConsumer } from '@rails/actioncable';\n\nconst PRESENCE_INTERVAL = 20000;\nconst RECONNECT_INTERVAL = 1000;\n\nclass BaseActionCableConnector {\n static isDisconnected = false;\n\n constructor(app, pubsubToken, websocketHost = '') {\n const websocketURL = websocketHost ? `${websocketHost}/cable` : undefined;\n\n this.consumer = createConsumer(websocketURL);\n this.subscription = this.consumer.subscriptions.create(\n {\n channel: 'RoomChannel',\n pubsub_token: pubsubToken,\n account_id: app.$store.getters.getCurrentAccountId,\n user_id: app.$store.getters.getCurrentUserID,\n },\n {\n updatePresence() {\n this.perform('update_presence');\n },\n received: this.onReceived,\n disconnected: () => {\n BaseActionCableConnector.isDisconnected = true;\n this.onDisconnected();\n this.initReconnectTimer();\n },\n }\n );\n this.app = app;\n this.events = {};\n this.reconnectTimer = null;\n this.isAValidEvent = () => true;\n this.triggerPresenceInterval = () => {\n setTimeout(() => {\n this.subscription.updatePresence();\n this.triggerPresenceInterval();\n }, PRESENCE_INTERVAL);\n };\n this.triggerPresenceInterval();\n }\n\n checkConnection() {\n const isConnectionActive = this.consumer.connection.isOpen();\n const isReconnected =\n BaseActionCableConnector.isDisconnected && isConnectionActive;\n if (isReconnected) {\n this.clearReconnectTimer();\n this.onReconnect();\n BaseActionCableConnector.isDisconnected = false;\n } else {\n this.initReconnectTimer();\n }\n }\n\n clearReconnectTimer = () => {\n if (this.reconnectTimer) {\n clearTimeout(this.reconnectTimer);\n this.reconnectTimer = null;\n }\n };\n\n initReconnectTimer = () => {\n this.clearReconnectTimer();\n this.reconnectTimer = setTimeout(() => {\n this.checkConnection();\n }, RECONNECT_INTERVAL);\n };\n\n // eslint-disable-next-line class-methods-use-this\n onReconnect = () => {};\n\n // eslint-disable-next-line class-methods-use-this\n onDisconnected = () => {};\n\n disconnect() {\n this.consumer.disconnect();\n }\n\n onReceived = ({ event, data } = {}) => {\n if (this.isAValidEvent(data)) {\n if (this.events[event] && typeof this.events[event] === 'function') {\n this.events[event](data);\n }\n }\n };\n}\n\nexport default BaseActionCableConnector;\n","function _typeof2(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof2(obj); }\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof2(exports)) === \"object\" && typeof module !== \"undefined\" ? factory(exports) : typeof define === \"function\" && define.amd ? define([\"exports\"], factory) : factory(global.ActionCable = {});\n})(this, function (exports) {\n \"use strict\";\n\n var adapters = {\n logger: self.console,\n WebSocket: self.WebSocket\n };\n var logger = {\n log: function log() {\n if (this.enabled) {\n var _adapters$logger;\n\n for (var _len = arguments.length, messages = Array(_len), _key = 0; _key < _len; _key++) {\n messages[_key] = arguments[_key];\n }\n\n messages.push(Date.now());\n\n (_adapters$logger = adapters.logger).log.apply(_adapters$logger, [\"[ActionCable]\"].concat(messages));\n }\n }\n };\n\n var _typeof = typeof Symbol === \"function\" && _typeof2(Symbol.iterator) === \"symbol\" ? function (obj) {\n return _typeof2(obj);\n } : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : _typeof2(obj);\n };\n\n var classCallCheck = function classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n };\n\n var createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n }();\n\n var now = function now() {\n return new Date().getTime();\n };\n\n var secondsSince = function secondsSince(time) {\n return (now() - time) / 1e3;\n };\n\n var clamp = function clamp(number, min, max) {\n return Math.max(min, Math.min(max, number));\n };\n\n var ConnectionMonitor = function () {\n function ConnectionMonitor(connection) {\n classCallCheck(this, ConnectionMonitor);\n this.visibilityDidChange = this.visibilityDidChange.bind(this);\n this.connection = connection;\n this.reconnectAttempts = 0;\n }\n\n ConnectionMonitor.prototype.start = function start() {\n if (!this.isRunning()) {\n this.startedAt = now();\n delete this.stoppedAt;\n this.startPolling();\n addEventListener(\"visibilitychange\", this.visibilityDidChange);\n logger.log(\"ConnectionMonitor started. pollInterval = \" + this.getPollInterval() + \" ms\");\n }\n };\n\n ConnectionMonitor.prototype.stop = function stop() {\n if (this.isRunning()) {\n this.stoppedAt = now();\n this.stopPolling();\n removeEventListener(\"visibilitychange\", this.visibilityDidChange);\n logger.log(\"ConnectionMonitor stopped\");\n }\n };\n\n ConnectionMonitor.prototype.isRunning = function isRunning() {\n return this.startedAt && !this.stoppedAt;\n };\n\n ConnectionMonitor.prototype.recordPing = function recordPing() {\n this.pingedAt = now();\n };\n\n ConnectionMonitor.prototype.recordConnect = function recordConnect() {\n this.reconnectAttempts = 0;\n this.recordPing();\n delete this.disconnectedAt;\n logger.log(\"ConnectionMonitor recorded connect\");\n };\n\n ConnectionMonitor.prototype.recordDisconnect = function recordDisconnect() {\n this.disconnectedAt = now();\n logger.log(\"ConnectionMonitor recorded disconnect\");\n };\n\n ConnectionMonitor.prototype.startPolling = function startPolling() {\n this.stopPolling();\n this.poll();\n };\n\n ConnectionMonitor.prototype.stopPolling = function stopPolling() {\n clearTimeout(this.pollTimeout);\n };\n\n ConnectionMonitor.prototype.poll = function poll() {\n var _this = this;\n\n this.pollTimeout = setTimeout(function () {\n _this.reconnectIfStale();\n\n _this.poll();\n }, this.getPollInterval());\n };\n\n ConnectionMonitor.prototype.getPollInterval = function getPollInterval() {\n var _constructor$pollInte = this.constructor.pollInterval,\n min = _constructor$pollInte.min,\n max = _constructor$pollInte.max,\n multiplier = _constructor$pollInte.multiplier;\n var interval = multiplier * Math.log(this.reconnectAttempts + 1);\n return Math.round(clamp(interval, min, max) * 1e3);\n };\n\n ConnectionMonitor.prototype.reconnectIfStale = function reconnectIfStale() {\n if (this.connectionIsStale()) {\n logger.log(\"ConnectionMonitor detected stale connection. reconnectAttempts = \" + this.reconnectAttempts + \", pollInterval = \" + this.getPollInterval() + \" ms, time disconnected = \" + secondsSince(this.disconnectedAt) + \" s, stale threshold = \" + this.constructor.staleThreshold + \" s\");\n this.reconnectAttempts++;\n\n if (this.disconnectedRecently()) {\n logger.log(\"ConnectionMonitor skipping reopening recent disconnect\");\n } else {\n logger.log(\"ConnectionMonitor reopening\");\n this.connection.reopen();\n }\n }\n };\n\n ConnectionMonitor.prototype.connectionIsStale = function connectionIsStale() {\n return secondsSince(this.pingedAt ? this.pingedAt : this.startedAt) > this.constructor.staleThreshold;\n };\n\n ConnectionMonitor.prototype.disconnectedRecently = function disconnectedRecently() {\n return this.disconnectedAt && secondsSince(this.disconnectedAt) < this.constructor.staleThreshold;\n };\n\n ConnectionMonitor.prototype.visibilityDidChange = function visibilityDidChange() {\n var _this2 = this;\n\n if (document.visibilityState === \"visible\") {\n setTimeout(function () {\n if (_this2.connectionIsStale() || !_this2.connection.isOpen()) {\n logger.log(\"ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = \" + document.visibilityState);\n\n _this2.connection.reopen();\n }\n }, 200);\n }\n };\n\n return ConnectionMonitor;\n }();\n\n ConnectionMonitor.pollInterval = {\n min: 3,\n max: 30,\n multiplier: 5\n };\n ConnectionMonitor.staleThreshold = 6;\n var INTERNAL = {\n message_types: {\n welcome: \"welcome\",\n disconnect: \"disconnect\",\n ping: \"ping\",\n confirmation: \"confirm_subscription\",\n rejection: \"reject_subscription\"\n },\n disconnect_reasons: {\n unauthorized: \"unauthorized\",\n invalid_request: \"invalid_request\",\n server_restart: \"server_restart\"\n },\n default_mount_path: \"/cable\",\n protocols: [\"actioncable-v1-json\", \"actioncable-unsupported\"]\n };\n var message_types = INTERNAL.message_types,\n protocols = INTERNAL.protocols;\n var supportedProtocols = protocols.slice(0, protocols.length - 1);\n var indexOf = [].indexOf;\n\n var Connection = function () {\n function Connection(consumer) {\n classCallCheck(this, Connection);\n this.open = this.open.bind(this);\n this.consumer = consumer;\n this.subscriptions = this.consumer.subscriptions;\n this.monitor = new ConnectionMonitor(this);\n this.disconnected = true;\n }\n\n Connection.prototype.send = function send(data) {\n if (this.isOpen()) {\n this.webSocket.send(JSON.stringify(data));\n return true;\n } else {\n return false;\n }\n };\n\n Connection.prototype.open = function open() {\n if (this.isActive()) {\n logger.log(\"Attempted to open WebSocket, but existing socket is \" + this.getState());\n return false;\n } else {\n logger.log(\"Opening WebSocket, current state is \" + this.getState() + \", subprotocols: \" + protocols);\n\n if (this.webSocket) {\n this.uninstallEventHandlers();\n }\n\n this.webSocket = new adapters.WebSocket(this.consumer.url, protocols);\n this.installEventHandlers();\n this.monitor.start();\n return true;\n }\n };\n\n Connection.prototype.close = function close() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {\n allowReconnect: true\n },\n allowReconnect = _ref.allowReconnect;\n\n if (!allowReconnect) {\n this.monitor.stop();\n }\n\n if (this.isActive()) {\n return this.webSocket.close();\n }\n };\n\n Connection.prototype.reopen = function reopen() {\n logger.log(\"Reopening WebSocket, current state is \" + this.getState());\n\n if (this.isActive()) {\n try {\n return this.close();\n } catch (error) {\n logger.log(\"Failed to reopen WebSocket\", error);\n } finally {\n logger.log(\"Reopening WebSocket in \" + this.constructor.reopenDelay + \"ms\");\n setTimeout(this.open, this.constructor.reopenDelay);\n }\n } else {\n return this.open();\n }\n };\n\n Connection.prototype.getProtocol = function getProtocol() {\n if (this.webSocket) {\n return this.webSocket.protocol;\n }\n };\n\n Connection.prototype.isOpen = function isOpen() {\n return this.isState(\"open\");\n };\n\n Connection.prototype.isActive = function isActive() {\n return this.isState(\"open\", \"connecting\");\n };\n\n Connection.prototype.isProtocolSupported = function isProtocolSupported() {\n return indexOf.call(supportedProtocols, this.getProtocol()) >= 0;\n };\n\n Connection.prototype.isState = function isState() {\n for (var _len = arguments.length, states = Array(_len), _key = 0; _key < _len; _key++) {\n states[_key] = arguments[_key];\n }\n\n return indexOf.call(states, this.getState()) >= 0;\n };\n\n Connection.prototype.getState = function getState() {\n if (this.webSocket) {\n for (var state in adapters.WebSocket) {\n if (adapters.WebSocket[state] === this.webSocket.readyState) {\n return state.toLowerCase();\n }\n }\n }\n\n return null;\n };\n\n Connection.prototype.installEventHandlers = function installEventHandlers() {\n for (var eventName in this.events) {\n var handler = this.events[eventName].bind(this);\n this.webSocket[\"on\" + eventName] = handler;\n }\n };\n\n Connection.prototype.uninstallEventHandlers = function uninstallEventHandlers() {\n for (var eventName in this.events) {\n this.webSocket[\"on\" + eventName] = function () {};\n }\n };\n\n return Connection;\n }();\n\n Connection.reopenDelay = 500;\n Connection.prototype.events = {\n message: function message(event) {\n if (!this.isProtocolSupported()) {\n return;\n }\n\n var _JSON$parse = JSON.parse(event.data),\n identifier = _JSON$parse.identifier,\n message = _JSON$parse.message,\n reason = _JSON$parse.reason,\n reconnect = _JSON$parse.reconnect,\n type = _JSON$parse.type;\n\n switch (type) {\n case message_types.welcome:\n this.monitor.recordConnect();\n return this.subscriptions.reload();\n\n case message_types.disconnect:\n logger.log(\"Disconnecting. Reason: \" + reason);\n return this.close({\n allowReconnect: reconnect\n });\n\n case message_types.ping:\n return this.monitor.recordPing();\n\n case message_types.confirmation:\n return this.subscriptions.notify(identifier, \"connected\");\n\n case message_types.rejection:\n return this.subscriptions.reject(identifier);\n\n default:\n return this.subscriptions.notify(identifier, \"received\", message);\n }\n },\n open: function open() {\n logger.log(\"WebSocket onopen event, using '\" + this.getProtocol() + \"' subprotocol\");\n this.disconnected = false;\n\n if (!this.isProtocolSupported()) {\n logger.log(\"Protocol is unsupported. Stopping monitor and disconnecting.\");\n return this.close({\n allowReconnect: false\n });\n }\n },\n close: function close(event) {\n logger.log(\"WebSocket onclose event\");\n\n if (this.disconnected) {\n return;\n }\n\n this.disconnected = true;\n this.monitor.recordDisconnect();\n return this.subscriptions.notifyAll(\"disconnected\", {\n willAttemptReconnect: this.monitor.isRunning()\n });\n },\n error: function error() {\n logger.log(\"WebSocket onerror event\");\n }\n };\n\n var extend = function extend(object, properties) {\n if (properties != null) {\n for (var key in properties) {\n var value = properties[key];\n object[key] = value;\n }\n }\n\n return object;\n };\n\n var Subscription = function () {\n function Subscription(consumer) {\n var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var mixin = arguments[2];\n classCallCheck(this, Subscription);\n this.consumer = consumer;\n this.identifier = JSON.stringify(params);\n extend(this, mixin);\n }\n\n Subscription.prototype.perform = function perform(action) {\n var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n data.action = action;\n return this.send(data);\n };\n\n Subscription.prototype.send = function send(data) {\n return this.consumer.send({\n command: \"message\",\n identifier: this.identifier,\n data: JSON.stringify(data)\n });\n };\n\n Subscription.prototype.unsubscribe = function unsubscribe() {\n return this.consumer.subscriptions.remove(this);\n };\n\n return Subscription;\n }();\n\n var Subscriptions = function () {\n function Subscriptions(consumer) {\n classCallCheck(this, Subscriptions);\n this.consumer = consumer;\n this.subscriptions = [];\n }\n\n Subscriptions.prototype.create = function create(channelName, mixin) {\n var channel = channelName;\n var params = (typeof channel === \"undefined\" ? \"undefined\" : _typeof(channel)) === \"object\" ? channel : {\n channel: channel\n };\n var subscription = new Subscription(this.consumer, params, mixin);\n return this.add(subscription);\n };\n\n Subscriptions.prototype.add = function add(subscription) {\n this.subscriptions.push(subscription);\n this.consumer.ensureActiveConnection();\n this.notify(subscription, \"initialized\");\n this.sendCommand(subscription, \"subscribe\");\n return subscription;\n };\n\n Subscriptions.prototype.remove = function remove(subscription) {\n this.forget(subscription);\n\n if (!this.findAll(subscription.identifier).length) {\n this.sendCommand(subscription, \"unsubscribe\");\n }\n\n return subscription;\n };\n\n Subscriptions.prototype.reject = function reject(identifier) {\n var _this = this;\n\n return this.findAll(identifier).map(function (subscription) {\n _this.forget(subscription);\n\n _this.notify(subscription, \"rejected\");\n\n return subscription;\n });\n };\n\n Subscriptions.prototype.forget = function forget(subscription) {\n this.subscriptions = this.subscriptions.filter(function (s) {\n return s !== subscription;\n });\n return subscription;\n };\n\n Subscriptions.prototype.findAll = function findAll(identifier) {\n return this.subscriptions.filter(function (s) {\n return s.identifier === identifier;\n });\n };\n\n Subscriptions.prototype.reload = function reload() {\n var _this2 = this;\n\n return this.subscriptions.map(function (subscription) {\n return _this2.sendCommand(subscription, \"subscribe\");\n });\n };\n\n Subscriptions.prototype.notifyAll = function notifyAll(callbackName) {\n var _this3 = this;\n\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return this.subscriptions.map(function (subscription) {\n return _this3.notify.apply(_this3, [subscription, callbackName].concat(args));\n });\n };\n\n Subscriptions.prototype.notify = function notify(subscription, callbackName) {\n for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n args[_key2 - 2] = arguments[_key2];\n }\n\n var subscriptions = void 0;\n\n if (typeof subscription === \"string\") {\n subscriptions = this.findAll(subscription);\n } else {\n subscriptions = [subscription];\n }\n\n return subscriptions.map(function (subscription) {\n return typeof subscription[callbackName] === \"function\" ? subscription[callbackName].apply(subscription, args) : undefined;\n });\n };\n\n Subscriptions.prototype.sendCommand = function sendCommand(subscription, command) {\n var identifier = subscription.identifier;\n return this.consumer.send({\n command: command,\n identifier: identifier\n });\n };\n\n return Subscriptions;\n }();\n\n var Consumer = function () {\n function Consumer(url) {\n classCallCheck(this, Consumer);\n this._url = url;\n this.subscriptions = new Subscriptions(this);\n this.connection = new Connection(this);\n }\n\n Consumer.prototype.send = function send(data) {\n return this.connection.send(data);\n };\n\n Consumer.prototype.connect = function connect() {\n return this.connection.open();\n };\n\n Consumer.prototype.disconnect = function disconnect() {\n return this.connection.close({\n allowReconnect: false\n });\n };\n\n Consumer.prototype.ensureActiveConnection = function ensureActiveConnection() {\n if (!this.connection.isActive()) {\n return this.connection.open();\n }\n };\n\n createClass(Consumer, [{\n key: \"url\",\n get: function get$$1() {\n return createWebSocketURL(this._url);\n }\n }]);\n return Consumer;\n }();\n\n function createWebSocketURL(url) {\n if (typeof url === \"function\") {\n url = url();\n }\n\n if (url && !/^wss?:/i.test(url)) {\n var a = document.createElement(\"a\");\n a.href = url;\n a.href = a.href;\n a.protocol = a.protocol.replace(\"http\", \"ws\");\n return a.href;\n } else {\n return url;\n }\n }\n\n function createConsumer() {\n var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getConfig(\"url\") || INTERNAL.default_mount_path;\n return new Consumer(url);\n }\n\n function getConfig(name) {\n var element = document.head.querySelector(\"meta[name='action-cable-\" + name + \"']\");\n\n if (element) {\n return element.getAttribute(\"content\");\n }\n }\n\n exports.Connection = Connection;\n exports.ConnectionMonitor = ConnectionMonitor;\n exports.Consumer = Consumer;\n exports.INTERNAL = INTERNAL;\n exports.Subscription = Subscription;\n exports.Subscriptions = Subscriptions;\n exports.adapters = adapters;\n exports.createWebSocketURL = createWebSocketURL;\n exports.logger = logger;\n exports.createConsumer = createConsumer;\n exports.getConfig = getConfig;\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n});","import { frontendURL } from 'dashboard/helper/URLHelper';\nimport { clearBrowserSessionCookies } from 'dashboard/store/utils/api';\nimport { hasAuthCookie } from './AuthHelper';\nimport { DEFAULT_REDIRECT_URL } from 'dashboard/constants/globals';\nimport { replaceRouteWithReload } from './CommonHelper';\n\nconst validateSSOLoginParams = to => {\n const isLoginRoute = to.name === 'login';\n const { email, sso_auth_token: ssoAuthToken } = to.query || {};\n const hasValidSSOParams = email && ssoAuthToken;\n return isLoginRoute && hasValidSSOParams;\n};\n\nexport const validateRouteAccess = (to, next, chatwootConfig = {}) => {\n // Pages with ignoreSession:true would be rendered\n // even if there is an active session\n // Used for confirmation or password reset pages\n if (to.meta && to.meta.ignoreSession) {\n next();\n return;\n }\n\n if (validateSSOLoginParams(to)) {\n clearBrowserSessionCookies();\n next();\n return;\n }\n\n // Redirect to dashboard if a cookie is present, the cookie\n // cleanup and token validation happens in the application pack.\n if (hasAuthCookie()) {\n replaceRouteWithReload(DEFAULT_REDIRECT_URL);\n return;\n }\n\n // If the URL is an invalid path, redirect to login page\n // Disable navigation to signup page if signups are disabled\n // Signup route has an attribute (requireSignupEnabled) in it's definition\n const isAnInalidSignupNavigation =\n chatwootConfig.signupEnabled !== 'true' &&\n to.meta &&\n to.meta.requireSignupEnabled;\n\n if (!to.name || isAnInalidSignupNavigation) {\n next(frontendURL('login'));\n return;\n }\n\n next();\n};\n\nexport const isOnOnboardingView = route => {\n const { name = '' } = route || {};\n\n if (!name) {\n return false;\n }\n\n return name.includes('onboarding_');\n};\n","import { addInstrumentationHandler, logger } from '@sentry/utils';\nimport { IS_DEBUG_BUILD } from './flags';\nimport { getActiveTransaction } from './utils';\n/**\n * Configures global error listeners\n */\n\nexport function registerErrorInstrumentation() {\n addInstrumentationHandler('error', errorCallback);\n addInstrumentationHandler('unhandledrejection', errorCallback);\n}\n/**\n * If an error or unhandled promise occurs, we mark the active transaction as failed\n */\n\nfunction errorCallback() {\n var activeTransaction = getActiveTransaction();\n\n if (activeTransaction) {\n var status_1 = 'internal_error';\n IS_DEBUG_BUILD && logger.log(\"[Tracing] Transaction: \" + status_1 + \" -> Global error occured\");\n activeTransaction.setStatus(status_1);\n }\n}","import analyticsHelper from '.';\n\nexport default {\n // This function is called when the Vue plugin is installed\n install(Vue) {\n analyticsHelper.init();\n Vue.prototype.$analytics = analyticsHelper;\n // Add a shorthand function for the track method on the helper module\n Vue.prototype.$track = analyticsHelper.track.bind(analyticsHelper);\n },\n};\n","/* eslint-disable @typescript-eslint/no-unsafe-member-access */\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\n/**\n * Helper to decycle json objects\n */\nexport function memoBuilder() {\n var hasWeakSet = typeof WeakSet === 'function';\n var inner = hasWeakSet ? new WeakSet() : [];\n\n function memoize(obj) {\n if (hasWeakSet) {\n if (inner.has(obj)) {\n return true;\n }\n\n inner.add(obj);\n return false;\n } // eslint-disable-next-line @typescript-eslint/prefer-for-of\n\n\n for (var i = 0; i < inner.length; i++) {\n var value = inner[i];\n\n if (value === obj) {\n return true;\n }\n }\n\n inner.push(obj);\n return false;\n }\n\n function unmemoize(obj) {\n if (hasWeakSet) {\n inner.delete(obj);\n } else {\n for (var i = 0; i < inner.length; i++) {\n if (inner[i] === obj) {\n inner.splice(i, 1);\n break;\n }\n }\n }\n }\n\n return [memoize, unmemoize];\n}","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\nimport sla from './sla.json';\nimport inbox from './inbox.json';\nimport general from './general.json';\nimport datePicker from './datePicker.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...sla,\n ...teamsSettings,\n ...whatsappTemplates,\n ...inbox,\n ...general,\n ...datePicker,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import advancedFilters from './advancedFilters.json';\nimport agentBots from './agentBots.json';\nimport agentMgmt from './agentMgmt.json';\nimport attributesMgmt from './attributesMgmt.json';\nimport auditLogs from './auditLogs.json';\nimport automation from './automation.json';\nimport bulkActions from './bulkActions.json';\nimport campaign from './campaign.json';\nimport cannedMgmt from './cannedMgmt.json';\nimport chatlist from './chatlist.json';\nimport contact from './contact.json';\nimport contactFilters from './contactFilters.json';\nimport conversation from './conversation.json';\nimport csatMgmt from './csatMgmt.json';\nimport emoji from './emoji.json';\nimport generalSettings from './generalSettings.json';\nimport helpCenter from './helpCenter.json';\nimport inboxMgmt from './inboxMgmt.json';\nimport integrationApps from './integrationApps.json';\nimport integrations from './integrations.json';\nimport labelsMgmt from './labelsMgmt.json';\nimport login from './login.json';\nimport macros from './macros.json';\nimport report from './report.json';\nimport resetPassword from './resetPassword.json';\nimport search from './search.json';\nimport setNewPassword from './setNewPassword.json';\nimport settings from './settings.json';\nimport signup from './signup.json';\nimport teamsSettings from './teamsSettings.json';\nimport whatsappTemplates from './whatsappTemplates.json';\n\nexport default {\n ...advancedFilters,\n ...agentBots,\n ...agentMgmt,\n ...attributesMgmt,\n ...auditLogs,\n ...automation,\n ...bulkActions,\n ...campaign,\n ...cannedMgmt,\n ...chatlist,\n ...contact,\n ...contactFilters,\n ...conversation,\n ...csatMgmt,\n ...emoji,\n ...generalSettings,\n ...helpCenter,\n ...inboxMgmt,\n ...integrationApps,\n ...integrations,\n ...labelsMgmt,\n ...login,\n ...macros,\n ...report,\n ...resetPassword,\n ...search,\n ...setNewPassword,\n ...settings,\n ...signup,\n ...teamsSettings,\n ...whatsappTemplates,\n};\n","import ar from './locale/ar';\nimport ca from './locale/ca';\nimport cs from './locale/cs';\nimport da from './locale/da';\nimport de from './locale/de';\nimport el from './locale/el';\nimport en from './locale/en';\nimport es from './locale/es';\nimport fa from './locale/fa';\nimport fi from './locale/fi';\nimport fr from './locale/fr';\nimport he from './locale/he';\nimport hi from './locale/hi';\nimport hu from './locale/hu';\nimport id from './locale/id';\nimport it from './locale/it';\nimport ja from './locale/ja';\nimport ko from './locale/ko';\nimport lv from './locale/lv';\nimport ml from './locale/ml';\nimport nl from './locale/nl';\nimport no from './locale/no';\nimport pl from './locale/pl';\nimport pt from './locale/pt';\nimport pt_BR from './locale/pt_BR';\nimport ro from './locale/ro';\nimport ru from './locale/ru';\nimport sk from './locale/sk';\nimport sr from './locale/sr';\nimport sv from './locale/sv';\nimport ta from './locale/ta';\nimport th from './locale/th';\nimport tr from './locale/tr';\nimport uk from './locale/uk';\nimport vi from './locale/vi';\nimport zh_CN from './locale/zh_CN';\nimport zh_TW from './locale/zh_TW';\nimport is from './locale/is';\nimport lt from './locale/lt';\n\nexport default {\n ar,\n ca,\n cs,\n da,\n de,\n el,\n en,\n es,\n fa,\n fi,\n fr,\n he,\n hi,\n hu,\n id,\n it,\n ja,\n ko,\n ml,\n lv,\n nl,\n no,\n pl,\n pt_BR,\n pt,\n ro,\n ru,\n sk,\n sr,\n sv,\n ta,\n th,\n tr,\n uk,\n vi,\n zh_CN,\n zh_TW,\n is,\n lt,\n};\n","import { __read, __spread } from \"tslib\";\nimport { logger } from '@sentry/utils';\nimport { IS_DEBUG_BUILD } from '../../flags';\n/**\n * Express integration\n *\n * Provides an request and error handler for Express framework as well as tracing capabilities\n */\n\nvar Express =\n/** @class */\nfunction () {\n /**\n * @inheritDoc\n */\n function Express(options) {\n if (options === void 0) {\n options = {};\n }\n /**\n * @inheritDoc\n */\n\n\n this.name = Express.id;\n this._router = options.router || options.app;\n this._methods = (Array.isArray(options.methods) ? options.methods : []).concat('use');\n }\n /**\n * @inheritDoc\n */\n\n\n Express.prototype.setupOnce = function () {\n if (!this._router) {\n IS_DEBUG_BUILD && logger.error('ExpressIntegration is missing an Express instance');\n return;\n }\n\n instrumentMiddlewares(this._router, this._methods);\n };\n /**\n * @inheritDoc\n */\n\n\n Express.id = 'Express';\n return Express;\n}();\n\nexport { Express };\n/**\n * Wraps original middleware function in a tracing call, which stores the info about the call as a span,\n * and finishes it once the middleware is done invoking.\n *\n * Express middlewares have 3 various forms, thus we have to take care of all of them:\n * // sync\n * app.use(function (req, res) { ... })\n * // async\n * app.use(function (req, res, next) { ... })\n * // error handler\n * app.use(function (err, req, res, next) { ... })\n *\n * They all internally delegate to the `router[method]` of the given application instance.\n */\n// eslint-disable-next-line @typescript-eslint/ban-types, @typescript-eslint/no-explicit-any\n\nfunction wrap(fn, method) {\n var arity = fn.length;\n\n switch (arity) {\n case 2:\n {\n return function (req, res) {\n var transaction = res.__sentry_transaction;\n\n if (transaction) {\n var span_1 = transaction.startChild({\n description: fn.name,\n op: \"express.middleware.\" + method\n });\n res.once('finish', function () {\n span_1.finish();\n });\n }\n\n return fn.call(this, req, res);\n };\n }\n\n case 3:\n {\n return function (req, res, next) {\n var _a;\n\n var transaction = res.__sentry_transaction;\n var span = (_a = transaction) === null || _a === void 0 ? void 0 : _a.startChild({\n description: fn.name,\n op: \"express.middleware.\" + method\n });\n fn.call(this, req, res, function () {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n var _a;\n\n (_a = span) === null || _a === void 0 ? void 0 : _a.finish();\n next.call.apply(next, __spread([this], args));\n });\n };\n }\n\n case 4:\n {\n return function (err, req, res, next) {\n var _a;\n\n var transaction = res.__sentry_transaction;\n var span = (_a = transaction) === null || _a === void 0 ? void 0 : _a.startChild({\n description: fn.name,\n op: \"express.middleware.\" + method\n });\n fn.call(this, err, req, res, function () {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n var _a;\n\n (_a = span) === null || _a === void 0 ? void 0 : _a.finish();\n next.call.apply(next, __spread([this], args));\n });\n };\n }\n\n default:\n {\n throw new Error(\"Express middleware takes 2-4 arguments. Got: \" + arity);\n }\n }\n}\n/**\n * Takes all the function arguments passed to the original `app` or `router` method, eg. `app.use` or `router.use`\n * and wraps every function, as well as array of functions with a call to our `wrap` method.\n * We have to take care of the arrays as well as iterate over all of the arguments,\n * as `app.use` can accept middlewares in few various forms.\n *\n * app.use([], )\n * app.use([], , ...)\n * app.use([], ...[])\n */\n\n\nfunction wrapMiddlewareArgs(args, method) {\n return args.map(function (arg) {\n if (typeof arg === 'function') {\n return wrap(arg, method);\n }\n\n if (Array.isArray(arg)) {\n return arg.map(function (a) {\n if (typeof a === 'function') {\n return wrap(a, method);\n }\n\n return a;\n });\n }\n\n return arg;\n });\n}\n/**\n * Patches original router to utilize our tracing functionality\n */\n\n\nfunction patchMiddleware(router, method) {\n var originalCallback = router[method];\n\n router[method] = function () {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n return originalCallback.call.apply(originalCallback, __spread([this], wrapMiddlewareArgs(args, method)));\n };\n\n return router;\n}\n/**\n * Patches original router methods\n */\n\n\nfunction instrumentMiddlewares(router, methods) {\n if (methods === void 0) {\n methods = [];\n }\n\n methods.forEach(function (method) {\n return patchMiddleware(router, method);\n });\n}","import { fill, isThenable, loadModule, logger } from '@sentry/utils';\nimport { IS_DEBUG_BUILD } from '../../flags';\n/** Tracing integration for node-postgres package */\n\nvar Postgres =\n/** @class */\nfunction () {\n function Postgres(options) {\n if (options === void 0) {\n options = {};\n }\n /**\n * @inheritDoc\n */\n\n\n this.name = Postgres.id;\n this._usePgNative = !!options.usePgNative;\n }\n /**\n * @inheritDoc\n */\n\n\n Postgres.prototype.setupOnce = function (_, getCurrentHub) {\n var _a;\n\n var pkg = loadModule('pg');\n\n if (!pkg) {\n IS_DEBUG_BUILD && logger.error('Postgres Integration was unable to require `pg` package.');\n return;\n }\n\n if (this._usePgNative && !((_a = pkg.native) === null || _a === void 0 ? void 0 : _a.Client)) {\n IS_DEBUG_BUILD && logger.error(\"Postgres Integration was unable to access 'pg-native' bindings.\");\n return;\n }\n\n var Client = (this._usePgNative ? pkg.native : pkg).Client;\n /**\n * function (query, callback) => void\n * function (query, params, callback) => void\n * function (query) => Promise\n * function (query, params) => Promise\n * function (pg.Cursor) => pg.Cursor\n */\n\n fill(Client.prototype, 'query', function (orig) {\n return function (config, values, callback) {\n var _a, _b, _c;\n\n var scope = getCurrentHub().getScope();\n var parentSpan = (_a = scope) === null || _a === void 0 ? void 0 : _a.getSpan();\n var span = (_b = parentSpan) === null || _b === void 0 ? void 0 : _b.startChild({\n description: typeof config === 'string' ? config : config.text,\n op: 'db'\n });\n\n if (typeof callback === 'function') {\n return orig.call(this, config, values, function (err, result) {\n var _a;\n\n (_a = span) === null || _a === void 0 ? void 0 : _a.finish();\n callback(err, result);\n });\n }\n\n if (typeof values === 'function') {\n return orig.call(this, config, function (err, result) {\n var _a;\n\n (_a = span) === null || _a === void 0 ? void 0 : _a.finish();\n values(err, result);\n });\n }\n\n var rv = typeof values !== 'undefined' ? orig.call(this, config, values) : orig.call(this, config);\n\n if (isThenable(rv)) {\n return rv.then(function (res) {\n var _a;\n\n (_a = span) === null || _a === void 0 ? void 0 : _a.finish();\n return res;\n });\n }\n\n (_c = span) === null || _c === void 0 ? void 0 : _c.finish();\n return rv;\n };\n });\n };\n /**\n * @inheritDoc\n */\n\n\n Postgres.id = 'Postgres';\n return Postgres;\n}();\n\nexport { Postgres };","import { fill, loadModule, logger } from '@sentry/utils';\nimport { IS_DEBUG_BUILD } from '../../flags';\n/** Tracing integration for node-mysql package */\n\nvar Mysql =\n/** @class */\nfunction () {\n function Mysql() {\n /**\n * @inheritDoc\n */\n this.name = Mysql.id;\n }\n /**\n * @inheritDoc\n */\n\n\n Mysql.prototype.setupOnce = function (_, getCurrentHub) {\n var pkg = loadModule('mysql/lib/Connection.js');\n\n if (!pkg) {\n IS_DEBUG_BUILD && logger.error('Mysql Integration was unable to require `mysql` package.');\n return;\n } // The original function will have one of these signatures:\n // function (callback) => void\n // function (options, callback) => void\n // function (options, values, callback) => void\n\n\n fill(pkg, 'createQuery', function (orig) {\n return function (options, values, callback) {\n var _a, _b;\n\n var scope = getCurrentHub().getScope();\n var parentSpan = (_a = scope) === null || _a === void 0 ? void 0 : _a.getSpan();\n var span = (_b = parentSpan) === null || _b === void 0 ? void 0 : _b.startChild({\n description: typeof options === 'string' ? options : options.sql,\n op: 'db'\n });\n\n if (typeof callback === 'function') {\n return orig.call(this, options, values, function (err, result, fields) {\n var _a;\n\n (_a = span) === null || _a === void 0 ? void 0 : _a.finish();\n callback(err, result, fields);\n });\n }\n\n if (typeof values === 'function') {\n return orig.call(this, options, function (err, result, fields) {\n var _a;\n\n (_a = span) === null || _a === void 0 ? void 0 : _a.finish();\n values(err, result, fields);\n });\n }\n\n return orig.call(this, options, values, callback);\n };\n });\n };\n /**\n * @inheritDoc\n */\n\n\n Mysql.id = 'Mysql';\n return Mysql;\n}();\n\nexport { Mysql };","import { __read, __spread } from \"tslib\";\nimport { fill, isThenable, loadModule, logger } from '@sentry/utils';\nimport { IS_DEBUG_BUILD } from '../../flags';\nvar OPERATIONS = ['aggregate', 'bulkWrite', 'countDocuments', 'createIndex', 'createIndexes', 'deleteMany', 'deleteOne', 'distinct', 'drop', 'dropIndex', 'dropIndexes', 'estimatedDocumentCount', 'find', 'findOne', 'findOneAndDelete', 'findOneAndReplace', 'findOneAndUpdate', 'indexes', 'indexExists', 'indexInformation', 'initializeOrderedBulkOp', 'insertMany', 'insertOne', 'isCapped', 'mapReduce', 'options', 'parallelCollectionScan', 'rename', 'replaceOne', 'stats', 'updateMany', 'updateOne']; // All of the operations above take `options` and `callback` as their final parameters, but some of them\n// take additional parameters as well. For those operations, this is a map of\n// { : [] }, as a way to know what to call the operation's\n// positional arguments when we add them to the span's `data` object later\n\nvar OPERATION_SIGNATURES = {\n // aggregate intentionally not included because `pipeline` arguments are too complex to serialize well\n // see https://github.com/getsentry/sentry-javascript/pull/3102\n bulkWrite: ['operations'],\n countDocuments: ['query'],\n createIndex: ['fieldOrSpec'],\n createIndexes: ['indexSpecs'],\n deleteMany: ['filter'],\n deleteOne: ['filter'],\n distinct: ['key', 'query'],\n dropIndex: ['indexName'],\n find: ['query'],\n findOne: ['query'],\n findOneAndDelete: ['filter'],\n findOneAndReplace: ['filter', 'replacement'],\n findOneAndUpdate: ['filter', 'update'],\n indexExists: ['indexes'],\n insertMany: ['docs'],\n insertOne: ['doc'],\n mapReduce: ['map', 'reduce'],\n rename: ['newName'],\n replaceOne: ['filter', 'doc'],\n updateMany: ['filter', 'update'],\n updateOne: ['filter', 'update']\n};\n/** Tracing integration for mongo package */\n\nvar Mongo =\n/** @class */\nfunction () {\n /**\n * @inheritDoc\n */\n function Mongo(options) {\n if (options === void 0) {\n options = {};\n }\n /**\n * @inheritDoc\n */\n\n\n this.name = Mongo.id;\n this._operations = Array.isArray(options.operations) ? options.operations : OPERATIONS;\n this._describeOperations = 'describeOperations' in options ? options.describeOperations : true;\n this._useMongoose = !!options.useMongoose;\n }\n /**\n * @inheritDoc\n */\n\n\n Mongo.prototype.setupOnce = function (_, getCurrentHub) {\n var moduleName = this._useMongoose ? 'mongoose' : 'mongodb';\n var pkg = loadModule(moduleName);\n\n if (!pkg) {\n IS_DEBUG_BUILD && logger.error(\"Mongo Integration was unable to require `\" + moduleName + \"` package.\");\n return;\n }\n\n this._instrumentOperations(pkg.Collection, this._operations, getCurrentHub);\n };\n /**\n * Patches original collection methods\n */\n\n\n Mongo.prototype._instrumentOperations = function (collection, operations, getCurrentHub) {\n var _this = this;\n\n operations.forEach(function (operation) {\n return _this._patchOperation(collection, operation, getCurrentHub);\n });\n };\n /**\n * Patches original collection to utilize our tracing functionality\n */\n\n\n Mongo.prototype._patchOperation = function (collection, operation, getCurrentHub) {\n if (!(operation in collection.prototype)) return;\n\n var getSpanContext = this._getSpanContextFromOperationArguments.bind(this);\n\n fill(collection.prototype, operation, function (orig) {\n return function () {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n var _a, _b, _c, _d;\n\n var lastArg = args[args.length - 1];\n var scope = getCurrentHub().getScope();\n var parentSpan = (_a = scope) === null || _a === void 0 ? void 0 : _a.getSpan(); // Check if the operation was passed a callback. (mapReduce requires a different check, as\n // its (non-callback) arguments can also be functions.)\n\n if (typeof lastArg !== 'function' || operation === 'mapReduce' && args.length === 2) {\n var span_1 = (_b = parentSpan) === null || _b === void 0 ? void 0 : _b.startChild(getSpanContext(this, operation, args));\n var maybePromise = orig.call.apply(orig, __spread([this], args));\n\n if (isThenable(maybePromise)) {\n return maybePromise.then(function (res) {\n var _a;\n\n (_a = span_1) === null || _a === void 0 ? void 0 : _a.finish();\n return res;\n });\n } else {\n (_c = span_1) === null || _c === void 0 ? void 0 : _c.finish();\n return maybePromise;\n }\n }\n\n var span = (_d = parentSpan) === null || _d === void 0 ? void 0 : _d.startChild(getSpanContext(this, operation, args.slice(0, -1)));\n return orig.call.apply(orig, __spread([this], args.slice(0, -1), [function (err, result) {\n var _a;\n\n (_a = span) === null || _a === void 0 ? void 0 : _a.finish();\n lastArg(err, result);\n }]));\n };\n });\n };\n /**\n * Form a SpanContext based on the user input to a given operation.\n */\n\n\n Mongo.prototype._getSpanContextFromOperationArguments = function (collection, operation, args) {\n var data = {\n collectionName: collection.collectionName,\n dbName: collection.dbName,\n namespace: collection.namespace\n };\n var spanContext = {\n op: 'db',\n description: operation,\n data: data\n }; // If the operation takes no arguments besides `options` and `callback`, or if argument\n // collection is disabled for this operation, just return early.\n\n var signature = OPERATION_SIGNATURES[operation];\n var shouldDescribe = Array.isArray(this._describeOperations) ? this._describeOperations.includes(operation) : this._describeOperations;\n\n if (!signature || !shouldDescribe) {\n return spanContext;\n }\n\n try {\n // Special case for `mapReduce`, as the only one accepting functions as arguments.\n if (operation === 'mapReduce') {\n var _a = __read(args, 2),\n map = _a[0],\n reduce = _a[1];\n\n data[signature[0]] = typeof map === 'string' ? map : map.name || '';\n data[signature[1]] = typeof reduce === 'string' ? reduce : reduce.name || '';\n } else {\n for (var i = 0; i < signature.length; i++) {\n data[signature[i]] = JSON.stringify(args[i]);\n }\n }\n } catch (_oO) {// no-empty\n }\n\n return spanContext;\n };\n /**\n * @inheritDoc\n */\n\n\n Mongo.id = 'Mongo';\n return Mongo;\n}();\n\nexport { Mongo };","import { getGlobalObject, logger } from '@sentry/utils';\nimport { FINISH_REASON_TAG, IDLE_TRANSACTION_FINISH_REASONS } from '../constants';\nimport { IS_DEBUG_BUILD } from '../flags';\nimport { getActiveTransaction } from '../utils';\nvar global = getGlobalObject();\n/**\n * Add a listener that cancels and finishes a transaction when the global\n * document is hidden.\n */\n\nexport function registerBackgroundTabDetection() {\n if (global && global.document) {\n global.document.addEventListener('visibilitychange', function () {\n var activeTransaction = getActiveTransaction();\n\n if (global.document.hidden && activeTransaction) {\n var statusType = 'cancelled';\n IS_DEBUG_BUILD && logger.log(\"[Tracing] Transaction: \" + statusType + \" -> since tab moved to the background, op: \" + activeTransaction.op); // We should not set status if it is already set, this prevent important statuses like\n // error or data loss from being overwritten on transaction.\n\n if (!activeTransaction.status) {\n activeTransaction.setStatus(statusType);\n }\n\n activeTransaction.setTag('visibilitychange', 'document.hidden');\n activeTransaction.setTag(FINISH_REASON_TAG, IDLE_TRANSACTION_FINISH_REASONS[2]);\n activeTransaction.finish();\n }\n });\n } else {\n IS_DEBUG_BUILD && logger.warn('[Tracing] Could not set up background tab detection due to lack of global document');\n }\n}","/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport var bindReporter = function bindReporter(callback, metric, reportAllChanges) {\n var prevValue;\n return function (forceReport) {\n if (metric.value >= 0) {\n if (forceReport || reportAllChanges) {\n metric.delta = metric.value - (prevValue || 0); // Report the metric if there's a non-zero delta or if no previous\n // value exists (which can happen in the case of the document becoming\n // hidden when the metric value is 0).\n // See: https://github.com/GoogleChrome/web-vitals/issues/14\n\n if (metric.delta || prevValue === undefined) {\n prevValue = metric.value;\n callback(metric);\n }\n }\n }\n };\n};","/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { generateUniqueID } from './generateUniqueID';\nexport var initMetric = function initMetric(name, value) {\n return {\n name: name,\n value: value !== null && value !== void 0 ? value : -1,\n delta: 0,\n entries: [],\n id: generateUniqueID()\n };\n};","/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Performantly generate a unique, 30-char string by combining a version\n * number, the current timestamp with a 13-digit number integer.\n * @return {string}\n */\nexport var generateUniqueID = function generateUniqueID() {\n return \"v2-\" + Date.now() + \"-\" + (Math.floor(Math.random() * (9e12 - 1)) + 1e12);\n};","/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Takes a performance entry type and a callback function, and creates a\n * `PerformanceObserver` instance that will observe the specified entry type\n * with buffering enabled and call the callback _for each entry_.\n *\n * This function also feature-detects entry support and wraps the logic in a\n * try/catch to avoid errors in unsupporting browsers.\n */\nexport var observe = function observe(type, callback) {\n try {\n if (PerformanceObserver.supportedEntryTypes.includes(type)) {\n // More extensive feature detect needed for Firefox due to:\n // https://github.com/GoogleChrome/web-vitals/issues/142\n if (type === 'first-input' && !('PerformanceEventTiming' in self)) {\n return;\n }\n\n var po = new PerformanceObserver(function (l) {\n return l.getEntries().map(callback);\n });\n po.observe({\n type: type,\n buffered: true\n });\n return po;\n }\n } catch (e) {// Do nothing.\n }\n\n return;\n};","/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { getGlobalObject } from '@sentry/utils';\nexport var onHidden = function onHidden(cb, once) {\n var onHiddenOrPageHide = function onHiddenOrPageHide(event) {\n if (event.type === 'pagehide' || getGlobalObject().document.visibilityState === 'hidden') {\n cb(event);\n\n if (once) {\n removeEventListener('visibilitychange', onHiddenOrPageHide, true);\n removeEventListener('pagehide', onHiddenOrPageHide, true);\n }\n }\n };\n\n addEventListener('visibilitychange', onHiddenOrPageHide, true); // Some browsers have buggy implementations of visibilitychange,\n // so we use pagehide in addition, just to be safe.\n\n addEventListener('pagehide', onHiddenOrPageHide, true);\n};","/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { getGlobalObject } from '@sentry/utils';\nimport { onHidden } from './onHidden';\nvar firstHiddenTime = -1;\n\nvar initHiddenTime = function initHiddenTime() {\n return getGlobalObject().document.visibilityState === 'hidden' ? 0 : Infinity;\n};\n\nvar trackChanges = function trackChanges() {\n // Update the time if/when the document becomes hidden.\n onHidden(function (_a) {\n var timeStamp = _a.timeStamp;\n firstHiddenTime = timeStamp;\n }, true);\n};\n\nexport var getVisibilityWatcher = function getVisibilityWatcher() {\n if (firstHiddenTime < 0) {\n // If the document is hidden when this code runs, assume it was hidden\n // since navigation start. This isn't a perfect heuristic, but it's the\n // best we can do until an API is available to support querying past\n // visibilityState.\n firstHiddenTime = initHiddenTime();\n trackChanges();\n }\n\n return {\n get firstHiddenTime() {\n return firstHiddenTime;\n }\n\n };\n};","/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { bindReporter } from './lib/bindReporter';\nimport { getVisibilityWatcher } from './lib/getVisibilityWatcher';\nimport { initMetric } from './lib/initMetric';\nimport { observe } from './lib/observe';\nimport { onHidden } from './lib/onHidden';\nvar reportedMetricIDs = {};\nexport var getLCP = function getLCP(onReport, reportAllChanges) {\n var visibilityWatcher = getVisibilityWatcher();\n var metric = initMetric('LCP');\n var report;\n\n var entryHandler = function entryHandler(entry) {\n // The startTime attribute returns the value of the renderTime if it is not 0,\n // and the value of the loadTime otherwise.\n var value = entry.startTime; // If the page was hidden prior to paint time of the entry,\n // ignore it and mark the metric as final, otherwise add the entry.\n\n if (value < visibilityWatcher.firstHiddenTime) {\n metric.value = value;\n metric.entries.push(entry);\n }\n\n if (report) {\n report();\n }\n };\n\n var po = observe('largest-contentful-paint', entryHandler);\n\n if (po) {\n report = bindReporter(onReport, metric, reportAllChanges);\n\n var stopListening_1 = function stopListening_1() {\n if (!reportedMetricIDs[metric.id]) {\n po.takeRecords().map(entryHandler);\n po.disconnect();\n reportedMetricIDs[metric.id] = true;\n report(true);\n }\n }; // Stop listening after input. Note: while scrolling is an input that\n // stop LCP observation, it's unreliable since it can be programmatically\n // generated. See: https://github.com/GoogleChrome/web-vitals/issues/75\n\n\n ['keydown', 'click'].forEach(function (type) {\n addEventListener(type, stopListening_1, {\n once: true,\n capture: true\n });\n });\n onHidden(stopListening_1, true);\n }\n};","import { __assign, __rest } from \"tslib\";\nimport { browserPerformanceTimeOrigin, getGlobalObject, htmlTreeAsString, isNodeEnv, logger } from '@sentry/utils';\nimport { IS_DEBUG_BUILD } from '../flags';\nimport { msToSec } from '../utils';\nimport { getCLS } from './web-vitals/getCLS';\nimport { getFID } from './web-vitals/getFID';\nimport { getLCP } from './web-vitals/getLCP';\nimport { getVisibilityWatcher } from './web-vitals/lib/getVisibilityWatcher';\nvar global = getGlobalObject();\n/** Class tracking metrics */\n\nvar MetricsInstrumentation =\n/** @class */\nfunction () {\n function MetricsInstrumentation(_reportAllChanges) {\n if (_reportAllChanges === void 0) {\n _reportAllChanges = false;\n }\n\n this._reportAllChanges = _reportAllChanges;\n this._measurements = {};\n this._performanceCursor = 0;\n\n if (!isNodeEnv() && global && global.performance && global.document) {\n if (global.performance.mark) {\n global.performance.mark('sentry-tracing-init');\n }\n\n this._trackCLS();\n\n this._trackLCP();\n\n this._trackFID();\n }\n }\n /** Add performance related spans to a transaction */\n\n\n MetricsInstrumentation.prototype.addPerformanceEntries = function (transaction) {\n var _this = this;\n\n if (!global || !global.performance || !global.performance.getEntries || !browserPerformanceTimeOrigin) {\n // Gatekeeper if performance API not available\n return;\n }\n\n IS_DEBUG_BUILD && logger.log('[Tracing] Adding & adjusting spans using Performance API');\n var timeOrigin = msToSec(browserPerformanceTimeOrigin);\n var responseStartTimestamp;\n var requestStartTimestamp;\n global.performance.getEntries().slice(this._performanceCursor).forEach(function (entry) {\n var startTime = msToSec(entry.startTime);\n var duration = msToSec(entry.duration);\n\n if (transaction.op === 'navigation' && timeOrigin + startTime < transaction.startTimestamp) {\n return;\n }\n\n switch (entry.entryType) {\n case 'navigation':\n {\n addNavigationSpans(transaction, entry, timeOrigin);\n responseStartTimestamp = timeOrigin + msToSec(entry.responseStart);\n requestStartTimestamp = timeOrigin + msToSec(entry.requestStart);\n break;\n }\n\n case 'mark':\n case 'paint':\n case 'measure':\n {\n var startTimestamp = addMeasureSpans(transaction, entry, startTime, duration, timeOrigin); // capture web vitals\n\n var firstHidden = getVisibilityWatcher(); // Only report if the page wasn't hidden prior to the web vital.\n\n var shouldRecord = entry.startTime < firstHidden.firstHiddenTime;\n\n if (entry.name === 'first-paint' && shouldRecord) {\n IS_DEBUG_BUILD && logger.log('[Measurements] Adding FP');\n _this._measurements['fp'] = {\n value: entry.startTime\n };\n _this._measurements['mark.fp'] = {\n value: startTimestamp\n };\n }\n\n if (entry.name === 'first-contentful-paint' && shouldRecord) {\n IS_DEBUG_BUILD && logger.log('[Measurements] Adding FCP');\n _this._measurements['fcp'] = {\n value: entry.startTime\n };\n _this._measurements['mark.fcp'] = {\n value: startTimestamp\n };\n }\n\n break;\n }\n\n case 'resource':\n {\n var resourceName = entry.name.replace(global.location.origin, '');\n addResourceSpans(transaction, entry, resourceName, startTime, duration, timeOrigin);\n break;\n }\n\n default: // Ignore other entry types.\n\n }\n });\n this._performanceCursor = Math.max(performance.getEntries().length - 1, 0);\n\n this._trackNavigator(transaction); // Measurements are only available for pageload transactions\n\n\n if (transaction.op === 'pageload') {\n // normalize applicable web vital values to be relative to transaction.startTimestamp\n var timeOrigin_1 = msToSec(browserPerformanceTimeOrigin); // Generate TTFB (Time to First Byte), which measured as the time between the beginning of the transaction and the\n // start of the response in milliseconds\n\n if (typeof responseStartTimestamp === 'number') {\n IS_DEBUG_BUILD && logger.log('[Measurements] Adding TTFB');\n this._measurements['ttfb'] = {\n value: (responseStartTimestamp - transaction.startTimestamp) * 1000\n };\n\n if (typeof requestStartTimestamp === 'number' && requestStartTimestamp <= responseStartTimestamp) {\n // Capture the time spent making the request and receiving the first byte of the response.\n // This is the time between the start of the request and the start of the response in milliseconds.\n this._measurements['ttfb.requestTime'] = {\n value: (responseStartTimestamp - requestStartTimestamp) * 1000\n };\n }\n }\n\n ['fcp', 'fp', 'lcp'].forEach(function (name) {\n if (!_this._measurements[name] || timeOrigin_1 >= transaction.startTimestamp) {\n return;\n } // The web vitals, fcp, fp, lcp, and ttfb, all measure relative to timeOrigin.\n // Unfortunately, timeOrigin is not captured within the transaction span data, so these web vitals will need\n // to be adjusted to be relative to transaction.startTimestamp.\n\n\n var oldValue = _this._measurements[name].value;\n var measurementTimestamp = timeOrigin_1 + msToSec(oldValue); // normalizedValue should be in milliseconds\n\n var normalizedValue = Math.abs((measurementTimestamp - transaction.startTimestamp) * 1000);\n var delta = normalizedValue - oldValue;\n IS_DEBUG_BUILD && logger.log(\"[Measurements] Normalized \" + name + \" from \" + oldValue + \" to \" + normalizedValue + \" (\" + delta + \")\");\n _this._measurements[name].value = normalizedValue;\n });\n\n if (this._measurements['mark.fid'] && this._measurements['fid']) {\n // create span for FID\n _startChild(transaction, {\n description: 'first input delay',\n endTimestamp: this._measurements['mark.fid'].value + msToSec(this._measurements['fid'].value),\n op: 'web.vitals',\n startTimestamp: this._measurements['mark.fid'].value\n });\n } // If FCP is not recorded we should not record the cls value\n // according to the new definition of CLS.\n\n\n if (!('fcp' in this._measurements)) {\n delete this._measurements.cls;\n }\n\n transaction.setMeasurements(this._measurements);\n tagMetricInfo(transaction, this._lcpEntry, this._clsEntry);\n transaction.setTag('sentry_reportAllChanges', this._reportAllChanges);\n }\n };\n /**\n * Capture the information of the user agent.\n */\n\n\n MetricsInstrumentation.prototype._trackNavigator = function (transaction) {\n var navigator = global.navigator;\n\n if (!navigator) {\n return;\n } // track network connectivity\n\n\n var connection = navigator.connection;\n\n if (connection) {\n if (connection.effectiveType) {\n transaction.setTag('effectiveConnectionType', connection.effectiveType);\n }\n\n if (connection.type) {\n transaction.setTag('connectionType', connection.type);\n }\n\n if (isMeasurementValue(connection.rtt)) {\n this._measurements['connection.rtt'] = {\n value: connection.rtt\n };\n }\n\n if (isMeasurementValue(connection.downlink)) {\n this._measurements['connection.downlink'] = {\n value: connection.downlink\n };\n }\n }\n\n if (isMeasurementValue(navigator.deviceMemory)) {\n transaction.setTag('deviceMemory', String(navigator.deviceMemory));\n }\n\n if (isMeasurementValue(navigator.hardwareConcurrency)) {\n transaction.setTag('hardwareConcurrency', String(navigator.hardwareConcurrency));\n }\n };\n /** Starts tracking the Cumulative Layout Shift on the current page. */\n\n\n MetricsInstrumentation.prototype._trackCLS = function () {\n var _this = this; // See:\n // https://web.dev/evolving-cls/\n // https://web.dev/cls-web-tooling/\n\n\n getCLS(function (metric) {\n var entry = metric.entries.pop();\n\n if (!entry) {\n return;\n }\n\n IS_DEBUG_BUILD && logger.log('[Measurements] Adding CLS');\n _this._measurements['cls'] = {\n value: metric.value\n };\n _this._clsEntry = entry;\n });\n };\n /** Starts tracking the Largest Contentful Paint on the current page. */\n\n\n MetricsInstrumentation.prototype._trackLCP = function () {\n var _this = this;\n\n getLCP(function (metric) {\n var entry = metric.entries.pop();\n\n if (!entry) {\n return;\n }\n\n var timeOrigin = msToSec(browserPerformanceTimeOrigin);\n var startTime = msToSec(entry.startTime);\n IS_DEBUG_BUILD && logger.log('[Measurements] Adding LCP');\n _this._measurements['lcp'] = {\n value: metric.value\n };\n _this._measurements['mark.lcp'] = {\n value: timeOrigin + startTime\n };\n _this._lcpEntry = entry;\n }, this._reportAllChanges);\n };\n /** Starts tracking the First Input Delay on the current page. */\n\n\n MetricsInstrumentation.prototype._trackFID = function () {\n var _this = this;\n\n getFID(function (metric) {\n var entry = metric.entries.pop();\n\n if (!entry) {\n return;\n }\n\n var timeOrigin = msToSec(browserPerformanceTimeOrigin);\n var startTime = msToSec(entry.startTime);\n IS_DEBUG_BUILD && logger.log('[Measurements] Adding FID');\n _this._measurements['fid'] = {\n value: metric.value\n };\n _this._measurements['mark.fid'] = {\n value: timeOrigin + startTime\n };\n });\n };\n\n return MetricsInstrumentation;\n}();\n\nexport { MetricsInstrumentation };\n/** Instrument navigation entries */\n\nfunction addNavigationSpans(transaction, entry, timeOrigin) {\n ['unloadEvent', 'redirect', 'domContentLoadedEvent', 'loadEvent', 'connect'].forEach(function (event) {\n addPerformanceNavigationTiming(transaction, entry, event, timeOrigin);\n });\n addPerformanceNavigationTiming(transaction, entry, 'secureConnection', timeOrigin, 'TLS/SSL', 'connectEnd');\n addPerformanceNavigationTiming(transaction, entry, 'fetch', timeOrigin, 'cache', 'domainLookupStart');\n addPerformanceNavigationTiming(transaction, entry, 'domainLookup', timeOrigin, 'DNS');\n addRequest(transaction, entry, timeOrigin);\n}\n/** Create measure related spans */\n\n\nfunction addMeasureSpans(transaction, entry, startTime, duration, timeOrigin) {\n var measureStartTimestamp = timeOrigin + startTime;\n var measureEndTimestamp = measureStartTimestamp + duration;\n\n _startChild(transaction, {\n description: entry.name,\n endTimestamp: measureEndTimestamp,\n op: entry.entryType,\n startTimestamp: measureStartTimestamp\n });\n\n return measureStartTimestamp;\n}\n/** Create resource-related spans */\n\n\nexport function addResourceSpans(transaction, entry, resourceName, startTime, duration, timeOrigin) {\n // we already instrument based on fetch and xhr, so we don't need to\n // duplicate spans here.\n if (entry.initiatorType === 'xmlhttprequest' || entry.initiatorType === 'fetch') {\n return;\n }\n\n var data = {};\n\n if ('transferSize' in entry) {\n data['Transfer Size'] = entry.transferSize;\n }\n\n if ('encodedBodySize' in entry) {\n data['Encoded Body Size'] = entry.encodedBodySize;\n }\n\n if ('decodedBodySize' in entry) {\n data['Decoded Body Size'] = entry.decodedBodySize;\n }\n\n var startTimestamp = timeOrigin + startTime;\n var endTimestamp = startTimestamp + duration;\n\n _startChild(transaction, {\n description: resourceName,\n endTimestamp: endTimestamp,\n op: entry.initiatorType ? \"resource.\" + entry.initiatorType : 'resource',\n startTimestamp: startTimestamp,\n data: data\n });\n}\n/** Create performance navigation related spans */\n\nfunction addPerformanceNavigationTiming(transaction, entry, event, timeOrigin, description, eventEnd) {\n var end = eventEnd ? entry[eventEnd] : entry[event + \"End\"];\n var start = entry[event + \"Start\"];\n\n if (!start || !end) {\n return;\n }\n\n _startChild(transaction, {\n op: 'browser',\n description: description !== null && description !== void 0 ? description : event,\n startTimestamp: timeOrigin + msToSec(start),\n endTimestamp: timeOrigin + msToSec(end)\n });\n}\n/** Create request and response related spans */\n\n\nfunction addRequest(transaction, entry, timeOrigin) {\n _startChild(transaction, {\n op: 'browser',\n description: 'request',\n startTimestamp: timeOrigin + msToSec(entry.requestStart),\n endTimestamp: timeOrigin + msToSec(entry.responseEnd)\n });\n\n _startChild(transaction, {\n op: 'browser',\n description: 'response',\n startTimestamp: timeOrigin + msToSec(entry.responseStart),\n endTimestamp: timeOrigin + msToSec(entry.responseEnd)\n });\n}\n/**\n * Helper function to start child on transactions. This function will make sure that the transaction will\n * use the start timestamp of the created child span if it is earlier than the transactions actual\n * start timestamp.\n */\n\n\nexport function _startChild(transaction, _a) {\n var startTimestamp = _a.startTimestamp,\n ctx = __rest(_a, [\"startTimestamp\"]);\n\n if (startTimestamp && transaction.startTimestamp > startTimestamp) {\n transaction.startTimestamp = startTimestamp;\n }\n\n return transaction.startChild(__assign({\n startTimestamp: startTimestamp\n }, ctx));\n}\n/**\n * Checks if a given value is a valid measurement value.\n */\n\nfunction isMeasurementValue(value) {\n return typeof value === 'number' && isFinite(value);\n}\n/** Add LCP / CLS data to transaction to allow debugging */\n\n\nfunction tagMetricInfo(transaction, lcpEntry, clsEntry) {\n if (lcpEntry) {\n IS_DEBUG_BUILD && logger.log('[Measurements] Adding LCP Data'); // Capture Properties of the LCP element that contributes to the LCP.\n\n if (lcpEntry.element) {\n transaction.setTag('lcp.element', htmlTreeAsString(lcpEntry.element));\n }\n\n if (lcpEntry.id) {\n transaction.setTag('lcp.id', lcpEntry.id);\n }\n\n if (lcpEntry.url) {\n // Trim URL to the first 200 characters.\n transaction.setTag('lcp.url', lcpEntry.url.trim().slice(0, 200));\n }\n\n transaction.setTag('lcp.size', lcpEntry.size);\n } // See: https://developer.mozilla.org/en-US/docs/Web/API/LayoutShift\n\n\n if (clsEntry && clsEntry.sources) {\n IS_DEBUG_BUILD && logger.log('[Measurements] Adding CLS Data');\n clsEntry.sources.forEach(function (source, index) {\n return transaction.setTag(\"cls.source.\" + (index + 1), htmlTreeAsString(source.node));\n });\n }\n}","/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { bindReporter } from './lib/bindReporter';\nimport { initMetric } from './lib/initMetric';\nimport { observe } from './lib/observe';\nimport { onHidden } from './lib/onHidden';\nexport var getCLS = function getCLS(onReport, reportAllChanges) {\n var metric = initMetric('CLS', 0);\n var report;\n var sessionValue = 0;\n var sessionEntries = [];\n\n var entryHandler = function entryHandler(entry) {\n // Only count layout shifts without recent user input.\n // TODO: Figure out why entry can be undefined\n if (entry && !entry.hadRecentInput) {\n var firstSessionEntry = sessionEntries[0];\n var lastSessionEntry = sessionEntries[sessionEntries.length - 1]; // If the entry occurred less than 1 second after the previous entry and\n // less than 5 seconds after the first entry in the session, include the\n // entry in the current session. Otherwise, start a new session.\n\n if (sessionValue && sessionEntries.length !== 0 && entry.startTime - lastSessionEntry.startTime < 1000 && entry.startTime - firstSessionEntry.startTime < 5000) {\n sessionValue += entry.value;\n sessionEntries.push(entry);\n } else {\n sessionValue = entry.value;\n sessionEntries = [entry];\n } // If the current session value is larger than the current CLS value,\n // update CLS and the entries contributing to it.\n\n\n if (sessionValue > metric.value) {\n metric.value = sessionValue;\n metric.entries = sessionEntries;\n\n if (report) {\n report();\n }\n }\n }\n };\n\n var po = observe('layout-shift', entryHandler);\n\n if (po) {\n report = bindReporter(onReport, metric, reportAllChanges);\n onHidden(function () {\n po.takeRecords().map(entryHandler);\n report(true);\n });\n }\n};","/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { bindReporter } from './lib/bindReporter';\nimport { getVisibilityWatcher } from './lib/getVisibilityWatcher';\nimport { initMetric } from './lib/initMetric';\nimport { observe } from './lib/observe';\nimport { onHidden } from './lib/onHidden';\nexport var getFID = function getFID(onReport, reportAllChanges) {\n var visibilityWatcher = getVisibilityWatcher();\n var metric = initMetric('FID');\n var report;\n\n var entryHandler = function entryHandler(entry) {\n // Only report if the page wasn't hidden prior to the first input.\n if (report && entry.startTime < visibilityWatcher.firstHiddenTime) {\n metric.value = entry.processingStart - entry.startTime;\n metric.entries.push(entry);\n report(true);\n }\n };\n\n var po = observe('first-input', entryHandler);\n\n if (po) {\n report = bindReporter(onReport, metric, reportAllChanges);\n onHidden(function () {\n po.takeRecords().map(entryHandler);\n po.disconnect();\n }, true);\n }\n};","import { __assign, __read, __spread } from \"tslib\";\nimport { addInstrumentationHandler, isInstanceOf, isMatchingPattern } from '@sentry/utils';\nimport { getActiveTransaction, hasTracingEnabled } from '../utils';\nexport var DEFAULT_TRACING_ORIGINS = ['localhost', /^\\//];\nexport var defaultRequestInstrumentationOptions = {\n traceFetch: true,\n traceXHR: true,\n tracingOrigins: DEFAULT_TRACING_ORIGINS\n};\n/** Registers span creators for xhr and fetch requests */\n\nexport function instrumentOutgoingRequests(_options) {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n var _a = __assign(__assign({}, defaultRequestInstrumentationOptions), _options),\n traceFetch = _a.traceFetch,\n traceXHR = _a.traceXHR,\n tracingOrigins = _a.tracingOrigins,\n shouldCreateSpanForRequest = _a.shouldCreateSpanForRequest; // We should cache url -> decision so that we don't have to compute\n // regexp everytime we create a request.\n\n\n var urlMap = {};\n\n var defaultShouldCreateSpan = function defaultShouldCreateSpan(url) {\n if (urlMap[url]) {\n return urlMap[url];\n }\n\n var origins = tracingOrigins;\n urlMap[url] = origins.some(function (origin) {\n return isMatchingPattern(url, origin);\n }) && !isMatchingPattern(url, 'sentry_key');\n return urlMap[url];\n }; // We want that our users don't have to re-implement shouldCreateSpanForRequest themselves\n // That's why we filter out already unwanted Spans from tracingOrigins\n\n\n var shouldCreateSpan = defaultShouldCreateSpan;\n\n if (typeof shouldCreateSpanForRequest === 'function') {\n shouldCreateSpan = function shouldCreateSpan(url) {\n return defaultShouldCreateSpan(url) && shouldCreateSpanForRequest(url);\n };\n }\n\n var spans = {};\n\n if (traceFetch) {\n addInstrumentationHandler('fetch', function (handlerData) {\n fetchCallback(handlerData, shouldCreateSpan, spans);\n });\n }\n\n if (traceXHR) {\n addInstrumentationHandler('xhr', function (handlerData) {\n xhrCallback(handlerData, shouldCreateSpan, spans);\n });\n }\n}\n/**\n * Create and track fetch request spans\n */\n\nexport function fetchCallback(handlerData, shouldCreateSpan, spans) {\n if (!hasTracingEnabled() || !(handlerData.fetchData && shouldCreateSpan(handlerData.fetchData.url))) {\n return;\n }\n\n if (handlerData.endTimestamp) {\n var spanId = handlerData.fetchData.__span;\n if (!spanId) return;\n var span = spans[spanId];\n\n if (span) {\n if (handlerData.response) {\n // TODO (kmclb) remove this once types PR goes through\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n span.setHttpStatus(handlerData.response.status);\n } else if (handlerData.error) {\n span.setStatus('internal_error');\n }\n\n span.finish(); // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n\n delete spans[spanId];\n }\n\n return;\n }\n\n var activeTransaction = getActiveTransaction();\n\n if (activeTransaction) {\n var span = activeTransaction.startChild({\n data: __assign(__assign({}, handlerData.fetchData), {\n type: 'fetch'\n }),\n description: handlerData.fetchData.method + \" \" + handlerData.fetchData.url,\n op: 'http.client'\n });\n handlerData.fetchData.__span = span.spanId;\n spans[span.spanId] = span;\n var request = handlerData.args[0] = handlerData.args[0]; // eslint-disable-next-line @typescript-eslint/no-explicit-any\n\n var options = handlerData.args[1] = handlerData.args[1] || {};\n var headers = options.headers;\n\n if (isInstanceOf(request, Request)) {\n headers = request.headers;\n }\n\n if (headers) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n if (typeof headers.append === 'function') {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n headers.append('sentry-trace', span.toTraceparent());\n } else if (Array.isArray(headers)) {\n headers = __spread(headers, [['sentry-trace', span.toTraceparent()]]);\n } else {\n headers = __assign(__assign({}, headers), {\n 'sentry-trace': span.toTraceparent()\n });\n }\n } else {\n headers = {\n 'sentry-trace': span.toTraceparent()\n };\n }\n\n options.headers = headers;\n }\n}\n/**\n * Create and track xhr request spans\n */\n\nexport function xhrCallback(handlerData, shouldCreateSpan, spans) {\n if (!hasTracingEnabled() || handlerData.xhr && handlerData.xhr.__sentry_own_request__ || !(handlerData.xhr && handlerData.xhr.__sentry_xhr__ && shouldCreateSpan(handlerData.xhr.__sentry_xhr__.url))) {\n return;\n }\n\n var xhr = handlerData.xhr.__sentry_xhr__; // check first if the request has finished and is tracked by an existing span which should now end\n\n if (handlerData.endTimestamp) {\n var spanId = handlerData.xhr.__sentry_xhr_span_id__;\n if (!spanId) return;\n var span = spans[spanId];\n\n if (span) {\n span.setHttpStatus(xhr.status_code);\n span.finish(); // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n\n delete spans[spanId];\n }\n\n return;\n } // if not, create a new span to track it\n\n\n var activeTransaction = getActiveTransaction();\n\n if (activeTransaction) {\n var span = activeTransaction.startChild({\n data: __assign(__assign({}, xhr.data), {\n type: 'xhr',\n method: xhr.method,\n url: xhr.url\n }),\n description: xhr.method + \" \" + xhr.url,\n op: 'http.client'\n });\n handlerData.xhr.__sentry_xhr_span_id__ = span.spanId;\n spans[handlerData.xhr.__sentry_xhr_span_id__] = span;\n\n if (handlerData.xhr.setRequestHeader) {\n try {\n handlerData.xhr.setRequestHeader('sentry-trace', span.toTraceparent());\n } catch (_) {// Error: InvalidStateError: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': The object's state must be OPENED.\n }\n }\n }\n}","import { addInstrumentationHandler, getGlobalObject, logger } from '@sentry/utils';\nimport { IS_DEBUG_BUILD } from '../flags';\nvar global = getGlobalObject();\n/**\n * Default function implementing pageload and navigation transactions\n */\n\nexport function instrumentRoutingWithDefaults(customStartTransaction, startTransactionOnPageLoad, startTransactionOnLocationChange) {\n if (startTransactionOnPageLoad === void 0) {\n startTransactionOnPageLoad = true;\n }\n\n if (startTransactionOnLocationChange === void 0) {\n startTransactionOnLocationChange = true;\n }\n\n if (!global || !global.location) {\n IS_DEBUG_BUILD && logger.warn('Could not initialize routing instrumentation due to invalid location');\n return;\n }\n\n var startingUrl = global.location.href;\n var activeTransaction;\n\n if (startTransactionOnPageLoad) {\n activeTransaction = customStartTransaction({\n name: global.location.pathname,\n op: 'pageload'\n });\n }\n\n if (startTransactionOnLocationChange) {\n addInstrumentationHandler('history', function (_a) {\n var to = _a.to,\n from = _a.from;\n /**\n * This early return is there to account for some cases where a navigation transaction starts right after\n * long-running pageload. We make sure that if `from` is undefined and a valid `startingURL` exists, we don't\n * create an uneccessary navigation transaction.\n *\n * This was hard to duplicate, but this behavior stopped as soon as this fix was applied. This issue might also\n * only be caused in certain development environments where the usage of a hot module reloader is causing\n * errors.\n */\n\n if (from === undefined && startingUrl && startingUrl.indexOf(to) !== -1) {\n startingUrl = undefined;\n return;\n }\n\n if (from !== to) {\n startingUrl = undefined;\n\n if (activeTransaction) {\n IS_DEBUG_BUILD && logger.log(\"[Tracing] Finishing current transaction with op: \" + activeTransaction.op); // If there's an open transaction on the scope, we need to finish it before creating an new one.\n\n activeTransaction.finish();\n }\n\n activeTransaction = customStartTransaction({\n name: global.location.pathname,\n op: 'navigation'\n });\n }\n });\n }\n}","import { __assign } from \"tslib\";\nimport { getGlobalObject, logger } from '@sentry/utils';\nimport { IS_DEBUG_BUILD } from '../flags';\nimport { startIdleTransaction } from '../hubextensions';\nimport { DEFAULT_IDLE_TIMEOUT } from '../idletransaction';\nimport { extractTraceparentData, secToMs } from '../utils';\nimport { registerBackgroundTabDetection } from './backgroundtab';\nimport { MetricsInstrumentation } from './metrics';\nimport { defaultRequestInstrumentationOptions, instrumentOutgoingRequests } from './request';\nimport { instrumentRoutingWithDefaults } from './router';\nexport var DEFAULT_MAX_TRANSACTION_DURATION_SECONDS = 600;\n\nvar DEFAULT_BROWSER_TRACING_OPTIONS = __assign({\n idleTimeout: DEFAULT_IDLE_TIMEOUT,\n markBackgroundTransactions: true,\n maxTransactionDuration: DEFAULT_MAX_TRANSACTION_DURATION_SECONDS,\n routingInstrumentation: instrumentRoutingWithDefaults,\n startTransactionOnLocationChange: true,\n startTransactionOnPageLoad: true\n}, defaultRequestInstrumentationOptions);\n/**\n * The Browser Tracing integration automatically instruments browser pageload/navigation\n * actions as transactions, and captures requests, metrics and errors as spans.\n *\n * The integration can be configured with a variety of options, and can be extended to use\n * any routing library. This integration uses {@see IdleTransaction} to create transactions.\n */\n\n\nvar BrowserTracing =\n/** @class */\nfunction () {\n function BrowserTracing(_options) {\n /**\n * @inheritDoc\n */\n this.name = BrowserTracing.id;\n /** Store configured idle timeout so that it can be added as a tag to transactions */\n\n this._configuredIdleTimeout = undefined;\n var tracingOrigins = defaultRequestInstrumentationOptions.tracingOrigins; // NOTE: Logger doesn't work in constructors, as it's initialized after integrations instances\n\n if (_options) {\n this._configuredIdleTimeout = _options.idleTimeout;\n\n if (_options.tracingOrigins && Array.isArray(_options.tracingOrigins) && _options.tracingOrigins.length !== 0) {\n tracingOrigins = _options.tracingOrigins;\n } else {\n IS_DEBUG_BUILD && (this._emitOptionsWarning = true);\n }\n }\n\n this.options = __assign(__assign(__assign({}, DEFAULT_BROWSER_TRACING_OPTIONS), _options), {\n tracingOrigins: tracingOrigins\n });\n var _metricOptions = this.options._metricOptions;\n this._metrics = new MetricsInstrumentation(_metricOptions && _metricOptions._reportAllChanges);\n }\n /**\n * @inheritDoc\n */\n\n\n BrowserTracing.prototype.setupOnce = function (_, getCurrentHub) {\n var _this = this;\n\n this._getCurrentHub = getCurrentHub;\n\n if (this._emitOptionsWarning) {\n IS_DEBUG_BUILD && logger.warn('[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace.');\n IS_DEBUG_BUILD && logger.warn(\"[Tracing] We added a reasonable default for you: \" + defaultRequestInstrumentationOptions.tracingOrigins);\n } // eslint-disable-next-line @typescript-eslint/unbound-method\n\n\n var _a = this.options,\n instrumentRouting = _a.routingInstrumentation,\n startTransactionOnLocationChange = _a.startTransactionOnLocationChange,\n startTransactionOnPageLoad = _a.startTransactionOnPageLoad,\n markBackgroundTransactions = _a.markBackgroundTransactions,\n traceFetch = _a.traceFetch,\n traceXHR = _a.traceXHR,\n tracingOrigins = _a.tracingOrigins,\n shouldCreateSpanForRequest = _a.shouldCreateSpanForRequest;\n instrumentRouting(function (context) {\n return _this._createRouteTransaction(context);\n }, startTransactionOnPageLoad, startTransactionOnLocationChange);\n\n if (markBackgroundTransactions) {\n registerBackgroundTabDetection();\n }\n\n instrumentOutgoingRequests({\n traceFetch: traceFetch,\n traceXHR: traceXHR,\n tracingOrigins: tracingOrigins,\n shouldCreateSpanForRequest: shouldCreateSpanForRequest\n });\n };\n /** Create routing idle transaction. */\n\n\n BrowserTracing.prototype._createRouteTransaction = function (context) {\n var _this = this;\n\n if (!this._getCurrentHub) {\n IS_DEBUG_BUILD && logger.warn(\"[Tracing] Did not create \" + context.op + \" transaction because _getCurrentHub is invalid.\");\n return undefined;\n } // eslint-disable-next-line @typescript-eslint/unbound-method\n\n\n var _a = this.options,\n beforeNavigate = _a.beforeNavigate,\n idleTimeout = _a.idleTimeout,\n maxTransactionDuration = _a.maxTransactionDuration;\n var parentContextFromHeader = context.op === 'pageload' ? getHeaderContext() : undefined;\n\n var expandedContext = __assign(__assign(__assign({}, context), parentContextFromHeader), {\n trimEnd: true\n });\n\n var modifiedContext = typeof beforeNavigate === 'function' ? beforeNavigate(expandedContext) : expandedContext; // For backwards compatibility reasons, beforeNavigate can return undefined to \"drop\" the transaction (prevent it\n // from being sent to Sentry).\n\n var finalContext = modifiedContext === undefined ? __assign(__assign({}, expandedContext), {\n sampled: false\n }) : modifiedContext;\n\n if (finalContext.sampled === false) {\n IS_DEBUG_BUILD && logger.log(\"[Tracing] Will not send \" + finalContext.op + \" transaction because of beforeNavigate.\");\n }\n\n IS_DEBUG_BUILD && logger.log(\"[Tracing] Starting \" + finalContext.op + \" transaction on scope\");\n\n var hub = this._getCurrentHub();\n\n var location = getGlobalObject().location;\n var idleTransaction = startIdleTransaction(hub, finalContext, idleTimeout, true, {\n location: location\n });\n idleTransaction.registerBeforeFinishCallback(function (transaction, endTimestamp) {\n _this._metrics.addPerformanceEntries(transaction);\n\n adjustTransactionDuration(secToMs(maxTransactionDuration), transaction, endTimestamp);\n });\n idleTransaction.setTag('idleTimeout', this._configuredIdleTimeout);\n return idleTransaction;\n };\n /**\n * @inheritDoc\n */\n\n\n BrowserTracing.id = 'BrowserTracing';\n return BrowserTracing;\n}();\n\nexport { BrowserTracing };\n/**\n * Gets transaction context from a sentry-trace meta.\n *\n * @returns Transaction context data from the header or undefined if there's no header or the header is malformed\n */\n\nexport function getHeaderContext() {\n var header = getMetaContent('sentry-trace');\n\n if (header) {\n return extractTraceparentData(header);\n }\n\n return undefined;\n}\n/** Returns the value of a meta tag */\n\nexport function getMetaContent(metaName) {\n var el = getGlobalObject().document.querySelector(\"meta[name=\" + metaName + \"]\");\n return el ? el.getAttribute('content') : null;\n}\n/** Adjusts transaction value based on max transaction duration */\n\nfunction adjustTransactionDuration(maxDuration, transaction, endTimestamp) {\n var diff = endTimestamp - transaction.startTimestamp;\n var isOutdatedTransaction = endTimestamp && (diff > maxDuration || diff < 0);\n\n if (isOutdatedTransaction) {\n transaction.setStatus('deadline_exceeded');\n transaction.setTag('maxTransactionDurationExceeded', 'true');\n }\n}","import { addExtensionMethods } from './hubextensions';\nimport * as Integrations from './integrations';\nexport { Integrations }; // This is already exported as part of `Integrations` above (and for the moment will remain so for\n// backwards compatibility), but that interferes with treeshaking, so we also export it separately\n// here.\n//\n// Previously we expected users to import tracing integrations like\n//\n// import { Integrations } from '@sentry/tracing';\n// const instance = new Integrations.BrowserTracing();\n//\n// This makes the integrations unable to be treeshaken though. To address this, we now have\n// this individual export. We now expect users to consume BrowserTracing like so:\n//\n// import { BrowserTracing } from '@sentry/tracing';\n// const instance = new BrowserTracing();\n//\n// For an example of of the new usage of BrowserTracing, see @sentry/nextjs index.client.ts\n\nexport { BrowserTracing } from './browser';\nexport { Span, spanStatusfromHttpCode } from './span'; // eslint-disable-next-line deprecation/deprecation\n\nexport { SpanStatus } from './spanstatus';\nexport { Transaction } from './transaction';\nexport { // TODO deprecate old name in v7\ninstrumentOutgoingRequests as registerRequestInstrumentation, defaultRequestInstrumentationOptions } from './browser';\nexport { IdleTransaction } from './idletransaction';\nexport { startIdleTransaction } from './hubextensions'; // We are patching the global object with our hub extension methods\n\naddExtensionMethods();\nexport { addExtensionMethods };\nexport { extractTraceparentData, getActiveTransaction, hasTracingEnabled, stripUrlQueryAndFragment, TRACEPARENT_REGEXP } from './utils';","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/*!\n * isobject \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\nfunction isObject(val) {\n return val != null && _typeof(val) === 'object' && Array.isArray(val) === false;\n}\n/*!\n * is-plain-object \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n\nfunction isObjectObject(o) {\n return isObject(o) === true && Object.prototype.toString.call(o) === '[object Object]';\n}\n\nfunction isPlainObject(o) {\n var ctor, prot;\n if (isObjectObject(o) === false) return false; // If has modified constructor\n\n ctor = o.constructor;\n if (typeof ctor !== 'function') return false; // If has modified prototype\n\n prot = ctor.prototype;\n if (isObjectObject(prot) === false) return false; // If constructor does not have an Object-specific method\n\n if (prot.hasOwnProperty('isPrototypeOf') === false) {\n return false;\n } // Most likely a plain Object\n\n\n return true;\n}\n\nexport default isPlainObject;","function e(e) {\n return \"string\" == typeof e ? e[0].toUpperCase() + e.substr(1) : e;\n}\n\nvar r = {\n accepted: function accepted(e) {\n return \"من فضلك اقبل ال \" + e.name;\n },\n after: function after(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" يجب أن يأتي بعد \" + a[0] + \".\" : e(n) + \" يجب أن يكون تاريخ أحدث\";\n },\n alpha: function alpha(r) {\n return e(r.name) + \" يجب أن يحتوى على حروف أبجدية فقط.\";\n },\n alphanumeric: function alphanumeric(r) {\n return e(r.name) + \" يمكن أن يحتوي على حروف أبجدية أو أرقام فقط.\";\n },\n before: function before(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" يجب أن يكون قبل \" + a[0] + \".\" : e(n) + \" يجب أن يكون تاريخ أقدم\";\n },\n between: function between(r) {\n var n = r.name,\n a = r.value,\n t = r.args,\n i = !(!Array.isArray(t) || !t[2]) && t[2];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" يجب أن يقع بين \" + t[0] + \" و \" + t[1] + \".\" : e(n) + \" يجب ان يكون طوله بين \" + t[0] + \" و \" + t[1] + \" حرف.\";\n },\n confirm: function confirm(r) {\n var n = r.name;\n r.args;\n return e(n) + \" غير متطابق.\";\n },\n date: function date(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" ليس على الصيغة الصحيحة, من فضلك استخدم هذه الصيغة \" + a[0] : e(n) + \" ليس على الصيغة الصحيحة.\";\n },\n default: function _default(e) {\n e.name;\n return \"هذه القيمة غير مناسبة.\";\n },\n email: function email(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” ليس عنوان بريد الكتروني.\" : \"من فضلك أدخل عنوان بريد الكتروني مناسب.\";\n },\n endsWith: function endsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” لا تنتهي بنهاية صحيحة.\" : \"نهاية هذه القيمة ليست صحيحة.\";\n },\n in: function _in(r) {\n var n = r.name,\n a = r.value;\n return \"string\" == typeof a && a ? \"“\" + e(a) + \"” ليس \" + n + \" صحيح.\" : \"هذه القيمة ليست \" + n + \" صحيح.\";\n },\n matches: function matches(r) {\n return e(r.name) + \" ليست قيمة مسموح بها.\";\n },\n max: function max(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"يمكنك فقط ان تختار \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" لا يمكن أن يتجاوز \" + t[0] + \".\" : e(n) + \" لا يجب ان يزيد طوله عن \" + t[0] + \" حرف.\";\n },\n mime: function mime(r) {\n var n = r.name,\n a = r.args;\n return e(n) + \" يجب ان يكون من نوع \" + (a[0] || \"لا يسمح بأي نوع.\");\n },\n min: function min(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"يجب أن تختار على الأقل \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" يجب أن يكون أكبر من \" + t[0] + \".\" : e(n) + \" يجب أن يكون طوله أكبر من \" + t[0] + \" حرف.\";\n },\n not: function not(e) {\n var r = e.name;\n return \"“\" + e.value + \"” ليست قيمة مسموح بها ك\" + r + \".\";\n },\n number: function number(r) {\n return e(r.name) + \" يجب أن يكون رقم.\";\n },\n required: function required(r) {\n return e(r.name) + \" ضروري.\";\n },\n startsWith: function startsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” لا تبدأ بقيمة صحيحة.\" : \"هذه القيمة لا تبدأ بقيمة صحيحة.\";\n },\n url: function url(e) {\n e.name;\n return \"من فضلك أدخل رابط صحيح.\";\n }\n};\n\nfunction n(e) {\n var n;\n e.extend({\n locales: (n = {}, n.ar = r, n)\n });\n}\n\nvar a = {\n accepted: function accepted(e) {\n return \"Si us plau accepta els \" + e.name + \".\";\n },\n after: function after(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" ha de ser després de \" + a[0] + \".\" : e(n) + \" ha de ser una data posterior.\";\n },\n alpha: function alpha(r) {\n return e(r.name) + \" només pot contenir lletres.\";\n },\n alphanumeric: function alphanumeric(r) {\n return e(r.name) + \" només pot contenir lletres i números.\";\n },\n before: function before(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" ha de ser abans de \" + a[0] + \".\" : e(n) + \" ha de ser una data anterior\";\n },\n between: function between(r) {\n var n = r.name,\n a = r.value,\n t = r.args,\n i = !(!Array.isArray(t) || !t[2]) && t[2];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" ha d'estar entre \" + t[0] + \" i \" + t[1] + \".\" : e(n) + \" ha de tenir entre \" + t[0] + \" i \" + t[1] + \" caràcters.\";\n },\n confirm: function confirm(r) {\n var n = r.name;\n r.args;\n return e(n) + \" no coincideix.\";\n },\n date: function date(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" no és una data vàlida, si us plau usi el format \" + a[0] : e(n) + \" no és una data vàlida.\";\n },\n default: function _default(e) {\n e.name;\n return \"Aquest camp no és vàlid.\";\n },\n email: function email(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” no és un correu electrònic vàlid.\" : \"Si us plau introdueixi un correu electrònic vàlid.\";\n },\n endsWith: function endsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” no acaba en un valor vàlid.\" : \"Aquest camp no acaba en un valor vàlid.\";\n },\n in: function _in(r) {\n var n = r.name,\n a = r.value;\n return \"string\" == typeof a && a ? \"“\" + e(a) + \"” no és un \" + n + \" permès.\" : \"Això no és un \" + n + \" permès.\";\n },\n matches: function matches(r) {\n return e(r.name) + \" no és un valor permès.\";\n },\n max: function max(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Només pots seleccionar \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" ha de ser menor o igual que \" + t[0] + \".\" : e(n) + \" ha de ser menor o igual que \" + t[0] + \" caràcters.\";\n },\n mime: function mime(r) {\n var n = r.name,\n a = r.args;\n return e(n) + \" ha de ser de tipus: \" + (a[0] || \"No es permet el format d'arxius.\");\n },\n min: function min(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Necessites almenys \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" ha de contenir almenys \" + t[0] + \".\" : e(n) + \" ha de contenir almenys \" + t[0] + \" caràcters.\";\n },\n not: function not(e) {\n var r = e.name;\n return \"“\" + e.value + \"” no és un \" + r + \" permès.\";\n },\n number: function number(r) {\n return e(r.name) + \" ha de ser un número.\";\n },\n required: function required(r) {\n return e(r.name) + \" és requerit.\";\n },\n startsWith: function startsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” no comença amb un valor vàlid.\" : \"Aquest camp no comença amb un valor vàlid.\";\n },\n url: function url(e) {\n e.name;\n return \"Si us plau introdueixi una url vàlida.\";\n }\n};\n\nfunction t(e) {\n var r;\n e.extend({\n locales: (r = {}, r.ca = a, r)\n });\n}\n\nvar i = {\n accepted: function accepted(e) {\n return \"Prosím potvrďte \" + e.name + \".\";\n },\n after: function after(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" musí bý po \" + a[0] + \".\" : e(n) + \" musí být pozdější datum.\";\n },\n alpha: function alpha(r) {\n return e(r.name) + \" může obsahovat pouze písmena.\";\n },\n alphanumeric: function alphanumeric(r) {\n return e(r.name) + \" může obsahovat pouze písmena a čísla.\";\n },\n before: function before(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" musí být před \" + a[0] + \".\" : e(n) + \" musí být dřívější datum.\";\n },\n between: function between(r) {\n var n = r.name,\n a = r.value,\n t = r.args,\n i = !(!Array.isArray(t) || !t[2]) && t[2];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" musí být mezi \" + t[0] + \" a \" + t[1] + \".\" : e(n) + \" délka musí být mezi \" + t[0] + \" a \" + t[1] + \" znaky.\";\n },\n confirm: function confirm(r) {\n var n = r.name;\n r.args;\n return e(n) + \" se neshoduje.\";\n },\n date: function date(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" není platné datum, použijte formát \" + a[0] : e(n) + \" není platné datum.\";\n },\n default: function _default(e) {\n e.name;\n return \"Toto pole není vyplěno správně.\";\n },\n email: function email(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” není platná e-mailová adresa.\" : \"Zadejte platnou e-mailovou adresu.\";\n },\n endsWith: function endsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” nekončí správnou hodnotou.\" : \"Toto pole nekončí správnou hodnotou.\";\n },\n in: function _in(r) {\n var n = r.name,\n a = r.value;\n return \"string\" == typeof a && a ? \"“\" + e(a) + \"” není povolená hodnota \" + n + \".\" : \"Toto není povolená hodnota \" + n + \".\";\n },\n matches: function matches(r) {\n return e(r.name) + \" není povolená hodnota.\";\n },\n max: function max(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Můžete vybrat pouze \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" musí být menší nebo rovno \" + t[0] + \".\" : e(n) + \" musí být menší nebo rovno \" + t[0] + \" znaků.\";\n },\n mime: function mime(r) {\n var n = r.name,\n a = r.args;\n return e(n) + \" musí být typ: \" + (a[0] || \"Žádné typy souborů nejsou povolené.\");\n },\n min: function min(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Je potřeba nejméně \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" musí být nejméně \" + t[0] + \".\" : e(n) + \" musí být nejméně \" + t[0] + \" znaků.\";\n },\n not: function not(e) {\n var r = e.name;\n return \"“\" + e.value + \"” není povolená hodnota \" + r + \".\";\n },\n number: function number(r) {\n return e(r.name) + \" musí být číslo.\";\n },\n required: function required(r) {\n return \"Pole \" + e(r.name) + \" je povinné.\";\n },\n startsWith: function startsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” nezačíná platnou hodnotou.\" : \"Toto pole nezačíná platnou hodnotou.\";\n },\n url: function url(e) {\n e.name;\n return \"Zadejte platnou URL adresu.\";\n }\n};\n\nfunction u(e) {\n var r;\n e.extend({\n locales: (r = {}, r.cs = i, r)\n });\n}\n\nvar o = {\n accepted: function accepted(e) {\n return \"Accepter venligst \" + e.name + \".\";\n },\n after: function after(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" skal være efter \" + a[0] + \".\" : e(n) + \" skal være en senere dato.\";\n },\n alpha: function alpha(r) {\n return e(r.name) + \" kan kun indeholde bogstaver.\";\n },\n alphanumeric: function alphanumeric(r) {\n return e(r.name) + \" kan kun indeholde bogstaver og tal.\";\n },\n before: function before(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" skal være før \" + a[0] + \".\" : e(n) + \" skal være en tidligere dato.\";\n },\n between: function between(r) {\n var n = r.name,\n a = r.value,\n t = r.args,\n i = !(!Array.isArray(t) || !t[2]) && t[2];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" skal være mellem \" + t[0] + \" og \" + t[1] + \".\" : e(n) + \" skal være mellem \" + t[0] + \" og \" + t[1] + \" tegn.\";\n },\n confirm: function confirm(r) {\n var n = r.name;\n r.args;\n return e(n) + \" matcher ikke.\";\n },\n date: function date(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" er ikke gyldig, brug venligst formatet \" + a[0] : e(n) + \" er ikke en gyldig dato.\";\n },\n default: function _default(e) {\n e.name;\n return \"Dette felt er ikke gyldigt.\";\n },\n email: function email(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” er ikke en gyldig email-adresse.\" : \"Indtast venligst en gyldig email-adresse.\";\n },\n endsWith: function endsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” slutter ikke med en gyldig værdi.\" : \"Dette felt slutter ikke med en gyldig værdi.\";\n },\n in: function _in(r) {\n var n = r.name,\n a = r.value;\n return \"string\" == typeof a && a ? \"“\" + e(a) + \"” er ikke en tilladt \" + n + \".\" : \"Dette er ikke en tilladt \" + n + \".\";\n },\n matches: function matches(r) {\n return e(r.name) + \" er ikke en gyldig værdi.\";\n },\n max: function max(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Du kan kun vælge \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" skal være mindre end eller lig \" + t[0] + \".\" : e(n) + \" skal være mindre end eller lig \" + t[0] + \" tegn.\";\n },\n mime: function mime(r) {\n var n = r.name,\n a = r.args;\n return e(n) + \" skal være af typen: \" + (a[0] || \"Ingen tilladte filformater.\");\n },\n min: function min(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Du skal vælge mindst \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" skal være mere end \" + t[0] + \".\" : e(n) + \" skal være mere end \" + t[0] + \" tegn.\";\n },\n not: function not(e) {\n var r = e.name;\n return \"“\" + e.value + \"” er ikke en gyldig \" + r + \".\";\n },\n number: function number(r) {\n return e(r.name) + \" skal være et tal.\";\n },\n required: function required(r) {\n return e(r.name) + \" er påkrævet.\";\n },\n startsWith: function startsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” starter ikke med en gyldig værdi.\" : \"Dette felt starter ikke med en gyldig værdi.\";\n },\n url: function url(e) {\n e.name;\n return \"Indtast venligst en gyldig URL.\";\n }\n};\n\nfunction s(e) {\n var r;\n e.extend({\n locales: (r = {}, r.da = o, r)\n });\n}\n\nvar l = {\n accepted: function accepted(e) {\n return e.name + \" erfordert Zustimmung.\";\n },\n after: function after(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" muss auf \" + a[0] + \" folgen.\" : e(n) + \" muss ein späteres Datum sein.\";\n },\n alpha: function alpha(r) {\n return e(r.name) + \" darf nur Buchstaben enthalten.\";\n },\n alphanumeric: function alphanumeric(r) {\n return e(r.name) + \" darf nur Buchstaben und Zahlen enthalten.\";\n },\n before: function before(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" muss vor \" + a[0] + \" sein.\" : e(n) + \" muss ein früheres Datum sein.\";\n },\n between: function between(r) {\n var n = r.name,\n a = r.value,\n t = r.args,\n i = !(!Array.isArray(t) || !t[2]) && t[2];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" muss zwischen \" + t[0] + \" und \" + t[1] + \".\" : e(n) + \" muss zwischen \" + t[0] + \" und \" + t[1] + \" Zeichen lang sein.\";\n },\n confirm: function confirm(r) {\n var n = r.name;\n r.args;\n return e(n) + \" stimmt nicht überein.\";\n },\n date: function date(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" ist nicht korrekt, bitte das Format \" + a[0] + \" benutzen.\" : e(n) + \" ist kein gültiges Datum.\";\n },\n default: function _default(e) {\n e.name;\n return \"Das Feld hat einen Fehler.\";\n },\n email: function email(e) {\n e.name;\n var r = e.value;\n return r ? \"„\" + r + \"“ ist keine gültige E-Mail-Adresse.\" : \"Bitte eine gültige E-Mail-Adresse eingeben.\";\n },\n endsWith: function endsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"„\" + r + \"” endet nicht mit einem gültigen Wert.\" : \"Dieses Feld endet nicht mit einem gültigen Wert\";\n },\n in: function _in(r) {\n var n = r.name,\n a = r.value;\n return \"string\" == typeof a && a ? \"„\" + e(a) + \"“ ist kein gültiger Wert für \" + n + \".\" : \"Dies ist kein gültiger Wert für \" + n + \".\";\n },\n matches: function matches(r) {\n return e(r.name) + \" ist kein gültiger Wert.\";\n },\n max: function max(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Es dürfen nur \" + t[0] + \" \" + n + \" ausgewählt werden.\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" muss kleiner oder gleich \" + t[0] + \" sein.\" : e(n) + \" muss \" + t[0] + \" oder weniger Zeichen lang sein.\";\n },\n mime: function mime(r) {\n var n = r.name,\n a = r.args;\n return e(n) + \" muss den Typ \" + (a[0] || \"Keine Dateien erlaubt\") + \" haben.\";\n },\n min: function min(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Es müssen mindestens \" + t[0] + \" \" + n + \" ausgewählt werden.\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" muss größer als \" + t[0] + \" sein.\" : e(n) + \" muss \" + t[0] + \" oder mehr Zeichen lang sein.\";\n },\n not: function not(e) {\n var r = e.name;\n return \"„\" + e.value + \"“ ist kein erlaubter Wert für \" + r + \".\";\n },\n number: function number(r) {\n return e(r.name) + \" muss eine Zahl sein.\";\n },\n required: function required(r) {\n return e(r.name) + \" ist ein Pflichtfeld.\";\n },\n startsWith: function startsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"„\" + r + \"” beginnt nicht mit einem gültigen Wert\" : \"Dieses Feld beginnt nicht mit einem gültigen Wert\";\n },\n url: function url(r) {\n return e(r.name) + \" muss eine gültige URL sein.\";\n }\n};\n\nfunction m(e) {\n var r;\n e.extend({\n locales: (r = {}, r.de = l, r)\n });\n}\n\nvar v = {\n accepted: function accepted(e) {\n return \"Please accept the \" + e.name + \".\";\n },\n after: function after(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" must be after \" + a[0] + \".\" : e(n) + \" must be a later date.\";\n },\n alpha: function alpha(r) {\n return e(r.name) + \" can only contain alphabetical characters.\";\n },\n alphanumeric: function alphanumeric(r) {\n return e(r.name) + \" can only contain letters and numbers.\";\n },\n before: function before(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" must be before \" + a[0] + \".\" : e(n) + \" must be an earlier date.\";\n },\n between: function between(r) {\n var n = r.name,\n a = r.value,\n t = r.args,\n i = !(!Array.isArray(t) || !t[2]) && t[2];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" must be between \" + t[0] + \" and \" + t[1] + \".\" : e(n) + \" must be between \" + t[0] + \" and \" + t[1] + \" characters long.\";\n },\n confirm: function confirm(r) {\n var n = r.name;\n r.args;\n return e(n) + \" does not match.\";\n },\n date: function date(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" is not a valid date, please use the format \" + a[0] : e(n) + \" is not a valid date.\";\n },\n default: function _default(e) {\n e.name;\n return \"This field isn’t valid.\";\n },\n email: function email(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” is not a valid email address.\" : \"Please enter a valid email address.\";\n },\n endsWith: function endsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” doesn’t end with a valid value.\" : \"This field doesn’t end with a valid value.\";\n },\n in: function _in(r) {\n var n = r.name,\n a = r.value;\n return \"string\" == typeof a && a ? \"“\" + e(a) + \"” is not an allowed \" + n + \".\" : \"This is not an allowed \" + n + \".\";\n },\n matches: function matches(r) {\n return e(r.name) + \" is not an allowed value.\";\n },\n max: function max(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"You may only select \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" must be less than or equal to \" + t[0] + \".\" : e(n) + \" must be less than or equal to \" + t[0] + \" characters long.\";\n },\n mime: function mime(r) {\n var n = r.name,\n a = r.args;\n return e(n) + \" must be of the type: \" + (a[0] || \"No file formats allowed.\");\n },\n min: function min(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"You need at least \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" must be at least \" + t[0] + \".\" : e(n) + \" must be at least \" + t[0] + \" characters long.\";\n },\n not: function not(e) {\n var r = e.name;\n return \"“\" + e.value + \"” is not an allowed \" + r + \".\";\n },\n number: function number(r) {\n return e(r.name) + \" must be a number.\";\n },\n required: function required(r) {\n return e(r.name) + \" is required.\";\n },\n startsWith: function startsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” doesn’t start with a valid value.\" : \"This field doesn’t start with a valid value.\";\n },\n url: function url(e) {\n e.name;\n return \"Please include a valid url.\";\n }\n};\n\nfunction c(e) {\n var r;\n e.extend({\n locales: (r = {}, r.en = v, r)\n });\n}\n\nvar f = {\n accepted: function accepted(e) {\n return \"Por favor acepta los \" + e.name + \".\";\n },\n after: function after(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" debe ser luego de \" + a[0] + \".\" : e(n) + \" debe ser una fecha posterior.\";\n },\n alpha: function alpha(r) {\n return e(r.name) + \" solo puede contener letras.\";\n },\n alphanumeric: function alphanumeric(r) {\n return e(r.name) + \" solo puede contener letras y números.\";\n },\n before: function before(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" debe ser antes de \" + a[0] + \".\" : e(n) + \" debe ser una fecha anterior.\";\n },\n between: function between(r) {\n var n = r.name,\n a = r.value,\n t = r.args,\n i = !(!Array.isArray(t) || !t[2]) && t[2];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" debe estar entre \" + t[0] + \" y \" + t[1] + \".\" : e(n) + \" debe tener entre \" + t[0] + \" y \" + t[1] + \" caracteres.\";\n },\n confirm: function confirm(r) {\n var n = r.name;\n r.args;\n return e(n) + \" no coincide.\";\n },\n date: function date(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" no es una fecha válida, por favor use el formato \" + a[0] : e(n) + \" no es una fecha válida.\";\n },\n default: function _default(e) {\n e.name;\n return \"Este campo no es válido.\";\n },\n email: function email(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” no es un correo electrónico válido.\" : \"Por favor introduzca un correo electrónico válido.\";\n },\n endsWith: function endsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” no termina en un valor válido.\" : \"Este campo no termina en un valor válido.\";\n },\n in: function _in(r) {\n var n = r.name,\n a = r.value;\n return \"string\" == typeof a && a ? \"“\" + e(a) + \"” no es un \" + n + \" permitido.\" : \"Esto no es un \" + n + \" permitido.\";\n },\n matches: function matches(r) {\n return e(r.name) + \" no es un valor permitido.\";\n },\n max: function max(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Solo puedes seleccionar \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" debe ser menor o igual que \" + t[0] + \".\" : e(n) + \" debe ser menor o igual que \" + t[0] + \" caracteres.\";\n },\n mime: function mime(r) {\n var n = r.name,\n a = r.args;\n return e(n) + \" debe ser de tipo: \" + (a[0] || \"No se permite el formato de archivos.\");\n },\n min: function min(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Necesitas al menos \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" debe contener al menos \" + t[0] + \".\" : e(n) + \" debe contener al menos \" + t[0] + \" caracteres.\";\n },\n not: function not(e) {\n var r = e.name;\n return \"“\" + e.value + \"” no es un \" + r + \" permitido.\";\n },\n number: function number(r) {\n return e(r.name) + \" debe ser un número.\";\n },\n required: function required(r) {\n return e(r.name) + \" es requerido.\";\n },\n startsWith: function startsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” no comienza con un valor válido.\" : \"Este campo no comienza con un valor válido.\";\n },\n url: function url(e) {\n e.name;\n return \"Por favor introduzca una url válida.\";\n }\n};\n\nfunction d(e) {\n var r;\n e.extend({\n locales: (r = {}, r.es = f, r)\n });\n}\n\nvar g = {\n accepted: function accepted(e) {\n return \"Merci d'accepter les \" + e.name + \".\";\n },\n after: function after(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" doit être postérieur à \" + a[0] + \".\" : e(n) + \" doit être une date ultérieure.\";\n },\n alpha: function alpha(r) {\n return e(r.name) + \" peut uniquement contenir des lettres.\";\n },\n alphanumeric: function alphanumeric(r) {\n return e(r.name) + \" peut uniquement contenir des lettres ou des chiffres\";\n },\n before: function before(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" doit être antérieur à \" + a[0] + \".\" : e(n) + \" doit être une date antérieure.\";\n },\n between: function between(r) {\n var n = r.name,\n a = r.value,\n t = r.args,\n i = !(!Array.isArray(t) || !t[2]) && t[2];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" doit être compris entre \" + t[0] + \" et \" + t[1] + \".\" : e(n) + \" doit être compris entre \" + t[0] + \" et \" + t[1] + \" caractères.\";\n },\n confirm: function confirm(r) {\n var n = r.name;\n r.args;\n return e(n) + \" ne correspond pas.\";\n },\n date: function date(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" n'est pas valide. Merci d'utiliser le format \" + a[0] : e(n) + \" n'est pas une date valide.\";\n },\n default: function _default(e) {\n e.name;\n return \"Ce champ n'est pas valide.\";\n },\n email: function email(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” n'est pas une adresse email valide.\" : \"Merci d'entrer une adresse email valide.\";\n },\n endsWith: function endsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” ne termine pas par une valeur correcte.\" : \"Ce champ ne termine pas par une valeur correcte.\";\n },\n in: function _in(r) {\n var n = r.name,\n a = r.value;\n return \"string\" == typeof a && a ? \"“\" + e(a) + \"” n'est pas un(e) \" + n + \" autorisé(e).\" : \"Cette valeur n'est pas un(e) \" + n + \" autorisé(e).\";\n },\n matches: function matches(r) {\n return e(r.name) + \" n'est pas une valeur autorisée.\";\n },\n max: function max(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Vous pouvez uniquement sélectionner \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" doit être inférieur ou égal à \" + t[0] + \".\" : e(n) + \" doit être inférieur ou égal à \" + t[0] + \" caractères.\";\n },\n mime: function mime(r) {\n var n = r.name,\n a = r.args;\n return e(n) + \" doit être de type: \" + (a[0] || \"Aucun format autorisé.\");\n },\n min: function min(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Vous devez sélectionner au moins \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" doit être supérieur à \" + t[0] + \".\" : e(n) + \" doit être plus long que \" + t[0] + \" caractères.\";\n },\n not: function not(e) {\n var r = e.name;\n return \"“\" + e.value + \"” n'est pas un(e) \" + r + \" autorisé(e).\";\n },\n number: function number(r) {\n return e(r.name) + \" doit être un nombre.\";\n },\n required: function required(r) {\n return e(r.name) + \" est obligatoire.\";\n },\n startsWith: function startsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” ne commence pas par une valeur correcte.\" : \"Ce champ ne commence pas par une valeur correcte.\";\n },\n url: function url(e) {\n e.name;\n return \"Merci d'entrer une URL valide.\";\n }\n};\n\nfunction y(e) {\n var r;\n e.extend({\n locales: (r = {}, r.fr = g, r)\n });\n}\n\nvar h = {\n accepted: function accepted(e) {\n return \"אנא קבל את ה\" + e.name + \".\";\n },\n after: function after(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" חייב להיות אחרי \" + a[0] + \".\" : e(n) + \" חייב להיות תאריך יותר מאוחר.\";\n },\n alpha: function alpha(r) {\n return e(r.name) + \" יכול להכיל אותיות בלבד.\";\n },\n alphanumeric: function alphanumeric(r) {\n return e(r.name) + \" יכול להכיל אותיות ומספרים בלבד.\";\n },\n before: function before(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" חייב להיות לפני \" + a[0] + \".\" : e(n) + \" חייב להיות תאריך יותר מוקדם.\";\n },\n between: function between(r) {\n var n = r.name,\n a = r.value,\n t = r.args,\n i = !(!Array.isArray(t) || !t[2]) && t[2];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" חייב להיות בין \" + t[0] + \" ו-\" + t[1] + \".\" : e(n) + \" חייב להיות בין \" + t[0] + \" ו-\" + t[1] + \" אותיות.\";\n },\n confirm: function confirm(r) {\n var n = r.name;\n r.args;\n return e(n) + \" אינו תואם.\";\n },\n date: function date(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" אינו תאריך תקין, אנא השתמש בפורמט \" + a[0] : e(n) + \" אינו תאריך תקין.\";\n },\n default: function _default(e) {\n e.name;\n return \"השדה אינו תקין.\";\n },\n email: function email(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” אינו כתובת אימייל תקין.\" : \"אנא הכנס כתובת אימייל תקין.\";\n },\n endsWith: function endsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” אינו מסתיים בערך תקין.\" : \"שדה זו אינו מסתיים בערך תקין.\";\n },\n in: function _in(r) {\n var n = r.name,\n a = r.value;\n return \"string\" == typeof a && a ? \"“\" + e(a) + \"” אינו \" + n + \" מורשה.\" : \"ערך זו איננו \" + n + \" מורשה.\";\n },\n matches: function matches(r) {\n return e(r.name) + \" אינו ערך מורשה.\";\n },\n max: function max(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"אתה יכול לבחור רק \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" חייב להיות פחות או שוה ל-\" + t[0] + \".\" : e(n) + \" חייב להיות פחות או שוה ל-\" + t[0] + \" אותיות.\";\n },\n mime: function mime(r) {\n var n = r.name,\n a = r.args;\n return e(n) + \" חייב להיות מסוג של: \" + (a[0] || \"סוגי קבצים לא מורשים.\");\n },\n min: function min(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"אתה צריך לפחות \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" חייב להיות לפחות \" + t[0] + \".\" : e(n) + \" חייב להיות לפחות \" + t[0] + \" אותיות.\";\n },\n not: function not(e) {\n var r = e.name;\n return \"“\" + e.value + \"” אינו \" + r + \" מורשה.\";\n },\n number: function number(r) {\n return e(r.name) + \" חייב להיות מספר.\";\n },\n required: function required(r) {\n return e(r.name) + \" נדרש.\";\n },\n startsWith: function startsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” אינו מתחיל בערך תקף.\" : \"שדה זה אינו מתחיל בערך תקף.\";\n },\n url: function url(e) {\n e.name;\n return \"אנא כלול כתובת אתר חוקית.\";\n }\n};\n\nfunction A(e) {\n var r;\n e.extend({\n locales: (r = {}, r.he = h, r)\n });\n}\n\nvar p = {\n accepted: function accepted(e) {\n return \"Kérlek fogadd el a(z) \" + e.name + \" mezőt.\";\n },\n after: function after(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" után kell lennie \" + a[0] + \".\" : e(n) + \" későbbi dátumnak kell lennie.\";\n },\n alpha: function alpha(r) {\n return e(r.name) + \" csak ábécé szerinti karaktereket tartalmazhat.\";\n },\n alphanumeric: function alphanumeric(r) {\n return e(r.name) + \" csak betűket és számokat tartalmazhat.\";\n },\n before: function before(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" előtt kell lennie \" + a[0] + \".\" : e(n) + \" korábbi dátumnak kell lennie.\";\n },\n between: function between(r) {\n var n = r.name,\n a = r.value,\n t = r.args,\n i = !(!Array.isArray(t) || !t[2]) && t[2];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" között kell lennie \" + t[0] + \" és \" + t[1] + \".\" : e(n) + \" között kell lennie \" + t[0] + \" és \" + t[1] + \" karakter hosszú.\";\n },\n confirm: function confirm(r) {\n var n = r.name;\n r.args;\n return e(n) + \" nem egyezik.\";\n },\n date: function date(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" nem érvényes dátum, kérlek használd a \" + a[0] + \" formátumot.\" : e(n) + \" nem érvényes dátum.\";\n },\n default: function _default(e) {\n e.name;\n return \"Ez a mező érvénytelen.\";\n },\n email: function email(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” nem érvényes e-mail cím.\" : \"Kérlek valós e-mail címet adj meg.\";\n },\n endsWith: function endsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” nem ér véget érvényes értékkel.\" : \"Ez a mező nem ér véget érvényes értékkel.\";\n },\n in: function _in(r) {\n var n = r.name,\n a = r.value;\n return \"string\" == typeof a && a ? \"“\" + e(a) + \"” nem megengedett \" + n + \".\" : \"Ez nem megengedett \" + n + \".\";\n },\n matches: function matches(r) {\n return e(r.name) + \" nem megengedett érték.\";\n },\n max: function max(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Csak választható \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" kisebbnek vagy egyenlőnek kell lennie \" + t[0] + \".\" : e(n) + \" kisebbnek vagy egyenlőnek kell lennie \" + t[0] + \" karakter hosszú.\";\n },\n mime: function mime(r) {\n var n = r.name,\n a = r.args;\n return e(n) + \" típusúnak kell lennie: \" + (a[0] || \"Nem engedélyezett fájlformátumok.\");\n },\n min: function min(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Legalább szükséges \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" legalább \" + t[0] + \".\" : e(n) + \" legalább \" + t[0] + \" karakter hosszú.\";\n },\n not: function not(e) {\n var r = e.name;\n return \"“\" + e.value + \"” nem megengedett \" + r + \".\";\n },\n number: function number(r) {\n return e(r.name) + \" számnak kell lennie.\";\n },\n required: function required(r) {\n return e(r.name) + \" kötelező.\";\n },\n startsWith: function startsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” nem érvényes értékkel kezdődik.\" : \"Ez a mező nem érvényes értékkel kezdődik.\";\n },\n url: function url(e) {\n e.name;\n return \"Kérlek érvényes ulr-t adj meg.\";\n }\n};\n\nfunction b(e) {\n var r;\n e.extend({\n locales: (r = {}, r.hu = p, r)\n });\n}\n\nvar k = {\n accepted: function accepted(e) {\n return \"Per favore, accetta il campo \" + e.name + \".\";\n },\n after: function after(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" deve essere una data successiva al \" + a[0] + \".\" : e(n) + \" deve essere una data successiva a quella attuale.\";\n },\n alpha: function alpha(r) {\n return e(r.name) + \" può contenere solo lettere.\";\n },\n alphanumeric: function alphanumeric(r) {\n return e(r.name) + \" può contenere solo lettere e numeri.\";\n },\n before: function before(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" deve essere una data precedente al \" + a[0] + \".\" : e(n) + \" deve essere una data precedente a quella attuale.\";\n },\n between: function between(r) {\n var n = r.name,\n a = r.value,\n t = r.args,\n i = !(!Array.isArray(t) || !t[2]) && t[2];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" deve essere tra \" + t[0] + \" e \" + t[1] + \".\" : e(n) + \" deve avere una lunghezza compresa tra \" + t[0] + \" e \" + t[1] + \" caratteri.\";\n },\n confirm: function confirm(r) {\n var n = r.name;\n r.args;\n return e(n) + \" non corrisponde.\";\n },\n date: function date(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" non è una data valida. Per favore usa il formato \" + a[0] : e(n) + \" non è una data valida.\";\n },\n default: function _default(e) {\n e.name;\n return \"Questo campo non è valido.\";\n },\n email: function email(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” non è un indirizzo email valido.\" : \"Per favore, inserisci un indirizzo email valido.\";\n },\n endsWith: function endsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” non termina con un valore valido.\" : \"Questo campo non termina con un valore valido.\";\n },\n in: function _in(r) {\n var n = r.name,\n a = r.value;\n return \"string\" == typeof a && a ? \"“\" + e(a) + \"” non è un valore valido per il campo \" + n + \".\" : n + \" invalido.\";\n },\n matches: function matches(r) {\n return e(r.name) + \" invalido.\";\n },\n max: function max(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Puoi selezionare al massimo \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" deve essere inferiore o uguale a \" + t[0] + \".\" : e(n) + \" deve essere inferiore o uguale a \" + t[0] + \" caratteri.\";\n },\n mime: function mime(r) {\n var n = r.name,\n a = r.args;\n return e(n) + \" deve essere del tipo: \" + (a[0] || \"Nessun formato file autorizzato.\");\n },\n min: function min(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Devi selezionare almeno \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" deve essere maggiore di \" + t[0] + \".\" : e(n) + \" deve essere più lungo di \" + t[0] + \" caratteri.\";\n },\n not: function not(e) {\n var r = e.name;\n return \"“\" + e.value + \"” non è un valore valido per il campo \" + r + \".\";\n },\n number: function number(r) {\n return e(r.name) + \" deve essere un numero.\";\n },\n required: function required(r) {\n return e(r.name) + \" è un campo obbligatorio.\";\n },\n startsWith: function startsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” non inizia con un valore valido.\" : \"Questo campo non inizia con un valore valido.\";\n },\n url: function url(e) {\n e.name;\n return \"Per favore inserisci un URL valido.\";\n }\n};\n\nfunction N(e) {\n var r;\n e.extend({\n locales: (r = {}, r.it = k, r)\n });\n}\n\nvar z = {\n accepted: function accepted(e) {\n return e.name + \"を承認してください。\";\n },\n after: function after(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \"は \" + a[0] + \" 以降にしてください。\" : e(n) + \"はより後にしてください。\";\n },\n alpha: function alpha(r) {\n return e(r.name) + \"にはアルファベットのみ使用できます。\";\n },\n alphanumeric: function alphanumeric(r) {\n return e(r.name) + \"には英数字のみ使用できます。\";\n },\n before: function before(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \"は \" + a[0] + \" 以前にしてください。\" : e(n) + \"はより前にしてください。\";\n },\n between: function between(r) {\n var n = r.name,\n a = r.value,\n t = r.args,\n i = !(!Array.isArray(t) || !t[2]) && t[2];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \"は\" + t[0] + \"から\" + t[1] + \"の間でなければなりません。\" : e(n) + \"は\" + t[0] + \"文字から\" + t[1] + \"文字でなければなりません。\";\n },\n confirm: function confirm(r) {\n var n = r.name;\n r.args;\n return e(n) + \"が一致しません。\";\n },\n date: function date(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \"は有効な形式ではありません。次のフォーマットで入力してください: \" + a[0] : e(n) + \"は有効な形式ではありません。\";\n },\n default: function _default(e) {\n e.name;\n return \"有効な値ではありません。\";\n },\n email: function email(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” は有効なメールアドレスではありません。\" : \"有効なメールアドレスを入力してください。\";\n },\n endsWith: function endsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” は有効な値で終わっていません。\" : \"有効な値で終わっていません。\";\n },\n in: function _in(r) {\n var n = r.name,\n a = r.value;\n return \"string\" == typeof a && a ? \"“\" + e(a) + \"” は許可された\" + n + \"ではありません。\" : \"許可された\" + n + \"ではありません。\";\n },\n matches: function matches(r) {\n return e(r.name) + \"は許可された値ではありません。\";\n },\n max: function max(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return n + \"は\" + t[0] + \"項目しか選択できません。\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \"は\" + t[0] + \"以下でなければなりません。\" : e(n) + \"は\" + t[0] + \"文字以下でなければなりません。\";\n },\n mime: function mime(r) {\n var n = r.name,\n a = r.args;\n return e(n) + \"は次のファイル形式でなければなりません: \" + (a[0] || \"許可されたファイル形式がありません\");\n },\n min: function min(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return n + \"は\" + t[0] + \"項目以上選択してください。\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \"は\" + t[0] + \"以上でなければなりません。\" : e(n) + \"は\" + t[0] + \"文字以上でなければなりません。\";\n },\n not: function not(e) {\n var r = e.name;\n return \"“\" + e.value + \"” は許可された\" + r + \"ではありません。\";\n },\n number: function number(r) {\n return e(r.name) + \"には数字のみ使用できます。\";\n },\n required: function required(r) {\n return e(r.name) + \"は必須項目です。\";\n },\n startsWith: function startsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” は有効な値で始まっていません。\" : \"有効な値で始まっていません。\";\n },\n url: function url(e) {\n e.name;\n return \"有効なURLを入力してください。\";\n }\n};\n\nfunction j(e) {\n var r;\n e.extend({\n locales: (r = {}, r.ja = z, r)\n });\n}\n\nvar w = {\n accepted: function accepted(e) {\n return e.name + \" 승인해 주세요.\";\n },\n after: function after(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" \" + a[0] + \" 이후이어야 합니다.\" : e(n) + \" 미래의 날짜이어야 합니다.\";\n },\n alpha: function alpha(r) {\n return e(r.name) + \" 알파벳만 사용할 수 있습니다.\";\n },\n alphanumeric: function alphanumeric(r) {\n return e(r.name) + \" 문자와 숫자만 사용할 수 있습니다.\";\n },\n before: function before(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" \" + a[0] + \" 이전이어야 합니다.\" : e(n) + \"이전이어야 합니다.\";\n },\n between: function between(r) {\n var n = r.name,\n a = r.value,\n t = r.args,\n i = !(!Array.isArray(t) || !t[2]) && t[2];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" \" + t[0] + \"와 \" + t[1] + \"사이이어야 합니다.\" : e(n) + \" \" + t[0] + \"자애서 \" + t[1] + \"자 사이이어야 합니다.\";\n },\n confirm: function confirm(r) {\n var n = r.name;\n r.args;\n return e(n) + \" 일치하지 않습니다.\";\n },\n date: function date(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" 유효한 날짜 형식이 아닙니다. 다음과 같은 형식으로 입력해 주세요: \" + a[0] : e(n) + \"올바른 날짜 형식이 아닙니다.\";\n },\n default: function _default(e) {\n e.name;\n return \"유효하지 않은 값입니다.\";\n },\n email: function email(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” 유효한 이메일 주소가 아닙니다.\" : \"유효한 이메일 주소를 입력해 주세요.\";\n },\n endsWith: function endsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"”으로 끝내야합니다.\" : \"유효한 값으로 끝나지 않습니다.\";\n },\n in: function _in(r) {\n var n = r.name,\n a = r.value;\n return \"string\" == typeof a && a ? \"“\" + e(a) + \"” 허용된 \" + n + \" 아닙니다.\" : n + \" 허용된 값이 아닙니다.\";\n },\n matches: function matches(r) {\n return e(r.name) + \" 허용 된 값이 아닙니다.\";\n },\n max: function max(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return n + \" \" + t[0] + \"개의 항목만 선택 가능합니다.\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" \" + t[0] + \"이하이어야 합니다.\" : e(n) + \" \" + t[0] + \"자 이하이어야 합니다.\";\n },\n mime: function mime(r) {\n var n = r.name,\n a = r.args;\n return e(n) + \" 다음과 같은 파일 형식이어야 합니다: \" + (a[0] || \"허용되는 파일 형식이 아닙니다.\");\n },\n min: function min(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return n + \" \" + t[0] + \" 이상 선택해 주세요.\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" \" + t[0] + \"이상이어야 합니다.\" : e(n) + \" \" + t[0] + \"자 이상이어야 합니다.\";\n },\n not: function not(e) {\n var r = e.name;\n return \"“\" + e.value + \"” 허용된 \" + r + \" 아닙니다.\";\n },\n number: function number(r) {\n return e(r.name) + \" 숫자만 사용 가능합니다.\";\n },\n required: function required(r) {\n return e(r.name) + \" 필수 항목입니다.\";\n },\n startsWith: function startsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” 유효한 값으로 시작하지 않습니다.\" : \"유효한 값으로 시작하지 않습니다.\";\n },\n url: function url(e) {\n e.name;\n return \"유효한 URL을 입력해 주세요.\";\n }\n};\n\nfunction x(e) {\n var r;\n e.extend({\n locales: (r = {}, r.ko = w, r)\n });\n}\n\nvar W = {\n accepted: function accepted(e) {\n return \"Vennligst aksepter \" + e.name + \".\";\n },\n after: function after(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" må være etter \" + a[0] + \".\" : e(n) + \" må være på en senere dato.\";\n },\n alpha: function alpha(r) {\n return e(r.name) + \" kan kun inneholde bokstaver.\";\n },\n alphanumeric: function alphanumeric(r) {\n return e(r.name) + \" kan kun inneholde bokstaver og tall.\";\n },\n before: function before(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" må være før \" + a[0] + \".\" : e(n) + \" må være en tidligere dato.\";\n },\n between: function between(r) {\n var n = r.name,\n a = r.value,\n t = r.args,\n i = !(!Array.isArray(t) || !t[2]) && t[2];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" må være mellom \" + t[0] + \" og \" + t[1] + \".\" : e(n) + \" må være mellom \" + t[0] + \" og \" + t[1] + \" tegn.\";\n },\n confirm: function confirm(r) {\n var n = r.name;\n r.args;\n return e(n) + \" matcher ikke.\";\n },\n date: function date(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" er ikke gyldig. Vennligst bruk formatet \" + a[0] : e(n) + \" er ikke en gyldig dato.\";\n },\n default: function _default(e) {\n e.name;\n return \"Dette feltet er ikke gyldig.\";\n },\n email: function email(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” er ikke en gyldig e-postadresse.\" : \"Vennligst skriv inn en gyldig e-postadresse.\";\n },\n endsWith: function endsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” slutter ikke med en gyldig verdi.\" : \"Dette feltet slutter ikke med en gyldig verdi.\";\n },\n in: function _in(r) {\n var n = r.name,\n a = r.value;\n return \"string\" == typeof a && a ? \"“\" + e(a) + \"” er ikke et tillatt \" + n + \".\" : \"Dette er ikke et tillatt \" + n + \".\";\n },\n matches: function matches(r) {\n return e(r.name) + \" er ikke en gyldig verdi.\";\n },\n max: function max(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Du kan kun velge \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" må være mindre eller lik \" + t[0] + \".\" : e(n) + \" må være mindre eller lik \" + t[0] + \" tegn.\";\n },\n mime: function mime(r) {\n var n = r.name,\n a = r.args;\n return e(n) + \" må være av typen: \" + (a[0] || \"Ingen tillatte filformater.\");\n },\n min: function min(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Du skal velge minst \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" må være større enn \" + t[0] + \".\" : e(n) + \" må være minst \" + t[0] + \" tegn.\";\n },\n not: function not(e) {\n var r = e.name;\n return \"“\" + e.value + \"” er ikke et tillatt \" + r + \".\";\n },\n number: function number(r) {\n return e(r.name) + \" må være et tall.\";\n },\n required: function required(r) {\n return e(r.name) + \" er påkrevd.\";\n },\n startsWith: function startsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” starter ikke med en gyldig verdi.\" : \"Dette feltet starter ikke med en gyldig verdi.\";\n },\n url: function url(e) {\n e.name;\n return \"Vennligst skriv inn en gyldig URL.\";\n }\n};\n\nfunction q(e) {\n var r;\n e.extend({\n locales: (r = {}, r.nb = W, r)\n });\n}\n\nvar P = {\n accepted: function accepted(e) {\n return \"Sta \" + e.name + \" toe.\";\n },\n after: function after(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" moet na \" + a[0] + \" zijn.\" : e(n) + \" moet een latere datum zijn.\";\n },\n alpha: function alpha(r) {\n return e(r.name) + \" mag enkel letters bevatten.\";\n },\n alphanumeric: function alphanumeric(r) {\n return e(r.name) + \" mag enkel letters en cijfers bevatten.\";\n },\n before: function before(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" moet voor \" + a[0] + \" zijn.\" : e(n) + \" moet een eerdere datum zijn.\";\n },\n between: function between(r) {\n var n = r.name,\n a = r.value,\n t = r.args,\n i = !(!Array.isArray(t) || !t[2]) && t[2];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" moet tussen \" + t[0] + \" en \" + t[1] + \" zitten.\" : e(n) + \" moet tussen \" + t[0] + \" en \" + t[1] + \" lang zijn.\";\n },\n confirm: function confirm(r) {\n var n = r.name;\n r.args;\n return e(n) + \" komt niet overeen.\";\n },\n date: function date(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" is geen geldige datum, het juiste format is \" + a[0] : e(n) + \" is geen geldige datum.\";\n },\n default: function _default(e) {\n e.name;\n return \"De invoer voor dit veld is niet geldig\";\n },\n email: function email(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” is geen geldig e-mailadres.\" : \"Voer een geldig e-mailadres in.\";\n },\n endsWith: function endsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” eindigt niet op een geldige waarde.\" : \"Dit veld eindigt niet op een geldige waarde.\";\n },\n in: function _in(r) {\n var n = r.name,\n a = r.value;\n return \"string\" == typeof a && a ? \"“\" + e(a) + \"” is niet toegestaan als \" + n + \".\" : \"Deze \" + n + \" is niet toegestaan.\";\n },\n matches: function matches(r) {\n return e(r.name) + \" is niet toegestaan.\";\n },\n max: function max(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Je kunt maximaal \" + t[0] + \" selecteren als \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" moet kleiner of gelijk zijn aan \" + t[0] + \".\" : e(n) + \" mag maximaal \" + t[0] + \" karakters bevatten.\";\n },\n mime: function mime(r) {\n var n = r.name,\n a = r.args;\n return e(n) + \" moet van dit type zijn: \" + (a[0] || \"Bestanden zijn niet toegestaan\");\n },\n min: function min(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Je moet tenminste \" + t[0] + \" selecteren als \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" moet groter zijn dan \" + t[0] + \".\" : e(n) + \" moet tenminste \" + t[0] + \" karakters bevatten.\";\n },\n not: function not(e) {\n var r = e.name;\n return \"“\" + e.value + \"” is geen geldige \" + r + \".\";\n },\n number: function number(r) {\n return e(r.name) + \" moet een getal zijn.\";\n },\n required: function required(r) {\n return e(r.name) + \" is verplicht.\";\n },\n startsWith: function startsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” begint niet met een geldige waarde.\" : \"Dit veld begint niet met een geldige waarde.\";\n },\n url: function url(e) {\n e.name;\n return \"Voer een geldige URL in.\";\n }\n};\n\nfunction D(e) {\n var r;\n e.extend({\n locales: (r = {}, r.nl = P, r)\n });\n}\n\nvar T = {\n accepted: function accepted(e) {\n return \"Prašome priimti \" + e.name + \".\";\n },\n after: function after(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" turi būti po \" + a[0] + \".\" : e(n) + \" turi būti vėlesnė data.\";\n },\n alpha: function alpha(r) {\n return e(r.name) + \" gali būti tik abėcėlės raidės.\";\n },\n alphanumeric: function alphanumeric(r) {\n return e(r.name) + \" gali būti tik raidės ir skaičiai.\";\n },\n before: function before(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" turi būti prieš \" + a[0] + \".\" : e(n) + \" turi būti ankstesnė data.\";\n },\n between: function between(r) {\n var n = r.name,\n a = r.value,\n t = r.args,\n i = !(!Array.isArray(t) || !t[2]) && t[2];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" turi būti tarp \" + t[0] + \" ir \" + t[1] + \".\" : e(n) + \" turi būti tarp \" + t[0] + \" ir \" + t[1] + \" simbolių ilgio.\";\n },\n confirm: function confirm(r) {\n var n = r.name;\n r.args;\n return e(n) + \" nesutampa.\";\n },\n date: function date(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" neteisinga data, naudokite formatą \" + a[0] : e(n) + \" neteisinga data.\";\n },\n default: function _default(e) {\n e.name;\n return \"Šis laukas nėra validus.\";\n },\n email: function email(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” nėra teisingas el. pašto adresas.\" : \"Prašome įvesti galiojantį el. pašto adresą.\";\n },\n endsWith: function endsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” nesibaigia galiojančia reikšme.\" : \"Šis laukas nesibaigia galiojančia reikšme.\";\n },\n in: function _in(r) {\n var n = r.name,\n a = r.value;\n return \"string\" == typeof a && a ? \"“\" + e(a) + \"” nėra tinkamas \" + n + \".\" : \"Tai netinkamas \" + n + \".\";\n },\n matches: function matches(r) {\n return e(r.name) + \" nėra leistina reikšmė.\";\n },\n max: function max(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Galite pasirinkti tik \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" turi būti mažesnis arba lygus \" + t[0] + \".\" : e(n) + \" turi turėti mažiau arba lygiai \" + t[0] + \" simbolių.\";\n },\n mime: function mime(r) {\n var n = r.name,\n a = r.args;\n return e(n) + \" turi būti tokio tipo: \" + (a[0] || \"Neleidžiami jokie failų formatai.\");\n },\n min: function min(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Turi būti ne mažiau nei \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" turi būti ne mažiau nei \" + t[0] + \".\" : e(n) + \" turi būti ne mažiau \" + t[0] + \" simbolių.\";\n },\n not: function not(e) {\n var r = e.name;\n return \"“\" + e.value + \"” nėra leistinas \" + r + \".\";\n },\n number: function number(r) {\n return e(r.name) + \" turi būti skaičius.\";\n },\n required: function required(r) {\n return e(r.name) + \" yra privalomas.\";\n },\n startsWith: function startsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” neprasideda galiojančia reikšme.\" : \"Šis laukas neprasideda galiojančia reikšme.\";\n },\n url: function url(e) {\n e.name;\n return \"Įveskite galiojantį URL.\";\n }\n};\n\nfunction L(e) {\n var r;\n e.extend({\n locales: (r = {}, r.lt = T, r)\n });\n}\n\nvar U = {\n accepted: function accepted(e) {\n return \"Proszę zaakceptować \" + e.name + \".\";\n },\n after: function after(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" musi być po \" + a[0] + \".\" : e(n) + \" musi być przyszłą datą.\";\n },\n alpha: function alpha(r) {\n return e(r.name) + \" może zawierać wyłącznie znaki alfabetyczne.\";\n },\n alphanumeric: function alphanumeric(r) {\n return e(r.name) + \" może zawierać wyłącznie liczby i litery.\";\n },\n before: function before(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" musi być przed \" + a[0] + \".\" : e(n) + \" musi być wczesniejszą datą.\";\n },\n between: function between(r) {\n var n = r.name,\n a = r.value,\n t = r.args,\n i = !(!Array.isArray(t) || !t[2]) && t[2];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" musi być pomiędzy \" + t[0] + \" oraz \" + t[1] + \".\" : e(n) + \" musi być pomiędzy \" + t[0] + \" oraz \" + t[1] + \" znaków.\";\n },\n confirm: function confirm(r) {\n var n = r.name;\n r.args;\n return e(n) + \" nie pasuje.\";\n },\n date: function date(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" nie jest poprawną datą, proszę użyć formatu \" + a[0] : e(n) + \" nie jest poprawną datą.\";\n },\n default: function _default(e) {\n e.name;\n return \"Pole nie jest poprawne.\";\n },\n email: function email(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” nie jest poprawnym adresem email.\" : \"Proszę podać poprawny adres email.\";\n },\n endsWith: function endsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” nie kończy się z poprawną wartością.\" : \"Pole nie kończy się z poprawną wartością.\";\n },\n in: function _in(r) {\n var n = r.name,\n a = r.value;\n return \"string\" == typeof a && a ? \"“\" + e(a) + \"” jest niedozwoloną wartością pola \" + n + \".\" : \"Wartość jest niedozwolona w polu \" + n + \".\";\n },\n matches: function matches(r) {\n return e(r.name) + \" nie jest dozwoloną wartością.\";\n },\n max: function max(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Możesz wybrać maksymalnie \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" musi być mniejszy lub równy \" + t[0] + \".\" : e(n) + \" musi być mniejszy lub równy \" + t[0] + \" znaków.\";\n },\n mime: function mime(r) {\n var n = r.name,\n a = r.args;\n return e(n) + \" musi być typem: \" + (a[0] || \"Niedozwolone formaty plików.\");\n },\n min: function min(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Potrzeba przynajmniej \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" musi mieć przynajmniej \" + t[0] + \".\" : e(n) + \" musi mieć przynajmniej \" + t[0] + \" znaków.\";\n },\n not: function not(e) {\n var r = e.name;\n return \"“\" + e.value + \"” jest niedozwoloną wartością \" + r + \".\";\n },\n number: function number(r) {\n return e(r.name) + \" musi być liczbą.\";\n },\n required: function required(r) {\n return e(r.name) + \" jest wymagane.\";\n },\n startsWith: function startsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” nie zaczyna się z poprawną wartością.\" : \"Pole nie zaczyna się z poprawną wartością.\";\n },\n url: function url(e) {\n e.name;\n return \"Proszę wprowadzić poprawny adres URL.\";\n }\n};\n\nfunction V(e) {\n var r;\n e.extend({\n locales: (r = {}, r.pl = U, r)\n });\n}\n\nvar E = {\n accepted: function accepted(e) {\n return \"Por favor aceite o \" + e.name + \".\";\n },\n after: function after(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" deve ser posterior a \" + a[0] + \".\" : e(n) + \" deve ser uma data posterior.\";\n },\n alpha: function alpha(r) {\n return e(r.name) + \" pode conter apenas letras.\";\n },\n alphanumeric: function alphanumeric(r) {\n return e(r.name) + \" pode conter apenas letras e números.\";\n },\n before: function before(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" deve ser antes de \" + a[0] + \".\" : e(n) + \" deve ser uma data anterior.\";\n },\n between: function between(r) {\n var n = r.name,\n a = r.value,\n t = r.args,\n i = !(!Array.isArray(t) || !t[2]) && t[2];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" deve ser entre \" + t[0] + \" e \" + t[1] + \".\" : e(n) + \" deve ter entre \" + t[0] + \" e \" + t[1] + \" caracteres.\";\n },\n confirm: function confirm(r) {\n var n = r.name;\n r.args;\n return e(n) + \" não corresponde.\";\n },\n date: function date(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" não é válido, por favor use o formato \" + a[0] : e(n) + \" não é uma data válida.\";\n },\n default: function _default(e) {\n e.name;\n return \"Este campo não é válido.\";\n },\n email: function email(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” não é um e-mail válido.\" : \"Por favor informe um e-mail válido.\";\n },\n endsWith: function endsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” não termina com um valor válido.\" : \"Este campo não termina com um valor válido.\";\n },\n in: function _in(r) {\n var n = r.name,\n a = r.value;\n return \"string\" == typeof a && a ? \"“\" + e(a) + \"” não é um \" + n + \" permitido.\" : \"Isso não é um \" + n + \" permitido.\";\n },\n matches: function matches(r) {\n return e(r.name) + \" não é um valor válido.\";\n },\n max: function max(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Você deve selecionar apenas \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" deve ser menor ou igual a \" + t[0] + \".\" : e(n) + \" deve ter no máximo \" + t[0] + \" caracteres.\";\n },\n mime: function mime(r) {\n var n = r.name,\n a = r.args;\n return e(n) + \" deve ser no formato: \" + (a[0] || \"Formato de arquivo não permitido.\");\n },\n min: function min(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Você deve selecionar pelo menos \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" deve ser maior que \" + t[0] + \".\" : e(n) + \" deve ter mais de \" + t[0] + \" caracteres.\";\n },\n not: function not(e) {\n var r = e.name;\n return \"“\" + e.value + \"” não é um \" + r + \" válido.\";\n },\n number: function number(r) {\n return e(r.name) + \" deve ser um número.\";\n },\n required: function required(r) {\n return e(r.name) + \" é obrigatório.\";\n },\n startsWith: function startsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” não começa com um valor válido.\" : \"Este campo não começa com um valor válido.\";\n },\n url: function url(e) {\n e.name;\n return \"Por favor informe uma URL válida.\";\n }\n};\n\nfunction R(e) {\n var r;\n e.extend({\n locales: (r = {}, r.pt = E, r)\n });\n}\n\nvar M = {\n accepted: function accepted(e) {\n return \"Пожалуйста, подтвердите \" + e.name + \".\";\n },\n after: function after(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" должна быть после \" + a[0] + \".\" : e(n) + \" должна быть дата после.\";\n },\n alpha: function alpha(r) {\n return e(r.name) + \" может содержать только буквы.\";\n },\n alphanumeric: function alphanumeric(r) {\n return e(r.name) + \" может содержать только буквы и цифры.\";\n },\n before: function before(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" должно быть раньше \" + a[0] + \".\" : e(n) + \" должно быть раньше.\";\n },\n between: function between(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n !(!Array.isArray(t) || !t[2]) && t[2];\n return isNaN(a), e(n) + \" должно быть между \" + t[0] + \" и \" + t[1] + \".\";\n },\n confirm: function confirm(r) {\n var n = r.name;\n r.args;\n return e(n) + \" не совпадает.\";\n },\n date: function date(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" не является допустимой датой, пожалуйста, используйте формат \" + a[0] : e(n) + \" не является допустимой датой.\";\n },\n default: function _default(e) {\n e.name;\n return \"Это поле не является допустимым.\";\n },\n email: function email(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” недействительный адрес электронной почты.\" : \"Пожалуйста, введите действительный адрес электронной почты.\";\n },\n endsWith: function endsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” не заканчивается допустимым значением.\" : \"Это поле не заканчивается допустимым значением.\";\n },\n in: function _in(r) {\n var n = r.name,\n a = r.value;\n return \"string\" == typeof a && a ? \"“\" + e(a) + \"” является ошибочным для \" + n + \".\" : \"Выбранное значение для \" + n + \" ошибочно.\";\n },\n matches: function matches(r) {\n return e(r.name) + \" не совпадает.\";\n },\n max: function max(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Вы можете выбрать только \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" должно быть меньше или равно \" + t[0] + \".\" : \"Количество символов \" + e(n) + \" должно быть меньше или равно \" + t[0] + \".\";\n },\n mime: function mime(r) {\n var n = r.name,\n a = r.args;\n return e(n) + \" должно быть файлом одного из следующих типов: \" + (a[0] || \"Не допустимые форматы файлов.\");\n },\n min: function min(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Должно быть не менее \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" должно быть не менее \" + t[0] + \".\" : \"Количество символов \" + e(n) + \" должно быть не менее \" + t[0] + \".\";\n },\n not: function not(e) {\n var r = e.name;\n return \"“\" + e.value + \"” не является допустимым \" + r + \".\";\n },\n number: function number(r) {\n return e(r.name) + \" должны быть числом.\";\n },\n required: function required(r) {\n return e(r.name) + \" обязательное поле.\";\n },\n startsWith: function startsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” должно начинаться действительным значением.\" : \"Поле должно начинаться действительным значением.\";\n },\n url: function url(e) {\n e.name;\n return \"Пожалуйста, укажите действительный URL.\";\n }\n};\n\nfunction B(e) {\n var r;\n e.extend({\n locales: (r = {}, r.ru = M, r)\n });\n}\n\nvar F = {\n accepted: function accepted(e) {\n return \"Prosím príjmi \" + e.name + \".\";\n },\n after: function after(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" musí byť neskôr ako \" + a[0] + \".\" : \"Pre \" + e(n) + \" je potrebné zvoliť neskorší dátum.\";\n },\n alpha: function alpha(r) {\n return e(r.name) + \" môže obsahovať len písmená.\";\n },\n alphanumeric: function alphanumeric(r) {\n return e(r.name) + \" môže obsahovať len písmená a čísla.\";\n },\n before: function before(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" musí byť skôr než \" + a[0] + \".\" : \"Pre \" + e(n) + \" je potrebné zvoliť skorší dátum.\";\n },\n between: function between(r) {\n var n = r.name,\n a = r.value,\n t = r.args,\n i = !(!Array.isArray(t) || !t[2]) && t[2];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" musí byť medzi \" + t[0] + \" a \" + t[1] + \".\" : e(n) + \" musí mať od \" + t[0] + \" do \" + t[1] + \" znakov.\";\n },\n confirm: function confirm(r) {\n var n = r.name;\n r.args;\n return e(n) + \" sa nezhoduje.\";\n },\n date: function date(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" neobsahuje korektný dátum. Je potrebné použiť formát \" + a[0] : e(n) + \" neobsahuje korektný dátum.\";\n },\n default: function _default(e) {\n e.name;\n return \"Toto pole obsahuje chybu.\";\n },\n email: function email(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” nie je platná emailová adresa.\" : \"Prosím, uveď platnú emailovú adresu..\";\n },\n endsWith: function endsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” nekončí povolenou hodnotou.\" : \"Toto pole nekončí povolenou hodnotou.\";\n },\n in: function _in(r) {\n var n = r.name,\n a = r.value;\n return \"string\" == typeof a && a ? \"“\" + e(a) + \"” nie je povolená hodnota pre \" + n + \".\" : \"Toto nie je povolená hodnota pre \" + n + \".\";\n },\n matches: function matches(r) {\n return e(r.name) + \" nie je povolená hodnota.\";\n },\n max: function max(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Je možné vybrať najviac \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" musí byť nanajvýš \" + t[0] + \".\" : e(n) + \" musí obsahovať nanajvýš \" + t[0] + \" znakov.\";\n },\n mime: function mime(r) {\n var n = r.name,\n a = r.args;\n return e(n) + \" musí byť typu: \" + (a[0] || \"Žiadne formáty nie sú povolené.\");\n },\n min: function min(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Je potrebné vybrať aspoň \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" musí byť aspoň \" + t[0] + \".\" : e(n) + \" musí obsahovať aspoň \" + t[0] + \" znakov.\";\n },\n not: function not(e) {\n var r = e.name;\n return \"“\" + e.value + \"” nie je povolená hodnota pre \" + r + \".\";\n },\n number: function number(r) {\n return e(r.name) + \" musí byť číslo.\";\n },\n required: function required(r) {\n return e(r.name) + \" je povinné pole.\";\n },\n startsWith: function startsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” nezačína povolenou hodnotou.\" : \"Toto pole nezačína povolenou hodnotou.\";\n },\n url: function url(e) {\n e.name;\n return \"Prosím, uveď platnú URL adresu.\";\n }\n};\n\nfunction Z(e) {\n var r;\n e.extend({\n locales: (r = {}, r.sk = F, r)\n });\n}\n\nvar C = {\n accepted: function accepted(e) {\n return \"Molimo Vas da prihvatite \" + e.name + \".\";\n },\n after: function after(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" mora biti posle \" + a[0] + \".\" : e(n) + \" mora biti kasniji datum.\";\n },\n alpha: function alpha(r) {\n return e(r.name) + \" može sadržati samo abecedne karaktere.\";\n },\n alphanumeric: function alphanumeric(r) {\n return e(r.name) + \" može sadržati samo slova i brojeve.\";\n },\n before: function before(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" mora biti pre \" + a[0] + \".\" : e(n) + \" mora biti raniji datum.\";\n },\n between: function between(r) {\n var n = r.name,\n a = r.value,\n t = r.args,\n i = !(!Array.isArray(t) || !t[2]) && t[2];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" mora biti između \" + t[0] + \" i \" + t[1] + \".\" : e(n) + \" mora biti između \" + t[0] + \" i \" + t[1] + \" karaktera.\";\n },\n confirm: function confirm(r) {\n var n = r.name;\n r.args;\n return e(n) + \" se ne podudara.\";\n },\n date: function date(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" nije važeći datum, koristite format \" + a[0] : e(n) + \" nije važeći datum.\";\n },\n default: function _default(e) {\n e.name;\n return \"Ovo polje nije važeće.\";\n },\n email: function email(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” nije važeća e-mail adresa.\" : \"Unesite ispravnu e-mail adresu.\";\n },\n endsWith: function endsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” se ne završava važećom vrednošću.\" : \"Ovo polje se ne završava važećom vrednošću.\";\n },\n in: function _in(r) {\n var n = r.name,\n a = r.value;\n return \"string\" == typeof a && a ? \"“\" + e(a) + \"” nije dozvoljeno \" + n + \".\" : \"Ovo nije dozvoljeno \" + n + \".\";\n },\n matches: function matches(r) {\n return e(r.name) + \" nije dozvoljena vrednost za ovo polje.\";\n },\n max: function max(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Možete odabrati samo \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" mora biti manje ili jednako \" + t[0] + \".\" : e(n) + \" mora biti manje ili jednako \" + t[0] + \" karaktera.\";\n },\n mime: function mime(r) {\n var n = r.name,\n a = r.args;\n return e(n) + \" mora biti jedan sledecih formata: \" + (a[0] || \"Format datoteke nije dozvoljen.\");\n },\n min: function min(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Treba Vam bar \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" treba da ima najmanje \" + t[0] + \".\" : e(n) + \" treba da ima najmanje \" + t[0] + \" karaktera.\";\n },\n not: function not(e) {\n var r = e.name;\n return \"“\" + e.value + \"” nije dozvoljena vrednost za polje \" + r + \".\";\n },\n number: function number(r) {\n return e(r.name) + \" mora biti broj.\";\n },\n required: function required(r) {\n return e(r.name) + \" je obavezno polje.\";\n },\n startsWith: function startsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” ne počinje sa važećom vrednošću.\" : \"Ovo polje ne počinje sa važećom vrednošću.\";\n },\n url: function url(e) {\n e.name;\n return \"Unesite važeći url.\";\n }\n};\n\nfunction I(e) {\n var r;\n e.extend({\n locales: (r = {}, r.sr = C, r)\n });\n}\n\nvar J = {\n accepted: function accepted(e) {\n return \"Var vänlig acceptera \" + e.name + \".\";\n },\n after: function after(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" måste vara efter \" + a[0] + \".\" : e(n) + \" måste vara ett senare datum.\";\n },\n alpha: function alpha(r) {\n return e(r.name) + \" får bara innehålla bokstäver.\";\n },\n alphanumeric: function alphanumeric(r) {\n return e(r.name) + \" får bara innehålla bokstäver och nummer.\";\n },\n before: function before(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" måste vara innan \" + a[0] + \".\" : e(n) + \" måste vara ett tidigare datum.\";\n },\n between: function between(r) {\n var n = r.name,\n a = r.value,\n t = r.args,\n i = !(!Array.isArray(t) || !t[2]) && t[2];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" måste vara mellan \" + t[0] + \" och \" + t[1] + \".\" : e(n) + \" måste vara mellan \" + t[0] + \" och \" + t[1] + \" tecken .\";\n },\n confirm: function confirm(r) {\n var n = r.name;\n r.args;\n return e(n) + \" matchar inte.\";\n },\n date: function date(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" är inte ett giltigt datum, var vänlig och använd formatet \" + a[0] : e(n) + \" är inte ett giltigt datum.\";\n },\n default: function _default(e) {\n e.name;\n return \"Fältet är inte giltigt.\";\n },\n email: function email(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” är inte en giltigt e-postadress.\" : \"Var vänlig och ange en giltig e-postadress.\";\n },\n endsWith: function endsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” slutar inte med ett giltigt värde.\" : \"Detta fält slutar inte med ett giltigt värde.\";\n },\n in: function _in(r) {\n var n = r.name,\n a = r.value;\n return \"string\" == typeof a && a ? \"“\" + e(a) + \"” är inte ett tillåtet \" + n + \".\" : \"Detta är inte ett tillåtet \" + n + \".\";\n },\n matches: function matches(r) {\n return e(r.name) + \" är inte ett tillåtet värde.\";\n },\n max: function max(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Du får bara välja \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" måste vara mer än eller lika med \" + t[0] + \".\" : e(n) + \" måste vara mindre än eller lika med \" + t[0] + \" tecken.\";\n },\n mime: function mime(r) {\n var n = r.name,\n a = r.args;\n return e(n) + \" måste vara av typen: \" + (a[0] || \"Inga filformat tillåtna.\");\n },\n min: function min(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Du måste välja minst \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" måste vara minst \" + t[0] + \".\" : e(n) + \" måste åtminstone vara \" + t[0] + \" tecken långt.\";\n },\n not: function not(e) {\n var r = e.name;\n return \"“\" + e.value + \"” är inte tillåtet \" + r + \".\";\n },\n number: function number(r) {\n return e(r.name) + \" måste vara ett nummer.\";\n },\n required: function required(r) {\n return e(r.name) + \" är obligatoriskt.\";\n },\n startsWith: function startsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” börjar inte med ett giltigt värde.\" : \"Detta fält börjar inte med ett giltigt värde.\";\n },\n url: function url(e) {\n e.name;\n return \"Vänligen ange en giltig url.\";\n }\n};\n\nfunction K(e) {\n var r;\n e.extend({\n locales: (r = {}, r.sv = J, r)\n });\n}\n\nvar S = {\n accepted: function accepted(r) {\n return \"กรุณายอมรับ \" + e(r.name);\n },\n after: function after(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" ต้องเป็นวันที่หลังจาก \" + a[0] : e(n) + \" ต้องเป็นวันที่ยังไม่มาถึง\";\n },\n alpha: function alpha(r) {\n return e(r.name) + \" มีได้เฉพาะตัวอักษรเท่านั้น\";\n },\n alphanumeric: function alphanumeric(r) {\n return e(r.name) + \" มีได้เฉพาะตัวอักษรและตัวเลขเท่านั้น\";\n },\n before: function before(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" ต้องเป็นวันที่ก่อนหน้า \" + a[0] : e(n) + \" ต้องเป็นวันที่ผ่านมาแล้ว\";\n },\n between: function between(r) {\n var n = r.name,\n a = r.value,\n t = r.args,\n i = !(!Array.isArray(t) || !t[2]) && t[2];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" ต้องมีค่าระหว่าง \" + t[0] + \" ถึง \" + t[1] : e(n) + \" ต้องมีความยาว \" + t[0] + \" ถึง \" + t[1] + \" ตัว\";\n },\n confirm: function confirm(r) {\n var n = r.name;\n r.args;\n return e(n) + \" ไม่ตรงกัน\";\n },\n date: function date(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" ไม่ใช่วันที่ที่ถูกต้อง กรุณาใช้ตามรูปแบบ \" + a[0] : e(n) + \" ไม่ใช่วันที่ที่ถูกต้อง\";\n },\n default: function _default(e) {\n e.name;\n return \"ข้อมูลช่องนี้ไม่ถูกต้อง\";\n },\n email: function email(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” ไม่ใช่ที่อยู่อีเมลที่ถูกต้อง\" : \"กรุณากรอกที่อยู่อีเมลให้ถูกต้อง\";\n },\n endsWith: function endsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” ไม่ได้ลงท้ายด้วยค่าที่ถูกต้อง\" : \"ข้อมูลช่องนี้ไม่ได้ลงท้ายด้วยค่าที่ถูกต้อง\";\n },\n in: function _in(r) {\n var n = r.name,\n a = r.value;\n return \"string\" == typeof a && a ? \"“\" + e(a) + \"” ไม่ใช่ \" + n + \" ที่อนุญาตให้กรอก\" : \"นี่ไม่ใช่ \" + n + \" ที่อนุญาตให้กรอก\";\n },\n matches: function matches(r) {\n return e(r.name) + \" ไม่ใช่ค่าที่อนุญาตให้กรอก\";\n },\n max: function max(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"คุณเลือกได้เพียง \" + t[0] + \" \" + n + \" เท่านั้น\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" ต้องมีไม่เกิน \" + t[0] : e(n) + \" ต้องยาวไม่เกิน \" + t[0] + \" ตัว\";\n },\n mime: function mime(r) {\n var n = r.name,\n a = r.args;\n return e(n) + \" ต้องเป็นประเภท: \" + (a[0] || \"ไม่มีประเภทไฟล์ที่อนุญาต\");\n },\n min: function min(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"คุณต้องเลือกอย่างน้อย \" + t[0] + \" \" + n;\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" ต้องมีค่าอย่างน้อย \" + t[0] : e(n) + \" ต้องยาวอย่างน้อย \" + t[0] + \" ตัว\";\n },\n not: function not(e) {\n var r = e.name;\n return \"“\" + e.value + \"” ไม่ใช่ค่า \" + r + \" ที่อนุญาตให้กรอก\";\n },\n number: function number(r) {\n return e(r.name) + \" ต้องเป็นตัวเลข\";\n },\n required: function required(r) {\n return e(r.name) + \" จำเป็นต้องกรอก\";\n },\n startsWith: function startsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” ไม่ได้ขึ้นต้นด้วยค่าที่ถูกต้อง\" : \"ข้อมูลช่องนี้ไม่ได้ขึ้นต้นด้วยค่าที่ถูกต้อง\";\n },\n url: function url(e) {\n e.name;\n return \"กรุณาแนบลิงก์ให้ถูกต้อง\";\n }\n};\n\nfunction O(e) {\n var r;\n e.extend({\n locales: (r = {}, r.th = S, r)\n });\n}\n\nvar Q = {\n accepted: function accepted(e) {\n return \"Lütfen \" + e.name + \"'i kabul edin..\";\n },\n after: function after(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \", \" + a[0] + \" sonrasında olmalıdır.\" : e(n) + \" daha sonraki bir tarih olmalıdır.\";\n },\n alpha: function alpha(r) {\n return e(r.name) + \" yalnızca alfabetik karakterler içerebilir.\";\n },\n alphanumeric: function alphanumeric(r) {\n return e(r.name) + \" yalnızca harf ve rakam içerebilir.\";\n },\n before: function before(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \", \" + a[0] + \" tarihinden önce olmalıdır.\" : e(n) + \" daha erken bir tarih olmalıdır.\";\n },\n between: function between(r) {\n var n = r.name,\n a = r.value,\n t = r.args,\n i = !(!Array.isArray(t) || !t[2]) && t[2];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \", \" + t[0] + \" ile \" + t[1] + \" arasında olmalıdır.\" : e(n) + \", \" + t[0] + \" ile \" + t[1] + \" karakter uzunluğunda olmalıdır.\";\n },\n confirm: function confirm(r) {\n var n = r.name;\n r.args;\n return e(n) + \" eşleşmiyor.\";\n },\n date: function date(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" geçerli bir tarih değil, lütfen \" + a[0] + \" biçimini kullanın\" : e(n) + \" geçerli bir tarih değil.\";\n },\n default: function _default(e) {\n e.name;\n return \"Bu alan geçerli değil.\";\n },\n email: function email(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” geçerli bir e-posta adresi değil.\" : \"Lütfen geçerli bir e-posta adresi giriniz.\";\n },\n endsWith: function endsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” geçerli bir değerle bitmiyor.\" : \"Bu alan geçerli bir değerle bitmiyor.\";\n },\n in: function _in(r) {\n var n = r.name,\n a = r.value;\n return \"string\" == typeof a && a ? \"“\" + e(a) + \"” izin verilen bir \" + n + \" değil.\" : \"Bu izin verilen bir \" + n + \" değil.\";\n },\n matches: function matches(r) {\n return e(r.name) + \" izin verilen bir değer değil.\";\n },\n max: function max(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Yalnızca \" + t[0] + \" \" + n + \" seçebilirsiniz.\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \", \" + t[0] + \" değerinden küçük veya ona eşit olmalıdır.\" : e(n) + \", \" + t[0] + \" karakterden küçük veya ona eşit olmalıdır.\";\n },\n mime: function mime(r) {\n var n = r.name,\n a = r.args;\n return e(n) + \" şu türde olmalıdır: \" + (a[0] || \"Dosya formatına izin verilmez.\");\n },\n min: function min(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"En az \" + t[0] + \" \" + n + \" gerekiyor.\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" en az \" + t[0] + \" olmalıdır.\" : e(n) + \" en az \" + t[0] + \" karakter uzunluğunda olmalıdır.\";\n },\n not: function not(e) {\n var r = e.name;\n return \"“\" + e.value + \"” izin verilen bir \" + r + \" değil.\";\n },\n number: function number(r) {\n return e(r.name) + \" bir sayı olmalıdır.\";\n },\n required: function required(r) {\n return e(r.name) + \" gerekli.\";\n },\n startsWith: function startsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” geçerli bir değerle başlamıyor.\" : \"Bu alan geçerli bir değerle başlamıyor.\";\n },\n url: function url(e) {\n e.name;\n return \"Lütfen geçerli bir url ekleyin.\";\n }\n};\n\nfunction Y(e) {\n var r;\n e.extend({\n locales: (r = {}, r.tr = Q, r)\n });\n}\n\nvar G = {\n accepted: function accepted(e) {\n return e.name + \" phải được chấp nhận.\";\n },\n after: function after(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" phải sau ngày \" + a[0] + \".\" : e(n) + \" phải sau ngày hôm nay.\";\n },\n alpha: function alpha(r) {\n return e(r.name) + \" chỉ có thể chứa các kí tự chữ.\";\n },\n alphanumeric: function alphanumeric(r) {\n return e(r.name) + \" chỉ có thể chứa các kí tự chữ và số.\";\n },\n before: function before(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" phải trước ngày ngày \" + a[0] + \".\" : e(n) + \" phải trước ngày hôm nay.\";\n },\n between: function between(r) {\n var n = r.name,\n a = r.value,\n t = r.args,\n i = !(!Array.isArray(t) || !t[2]) && t[2];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" phải có giá trị nằm trong khoảng giữa \" + t[0] + \" and \" + t[1] + \".\" : e(n) + \" phải có giá trị dài từ \" + t[0] + \" đến \" + t[1] + \" ký tự.\";\n },\n confirm: function confirm(r) {\n var n = r.name;\n r.args;\n return e(n) + \" không khớp.\";\n },\n date: function date(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" không phải là định dạng của ngày, vui lòng sử dụng định dạng \" + a[0] : e(n) + \" không phải là định dạng của ngày.\";\n },\n default: function _default(e) {\n e.name;\n return \"Trường này không hợp lệ.\";\n },\n email: function email(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” phải là một địa chỉ email hợp lệ.\" : \"Vui lòng nhập địa chỉ email hợp lệ.\";\n },\n endsWith: function endsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” phải kết thúc bằng giá trị hợp lệ.\" : \"Trường này phải kết thúc bằng giá trị hợp lệ.\";\n },\n in: function _in(r) {\n var n = r.name,\n a = r.value;\n return \"string\" == typeof a && a ? \"“\" + e(a) + \"” phải khớp với \" + n + \".\" : n + \" phải khớp với giá trị cho phép.\";\n },\n matches: function matches(r) {\n return e(r.name) + \" phải khớp với giá trị cho phép.\";\n },\n max: function max(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Bạn chỉ có thể chọn \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" phải nhỏ hơn hoặc bằng \" + t[0] + \".\" : e(n) + \" phải nhỏ hơn hoặc bằng \" + t[0] + \" ký tự.\";\n },\n mime: function mime(r) {\n var n = r.name,\n a = r.args;\n return e(n) + \" phải chứa kiểu tệp phù hợp: \" + (a[0] || \"Không có định dạng tệp nào được cho phép.\");\n },\n min: function min(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"Phải chứa ít nhất \" + t[0] + \" \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" phải chứa ít nhất \" + t[0] + \".\" : e(n) + \" phải chứa ít nhất \" + t[0] + \" ký tự.\";\n },\n not: function not(e) {\n var r = e.name;\n return \"“\" + e.value + \"” phải là \" + r + \" hợp lệ.\";\n },\n number: function number(r) {\n return e(r.name) + \" phải là số.\";\n },\n required: function required(r) {\n return e(r.name) + \" là bắt buộc.\";\n },\n startsWith: function startsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” phải bắt đầu bằng giá trị hợp lệ.\" : \"Trường này phải bắt đầu bằng giá trị hợp lệ.\";\n },\n url: function url(e) {\n e.name;\n return \"Vui lòng nhập đúng định dạng url.\";\n }\n};\n\nfunction H(e) {\n var r;\n e.extend({\n locales: (r = {}, r.vi = G, r)\n });\n}\n\nvar X = {\n accepted: function accepted(e) {\n return \"请同意\" + e.name + \"。\";\n },\n after: function after(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" 必须在 \" + a[0] + \" 之后。\" : e(n) + \" 必须是以后的日期。\";\n },\n alpha: function alpha(r) {\n return e(r.name) + \" 只能包含字母。\";\n },\n alphanumeric: function alphanumeric(r) {\n return e(r.name) + \" 只能包含字母或数字。\";\n },\n before: function before(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" 必须在 \" + a[0] + \" 之前\" : e(n) + \" 必须是以前的日期。\";\n },\n between: function between(r) {\n var n = r.name,\n a = r.value,\n t = r.args,\n i = !(!Array.isArray(t) || !t[2]) && t[2];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" 必须在 \" + t[0] + \" 和 \" + t[1] + \" 之间。\" : e(n) + \" 必须在 \" + t[0] + \" 和 \" + t[1] + \" 字符长度之间。\";\n },\n confirm: function confirm(r) {\n var n = r.name;\n r.args;\n return e(n) + \" 不匹配。\";\n },\n date: function date(r) {\n var n = r.name,\n a = r.args;\n return Array.isArray(a) && a.length ? e(n) + \" 日期无效,请使用 \" + a[0] + \" 格式。\" : e(n) + \" 日期无效。\";\n },\n default: function _default(e) {\n e.name;\n return \"此输入无效。\";\n },\n email: function email(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” 不是一个有效的电子邮箱地址。\" : \"请输入有效的电子邮箱地址。\";\n },\n endsWith: function endsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” 包含无效的结尾值。\" : \"无效的结尾值。\";\n },\n in: function _in(r) {\n var n = r.name,\n a = r.value;\n return \"string\" == typeof a && a ? \"“\" + e(a) + \"” 是 \" + n + \" 不允许的值。\" : n + \" 包含不允许的值。\";\n },\n matches: function matches(r) {\n return e(r.name) + \" 包含不允许的值。\";\n },\n max: function max(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"您最多可有 \" + t[0] + \" 个 \" + n + \"。\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" 必须小于或等于 \" + t[0] + \".\" : e(n) + \" 必须小于或等于 \" + t[0] + \" 字符长度.\";\n },\n mime: function mime(r) {\n var n = r.name,\n a = r.args;\n return e(n) + \" 格式必须是: \" + (a[0] || \"无允许文件格式\");\n },\n min: function min(r) {\n var n = r.name,\n a = r.value,\n t = r.args;\n if (Array.isArray(a)) return \"您需要最少 \" + t[0] + \" 个 \" + n + \".\";\n var i = !(!Array.isArray(t) || !t[1]) && t[1];\n return !isNaN(a) && \"length\" !== i || \"value\" === i ? e(n) + \" 最少是 \" + t[0] + \".\" : e(n) + \" 最少 \" + t[0] + \" 字符长度。\";\n },\n not: function not(e) {\n var r = e.name;\n return \"“\" + e.value + \"” 是 \" + r + \" 不被允许的值。\";\n },\n number: function number(r) {\n return e(r.name) + \" 必须是数字。\";\n },\n required: function required(r) {\n return e(r.name) + \" 是必填项。\";\n },\n startsWith: function startsWith(e) {\n e.name;\n var r = e.value;\n return r ? \"“\" + r + \"” 包含无效的起始值\" : \"无效的起始值\";\n },\n url: function url(e) {\n e.name;\n return \"请输入正确的网址。\";\n }\n};\n\nfunction $(e) {\n var r;\n e.extend({\n locales: (r = {}, r.zh = X, r)\n });\n}\n\nexport { n as ar, t as ca, u as cs, s as da, m as de, c as en, d as es, y as fr, A as he, b as hu, N as it, j as ja, x as ko, L as lt, q as nb, D as nl, V as pl, R as pt, B as ru, Z as sk, I as sr, K as sv, O as th, Y as tr, H as vi, $ as zh };","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nimport t from \"is-plain-object\";\nimport { en as e } from \"@braid/vue-formulate-i18n\";\n\nvar r = function r(t, e) {\n return {\n classification: t,\n component: \"FormulateInput\" + (e || t[0].toUpperCase() + t.substr(1))\n };\n},\n o = Object.assign({}, [\"text\", \"email\", \"number\", \"color\", \"date\", \"hidden\", \"month\", \"password\", \"search\", \"tel\", \"time\", \"url\", \"week\", \"datetime-local\"].reduce(function (t, e) {\n var o;\n return Object.assign({}, t, ((o = {})[e] = r(\"text\"), o));\n}, {}), {\n range: r(\"slider\"),\n textarea: r(\"textarea\", \"TextArea\"),\n checkbox: r(\"box\"),\n radio: r(\"box\"),\n submit: r(\"button\"),\n button: r(\"button\"),\n select: r(\"select\"),\n file: r(\"file\"),\n image: r(\"file\"),\n group: r(\"group\")\n});\n\nfunction i(t, e) {\n var r = {};\n\n for (var o in t) {\n r[o] = e(o, t[o]);\n }\n\n return r;\n}\n\nfunction n(t, e, r) {\n if (void 0 === r && (r = !1), t === e) return !0;\n if (!t || !e) return !1;\n if (\"object\" != _typeof(t) && \"object\" != _typeof(e)) return t === e;\n var o = Object.keys(t),\n i = Object.keys(e),\n s = o.length;\n if (i.length !== s) return !1;\n\n for (var a = 0; a < s; a++) {\n var l = o[a];\n if (!r && t[l] !== e[l] || r && !n(t[l], e[l], r)) return !1;\n }\n\n return !0;\n}\n\nfunction s(t) {\n return \"string\" == typeof t ? t.replace(/([_-][a-z0-9])/gi, function (e) {\n return 0 === t.indexOf(e) || /[_-]/.test(t[t.indexOf(e) - 1]) ? e : e.toUpperCase().replace(/[_-]/, \"\");\n }) : t;\n}\n\nfunction a(t) {\n return \"string\" == typeof t ? t[0].toUpperCase() + t.substr(1) : t;\n}\n\nfunction l(t) {\n return t ? \"string\" == typeof t ? [t] : Array.isArray(t) ? t : \"object\" == _typeof(t) ? Object.values(t) : [] : [];\n}\n\nfunction u(t, e) {\n return \"string\" == typeof t ? u(t.split(\"|\"), e) : Array.isArray(t) ? t.map(function (t) {\n return function (t, e) {\n if (\"function\" == typeof t) return [t, []];\n\n if (Array.isArray(t) && t.length) {\n var r = c((t = t.map(function (t) {\n return t;\n })).shift()),\n o = r[0],\n i = r[1];\n if (\"string\" == typeof o && e.hasOwnProperty(o)) return [e[o], t, o, i];\n if (\"function\" == typeof o) return [o, t, o, i];\n }\n\n if (\"string\" == typeof t && t) {\n var n = t.split(\":\"),\n s = c(n.shift()),\n a = s[0],\n l = s[1];\n if (e.hasOwnProperty(a)) return [e[a], n.length ? n.join(\":\").split(\",\") : [], a, l];\n throw new Error(\"Unknown validation rule \" + t);\n }\n\n return !1;\n }(t, e);\n }).filter(function (t) {\n return !!t;\n }) : [];\n}\n\nfunction c(t) {\n return /^[\\^]/.test(t.charAt(0)) ? [s(t.substr(1)), t.charAt(0)] : [s(t), null];\n}\n\nfunction d(t) {\n switch (_typeof(t)) {\n case \"symbol\":\n case \"number\":\n case \"string\":\n case \"boolean\":\n case \"undefined\":\n return !0;\n\n default:\n return null === t;\n }\n}\n\nfunction p(t, e) {\n return Object.prototype.hasOwnProperty.call(t, e);\n}\n\nfunction h(t, e) {\n return !p(t, \"__id\") || e ? Object.defineProperty(t, \"__id\", Object.assign(Object.create(null), {\n value: e || v(9)\n })) : t;\n}\n\nfunction f(t) {\n return \"number\" != typeof t && (void 0 === t || \"\" === t || null === t || !1 === t || Array.isArray(t) && !t.some(function (t) {\n return !f(t);\n }) || t && !Array.isArray(t) && \"object\" == _typeof(t) && f(Object.values(t)));\n}\n\nfunction m(t, e) {\n return Object.keys(t).reduce(function (r, o) {\n var i = s(o);\n return e.includes(i) && (r[i] = t[o]), r;\n }, {});\n}\n\nfunction v(t) {\n return void 0 === t && (t = 13), Math.random().toString(36).substring(2, t + 2);\n}\n\nvar x = /^(?:\\w+:)?\\/\\/(\\S+)$/,\n y = /^localhost[:?\\d]*(?:[^:?\\d]\\S*)?$/,\n g = /^[^\\s.]+\\.\\S{2,}$/;\n\nvar b = function b(t, e, r) {\n void 0 === r && (r = {}), this.input = t, this.fileList = t.files, this.files = [], this.options = Object.assign({}, {\n mimes: {}\n }, r), this.results = !1, this.context = e, this.dataTransferCheck(), e && e.uploadUrl && (this.options.uploadUrl = e.uploadUrl), this.uploadPromise = null, Array.isArray(this.fileList) ? this.rehydrateFileList(this.fileList) : this.addFileList(this.fileList);\n};\n\nb.prototype.rehydrateFileList = function (t) {\n var e = this,\n r = t.reduce(function (t, r) {\n var o = r[e.options ? e.options.fileUrlKey : \"url\"],\n i = !(!o || -1 === o.lastIndexOf(\".\")) && o.substr(o.lastIndexOf(\".\") + 1),\n n = e.options.mimes[i] || !1;\n return t.push(Object.assign({}, r, o ? {\n name: r.name || o.substr(o.lastIndexOf(\"/\") + 1 || 0),\n type: r.type ? r.type : n,\n previewData: o\n } : {})), t;\n }, []);\n this.addFileList(r), this.results = this.mapUUID(t);\n}, b.prototype.addFileList = function (t) {\n for (var e = this, r = function r(_r) {\n var o = t[_r],\n i = v();\n e.files.push({\n progress: !1,\n error: !1,\n complete: !1,\n justFinished: !1,\n name: o.name || \"file-upload\",\n file: o,\n uuid: i,\n path: !1,\n removeFile: function () {\n this.removeFile(i);\n }.bind(e),\n previewData: o.previewData || !1\n });\n }, o = 0; o < t.length; o++) {\n r(o);\n }\n}, b.prototype.hasUploader = function () {\n return !!this.context.uploader;\n}, b.prototype.uploaderIsAxios = function () {\n return !(!this.hasUploader() || \"function\" != typeof this.context.uploader.request || \"function\" != typeof this.context.uploader.get || \"function\" != typeof this.context.uploader.delete || \"function\" != typeof this.context.uploader.post);\n}, b.prototype.getUploader = function () {\n for (var t, e = [], r = arguments.length; r--;) {\n e[r] = arguments[r];\n }\n\n if (this.uploaderIsAxios()) {\n var o = new FormData();\n if (o.append(this.context.name || \"file\", e[0]), !1 === this.context.uploadUrl) throw new Error(\"No uploadURL specified: https://vueformulate.com/guide/inputs/file/#props\");\n return this.context.uploader.post(this.context.uploadUrl, o, {\n headers: {\n \"Content-Type\": \"multipart/form-data\"\n },\n onUploadProgress: function onUploadProgress(t) {\n e[1](Math.round(100 * t.loaded / t.total));\n }\n }).then(function (t) {\n return t.data;\n }).catch(function (t) {\n return e[2](t);\n });\n }\n\n return (t = this.context).uploader.apply(t, e);\n}, b.prototype.upload = function () {\n var t = this;\n return this.uploadPromise = this.uploadPromise ? this.uploadPromise.then(function () {\n return t.__performUpload();\n }) : this.__performUpload(), this.uploadPromise;\n}, b.prototype.__performUpload = function () {\n var t = this;\n return new Promise(function (e, r) {\n if (!t.hasUploader()) return r(new Error(\"No uploader has been defined\"));\n Promise.all(t.files.map(function (e) {\n return e.error = !1, e.complete = !!e.path, e.path ? Promise.resolve(e.path) : t.getUploader(e.file, function (r) {\n e.progress = r, t.context.rootEmit(\"file-upload-progress\", r), r >= 100 && (e.complete || (e.justFinished = !0, setTimeout(function () {\n e.justFinished = !1;\n }, t.options.uploadJustCompleteDuration)), e.complete = !0, t.context.rootEmit(\"file-upload-complete\", e));\n }, function (o) {\n e.progress = 0, e.error = o, e.complete = !0, t.context.rootEmit(\"file-upload-error\", o), r(o);\n }, t.options);\n })).then(function (r) {\n t.results = t.mapUUID(r), e(r);\n }).catch(function (t) {\n throw new Error(t);\n });\n });\n}, b.prototype.removeFile = function (t) {\n var e = this.files.length;\n\n if (this.files = this.files.filter(function (e) {\n return e && e.uuid !== t;\n }), Array.isArray(this.results) && (this.results = this.results.filter(function (e) {\n return e && e.__id !== t;\n })), this.context.performValidation(), window && this.fileList instanceof FileList && this.supportsDataTransfers) {\n var r = new DataTransfer();\n this.files.forEach(function (t) {\n return r.items.add(t.file);\n }), this.fileList = r.files, this.input.files = this.fileList;\n } else this.fileList = this.fileList.filter(function (e) {\n return e && e.__id !== t;\n });\n\n e > this.files.length && this.context.rootEmit(\"file-removed\", this.files);\n}, b.prototype.mergeFileList = function (t) {\n if (this.addFileList(t.files), this.supportsDataTransfers) {\n var e = new DataTransfer();\n this.files.forEach(function (t) {\n t.file instanceof File && e.items.add(t.file);\n }), this.fileList = e.files, this.input.files = this.fileList, t.files = new DataTransfer().files;\n }\n\n this.context.performValidation(), this.loadPreviews(), \"delayed\" !== this.context.uploadBehavior && this.upload();\n}, b.prototype.loadPreviews = function () {\n this.files.map(function (t) {\n if (!t.previewData && window && window.FileReader && /^image\\//.test(t.file.type)) {\n var e = new FileReader();\n e.onload = function (e) {\n return Object.assign(t, {\n previewData: e.target.result\n });\n }, e.readAsDataURL(t.file);\n }\n });\n}, b.prototype.dataTransferCheck = function () {\n try {\n new DataTransfer(), this.supportsDataTransfers = !0;\n } catch (t) {\n this.supportsDataTransfers = !1;\n }\n}, b.prototype.getFiles = function () {\n return this.files;\n}, b.prototype.mapUUID = function (t) {\n var e = this;\n return t.map(function (t, r) {\n return e.files[r].path = void 0 !== t && t, t && h(t, e.files[r].uuid);\n });\n}, b.prototype.toString = function () {\n var t = this.files.length ? this.files.length + \" files\" : \"empty\";\n return this.results ? JSON.stringify(this.results, null, \" \") : \"FileUpload(\" + t + \")\";\n};\n\nvar E,\n _ = {\n accepted: function accepted(t) {\n var e = t.value;\n return Promise.resolve([\"yes\", \"on\", \"1\", 1, !0, \"true\"].includes(e));\n },\n after: function after(t, e) {\n var r = t.value;\n void 0 === e && (e = !1);\n var o = Date.parse(e || new Date()),\n i = Date.parse(r);\n return Promise.resolve(!isNaN(i) && i > o);\n },\n alpha: function alpha(t, e) {\n var r = t.value;\n void 0 === e && (e = \"default\");\n var o = {\n default: /^[a-zA-ZÀ-ÖØ-öø-ÿĄąĆćĘꣳŃńŚśŹźŻż]+$/,\n latin: /^[a-zA-Z]+$/\n },\n i = o.hasOwnProperty(e) ? e : \"default\";\n return Promise.resolve(o[i].test(r));\n },\n alphanumeric: function alphanumeric(t, e) {\n var r = t.value;\n void 0 === e && (e = \"default\");\n var o = {\n default: /^[a-zA-Z0-9À-ÖØ-öø-ÿĄąĆćĘꣳŃńŚśŹźŻż]+$/,\n latin: /^[a-zA-Z0-9]+$/\n },\n i = o.hasOwnProperty(e) ? e : \"default\";\n return Promise.resolve(o[i].test(r));\n },\n before: function before(t, e) {\n var r = t.value;\n void 0 === e && (e = !1);\n var o = Date.parse(e || new Date()),\n i = Date.parse(r);\n return Promise.resolve(!isNaN(i) && i < o);\n },\n between: function between(t, e, r, o) {\n var i = t.value;\n return void 0 === e && (e = 0), void 0 === r && (r = 10), Promise.resolve(null !== e && null !== r && !isNaN(e) && !isNaN(r) && (!isNaN(i) && \"length\" !== o || \"value\" === o ? (i = Number(i), e = Number(e), r = Number(r), i > e && i < r) : (\"string\" == typeof i || \"length\" === o) && (i = isNaN(i) ? i : i.toString()).length > e && i.length < r));\n },\n confirm: function confirm(t, e) {\n var r,\n o,\n i = t.value,\n n = t.getGroupValues,\n s = t.name;\n return Promise.resolve((r = n(), (o = e) || (o = /_confirm$/.test(s) ? s.substr(0, s.length - 8) : s + \"_confirm\"), r[o] === i));\n },\n date: function date(t, e) {\n var r = t.value;\n return void 0 === e && (e = !1), Promise.resolve(e && \"string\" == typeof e ? function (t) {\n var e = \"^\" + t.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\") + \"$\",\n r = {\n MM: \"(0[1-9]|1[012])\",\n M: \"([1-9]|1[012])\",\n DD: \"([012][0-9]|3[01])\",\n D: \"([012]?[0-9]|3[01])\",\n YYYY: \"\\\\d{4}\",\n YY: \"\\\\d{2}\"\n };\n return new RegExp(Object.keys(r).reduce(function (t, e) {\n return t.replace(e, r[e]);\n }, e));\n }(e).test(r) : !isNaN(Date.parse(r)));\n },\n email: function email(t) {\n var e = t.value;\n return Promise.resolve(/^(([^<>()\\[\\]\\.,;:\\s@\\\"]+(\\.[^<>()\\[\\]\\.,;:\\s@\\\"]+)*)|(\\\".+\\\"))@(([^<>()[\\]\\.,;:\\s@\\\"]+\\.)+[^<>()[\\]\\.,;:\\s@\\\"]{2,})$/i.test(e));\n },\n endsWith: function endsWith(t) {\n for (var e = t.value, r = [], o = arguments.length - 1; o-- > 0;) {\n r[o] = arguments[o + 1];\n }\n\n return Promise.resolve(\"string\" == typeof e && r.length ? void 0 !== r.find(function (t) {\n return e.endsWith(t);\n }) : \"string\" == typeof e && 0 === r.length);\n },\n in: function _in(t) {\n for (var e = t.value, r = [], o = arguments.length - 1; o-- > 0;) {\n r[o] = arguments[o + 1];\n }\n\n return Promise.resolve(void 0 !== r.find(function (t) {\n return \"object\" == _typeof(t) ? n(t, e) : t === e;\n }));\n },\n matches: function matches(t) {\n for (var e = t.value, r = [], o = arguments.length - 1; o-- > 0;) {\n r[o] = arguments[o + 1];\n }\n\n return Promise.resolve(!!r.find(function (t) {\n return \"string\" == typeof t && \"/\" === t.substr(0, 1) && \"/\" === t.substr(-1) && (t = new RegExp(t.substr(1, t.length - 2))), t instanceof RegExp ? t.test(e) : t === e;\n }));\n },\n mime: function mime(t) {\n for (var e = t.value, r = [], o = arguments.length - 1; o-- > 0;) {\n r[o] = arguments[o + 1];\n }\n\n return Promise.resolve(function () {\n if (e instanceof b) for (var t = e.getFiles(), o = 0; o < t.length; o++) {\n var i = t[o].file;\n if (!r.includes(i.type)) return !1;\n }\n return !0;\n }());\n },\n min: function min(t, e, r) {\n var o = t.value;\n return void 0 === e && (e = 1), Promise.resolve(Array.isArray(o) ? (e = isNaN(e) ? e : Number(e), o.length >= e) : !isNaN(o) && \"length\" !== r || \"value\" === r ? (o = isNaN(o) ? o : Number(o)) >= e : (\"string\" == typeof o || \"length\" === r) && (o = isNaN(o) ? o : o.toString()).length >= e);\n },\n max: function max(t, e, r) {\n var o = t.value;\n return void 0 === e && (e = 10), Promise.resolve(Array.isArray(o) ? (e = isNaN(e) ? e : Number(e), o.length <= e) : !isNaN(o) && \"length\" !== r || \"value\" === r ? (o = isNaN(o) ? o : Number(o)) <= e : (\"string\" == typeof o || \"length\" === r) && (o = isNaN(o) ? o : o.toString()).length <= e);\n },\n not: function not(t) {\n for (var e = t.value, r = [], o = arguments.length - 1; o-- > 0;) {\n r[o] = arguments[o + 1];\n }\n\n return Promise.resolve(void 0 === r.find(function (t) {\n return \"object\" == _typeof(t) ? n(t, e) : t === e;\n }));\n },\n number: function number(t) {\n var e = t.value;\n return Promise.resolve(!isNaN(e));\n },\n required: function required(t, e) {\n var r = t.value;\n return void 0 === e && (e = \"pre\"), Promise.resolve(Array.isArray(r) ? !!r.length : r instanceof b ? r.getFiles().length > 0 : \"string\" == typeof r ? \"trim\" === e ? !!r.trim() : !!r : \"object\" != _typeof(r) || !!r && !!Object.keys(r).length);\n },\n startsWith: function startsWith(t) {\n for (var e = t.value, r = [], o = arguments.length - 1; o-- > 0;) {\n r[o] = arguments[o + 1];\n }\n\n return Promise.resolve(\"string\" == typeof e && r.length ? void 0 !== r.find(function (t) {\n return e.startsWith(t);\n }) : \"string\" == typeof e && 0 === r.length);\n },\n url: function url(t) {\n var e = t.value;\n return Promise.resolve(function (t) {\n if (\"string\" != typeof t) return !1;\n var e = t.match(x);\n if (!e) return !1;\n var r = e[1];\n return !!r && !(!y.test(r) && !g.test(r));\n }(e));\n },\n bail: function bail() {\n return Promise.resolve(!0);\n },\n optional: function optional(t) {\n var e = t.value;\n return Promise.resolve(!f(e));\n }\n},\n F = \"image/\",\n w = {\n csv: \"text/csv\",\n gif: F + \"gif\",\n jpg: F + \"jpeg\",\n jpeg: F + \"jpeg\",\n png: F + \"png\",\n pdf: \"application/pdf\",\n svg: F + \"svg+xml\"\n},\n O = [\"outer\", \"wrapper\", \"label\", \"element\", \"input\", \"help\", \"errors\", \"error\", \"decorator\", \"rangeValue\", \"uploadArea\", \"uploadAreaMask\", \"files\", \"file\", \"fileName\", \"fileAdd\", \"fileAddInput\", \"fileRemove\", \"fileProgress\", \"fileUploadError\", \"fileImagePreview\", \"fileImagePreviewImage\", \"fileProgressInner\", \"grouping\", \"groupRepeatable\", \"groupRepeatableRemove\", \"groupAddMore\", \"form\", \"formErrors\", \"formError\"],\n P = {\n hasErrors: function hasErrors(t) {\n return t.hasErrors;\n },\n hasValue: function hasValue(t) {\n return t.hasValue;\n },\n isValid: function isValid(t) {\n return t.isValid;\n }\n},\n V = function V(t, e, r) {\n var o = [];\n\n switch (e) {\n case \"label\":\n o.push(t + \"--\" + r.labelPosition);\n break;\n\n case \"element\":\n var i = \"group\" === r.classification ? \"group\" : r.type;\n o.push(t + \"--\" + i), \"group\" === i && o.push(\"formulate-input-group\");\n break;\n\n case \"help\":\n o.push(t + \"--\" + r.helpPosition);\n break;\n\n case \"form\":\n r.name && o.push(t + \"--\" + r.name);\n }\n\n return o;\n},\n A = (E = [\"\"].concat(Object.keys(P).map(function (t) {\n return a(t);\n})), O.reduce(function (t, e) {\n return t.concat(E.reduce(function (t, r) {\n return t.push(\"\" + e + r + \"Class\"), t;\n }, []));\n}, []));\n\nfunction S(t, e, r) {\n switch (_typeof(e)) {\n case \"string\":\n return e;\n\n case \"function\":\n return e(r, l(t));\n\n case \"object\":\n if (Array.isArray(e)) return l(t).concat(e);\n\n default:\n return t;\n }\n}\n\nfunction j(t) {\n return O.reduce(function (e, r) {\n var o;\n return Object.assign(e, ((o = {})[r] = function (t, e) {\n var r = t.replace(/[A-Z]/g, function (t) {\n return \"-\" + t.toLowerCase();\n }),\n o = \"formulate\" + ([\"form\", \"file\"].includes(r.substr(0, 4)) ? \"\" : \"-input\") + ([\"decorator\", \"range-value\"].includes(r) ? \"-element\" : \"\") + (\"outer\" !== r ? \"-\" + r : \"\");\n return \"input\" === r ? [] : [o].concat(V(o, t, e));\n }(r, t), o));\n }, {});\n}\n\nfunction $(t, e, r, o) {\n return new Promise(function (r, i) {\n var n = (o.fauxUploaderDuration || 1500) * (.5 + Math.random()),\n s = performance.now(),\n a = function a() {\n return setTimeout(function () {\n var o = performance.now() - s,\n i = Math.min(100, Math.round(o / n * 100));\n if (e(i), i >= 100) return r({\n url: \"http://via.placeholder.com/350x150.png\",\n name: t.name\n });\n a();\n }, 20);\n };\n\n a();\n });\n}\n\nfunction C(t, e) {\n var r = {};\n\n for (var o in t) {\n Object.prototype.hasOwnProperty.call(t, o) && -1 === e.indexOf(o) && (r[o] = t[o]);\n }\n\n return r;\n}\n\nvar k = {\n inheritAttrs: !1,\n functional: !0,\n render: function render(t, e) {\n for (var r = e.props, o = e.data, i = e.parent, n = e.children, s = i, a = (r.name, r.forceWrap), l = r.context, u = C(r, [\"name\", \"forceWrap\", \"context\"]); s && \"FormulateInput\" !== s.$options.name;) {\n s = s.$parent;\n }\n\n if (!s) return null;\n if (s.$scopedSlots && s.$scopedSlots[r.name]) return s.$scopedSlots[r.name](Object.assign({}, l, u));\n\n if (Array.isArray(n) && (n.length > 1 || a && n.length > 0)) {\n var c = o.attrs,\n d = (c.name, c.context, C(c, [\"name\", \"context\"]));\n return t(\"div\", Object.assign({}, o, {\n attrs: d\n }), n);\n }\n\n return Array.isArray(n) && 1 === n.length ? n[0] : null;\n }\n};\n\nfunction I(t, e, r) {\n if (void 0 === e && (e = 0), void 0 === r && (r = {}), t && \"object\" == _typeof(t) && !Array.isArray(t)) {\n var o = t.children;\n void 0 === o && (o = null);\n var i = t.component;\n void 0 === i && (i = \"FormulateInput\");\n var n = t.depth;\n void 0 === n && (n = 1);\n var s = t.key;\n void 0 === s && (s = null);\n\n var a = function (t, e) {\n var r = {};\n\n for (var o in t) {\n Object.prototype.hasOwnProperty.call(t, o) && -1 === e.indexOf(o) && (r[o] = t[o]);\n }\n\n return r;\n }(t, [\"children\", \"component\", \"depth\", \"key\"]),\n l = a.class || {};\n\n delete a.class;\n var u = {},\n c = Object.keys(a).reduce(function (t, e) {\n var r;\n return /^@/.test(e) ? Object.assign(t, ((r = {})[e.substr(1)] = a[e], r)) : t;\n }, {});\n Object.keys(c).forEach(function (t) {\n delete a[\"@\" + t], u[t] = function (t, e, r) {\n return function () {\n for (var o, i, n = [], s = arguments.length; s--;) {\n n[s] = arguments[s];\n }\n\n return \"function\" == typeof e ? e.call.apply(e, [this].concat(n)) : \"string\" == typeof e && p(r, e) ? (o = r[e]).call.apply(o, [this].concat(n)) : p(r, t) ? (i = r[t]).call.apply(i, [this].concat(n)) : void 0;\n };\n }(t, c[t], r);\n });\n var d = \"FormulateInput\" === i ? a.type || \"text\" : i,\n h = a.name || d || \"el\";\n s || (s = a.id ? a.id : \"FormulateInput\" !== i && \"string\" == typeof o ? d + \"-\" + function (t, e) {\n void 0 === e && (e = 0);\n\n for (var r = 3735928559 ^ e, o = 1103547991 ^ e, i = 0, n = void 0; i < t.length; i++) {\n n = t.charCodeAt(i), r = Math.imul(r ^ n, 2654435761), o = Math.imul(o ^ n, 1597334677);\n }\n\n return r = Math.imul(r ^ r >>> 16, 2246822507) ^ Math.imul(o ^ o >>> 13, 3266489909), 4294967296 * (2097151 & (o = Math.imul(o ^ o >>> 16, 2246822507) ^ Math.imul(r ^ r >>> 13, 3266489909))) + (r >>> 0);\n }(o) : d + \"-\" + h + \"-\" + n + (a.name ? \"\" : \"-\" + e));\n var f = Array.isArray(o) ? o.map(function (t) {\n return Object.assign(t, {\n depth: n + 1\n });\n }) : o;\n return Object.assign({\n key: s,\n depth: n,\n attrs: a,\n component: i,\n class: l,\n on: u\n }, f ? {\n children: f\n } : {});\n }\n\n return null;\n}\n\nvar R = {\n functional: !0,\n render: function render(t, e) {\n var r = e.props,\n o = e.listeners;\n return function t(e, r, o) {\n return Array.isArray(r) ? r.map(function (r, i) {\n var n = I(r, i, o);\n return e(n.component, {\n attrs: n.attrs,\n class: n.class,\n key: n.key,\n on: n.on\n }, n.children ? t(e, n.children, o) : null);\n }) : r;\n }(t, r.schema, o);\n }\n};\n\nfunction D(t, e) {\n var r = {};\n\n for (var o in t) {\n Object.prototype.hasOwnProperty.call(t, o) && -1 === e.indexOf(o) && (r[o] = t[o]);\n }\n\n return r;\n}\n\nvar L = function L(t) {\n this.registry = new Map(), this.errors = {}, this.ctx = t;\n};\n\nfunction N(t) {\n return new L(t).dataProps();\n}\n\nfunction M(t) {\n return {\n hasInitialValue: function hasInitialValue() {\n return this.formulateValue && \"object\" == _typeof(this.formulateValue) || this.values && \"object\" == _typeof(this.values) || this.isGrouping && \"object\" == _typeof(this.context.model[this.index]);\n },\n isVmodeled: function isVmodeled() {\n return !!(this.$options.propsData.hasOwnProperty(\"formulateValue\") && this._events && Array.isArray(this._events.input) && this._events.input.length);\n },\n initialValues: function initialValues() {\n return p(this.$options.propsData, \"formulateValue\") && \"object\" == _typeof(this.formulateValue) ? Object.assign({}, this.formulateValue) : p(this.$options.propsData, \"values\") && \"object\" == _typeof(this.values) ? Object.assign({}, this.values) : this.isGrouping && \"object\" == _typeof(this.context.model[this.index]) ? this.context.model[this.index] : {};\n },\n mergedGroupErrors: function mergedGroupErrors() {\n var t = this,\n e = /^([^.\\d+].*?)\\.(\\d+\\..+)$/;\n return Object.keys(this.mergedFieldErrors).filter(function (t) {\n return e.test(t);\n }).reduce(function (r, o) {\n var i,\n n = o.match(e),\n s = n[1],\n a = n[2];\n return r[s] || (r[s] = {}), Object.assign(r[s], ((i = {})[a] = t.mergedFieldErrors[o], i)), r;\n }, {});\n }\n };\n}\n\nfunction B(t) {\n void 0 === t && (t = []);\n var e = {\n applyInitialValues: function applyInitialValues() {\n this.hasInitialValue && (this.proxy = Object.assign({}, this.initialValues));\n },\n setFieldValue: function setFieldValue(t, e) {\n var r;\n\n if (void 0 === e) {\n var o = this.proxy,\n i = (o[t], D(o, [String(t)]));\n this.proxy = i;\n } else Object.assign(this.proxy, ((r = {})[t] = e, r));\n\n this.$emit(\"input\", Object.assign({}, this.proxy));\n },\n valueDeps: function valueDeps(t) {\n var e = this;\n return Object.keys(this.proxy).reduce(function (r, o) {\n return Object.defineProperty(r, o, {\n enumerable: !0,\n get: function get() {\n var r = e.registry.get(o);\n return e.deps.set(t, e.deps.get(t) || new Set()), r && (e.deps.set(r, e.deps.get(r) || new Set()), e.deps.get(r).add(t.name)), e.deps.get(t).add(o), e.proxy[o];\n }\n });\n }, Object.create(null));\n },\n validateDeps: function validateDeps(t) {\n var e = this;\n this.deps.has(t) && this.deps.get(t).forEach(function (t) {\n return e.registry.has(t) && e.registry.get(t).performValidation();\n });\n },\n hasValidationErrors: function hasValidationErrors() {\n return Promise.all(this.registry.reduce(function (t, e, r) {\n return t.push(e.performValidation() && e.getValidationErrors()), t;\n }, [])).then(function (t) {\n return t.some(function (t) {\n return t.hasErrors;\n });\n });\n },\n showErrors: function showErrors() {\n this.childrenShouldShowErrors = !0, this.registry.map(function (t) {\n t.formShouldShowErrors = !0;\n });\n },\n hideErrors: function hideErrors() {\n this.childrenShouldShowErrors = !1, this.registry.map(function (t) {\n t.formShouldShowErrors = !1, t.behavioralErrorVisibility = !1;\n });\n },\n setValues: function setValues(t) {\n var e = this;\n Array.from(new Set(Object.keys(t || {}).concat(Object.keys(this.proxy)))).forEach(function (r) {\n var o = e.registry.has(r) && e.registry.get(r),\n i = t ? t[r] : void 0;\n o && !n(o.proxy, i, !0) && (o.context.model = i), n(i, e.proxy[r], !0) || e.setFieldValue(r, i);\n });\n },\n updateValidation: function updateValidation(t) {\n p(this.registry.errors, t.name) && (this.registry.errors[t.name] = t.hasErrors), this.$emit(\"validation\", t);\n },\n addErrorObserver: function addErrorObserver(t) {\n this.errorObservers.find(function (e) {\n return t.callback === e.callback;\n }) || (this.errorObservers.push(t), \"form\" === t.type ? t.callback(this.mergedFormErrors) : \"group\" === t.type && p(this.mergedGroupErrors, t.field) ? t.callback(this.mergedGroupErrors[t.field]) : p(this.mergedFieldErrors, t.field) && t.callback(this.mergedFieldErrors[t.field]));\n },\n removeErrorObserver: function removeErrorObserver(t) {\n this.errorObservers = this.errorObservers.filter(function (e) {\n return e.callback !== t;\n });\n }\n };\n return Object.keys(e).reduce(function (r, o) {\n var i;\n return t.includes(o) ? r : Object.assign({}, r, ((i = {})[o] = e[o], i));\n }, {});\n}\n\nfunction U(t, e) {\n void 0 === e && (e = []);\n var r = {\n formulateSetter: t.setFieldValue,\n formulateRegister: t.register,\n formulateDeregister: t.deregister,\n formulateFieldValidation: t.updateValidation,\n getFormValues: t.valueDeps,\n getGroupValues: t.valueDeps,\n validateDependents: t.validateDeps,\n observeErrors: t.addErrorObserver,\n removeErrorObserver: t.removeErrorObserver\n };\n return Object.keys(r).filter(function (t) {\n return !e.includes(t);\n }).reduce(function (t, e) {\n var o;\n return Object.assign(t, ((o = {})[e] = r[e], o));\n }, {});\n}\n\nL.prototype.add = function (t, e) {\n var r;\n return this.registry.set(t, e), this.errors = Object.assign({}, this.errors, ((r = {})[t] = e.getErrorObject().hasErrors, r)), this;\n}, L.prototype.remove = function (t) {\n this.ctx.deps.delete(this.registry.get(t)), this.ctx.deps.forEach(function (e) {\n return e.delete(t);\n });\n var e = this.ctx.keepModelData;\n !e && this.registry.has(t) && \"inherit\" !== this.registry.get(t).keepModelData && (e = this.registry.get(t).keepModelData), this.ctx.preventCleanup && (e = !0), this.registry.delete(t);\n var r = this.errors,\n o = (r[t], D(r, [String(t)]));\n\n if (this.errors = o, !e) {\n var i = this.ctx.proxy,\n n = (i[t], D(i, [String(t)]));\n this.ctx.uuid && h(n, this.ctx.uuid), this.ctx.proxy = n, this.ctx.$emit(\"input\", this.ctx.proxy);\n }\n\n return this;\n}, L.prototype.has = function (t) {\n return this.registry.has(t);\n}, L.prototype.get = function (t) {\n return this.registry.get(t);\n}, L.prototype.map = function (t) {\n var e = {};\n return this.registry.forEach(function (r, o) {\n var i;\n return Object.assign(e, ((i = {})[o] = t(r, o), i));\n }), e;\n}, L.prototype.keys = function () {\n return Array.from(this.registry.keys());\n}, L.prototype.register = function (t, e) {\n var r = this;\n if (p(e.$options.propsData, \"ignored\")) return !1;\n if (this.registry.has(t)) return this.ctx.$nextTick(function () {\n return !r.registry.has(t) && r.register(t, e);\n }), !1;\n this.add(t, e);\n var o = p(e.$options.propsData, \"formulateValue\"),\n i = p(e.$options.propsData, \"value\"),\n s = this.ctx.debounce || this.ctx.debounceDelay || this.ctx.context && this.ctx.context.debounceDelay;\n s && !p(e.$options.propsData, \"debounce\") && (e.debounceDelay = s), o || !this.ctx.hasInitialValue || f(this.ctx.initialValues[t]) ? !o && !i || n(e.proxy, this.ctx.initialValues[t], !0) || this.ctx.setFieldValue(t, e.proxy) : e.context.model = this.ctx.initialValues[t], this.childrenShouldShowErrors && (e.formShouldShowErrors = !0);\n}, L.prototype.reduce = function (t, e) {\n return this.registry.forEach(function (r, o) {\n e = t(e, r, o);\n }), e;\n}, L.prototype.dataProps = function () {\n var t = this;\n return {\n proxy: {},\n registry: this,\n register: this.register.bind(this),\n deregister: function deregister(e) {\n return t.remove(e);\n },\n childrenShouldShowErrors: !1,\n errorObservers: [],\n deps: new Map(),\n preventCleanup: !1\n };\n};\n\nvar G = function G(t) {\n this.form = t;\n};\n\nfunction T(t, e, r, o, i, n, s, a, l, u) {\n \"boolean\" != typeof s && (l = a, a = s, s = !1);\n var c,\n d = \"function\" == typeof r ? r.options : r;\n if (t && t.render && (d.render = t.render, d.staticRenderFns = t.staticRenderFns, d._compiled = !0, i && (d.functional = !0)), o && (d._scopeId = o), n ? (c = function c(t) {\n (t = t || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || \"undefined\" == typeof __VUE_SSR_CONTEXT__ || (t = __VUE_SSR_CONTEXT__), e && e.call(this, l(t)), t && t._registeredComponents && t._registeredComponents.add(n);\n }, d._ssrRegister = c) : e && (c = s ? function (t) {\n e.call(this, u(t, this.$root.$options.shadowRoot));\n } : function (t) {\n e.call(this, a(t));\n }), c) if (d.functional) {\n var p = d.render;\n\n d.render = function (t, e) {\n return c.call(e), p(t, e);\n };\n } else {\n var h = d.beforeCreate;\n d.beforeCreate = h ? [].concat(h, c) : [c];\n }\n return r;\n}\n\nG.prototype.hasValidationErrors = function () {\n return this.form.hasValidationErrors();\n}, G.prototype.values = function () {\n var t = this;\n return new Promise(function (e, r) {\n var o = [],\n i = function t(e) {\n if (\"object\" != _typeof(e)) return e;\n var r = Array.isArray(e) ? [] : {};\n\n for (var o in e) {\n e[o] instanceof b || d(e[o]) ? r[o] = e[o] : r[o] = t(e[o]);\n }\n\n return r;\n }(t.form.proxy),\n n = function n(e) {\n \"object\" == _typeof(t.form.proxy[e]) && t.form.proxy[e] instanceof b && o.push(t.form.proxy[e].upload().then(function (t) {\n var r;\n return Object.assign(i, ((r = {})[e] = t, r));\n }));\n };\n\n for (var s in i) {\n n(s);\n }\n\n Promise.all(o).then(function () {\n return e(i);\n }).catch(function (t) {\n return r(t);\n });\n });\n};\n\nvar q = {\n name: \"FormulateForm\",\n inheritAttrs: !1,\n provide: function provide() {\n return Object.assign({}, U(this, [\"getGroupValues\"]), {\n observeContext: this.addContextObserver,\n removeContextObserver: this.removeContextObserver\n });\n },\n model: {\n prop: \"formulateValue\",\n event: \"input\"\n },\n props: {\n name: {\n type: [String, Boolean],\n default: !1\n },\n formulateValue: {\n type: Object,\n default: function _default() {\n return {};\n }\n },\n values: {\n type: [Object, Boolean],\n default: !1\n },\n errors: {\n type: [Object, Boolean],\n default: !1\n },\n formErrors: {\n type: Array,\n default: function _default() {\n return [];\n }\n },\n schema: {\n type: [Array, Boolean],\n default: !1\n },\n keepModelData: {\n type: [Boolean, String],\n default: !1\n },\n invalidMessage: {\n type: [Boolean, Function, String],\n default: !1\n },\n debounce: {\n type: [Boolean, Number],\n default: !1\n }\n },\n data: function data() {\n return Object.assign({}, N(this), {\n formShouldShowErrors: !1,\n contextObservers: [],\n namedErrors: [],\n namedFieldErrors: {},\n isLoading: !1,\n hasFailedSubmit: !1\n });\n },\n computed: Object.assign({}, M(), {\n schemaListeners: function schemaListeners() {\n var t = this.$listeners;\n t.submit;\n return function (t, e) {\n var r = {};\n\n for (var o in t) {\n Object.prototype.hasOwnProperty.call(t, o) && -1 === e.indexOf(o) && (r[o] = t[o]);\n }\n\n return r;\n }(t, [\"submit\"]);\n },\n pseudoProps: function pseudoProps() {\n return m(this.$attrs, A.filter(function (t) {\n return /^form/.test(t);\n }));\n },\n attributes: function attributes() {\n var t = this,\n e = Object.keys(this.$attrs).filter(function (e) {\n return !p(t.pseudoProps, s(e));\n }).reduce(function (e, r) {\n var o;\n return Object.assign({}, e, ((o = {})[r] = t.$attrs[r], o));\n }, {});\n return \"string\" == typeof this.name && Object.assign(e, {\n name: this.name\n }), e;\n },\n hasErrors: function hasErrors() {\n return Object.values(this.registry.errors).some(function (t) {\n return t;\n });\n },\n isValid: function isValid() {\n return !this.hasErrors;\n },\n formContext: function formContext() {\n return {\n errors: this.mergedFormErrors,\n pseudoProps: this.pseudoProps,\n hasErrors: this.hasErrors,\n value: this.proxy,\n hasValue: !f(this.proxy),\n isValid: this.isValid,\n isLoading: this.isLoading,\n classes: this.classes\n };\n },\n classes: function classes() {\n return this.$formulate.classes(Object.assign({}, this.$props, this.pseudoProps, {\n value: this.proxy,\n errors: this.mergedFormErrors,\n hasErrors: this.hasErrors,\n hasValue: !f(this.proxy),\n isValid: this.isValid,\n isLoading: this.isLoading,\n type: \"form\",\n classification: \"form\",\n attrs: this.$attrs\n }));\n },\n invalidErrors: function invalidErrors() {\n if (this.hasFailedSubmit && this.hasErrors) switch (_typeof(this.invalidMessage)) {\n case \"string\":\n return [this.invalidMessage];\n\n case \"object\":\n return Array.isArray(this.invalidMessage) ? this.invalidMessage : [];\n\n case \"function\":\n var t = this.invalidMessage(this.failingFields);\n return Array.isArray(t) ? t : [t];\n }\n return [];\n },\n mergedFormErrors: function mergedFormErrors() {\n return this.formErrors.concat(this.namedErrors).concat(this.invalidErrors);\n },\n mergedFieldErrors: function mergedFieldErrors() {\n var t = {};\n if (this.errors) for (var e in this.errors) {\n t[e] = l(this.errors[e]);\n }\n\n for (var r in this.namedFieldErrors) {\n t[r] = l(this.namedFieldErrors[r]);\n }\n\n return t;\n },\n hasFormErrorObservers: function hasFormErrorObservers() {\n return !!this.errorObservers.filter(function (t) {\n return \"form\" === t.type;\n }).length;\n },\n failingFields: function failingFields() {\n var t = this;\n return Object.keys(this.registry.errors).reduce(function (e, r) {\n var o;\n return Object.assign({}, e, t.registry.errors[r] ? ((o = {})[r] = t.registry.get(r), o) : {});\n }, {});\n }\n }),\n watch: Object.assign({}, {\n mergedFieldErrors: {\n handler: function handler(t) {\n this.errorObservers.filter(function (t) {\n return \"input\" === t.type;\n }).forEach(function (e) {\n return e.callback(t[e.field] || []);\n });\n },\n immediate: !0\n },\n mergedGroupErrors: {\n handler: function handler(t) {\n this.errorObservers.filter(function (t) {\n return \"group\" === t.type;\n }).forEach(function (e) {\n return e.callback(t[e.field] || {});\n });\n },\n immediate: !0\n }\n }, {\n formulateValue: {\n handler: function handler(t) {\n this.isVmodeled && t && \"object\" == _typeof(t) && this.setValues(t);\n },\n deep: !0\n },\n mergedFormErrors: function mergedFormErrors(t) {\n this.errorObservers.filter(function (t) {\n return \"form\" === t.type;\n }).forEach(function (e) {\n return e.callback(t);\n });\n }\n }),\n created: function created() {\n this.$formulate.register(this), this.applyInitialValues(), this.$emit(\"created\", this);\n },\n destroyed: function destroyed() {\n this.$formulate.deregister(this);\n },\n methods: Object.assign({}, B(), {\n applyErrors: function applyErrors(t) {\n var e = t.formErrors,\n r = t.inputErrors;\n this.namedErrors = e, this.namedFieldErrors = r;\n },\n addContextObserver: function addContextObserver(t) {\n this.contextObservers.find(function (e) {\n return e === t;\n }) || (this.contextObservers.push(t), t(this.formContext));\n },\n removeContextObserver: function removeContextObserver(t) {\n this.contextObservers.filter(function (e) {\n return e !== t;\n });\n },\n registerErrorComponent: function registerErrorComponent(t) {\n this.errorComponents.includes(t) || this.errorComponents.push(t);\n },\n formSubmitted: function formSubmitted() {\n var t = this;\n\n if (!this.isLoading) {\n this.isLoading = !0, this.showErrors();\n var e = new G(this),\n r = this.$listeners[\"submit-raw\"] || this.$listeners.submitRaw,\n o = \"function\" == typeof r ? r(e) : Promise.resolve(e);\n return (o instanceof Promise ? o : Promise.resolve(o)).then(function (t) {\n var r = t instanceof G ? t : e;\n return r.hasValidationErrors().then(function (t) {\n return [r, t];\n });\n }).then(function (e) {\n var r = e[0];\n return e[1] || \"function\" != typeof t.$listeners.submit ? t.onFailedValidation() : r.values().then(function (e) {\n t.hasFailedSubmit = !1;\n var r = t.$listeners.submit(e);\n return (r instanceof Promise ? r : Promise.resolve()).then(function () {\n return e;\n });\n });\n }).finally(function () {\n t.isLoading = !1;\n });\n }\n },\n onFailedValidation: function onFailedValidation() {\n return this.hasFailedSubmit = !0, this.$emit(\"failed-validation\", Object.assign({}, this.failingFields)), this.$formulate.failedValidation(this);\n }\n })\n},\n H = function H() {\n var t = this,\n e = t.$createElement,\n r = t._self._c || e;\n return r(\"form\", t._b({\n class: t.classes.form,\n on: {\n submit: function submit(e) {\n return e.preventDefault(), t.formSubmitted(e);\n }\n }\n }, \"form\", t.attributes, !1), [t.schema ? r(\"FormulateSchema\", t._g({\n attrs: {\n schema: t.schema\n }\n }, t.schemaListeners)) : t._e(), t._v(\" \"), t.hasFormErrorObservers ? t._e() : r(\"FormulateErrors\", {\n attrs: {\n context: t.formContext\n }\n }), t._v(\" \"), t._t(\"default\", null, null, t.formContext)], 2);\n};\n\nH._withStripped = !0;\nvar W = T({\n render: H,\n staticRenderFns: []\n}, void 0, q, void 0, !1, void 0, !1, void 0, void 0, void 0);\nvar Y = {\n context: function context() {\n return J.call(this, Object.assign({}, {\n addLabel: this.logicalAddLabel,\n removeLabel: this.logicalRemoveLabel,\n attributes: this.elementAttributes,\n blurHandler: Z.bind(this),\n classification: this.classification,\n component: this.component,\n debounceDelay: this.debounceDelay,\n disableErrors: this.disableErrors,\n errors: this.explicitErrors,\n formShouldShowErrors: this.formShouldShowErrors,\n getValidationErrors: this.getValidationErrors.bind(this),\n groupErrors: this.mergedGroupErrors,\n hasGivenName: this.hasGivenName,\n hasValue: this.hasValue,\n hasLabel: this.label && \"button\" !== this.classification,\n hasValidationErrors: this.hasValidationErrors.bind(this),\n help: this.help,\n helpPosition: this.logicalHelpPosition,\n id: this.id || this.defaultId,\n ignored: p(this.$options.propsData, \"ignored\"),\n isValid: this.isValid,\n imageBehavior: this.imageBehavior,\n label: this.label,\n labelPosition: this.logicalLabelPosition,\n limit: this.limit === 1 / 0 ? this.limit : parseInt(this.limit, 10),\n name: this.nameOrFallback,\n minimum: parseInt(this.minimum, 10),\n performValidation: this.performValidation.bind(this),\n pseudoProps: this.pseudoProps,\n preventWindowDrops: this.preventWindowDrops,\n removePosition: this.mergedRemovePosition,\n repeatable: this.repeatable,\n rootEmit: this.$emit.bind(this),\n rules: this.ruleDetails,\n setErrors: this.setErrors.bind(this),\n showValidationErrors: this.showValidationErrors,\n slotComponents: this.slotComponents,\n slotProps: this.slotProps,\n type: this.type,\n uploadBehavior: this.uploadBehavior,\n uploadUrl: this.mergedUploadUrl,\n uploader: this.uploader || this.$formulate.getUploader(),\n validationErrors: this.validationErrors,\n value: this.value,\n visibleValidationErrors: this.visibleValidationErrors,\n isSubField: this.isSubField,\n classes: this.classes\n }, this.typeContext));\n },\n nameOrFallback: function nameOrFallback() {\n if (!0 === this.name && \"button\" !== this.classification) {\n var t = this.id || this.elementAttributes.id.replace(/[^0-9]/g, \"\");\n return this.type + \"_\" + t;\n }\n\n if (!1 === this.name || \"button\" === this.classification && !0 === this.name) return !1;\n return this.name;\n },\n hasGivenName: function hasGivenName() {\n return \"boolean\" != typeof this.name;\n },\n typeContext: function typeContext() {\n var t = this;\n\n switch (this.classification) {\n case \"select\":\n return {\n options: z.call(this, this.options),\n optionGroups: !!this.optionGroups && i(this.optionGroups, function (e, r) {\n return z.call(t, r);\n }),\n placeholder: this.$attrs.placeholder || !1\n };\n\n case \"slider\":\n return {\n showValue: !!this.showValue\n };\n\n default:\n return this.options ? {\n options: z.call(this, this.options)\n } : {};\n }\n },\n elementAttributes: function elementAttributes() {\n var t = Object.assign({}, this.filteredAttributes);\n this.id ? t.id = this.id : t.id = this.defaultId;\n this.hasGivenName && (t.name = this.name);\n this.help && !p(t, \"aria-describedby\") && (t[\"aria-describedby\"] = t.id + \"-help\");\n !this.classes.input || Array.isArray(this.classes.input) && !this.classes.input.length || (t.class = this.classes.input);\n return t;\n },\n logicalLabelPosition: function logicalLabelPosition() {\n if (this.labelPosition) return this.labelPosition;\n\n switch (this.classification) {\n case \"box\":\n return \"after\";\n\n default:\n return \"before\";\n }\n },\n logicalHelpPosition: function logicalHelpPosition() {\n if (this.helpPosition) return this.helpPosition;\n\n switch (this.classification) {\n case \"group\":\n return \"before\";\n\n default:\n return \"after\";\n }\n },\n mergedRemovePosition: function mergedRemovePosition() {\n return \"group\" === this.type && (this.removePosition || \"before\");\n },\n mergedUploadUrl: function mergedUploadUrl() {\n return this.uploadUrl || this.$formulate.getUploadUrl();\n },\n mergedGroupErrors: function mergedGroupErrors() {\n var t = this,\n e = Object.keys(this.groupErrors).concat(Object.keys(this.localGroupErrors)),\n r = /^(\\d+)\\.(.*)$/;\n return Array.from(new Set(e)).filter(function (t) {\n return r.test(t);\n }).reduce(function (e, o) {\n var i,\n n = o.match(r),\n s = n[1],\n a = n[2];\n p(e, s) || (e[s] = {});\n var u = Array.from(new Set(l(t.groupErrors[o]).concat(l(t.localGroupErrors[o]))));\n return e[s] = Object.assign(e[s], ((i = {})[a] = u, i)), e;\n }, {});\n },\n hasValue: function hasValue() {\n var t = this,\n e = this.proxy;\n if (\"box\" === this.classification && this.isGrouped || \"select\" === this.classification && p(this.filteredAttributes, \"multiple\")) return Array.isArray(e) ? e.some(function (e) {\n return e === t.value;\n }) : this.value === e;\n return !f(e);\n },\n visibleValidationErrors: function visibleValidationErrors() {\n return this.showValidationErrors && this.validationErrors.length ? this.validationErrors : [];\n },\n slotComponents: function slotComponents() {\n var t = this.$formulate.slotComponent.bind(this.$formulate);\n return {\n addMore: t(this.type, \"addMore\"),\n buttonContent: t(this.type, \"buttonContent\"),\n errors: t(this.type, \"errors\"),\n file: t(this.type, \"file\"),\n help: t(this.type, \"help\"),\n label: t(this.type, \"label\"),\n prefix: t(this.type, \"prefix\"),\n remove: t(this.type, \"remove\"),\n repeatable: t(this.type, \"repeatable\"),\n suffix: t(this.type, \"suffix\"),\n uploadAreaMask: t(this.type, \"uploadAreaMask\")\n };\n },\n logicalAddLabel: function logicalAddLabel() {\n if (\"file\" === this.classification) return !0 === this.addLabel ? \"+ Add \" + a(this.type) : this.addLabel;\n\n if (\"boolean\" == typeof this.addLabel) {\n var t = this.label || this.name;\n return \"+ \" + (\"string\" == typeof t ? t + \" \" : \"\") + \" Add\";\n }\n\n return this.addLabel;\n },\n logicalRemoveLabel: function logicalRemoveLabel() {\n if (\"boolean\" == typeof this.removeLabel) return \"Remove\";\n return this.removeLabel;\n },\n classes: function classes() {\n return this.$formulate.classes(Object.assign({}, this.$props, this.pseudoProps, {\n attrs: this.filteredAttributes,\n classification: this.classification,\n hasErrors: this.hasVisibleErrors,\n hasValue: this.hasValue,\n helpPosition: this.logicalHelpPosition,\n isValid: this.isValid,\n labelPosition: this.logicalLabelPosition,\n type: this.type,\n value: this.proxy\n }));\n },\n showValidationErrors: function showValidationErrors() {\n if (this.showErrors || this.formShouldShowErrors) return !0;\n if (\"file\" === this.classification && \"live\" === this.uploadBehavior && X.call(this)) return !0;\n return this.behavioralErrorVisibility;\n },\n slotProps: function slotProps() {\n var t = this.$formulate.slotProps.bind(this.$formulate);\n return {\n label: t(this.type, \"label\", this.typeProps),\n help: t(this.type, \"help\", this.typeProps),\n errors: t(this.type, \"errors\", this.typeProps),\n repeatable: t(this.type, \"repeatable\", this.typeProps),\n addMore: t(this.type, \"addMore\", this.typeProps),\n remove: t(this.type, \"remove\", this.typeProps),\n component: t(this.type, \"component\", this.typeProps)\n };\n },\n pseudoProps: function pseudoProps() {\n return m(this.localAttributes, A);\n },\n isValid: function isValid() {\n return !this.hasErrors;\n },\n ruleDetails: function ruleDetails() {\n return this.parsedValidation.map(function (t) {\n var e = t[1];\n return {\n ruleName: t[2],\n args: e\n };\n });\n },\n isVmodeled: function isVmodeled() {\n return !!(this.$options.propsData.hasOwnProperty(\"formulateValue\") && this._events && Array.isArray(this._events.input) && this._events.input.length);\n },\n mergedValidationName: function mergedValidationName() {\n var t = this,\n e = this.$formulate.options.validationNameStrategy || [\"validationName\", \"name\", \"label\", \"type\"];\n\n if (Array.isArray(e)) {\n return this[e.find(function (e) {\n return \"string\" == typeof t[e];\n })];\n }\n\n if (\"function\" == typeof e) return e.call(this, this);\n return this.type;\n },\n explicitErrors: function explicitErrors() {\n return l(this.errors).concat(this.localErrors).concat(l(this.error));\n },\n allErrors: function allErrors() {\n return this.explicitErrors.concat(l(this.validationErrors));\n },\n hasVisibleErrors: function hasVisibleErrors() {\n return Array.isArray(this.validationErrors) && this.validationErrors.length && this.showValidationErrors || !!this.explicitErrors.length;\n },\n hasErrors: function hasErrors() {\n return !!this.allErrors.length;\n },\n filteredAttributes: function filteredAttributes() {\n var t = this,\n e = Object.keys(this.pseudoProps).concat(Object.keys(this.typeProps));\n return Object.keys(this.localAttributes).reduce(function (r, o) {\n return e.includes(s(o)) || (r[o] = t.localAttributes[o]), r;\n }, {});\n },\n typeProps: function typeProps() {\n return m(this.localAttributes, this.$formulate.typeProps(this.type));\n },\n listeners: function listeners() {\n var t = this.$listeners;\n t.input;\n return function (t, e) {\n var r = {};\n\n for (var o in t) {\n Object.prototype.hasOwnProperty.call(t, o) && -1 === e.indexOf(o) && (r[o] = t[o]);\n }\n\n return r;\n }(t, [\"input\"]);\n }\n};\n\nfunction z(t) {\n return t ? (Array.isArray(t) ? t : Object.keys(t).map(function (e) {\n return {\n label: t[e],\n value: e\n };\n })).map(K.bind(this)) : [];\n}\n\nfunction K(t) {\n return \"number\" == typeof t && (t = String(t)), \"string\" == typeof t ? {\n label: t,\n value: t,\n id: this.elementAttributes.id + \"_\" + t\n } : (\"number\" == typeof t.value && (t.value = String(t.value)), Object.assign({\n value: \"\",\n label: \"\",\n id: this.elementAttributes.id + \"_\" + (t.value || t.label)\n }, t));\n}\n\nfunction Z() {\n var t = this;\n \"blur\" !== this.errorBehavior && \"value\" !== this.errorBehavior || (this.behavioralErrorVisibility = !0), this.$nextTick(function () {\n return t.$emit(\"blur-context\", t.context);\n });\n}\n\nfunction J(t) {\n var e = this;\n return Object.defineProperty(t, \"model\", {\n get: X.bind(this),\n set: function set(t) {\n if (!e.mntd || !e.debounceDelay) return Q.call(e, t);\n e.dSet(Q, [t], e.debounceDelay);\n },\n enumerable: !0\n });\n}\n\nfunction X() {\n var t = this.isVmodeled ? \"formulateValue\" : \"proxy\";\n return \"checkbox\" === this.type && !Array.isArray(this[t]) && this.options ? [] : this[t] || 0 === this[t] ? this[t] : \"\";\n}\n\nfunction Q(t) {\n var e = !1;\n n(t, this.proxy, \"group\" === this.type) || (this.proxy = t, e = !0), !this.context.ignored && this.context.name && \"function\" == typeof this.formulateSetter && this.formulateSetter(this.context.name, t), e && this.$emit(\"input\", t);\n}\n\nvar tt = {\n name: \"FormulateInput\",\n inheritAttrs: !1,\n provide: function provide() {\n return {\n formulateRegisterRule: this.registerRule,\n formulateRemoveRule: this.removeRule\n };\n },\n inject: {\n formulateSetter: {\n default: void 0\n },\n formulateFieldValidation: {\n default: function _default() {\n return function () {\n return {};\n };\n }\n },\n formulateRegister: {\n default: void 0\n },\n formulateDeregister: {\n default: void 0\n },\n getFormValues: {\n default: function _default() {\n return function () {\n return {};\n };\n }\n },\n getGroupValues: {\n default: void 0\n },\n validateDependents: {\n default: function _default() {\n return function () {};\n }\n },\n observeErrors: {\n default: void 0\n },\n removeErrorObserver: {\n default: void 0\n },\n isSubField: {\n default: function _default() {\n return function () {\n return !1;\n };\n }\n }\n },\n model: {\n prop: \"formulateValue\",\n event: \"input\"\n },\n props: {\n type: {\n type: String,\n default: \"text\"\n },\n name: {\n type: [String, Boolean],\n default: !0\n },\n formulateValue: {\n default: \"\"\n },\n value: {\n default: !1\n },\n options: {\n type: [Object, Array, Boolean],\n default: !1\n },\n optionGroups: {\n type: [Object, Boolean],\n default: !1\n },\n id: {\n type: [String, Boolean, Number],\n default: !1\n },\n label: {\n type: [String, Boolean],\n default: !1\n },\n labelPosition: {\n type: [String, Boolean],\n default: !1\n },\n limit: {\n type: [String, Number],\n default: 1 / 0,\n validator: function validator(t) {\n return 1 / 0;\n }\n },\n minimum: {\n type: [String, Number],\n default: 0,\n validator: function validator(t) {\n return parseInt(t, 10) == t;\n }\n },\n help: {\n type: [String, Boolean],\n default: !1\n },\n helpPosition: {\n type: [String, Boolean],\n default: !1\n },\n isGrouped: {\n type: Boolean,\n default: !1\n },\n errors: {\n type: [String, Array, Boolean],\n default: !1\n },\n removePosition: {\n type: [String, Boolean],\n default: !1\n },\n repeatable: {\n type: Boolean,\n default: !1\n },\n validation: {\n type: [String, Boolean, Array],\n default: !1\n },\n validationName: {\n type: [String, Boolean],\n default: !1\n },\n error: {\n type: [String, Boolean],\n default: !1\n },\n errorBehavior: {\n type: String,\n default: \"blur\",\n validator: function validator(t) {\n return [\"blur\", \"live\", \"submit\", \"value\"].includes(t);\n }\n },\n showErrors: {\n type: Boolean,\n default: !1\n },\n groupErrors: {\n type: Object,\n default: function _default() {\n return {};\n },\n validator: function validator(t) {\n var e = /^\\d+\\./;\n return !Object.keys(t).some(function (t) {\n return !e.test(t);\n });\n }\n },\n imageBehavior: {\n type: String,\n default: \"preview\"\n },\n uploadUrl: {\n type: [String, Boolean],\n default: !1\n },\n uploader: {\n type: [Function, Object, Boolean],\n default: !1\n },\n uploadBehavior: {\n type: String,\n default: \"live\"\n },\n preventWindowDrops: {\n type: Boolean,\n default: !0\n },\n showValue: {\n type: [String, Boolean],\n default: !1\n },\n validationMessages: {\n type: Object,\n default: function _default() {\n return {};\n }\n },\n validationRules: {\n type: Object,\n default: function _default() {\n return {};\n }\n },\n checked: {\n type: [String, Boolean],\n default: !1\n },\n disableErrors: {\n type: Boolean,\n default: !1\n },\n addLabel: {\n type: [Boolean, String],\n default: !0\n },\n removeLabel: {\n type: [Boolean, String],\n default: !1\n },\n keepModelData: {\n type: [Boolean, String],\n default: \"inherit\"\n },\n ignored: {\n type: [Boolean, String],\n default: !1\n },\n debounce: {\n type: [Boolean, Number],\n default: !1\n },\n preventDeregister: {\n type: Boolean,\n default: !1\n }\n },\n data: function data() {\n return {\n defaultId: this.$formulate.nextId(this),\n localAttributes: {},\n localErrors: [],\n localGroupErrors: {},\n proxy: this.getInitialValue(),\n behavioralErrorVisibility: \"live\" === this.errorBehavior,\n formShouldShowErrors: !1,\n validationErrors: [],\n pendingValidation: Promise.resolve(),\n ruleRegistry: [],\n messageRegistry: {},\n touched: !1,\n debounceDelay: this.debounce,\n dSet: function dSet(e, r, o) {\n var i = this;\n t && clearTimeout(t), t = setTimeout(function () {\n return e.call.apply(e, [i].concat(r));\n }, o);\n },\n mntd: !1\n };\n var t;\n },\n computed: Object.assign({}, Y, {\n classification: function classification() {\n var t = this.$formulate.classify(this.type);\n return \"box\" === t && this.options ? \"group\" : t;\n },\n component: function component() {\n return \"group\" === this.classification ? \"FormulateInputGroup\" : this.$formulate.component(this.type);\n },\n parsedValidationRules: function parsedValidationRules() {\n var t = this,\n e = {};\n return Object.keys(this.validationRules).forEach(function (r) {\n e[s(r)] = t.validationRules[r];\n }), e;\n },\n parsedValidation: function parsedValidation() {\n return u(this.validation, this.$formulate.rules(this.parsedValidationRules));\n },\n messages: function messages() {\n var t = this,\n e = {};\n return Object.keys(this.validationMessages).forEach(function (r) {\n e[s(r)] = t.validationMessages[r];\n }), Object.keys(this.messageRegistry).forEach(function (r) {\n e[s(r)] = t.messageRegistry[r];\n }), e;\n }\n }),\n watch: {\n $attrs: {\n handler: function handler(t) {\n this.updateLocalAttributes(t);\n },\n deep: !0\n },\n proxy: {\n handler: function handler(t, e) {\n this.performValidation(), this.isVmodeled || n(t, e, \"group\" === this.type) || (this.context.model = t), this.validateDependents(this), !this.touched && t && (this.touched = !0);\n },\n deep: !0\n },\n formulateValue: {\n handler: function handler(t, e) {\n this.isVmodeled && !n(t, e, \"group\" === this.type) && (this.context.model = t);\n },\n deep: !0\n },\n showValidationErrors: {\n handler: function handler(t) {\n this.$emit(\"error-visibility\", t);\n },\n immediate: !0\n },\n validation: {\n handler: function handler() {\n this.performValidation();\n },\n deep: !0\n },\n touched: function touched(t) {\n \"value\" === this.errorBehavior && t && (this.behavioralErrorVisibility = t);\n },\n debounce: function debounce(t) {\n this.debounceDelay = t;\n }\n },\n created: function created() {\n this.applyInitialValue(), this.formulateRegister && \"function\" == typeof this.formulateRegister && this.formulateRegister(this.nameOrFallback, this), this.applyDefaultValue(), this.disableErrors || \"function\" != typeof this.observeErrors || (this.observeErrors({\n callback: this.setErrors,\n type: \"input\",\n field: this.nameOrFallback\n }), \"group\" === this.type && this.observeErrors({\n callback: this.setGroupErrors,\n type: \"group\",\n field: this.nameOrFallback\n })), this.updateLocalAttributes(this.$attrs), this.performValidation(), this.hasValue && (this.touched = !0);\n },\n mounted: function mounted() {\n this.mntd = !0;\n },\n beforeDestroy: function beforeDestroy() {\n this.disableErrors || \"function\" != typeof this.removeErrorObserver || (this.removeErrorObserver(this.setErrors), \"group\" === this.type && this.removeErrorObserver(this.setGroupErrors)), \"function\" != typeof this.formulateDeregister || this.preventDeregister || this.formulateDeregister(this.nameOrFallback);\n },\n methods: {\n getInitialValue: function getInitialValue() {\n var t = this.$formulate.classify(this.type);\n return \"box\" === (t = \"box\" === t && this.options ? \"group\" : t) && this.checked ? this.value || !0 : p(this.$options.propsData, \"value\") && \"box\" !== t ? this.value : p(this.$options.propsData, \"formulateValue\") ? this.formulateValue : \"group\" === t ? Object.defineProperty(\"group\" === this.type ? [{}] : [], \"__init\", {\n value: !0\n }) : \"\";\n },\n applyInitialValue: function applyInitialValue() {\n n(this.context.model, this.proxy) || \"box\" === this.classification && !p(this.$options.propsData, \"options\") || (this.context.model = this.proxy, this.$emit(\"input\", this.proxy));\n },\n applyDefaultValue: function applyDefaultValue() {\n \"select\" === this.type && !this.context.placeholder && f(this.proxy) && !this.isVmodeled && !1 === this.value && this.context.options.length && (p(this.$attrs, \"multiple\") ? this.context.model = [] : this.context.model = this.context.options[0].value);\n },\n updateLocalAttributes: function updateLocalAttributes(t) {\n n(t, this.localAttributes) || (this.localAttributes = t);\n },\n performValidation: function performValidation() {\n var t = this,\n e = u(this.validation, this.$formulate.rules(this.parsedValidationRules));\n return e = this.ruleRegistry.length ? this.ruleRegistry.concat(e) : e, this.pendingValidation = this.runRules(e).then(function (e) {\n return t.didValidate(e);\n }), this.pendingValidation;\n },\n runRules: function runRules(t) {\n var e = this,\n r = function r(t) {\n var r = t[0],\n o = t[1],\n i = t[2],\n n = (t[3], r.apply(void 0, [{\n value: e.context.model,\n getFormValues: function getFormValues() {\n for (var t, r = [], o = arguments.length; o--;) {\n r[o] = arguments[o];\n }\n\n return (t = e).getFormValues.apply(t, [e].concat(r));\n },\n getGroupValues: function getGroupValues() {\n for (var t, r = [], o = arguments.length; o--;) {\n r[o] = arguments[o];\n }\n\n return (t = e)[\"get\" + (e.getGroupValues ? \"Group\" : \"Form\") + \"Values\"].apply(t, [e].concat(r));\n },\n name: e.context.name\n }].concat(o)));\n return (n = n instanceof Promise ? n : Promise.resolve(n)).then(function (t) {\n return !t && e.getMessage(i, o);\n });\n };\n\n return new Promise(function (e) {\n var o = function o(t, i) {\n void 0 === i && (i = []);\n var n = t.shift();\n Array.isArray(n) && n.length ? Promise.all(n.map(r)).then(function (t) {\n return t.filter(function (t) {\n return !!t;\n });\n }).then(function (r) {\n return (r = Array.isArray(r) ? r : []).length && n.bail || !t.length ? e(i.concat(r).filter(function (t) {\n return !f(t);\n })) : o(t, i.concat(r));\n }) : e([]);\n };\n\n o(function (t) {\n var e = [],\n r = t.findIndex(function (t) {\n return \"bail\" === t[2].toLowerCase();\n }),\n o = t.findIndex(function (t) {\n return \"optional\" === t[2].toLowerCase();\n });\n\n if (o >= 0) {\n var i = t.splice(o, 1);\n e.push(Object.defineProperty(i, \"bail\", {\n value: !0\n }));\n }\n\n if (r >= 0) {\n var n = t.splice(0, r + 1).slice(0, -1);\n n.length && e.push(n), t.map(function (t) {\n return e.push(Object.defineProperty([t], \"bail\", {\n value: !0\n }));\n });\n } else e.push(t);\n\n return e.reduce(function (t, e) {\n var r = function r(t, e) {\n if (void 0 === e && (e = !1), t.length < 2) return Object.defineProperty([t], \"bail\", {\n value: e\n });\n var o = [],\n i = t.findIndex(function (t) {\n return \"^\" === t[3];\n });\n\n if (i >= 0) {\n var n = t.splice(0, i);\n n.length && o.push.apply(o, r(n, e)), o.push(Object.defineProperty([t.shift()], \"bail\", {\n value: !0\n })), t.length && o.push.apply(o, r(t, e));\n } else o.push(t);\n\n return o;\n };\n\n return t.concat(r(e));\n }, []);\n }(t));\n });\n },\n didValidate: function didValidate(t) {\n var e = !n(t, this.validationErrors);\n\n if (this.validationErrors = t, e) {\n var r = this.getErrorObject();\n this.$emit(\"validation\", r), this.formulateFieldValidation && \"function\" == typeof this.formulateFieldValidation && this.formulateFieldValidation(r);\n }\n },\n getMessage: function getMessage(t, e) {\n var r = this;\n return this.getMessageFunc(t)({\n args: e,\n name: this.mergedValidationName,\n value: this.context.model,\n vm: this,\n formValues: this.getFormValues(this),\n getFormValues: function getFormValues() {\n for (var t, e = [], o = arguments.length; o--;) {\n e[o] = arguments[o];\n }\n\n return (t = r).getFormValues.apply(t, [r].concat(e));\n },\n getGroupValues: function getGroupValues() {\n for (var t, e = [], o = arguments.length; o--;) {\n e[o] = arguments[o];\n }\n\n return (t = r)[\"get\" + (r.getGroupValues ? \"Group\" : \"Form\") + \"Values\"].apply(t, [r].concat(e));\n }\n });\n },\n getMessageFunc: function getMessageFunc(t) {\n var e = this;\n if (\"optional\" === (t = s(t))) return function () {\n return [];\n };\n if (this.messages && void 0 !== this.messages[t]) switch (_typeof(this.messages[t])) {\n case \"function\":\n return this.messages[t];\n\n case \"string\":\n case \"boolean\":\n return function () {\n return e.messages[t];\n };\n }\n return function (r) {\n return e.$formulate.validationMessage(t, r, e);\n };\n },\n hasValidationErrors: function hasValidationErrors() {\n var t = this;\n return new Promise(function (e) {\n t.$nextTick(function () {\n t.pendingValidation.then(function () {\n return e(!!t.validationErrors.length);\n });\n });\n });\n },\n getValidationErrors: function getValidationErrors() {\n var t = this;\n return new Promise(function (e) {\n t.$nextTick(function () {\n return t.pendingValidation.then(function () {\n return e(t.getErrorObject());\n });\n });\n });\n },\n getErrorObject: function getErrorObject() {\n return {\n name: this.context.nameOrFallback || this.context.name,\n errors: this.validationErrors.filter(function (t) {\n return \"string\" == typeof t;\n }),\n hasErrors: !!this.validationErrors.length\n };\n },\n setErrors: function setErrors(t) {\n this.localErrors = l(t);\n },\n setGroupErrors: function setGroupErrors(t) {\n this.localGroupErrors = t;\n },\n registerRule: function registerRule(t, e, r, o) {\n void 0 === o && (o = null), this.ruleRegistry.some(function (t) {\n return t[2] === r;\n }) || (this.ruleRegistry.push([t, e, r]), null !== o && (this.messageRegistry[r] = o));\n },\n removeRule: function removeRule(t) {\n var e = this.ruleRegistry.findIndex(function (e) {\n return e[2] === t;\n });\n e >= 0 && (this.ruleRegistry.splice(e, 1), delete this.messageRegistry[t]);\n }\n }\n},\n et = function et() {\n var t = this,\n e = t.$createElement,\n r = t._self._c || e;\n return r(\"div\", {\n class: t.context.classes.outer,\n attrs: {\n \"data-classification\": t.classification,\n \"data-has-errors\": t.hasErrors,\n \"data-is-showing-errors\": t.hasVisibleErrors,\n \"data-has-value\": t.hasValue,\n \"data-type\": t.type\n }\n }, [r(\"div\", {\n class: t.context.classes.wrapper\n }, [\"before\" === t.context.labelPosition ? t._t(\"label\", [t.context.hasLabel ? r(t.context.slotComponents.label, t._b({\n tag: \"component\",\n attrs: {\n context: t.context\n }\n }, \"component\", t.context.slotProps.label, !1)) : t._e()], null, t.context) : t._e(), t._v(\" \"), \"before\" === t.context.helpPosition ? t._t(\"help\", [t.context.help ? r(t.context.slotComponents.help, t._b({\n tag: \"component\",\n attrs: {\n context: t.context\n }\n }, \"component\", t.context.slotProps.help, !1)) : t._e()], null, t.context) : t._e(), t._v(\" \"), t._t(\"element\", [r(t.context.component, t._g(t._b({\n tag: \"component\",\n attrs: {\n context: t.context\n }\n }, \"component\", t.context.slotProps.component, !1), t.listeners), [t._t(\"default\", null, null, t.context)], 2)], null, t.context), t._v(\" \"), \"after\" === t.context.labelPosition ? t._t(\"label\", [t.context.hasLabel ? r(t.context.slotComponents.label, t._b({\n tag: \"component\",\n attrs: {\n context: t.context\n }\n }, \"component\", t.context.slotProps.label, !1)) : t._e()], null, t.context) : t._e()], 2), t._v(\" \"), \"after\" === t.context.helpPosition ? t._t(\"help\", [t.context.help ? r(t.context.slotComponents.help, t._b({\n tag: \"component\",\n attrs: {\n context: t.context\n }\n }, \"component\", t.context.slotProps.help, !1)) : t._e()], null, t.context) : t._e(), t._v(\" \"), t._t(\"errors\", [t.context.disableErrors ? t._e() : r(t.context.slotComponents.errors, t._b({\n tag: \"component\",\n attrs: {\n type: \"FormulateErrors\" === t.context.slotComponents.errors && \"input\",\n context: t.context\n }\n }, \"component\", t.context.slotProps.errors, !1))], null, t.context)], 2);\n};\n\net._withStripped = !0;\n\nvar rt = T({\n render: et,\n staticRenderFns: []\n}, void 0, tt, void 0, !1, void 0, !1, void 0, void 0, void 0),\n ot = {\n inject: {\n observeErrors: {\n default: !1\n },\n removeErrorObserver: {\n default: !1\n },\n observeContext: {\n default: !1\n },\n removeContextObserver: {\n default: !1\n }\n },\n props: {\n context: {\n type: Object,\n default: function _default() {\n return {};\n }\n },\n type: {\n type: String,\n default: \"form\"\n }\n },\n data: function data() {\n return {\n boundSetErrors: this.setErrors.bind(this),\n boundSetFormContext: this.setFormContext.bind(this),\n localErrors: [],\n formContext: {\n classes: {\n formErrors: \"formulate-form-errors\",\n formError: \"formulate-form-error\"\n }\n }\n };\n },\n computed: {\n visibleValidationErrors: function visibleValidationErrors() {\n return Array.isArray(this.context.visibleValidationErrors) ? this.context.visibleValidationErrors : [];\n },\n errors: function errors() {\n return Array.isArray(this.context.errors) ? this.context.errors : [];\n },\n mergedErrors: function mergedErrors() {\n return this.errors.concat(this.localErrors);\n },\n visibleErrors: function visibleErrors() {\n return Array.from(new Set(this.mergedErrors.concat(this.visibleValidationErrors))).filter(function (t) {\n return \"string\" == typeof t;\n });\n },\n outerClass: function outerClass() {\n return \"input\" === this.type && this.context.classes ? this.context.classes.errors : this.formContext.classes.formErrors;\n },\n itemClass: function itemClass() {\n return \"input\" === this.type && this.context.classes ? this.context.classes.error : this.formContext.classes.formError;\n },\n role: function role() {\n return \"form\" === this.type ? \"alert\" : \"status\";\n },\n ariaLive: function ariaLive() {\n return \"form\" === this.type ? \"assertive\" : \"polite\";\n },\n slotComponent: function slotComponent() {\n return this.$formulate.slotComponent(null, \"errorList\");\n }\n },\n created: function created() {\n \"form\" === this.type && \"function\" == typeof this.observeErrors && (Array.isArray(this.context.errors) || this.observeErrors({\n callback: this.boundSetErrors,\n type: \"form\"\n }), this.observeContext(this.boundSetFormContext));\n },\n destroyed: function destroyed() {\n \"form\" === this.type && \"function\" == typeof this.removeErrorObserver && (Array.isArray(this.context.errors) || this.removeErrorObserver(this.boundSetErrors), this.removeContextObserver(this.boundSetFormContext));\n },\n methods: {\n setErrors: function setErrors(t) {\n this.localErrors = l(t);\n },\n setFormContext: function setFormContext(t) {\n this.formContext = t;\n }\n }\n},\n it = function it() {\n var t = this.$createElement;\n return (this._self._c || t)(this.slotComponent, {\n tag: \"component\",\n attrs: {\n \"visible-errors\": this.visibleErrors,\n \"item-class\": this.itemClass,\n \"outer-class\": this.outerClass,\n role: this.role,\n \"aria-live\": this.ariaLive,\n type: this.type\n }\n });\n};\n\nit._withStripped = !0;\n\nvar nt = T({\n render: it,\n staticRenderFns: []\n}, void 0, ot, void 0, !1, void 0, !1, void 0, void 0, void 0),\n st = {\n props: {\n context: {\n type: Object,\n required: !0\n }\n }\n},\n at = function at() {\n var t = this.$createElement,\n e = this._self._c || t;\n return this.context.help ? e(\"div\", {\n class: this.context.classes.help,\n attrs: {\n id: this.context.id + \"-help\"\n },\n domProps: {\n textContent: this._s(this.context.help)\n }\n }) : this._e();\n};\n\nat._withStripped = !0;\n\nvar lt = T({\n render: at,\n staticRenderFns: []\n}, void 0, st, void 0, !1, void 0, !1, void 0, void 0, void 0),\n ut = {\n props: {\n file: {\n type: Object,\n required: !0\n },\n imagePreview: {\n type: Boolean,\n default: !1\n },\n context: {\n type: Object,\n required: !0\n }\n }\n},\n ct = function ct() {\n var t = this,\n e = t.$createElement,\n r = t._self._c || e;\n return r(\"div\", {\n class: t.context.classes.file\n }, [t.imagePreview && t.file.previewData ? r(\"div\", {\n class: t.context.classes.fileImagePreview\n }, [r(\"img\", {\n class: t.context.classes.fileImagePreviewImage,\n attrs: {\n src: t.file.previewData\n }\n })]) : t._e(), t._v(\" \"), r(\"div\", {\n class: t.context.classes.fileName,\n attrs: {\n title: t.file.name\n },\n domProps: {\n textContent: t._s(t.file.name)\n }\n }), t._v(\" \"), !1 !== t.file.progress ? r(\"div\", {\n class: t.context.classes.fileProgress,\n attrs: {\n \"data-just-finished\": t.file.justFinished,\n \"data-is-finished\": !t.file.justFinished && t.file.complete\n }\n }, [r(\"div\", {\n class: t.context.classes.fileProgressInner,\n style: {\n width: t.file.progress + \"%\"\n }\n })]) : t._e(), t._v(\" \"), t.file.complete && !t.file.justFinished || !1 === t.file.progress ? r(\"div\", {\n class: t.context.classes.fileRemove,\n on: {\n click: t.file.removeFile\n }\n }) : t._e()]);\n};\n\nct._withStripped = !0;\n\nvar dt = T({\n render: ct,\n staticRenderFns: []\n}, void 0, ut, void 0, !1, void 0, !1, void 0, void 0, void 0),\n pt = {\n name: \"FormulateGrouping\",\n props: {\n context: {\n type: Object,\n required: !0\n }\n },\n provide: function provide() {\n return {\n isSubField: function isSubField() {\n return !0;\n },\n registerProvider: this.registerProvider,\n deregisterProvider: this.deregisterProvider\n };\n },\n data: function data() {\n return {\n providers: [],\n keys: []\n };\n },\n inject: [\"formulateRegisterRule\", \"formulateRemoveRule\"],\n computed: {\n items: function items() {\n var t = this;\n return Array.isArray(this.context.model) ? this.context.repeatable || 0 !== this.context.model.length ? this.context.model.length < this.context.minimum ? new Array(this.context.minimum || 1).fill(\"\").map(function (e, r) {\n return t.setId(t.context.model[r] || {}, r);\n }) : this.context.model.map(function (e, r) {\n return t.setId(e, r);\n }) : [this.setId({}, 0)] : new Array(this.context.minimum || 1).fill(\"\").map(function (e, r) {\n return t.setId({}, r);\n });\n },\n formShouldShowErrors: function formShouldShowErrors() {\n return this.context.formShouldShowErrors;\n },\n groupErrors: function groupErrors() {\n var t = this;\n return this.items.map(function (e, r) {\n return p(t.context.groupErrors, r) ? t.context.groupErrors[r] : {};\n });\n }\n },\n watch: {\n providers: function providers() {\n this.formShouldShowErrors && this.showErrors();\n },\n formShouldShowErrors: function formShouldShowErrors(t) {\n t && this.showErrors();\n },\n items: {\n handler: function handler(t, e) {\n n(t, e, !0) || (this.keys = t.map(function (t) {\n return t.__id;\n }));\n },\n immediate: !0\n }\n },\n created: function created() {\n this.formulateRegisterRule(this.validateGroup.bind(this), [], \"formulateGrouping\", !0);\n },\n destroyed: function destroyed() {\n this.formulateRemoveRule(\"formulateGrouping\");\n },\n methods: {\n validateGroup: function validateGroup() {\n return Promise.all(this.providers.reduce(function (t, e) {\n return e && \"function\" == typeof e.hasValidationErrors && t.push(e.hasValidationErrors()), t;\n }, [])).then(function (t) {\n return !t.some(function (t) {\n return !!t;\n });\n });\n },\n showErrors: function showErrors() {\n this.providers.forEach(function (t) {\n return t && \"function\" == typeof t.showErrors && t.showErrors();\n });\n },\n setItem: function setItem(t, e) {\n var r = this;\n Array.isArray(this.context.model) && this.context.model.length >= this.context.minimum && !this.context.model.__init ? this.context.model.splice(t, 1, this.setId(e, t)) : this.context.model = this.items.map(function (o, i) {\n return i === t ? r.setId(e, t) : o;\n });\n },\n removeItem: function removeItem(t) {\n var e = this;\n Array.isArray(this.context.model) && this.context.model.length > this.context.minimum ? (this.context.model = this.context.model.filter(function (e, r) {\n return r !== t && e;\n }), this.context.rootEmit(\"repeatableRemoved\", this.context.model)) : !Array.isArray(this.context.model) && this.items.length > this.context.minimum && (this.context.model = new Array(this.items.length - 1).fill(\"\").map(function (t, r) {\n return e.setId({}, r);\n }), this.context.rootEmit(\"repeatableRemoved\", this.context.model));\n },\n registerProvider: function registerProvider(t) {\n this.providers.some(function (e) {\n return e === t;\n }) || this.providers.push(t);\n },\n deregisterProvider: function deregisterProvider(t) {\n this.providers = this.providers.filter(function (e) {\n return e !== t;\n });\n },\n setId: function setId(t, e) {\n return t.__id ? t : h(t, this.keys[e]);\n }\n }\n},\n ht = function ht() {\n var t = this,\n e = t.$createElement,\n r = t._self._c || e;\n return r(\"FormulateSlot\", {\n class: t.context.classes.grouping,\n attrs: {\n name: \"grouping\",\n context: t.context,\n \"force-wrap\": t.context.repeatable\n }\n }, t._l(t.items, function (e, o) {\n return r(\"FormulateRepeatableProvider\", {\n key: e.__id,\n attrs: {\n index: o,\n context: t.context,\n uuid: e.__id,\n errors: t.groupErrors[o]\n },\n on: {\n remove: t.removeItem,\n input: function input(e) {\n return t.setItem(o, e);\n }\n }\n }, [t._t(\"default\")], 2);\n }), 1);\n};\n\nht._withStripped = !0;\n\nvar ft = T({\n render: ht,\n staticRenderFns: []\n}, void 0, pt, void 0, !1, void 0, !1, void 0, void 0, void 0),\n mt = {\n props: {\n context: {\n type: Object,\n required: !0\n }\n }\n},\n vt = function vt() {\n var t = this.$createElement;\n return (this._self._c || t)(\"label\", {\n class: this.context.classes.label,\n attrs: {\n id: this.context.id + \"_label\",\n for: this.context.id\n },\n domProps: {\n textContent: this._s(this.context.label)\n }\n });\n};\n\nvt._withStripped = !0;\n\nvar xt = T({\n render: vt,\n staticRenderFns: []\n}, void 0, mt, void 0, !1, void 0, !1, void 0, void 0, void 0),\n yt = {\n props: {\n context: {\n type: Object,\n required: !0\n },\n addMore: {\n type: Function,\n required: !0\n }\n }\n},\n gt = function gt() {\n var t = this.$createElement,\n e = this._self._c || t;\n return e(\"div\", {\n class: this.context.classes.groupAddMore\n }, [e(\"FormulateInput\", {\n attrs: {\n type: \"button\",\n label: this.context.addLabel,\n \"data-minor\": \"\",\n \"data-ghost\": \"\"\n },\n on: {\n click: this.addMore\n }\n })], 1);\n};\n\ngt._withStripped = !0;\n\nvar bt = T({\n render: gt,\n staticRenderFns: []\n}, void 0, yt, void 0, !1, void 0, !1, void 0, void 0, void 0),\n Et = {\n props: {\n context: {\n type: Object,\n required: !0\n }\n },\n computed: {\n type: function type() {\n return this.context.type;\n },\n attributes: function attributes() {\n return this.context.attributes || {};\n },\n hasValue: function hasValue() {\n return this.context.hasValue;\n }\n }\n},\n _t = {\n name: \"FormulateInputBox\",\n mixins: [Et],\n computed: {\n usesDecorator: function usesDecorator() {\n return this.$formulate.options.useInputDecorators;\n }\n }\n},\n Ft = function Ft() {\n var t = this,\n e = t.$createElement,\n r = t._self._c || e;\n return r(\"div\", {\n class: t.context.classes.element,\n attrs: {\n \"data-type\": t.context.type\n }\n }, [r(\"FormulateSlot\", {\n attrs: {\n name: \"prefix\",\n context: t.context\n }\n }, [t.context.slotComponents.prefix ? r(t.context.slotComponents.prefix, {\n tag: \"component\",\n attrs: {\n context: t.context\n }\n }) : t._e()], 1), t._v(\" \"), \"radio\" === t.type ? r(\"input\", t._g(t._b({\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: t.context.model,\n expression: \"context.model\"\n }],\n attrs: {\n type: \"radio\"\n },\n domProps: {\n value: t.context.value,\n checked: t._q(t.context.model, t.context.value)\n },\n on: {\n blur: t.context.blurHandler,\n change: function change(e) {\n return t.$set(t.context, \"model\", t.context.value);\n }\n }\n }, \"input\", t.attributes, !1), t.$listeners)) : r(\"input\", t._g(t._b({\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: t.context.model,\n expression: \"context.model\"\n }],\n attrs: {\n type: \"checkbox\"\n },\n domProps: {\n value: t.context.value,\n checked: Array.isArray(t.context.model) ? t._i(t.context.model, t.context.value) > -1 : t.context.model\n },\n on: {\n blur: t.context.blurHandler,\n change: function change(e) {\n var r = t.context.model,\n o = e.target,\n i = !!o.checked;\n\n if (Array.isArray(r)) {\n var n = t.context.value,\n s = t._i(r, n);\n\n o.checked ? s < 0 && t.$set(t.context, \"model\", r.concat([n])) : s > -1 && t.$set(t.context, \"model\", r.slice(0, s).concat(r.slice(s + 1)));\n } else t.$set(t.context, \"model\", i);\n }\n }\n }, \"input\", t.attributes, !1), t.$listeners)), t._v(\" \"), t.usesDecorator ? r(\"label\", {\n tag: \"component\",\n class: t.context.classes.decorator,\n attrs: {\n for: t.attributes.id\n }\n }) : t._e(), t._v(\" \"), r(\"FormulateSlot\", {\n attrs: {\n name: \"suffix\",\n context: t.context\n }\n }, [t.context.slotComponents.suffix ? r(t.context.slotComponents.suffix, {\n tag: \"component\",\n attrs: {\n context: t.context\n }\n }) : t._e()], 1)], 1);\n};\n\nFt._withStripped = !0;\n\nvar wt = T({\n render: Ft,\n staticRenderFns: []\n}, void 0, _t, void 0, !1, void 0, !1, void 0, void 0, void 0),\n Ot = {\n props: {\n visibleErrors: {\n type: Array,\n required: !0\n },\n itemClass: {\n type: [String, Array, Object, Boolean],\n default: !1\n },\n outerClass: {\n type: [String, Array, Object, Boolean],\n default: !1\n },\n role: {\n type: [String],\n default: \"status\"\n },\n ariaLive: {\n type: [String, Boolean],\n default: \"polite\"\n },\n type: {\n type: String,\n required: !0\n }\n }\n},\n Pt = function Pt() {\n var t = this,\n e = t.$createElement,\n r = t._self._c || e;\n return t.visibleErrors.length ? r(\"ul\", {\n class: t.outerClass\n }, t._l(t.visibleErrors, function (e) {\n return r(\"li\", {\n key: e,\n class: t.itemClass,\n attrs: {\n role: t.role,\n \"aria-live\": t.ariaLive\n },\n domProps: {\n textContent: t._s(e)\n }\n });\n }), 0) : t._e();\n};\n\nPt._withStripped = !0;\n\nvar Vt = T({\n render: Pt,\n staticRenderFns: []\n}, void 0, Ot, void 0, !1, void 0, !1, void 0, void 0, void 0),\n At = {\n name: \"FormulateInputText\",\n mixins: [Et]\n},\n St = function St() {\n var t = this,\n e = t.$createElement,\n r = t._self._c || e;\n return r(\"div\", {\n class: t.context.classes.element,\n attrs: {\n \"data-type\": t.context.type\n }\n }, [r(\"FormulateSlot\", {\n attrs: {\n name: \"prefix\",\n context: t.context\n }\n }, [t.context.slotComponents.prefix ? r(t.context.slotComponents.prefix, {\n tag: \"component\",\n attrs: {\n context: t.context\n }\n }) : t._e()], 1), t._v(\" \"), \"checkbox\" === t.type ? r(\"input\", t._g(t._b({\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: t.context.model,\n expression: \"context.model\"\n }],\n attrs: {\n type: \"checkbox\"\n },\n domProps: {\n checked: Array.isArray(t.context.model) ? t._i(t.context.model, null) > -1 : t.context.model\n },\n on: {\n blur: t.context.blurHandler,\n change: function change(e) {\n var r = t.context.model,\n o = e.target,\n i = !!o.checked;\n\n if (Array.isArray(r)) {\n var n = t._i(r, null);\n\n o.checked ? n < 0 && t.$set(t.context, \"model\", r.concat([null])) : n > -1 && t.$set(t.context, \"model\", r.slice(0, n).concat(r.slice(n + 1)));\n } else t.$set(t.context, \"model\", i);\n }\n }\n }, \"input\", t.attributes, !1), t.$listeners)) : \"radio\" === t.type ? r(\"input\", t._g(t._b({\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: t.context.model,\n expression: \"context.model\"\n }],\n attrs: {\n type: \"radio\"\n },\n domProps: {\n checked: t._q(t.context.model, null)\n },\n on: {\n blur: t.context.blurHandler,\n change: function change(e) {\n return t.$set(t.context, \"model\", null);\n }\n }\n }, \"input\", t.attributes, !1), t.$listeners)) : r(\"input\", t._g(t._b({\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: t.context.model,\n expression: \"context.model\"\n }],\n attrs: {\n type: t.type\n },\n domProps: {\n value: t.context.model\n },\n on: {\n blur: t.context.blurHandler,\n input: function input(e) {\n e.target.composing || t.$set(t.context, \"model\", e.target.value);\n }\n }\n }, \"input\", t.attributes, !1), t.$listeners)), t._v(\" \"), r(\"FormulateSlot\", {\n attrs: {\n name: \"suffix\",\n context: t.context\n }\n }, [t.context.slotComponents.suffix ? r(t.context.slotComponents.suffix, {\n tag: \"component\",\n attrs: {\n context: t.context\n }\n }) : t._e()], 1)], 1);\n};\n\nSt._withStripped = !0;\n\nvar jt = T({\n render: St,\n staticRenderFns: []\n}, void 0, At, void 0, !1, void 0, !1, void 0, void 0, void 0),\n $t = {\n name: \"FormulateFiles\",\n props: {\n files: {\n type: b,\n required: !0\n },\n imagePreview: {\n type: Boolean,\n default: !1\n },\n context: {\n type: Object,\n required: !0\n }\n },\n computed: {\n fileUploads: function fileUploads() {\n return this.files.files || [];\n },\n isMultiple: function isMultiple() {\n return p(this.context.attributes, \"multiple\");\n }\n },\n watch: {\n files: function files() {\n this.imagePreview && this.files.loadPreviews();\n }\n },\n mounted: function mounted() {\n this.imagePreview && this.files.loadPreviews();\n },\n methods: {\n appendFiles: function appendFiles() {\n var t = this.$refs.addFiles;\n t.files.length && this.files.mergeFileList(t);\n }\n }\n},\n Ct = function Ct() {\n var t = this,\n e = t.$createElement,\n r = t._self._c || e;\n return t.fileUploads.length ? r(\"ul\", {\n class: t.context.classes.files\n }, [t._l(t.fileUploads, function (e) {\n return r(\"li\", {\n key: e.uuid,\n attrs: {\n \"data-has-error\": !!e.error,\n \"data-has-preview\": !(!t.imagePreview || !e.previewData)\n }\n }, [r(\"FormulateSlot\", {\n attrs: {\n name: \"file\",\n context: t.context,\n file: e,\n \"image-preview\": t.imagePreview\n }\n }, [r(t.context.slotComponents.file, {\n tag: \"component\",\n attrs: {\n context: t.context,\n file: e,\n \"image-preview\": t.imagePreview\n }\n })], 1), t._v(\" \"), e.error ? r(\"div\", {\n class: t.context.classes.fileUploadError,\n domProps: {\n textContent: t._s(e.error)\n }\n }) : t._e()], 1);\n }), t._v(\" \"), t.isMultiple && t.context.addLabel ? r(\"div\", {\n class: t.context.classes.fileAdd,\n attrs: {\n role: \"button\"\n }\n }, [t._v(\"\\n \" + t._s(t.context.addLabel) + \"\\n \"), r(\"input\", {\n ref: \"addFiles\",\n class: t.context.classes.fileAddInput,\n attrs: {\n type: \"file\",\n multiple: \"\"\n },\n on: {\n change: t.appendFiles\n }\n })]) : t._e()], 2) : t._e();\n};\n\nCt._withStripped = !0;\n\nvar kt = {\n name: \"FormulateInputFile\",\n components: {\n FormulateFiles: T({\n render: Ct,\n staticRenderFns: []\n }, void 0, $t, void 0, !1, void 0, !1, void 0, void 0, void 0)\n },\n mixins: [Et],\n data: function data() {\n return {\n isOver: !1\n };\n },\n computed: {\n hasFiles: function hasFiles() {\n return !!(this.context.model instanceof b && this.context.model.files.length);\n }\n },\n created: function created() {\n Array.isArray(this.context.model) && \"string\" == typeof this.context.model[0][this.$formulate.getFileUrlKey()] && (this.context.model = this.$formulate.createUpload({\n files: this.context.model\n }, this.context));\n },\n mounted: function mounted() {\n window && this.context.preventWindowDrops && (window.addEventListener(\"dragover\", this.preventDefault), window.addEventListener(\"drop\", this.preventDefault));\n },\n destroyed: function destroyed() {\n window && this.context.preventWindowDrops && (window.removeEventListener(\"dragover\", this.preventDefault), window.removeEventListener(\"drop\", this.preventDefault));\n },\n methods: {\n preventDefault: function preventDefault(t) {\n \"INPUT\" !== t.target.tagName && \"file\" !== t.target.getAttribute(\"type\") && (t = t || event).preventDefault();\n },\n handleFile: function handleFile() {\n var t = this;\n this.isOver = !1;\n var e = this.$refs.file;\n e.files.length && (this.context.model = this.$formulate.createUpload(e, this.context), this.$nextTick(function () {\n return t.attemptImmediateUpload();\n }));\n },\n attemptImmediateUpload: function attemptImmediateUpload() {\n var t = this;\n \"live\" === this.context.uploadBehavior && this.context.model instanceof b && this.context.hasValidationErrors().then(function (e) {\n e || t.context.model.upload();\n });\n },\n handleDragOver: function handleDragOver(t) {\n t.preventDefault(), this.isOver = !0;\n },\n handleDragLeave: function handleDragLeave(t) {\n t.preventDefault(), this.isOver = !1;\n }\n }\n},\n It = function It() {\n var t = this,\n e = t.$createElement,\n r = t._self._c || e;\n return r(\"div\", {\n class: t.context.classes.element,\n attrs: {\n \"data-type\": t.context.type,\n \"data-has-files\": t.hasFiles\n }\n }, [r(\"FormulateSlot\", {\n attrs: {\n name: \"prefix\",\n context: t.context\n }\n }, [t.context.slotComponents.prefix ? r(t.context.slotComponents.prefix, {\n tag: \"component\",\n attrs: {\n context: t.context\n }\n }) : t._e()], 1), t._v(\" \"), r(\"div\", {\n class: t.context.classes.uploadArea,\n attrs: {\n \"data-has-files\": t.hasFiles\n }\n }, [r(\"input\", t._g(t._b({\n ref: \"file\",\n attrs: {\n \"data-is-drag-hover\": t.isOver,\n type: \"file\"\n },\n on: {\n blur: t.context.blurHandler,\n change: t.handleFile,\n dragover: t.handleDragOver,\n dragleave: t.handleDragLeave\n }\n }, \"input\", t.attributes, !1), t.$listeners)), t._v(\" \"), r(\"FormulateSlot\", {\n attrs: {\n name: \"uploadAreaMask\",\n context: t.context,\n \"has-files\": t.hasFiles\n }\n }, [r(t.context.slotComponents.uploadAreaMask, {\n directives: [{\n name: \"show\",\n rawName: \"v-show\",\n value: !t.hasFiles,\n expression: \"!hasFiles\"\n }],\n tag: \"component\",\n class: t.context.classes.uploadAreaMask,\n attrs: {\n \"has-files\": \"div\" !== t.context.slotComponents.uploadAreaMask && t.hasFiles,\n \"data-has-files\": \"div\" === t.context.slotComponents.uploadAreaMask && t.hasFiles\n }\n })], 1), t._v(\" \"), t.hasFiles ? r(\"FormulateFiles\", {\n attrs: {\n files: t.context.model,\n \"image-preview\": \"image\" === t.context.type && \"preview\" === t.context.imageBehavior,\n context: t.context\n }\n }) : t._e()], 1), t._v(\" \"), r(\"FormulateSlot\", {\n attrs: {\n name: \"suffix\",\n context: t.context\n }\n }, [t.context.slotComponents.suffix ? r(t.context.slotComponents.suffix, {\n tag: \"component\",\n attrs: {\n context: t.context\n }\n }) : t._e()], 1)], 1);\n};\n\nIt._withStripped = !0;\n\nvar Rt = T({\n render: It,\n staticRenderFns: []\n}, void 0, kt, void 0, !1, void 0, !1, void 0, void 0, void 0),\n Dt = {\n props: {\n context: {\n type: Object,\n required: !0\n },\n removeItem: {\n type: Function,\n required: !0\n },\n index: {\n type: Number,\n required: !0\n }\n }\n},\n Lt = function Lt() {\n var t = this,\n e = t.$createElement,\n r = t._self._c || e;\n return r(\"div\", {\n class: t.context.classes.groupRepeatable\n }, [\"after\" === t.context.removePosition ? t._t(\"default\") : t._e(), t._v(\" \"), r(\"FormulateSlot\", {\n attrs: {\n name: \"remove\",\n context: t.context,\n index: t.index,\n \"remove-item\": t.removeItem\n }\n }, [r(t.context.slotComponents.remove, t._b({\n tag: \"component\",\n attrs: {\n context: t.context,\n index: t.index,\n \"remove-item\": t.removeItem\n }\n }, \"component\", t.context.slotProps.remove, !1))], 1), t._v(\" \"), \"before\" === t.context.removePosition ? t._t(\"default\") : t._e()], 2);\n};\n\nLt._withStripped = !0;\nvar Nt = T({\n render: Lt,\n staticRenderFns: []\n}, void 0, Dt, void 0, !1, void 0, !1, void 0, void 0, void 0);\n\nfunction Mt(t, e) {\n var r = {};\n\n for (var o in t) {\n Object.prototype.hasOwnProperty.call(t, o) && -1 === e.indexOf(o) && (r[o] = t[o]);\n }\n\n return r;\n}\n\nvar Bt = {\n name: \"FormulateInputGroup\",\n props: {\n context: {\n type: Object,\n required: !0\n }\n },\n computed: {\n options: function options() {\n return this.context.options || [];\n },\n subType: function subType() {\n return \"group\" === this.context.type ? \"grouping\" : \"inputs\";\n },\n optionsWithContext: function optionsWithContext() {\n var t = this,\n e = this.context,\n r = e.attributes,\n o = (r.id, Mt(r, [\"id\"])),\n i = (e.blurHandler, e.classification, e.component, e.getValidationErrors, e.hasLabel, e.hasValidationErrors, e.isSubField, e.isValid, e.labelPosition, e.options, e.performValidation, e.setErrors, e.slotComponents, e.slotProps, e.validationErrors, e.visibleValidationErrors, e.classes, e.showValidationErrors, e.rootEmit, e.help, e.pseudoProps, e.rules, e.model, Mt(e, [\"attributes\", \"blurHandler\", \"classification\", \"component\", \"getValidationErrors\", \"hasLabel\", \"hasValidationErrors\", \"isSubField\", \"isValid\", \"labelPosition\", \"options\", \"performValidation\", \"setErrors\", \"slotComponents\", \"slotProps\", \"validationErrors\", \"visibleValidationErrors\", \"classes\", \"showValidationErrors\", \"rootEmit\", \"help\", \"pseudoProps\", \"rules\", \"model\"]));\n return this.options.map(function (e) {\n return t.groupItemContext(i, e, o);\n });\n },\n totalItems: function totalItems() {\n return Array.isArray(this.context.model) && this.context.model.length > this.context.minimum ? this.context.model.length : this.context.minimum || 1;\n },\n canAddMore: function canAddMore() {\n return this.context.repeatable && this.totalItems < this.context.limit;\n },\n labelledBy: function labelledBy() {\n return this.context.label && this.context.id + \"_label\";\n }\n },\n methods: {\n addItem: function addItem() {\n if (Array.isArray(this.context.model)) for (var t = this.context.minimum - this.context.model.length + 1, e = Math.max(t, 1), r = 0; r < e; r++) {\n this.context.model.push(h({}));\n } else this.context.model = new Array(this.totalItems + 1).fill(\"\").map(function () {\n return h({});\n });\n this.context.rootEmit(\"repeatableAdded\", this.context.model);\n },\n groupItemContext: function groupItemContext(t, e, r) {\n return Object.assign({}, t, e, r, {\n isGrouped: !0\n }, t.hasGivenName ? {} : {\n name: !0\n });\n }\n }\n},\n Ut = function Ut() {\n var t = this,\n e = t.$createElement,\n r = t._self._c || e;\n return r(\"div\", {\n class: t.context.classes.element,\n attrs: {\n \"data-is-repeatable\": t.context.repeatable,\n role: \"group\",\n \"aria-labelledby\": t.labelledBy\n }\n }, [r(\"FormulateSlot\", {\n attrs: {\n name: \"prefix\",\n context: t.context\n }\n }, [t.context.slotComponents.prefix ? r(t.context.slotComponents.prefix, {\n tag: \"component\",\n attrs: {\n context: t.context\n }\n }) : t._e()], 1), t._v(\" \"), \"grouping\" !== t.subType ? t._l(t.optionsWithContext, function (e) {\n return r(\"FormulateInput\", t._b({\n key: e.id,\n staticClass: \"formulate-input-group-item\",\n attrs: {\n \"disable-errors\": !0,\n \"prevent-deregister\": !0\n },\n on: {\n blur: t.context.blurHandler\n },\n model: {\n value: t.context.model,\n callback: function callback(e) {\n t.$set(t.context, \"model\", e);\n },\n expression: \"context.model\"\n }\n }, \"FormulateInput\", e, !1));\n }) : [r(\"FormulateGrouping\", {\n attrs: {\n context: t.context\n }\n }, [t._t(\"default\")], 2), t._v(\" \"), t.canAddMore ? r(\"FormulateSlot\", {\n attrs: {\n name: \"addmore\",\n context: t.context,\n \"add-more\": t.addItem\n }\n }, [r(t.context.slotComponents.addMore, t._b({\n tag: \"component\",\n attrs: {\n context: t.context,\n \"add-more\": t.addItem\n },\n on: {\n add: t.addItem\n }\n }, \"component\", t.context.slotProps.addMore, !1))], 1) : t._e()], t._v(\" \"), r(\"FormulateSlot\", {\n attrs: {\n name: \"suffix\",\n context: t.context\n }\n }, [t.context.slotComponents.suffix ? r(t.context.slotComponents.suffix, {\n tag: \"component\",\n attrs: {\n context: t.context\n }\n }) : t._e()], 1)], 2);\n};\n\nUt._withStripped = !0;\n\nvar Gt = T({\n render: Ut,\n staticRenderFns: []\n}, void 0, Bt, void 0, !1, void 0, !1, void 0, void 0, void 0),\n Tt = {\n name: \"FormulateInputButton\",\n mixins: [Et]\n},\n qt = function qt() {\n var t = this,\n e = t.$createElement,\n r = t._self._c || e;\n return r(\"div\", {\n class: t.context.classes.element,\n attrs: {\n \"data-type\": t.context.type\n }\n }, [r(\"FormulateSlot\", {\n attrs: {\n name: \"prefix\",\n context: t.context\n }\n }, [t.context.slotComponents.prefix ? r(t.context.slotComponents.prefix, {\n tag: \"component\",\n attrs: {\n context: t.context\n }\n }) : t._e()], 1), t._v(\" \"), r(\"button\", t._g(t._b({\n attrs: {\n type: t.type\n }\n }, \"button\", t.attributes, !1), t.$listeners), [t._t(\"default\", [r(t.context.slotComponents.buttonContent, {\n tag: \"component\",\n attrs: {\n context: t.context\n }\n })], {\n context: t.context\n })], 2), t._v(\" \"), r(\"FormulateSlot\", {\n attrs: {\n name: \"suffix\",\n context: t.context\n }\n }, [t.context.slotComponents.suffix ? r(t.context.slotComponents.suffix, {\n tag: \"component\",\n attrs: {\n context: t.context\n }\n }) : t._e()], 1)], 1);\n};\n\nqt._withStripped = !0;\n\nvar Ht = T({\n render: qt,\n staticRenderFns: []\n}, void 0, Tt, void 0, !1, void 0, !1, void 0, void 0, void 0),\n Wt = {\n name: \"FormulateInputSelect\",\n mixins: [Et],\n computed: {\n options: function options() {\n return this.context.options || {};\n },\n optionGroups: function optionGroups() {\n return this.context.optionGroups || !1;\n },\n placeholderSelected: function placeholderSelected() {\n return !(this.hasValue || !this.context.attributes || !this.context.attributes.placeholder);\n }\n }\n},\n Yt = function Yt() {\n var t = this,\n e = t.$createElement,\n r = t._self._c || e;\n return r(\"div\", {\n class: t.context.classes.element,\n attrs: {\n \"data-type\": t.context.type,\n \"data-multiple\": t.attributes && void 0 !== t.attributes.multiple\n }\n }, [r(\"FormulateSlot\", {\n attrs: {\n name: \"prefix\",\n context: t.context\n }\n }, [t.context.slotComponents.prefix ? r(t.context.slotComponents.prefix, {\n tag: \"component\",\n attrs: {\n context: t.context\n }\n }) : t._e()], 1), t._v(\" \"), r(\"select\", t._g(t._b({\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: t.context.model,\n expression: \"context.model\"\n }],\n attrs: {\n \"data-placeholder-selected\": t.placeholderSelected\n },\n on: {\n blur: t.context.blurHandler,\n change: function change(e) {\n var r = Array.prototype.filter.call(e.target.options, function (t) {\n return t.selected;\n }).map(function (t) {\n return \"_value\" in t ? t._value : t.value;\n });\n t.$set(t.context, \"model\", e.target.multiple ? r : r[0]);\n }\n }\n }, \"select\", t.attributes, !1), t.$listeners), [t.context.placeholder ? r(\"option\", {\n attrs: {\n value: \"\",\n hidden: \"hidden\",\n disabled: \"\"\n },\n domProps: {\n selected: !t.hasValue\n }\n }, [t._v(\"\\n \" + t._s(t.context.placeholder) + \"\\n \")]) : t._e(), t._v(\" \"), t.optionGroups ? t._l(t.optionGroups, function (e, o) {\n return r(\"optgroup\", {\n key: o,\n attrs: {\n label: o\n }\n }, t._l(e, function (e) {\n return r(\"option\", t._b({\n key: e.id,\n attrs: {\n disabled: !!e.disabled\n },\n domProps: {\n value: e.value,\n textContent: t._s(e.label)\n }\n }, \"option\", e.attributes || e.attrs || {}, !1));\n }), 0);\n }) : t._l(t.options, function (e) {\n return r(\"option\", t._b({\n key: e.id,\n attrs: {\n disabled: !!e.disabled\n },\n domProps: {\n value: e.value,\n textContent: t._s(e.label)\n }\n }, \"option\", e.attributes || e.attrs || {}, !1));\n })], 2), t._v(\" \"), r(\"FormulateSlot\", {\n attrs: {\n name: \"suffix\",\n context: t.context\n }\n }, [t.context.slotComponents.suffix ? r(t.context.slotComponents.suffix, {\n tag: \"component\",\n attrs: {\n context: t.context\n }\n }) : t._e()], 1)], 1);\n};\n\nYt._withStripped = !0;\n\nvar zt = T({\n render: Yt,\n staticRenderFns: []\n}, void 0, Wt, void 0, !1, void 0, !1, void 0, void 0, void 0),\n Kt = {\n name: \"FormulateInputSlider\",\n mixins: [Et]\n},\n Zt = function Zt() {\n var t = this,\n e = t.$createElement,\n r = t._self._c || e;\n return r(\"div\", {\n class: t.context.classes.element,\n attrs: {\n \"data-type\": t.context.type\n }\n }, [r(\"FormulateSlot\", {\n attrs: {\n name: \"prefix\",\n context: t.context\n }\n }, [t.context.slotComponents.prefix ? r(t.context.slotComponents.prefix, {\n tag: \"component\",\n attrs: {\n context: t.context\n }\n }) : t._e()], 1), t._v(\" \"), \"checkbox\" === t.type ? r(\"input\", t._g(t._b({\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: t.context.model,\n expression: \"context.model\"\n }],\n attrs: {\n type: \"checkbox\"\n },\n domProps: {\n checked: Array.isArray(t.context.model) ? t._i(t.context.model, null) > -1 : t.context.model\n },\n on: {\n blur: t.context.blurHandler,\n change: function change(e) {\n var r = t.context.model,\n o = e.target,\n i = !!o.checked;\n\n if (Array.isArray(r)) {\n var n = t._i(r, null);\n\n o.checked ? n < 0 && t.$set(t.context, \"model\", r.concat([null])) : n > -1 && t.$set(t.context, \"model\", r.slice(0, n).concat(r.slice(n + 1)));\n } else t.$set(t.context, \"model\", i);\n }\n }\n }, \"input\", t.attributes, !1), t.$listeners)) : \"radio\" === t.type ? r(\"input\", t._g(t._b({\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: t.context.model,\n expression: \"context.model\"\n }],\n attrs: {\n type: \"radio\"\n },\n domProps: {\n checked: t._q(t.context.model, null)\n },\n on: {\n blur: t.context.blurHandler,\n change: function change(e) {\n return t.$set(t.context, \"model\", null);\n }\n }\n }, \"input\", t.attributes, !1), t.$listeners)) : r(\"input\", t._g(t._b({\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: t.context.model,\n expression: \"context.model\"\n }],\n attrs: {\n type: t.type\n },\n domProps: {\n value: t.context.model\n },\n on: {\n blur: t.context.blurHandler,\n input: function input(e) {\n e.target.composing || t.$set(t.context, \"model\", e.target.value);\n }\n }\n }, \"input\", t.attributes, !1), t.$listeners)), t._v(\" \"), t.context.showValue ? r(\"div\", {\n class: t.context.classes.rangeValue,\n domProps: {\n textContent: t._s(t.context.model)\n }\n }) : t._e(), t._v(\" \"), r(\"FormulateSlot\", {\n attrs: {\n name: \"suffix\",\n context: t.context\n }\n }, [t.context.slotComponents.suffix ? r(t.context.slotComponents.suffix, {\n tag: \"component\",\n attrs: {\n context: t.context\n }\n }) : t._e()], 1)], 1);\n};\n\nZt._withStripped = !0;\n\nvar Jt = T({\n render: Zt,\n staticRenderFns: []\n}, void 0, Kt, void 0, !1, void 0, !1, void 0, void 0, void 0),\n Xt = {\n props: {\n context: {\n type: Object,\n required: !0\n }\n }\n},\n Qt = function Qt() {\n var t = this.$createElement;\n return (this._self._c || t)(\"span\", {\n class: \"formulate-input-element--\" + this.context.type + \"--label\",\n domProps: {\n textContent: this._s(this.context.value || this.context.label || this.context.name || \"Submit\")\n }\n });\n};\n\nQt._withStripped = !0;\n\nvar te = T({\n render: Qt,\n staticRenderFns: []\n}, void 0, Xt, void 0, !1, void 0, !1, void 0, void 0, void 0),\n ee = {\n name: \"FormulateInputTextArea\",\n mixins: [Et]\n},\n re = function re() {\n var t = this,\n e = t.$createElement,\n r = t._self._c || e;\n return r(\"div\", {\n class: t.context.classes.element,\n attrs: {\n \"data-type\": \"textarea\"\n }\n }, [r(\"FormulateSlot\", {\n attrs: {\n name: \"prefix\",\n context: t.context\n }\n }, [t.context.slotComponents.prefix ? r(t.context.slotComponents.prefix, {\n tag: \"component\",\n attrs: {\n context: t.context\n }\n }) : t._e()], 1), t._v(\" \"), r(\"textarea\", t._g(t._b({\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: t.context.model,\n expression: \"context.model\"\n }],\n domProps: {\n value: t.context.model\n },\n on: {\n blur: t.context.blurHandler,\n input: function input(e) {\n e.target.composing || t.$set(t.context, \"model\", e.target.value);\n }\n }\n }, \"textarea\", t.attributes, !1), t.$listeners)), t._v(\" \"), r(\"FormulateSlot\", {\n attrs: {\n name: \"suffix\",\n context: t.context\n }\n }, [t.context.slotComponents.suffix ? r(t.context.slotComponents.suffix, {\n tag: \"component\",\n attrs: {\n context: t.context\n }\n }) : t._e()], 1)], 1);\n};\n\nre._withStripped = !0;\n\nvar oe = T({\n render: re,\n staticRenderFns: []\n}, void 0, ee, void 0, !1, void 0, !1, void 0, void 0, void 0),\n ie = {\n provide: function provide() {\n var t = this;\n return Object.assign({}, U(this, [\"getFormValues\"]), {\n formulateSetter: function formulateSetter(e, r) {\n return t.setGroupValue(e, r);\n }\n });\n },\n inject: {\n registerProvider: \"registerProvider\",\n deregisterProvider: \"deregisterProvider\"\n },\n props: {\n index: {\n type: Number,\n required: !0\n },\n context: {\n type: Object,\n required: !0\n },\n uuid: {\n type: String,\n required: !0\n },\n errors: {\n type: Object,\n required: !0\n }\n },\n data: function data() {\n return Object.assign({}, N(this), {\n isGrouping: !0\n });\n },\n computed: Object.assign({}, M(), {\n mergedFieldErrors: function mergedFieldErrors() {\n return this.errors;\n }\n }),\n watch: Object.assign({}, {\n mergedFieldErrors: {\n handler: function handler(t) {\n this.errorObservers.filter(function (t) {\n return \"input\" === t.type;\n }).forEach(function (e) {\n return e.callback(t[e.field] || []);\n });\n },\n immediate: !0\n },\n mergedGroupErrors: {\n handler: function handler(t) {\n this.errorObservers.filter(function (t) {\n return \"group\" === t.type;\n }).forEach(function (e) {\n return e.callback(t[e.field] || {});\n });\n },\n immediate: !0\n }\n }, {\n \"context.model\": {\n handler: function handler(t) {\n n(t[this.index], this.proxy, !0) || this.setValues(t[this.index]);\n },\n deep: !0\n }\n }),\n created: function created() {\n this.applyInitialValues(), this.registerProvider(this);\n },\n beforeDestroy: function beforeDestroy() {\n this.preventCleanup = !0, this.deregisterProvider(this);\n },\n methods: Object.assign({}, B(), {\n setGroupValue: function setGroupValue(t, e) {\n n(this.proxy[t], e, !0) || this.setFieldValue(t, e);\n },\n removeItem: function removeItem() {\n this.$emit(\"remove\", this.index);\n }\n })\n},\n ne = function ne() {\n var t = this,\n e = t.$createElement,\n r = t._self._c || e;\n return r(\"FormulateSlot\", {\n attrs: {\n name: \"repeatable\",\n context: t.context,\n index: t.index,\n \"remove-item\": t.removeItem\n }\n }, [r(t.context.slotComponents.repeatable, t._b({\n tag: \"component\",\n attrs: {\n context: t.context,\n index: t.index,\n \"remove-item\": t.removeItem\n }\n }, \"component\", t.context.slotProps.repeatable, !1), [r(\"FormulateSlot\", {\n attrs: {\n context: t.context,\n index: t.index,\n name: \"default\"\n }\n })], 1)], 1);\n};\n\nne._withStripped = !0;\n\nvar se = T({\n render: ne,\n staticRenderFns: []\n}, void 0, ie, void 0, !1, void 0, !1, void 0, void 0, void 0),\n ae = {\n props: {\n index: {\n type: Number,\n default: null\n },\n context: {\n type: Object,\n required: !0\n },\n removeItem: {\n type: Function,\n required: !0\n }\n }\n},\n le = function le() {\n var t = this,\n e = t.$createElement,\n r = t._self._c || e;\n return t.context.repeatable ? r(\"a\", {\n class: t.context.classes.groupRepeatableRemove,\n attrs: {\n \"data-disabled\": t.context.model.length <= t.context.minimum,\n role: \"button\"\n },\n domProps: {\n textContent: t._s(t.context.removeLabel)\n },\n on: {\n click: function click(e) {\n return e.preventDefault(), t.removeItem(e);\n },\n keypress: function keypress(e) {\n return !e.type.indexOf(\"key\") && t._k(e.keyCode, \"enter\", 13, e.key, \"Enter\") ? null : t.removeItem(e);\n }\n }\n }) : t._e();\n};\n\nle._withStripped = !0;\n\nvar ue = T({\n render: le,\n staticRenderFns: []\n}, void 0, ae, void 0, !1, void 0, !1, void 0, void 0, void 0),\n ce = function ce() {\n this.options = {}, this.defaults = {\n components: {\n FormulateSlot: k,\n FormulateForm: W,\n FormulateFile: dt,\n FormulateHelp: lt,\n FormulateLabel: xt,\n FormulateInput: rt,\n FormulateErrors: nt,\n FormulateSchema: R,\n FormulateAddMore: bt,\n FormulateGrouping: ft,\n FormulateInputBox: wt,\n FormulateInputText: jt,\n FormulateInputFile: Rt,\n FormulateErrorList: Vt,\n FormulateRepeatable: Nt,\n FormulateInputGroup: Gt,\n FormulateInputButton: Ht,\n FormulateInputSelect: zt,\n FormulateInputSlider: Jt,\n FormulateButtonContent: te,\n FormulateInputTextArea: oe,\n FormulateRepeatableRemove: ue,\n FormulateRepeatableProvider: se\n },\n slotComponents: {\n addMore: \"FormulateAddMore\",\n buttonContent: \"FormulateButtonContent\",\n errorList: \"FormulateErrorList\",\n errors: \"FormulateErrors\",\n file: \"FormulateFile\",\n help: \"FormulateHelp\",\n label: \"FormulateLabel\",\n prefix: !1,\n remove: \"FormulateRepeatableRemove\",\n repeatable: \"FormulateRepeatable\",\n suffix: !1,\n uploadAreaMask: \"div\"\n },\n slotProps: {},\n library: o,\n rules: _,\n mimes: w,\n locale: !1,\n uploader: $,\n uploadUrl: !1,\n fileUrlKey: \"url\",\n uploadJustCompleteDuration: 1e3,\n errorHandler: function errorHandler(t) {\n return t;\n },\n plugins: [e],\n locales: {},\n failedValidation: function failedValidation() {\n return !1;\n },\n idPrefix: \"formulate-\",\n baseClasses: function baseClasses(t) {\n return t;\n },\n coreClasses: j,\n classes: {},\n useInputDecorators: !0,\n validationNameStrategy: !1\n }, this.registry = new Map(), this.idRegistry = {};\n};\n\nce.prototype.install = function (t, e) {\n var r = this;\n t.prototype.$formulate = this, this.options = this.defaults;\n var o = this.defaults.plugins;\n\n for (var i in e && Array.isArray(e.plugins) && e.plugins.length && (o = o.concat(e.plugins)), o.forEach(function (t) {\n return \"function\" == typeof t ? t(r) : null;\n }), this.extend(e || {}), this.options.components) {\n t.component(i, this.options.components[i]);\n }\n}, ce.prototype.nextId = function (t) {\n var e = !(!t.$route || !t.$route.path) && t.$route.path ? t.$route.path.replace(/[/\\\\.\\s]/g, \"-\") : \"global\";\n return Object.prototype.hasOwnProperty.call(this.idRegistry, e) || (this.idRegistry[e] = 0), \"\" + this.options.idPrefix + e + \"-\" + ++this.idRegistry[e];\n}, ce.prototype.extend = function (t) {\n if (\"object\" == _typeof(t)) return this.options = this.merge(this.options, t), this;\n throw new Error(\"Formulate.extend expects an object, was \" + _typeof(t));\n}, ce.prototype.merge = function (e, r, o) {\n void 0 === o && (o = !0);\n var i = {};\n\n for (var n in e) {\n r.hasOwnProperty(n) ? t(r[n]) && t(e[n]) ? i[n] = this.merge(e[n], r[n], o) : o && Array.isArray(e[n]) && Array.isArray(r[n]) ? i[n] = e[n].concat(r[n]) : i[n] = r[n] : i[n] = e[n];\n }\n\n for (var s in r) {\n i.hasOwnProperty(s) || (i[s] = r[s]);\n }\n\n return i;\n}, ce.prototype.classify = function (t) {\n return this.options.library.hasOwnProperty(t) ? this.options.library[t].classification : \"unknown\";\n}, ce.prototype.classes = function (t) {\n var e = this,\n r = this.options.coreClasses(t),\n o = this.options.baseClasses(r, t);\n return Object.keys(o).reduce(function (r, i) {\n var n,\n s = S(o[i], e.options.classes[i], t);\n return s = function (t, e, r, o) {\n return Object.keys(P).reduce(function (e, i) {\n if (P[i](o)) {\n var n = \"\" + t + a(i),\n s = n + \"Class\";\n if (r[n]) e = S(e, \"string\" == typeof r[n] ? l(r[n]) : r[n], o);\n if (o[s]) e = S(e, \"string\" == typeof o[s] ? l(o[s]) : o[n + \"Class\"], o);\n }\n\n return e;\n }, e);\n }(i, s = S(s, t[i + \"Class\"], t), e.options.classes, t), Object.assign(r, ((n = {})[i] = s, n));\n }, {});\n}, ce.prototype.typeProps = function (t) {\n var e = function e(t) {\n return Object.keys(t).reduce(function (e, r) {\n return Array.isArray(t[r]) ? e.concat(t[r]) : e;\n }, []);\n },\n r = e(this.options.slotProps);\n\n return this.options.library[t] ? r.concat(e(this.options.library[t].slotProps || {})) : r;\n}, ce.prototype.slotProps = function (t, e, r) {\n var o = Array.isArray(this.options.slotProps[e]) ? this.options.slotProps[e] : [],\n i = this.options.library[t];\n return i && i.slotProps && Array.isArray(i.slotProps[e]) && (o = o.concat(i.slotProps[e])), o.reduce(function (t, e) {\n var o;\n return Object.assign(t, ((o = {})[e] = r[e], o));\n }, {});\n}, ce.prototype.component = function (t) {\n return !!this.options.library.hasOwnProperty(t) && this.options.library[t].component;\n}, ce.prototype.slotComponent = function (t, e) {\n var r = this.options.library[t];\n return r && r.slotComponents && r.slotComponents[e] ? r.slotComponents[e] : this.options.slotComponents[e];\n}, ce.prototype.rules = function (t) {\n return void 0 === t && (t = {}), Object.assign({}, this.options.rules, t);\n}, ce.prototype.i18n = function (t) {\n if (t.$i18n) switch (_typeof(t.$i18n.locale)) {\n case \"string\":\n return t.$i18n.locale;\n\n case \"function\":\n return t.$i18n.locale();\n }\n return !1;\n}, ce.prototype.getLocale = function (t) {\n var e = this;\n return this.selectedLocale || (this.selectedLocale = [this.options.locale, this.i18n(t), \"en\"].reduce(function (t, r) {\n if (t) return t;\n\n if (r) {\n var o = function (t) {\n return t.split(\"-\").reduce(function (t, e) {\n return t.length && t.unshift(t[0] + \"-\" + e), t.length ? t : [e];\n }, []);\n }(r).find(function (t) {\n return p(e.options.locales, t);\n });\n\n o && (t = o);\n }\n\n return t;\n }, !1)), this.selectedLocale;\n}, ce.prototype.setLocale = function (t) {\n p(this.options.locales, t) && (this.options.locale = t, this.selectedLocale = t, this.registry.forEach(function (t, e) {\n t.hasValidationErrors();\n }));\n}, ce.prototype.validationMessage = function (t, e, r) {\n var o = this.options.locales[this.getLocale(r)];\n return o.hasOwnProperty(t) ? o[t](e) : o.hasOwnProperty(\"default\") ? o.default(e) : \"Invalid field value\";\n}, ce.prototype.register = function (t) {\n \"FormulateForm\" === t.$options.name && t.name && this.registry.set(t.name, t);\n}, ce.prototype.deregister = function (t) {\n \"FormulateForm\" === t.$options.name && t.name && this.registry.has(t.name) && this.registry.delete(t.name);\n}, ce.prototype.handle = function (t, e, r) {\n void 0 === r && (r = !1);\n var o = r ? t : this.options.errorHandler(t, e);\n return e && this.registry.has(e) && this.registry.get(e).applyErrors({\n formErrors: l(o.formErrors),\n inputErrors: o.inputErrors || {}\n }), o;\n}, ce.prototype.reset = function (t, e) {\n void 0 === e && (e = {}), this.resetValidation(t), this.setValues(t, e);\n}, ce.prototype.submit = function (t) {\n this.registry.get(t).formSubmitted();\n}, ce.prototype.resetValidation = function (t) {\n var e = this.registry.get(t);\n e.hideErrors(t), e.namedErrors = [], e.namedFieldErrors = {};\n}, ce.prototype.setValues = function (t, e) {\n e && !Array.isArray(e) && \"object\" == _typeof(e) && this.registry.get(t).setValues(Object.assign({}, e));\n}, ce.prototype.getUploader = function () {\n return this.options.uploader || !1;\n}, ce.prototype.getUploadUrl = function () {\n return this.options.uploadUrl || !1;\n}, ce.prototype.getFileUrlKey = function () {\n return this.options.fileUrlKey || \"url\";\n}, ce.prototype.createUpload = function (t, e) {\n return new b(t, e, this.options);\n}, ce.prototype.failedValidation = function (t) {\n return this.options.failedValidation(this);\n};\nvar de = new ce();\nexport default de;","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name getTime\n * @category Timestamp Helpers\n * @summary Get the milliseconds timestamp of the given date.\n *\n * @description\n * Get the milliseconds timestamp of the given date.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the given date\n * @returns {Number} the timestamp\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Get the timestamp of 29 February 2012 11:45:05.123:\n * const result = getTime(new Date(2012, 1, 29, 11, 45, 5, 123))\n * //=> 1330515905123\n */\n\nexport default function getTime(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var timestamp = date.getTime();\n return timestamp;\n}","import getTime from \"../getTime/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name getUnixTime\n * @category Timestamp Helpers\n * @summary Get the seconds timestamp of the given date.\n *\n * @description\n * Get the seconds timestamp of the given date.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the given date\n * @returns {Number} the timestamp\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Get the timestamp of 29 February 2012 11:45:05 CET:\n * const result = getUnixTime(new Date(2012, 1, 29, 11, 45, 5))\n * //=> 1330512305\n */\n\nexport default function getUnixTime(dirtyDate) {\n requiredArgs(1, arguments);\n return Math.floor(getTime(dirtyDate) / 1000);\n}","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return typeof obj;\n };\n\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","import { __assign, __values } from \"tslib\";\nimport { IS_DEBUG_BUILD } from './flags';\nimport { getGlobalObject } from './global';\nimport { isInstanceOf, isString } from './is';\nimport { CONSOLE_LEVELS, logger } from './logger';\nimport { fill } from './object';\nimport { getFunctionName } from './stacktrace';\nimport { supportsHistory, supportsNativeFetch } from './supports';\nvar global = getGlobalObject();\n/**\n * Instrument native APIs to call handlers that can be used to create breadcrumbs, APM spans etc.\n * - Console API\n * - Fetch API\n * - XHR API\n * - History API\n * - DOM API (click/typing)\n * - Error API\n * - UnhandledRejection API\n */\n\nvar handlers = {};\nvar instrumented = {};\n/** Instruments given API */\n\nfunction instrument(type) {\n if (instrumented[type]) {\n return;\n }\n\n instrumented[type] = true;\n\n switch (type) {\n case 'console':\n instrumentConsole();\n break;\n\n case 'dom':\n instrumentDOM();\n break;\n\n case 'xhr':\n instrumentXHR();\n break;\n\n case 'fetch':\n instrumentFetch();\n break;\n\n case 'history':\n instrumentHistory();\n break;\n\n case 'error':\n instrumentError();\n break;\n\n case 'unhandledrejection':\n instrumentUnhandledRejection();\n break;\n\n default:\n IS_DEBUG_BUILD && logger.warn('unknown instrumentation type:', type);\n return;\n }\n}\n/**\n * Add handler that will be called when given type of instrumentation triggers.\n * Use at your own risk, this might break without changelog notice, only used internally.\n * @hidden\n */\n\n\nexport function addInstrumentationHandler(type, callback) {\n handlers[type] = handlers[type] || [];\n handlers[type].push(callback);\n instrument(type);\n}\n/** JSDoc */\n\nfunction triggerHandlers(type, data) {\n var e_1, _a;\n\n if (!type || !handlers[type]) {\n return;\n }\n\n try {\n for (var _b = __values(handlers[type] || []), _c = _b.next(); !_c.done; _c = _b.next()) {\n var handler = _c.value;\n\n try {\n handler(data);\n } catch (e) {\n IS_DEBUG_BUILD && logger.error(\"Error while triggering instrumentation handler.\\nType: \" + type + \"\\nName: \" + getFunctionName(handler) + \"\\nError:\", e);\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n}\n/** JSDoc */\n\n\nfunction instrumentConsole() {\n if (!('console' in global)) {\n return;\n }\n\n CONSOLE_LEVELS.forEach(function (level) {\n if (!(level in global.console)) {\n return;\n }\n\n fill(global.console, level, function (originalConsoleMethod) {\n return function () {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n triggerHandlers('console', {\n args: args,\n level: level\n }); // this fails for some browsers. :(\n\n if (originalConsoleMethod) {\n originalConsoleMethod.apply(global.console, args);\n }\n };\n });\n });\n}\n/** JSDoc */\n\n\nfunction instrumentFetch() {\n if (!supportsNativeFetch()) {\n return;\n }\n\n fill(global, 'fetch', function (originalFetch) {\n return function () {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n var handlerData = {\n args: args,\n fetchData: {\n method: getFetchMethod(args),\n url: getFetchUrl(args)\n },\n startTimestamp: Date.now()\n };\n triggerHandlers('fetch', __assign({}, handlerData)); // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n\n return originalFetch.apply(global, args).then(function (response) {\n triggerHandlers('fetch', __assign(__assign({}, handlerData), {\n endTimestamp: Date.now(),\n response: response\n }));\n return response;\n }, function (error) {\n triggerHandlers('fetch', __assign(__assign({}, handlerData), {\n endTimestamp: Date.now(),\n error: error\n })); // NOTE: If you are a Sentry user, and you are seeing this stack frame,\n // it means the sentry.javascript SDK caught an error invoking your application code.\n // This is expected behavior and NOT indicative of a bug with sentry.javascript.\n\n throw error;\n });\n };\n });\n}\n/* eslint-disable @typescript-eslint/no-unsafe-member-access */\n\n/** Extract `method` from fetch call arguments */\n\n\nfunction getFetchMethod(fetchArgs) {\n if (fetchArgs === void 0) {\n fetchArgs = [];\n }\n\n if ('Request' in global && isInstanceOf(fetchArgs[0], Request) && fetchArgs[0].method) {\n return String(fetchArgs[0].method).toUpperCase();\n }\n\n if (fetchArgs[1] && fetchArgs[1].method) {\n return String(fetchArgs[1].method).toUpperCase();\n }\n\n return 'GET';\n}\n/** Extract `url` from fetch call arguments */\n\n\nfunction getFetchUrl(fetchArgs) {\n if (fetchArgs === void 0) {\n fetchArgs = [];\n }\n\n if (typeof fetchArgs[0] === 'string') {\n return fetchArgs[0];\n }\n\n if ('Request' in global && isInstanceOf(fetchArgs[0], Request)) {\n return fetchArgs[0].url;\n }\n\n return String(fetchArgs[0]);\n}\n/* eslint-enable @typescript-eslint/no-unsafe-member-access */\n\n/** JSDoc */\n\n\nfunction instrumentXHR() {\n if (!('XMLHttpRequest' in global)) {\n return;\n }\n\n var xhrproto = XMLHttpRequest.prototype;\n fill(xhrproto, 'open', function (originalOpen) {\n return function () {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n } // eslint-disable-next-line @typescript-eslint/no-this-alias\n\n\n var xhr = this;\n var url = args[1];\n var xhrInfo = xhr.__sentry_xhr__ = {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n method: isString(args[0]) ? args[0].toUpperCase() : args[0],\n url: args[1]\n }; // if Sentry key appears in URL, don't capture it as a request\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n\n if (isString(url) && xhrInfo.method === 'POST' && url.match(/sentry_key/)) {\n xhr.__sentry_own_request__ = true;\n }\n\n var onreadystatechangeHandler = function onreadystatechangeHandler() {\n if (xhr.readyState === 4) {\n try {\n // touching statusCode in some platforms throws\n // an exception\n xhrInfo.status_code = xhr.status;\n } catch (e) {\n /* do nothing */\n }\n\n triggerHandlers('xhr', {\n args: args,\n endTimestamp: Date.now(),\n startTimestamp: Date.now(),\n xhr: xhr\n });\n }\n };\n\n if ('onreadystatechange' in xhr && typeof xhr.onreadystatechange === 'function') {\n fill(xhr, 'onreadystatechange', function (original) {\n return function () {\n var readyStateArgs = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n readyStateArgs[_i] = arguments[_i];\n }\n\n onreadystatechangeHandler();\n return original.apply(xhr, readyStateArgs);\n };\n });\n } else {\n xhr.addEventListener('readystatechange', onreadystatechangeHandler);\n }\n\n return originalOpen.apply(xhr, args);\n };\n });\n fill(xhrproto, 'send', function (originalSend) {\n return function () {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n if (this.__sentry_xhr__ && args[0] !== undefined) {\n this.__sentry_xhr__.body = args[0];\n }\n\n triggerHandlers('xhr', {\n args: args,\n startTimestamp: Date.now(),\n xhr: this\n });\n return originalSend.apply(this, args);\n };\n });\n}\n\nvar lastHref;\n/** JSDoc */\n\nfunction instrumentHistory() {\n if (!supportsHistory()) {\n return;\n }\n\n var oldOnPopState = global.onpopstate;\n\n global.onpopstate = function () {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n var to = global.location.href; // keep track of the current URL state, as we always receive only the updated state\n\n var from = lastHref;\n lastHref = to;\n triggerHandlers('history', {\n from: from,\n to: to\n });\n\n if (oldOnPopState) {\n // Apparently this can throw in Firefox when incorrectly implemented plugin is installed.\n // https://github.com/getsentry/sentry-javascript/issues/3344\n // https://github.com/bugsnag/bugsnag-js/issues/469\n try {\n return oldOnPopState.apply(this, args);\n } catch (_oO) {// no-empty\n }\n }\n };\n /** @hidden */\n\n\n function historyReplacementFunction(originalHistoryFunction) {\n return function () {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n var url = args.length > 2 ? args[2] : undefined;\n\n if (url) {\n // coerce to string (this is what pushState does)\n var from = lastHref;\n var to = String(url); // keep track of the current URL state, as we always receive only the updated state\n\n lastHref = to;\n triggerHandlers('history', {\n from: from,\n to: to\n });\n }\n\n return originalHistoryFunction.apply(this, args);\n };\n }\n\n fill(global.history, 'pushState', historyReplacementFunction);\n fill(global.history, 'replaceState', historyReplacementFunction);\n}\n\nvar debounceDuration = 1000;\nvar debounceTimerID;\nvar lastCapturedEvent;\n/**\n * Decide whether the current event should finish the debounce of previously captured one.\n * @param previous previously captured event\n * @param current event to be captured\n */\n\nfunction shouldShortcircuitPreviousDebounce(previous, current) {\n // If there was no previous event, it should always be swapped for the new one.\n if (!previous) {\n return true;\n } // If both events have different type, then user definitely performed two separate actions. e.g. click + keypress.\n\n\n if (previous.type !== current.type) {\n return true;\n }\n\n try {\n // If both events have the same type, it's still possible that actions were performed on different targets.\n // e.g. 2 clicks on different buttons.\n if (previous.target !== current.target) {\n return true;\n }\n } catch (e) {// just accessing `target` property can throw an exception in some rare circumstances\n // see: https://github.com/getsentry/sentry-javascript/issues/838\n } // If both events have the same type _and_ same `target` (an element which triggered an event, _not necessarily_\n // to which an event listener was attached), we treat them as the same action, as we want to capture\n // only one breadcrumb. e.g. multiple clicks on the same button, or typing inside a user input box.\n\n\n return false;\n}\n/**\n * Decide whether an event should be captured.\n * @param event event to be captured\n */\n\n\nfunction shouldSkipDOMEvent(event) {\n // We are only interested in filtering `keypress` events for now.\n if (event.type !== 'keypress') {\n return false;\n }\n\n try {\n var target = event.target;\n\n if (!target || !target.tagName) {\n return true;\n } // Only consider keypress events on actual input elements. This will disregard keypresses targeting body\n // e.g.tabbing through elements, hotkeys, etc.\n\n\n if (target.tagName === 'INPUT' || target.tagName === 'TEXTAREA' || target.isContentEditable) {\n return false;\n }\n } catch (e) {// just accessing `target` property can throw an exception in some rare circumstances\n // see: https://github.com/getsentry/sentry-javascript/issues/838\n }\n\n return true;\n}\n/**\n * Wraps addEventListener to capture UI breadcrumbs\n * @param handler function that will be triggered\n * @param globalListener indicates whether event was captured by the global event listener\n * @returns wrapped breadcrumb events handler\n * @hidden\n */\n\n\nfunction makeDOMEventHandler(handler, globalListener) {\n if (globalListener === void 0) {\n globalListener = false;\n }\n\n return function (event) {\n // It's possible this handler might trigger multiple times for the same\n // event (e.g. event propagation through node ancestors).\n // Ignore if we've already captured that event.\n if (!event || lastCapturedEvent === event) {\n return;\n } // We always want to skip _some_ events.\n\n\n if (shouldSkipDOMEvent(event)) {\n return;\n }\n\n var name = event.type === 'keypress' ? 'input' : event.type; // If there is no debounce timer, it means that we can safely capture the new event and store it for future comparisons.\n\n if (debounceTimerID === undefined) {\n handler({\n event: event,\n name: name,\n global: globalListener\n });\n lastCapturedEvent = event;\n } // If there is a debounce awaiting, see if the new event is different enough to treat it as a unique one.\n // If that's the case, emit the previous event and store locally the newly-captured DOM event.\n else if (shouldShortcircuitPreviousDebounce(lastCapturedEvent, event)) {\n handler({\n event: event,\n name: name,\n global: globalListener\n });\n lastCapturedEvent = event;\n } // Start a new debounce timer that will prevent us from capturing multiple events that should be grouped together.\n\n\n clearTimeout(debounceTimerID);\n debounceTimerID = global.setTimeout(function () {\n debounceTimerID = undefined;\n }, debounceDuration);\n };\n}\n/** JSDoc */\n\n\nfunction instrumentDOM() {\n if (!('document' in global)) {\n return;\n } // Make it so that any click or keypress that is unhandled / bubbled up all the way to the document triggers our dom\n // handlers. (Normally we have only one, which captures a breadcrumb for each click or keypress.) Do this before\n // we instrument `addEventListener` so that we don't end up attaching this handler twice.\n\n\n var triggerDOMHandler = triggerHandlers.bind(null, 'dom');\n var globalDOMEventHandler = makeDOMEventHandler(triggerDOMHandler, true);\n global.document.addEventListener('click', globalDOMEventHandler, false);\n global.document.addEventListener('keypress', globalDOMEventHandler, false); // After hooking into click and keypress events bubbled up to `document`, we also hook into user-handled\n // clicks & keypresses, by adding an event listener of our own to any element to which they add a listener. That\n // way, whenever one of their handlers is triggered, ours will be, too. (This is needed because their handler\n // could potentially prevent the event from bubbling up to our global listeners. This way, our handler are still\n // guaranteed to fire at least once.)\n\n ['EventTarget', 'Node'].forEach(function (target) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n var proto = global[target] && global[target].prototype; // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, no-prototype-builtins\n\n if (!proto || !proto.hasOwnProperty || !proto.hasOwnProperty('addEventListener')) {\n return;\n }\n\n fill(proto, 'addEventListener', function (originalAddEventListener) {\n return function (type, listener, options) {\n if (type === 'click' || type == 'keypress') {\n try {\n var el = this;\n var handlers_1 = el.__sentry_instrumentation_handlers__ = el.__sentry_instrumentation_handlers__ || {};\n var handlerForType = handlers_1[type] = handlers_1[type] || {\n refCount: 0\n };\n\n if (!handlerForType.handler) {\n var handler = makeDOMEventHandler(triggerDOMHandler);\n handlerForType.handler = handler;\n originalAddEventListener.call(this, type, handler, options);\n }\n\n handlerForType.refCount += 1;\n } catch (e) {// Accessing dom properties is always fragile.\n // Also allows us to skip `addEventListenrs` calls with no proper `this` context.\n }\n }\n\n return originalAddEventListener.call(this, type, listener, options);\n };\n });\n fill(proto, 'removeEventListener', function (originalRemoveEventListener) {\n return function (type, listener, options) {\n if (type === 'click' || type == 'keypress') {\n try {\n var el = this;\n var handlers_2 = el.__sentry_instrumentation_handlers__ || {};\n var handlerForType = handlers_2[type];\n\n if (handlerForType) {\n handlerForType.refCount -= 1; // If there are no longer any custom handlers of the current type on this element, we can remove ours, too.\n\n if (handlerForType.refCount <= 0) {\n originalRemoveEventListener.call(this, type, handlerForType.handler, options);\n handlerForType.handler = undefined;\n delete handlers_2[type]; // eslint-disable-line @typescript-eslint/no-dynamic-delete\n } // If there are no longer any custom handlers of any type on this element, cleanup everything.\n\n\n if (Object.keys(handlers_2).length === 0) {\n delete el.__sentry_instrumentation_handlers__;\n }\n }\n } catch (e) {// Accessing dom properties is always fragile.\n // Also allows us to skip `addEventListenrs` calls with no proper `this` context.\n }\n }\n\n return originalRemoveEventListener.call(this, type, listener, options);\n };\n });\n });\n}\n\nvar _oldOnErrorHandler = null;\n/** JSDoc */\n\nfunction instrumentError() {\n _oldOnErrorHandler = global.onerror;\n\n global.onerror = function (msg, url, line, column, error) {\n triggerHandlers('error', {\n column: column,\n error: error,\n line: line,\n msg: msg,\n url: url\n });\n\n if (_oldOnErrorHandler) {\n // eslint-disable-next-line prefer-rest-params\n return _oldOnErrorHandler.apply(this, arguments);\n }\n\n return false;\n };\n}\n\nvar _oldOnUnhandledRejectionHandler = null;\n/** JSDoc */\n\nfunction instrumentUnhandledRejection() {\n _oldOnUnhandledRejectionHandler = global.onunhandledrejection;\n\n global.onunhandledrejection = function (e) {\n triggerHandlers('unhandledrejection', e);\n\n if (_oldOnUnhandledRejectionHandler) {\n // eslint-disable-next-line prefer-rest-params\n return _oldOnUnhandledRejectionHandler.apply(this, arguments);\n }\n\n return true;\n };\n}","import { computed } from 'vue';\nimport { useStore, useStoreGetters } from 'dashboard/composables/store';\n\nexport const DEFAULT_CONVERSATION_SIDEBAR_ITEMS_ORDER = Object.freeze([\n { name: 'conversation_actions' },\n { name: 'macros' },\n { name: 'conversation_info' },\n { name: 'contact_attributes' },\n { name: 'previous_conversation' },\n { name: 'conversation_participants' },\n]);\n\nexport const DEFAULT_CONTACT_SIDEBAR_ITEMS_ORDER = Object.freeze([\n { name: 'contact_attributes' },\n { name: 'contact_labels' },\n { name: 'previous_conversation' },\n]);\n\n/**\n * Slugifies the channel name.\n * Replaces spaces, hyphens, and double colons with underscores.\n * @param {string} name - The channel name to slugify.\n * @returns {string} The slugified channel name.\n */\nconst slugifyChannel = name =>\n name?.toLowerCase().replace(' ', '_').replace('-', '_').replace('::', '_');\n\n/**\n * Computes the order of items in the conversation sidebar, using defaults if not present.\n * @param {Object} uiSettings - Reactive UI settings object.\n * @returns {Array} Ordered list of sidebar items.\n */\nconst useConversationSidebarItemsOrder = uiSettings => {\n return computed(() => {\n const { conversation_sidebar_items_order: itemsOrder } = uiSettings.value;\n // If the sidebar order is not set, use the default order.\n if (!itemsOrder) {\n return DEFAULT_CONVERSATION_SIDEBAR_ITEMS_ORDER;\n }\n // Create a copy of itemsOrder to avoid mutating the original store object.\n const itemsOrderCopy = [...itemsOrder];\n // If the sidebar order doesn't have the new elements, then add them to the list.\n DEFAULT_CONVERSATION_SIDEBAR_ITEMS_ORDER.forEach(item => {\n if (!itemsOrderCopy.find(i => i.name === item.name)) {\n itemsOrderCopy.push(item);\n }\n });\n return itemsOrderCopy;\n });\n};\n\n/**\n * Computes the order of items in the contact sidebar,using defaults if not present.\n * @param {Object} uiSettings - Reactive UI settings object.\n * @returns {Array} Ordered list of sidebar items.\n */\nconst useContactSidebarItemsOrder = uiSettings => {\n return computed(() => {\n const { contact_sidebar_items_order: itemsOrder } = uiSettings.value;\n return itemsOrder || DEFAULT_CONTACT_SIDEBAR_ITEMS_ORDER;\n });\n};\n\n/**\n * Toggles the open state of a sidebar item.\n * @param {string} key - The key of the sidebar item to toggle.\n * @param {Object} uiSettings - Reactive UI settings object.\n * @param {Function} updateUISettings - Function to update UI settings.\n */\nconst toggleSidebarUIState = (key, uiSettings, updateUISettings) => {\n updateUISettings({ [key]: !uiSettings.value[key] });\n};\n\n/**\n * Sets the signature flag for a specific channel type in the inbox settings.\n * @param {string} channelType - The type of the channel.\n * @param {boolean} value - The value to set for the signature enabled flag.\n * @param {Function} updateUISettings - Function to update UI settings.\n */\nconst setSignatureFlagForInbox = (channelType, value, updateUISettings) => {\n if (!channelType) return;\n\n const slugifiedChannel = slugifyChannel(channelType);\n updateUISettings({ [`${slugifiedChannel}_signature_enabled`]: value });\n};\n\n/**\n * Fetches the signature flag for a specific channel type from UI settings.\n * @param {string} channelType - The type of the channel.\n * @param {Object} uiSettings - Reactive UI settings object.\n * @returns {boolean} The value of the signature enabled flag.\n */\nconst fetchSignatureFlagFromUISettings = (channelType, uiSettings) => {\n if (!channelType) return false;\n\n const slugifiedChannel = slugifyChannel(channelType);\n return uiSettings.value[`${slugifiedChannel}_signature_enabled`];\n};\n\n/**\n * Checks if a specific editor hotkey is enabled.\n * @param {string} key - The key to check.\n * @param {Object} uiSettings - Reactive UI settings object.\n * @returns {boolean} True if the hotkey is enabled, otherwise false.\n */\nconst isEditorHotKeyEnabled = (key, uiSettings) => {\n const {\n editor_message_key: editorMessageKey,\n enter_to_send_enabled: enterToSendEnabled,\n } = uiSettings.value || {};\n if (!editorMessageKey) {\n return key === (enterToSendEnabled ? 'enter' : 'cmd_enter');\n }\n return editorMessageKey === key;\n};\n\n/**\n * Main composable function for managing UI settings.\n * @returns {Object} An object containing reactive properties and methods for UI settings management.\n */\nexport function useUISettings() {\n const getters = useStoreGetters();\n const store = useStore();\n const uiSettings = computed(() => getters.getUISettings.value);\n\n const updateUISettings = (settings = {}) => {\n store.dispatch('updateUISettings', {\n uiSettings: {\n ...uiSettings.value,\n ...settings,\n },\n });\n };\n\n return {\n uiSettings,\n updateUISettings,\n conversationSidebarItemsOrder: useConversationSidebarItemsOrder(uiSettings),\n contactSidebarItemsOrder: useContactSidebarItemsOrder(uiSettings),\n isContactSidebarItemOpen: key => !!uiSettings.value[key],\n toggleSidebarUIState: key =>\n toggleSidebarUIState(key, uiSettings, updateUISettings),\n setSignatureFlagForInbox: (channelType, value) =>\n setSignatureFlagForInbox(channelType, value, updateUISettings),\n fetchSignatureFlagFromUISettings: channelType =>\n fetchSignatureFlagFromUISettings(channelType, uiSettings),\n isEditorHotKeyEnabled: key => isEditorHotKeyEnabled(key, uiSettings),\n };\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar $trim = require('../internals/string-trim').trim;\nvar forcedStringTrimMethod = require('../internals/string-trim-forced');\n\n// `String.prototype.trim` method\n// https://tc39.es/ecma262/#sec-string.prototype.trim\n$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {\n trim: function trim() {\n return $trim(this);\n }\n});\n","import toInteger from \"../_lib/toInteger/index.js\";\nimport addDays from \"../addDays/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name subDays\n * @category Day Helpers\n * @summary Subtract the specified number of days from the given date.\n *\n * @description\n * Subtract the specified number of days from the given date.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of days to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the days subtracted\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Subtract 10 days from 1 September 2014:\n * const result = subDays(new Date(2014, 8, 1), 10)\n * //=> Fri Aug 22 2014 00:00:00\n */\n\nexport default function subDays(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var amount = toInteger(dirtyAmount);\n return addDays(dirtyDate, -amount);\n}","import { mapGetters } from 'vuex';\nimport { frontendURL } from 'dashboard/helper/URLHelper';\nimport allLocales from 'shared/constants/locales.js';\nexport default {\n computed: {\n ...mapGetters({ accountId: 'getCurrentAccountId' }),\n portalSlug() {\n return this.$route.params.portalSlug;\n },\n locale() {\n return this.$route.params.locale;\n },\n },\n methods: {\n articleUrl(id) {\n return frontendURL(\n `accounts/${this.accountId}/portals/${this.portalSlug}/${this.locale}/articles/${id}`\n );\n },\n localeName(code) {\n return allLocales[code];\n },\n },\n};\n","'use strict';\nvar collection = require('../internals/collection');\nvar collectionStrong = require('../internals/collection-strong');\n\n// `Set` constructor\n// https://tc39.es/ecma262/#sec-set-objects\nmodule.exports = collection('Set', function (init) {\n return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionStrong);\n","/**\n * Detects support for emoji character sets.\n *\n * Based on the Modernizr emoji detection.\n * https://github.com/Modernizr/Modernizr/blob/347ddb078116cee91b25b6e897e211b023f9dcb4/feature-detects/emoji.js\n *\n * @return {Boolean} true or false\n * @example\n *\n * hasEmojiSupport()\n * // => true|false\n */\nexport const hasEmojiSupport = () => {\n const pixelRatio = window.devicePixelRatio || 1;\n const offset = 12 * pixelRatio;\n const node = document.createElement('canvas');\n\n // canvastext support\n if (\n !node.getContext ||\n !node.getContext('2d') ||\n typeof node.getContext('2d').fillText !== 'function'\n ) {\n return false;\n }\n\n const ctx = node.getContext('2d');\n\n ctx.fillStyle = '#f00';\n ctx.textBaseline = 'top';\n ctx.font = '32px Arial';\n ctx.fillText('\\ud83d\\udc28', 0, 0); // U+1F428 KOALA\n return ctx.getImageData(offset, offset, 1, 1).data[0] !== 0;\n};\n\nexport const removeEmoji = text => {\n if (text) {\n return text\n .replace(\n /([\\u2700-\\u27BF]|[\\uE000-\\uF8FF]|\\uD83C[\\uDC00-\\uDFFF]|\\uD83D[\\uDC00-\\uDFFF]|[\\u2011-\\u26FF]|\\uD83E[\\uDD10-\\uDDFF])/g,\n ''\n )\n .replace(/\\s+/g, ' ')\n .trim();\n }\n return '';\n};\n","'use strict'; ////////////////////////////////////////////////////////////////////////////////\n// Helpers\n// Merge objects\n//\n\nfunction assign(obj\n/*from1, from2, from3, ...*/\n) {\n var sources = Array.prototype.slice.call(arguments, 1);\n sources.forEach(function (source) {\n if (!source) {\n return;\n }\n\n Object.keys(source).forEach(function (key) {\n obj[key] = source[key];\n });\n });\n return obj;\n}\n\nfunction _class(obj) {\n return Object.prototype.toString.call(obj);\n}\n\nfunction isString(obj) {\n return _class(obj) === '[object String]';\n}\n\nfunction isObject(obj) {\n return _class(obj) === '[object Object]';\n}\n\nfunction isRegExp(obj) {\n return _class(obj) === '[object RegExp]';\n}\n\nfunction isFunction(obj) {\n return _class(obj) === '[object Function]';\n}\n\nfunction escapeRE(str) {\n return str.replace(/[.?*+^$[\\]\\\\(){}|-]/g, '\\\\$&');\n} ////////////////////////////////////////////////////////////////////////////////\n\n\nvar defaultOptions = {\n fuzzyLink: true,\n fuzzyEmail: true,\n fuzzyIP: false\n};\n\nfunction isOptionsObj(obj) {\n return Object.keys(obj || {}).reduce(function (acc, k) {\n return acc || defaultOptions.hasOwnProperty(k);\n }, false);\n}\n\nvar defaultSchemas = {\n 'http:': {\n validate: function validate(text, pos, self) {\n var tail = text.slice(pos);\n\n if (!self.re.http) {\n // compile lazily, because \"host\"-containing variables can change on tlds update.\n self.re.http = new RegExp('^\\\\/\\\\/' + self.re.src_auth + self.re.src_host_port_strict + self.re.src_path, 'i');\n }\n\n if (self.re.http.test(tail)) {\n return tail.match(self.re.http)[0].length;\n }\n\n return 0;\n }\n },\n 'https:': 'http:',\n 'ftp:': 'http:',\n '//': {\n validate: function validate(text, pos, self) {\n var tail = text.slice(pos);\n\n if (!self.re.no_http) {\n // compile lazily, because \"host\"-containing variables can change on tlds update.\n self.re.no_http = new RegExp('^' + self.re.src_auth + // Don't allow single-level domains, because of false positives like '//test'\n // with code comments\n '(?:localhost|(?:(?:' + self.re.src_domain + ')\\\\.)+' + self.re.src_domain_root + ')' + self.re.src_port + self.re.src_host_terminator + self.re.src_path, 'i');\n }\n\n if (self.re.no_http.test(tail)) {\n // should not be `://` & `///`, that protects from errors in protocol name\n if (pos >= 3 && text[pos - 3] === ':') {\n return 0;\n }\n\n if (pos >= 3 && text[pos - 3] === '/') {\n return 0;\n }\n\n return tail.match(self.re.no_http)[0].length;\n }\n\n return 0;\n }\n },\n 'mailto:': {\n validate: function validate(text, pos, self) {\n var tail = text.slice(pos);\n\n if (!self.re.mailto) {\n self.re.mailto = new RegExp('^' + self.re.src_email_name + '@' + self.re.src_host_strict, 'i');\n }\n\n if (self.re.mailto.test(tail)) {\n return tail.match(self.re.mailto)[0].length;\n }\n\n return 0;\n }\n }\n};\n/*eslint-disable max-len*/\n// RE pattern for 2-character tlds (autogenerated by ./support/tlds_2char_gen.js)\n\nvar tlds_2ch_src_re = 'a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]'; // DON'T try to make PRs with changes. Extend TLDs with LinkifyIt.tlds() instead\n\nvar tlds_default = 'biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф'.split('|');\n/*eslint-enable max-len*/\n////////////////////////////////////////////////////////////////////////////////\n\nfunction resetScanCache(self) {\n self.__index__ = -1;\n self.__text_cache__ = '';\n}\n\nfunction createValidator(re) {\n return function (text, pos) {\n var tail = text.slice(pos);\n\n if (re.test(tail)) {\n return tail.match(re)[0].length;\n }\n\n return 0;\n };\n}\n\nfunction createNormalizer() {\n return function (match, self) {\n self.normalize(match);\n };\n} // Schemas compiler. Build regexps.\n//\n\n\nfunction compile(self) {\n // Load & clone RE patterns.\n var re = self.re = require('./lib/re')(self.__opts__); // Define dynamic patterns\n\n\n var tlds = self.__tlds__.slice();\n\n self.onCompile();\n\n if (!self.__tlds_replaced__) {\n tlds.push(tlds_2ch_src_re);\n }\n\n tlds.push(re.src_xn);\n re.src_tlds = tlds.join('|');\n\n function untpl(tpl) {\n return tpl.replace('%TLDS%', re.src_tlds);\n }\n\n re.email_fuzzy = RegExp(untpl(re.tpl_email_fuzzy), 'i');\n re.link_fuzzy = RegExp(untpl(re.tpl_link_fuzzy), 'i');\n re.link_no_ip_fuzzy = RegExp(untpl(re.tpl_link_no_ip_fuzzy), 'i');\n re.host_fuzzy_test = RegExp(untpl(re.tpl_host_fuzzy_test), 'i'); //\n // Compile each schema\n //\n\n var aliases = [];\n self.__compiled__ = {}; // Reset compiled data\n\n function schemaError(name, val) {\n throw new Error('(LinkifyIt) Invalid schema \"' + name + '\": ' + val);\n }\n\n Object.keys(self.__schemas__).forEach(function (name) {\n var val = self.__schemas__[name]; // skip disabled methods\n\n if (val === null) {\n return;\n }\n\n var compiled = {\n validate: null,\n link: null\n };\n self.__compiled__[name] = compiled;\n\n if (isObject(val)) {\n if (isRegExp(val.validate)) {\n compiled.validate = createValidator(val.validate);\n } else if (isFunction(val.validate)) {\n compiled.validate = val.validate;\n } else {\n schemaError(name, val);\n }\n\n if (isFunction(val.normalize)) {\n compiled.normalize = val.normalize;\n } else if (!val.normalize) {\n compiled.normalize = createNormalizer();\n } else {\n schemaError(name, val);\n }\n\n return;\n }\n\n if (isString(val)) {\n aliases.push(name);\n return;\n }\n\n schemaError(name, val);\n }); //\n // Compile postponed aliases\n //\n\n aliases.forEach(function (alias) {\n if (!self.__compiled__[self.__schemas__[alias]]) {\n // Silently fail on missed schemas to avoid errons on disable.\n // schemaError(alias, self.__schemas__[alias]);\n return;\n }\n\n self.__compiled__[alias].validate = self.__compiled__[self.__schemas__[alias]].validate;\n self.__compiled__[alias].normalize = self.__compiled__[self.__schemas__[alias]].normalize;\n }); //\n // Fake record for guessed links\n //\n\n self.__compiled__[''] = {\n validate: null,\n normalize: createNormalizer()\n }; //\n // Build schema condition\n //\n\n var slist = Object.keys(self.__compiled__).filter(function (name) {\n // Filter disabled & fake schemas\n return name.length > 0 && self.__compiled__[name];\n }).map(escapeRE).join('|'); // (?!_) cause 1.5x slowdown\n\n self.re.schema_test = RegExp(\"(^|(?!_)(?:[><\\uFF5C]|\" + re.src_ZPCc + '))(' + slist + ')', 'i');\n self.re.schema_search = RegExp(\"(^|(?!_)(?:[><\\uFF5C]|\" + re.src_ZPCc + '))(' + slist + ')', 'ig');\n self.re.schema_at_start = RegExp('^' + self.re.schema_search.source, 'i');\n self.re.pretest = RegExp('(' + self.re.schema_test.source + ')|(' + self.re.host_fuzzy_test.source + ')|@', 'i'); //\n // Cleanup\n //\n\n resetScanCache(self);\n}\n/**\n * class Match\n *\n * Match result. Single element of array, returned by [[LinkifyIt#match]]\n **/\n\n\nfunction Match(self, shift) {\n var start = self.__index__,\n end = self.__last_index__,\n text = self.__text_cache__.slice(start, end);\n /**\n * Match#schema -> String\n *\n * Prefix (protocol) for matched string.\n **/\n\n\n this.schema = self.__schema__.toLowerCase();\n /**\n * Match#index -> Number\n *\n * First position of matched string.\n **/\n\n this.index = start + shift;\n /**\n * Match#lastIndex -> Number\n *\n * Next position after matched string.\n **/\n\n this.lastIndex = end + shift;\n /**\n * Match#raw -> String\n *\n * Matched string.\n **/\n\n this.raw = text;\n /**\n * Match#text -> String\n *\n * Notmalized text of matched string.\n **/\n\n this.text = text;\n /**\n * Match#url -> String\n *\n * Normalized url of matched string.\n **/\n\n this.url = text;\n}\n\nfunction createMatch(self, shift) {\n var match = new Match(self, shift);\n\n self.__compiled__[match.schema].normalize(match, self);\n\n return match;\n}\n/**\n * class LinkifyIt\n **/\n\n/**\n * new LinkifyIt(schemas, options)\n * - schemas (Object): Optional. Additional schemas to validate (prefix/validator)\n * - options (Object): { fuzzyLink|fuzzyEmail|fuzzyIP: true|false }\n *\n * Creates new linkifier instance with optional additional schemas.\n * Can be called without `new` keyword for convenience.\n *\n * By default understands:\n *\n * - `http(s)://...` , `ftp://...`, `mailto:...` & `//...` links\n * - \"fuzzy\" links and emails (example.com, foo@bar.com).\n *\n * `schemas` is an object, where each key/value describes protocol/rule:\n *\n * - __key__ - link prefix (usually, protocol name with `:` at the end, `skype:`\n * for example). `linkify-it` makes shure that prefix is not preceeded with\n * alphanumeric char and symbols. Only whitespaces and punctuation allowed.\n * - __value__ - rule to check tail after link prefix\n * - _String_ - just alias to existing rule\n * - _Object_\n * - _validate_ - validator function (should return matched length on success),\n * or `RegExp`.\n * - _normalize_ - optional function to normalize text & url of matched result\n * (for example, for @twitter mentions).\n *\n * `options`:\n *\n * - __fuzzyLink__ - recognige URL-s without `http(s):` prefix. Default `true`.\n * - __fuzzyIP__ - allow IPs in fuzzy links above. Can conflict with some texts\n * like version numbers. Default `false`.\n * - __fuzzyEmail__ - recognize emails without `mailto:` prefix.\n *\n **/\n\n\nfunction LinkifyIt(schemas, options) {\n if (!(this instanceof LinkifyIt)) {\n return new LinkifyIt(schemas, options);\n }\n\n if (!options) {\n if (isOptionsObj(schemas)) {\n options = schemas;\n schemas = {};\n }\n }\n\n this.__opts__ = assign({}, defaultOptions, options); // Cache last tested result. Used to skip repeating steps on next `match` call.\n\n this.__index__ = -1;\n this.__last_index__ = -1; // Next scan position\n\n this.__schema__ = '';\n this.__text_cache__ = '';\n this.__schemas__ = assign({}, defaultSchemas, schemas);\n this.__compiled__ = {};\n this.__tlds__ = tlds_default;\n this.__tlds_replaced__ = false;\n this.re = {};\n compile(this);\n}\n/** chainable\n * LinkifyIt#add(schema, definition)\n * - schema (String): rule name (fixed pattern prefix)\n * - definition (String|RegExp|Object): schema definition\n *\n * Add new rule definition. See constructor description for details.\n **/\n\n\nLinkifyIt.prototype.add = function add(schema, definition) {\n this.__schemas__[schema] = definition;\n compile(this);\n return this;\n};\n/** chainable\n * LinkifyIt#set(options)\n * - options (Object): { fuzzyLink|fuzzyEmail|fuzzyIP: true|false }\n *\n * Set recognition options for links without schema.\n **/\n\n\nLinkifyIt.prototype.set = function set(options) {\n this.__opts__ = assign(this.__opts__, options);\n return this;\n};\n/**\n * LinkifyIt#test(text) -> Boolean\n *\n * Searches linkifiable pattern and returns `true` on success or `false` on fail.\n **/\n\n\nLinkifyIt.prototype.test = function test(text) {\n // Reset scan cache\n this.__text_cache__ = text;\n this.__index__ = -1;\n\n if (!text.length) {\n return false;\n }\n\n var m, ml, me, len, shift, next, re, tld_pos, at_pos; // try to scan for link with schema - that's the most simple rule\n\n if (this.re.schema_test.test(text)) {\n re = this.re.schema_search;\n re.lastIndex = 0;\n\n while ((m = re.exec(text)) !== null) {\n len = this.testSchemaAt(text, m[2], re.lastIndex);\n\n if (len) {\n this.__schema__ = m[2];\n this.__index__ = m.index + m[1].length;\n this.__last_index__ = m.index + m[0].length + len;\n break;\n }\n }\n }\n\n if (this.__opts__.fuzzyLink && this.__compiled__['http:']) {\n // guess schemaless links\n tld_pos = text.search(this.re.host_fuzzy_test);\n\n if (tld_pos >= 0) {\n // if tld is located after found link - no need to check fuzzy pattern\n if (this.__index__ < 0 || tld_pos < this.__index__) {\n if ((ml = text.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null) {\n shift = ml.index + ml[1].length;\n\n if (this.__index__ < 0 || shift < this.__index__) {\n this.__schema__ = '';\n this.__index__ = shift;\n this.__last_index__ = ml.index + ml[0].length;\n }\n }\n }\n }\n }\n\n if (this.__opts__.fuzzyEmail && this.__compiled__['mailto:']) {\n // guess schemaless emails\n at_pos = text.indexOf('@');\n\n if (at_pos >= 0) {\n // We can't skip this check, because this cases are possible:\n // 192.168.1.1@gmail.com, my.in@example.com\n if ((me = text.match(this.re.email_fuzzy)) !== null) {\n shift = me.index + me[1].length;\n next = me.index + me[0].length;\n\n if (this.__index__ < 0 || shift < this.__index__ || shift === this.__index__ && next > this.__last_index__) {\n this.__schema__ = 'mailto:';\n this.__index__ = shift;\n this.__last_index__ = next;\n }\n }\n }\n }\n\n return this.__index__ >= 0;\n};\n/**\n * LinkifyIt#pretest(text) -> Boolean\n *\n * Very quick check, that can give false positives. Returns true if link MAY BE\n * can exists. Can be used for speed optimization, when you need to check that\n * link NOT exists.\n **/\n\n\nLinkifyIt.prototype.pretest = function pretest(text) {\n return this.re.pretest.test(text);\n};\n/**\n * LinkifyIt#testSchemaAt(text, name, position) -> Number\n * - text (String): text to scan\n * - name (String): rule (schema) name\n * - position (Number): text offset to check from\n *\n * Similar to [[LinkifyIt#test]] but checks only specific protocol tail exactly\n * at given position. Returns length of found pattern (0 on fail).\n **/\n\n\nLinkifyIt.prototype.testSchemaAt = function testSchemaAt(text, schema, pos) {\n // If not supported schema check requested - terminate\n if (!this.__compiled__[schema.toLowerCase()]) {\n return 0;\n }\n\n return this.__compiled__[schema.toLowerCase()].validate(text, pos, this);\n};\n/**\n * LinkifyIt#match(text) -> Array|null\n *\n * Returns array of found link descriptions or `null` on fail. We strongly\n * recommend to use [[LinkifyIt#test]] first, for best speed.\n *\n * ##### Result match description\n *\n * - __schema__ - link schema, can be empty for fuzzy links, or `//` for\n * protocol-neutral links.\n * - __index__ - offset of matched text\n * - __lastIndex__ - index of next char after mathch end\n * - __raw__ - matched text\n * - __text__ - normalized text\n * - __url__ - link, generated from matched text\n **/\n\n\nLinkifyIt.prototype.match = function match(text) {\n var shift = 0,\n result = []; // Try to take previous element from cache, if .test() called before\n\n if (this.__index__ >= 0 && this.__text_cache__ === text) {\n result.push(createMatch(this, shift));\n shift = this.__last_index__;\n } // Cut head if cache was used\n\n\n var tail = shift ? text.slice(shift) : text; // Scan string until end reached\n\n while (this.test(tail)) {\n result.push(createMatch(this, shift));\n tail = tail.slice(this.__last_index__);\n shift += this.__last_index__;\n }\n\n if (result.length) {\n return result;\n }\n\n return null;\n};\n/**\n * LinkifyIt#matchAtStart(text) -> Match|null\n *\n * Returns fully-formed (not fuzzy) link if it starts at the beginning\n * of the string, and null otherwise.\n **/\n\n\nLinkifyIt.prototype.matchAtStart = function matchAtStart(text) {\n // Reset scan cache\n this.__text_cache__ = text;\n this.__index__ = -1;\n if (!text.length) return null;\n var m = this.re.schema_at_start.exec(text);\n if (!m) return null;\n var len = this.testSchemaAt(text, m[2], m[0].length);\n if (!len) return null;\n this.__schema__ = m[2];\n this.__index__ = m.index + m[1].length;\n this.__last_index__ = m.index + m[0].length + len;\n return createMatch(this, 0);\n};\n/** chainable\n * LinkifyIt#tlds(list [, keepOld]) -> this\n * - list (Array): list of tlds\n * - keepOld (Boolean): merge with current list if `true` (`false` by default)\n *\n * Load (or merge) new tlds list. Those are user for fuzzy links (without prefix)\n * to avoid false positives. By default this algorythm used:\n *\n * - hostname with any 2-letter root zones are ok.\n * - biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф\n * are ok.\n * - encoded (`xn--...`) root zones are ok.\n *\n * If list is replaced, then exact match for 2-chars root zones will be checked.\n **/\n\n\nLinkifyIt.prototype.tlds = function tlds(list, keepOld) {\n list = Array.isArray(list) ? list : [list];\n\n if (!keepOld) {\n this.__tlds__ = list.slice();\n this.__tlds_replaced__ = true;\n compile(this);\n return this;\n }\n\n this.__tlds__ = this.__tlds__.concat(list).sort().filter(function (el, idx, arr) {\n return el !== arr[idx - 1];\n }).reverse();\n compile(this);\n return this;\n};\n/**\n * LinkifyIt#normalize(match)\n *\n * Default normalizer (if schema does not define it's own).\n **/\n\n\nLinkifyIt.prototype.normalize = function normalize(match) {\n // Do minimal possible changes by default. Need to collect feedback prior\n // to move forward https://github.com/markdown-it/linkify-it/issues/1\n if (!match.schema) {\n match.url = 'http://' + match.url;\n }\n\n if (match.schema === 'mailto:' && !/^mailto:/i.test(match.url)) {\n match.url = 'mailto:' + match.url;\n }\n};\n/**\n * LinkifyIt#onCompile()\n *\n * Override to modify basic RegExp-s.\n **/\n\n\nLinkifyIt.prototype.onCompile = function onCompile() {};\n\nmodule.exports = LinkifyIt;","'use strict';\n\nexports.Any = require('./properties/Any/regex');\nexports.Cc = require('./categories/Cc/regex');\nexports.Cf = require('./categories/Cf/regex');\nexports.P = require('./categories/P/regex');\nexports.Z = require('./categories/Z/regex');","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/*! https://mths.be/punycode v1.4.1 by @mathias */\n;\n\n(function (root) {\n /** Detect free variables */\n var freeExports = (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) == 'object' && exports && !exports.nodeType && exports;\n var freeModule = (typeof module === \"undefined\" ? \"undefined\" : _typeof(module)) == 'object' && module && !module.nodeType && module;\n var freeGlobal = (typeof global === \"undefined\" ? \"undefined\" : _typeof(global)) == 'object' && global;\n\n if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal) {\n root = freeGlobal;\n }\n /**\n * The `punycode` object.\n * @name punycode\n * @type Object\n */\n\n\n var punycode,\n\n /** Highest positive signed 32-bit float value */\n maxInt = 2147483647,\n // aka. 0x7FFFFFFF or 2^31-1\n\n /** Bootstring parameters */\n base = 36,\n tMin = 1,\n tMax = 26,\n skew = 38,\n damp = 700,\n initialBias = 72,\n initialN = 128,\n // 0x80\n delimiter = '-',\n // '\\x2D'\n\n /** Regular expressions */\n regexPunycode = /^xn--/,\n regexNonASCII = /[^\\x20-\\x7E]/,\n // unprintable ASCII chars + non-ASCII chars\n regexSeparators = /[\\x2E\\u3002\\uFF0E\\uFF61]/g,\n // RFC 3490 separators\n\n /** Error messages */\n errors = {\n 'overflow': 'Overflow: input needs wider integers to process',\n 'not-basic': 'Illegal input >= 0x80 (not a basic code point)',\n 'invalid-input': 'Invalid input'\n },\n\n /** Convenience shortcuts */\n baseMinusTMin = base - tMin,\n floor = Math.floor,\n stringFromCharCode = String.fromCharCode,\n\n /** Temporary variable */\n key;\n /*--------------------------------------------------------------------------*/\n\n /**\n * A generic error utility function.\n * @private\n * @param {String} type The error type.\n * @returns {Error} Throws a `RangeError` with the applicable error message.\n */\n\n function error(type) {\n throw new RangeError(errors[type]);\n }\n /**\n * A generic `Array#map` utility function.\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} callback The function that gets called for every array\n * item.\n * @returns {Array} A new array of values returned by the callback function.\n */\n\n\n function map(array, fn) {\n var length = array.length;\n var result = [];\n\n while (length--) {\n result[length] = fn(array[length]);\n }\n\n return result;\n }\n /**\n * A simple `Array#map`-like wrapper to work with domain name strings or email\n * addresses.\n * @private\n * @param {String} domain The domain name or email address.\n * @param {Function} callback The function that gets called for every\n * character.\n * @returns {Array} A new string of characters returned by the callback\n * function.\n */\n\n\n function mapDomain(string, fn) {\n var parts = string.split('@');\n var result = '';\n\n if (parts.length > 1) {\n // In email addresses, only the domain name should be punycoded. Leave\n // the local part (i.e. everything up to `@`) intact.\n result = parts[0] + '@';\n string = parts[1];\n } // Avoid `split(regex)` for IE8 compatibility. See #17.\n\n\n string = string.replace(regexSeparators, '\\x2E');\n var labels = string.split('.');\n var encoded = map(labels, fn).join('.');\n return result + encoded;\n }\n /**\n * Creates an array containing the numeric code points of each Unicode\n * character in the string. While JavaScript uses UCS-2 internally,\n * this function will convert a pair of surrogate halves (each of which\n * UCS-2 exposes as separate characters) into a single code point,\n * matching UTF-16.\n * @see `punycode.ucs2.encode`\n * @see \n * @memberOf punycode.ucs2\n * @name decode\n * @param {String} string The Unicode input string (UCS-2).\n * @returns {Array} The new array of code points.\n */\n\n\n function ucs2decode(string) {\n var output = [],\n counter = 0,\n length = string.length,\n value,\n extra;\n\n while (counter < length) {\n value = string.charCodeAt(counter++);\n\n if (value >= 0xD800 && value <= 0xDBFF && counter < length) {\n // high surrogate, and there is a next character\n extra = string.charCodeAt(counter++);\n\n if ((extra & 0xFC00) == 0xDC00) {\n // low surrogate\n output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n } else {\n // unmatched surrogate; only append this code unit, in case the next\n // code unit is the high surrogate of a surrogate pair\n output.push(value);\n counter--;\n }\n } else {\n output.push(value);\n }\n }\n\n return output;\n }\n /**\n * Creates a string based on an array of numeric code points.\n * @see `punycode.ucs2.decode`\n * @memberOf punycode.ucs2\n * @name encode\n * @param {Array} codePoints The array of numeric code points.\n * @returns {String} The new Unicode string (UCS-2).\n */\n\n\n function ucs2encode(array) {\n return map(array, function (value) {\n var output = '';\n\n if (value > 0xFFFF) {\n value -= 0x10000;\n output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);\n value = 0xDC00 | value & 0x3FF;\n }\n\n output += stringFromCharCode(value);\n return output;\n }).join('');\n }\n /**\n * Converts a basic code point into a digit/integer.\n * @see `digitToBasic()`\n * @private\n * @param {Number} codePoint The basic numeric code point value.\n * @returns {Number} The numeric value of a basic code point (for use in\n * representing integers) in the range `0` to `base - 1`, or `base` if\n * the code point does not represent a value.\n */\n\n\n function basicToDigit(codePoint) {\n if (codePoint - 48 < 10) {\n return codePoint - 22;\n }\n\n if (codePoint - 65 < 26) {\n return codePoint - 65;\n }\n\n if (codePoint - 97 < 26) {\n return codePoint - 97;\n }\n\n return base;\n }\n /**\n * Converts a digit/integer into a basic code point.\n * @see `basicToDigit()`\n * @private\n * @param {Number} digit The numeric value of a basic code point.\n * @returns {Number} The basic code point whose value (when used for\n * representing integers) is `digit`, which needs to be in the range\n * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is\n * used; else, the lowercase form is used. The behavior is undefined\n * if `flag` is non-zero and `digit` has no uppercase form.\n */\n\n\n function digitToBasic(digit, flag) {\n // 0..25 map to ASCII a..z or A..Z\n // 26..35 map to ASCII 0..9\n return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);\n }\n /**\n * Bias adaptation function as per section 3.4 of RFC 3492.\n * https://tools.ietf.org/html/rfc3492#section-3.4\n * @private\n */\n\n\n function adapt(delta, numPoints, firstTime) {\n var k = 0;\n delta = firstTime ? floor(delta / damp) : delta >> 1;\n delta += floor(delta / numPoints);\n\n for (;\n /* no initialization */\n delta > baseMinusTMin * tMax >> 1; k += base) {\n delta = floor(delta / baseMinusTMin);\n }\n\n return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));\n }\n /**\n * Converts a Punycode string of ASCII-only symbols to a string of Unicode\n * symbols.\n * @memberOf punycode\n * @param {String} input The Punycode string of ASCII-only symbols.\n * @returns {String} The resulting string of Unicode symbols.\n */\n\n\n function decode(input) {\n // Don't use UCS-2\n var output = [],\n inputLength = input.length,\n out,\n i = 0,\n n = initialN,\n bias = initialBias,\n basic,\n j,\n index,\n oldi,\n w,\n k,\n digit,\n t,\n\n /** Cached calculation results */\n baseMinusT; // Handle the basic code points: let `basic` be the number of input code\n // points before the last delimiter, or `0` if there is none, then copy\n // the first basic code points to the output.\n\n basic = input.lastIndexOf(delimiter);\n\n if (basic < 0) {\n basic = 0;\n }\n\n for (j = 0; j < basic; ++j) {\n // if it's not a basic code point\n if (input.charCodeAt(j) >= 0x80) {\n error('not-basic');\n }\n\n output.push(input.charCodeAt(j));\n } // Main decoding loop: start just after the last delimiter if any basic code\n // points were copied; start at the beginning otherwise.\n\n\n for (index = basic > 0 ? basic + 1 : 0; index < inputLength;)\n /* no final expression */\n {\n // `index` is the index of the next character to be consumed.\n // Decode a generalized variable-length integer into `delta`,\n // which gets added to `i`. The overflow checking is easier\n // if we increase `i` as we go, then subtract off its starting\n // value at the end to obtain `delta`.\n for (oldi = i, w = 1, k = base;;\n /* no condition */\n k += base) {\n if (index >= inputLength) {\n error('invalid-input');\n }\n\n digit = basicToDigit(input.charCodeAt(index++));\n\n if (digit >= base || digit > floor((maxInt - i) / w)) {\n error('overflow');\n }\n\n i += digit * w;\n t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;\n\n if (digit < t) {\n break;\n }\n\n baseMinusT = base - t;\n\n if (w > floor(maxInt / baseMinusT)) {\n error('overflow');\n }\n\n w *= baseMinusT;\n }\n\n out = output.length + 1;\n bias = adapt(i - oldi, out, oldi == 0); // `i` was supposed to wrap around from `out` to `0`,\n // incrementing `n` each time, so we'll fix that now:\n\n if (floor(i / out) > maxInt - n) {\n error('overflow');\n }\n\n n += floor(i / out);\n i %= out; // Insert `n` at position `i` of the output\n\n output.splice(i++, 0, n);\n }\n\n return ucs2encode(output);\n }\n /**\n * Converts a string of Unicode symbols (e.g. a domain name label) to a\n * Punycode string of ASCII-only symbols.\n * @memberOf punycode\n * @param {String} input The string of Unicode symbols.\n * @returns {String} The resulting Punycode string of ASCII-only symbols.\n */\n\n\n function encode(input) {\n var n,\n delta,\n handledCPCount,\n basicLength,\n bias,\n j,\n m,\n q,\n k,\n t,\n currentValue,\n output = [],\n\n /** `inputLength` will hold the number of code points in `input`. */\n inputLength,\n\n /** Cached calculation results */\n handledCPCountPlusOne,\n baseMinusT,\n qMinusT; // Convert the input in UCS-2 to Unicode\n\n input = ucs2decode(input); // Cache the length\n\n inputLength = input.length; // Initialize the state\n\n n = initialN;\n delta = 0;\n bias = initialBias; // Handle the basic code points\n\n for (j = 0; j < inputLength; ++j) {\n currentValue = input[j];\n\n if (currentValue < 0x80) {\n output.push(stringFromCharCode(currentValue));\n }\n }\n\n handledCPCount = basicLength = output.length; // `handledCPCount` is the number of code points that have been handled;\n // `basicLength` is the number of basic code points.\n // Finish the basic string - if it is not empty - with a delimiter\n\n if (basicLength) {\n output.push(delimiter);\n } // Main encoding loop:\n\n\n while (handledCPCount < inputLength) {\n // All non-basic code points < n have been handled already. Find the next\n // larger one:\n for (m = maxInt, j = 0; j < inputLength; ++j) {\n currentValue = input[j];\n\n if (currentValue >= n && currentValue < m) {\n m = currentValue;\n }\n } // Increase `delta` enough to advance the decoder's state to ,\n // but guard against overflow\n\n\n handledCPCountPlusOne = handledCPCount + 1;\n\n if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {\n error('overflow');\n }\n\n delta += (m - n) * handledCPCountPlusOne;\n n = m;\n\n for (j = 0; j < inputLength; ++j) {\n currentValue = input[j];\n\n if (currentValue < n && ++delta > maxInt) {\n error('overflow');\n }\n\n if (currentValue == n) {\n // Represent delta as a generalized variable-length integer\n for (q = delta, k = base;;\n /* no condition */\n k += base) {\n t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;\n\n if (q < t) {\n break;\n }\n\n qMinusT = q - t;\n baseMinusT = base - t;\n output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)));\n q = floor(qMinusT / baseMinusT);\n }\n\n output.push(stringFromCharCode(digitToBasic(q, 0)));\n bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);\n delta = 0;\n ++handledCPCount;\n }\n }\n\n ++delta;\n ++n;\n }\n\n return output.join('');\n }\n /**\n * Converts a Punycode string representing a domain name or an email address\n * to Unicode. Only the Punycoded parts of the input will be converted, i.e.\n * it doesn't matter if you call it on a string that has already been\n * converted to Unicode.\n * @memberOf punycode\n * @param {String} input The Punycoded domain name or email address to\n * convert to Unicode.\n * @returns {String} The Unicode representation of the given Punycode\n * string.\n */\n\n\n function toUnicode(input) {\n return mapDomain(input, function (string) {\n return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string;\n });\n }\n /**\n * Converts a Unicode string representing a domain name or an email address to\n * Punycode. Only the non-ASCII parts of the domain name will be converted,\n * i.e. it doesn't matter if you call it with a domain that's already in\n * ASCII.\n * @memberOf punycode\n * @param {String} input The domain name or email address to convert, as a\n * Unicode string.\n * @returns {String} The Punycode representation of the given domain name or\n * email address.\n */\n\n\n function toASCII(input) {\n return mapDomain(input, function (string) {\n return regexNonASCII.test(string) ? 'xn--' + encode(string) : string;\n });\n }\n /*--------------------------------------------------------------------------*/\n\n /** Define the public API */\n\n\n punycode = {\n /**\n * A string representing the current Punycode.js version number.\n * @memberOf punycode\n * @type String\n */\n 'version': '1.4.1',\n\n /**\n * An object of methods to convert from JavaScript's internal character\n * representation (UCS-2) to Unicode code points, and back.\n * @see \n * @memberOf punycode\n * @type Object\n */\n 'ucs2': {\n 'decode': ucs2decode,\n 'encode': ucs2encode\n },\n 'decode': decode,\n 'encode': encode,\n 'toASCII': toASCII,\n 'toUnicode': toUnicode\n };\n /** Expose `punycode` */\n // Some AMD build optimizers, like r.js, check for specific condition patterns\n // like the following:\n\n if (typeof define == 'function' && _typeof(define.amd) == 'object' && define.amd) {\n define('punycode', function () {\n return punycode;\n });\n } else if (freeExports && freeModule) {\n if (module.exports == freeExports) {\n // in Node.js, io.js, or RingoJS v0.8.0+\n freeModule.exports = punycode;\n } else {\n // in Narwhal or RingoJS v0.7.0-\n for (key in punycode) {\n punycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]);\n }\n }\n } else {\n // in Rhino or a web browser\n root.punycode = punycode;\n }\n})(this);","import { emitter } from 'shared/helpers/mitt';\nimport { onMounted, onBeforeUnmount } from 'vue';\n\n// this will automatically add event listeners to the emitter\n// and remove them when the component is destroyed\nconst useEmitter = (eventName, callback) => {\n const cleanup = () => {\n emitter.off(eventName, callback);\n };\n\n onMounted(() => {\n emitter.on(eventName, callback);\n });\n\n onBeforeUnmount(cleanup);\n\n return cleanup;\n};\n\nexport { useEmitter };\n","var listCacheClear = require('./_listCacheClear'),\n listCacheDelete = require('./_listCacheDelete'),\n listCacheGet = require('./_listCacheGet'),\n listCacheHas = require('./_listCacheHas'),\n listCacheSet = require('./_listCacheSet');\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n\n\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n this.clear();\n\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n} // Add methods to `ListCache`.\n\n\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\nmodule.exports = ListCache;","var eq = require('./eq');\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n\n\nfunction assocIndexOf(array, key) {\n var length = array.length;\n\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n\n return -1;\n}\n\nmodule.exports = assocIndexOf;","var getNative = require('./_getNative');\n/* Built-in method references that are verified to be native. */\n\n\nvar nativeCreate = getNative(Object, 'create');\nmodule.exports = nativeCreate;","var isKeyable = require('./_isKeyable');\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\n\n\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map;\n}\n\nmodule.exports = getMapData;","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\nmodule.exports = isArray;","var isFunction = require('./isFunction'),\n isLength = require('./isLength');\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\n\n\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing\n return Object.isExtensible(Object.preventExtensions({}));\n});\n","'use strict';\nvar defineProperty = require('../internals/object-define-property').f;\nvar create = require('../internals/object-create');\nvar redefineAll = require('../internals/redefine-all');\nvar bind = require('../internals/function-bind-context');\nvar anInstance = require('../internals/an-instance');\nvar iterate = require('../internals/iterate');\nvar defineIterator = require('../internals/define-iterator');\nvar setSpecies = require('../internals/set-species');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fastKey = require('../internals/internal-metadata').fastKey;\nvar InternalStateModule = require('../internals/internal-state');\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\n\nmodule.exports = {\n getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {\n var C = wrapper(function (that, iterable) {\n anInstance(that, C, CONSTRUCTOR_NAME);\n setInternalState(that, {\n type: CONSTRUCTOR_NAME,\n index: create(null),\n first: undefined,\n last: undefined,\n size: 0\n });\n if (!DESCRIPTORS) that.size = 0;\n if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n });\n\n var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n var define = function (that, key, value) {\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n var previous, index;\n // change existing entry\n if (entry) {\n entry.value = value;\n // create new entry\n } else {\n state.last = entry = {\n index: index = fastKey(key, true),\n key: key,\n value: value,\n previous: previous = state.last,\n next: undefined,\n removed: false\n };\n if (!state.first) state.first = entry;\n if (previous) previous.next = entry;\n if (DESCRIPTORS) state.size++;\n else that.size++;\n // add to index\n if (index !== 'F') state.index[index] = entry;\n } return that;\n };\n\n var getEntry = function (that, key) {\n var state = getInternalState(that);\n // fast case\n var index = fastKey(key);\n var entry;\n if (index !== 'F') return state.index[index];\n // frozen object case\n for (entry = state.first; entry; entry = entry.next) {\n if (entry.key == key) return entry;\n }\n };\n\n redefineAll(C.prototype, {\n // 23.1.3.1 Map.prototype.clear()\n // 23.2.3.2 Set.prototype.clear()\n clear: function clear() {\n var that = this;\n var state = getInternalState(that);\n var data = state.index;\n var entry = state.first;\n while (entry) {\n entry.removed = true;\n if (entry.previous) entry.previous = entry.previous.next = undefined;\n delete data[entry.index];\n entry = entry.next;\n }\n state.first = state.last = undefined;\n if (DESCRIPTORS) state.size = 0;\n else that.size = 0;\n },\n // 23.1.3.3 Map.prototype.delete(key)\n // 23.2.3.4 Set.prototype.delete(value)\n 'delete': function (key) {\n var that = this;\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n if (entry) {\n var next = entry.next;\n var prev = entry.previous;\n delete state.index[entry.index];\n entry.removed = true;\n if (prev) prev.next = next;\n if (next) next.previous = prev;\n if (state.first == entry) state.first = next;\n if (state.last == entry) state.last = prev;\n if (DESCRIPTORS) state.size--;\n else that.size--;\n } return !!entry;\n },\n // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)\n // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)\n forEach: function forEach(callbackfn /* , that = undefined */) {\n var state = getInternalState(this);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);\n var entry;\n while (entry = entry ? entry.next : state.first) {\n boundFunction(entry.value, entry.key, this);\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n }\n },\n // 23.1.3.7 Map.prototype.has(key)\n // 23.2.3.7 Set.prototype.has(value)\n has: function has(key) {\n return !!getEntry(this, key);\n }\n });\n\n redefineAll(C.prototype, IS_MAP ? {\n // 23.1.3.6 Map.prototype.get(key)\n get: function get(key) {\n var entry = getEntry(this, key);\n return entry && entry.value;\n },\n // 23.1.3.9 Map.prototype.set(key, value)\n set: function set(key, value) {\n return define(this, key === 0 ? 0 : key, value);\n }\n } : {\n // 23.2.3.1 Set.prototype.add(value)\n add: function add(value) {\n return define(this, value = value === 0 ? 0 : value, value);\n }\n });\n if (DESCRIPTORS) defineProperty(C.prototype, 'size', {\n get: function () {\n return getInternalState(this).size;\n }\n });\n return C;\n },\n setStrong: function (C, CONSTRUCTOR_NAME, IS_MAP) {\n var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';\n var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);\n var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);\n // add .keys, .values, .entries, [@@iterator]\n // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11\n defineIterator(C, CONSTRUCTOR_NAME, function (iterated, kind) {\n setInternalState(this, {\n type: ITERATOR_NAME,\n target: iterated,\n state: getInternalCollectionState(iterated),\n kind: kind,\n last: undefined\n });\n }, function () {\n var state = getInternalIteratorState(this);\n var kind = state.kind;\n var entry = state.last;\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n // get next entry\n if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {\n // or finish the iteration\n state.target = undefined;\n return { value: undefined, done: true };\n }\n // return step by kind\n if (kind == 'keys') return { value: entry.key, done: false };\n if (kind == 'values') return { value: entry.value, done: false };\n return { value: [entry.key, entry.value], done: false };\n }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);\n\n // add [@@species], 23.1.2.2, 23.2.2.2\n setSpecies(CONSTRUCTOR_NAME);\n }\n};\n","import toInteger from \"../_lib/toInteger/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name addMonths\n * @category Month Helpers\n * @summary Add the specified number of months to the given date.\n *\n * @description\n * Add the specified number of months to the given date.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of months to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the months added\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Add 5 months to 1 September 2014:\n * const result = addMonths(new Date(2014, 8, 1), 5)\n * //=> Sun Feb 01 2015 00:00:00\n */\n\nexport default function addMonths(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var amount = toInteger(dirtyAmount);\n\n if (isNaN(amount)) {\n return new Date(NaN);\n }\n\n if (!amount) {\n // If 0 months, no-op to avoid changing times in the hour before end of DST\n return date;\n }\n\n var dayOfMonth = date.getDate(); // The JS Date object supports date math by accepting out-of-bounds values for\n // month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and\n // new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we\n // want except that dates will wrap around the end of a month, meaning that\n // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So\n // we'll default to the end of the desired month by adding 1 to the desired\n // month and using a date of 0 to back up one day to the end of the desired\n // month.\n\n var endOfDesiredMonth = new Date(date.getTime());\n endOfDesiredMonth.setMonth(date.getMonth() + amount + 1, 0);\n var daysInMonth = endOfDesiredMonth.getDate();\n\n if (dayOfMonth >= daysInMonth) {\n // If we're already at the end of the month, then this is the correct date\n // and we're done.\n return endOfDesiredMonth;\n } else {\n // Otherwise, we now know that setting the original day-of-month value won't\n // cause an overflow, so set the desired day-of-month. Note that we can't\n // just set the date of `endOfDesiredMonth` because that object may have had\n // its time changed in the unusual case where where a DST transition was on\n // the last day of the month and its local time was in the hour skipped or\n // repeated next to a DST transition. So we use `date` instead which is\n // guaranteed to still have the original time.\n date.setFullYear(endOfDesiredMonth.getFullYear(), endOfDesiredMonth.getMonth(), dayOfMonth);\n return date;\n }\n}","// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nvar SEMVER_SPEC_VERSION = '2.0.0';\nvar MAX_LENGTH = 256;\nvar MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n/* istanbul ignore next */\n9007199254740991; // Max safe segment length for coercion.\n\nvar MAX_SAFE_COMPONENT_LENGTH = 16; // Max safe length for a build identifier. The max length minus 6 characters for\n// the shortest version with a build 0.0.0+BUILD.\n\nvar MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;\nvar RELEASE_TYPES = ['major', 'premajor', 'minor', 'preminor', 'patch', 'prepatch', 'prerelease'];\nmodule.exports = {\n MAX_LENGTH: MAX_LENGTH,\n MAX_SAFE_COMPONENT_LENGTH: MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH: MAX_SAFE_BUILD_LENGTH,\n MAX_SAFE_INTEGER: MAX_SAFE_INTEGER,\n RELEASE_TYPES: RELEASE_TYPES,\n SEMVER_SPEC_VERSION: SEMVER_SPEC_VERSION,\n FLAG_INCLUDE_PRERELEASE: 1,\n FLAG_LOOSE: 2\n};","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nvar debug = (typeof process === \"undefined\" ? \"undefined\" : _typeof(process)) === 'object' && process.env && process.env.NODE_DEBUG && /\\bsemver\\b/i.test(process.env.NODE_DEBUG) ? function () {\n var _console;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return (_console = console).error.apply(_console, ['SEMVER'].concat(args));\n} : function () {};\nmodule.exports = debug;","var compare = require('./compare');\n\nvar gt = function gt(a, b, loose) {\n return compare(a, b, loose) > 0;\n};\n\nmodule.exports = gt;","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nvar ANY = Symbol('SemVer ANY'); // hoisted class for cyclic dependency\n\nvar Comparator = /*#__PURE__*/function () {\n function Comparator(comp, options) {\n _classCallCheck(this, Comparator);\n\n options = parseOptions(options);\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp;\n } else {\n comp = comp.value;\n }\n }\n\n comp = comp.trim().split(/\\s+/).join(' ');\n debug('comparator', comp, options);\n this.options = options;\n this.loose = !!options.loose;\n this.parse(comp);\n\n if (this.semver === ANY) {\n this.value = '';\n } else {\n this.value = this.operator + this.semver.version;\n }\n\n debug('comp', this);\n }\n\n _createClass(Comparator, [{\n key: \"parse\",\n value: function parse(comp) {\n var r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];\n var m = comp.match(r);\n\n if (!m) {\n throw new TypeError(\"Invalid comparator: \".concat(comp));\n }\n\n this.operator = m[1] !== undefined ? m[1] : '';\n\n if (this.operator === '=') {\n this.operator = '';\n } // if it literally is just '>' or '' then allow anything.\n\n\n if (!m[2]) {\n this.semver = ANY;\n } else {\n this.semver = new SemVer(m[2], this.options.loose);\n }\n }\n }, {\n key: \"toString\",\n value: function toString() {\n return this.value;\n }\n }, {\n key: \"test\",\n value: function test(version) {\n debug('Comparator.test', version, this.options.loose);\n\n if (this.semver === ANY || version === ANY) {\n return true;\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options);\n } catch (er) {\n return false;\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options);\n }\n }, {\n key: \"intersects\",\n value: function intersects(comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required');\n }\n\n if (this.operator === '') {\n if (this.value === '') {\n return true;\n }\n\n return new Range(comp.value, options).test(this.value);\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true;\n }\n\n return new Range(this.value, options).test(comp.semver);\n }\n\n options = parseOptions(options); // Special cases where nothing can possibly be lower\n\n if (options.includePrerelease && (this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) {\n return false;\n }\n\n if (!options.includePrerelease && (this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) {\n return false;\n } // Same direction increasing (> or >=)\n\n\n if (this.operator.startsWith('>') && comp.operator.startsWith('>')) {\n return true;\n } // Same direction decreasing (< or <=)\n\n\n if (this.operator.startsWith('<') && comp.operator.startsWith('<')) {\n return true;\n } // same SemVer and both sides are inclusive (<= or >=)\n\n\n if (this.semver.version === comp.semver.version && this.operator.includes('=') && comp.operator.includes('=')) {\n return true;\n } // opposite directions less than\n\n\n if (cmp(this.semver, '<', comp.semver, options) && this.operator.startsWith('>') && comp.operator.startsWith('<')) {\n return true;\n } // opposite directions greater than\n\n\n if (cmp(this.semver, '>', comp.semver, options) && this.operator.startsWith('<') && comp.operator.startsWith('>')) {\n return true;\n }\n\n return false;\n }\n }], [{\n key: \"ANY\",\n get: function get() {\n return ANY;\n }\n }]);\n\n return Comparator;\n}();\n\nmodule.exports = Comparator;\n\nvar parseOptions = require('../internal/parse-options');\n\nvar _require = require('../internal/re'),\n re = _require.safeRe,\n t = _require.t;\n\nvar cmp = require('../functions/cmp');\n\nvar debug = require('../internal/debug');\n\nvar SemVer = require('./semver');\n\nvar Range = require('./range');","var Range = require('../classes/range');\n\nvar satisfies = function satisfies(version, range, options) {\n try {\n range = new Range(range, options);\n } catch (er) {\n return false;\n }\n\n return range.test(version);\n};\n\nmodule.exports = satisfies;","import toInteger from \"../toInteger/index.js\";\nimport toDate from \"../../toDate/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\"; // This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\n\nexport default function setUTCDay(dirtyDate, dirtyDay, dirtyOptions) {\n requiredArgs(2, arguments);\n var options = dirtyOptions || {};\n var locale = options.locale;\n var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;\n var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn);\n var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN\n\n if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {\n throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');\n }\n\n var date = toDate(dirtyDate);\n var day = toInteger(dirtyDay);\n var currentDay = date.getUTCDay();\n var remainder = day % 7;\n var dayIndex = (remainder + 7) % 7;\n var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;\n date.setUTCDate(date.getUTCDate() + diff);\n return date;\n}","import getUTCWeekYear from \"../../../_lib/getUTCWeekYear/index.js\";\nimport setUTCDay from \"../../../_lib/setUTCDay/index.js\";\nimport setUTCISODay from \"../../../_lib/setUTCISODay/index.js\";\nimport setUTCISOWeek from \"../../../_lib/setUTCISOWeek/index.js\";\nimport setUTCWeek from \"../../../_lib/setUTCWeek/index.js\";\nimport startOfUTCISOWeek from \"../../../_lib/startOfUTCISOWeek/index.js\";\nimport startOfUTCWeek from \"../../../_lib/startOfUTCWeek/index.js\";\nvar MILLISECONDS_IN_HOUR = 3600000;\nvar MILLISECONDS_IN_MINUTE = 60000;\nvar MILLISECONDS_IN_SECOND = 1000;\nvar numericPatterns = {\n month: /^(1[0-2]|0?\\d)/,\n // 0 to 12\n date: /^(3[0-1]|[0-2]?\\d)/,\n // 0 to 31\n dayOfYear: /^(36[0-6]|3[0-5]\\d|[0-2]?\\d?\\d)/,\n // 0 to 366\n week: /^(5[0-3]|[0-4]?\\d)/,\n // 0 to 53\n hour23h: /^(2[0-3]|[0-1]?\\d)/,\n // 0 to 23\n hour24h: /^(2[0-4]|[0-1]?\\d)/,\n // 0 to 24\n hour11h: /^(1[0-1]|0?\\d)/,\n // 0 to 11\n hour12h: /^(1[0-2]|0?\\d)/,\n // 0 to 12\n minute: /^[0-5]?\\d/,\n // 0 to 59\n second: /^[0-5]?\\d/,\n // 0 to 59\n singleDigit: /^\\d/,\n // 0 to 9\n twoDigits: /^\\d{1,2}/,\n // 0 to 99\n threeDigits: /^\\d{1,3}/,\n // 0 to 999\n fourDigits: /^\\d{1,4}/,\n // 0 to 9999\n anyDigitsSigned: /^-?\\d+/,\n singleDigitSigned: /^-?\\d/,\n // 0 to 9, -0 to -9\n twoDigitsSigned: /^-?\\d{1,2}/,\n // 0 to 99, -0 to -99\n threeDigitsSigned: /^-?\\d{1,3}/,\n // 0 to 999, -0 to -999\n fourDigitsSigned: /^-?\\d{1,4}/ // 0 to 9999, -0 to -9999\n\n};\nvar timezonePatterns = {\n basicOptionalMinutes: /^([+-])(\\d{2})(\\d{2})?|Z/,\n basic: /^([+-])(\\d{2})(\\d{2})|Z/,\n basicOptionalSeconds: /^([+-])(\\d{2})(\\d{2})((\\d{2}))?|Z/,\n extended: /^([+-])(\\d{2}):(\\d{2})|Z/,\n extendedOptionalSeconds: /^([+-])(\\d{2}):(\\d{2})(:(\\d{2}))?|Z/\n};\n\nfunction parseNumericPattern(pattern, string, valueCallback) {\n var matchResult = string.match(pattern);\n\n if (!matchResult) {\n return null;\n }\n\n var value = parseInt(matchResult[0], 10);\n return {\n value: valueCallback ? valueCallback(value) : value,\n rest: string.slice(matchResult[0].length)\n };\n}\n\nfunction parseTimezonePattern(pattern, string) {\n var matchResult = string.match(pattern);\n\n if (!matchResult) {\n return null;\n } // Input is 'Z'\n\n\n if (matchResult[0] === 'Z') {\n return {\n value: 0,\n rest: string.slice(1)\n };\n }\n\n var sign = matchResult[1] === '+' ? 1 : -1;\n var hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0;\n var minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0;\n var seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0;\n return {\n value: sign * (hours * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE + seconds * MILLISECONDS_IN_SECOND),\n rest: string.slice(matchResult[0].length)\n };\n}\n\nfunction parseAnyDigitsSigned(string, valueCallback) {\n return parseNumericPattern(numericPatterns.anyDigitsSigned, string, valueCallback);\n}\n\nfunction parseNDigits(n, string, valueCallback) {\n switch (n) {\n case 1:\n return parseNumericPattern(numericPatterns.singleDigit, string, valueCallback);\n\n case 2:\n return parseNumericPattern(numericPatterns.twoDigits, string, valueCallback);\n\n case 3:\n return parseNumericPattern(numericPatterns.threeDigits, string, valueCallback);\n\n case 4:\n return parseNumericPattern(numericPatterns.fourDigits, string, valueCallback);\n\n default:\n return parseNumericPattern(new RegExp('^\\\\d{1,' + n + '}'), string, valueCallback);\n }\n}\n\nfunction parseNDigitsSigned(n, string, valueCallback) {\n switch (n) {\n case 1:\n return parseNumericPattern(numericPatterns.singleDigitSigned, string, valueCallback);\n\n case 2:\n return parseNumericPattern(numericPatterns.twoDigitsSigned, string, valueCallback);\n\n case 3:\n return parseNumericPattern(numericPatterns.threeDigitsSigned, string, valueCallback);\n\n case 4:\n return parseNumericPattern(numericPatterns.fourDigitsSigned, string, valueCallback);\n\n default:\n return parseNumericPattern(new RegExp('^-?\\\\d{1,' + n + '}'), string, valueCallback);\n }\n}\n\nfunction dayPeriodEnumToHours(enumValue) {\n switch (enumValue) {\n case 'morning':\n return 4;\n\n case 'evening':\n return 17;\n\n case 'pm':\n case 'noon':\n case 'afternoon':\n return 12;\n\n case 'am':\n case 'midnight':\n case 'night':\n default:\n return 0;\n }\n}\n\nfunction normalizeTwoDigitYear(twoDigitYear, currentYear) {\n var isCommonEra = currentYear > 0; // Absolute number of the current year:\n // 1 -> 1 AC\n // 0 -> 1 BC\n // -1 -> 2 BC\n\n var absCurrentYear = isCommonEra ? currentYear : 1 - currentYear;\n var result;\n\n if (absCurrentYear <= 50) {\n result = twoDigitYear || 100;\n } else {\n var rangeEnd = absCurrentYear + 50;\n var rangeEndCentury = Math.floor(rangeEnd / 100) * 100;\n var isPreviousCentury = twoDigitYear >= rangeEnd % 100;\n result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0);\n }\n\n return isCommonEra ? result : 1 - result;\n}\n\nvar DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\nvar DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; // User for validation\n\nfunction isLeapYearIndex(year) {\n return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;\n}\n/*\n * | | Unit | | Unit |\n * |-----|--------------------------------|-----|--------------------------------|\n * | a | AM, PM | A* | Milliseconds in day |\n * | b | AM, PM, noon, midnight | B | Flexible day period |\n * | c | Stand-alone local day of week | C* | Localized hour w/ day period |\n * | d | Day of month | D | Day of year |\n * | e | Local day of week | E | Day of week |\n * | f | | F* | Day of week in month |\n * | g* | Modified Julian day | G | Era |\n * | h | Hour [1-12] | H | Hour [0-23] |\n * | i! | ISO day of week | I! | ISO week of year |\n * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |\n * | k | Hour [1-24] | K | Hour [0-11] |\n * | l* | (deprecated) | L | Stand-alone month |\n * | m | Minute | M | Month |\n * | n | | N | |\n * | o! | Ordinal number modifier | O* | Timezone (GMT) |\n * | p | | P | |\n * | q | Stand-alone quarter | Q | Quarter |\n * | r* | Related Gregorian year | R! | ISO week-numbering year |\n * | s | Second | S | Fraction of second |\n * | t! | Seconds timestamp | T! | Milliseconds timestamp |\n * | u | Extended year | U* | Cyclic year |\n * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |\n * | w | Local week of year | W* | Week of month |\n * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |\n * | y | Year (abs) | Y | Local week-numbering year |\n * | z* | Timezone (specific non-locat.) | Z* | Timezone (aliases) |\n *\n * Letters marked by * are not implemented but reserved by Unicode standard.\n *\n * Letters marked by ! are non-standard, but implemented by date-fns:\n * - `o` modifies the previous token to turn it into an ordinal (see `parse` docs)\n * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,\n * i.e. 7 for Sunday, 1 for Monday, etc.\n * - `I` is ISO week of year, as opposed to `w` which is local week of year.\n * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.\n * `R` is supposed to be used in conjunction with `I` and `i`\n * for universal ISO week-numbering date, whereas\n * `Y` is supposed to be used in conjunction with `w` and `e`\n * for week-numbering date specific to the locale.\n */\n\n\nvar parsers = {\n // Era\n G: {\n priority: 140,\n parse: function parse(string, token, match, _options) {\n switch (token) {\n // AD, BC\n case 'G':\n case 'GG':\n case 'GGG':\n return match.era(string, {\n width: 'abbreviated'\n }) || match.era(string, {\n width: 'narrow'\n });\n // A, B\n\n case 'GGGGG':\n return match.era(string, {\n width: 'narrow'\n });\n // Anno Domini, Before Christ\n\n case 'GGGG':\n default:\n return match.era(string, {\n width: 'wide'\n }) || match.era(string, {\n width: 'abbreviated'\n }) || match.era(string, {\n width: 'narrow'\n });\n }\n },\n set: function set(date, flags, value, _options) {\n flags.era = value;\n date.setUTCFullYear(value, 0, 1);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['R', 'u', 't', 'T']\n },\n // Year\n y: {\n // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns\n // | Year | y | yy | yyy | yyyy | yyyyy |\n // |----------|-------|----|-------|-------|-------|\n // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |\n // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |\n // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |\n // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |\n // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |\n priority: 130,\n parse: function parse(string, token, match, _options) {\n var valueCallback = function valueCallback(year) {\n return {\n year: year,\n isTwoDigitYear: token === 'yy'\n };\n };\n\n switch (token) {\n case 'y':\n return parseNDigits(4, string, valueCallback);\n\n case 'yo':\n return match.ordinalNumber(string, {\n unit: 'year',\n valueCallback: valueCallback\n });\n\n default:\n return parseNDigits(token.length, string, valueCallback);\n }\n },\n validate: function validate(_date, value, _options) {\n return value.isTwoDigitYear || value.year > 0;\n },\n set: function set(date, flags, value, _options) {\n var currentYear = date.getUTCFullYear();\n\n if (value.isTwoDigitYear) {\n var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);\n date.setUTCFullYear(normalizedTwoDigitYear, 0, 1);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n }\n\n var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;\n date.setUTCFullYear(year, 0, 1);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T']\n },\n // Local week-numbering year\n Y: {\n priority: 130,\n parse: function parse(string, token, match, _options) {\n var valueCallback = function valueCallback(year) {\n return {\n year: year,\n isTwoDigitYear: token === 'YY'\n };\n };\n\n switch (token) {\n case 'Y':\n return parseNDigits(4, string, valueCallback);\n\n case 'Yo':\n return match.ordinalNumber(string, {\n unit: 'year',\n valueCallback: valueCallback\n });\n\n default:\n return parseNDigits(token.length, string, valueCallback);\n }\n },\n validate: function validate(_date, value, _options) {\n return value.isTwoDigitYear || value.year > 0;\n },\n set: function set(date, flags, value, options) {\n var currentYear = getUTCWeekYear(date, options);\n\n if (value.isTwoDigitYear) {\n var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);\n date.setUTCFullYear(normalizedTwoDigitYear, 0, options.firstWeekContainsDate);\n date.setUTCHours(0, 0, 0, 0);\n return startOfUTCWeek(date, options);\n }\n\n var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;\n date.setUTCFullYear(year, 0, options.firstWeekContainsDate);\n date.setUTCHours(0, 0, 0, 0);\n return startOfUTCWeek(date, options);\n },\n incompatibleTokens: ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']\n },\n // ISO week-numbering year\n R: {\n priority: 130,\n parse: function parse(string, token, _match, _options) {\n if (token === 'R') {\n return parseNDigitsSigned(4, string);\n }\n\n return parseNDigitsSigned(token.length, string);\n },\n set: function set(_date, _flags, value, _options) {\n var firstWeekOfYear = new Date(0);\n firstWeekOfYear.setUTCFullYear(value, 0, 4);\n firstWeekOfYear.setUTCHours(0, 0, 0, 0);\n return startOfUTCISOWeek(firstWeekOfYear);\n },\n incompatibleTokens: ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']\n },\n // Extended year\n u: {\n priority: 130,\n parse: function parse(string, token, _match, _options) {\n if (token === 'u') {\n return parseNDigitsSigned(4, string);\n }\n\n return parseNDigitsSigned(token.length, string);\n },\n set: function set(date, _flags, value, _options) {\n date.setUTCFullYear(value, 0, 1);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T']\n },\n // Quarter\n Q: {\n priority: 120,\n parse: function parse(string, token, match, _options) {\n switch (token) {\n // 1, 2, 3, 4\n case 'Q':\n case 'QQ':\n // 01, 02, 03, 04\n return parseNDigits(token.length, string);\n // 1st, 2nd, 3rd, 4th\n\n case 'Qo':\n return match.ordinalNumber(string, {\n unit: 'quarter'\n });\n // Q1, Q2, Q3, Q4\n\n case 'QQQ':\n return match.quarter(string, {\n width: 'abbreviated',\n context: 'formatting'\n }) || match.quarter(string, {\n width: 'narrow',\n context: 'formatting'\n });\n // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n\n case 'QQQQQ':\n return match.quarter(string, {\n width: 'narrow',\n context: 'formatting'\n });\n // 1st quarter, 2nd quarter, ...\n\n case 'QQQQ':\n default:\n return match.quarter(string, {\n width: 'wide',\n context: 'formatting'\n }) || match.quarter(string, {\n width: 'abbreviated',\n context: 'formatting'\n }) || match.quarter(string, {\n width: 'narrow',\n context: 'formatting'\n });\n }\n },\n validate: function validate(_date, value, _options) {\n return value >= 1 && value <= 4;\n },\n set: function set(date, _flags, value, _options) {\n date.setUTCMonth((value - 1) * 3, 1);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']\n },\n // Stand-alone quarter\n q: {\n priority: 120,\n parse: function parse(string, token, match, _options) {\n switch (token) {\n // 1, 2, 3, 4\n case 'q':\n case 'qq':\n // 01, 02, 03, 04\n return parseNDigits(token.length, string);\n // 1st, 2nd, 3rd, 4th\n\n case 'qo':\n return match.ordinalNumber(string, {\n unit: 'quarter'\n });\n // Q1, Q2, Q3, Q4\n\n case 'qqq':\n return match.quarter(string, {\n width: 'abbreviated',\n context: 'standalone'\n }) || match.quarter(string, {\n width: 'narrow',\n context: 'standalone'\n });\n // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n\n case 'qqqqq':\n return match.quarter(string, {\n width: 'narrow',\n context: 'standalone'\n });\n // 1st quarter, 2nd quarter, ...\n\n case 'qqqq':\n default:\n return match.quarter(string, {\n width: 'wide',\n context: 'standalone'\n }) || match.quarter(string, {\n width: 'abbreviated',\n context: 'standalone'\n }) || match.quarter(string, {\n width: 'narrow',\n context: 'standalone'\n });\n }\n },\n validate: function validate(_date, value, _options) {\n return value >= 1 && value <= 4;\n },\n set: function set(date, _flags, value, _options) {\n date.setUTCMonth((value - 1) * 3, 1);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']\n },\n // Month\n M: {\n priority: 110,\n parse: function parse(string, token, match, _options) {\n var valueCallback = function valueCallback(value) {\n return value - 1;\n };\n\n switch (token) {\n // 1, 2, ..., 12\n case 'M':\n return parseNumericPattern(numericPatterns.month, string, valueCallback);\n // 01, 02, ..., 12\n\n case 'MM':\n return parseNDigits(2, string, valueCallback);\n // 1st, 2nd, ..., 12th\n\n case 'Mo':\n return match.ordinalNumber(string, {\n unit: 'month',\n valueCallback: valueCallback\n });\n // Jan, Feb, ..., Dec\n\n case 'MMM':\n return match.month(string, {\n width: 'abbreviated',\n context: 'formatting'\n }) || match.month(string, {\n width: 'narrow',\n context: 'formatting'\n });\n // J, F, ..., D\n\n case 'MMMMM':\n return match.month(string, {\n width: 'narrow',\n context: 'formatting'\n });\n // January, February, ..., December\n\n case 'MMMM':\n default:\n return match.month(string, {\n width: 'wide',\n context: 'formatting'\n }) || match.month(string, {\n width: 'abbreviated',\n context: 'formatting'\n }) || match.month(string, {\n width: 'narrow',\n context: 'formatting'\n });\n }\n },\n validate: function validate(_date, value, _options) {\n return value >= 0 && value <= 11;\n },\n set: function set(date, _flags, value, _options) {\n date.setUTCMonth(value, 1);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['Y', 'R', 'q', 'Q', 'L', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']\n },\n // Stand-alone month\n L: {\n priority: 110,\n parse: function parse(string, token, match, _options) {\n var valueCallback = function valueCallback(value) {\n return value - 1;\n };\n\n switch (token) {\n // 1, 2, ..., 12\n case 'L':\n return parseNumericPattern(numericPatterns.month, string, valueCallback);\n // 01, 02, ..., 12\n\n case 'LL':\n return parseNDigits(2, string, valueCallback);\n // 1st, 2nd, ..., 12th\n\n case 'Lo':\n return match.ordinalNumber(string, {\n unit: 'month',\n valueCallback: valueCallback\n });\n // Jan, Feb, ..., Dec\n\n case 'LLL':\n return match.month(string, {\n width: 'abbreviated',\n context: 'standalone'\n }) || match.month(string, {\n width: 'narrow',\n context: 'standalone'\n });\n // J, F, ..., D\n\n case 'LLLLL':\n return match.month(string, {\n width: 'narrow',\n context: 'standalone'\n });\n // January, February, ..., December\n\n case 'LLLL':\n default:\n return match.month(string, {\n width: 'wide',\n context: 'standalone'\n }) || match.month(string, {\n width: 'abbreviated',\n context: 'standalone'\n }) || match.month(string, {\n width: 'narrow',\n context: 'standalone'\n });\n }\n },\n validate: function validate(_date, value, _options) {\n return value >= 0 && value <= 11;\n },\n set: function set(date, _flags, value, _options) {\n date.setUTCMonth(value, 1);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']\n },\n // Local week of year\n w: {\n priority: 100,\n parse: function parse(string, token, match, _options) {\n switch (token) {\n case 'w':\n return parseNumericPattern(numericPatterns.week, string);\n\n case 'wo':\n return match.ordinalNumber(string, {\n unit: 'week'\n });\n\n default:\n return parseNDigits(token.length, string);\n }\n },\n validate: function validate(_date, value, _options) {\n return value >= 1 && value <= 53;\n },\n set: function set(date, _flags, value, options) {\n return startOfUTCWeek(setUTCWeek(date, value, options), options);\n },\n incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']\n },\n // ISO week of year\n I: {\n priority: 100,\n parse: function parse(string, token, match, _options) {\n switch (token) {\n case 'I':\n return parseNumericPattern(numericPatterns.week, string);\n\n case 'Io':\n return match.ordinalNumber(string, {\n unit: 'week'\n });\n\n default:\n return parseNDigits(token.length, string);\n }\n },\n validate: function validate(_date, value, _options) {\n return value >= 1 && value <= 53;\n },\n set: function set(date, _flags, value, options) {\n return startOfUTCISOWeek(setUTCISOWeek(date, value, options), options);\n },\n incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']\n },\n // Day of the month\n d: {\n priority: 90,\n subPriority: 1,\n parse: function parse(string, token, match, _options) {\n switch (token) {\n case 'd':\n return parseNumericPattern(numericPatterns.date, string);\n\n case 'do':\n return match.ordinalNumber(string, {\n unit: 'date'\n });\n\n default:\n return parseNDigits(token.length, string);\n }\n },\n validate: function validate(date, value, _options) {\n var year = date.getUTCFullYear();\n var isLeapYear = isLeapYearIndex(year);\n var month = date.getUTCMonth();\n\n if (isLeapYear) {\n return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month];\n } else {\n return value >= 1 && value <= DAYS_IN_MONTH[month];\n }\n },\n set: function set(date, _flags, value, _options) {\n date.setUTCDate(value);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']\n },\n // Day of year\n D: {\n priority: 90,\n subPriority: 1,\n parse: function parse(string, token, match, _options) {\n switch (token) {\n case 'D':\n case 'DD':\n return parseNumericPattern(numericPatterns.dayOfYear, string);\n\n case 'Do':\n return match.ordinalNumber(string, {\n unit: 'date'\n });\n\n default:\n return parseNDigits(token.length, string);\n }\n },\n validate: function validate(date, value, _options) {\n var year = date.getUTCFullYear();\n var isLeapYear = isLeapYearIndex(year);\n\n if (isLeapYear) {\n return value >= 1 && value <= 366;\n } else {\n return value >= 1 && value <= 365;\n }\n },\n set: function set(date, _flags, value, _options) {\n date.setUTCMonth(0, value);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E', 'i', 'e', 'c', 't', 'T']\n },\n // Day of week\n E: {\n priority: 90,\n parse: function parse(string, token, match, _options) {\n switch (token) {\n // Tue\n case 'E':\n case 'EE':\n case 'EEE':\n return match.day(string, {\n width: 'abbreviated',\n context: 'formatting'\n }) || match.day(string, {\n width: 'short',\n context: 'formatting'\n }) || match.day(string, {\n width: 'narrow',\n context: 'formatting'\n });\n // T\n\n case 'EEEEE':\n return match.day(string, {\n width: 'narrow',\n context: 'formatting'\n });\n // Tu\n\n case 'EEEEEE':\n return match.day(string, {\n width: 'short',\n context: 'formatting'\n }) || match.day(string, {\n width: 'narrow',\n context: 'formatting'\n });\n // Tuesday\n\n case 'EEEE':\n default:\n return match.day(string, {\n width: 'wide',\n context: 'formatting'\n }) || match.day(string, {\n width: 'abbreviated',\n context: 'formatting'\n }) || match.day(string, {\n width: 'short',\n context: 'formatting'\n }) || match.day(string, {\n width: 'narrow',\n context: 'formatting'\n });\n }\n },\n validate: function validate(_date, value, _options) {\n return value >= 0 && value <= 6;\n },\n set: function set(date, _flags, value, options) {\n date = setUTCDay(date, value, options);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['D', 'i', 'e', 'c', 't', 'T']\n },\n // Local day of week\n e: {\n priority: 90,\n parse: function parse(string, token, match, options) {\n var valueCallback = function valueCallback(value) {\n var wholeWeekDays = Math.floor((value - 1) / 7) * 7;\n return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;\n };\n\n switch (token) {\n // 3\n case 'e':\n case 'ee':\n // 03\n return parseNDigits(token.length, string, valueCallback);\n // 3rd\n\n case 'eo':\n return match.ordinalNumber(string, {\n unit: 'day',\n valueCallback: valueCallback\n });\n // Tue\n\n case 'eee':\n return match.day(string, {\n width: 'abbreviated',\n context: 'formatting'\n }) || match.day(string, {\n width: 'short',\n context: 'formatting'\n }) || match.day(string, {\n width: 'narrow',\n context: 'formatting'\n });\n // T\n\n case 'eeeee':\n return match.day(string, {\n width: 'narrow',\n context: 'formatting'\n });\n // Tu\n\n case 'eeeeee':\n return match.day(string, {\n width: 'short',\n context: 'formatting'\n }) || match.day(string, {\n width: 'narrow',\n context: 'formatting'\n });\n // Tuesday\n\n case 'eeee':\n default:\n return match.day(string, {\n width: 'wide',\n context: 'formatting'\n }) || match.day(string, {\n width: 'abbreviated',\n context: 'formatting'\n }) || match.day(string, {\n width: 'short',\n context: 'formatting'\n }) || match.day(string, {\n width: 'narrow',\n context: 'formatting'\n });\n }\n },\n validate: function validate(_date, value, _options) {\n return value >= 0 && value <= 6;\n },\n set: function set(date, _flags, value, options) {\n date = setUTCDay(date, value, options);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'c', 't', 'T']\n },\n // Stand-alone local day of week\n c: {\n priority: 90,\n parse: function parse(string, token, match, options) {\n var valueCallback = function valueCallback(value) {\n var wholeWeekDays = Math.floor((value - 1) / 7) * 7;\n return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;\n };\n\n switch (token) {\n // 3\n case 'c':\n case 'cc':\n // 03\n return parseNDigits(token.length, string, valueCallback);\n // 3rd\n\n case 'co':\n return match.ordinalNumber(string, {\n unit: 'day',\n valueCallback: valueCallback\n });\n // Tue\n\n case 'ccc':\n return match.day(string, {\n width: 'abbreviated',\n context: 'standalone'\n }) || match.day(string, {\n width: 'short',\n context: 'standalone'\n }) || match.day(string, {\n width: 'narrow',\n context: 'standalone'\n });\n // T\n\n case 'ccccc':\n return match.day(string, {\n width: 'narrow',\n context: 'standalone'\n });\n // Tu\n\n case 'cccccc':\n return match.day(string, {\n width: 'short',\n context: 'standalone'\n }) || match.day(string, {\n width: 'narrow',\n context: 'standalone'\n });\n // Tuesday\n\n case 'cccc':\n default:\n return match.day(string, {\n width: 'wide',\n context: 'standalone'\n }) || match.day(string, {\n width: 'abbreviated',\n context: 'standalone'\n }) || match.day(string, {\n width: 'short',\n context: 'standalone'\n }) || match.day(string, {\n width: 'narrow',\n context: 'standalone'\n });\n }\n },\n validate: function validate(_date, value, _options) {\n return value >= 0 && value <= 6;\n },\n set: function set(date, _flags, value, options) {\n date = setUTCDay(date, value, options);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'e', 't', 'T']\n },\n // ISO day of week\n i: {\n priority: 90,\n parse: function parse(string, token, match, _options) {\n var valueCallback = function valueCallback(value) {\n if (value === 0) {\n return 7;\n }\n\n return value;\n };\n\n switch (token) {\n // 2\n case 'i':\n case 'ii':\n // 02\n return parseNDigits(token.length, string);\n // 2nd\n\n case 'io':\n return match.ordinalNumber(string, {\n unit: 'day'\n });\n // Tue\n\n case 'iii':\n return match.day(string, {\n width: 'abbreviated',\n context: 'formatting',\n valueCallback: valueCallback\n }) || match.day(string, {\n width: 'short',\n context: 'formatting',\n valueCallback: valueCallback\n }) || match.day(string, {\n width: 'narrow',\n context: 'formatting',\n valueCallback: valueCallback\n });\n // T\n\n case 'iiiii':\n return match.day(string, {\n width: 'narrow',\n context: 'formatting',\n valueCallback: valueCallback\n });\n // Tu\n\n case 'iiiiii':\n return match.day(string, {\n width: 'short',\n context: 'formatting',\n valueCallback: valueCallback\n }) || match.day(string, {\n width: 'narrow',\n context: 'formatting',\n valueCallback: valueCallback\n });\n // Tuesday\n\n case 'iiii':\n default:\n return match.day(string, {\n width: 'wide',\n context: 'formatting',\n valueCallback: valueCallback\n }) || match.day(string, {\n width: 'abbreviated',\n context: 'formatting',\n valueCallback: valueCallback\n }) || match.day(string, {\n width: 'short',\n context: 'formatting',\n valueCallback: valueCallback\n }) || match.day(string, {\n width: 'narrow',\n context: 'formatting',\n valueCallback: valueCallback\n });\n }\n },\n validate: function validate(_date, value, _options) {\n return value >= 1 && value <= 7;\n },\n set: function set(date, _flags, value, options) {\n date = setUTCISODay(date, value, options);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'E', 'e', 'c', 't', 'T']\n },\n // AM or PM\n a: {\n priority: 80,\n parse: function parse(string, token, match, _options) {\n switch (token) {\n case 'a':\n case 'aa':\n case 'aaa':\n return match.dayPeriod(string, {\n width: 'abbreviated',\n context: 'formatting'\n }) || match.dayPeriod(string, {\n width: 'narrow',\n context: 'formatting'\n });\n\n case 'aaaaa':\n return match.dayPeriod(string, {\n width: 'narrow',\n context: 'formatting'\n });\n\n case 'aaaa':\n default:\n return match.dayPeriod(string, {\n width: 'wide',\n context: 'formatting'\n }) || match.dayPeriod(string, {\n width: 'abbreviated',\n context: 'formatting'\n }) || match.dayPeriod(string, {\n width: 'narrow',\n context: 'formatting'\n });\n }\n },\n set: function set(date, _flags, value, _options) {\n date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['b', 'B', 'H', 'K', 'k', 't', 'T']\n },\n // AM, PM, midnight\n b: {\n priority: 80,\n parse: function parse(string, token, match, _options) {\n switch (token) {\n case 'b':\n case 'bb':\n case 'bbb':\n return match.dayPeriod(string, {\n width: 'abbreviated',\n context: 'formatting'\n }) || match.dayPeriod(string, {\n width: 'narrow',\n context: 'formatting'\n });\n\n case 'bbbbb':\n return match.dayPeriod(string, {\n width: 'narrow',\n context: 'formatting'\n });\n\n case 'bbbb':\n default:\n return match.dayPeriod(string, {\n width: 'wide',\n context: 'formatting'\n }) || match.dayPeriod(string, {\n width: 'abbreviated',\n context: 'formatting'\n }) || match.dayPeriod(string, {\n width: 'narrow',\n context: 'formatting'\n });\n }\n },\n set: function set(date, _flags, value, _options) {\n date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['a', 'B', 'H', 'K', 'k', 't', 'T']\n },\n // in the morning, in the afternoon, in the evening, at night\n B: {\n priority: 80,\n parse: function parse(string, token, match, _options) {\n switch (token) {\n case 'B':\n case 'BB':\n case 'BBB':\n return match.dayPeriod(string, {\n width: 'abbreviated',\n context: 'formatting'\n }) || match.dayPeriod(string, {\n width: 'narrow',\n context: 'formatting'\n });\n\n case 'BBBBB':\n return match.dayPeriod(string, {\n width: 'narrow',\n context: 'formatting'\n });\n\n case 'BBBB':\n default:\n return match.dayPeriod(string, {\n width: 'wide',\n context: 'formatting'\n }) || match.dayPeriod(string, {\n width: 'abbreviated',\n context: 'formatting'\n }) || match.dayPeriod(string, {\n width: 'narrow',\n context: 'formatting'\n });\n }\n },\n set: function set(date, _flags, value, _options) {\n date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['a', 'b', 't', 'T']\n },\n // Hour [1-12]\n h: {\n priority: 70,\n parse: function parse(string, token, match, _options) {\n switch (token) {\n case 'h':\n return parseNumericPattern(numericPatterns.hour12h, string);\n\n case 'ho':\n return match.ordinalNumber(string, {\n unit: 'hour'\n });\n\n default:\n return parseNDigits(token.length, string);\n }\n },\n validate: function validate(_date, value, _options) {\n return value >= 1 && value <= 12;\n },\n set: function set(date, _flags, value, _options) {\n var isPM = date.getUTCHours() >= 12;\n\n if (isPM && value < 12) {\n date.setUTCHours(value + 12, 0, 0, 0);\n } else if (!isPM && value === 12) {\n date.setUTCHours(0, 0, 0, 0);\n } else {\n date.setUTCHours(value, 0, 0, 0);\n }\n\n return date;\n },\n incompatibleTokens: ['H', 'K', 'k', 't', 'T']\n },\n // Hour [0-23]\n H: {\n priority: 70,\n parse: function parse(string, token, match, _options) {\n switch (token) {\n case 'H':\n return parseNumericPattern(numericPatterns.hour23h, string);\n\n case 'Ho':\n return match.ordinalNumber(string, {\n unit: 'hour'\n });\n\n default:\n return parseNDigits(token.length, string);\n }\n },\n validate: function validate(_date, value, _options) {\n return value >= 0 && value <= 23;\n },\n set: function set(date, _flags, value, _options) {\n date.setUTCHours(value, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['a', 'b', 'h', 'K', 'k', 't', 'T']\n },\n // Hour [0-11]\n K: {\n priority: 70,\n parse: function parse(string, token, match, _options) {\n switch (token) {\n case 'K':\n return parseNumericPattern(numericPatterns.hour11h, string);\n\n case 'Ko':\n return match.ordinalNumber(string, {\n unit: 'hour'\n });\n\n default:\n return parseNDigits(token.length, string);\n }\n },\n validate: function validate(_date, value, _options) {\n return value >= 0 && value <= 11;\n },\n set: function set(date, _flags, value, _options) {\n var isPM = date.getUTCHours() >= 12;\n\n if (isPM && value < 12) {\n date.setUTCHours(value + 12, 0, 0, 0);\n } else {\n date.setUTCHours(value, 0, 0, 0);\n }\n\n return date;\n },\n incompatibleTokens: ['a', 'b', 'h', 'H', 'k', 't', 'T']\n },\n // Hour [1-24]\n k: {\n priority: 70,\n parse: function parse(string, token, match, _options) {\n switch (token) {\n case 'k':\n return parseNumericPattern(numericPatterns.hour24h, string);\n\n case 'ko':\n return match.ordinalNumber(string, {\n unit: 'hour'\n });\n\n default:\n return parseNDigits(token.length, string);\n }\n },\n validate: function validate(_date, value, _options) {\n return value >= 1 && value <= 24;\n },\n set: function set(date, _flags, value, _options) {\n var hours = value <= 24 ? value % 24 : value;\n date.setUTCHours(hours, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['a', 'b', 'h', 'H', 'K', 't', 'T']\n },\n // Minute\n m: {\n priority: 60,\n parse: function parse(string, token, match, _options) {\n switch (token) {\n case 'm':\n return parseNumericPattern(numericPatterns.minute, string);\n\n case 'mo':\n return match.ordinalNumber(string, {\n unit: 'minute'\n });\n\n default:\n return parseNDigits(token.length, string);\n }\n },\n validate: function validate(_date, value, _options) {\n return value >= 0 && value <= 59;\n },\n set: function set(date, _flags, value, _options) {\n date.setUTCMinutes(value, 0, 0);\n return date;\n },\n incompatibleTokens: ['t', 'T']\n },\n // Second\n s: {\n priority: 50,\n parse: function parse(string, token, match, _options) {\n switch (token) {\n case 's':\n return parseNumericPattern(numericPatterns.second, string);\n\n case 'so':\n return match.ordinalNumber(string, {\n unit: 'second'\n });\n\n default:\n return parseNDigits(token.length, string);\n }\n },\n validate: function validate(_date, value, _options) {\n return value >= 0 && value <= 59;\n },\n set: function set(date, _flags, value, _options) {\n date.setUTCSeconds(value, 0);\n return date;\n },\n incompatibleTokens: ['t', 'T']\n },\n // Fraction of second\n S: {\n priority: 30,\n parse: function parse(string, token, _match, _options) {\n var valueCallback = function valueCallback(value) {\n return Math.floor(value * Math.pow(10, -token.length + 3));\n };\n\n return parseNDigits(token.length, string, valueCallback);\n },\n set: function set(date, _flags, value, _options) {\n date.setUTCMilliseconds(value);\n return date;\n },\n incompatibleTokens: ['t', 'T']\n },\n // Timezone (ISO-8601. +00:00 is `'Z'`)\n X: {\n priority: 10,\n parse: function parse(string, token, _match, _options) {\n switch (token) {\n case 'X':\n return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string);\n\n case 'XX':\n return parseTimezonePattern(timezonePatterns.basic, string);\n\n case 'XXXX':\n return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string);\n\n case 'XXXXX':\n return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string);\n\n case 'XXX':\n default:\n return parseTimezonePattern(timezonePatterns.extended, string);\n }\n },\n set: function set(date, flags, value, _options) {\n if (flags.timestampIsSet) {\n return date;\n }\n\n return new Date(date.getTime() - value);\n },\n incompatibleTokens: ['t', 'T', 'x']\n },\n // Timezone (ISO-8601)\n x: {\n priority: 10,\n parse: function parse(string, token, _match, _options) {\n switch (token) {\n case 'x':\n return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string);\n\n case 'xx':\n return parseTimezonePattern(timezonePatterns.basic, string);\n\n case 'xxxx':\n return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string);\n\n case 'xxxxx':\n return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string);\n\n case 'xxx':\n default:\n return parseTimezonePattern(timezonePatterns.extended, string);\n }\n },\n set: function set(date, flags, value, _options) {\n if (flags.timestampIsSet) {\n return date;\n }\n\n return new Date(date.getTime() - value);\n },\n incompatibleTokens: ['t', 'T', 'X']\n },\n // Seconds timestamp\n t: {\n priority: 40,\n parse: function parse(string, _token, _match, _options) {\n return parseAnyDigitsSigned(string);\n },\n set: function set(_date, _flags, value, _options) {\n return [new Date(value * 1000), {\n timestampIsSet: true\n }];\n },\n incompatibleTokens: '*'\n },\n // Milliseconds timestamp\n T: {\n priority: 20,\n parse: function parse(string, _token, _match, _options) {\n return parseAnyDigitsSigned(string);\n },\n set: function set(_date, _flags, value, _options) {\n return [new Date(value), {\n timestampIsSet: true\n }];\n },\n incompatibleTokens: '*'\n }\n};\nexport default parsers;","import toInteger from \"../toInteger/index.js\";\nimport toDate from \"../../toDate/index.js\";\nimport getUTCWeek from \"../getUTCWeek/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\"; // This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\n\nexport default function setUTCWeek(dirtyDate, dirtyWeek, options) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var week = toInteger(dirtyWeek);\n var diff = getUTCWeek(date, options) - week;\n date.setUTCDate(date.getUTCDate() - diff * 7);\n return date;\n}","import toInteger from \"../toInteger/index.js\";\nimport toDate from \"../../toDate/index.js\";\nimport getUTCISOWeek from \"../getUTCISOWeek/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\"; // This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\n\nexport default function setUTCISOWeek(dirtyDate, dirtyISOWeek) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var isoWeek = toInteger(dirtyISOWeek);\n var diff = getUTCISOWeek(date) - isoWeek;\n date.setUTCDate(date.getUTCDate() - diff * 7);\n return date;\n}","import toInteger from \"../toInteger/index.js\";\nimport toDate from \"../../toDate/index.js\";\nimport requiredArgs from \"../requiredArgs/index.js\"; // This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\n\nexport default function setUTCISODay(dirtyDate, dirtyDay) {\n requiredArgs(2, arguments);\n var day = toInteger(dirtyDay);\n\n if (day % 7 === 0) {\n day = day - 7;\n }\n\n var weekStartsOn = 1;\n var date = toDate(dirtyDate);\n var currentDay = date.getUTCDay();\n var remainder = day % 7;\n var dayIndex = (remainder + 7) % 7;\n var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;\n date.setUTCDate(date.getUTCDate() + diff);\n return date;\n}","import defaultLocale from \"../locale/en-US/index.js\";\nimport subMilliseconds from \"../subMilliseconds/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport assign from \"../_lib/assign/index.js\";\nimport longFormatters from \"../_lib/format/longFormatters/index.js\";\nimport getTimezoneOffsetInMilliseconds from \"../_lib/getTimezoneOffsetInMilliseconds/index.js\";\nimport { isProtectedDayOfYearToken, isProtectedWeekYearToken, throwProtectedError } from \"../_lib/protectedTokens/index.js\";\nimport toInteger from \"../_lib/toInteger/index.js\";\nimport parsers from \"./_lib/parsers/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nvar TIMEZONE_UNIT_PRIORITY = 10; // This RegExp consists of three parts separated by `|`:\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\n// (one of the certain letters followed by `o`)\n// - (\\w)\\1* matches any sequences of the same letter\n// - '' matches two quote characters in a row\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\n// except a single quote symbol, which ends the sequence.\n// Two quote characters do not end the sequence.\n// If there is no matching single quote\n// then the sequence will continue until the end of the string.\n// - . matches any single character unmatched by previous parts of the RegExps\n\nvar formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\n\nvar longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\nvar escapedStringRegExp = /^'([^]*?)'?$/;\nvar doubleQuoteRegExp = /''/g;\nvar notWhitespaceRegExp = /\\S/;\nvar unescapedLatinCharacterRegExp = /[a-zA-Z]/;\n/**\n * @name parse\n * @category Common Helpers\n * @summary Parse the date.\n *\n * @description\n * Return the date parsed from string using the given format string.\n *\n * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://git.io/fxCyr\n *\n * The characters in the format string wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n *\n * Format of the format string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 5 below the table).\n *\n * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited\n * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception:\n *\n * ```javascript\n * parse('23 AM', 'HH a', new Date())\n * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time\n * ```\n *\n * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true\n *\n * Accepted format string patterns:\n * | Unit |Prior| Pattern | Result examples | Notes |\n * |---------------------------------|-----|---------|-----------------------------------|-------|\n * | Era | 140 | G..GGG | AD, BC | |\n * | | | GGGG | Anno Domini, Before Christ | 2 |\n * | | | GGGGG | A, B | |\n * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 |\n * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 |\n * | | | yy | 44, 01, 00, 17 | 4 |\n * | | | yyy | 044, 001, 123, 999 | 4 |\n * | | | yyyy | 0044, 0001, 1900, 2017 | 4 |\n * | | | yyyyy | ... | 2,4 |\n * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 |\n * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 |\n * | | | YY | 44, 01, 00, 17 | 4,6 |\n * | | | YYY | 044, 001, 123, 999 | 4 |\n * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 |\n * | | | YYYYY | ... | 2,4 |\n * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 |\n * | | | RR | -43, 01, 00, 17 | 4,5 |\n * | | | RRR | -043, 001, 123, 999, -999 | 4,5 |\n * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 |\n * | | | RRRRR | ... | 2,4,5 |\n * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 |\n * | | | uu | -43, 01, 99, -99 | 4 |\n * | | | uuu | -043, 001, 123, 999, -999 | 4 |\n * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 |\n * | | | uuuuu | ... | 2,4 |\n * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | |\n * | | | Qo | 1st, 2nd, 3rd, 4th | 5 |\n * | | | QQ | 01, 02, 03, 04 | |\n * | | | QQQ | Q1, Q2, Q3, Q4 | |\n * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |\n * | | | QQQQQ | 1, 2, 3, 4 | 4 |\n * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | |\n * | | | qo | 1st, 2nd, 3rd, 4th | 5 |\n * | | | qq | 01, 02, 03, 04 | |\n * | | | qqq | Q1, Q2, Q3, Q4 | |\n * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 |\n * | | | qqqqq | 1, 2, 3, 4 | 3 |\n * | Month (formatting) | 110 | M | 1, 2, ..., 12 | |\n * | | | Mo | 1st, 2nd, ..., 12th | 5 |\n * | | | MM | 01, 02, ..., 12 | |\n * | | | MMM | Jan, Feb, ..., Dec | |\n * | | | MMMM | January, February, ..., December | 2 |\n * | | | MMMMM | J, F, ..., D | |\n * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | |\n * | | | Lo | 1st, 2nd, ..., 12th | 5 |\n * | | | LL | 01, 02, ..., 12 | |\n * | | | LLL | Jan, Feb, ..., Dec | |\n * | | | LLLL | January, February, ..., December | 2 |\n * | | | LLLLL | J, F, ..., D | |\n * | Local week of year | 100 | w | 1, 2, ..., 53 | |\n * | | | wo | 1st, 2nd, ..., 53th | 5 |\n * | | | ww | 01, 02, ..., 53 | |\n * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 |\n * | | | Io | 1st, 2nd, ..., 53th | 5 |\n * | | | II | 01, 02, ..., 53 | 5 |\n * | Day of month | 90 | d | 1, 2, ..., 31 | |\n * | | | do | 1st, 2nd, ..., 31st | 5 |\n * | | | dd | 01, 02, ..., 31 | |\n * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 |\n * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 |\n * | | | DD | 01, 02, ..., 365, 366 | 7 |\n * | | | DDD | 001, 002, ..., 365, 366 | |\n * | | | DDDD | ... | 2 |\n * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | |\n * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 |\n * | | | EEEEE | M, T, W, T, F, S, S | |\n * | | | EEEEEE | Mo, Tu, We, Th, Fr, Su, Sa | |\n * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 |\n * | | | io | 1st, 2nd, ..., 7th | 5 |\n * | | | ii | 01, 02, ..., 07 | 5 |\n * | | | iii | Mon, Tue, Wed, ..., Sun | 5 |\n * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 |\n * | | | iiiii | M, T, W, T, F, S, S | 5 |\n * | | | iiiiii | Mo, Tu, We, Th, Fr, Su, Sa | 5 |\n * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | |\n * | | | eo | 2nd, 3rd, ..., 1st | 5 |\n * | | | ee | 02, 03, ..., 01 | |\n * | | | eee | Mon, Tue, Wed, ..., Sun | |\n * | | | eeee | Monday, Tuesday, ..., Sunday | 2 |\n * | | | eeeee | M, T, W, T, F, S, S | |\n * | | | eeeeee | Mo, Tu, We, Th, Fr, Su, Sa | |\n * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | |\n * | | | co | 2nd, 3rd, ..., 1st | 5 |\n * | | | cc | 02, 03, ..., 01 | |\n * | | | ccc | Mon, Tue, Wed, ..., Sun | |\n * | | | cccc | Monday, Tuesday, ..., Sunday | 2 |\n * | | | ccccc | M, T, W, T, F, S, S | |\n * | | | cccccc | Mo, Tu, We, Th, Fr, Su, Sa | |\n * | AM, PM | 80 | a..aaa | AM, PM | |\n * | | | aaaa | a.m., p.m. | 2 |\n * | | | aaaaa | a, p | |\n * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | |\n * | | | bbbb | a.m., p.m., noon, midnight | 2 |\n * | | | bbbbb | a, p, n, mi | |\n * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | |\n * | | | BBBB | at night, in the morning, ... | 2 |\n * | | | BBBBB | at night, in the morning, ... | |\n * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | |\n * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 |\n * | | | hh | 01, 02, ..., 11, 12 | |\n * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | |\n * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 |\n * | | | HH | 00, 01, 02, ..., 23 | |\n * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | |\n * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 |\n * | | | KK | 01, 02, ..., 11, 00 | |\n * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | |\n * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 |\n * | | | kk | 24, 01, 02, ..., 23 | |\n * | Minute | 60 | m | 0, 1, ..., 59 | |\n * | | | mo | 0th, 1st, ..., 59th | 5 |\n * | | | mm | 00, 01, ..., 59 | |\n * | Second | 50 | s | 0, 1, ..., 59 | |\n * | | | so | 0th, 1st, ..., 59th | 5 |\n * | | | ss | 00, 01, ..., 59 | |\n * | Seconds timestamp | 40 | t | 512969520 | |\n * | | | tt | ... | 2 |\n * | Fraction of second | 30 | S | 0, 1, ..., 9 | |\n * | | | SS | 00, 01, ..., 99 | |\n * | | | SSS | 000, 0001, ..., 999 | |\n * | | | SSSS | ... | 2 |\n * | Milliseconds timestamp | 20 | T | 512969520900 | |\n * | | | TT | ... | 2 |\n * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | |\n * | | | XX | -0800, +0530, Z | |\n * | | | XXX | -08:00, +05:30, Z | |\n * | | | XXXX | -0800, +0530, Z, +123456 | 2 |\n * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |\n * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | |\n * | | | xx | -0800, +0530, +0000 | |\n * | | | xxx | -08:00, +05:30, +00:00 | 2 |\n * | | | xxxx | -0800, +0530, +0000, +123456 | |\n * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |\n * | Long localized date | NA | P | 05/29/1453 | 5,8 |\n * | | | PP | May 29, 1453 | |\n * | | | PPP | May 29th, 1453 | |\n * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 |\n * | Long localized time | NA | p | 12:00 AM | 5,8 |\n * | | | pp | 12:00:00 AM | |\n * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | |\n * | | | PPpp | May 29, 1453, 12:00:00 AM | |\n * | | | PPPpp | May 29th, 1453 at ... | |\n * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n * are the same as \"stand-alone\" units, but are different in some languages.\n * \"Formatting\" units are declined according to the rules of the language\n * in the context of a date. \"Stand-alone\" units are always nominative singular.\n * In `format` function, they will produce different result:\n *\n * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * `parse` will try to match both formatting and stand-alone units interchangably.\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n * the single quote characters (see below).\n * If the sequence is longer than listed in table:\n * - for numerical units (`yyyyyyyy`) `parse` will try to match a number\n * as wide as the sequence\n * - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit.\n * These variations are marked with \"2\" in the last column of the table.\n *\n * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n * These tokens represent the shortest form of the quarter.\n *\n * 4. The main difference between `y` and `u` patterns are B.C. years:\n *\n * | Year | `y` | `u` |\n * |------|-----|-----|\n * | AC 1 | 1 | 1 |\n * | BC 1 | 1 | 0 |\n * | BC 2 | 2 | -1 |\n *\n * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`:\n *\n * `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00`\n *\n * `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00`\n *\n * while `uu` will just assign the year as is:\n *\n * `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00`\n *\n * `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00`\n *\n * The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n * except local week-numbering years are dependent on `options.weekStartsOn`\n * and `options.firstWeekContainsDate` (compare [setISOWeekYear]{@link https://date-fns.org/docs/setISOWeekYear}\n * and [setWeekYear]{@link https://date-fns.org/docs/setWeekYear}).\n *\n * 5. These patterns are not in the Unicode Technical Standard #35:\n * - `i`: ISO day of week\n * - `I`: ISO week of year\n * - `R`: ISO week-numbering year\n * - `o`: ordinal number modifier\n * - `P`: long localized date\n * - `p`: long localized time\n *\n * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\n * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr\n *\n * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.\n * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr\n *\n * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based\n * on the given locale.\n *\n * using `en-US` locale: `P` => `MM/dd/yyyy`\n * using `en-US` locale: `p` => `hh:mm a`\n * using `pt-BR` locale: `P` => `dd/MM/yyyy`\n * using `pt-BR` locale: `p` => `HH:mm`\n *\n * Values will be assigned to the date in the descending order of its unit's priority.\n * Units of an equal priority overwrite each other in the order of appearance.\n *\n * If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year),\n * the values will be taken from 3rd argument `referenceDate` which works as a context of parsing.\n *\n * `referenceDate` must be passed for correct work of the function.\n * If you're not sure which `referenceDate` to supply, create a new instance of Date:\n * `parse('02/11/2014', 'MM/dd/yyyy', new Date())`\n * In this case parsing will be done in the context of the current date.\n * If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`,\n * then `Invalid Date` will be returned.\n *\n * The result may vary by locale.\n *\n * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned.\n *\n * If parsing failed, `Invalid Date` will be returned.\n * Invalid Date is a Date, whose time value is NaN.\n * Time value of Date: http://es5.github.io/#x15.9.1.1\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * - Old `parse` was renamed to `toDate`.\n * Now `parse` is a new function which parses a string using a provided format.\n *\n * ```javascript\n * // Before v2.0.0\n * parse('2016-01-01')\n *\n * // v2.0.0 onward (toDate no longer accepts a string)\n * toDate(1392098430000) // Unix to timestamp\n * toDate(new Date(2014, 1, 11, 11, 30, 30)) // Cloning the date\n * parse('2016-01-01', 'yyyy-MM-dd', new Date())\n * ```\n *\n * @param {String} dateString - the string to parse\n * @param {String} formatString - the string of tokens\n * @param {Date|Number} referenceDate - defines values missing from the parsed dateString\n * @param {Object} [options] - an object with options.\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year\n * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;\n * see: https://git.io/fxCyr\n * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;\n * see: https://git.io/fxCyr\n * @returns {Date} the parsed date\n * @throws {TypeError} 3 arguments required\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7\n * @throws {RangeError} `options.locale` must contain `match` property\n * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr\n * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr\n * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr\n * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr\n * @throws {RangeError} format string contains an unescaped latin alphabet character\n *\n * @example\n * // Parse 11 February 2014 from middle-endian format:\n * var result = parse('02/11/2014', 'MM/dd/yyyy', new Date())\n * //=> Tue Feb 11 2014 00:00:00\n *\n * @example\n * // Parse 28th of February in Esperanto locale in the context of 2010 year:\n * import eo from 'date-fns/locale/eo'\n * var result = parse('28-a de februaro', \"do 'de' MMMM\", new Date(2010, 0, 1), {\n * locale: eo\n * })\n * //=> Sun Feb 28 2010 00:00:00\n */\n\nexport default function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, dirtyOptions) {\n requiredArgs(3, arguments);\n var dateString = String(dirtyDateString);\n var formatString = String(dirtyFormatString);\n var options = dirtyOptions || {};\n var locale = options.locale || defaultLocale;\n\n if (!locale.match) {\n throw new RangeError('locale must contain match property');\n }\n\n var localeFirstWeekContainsDate = locale.options && locale.options.firstWeekContainsDate;\n var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);\n var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN\n\n if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {\n throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');\n }\n\n var localeWeekStartsOn = locale.options && locale.options.weekStartsOn;\n var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn);\n var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN\n\n if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {\n throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');\n }\n\n if (formatString === '') {\n if (dateString === '') {\n return toDate(dirtyReferenceDate);\n } else {\n return new Date(NaN);\n }\n }\n\n var subFnOptions = {\n firstWeekContainsDate: firstWeekContainsDate,\n weekStartsOn: weekStartsOn,\n locale: locale // If timezone isn't specified, it will be set to the system timezone\n\n };\n var setters = [{\n priority: TIMEZONE_UNIT_PRIORITY,\n subPriority: -1,\n set: dateToSystemTimezone,\n index: 0\n }];\n var i;\n var tokens = formatString.match(longFormattingTokensRegExp).map(function (substring) {\n var firstCharacter = substring[0];\n\n if (firstCharacter === 'p' || firstCharacter === 'P') {\n var longFormatter = longFormatters[firstCharacter];\n return longFormatter(substring, locale.formatLong, subFnOptions);\n }\n\n return substring;\n }).join('').match(formattingTokensRegExp);\n var usedTokens = [];\n\n for (i = 0; i < tokens.length; i++) {\n var token = tokens[i];\n\n if (!options.useAdditionalWeekYearTokens && isProtectedWeekYearToken(token)) {\n throwProtectedError(token, formatString, dirtyDateString);\n }\n\n if (!options.useAdditionalDayOfYearTokens && isProtectedDayOfYearToken(token)) {\n throwProtectedError(token, formatString, dirtyDateString);\n }\n\n var firstCharacter = token[0];\n var parser = parsers[firstCharacter];\n\n if (parser) {\n var incompatibleTokens = parser.incompatibleTokens;\n\n if (Array.isArray(incompatibleTokens)) {\n var incompatibleToken = void 0;\n\n for (var _i = 0; _i < usedTokens.length; _i++) {\n var usedToken = usedTokens[_i].token;\n\n if (incompatibleTokens.indexOf(usedToken) !== -1 || usedToken === firstCharacter) {\n incompatibleToken = usedTokens[_i];\n break;\n }\n }\n\n if (incompatibleToken) {\n throw new RangeError(\"The format string mustn't contain `\".concat(incompatibleToken.fullToken, \"` and `\").concat(token, \"` at the same time\"));\n }\n } else if (parser.incompatibleTokens === '*' && usedTokens.length) {\n throw new RangeError(\"The format string mustn't contain `\".concat(token, \"` and any other token at the same time\"));\n }\n\n usedTokens.push({\n token: firstCharacter,\n fullToken: token\n });\n var parseResult = parser.parse(dateString, token, locale.match, subFnOptions);\n\n if (!parseResult) {\n return new Date(NaN);\n }\n\n setters.push({\n priority: parser.priority,\n subPriority: parser.subPriority || 0,\n set: parser.set,\n validate: parser.validate,\n value: parseResult.value,\n index: setters.length\n });\n dateString = parseResult.rest;\n } else {\n if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\n throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');\n } // Replace two single quote characters with one single quote character\n\n\n if (token === \"''\") {\n token = \"'\";\n } else if (firstCharacter === \"'\") {\n token = cleanEscapedString(token);\n } // Cut token from string, or, if string doesn't match the token, return Invalid Date\n\n\n if (dateString.indexOf(token) === 0) {\n dateString = dateString.slice(token.length);\n } else {\n return new Date(NaN);\n }\n }\n } // Check if the remaining input contains something other than whitespace\n\n\n if (dateString.length > 0 && notWhitespaceRegExp.test(dateString)) {\n return new Date(NaN);\n }\n\n var uniquePrioritySetters = setters.map(function (setter) {\n return setter.priority;\n }).sort(function (a, b) {\n return b - a;\n }).filter(function (priority, index, array) {\n return array.indexOf(priority) === index;\n }).map(function (priority) {\n return setters.filter(function (setter) {\n return setter.priority === priority;\n }).sort(function (a, b) {\n return b.subPriority - a.subPriority;\n });\n }).map(function (setterArray) {\n return setterArray[0];\n });\n var date = toDate(dirtyReferenceDate);\n\n if (isNaN(date)) {\n return new Date(NaN);\n } // Convert the date in system timezone to the same date in UTC+00:00 timezone.\n // This ensures that when UTC functions will be implemented, locales will be compatible with them.\n // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/37\n\n\n var utcDate = subMilliseconds(date, getTimezoneOffsetInMilliseconds(date));\n var flags = {};\n\n for (i = 0; i < uniquePrioritySetters.length; i++) {\n var setter = uniquePrioritySetters[i];\n\n if (setter.validate && !setter.validate(utcDate, setter.value, subFnOptions)) {\n return new Date(NaN);\n }\n\n var result = setter.set(utcDate, flags, setter.value, subFnOptions); // Result is tuple (date, flags)\n\n if (result[0]) {\n utcDate = result[0];\n assign(flags, result[1]); // Result is date\n } else {\n utcDate = result;\n }\n }\n\n return utcDate;\n}\n\nfunction dateToSystemTimezone(date, flags) {\n if (flags.timestampIsSet) {\n return date;\n }\n\n var convertedDate = new Date(0);\n convertedDate.setFullYear(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate());\n convertedDate.setHours(date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds());\n return convertedDate;\n}\n\nfunction cleanEscapedString(input) {\n return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, \"'\");\n}","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/*!\n * Chart.js v2.9.4\n * https://www.chartjs.org\n * (c) 2020 Chart.js Contributors\n * Released under the MIT License\n */\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' ? module.exports = factory(function () {\n try {\n return require('moment');\n } catch (e) {}\n }()) : typeof define === 'function' && define.amd ? define(['require'], function (require) {\n return factory(function () {\n try {\n return require('moment');\n } catch (e) {}\n }());\n }) : (global = global || self, global.Chart = factory(global.moment));\n})(this, function (moment) {\n 'use strict';\n\n moment = moment && moment.hasOwnProperty('default') ? moment['default'] : moment;\n\n function createCommonjsModule(fn, module) {\n return module = {\n exports: {}\n }, fn(module, module.exports), module.exports;\n }\n\n function getCjsExportFromNamespace(n) {\n return n && n['default'] || n;\n }\n\n var colorName = {\n \"aliceblue\": [240, 248, 255],\n \"antiquewhite\": [250, 235, 215],\n \"aqua\": [0, 255, 255],\n \"aquamarine\": [127, 255, 212],\n \"azure\": [240, 255, 255],\n \"beige\": [245, 245, 220],\n \"bisque\": [255, 228, 196],\n \"black\": [0, 0, 0],\n \"blanchedalmond\": [255, 235, 205],\n \"blue\": [0, 0, 255],\n \"blueviolet\": [138, 43, 226],\n \"brown\": [165, 42, 42],\n \"burlywood\": [222, 184, 135],\n \"cadetblue\": [95, 158, 160],\n \"chartreuse\": [127, 255, 0],\n \"chocolate\": [210, 105, 30],\n \"coral\": [255, 127, 80],\n \"cornflowerblue\": [100, 149, 237],\n \"cornsilk\": [255, 248, 220],\n \"crimson\": [220, 20, 60],\n \"cyan\": [0, 255, 255],\n \"darkblue\": [0, 0, 139],\n \"darkcyan\": [0, 139, 139],\n \"darkgoldenrod\": [184, 134, 11],\n \"darkgray\": [169, 169, 169],\n \"darkgreen\": [0, 100, 0],\n \"darkgrey\": [169, 169, 169],\n \"darkkhaki\": [189, 183, 107],\n \"darkmagenta\": [139, 0, 139],\n \"darkolivegreen\": [85, 107, 47],\n \"darkorange\": [255, 140, 0],\n \"darkorchid\": [153, 50, 204],\n \"darkred\": [139, 0, 0],\n \"darksalmon\": [233, 150, 122],\n \"darkseagreen\": [143, 188, 143],\n \"darkslateblue\": [72, 61, 139],\n \"darkslategray\": [47, 79, 79],\n \"darkslategrey\": [47, 79, 79],\n \"darkturquoise\": [0, 206, 209],\n \"darkviolet\": [148, 0, 211],\n \"deeppink\": [255, 20, 147],\n \"deepskyblue\": [0, 191, 255],\n \"dimgray\": [105, 105, 105],\n \"dimgrey\": [105, 105, 105],\n \"dodgerblue\": [30, 144, 255],\n \"firebrick\": [178, 34, 34],\n \"floralwhite\": [255, 250, 240],\n \"forestgreen\": [34, 139, 34],\n \"fuchsia\": [255, 0, 255],\n \"gainsboro\": [220, 220, 220],\n \"ghostwhite\": [248, 248, 255],\n \"gold\": [255, 215, 0],\n \"goldenrod\": [218, 165, 32],\n \"gray\": [128, 128, 128],\n \"green\": [0, 128, 0],\n \"greenyellow\": [173, 255, 47],\n \"grey\": [128, 128, 128],\n \"honeydew\": [240, 255, 240],\n \"hotpink\": [255, 105, 180],\n \"indianred\": [205, 92, 92],\n \"indigo\": [75, 0, 130],\n \"ivory\": [255, 255, 240],\n \"khaki\": [240, 230, 140],\n \"lavender\": [230, 230, 250],\n \"lavenderblush\": [255, 240, 245],\n \"lawngreen\": [124, 252, 0],\n \"lemonchiffon\": [255, 250, 205],\n \"lightblue\": [173, 216, 230],\n \"lightcoral\": [240, 128, 128],\n \"lightcyan\": [224, 255, 255],\n \"lightgoldenrodyellow\": [250, 250, 210],\n \"lightgray\": [211, 211, 211],\n \"lightgreen\": [144, 238, 144],\n \"lightgrey\": [211, 211, 211],\n \"lightpink\": [255, 182, 193],\n \"lightsalmon\": [255, 160, 122],\n \"lightseagreen\": [32, 178, 170],\n \"lightskyblue\": [135, 206, 250],\n \"lightslategray\": [119, 136, 153],\n \"lightslategrey\": [119, 136, 153],\n \"lightsteelblue\": [176, 196, 222],\n \"lightyellow\": [255, 255, 224],\n \"lime\": [0, 255, 0],\n \"limegreen\": [50, 205, 50],\n \"linen\": [250, 240, 230],\n \"magenta\": [255, 0, 255],\n \"maroon\": [128, 0, 0],\n \"mediumaquamarine\": [102, 205, 170],\n \"mediumblue\": [0, 0, 205],\n \"mediumorchid\": [186, 85, 211],\n \"mediumpurple\": [147, 112, 219],\n \"mediumseagreen\": [60, 179, 113],\n \"mediumslateblue\": [123, 104, 238],\n \"mediumspringgreen\": [0, 250, 154],\n \"mediumturquoise\": [72, 209, 204],\n \"mediumvioletred\": [199, 21, 133],\n \"midnightblue\": [25, 25, 112],\n \"mintcream\": [245, 255, 250],\n \"mistyrose\": [255, 228, 225],\n \"moccasin\": [255, 228, 181],\n \"navajowhite\": [255, 222, 173],\n \"navy\": [0, 0, 128],\n \"oldlace\": [253, 245, 230],\n \"olive\": [128, 128, 0],\n \"olivedrab\": [107, 142, 35],\n \"orange\": [255, 165, 0],\n \"orangered\": [255, 69, 0],\n \"orchid\": [218, 112, 214],\n \"palegoldenrod\": [238, 232, 170],\n \"palegreen\": [152, 251, 152],\n \"paleturquoise\": [175, 238, 238],\n \"palevioletred\": [219, 112, 147],\n \"papayawhip\": [255, 239, 213],\n \"peachpuff\": [255, 218, 185],\n \"peru\": [205, 133, 63],\n \"pink\": [255, 192, 203],\n \"plum\": [221, 160, 221],\n \"powderblue\": [176, 224, 230],\n \"purple\": [128, 0, 128],\n \"rebeccapurple\": [102, 51, 153],\n \"red\": [255, 0, 0],\n \"rosybrown\": [188, 143, 143],\n \"royalblue\": [65, 105, 225],\n \"saddlebrown\": [139, 69, 19],\n \"salmon\": [250, 128, 114],\n \"sandybrown\": [244, 164, 96],\n \"seagreen\": [46, 139, 87],\n \"seashell\": [255, 245, 238],\n \"sienna\": [160, 82, 45],\n \"silver\": [192, 192, 192],\n \"skyblue\": [135, 206, 235],\n \"slateblue\": [106, 90, 205],\n \"slategray\": [112, 128, 144],\n \"slategrey\": [112, 128, 144],\n \"snow\": [255, 250, 250],\n \"springgreen\": [0, 255, 127],\n \"steelblue\": [70, 130, 180],\n \"tan\": [210, 180, 140],\n \"teal\": [0, 128, 128],\n \"thistle\": [216, 191, 216],\n \"tomato\": [255, 99, 71],\n \"turquoise\": [64, 224, 208],\n \"violet\": [238, 130, 238],\n \"wheat\": [245, 222, 179],\n \"white\": [255, 255, 255],\n \"whitesmoke\": [245, 245, 245],\n \"yellow\": [255, 255, 0],\n \"yellowgreen\": [154, 205, 50]\n };\n var conversions = createCommonjsModule(function (module) {\n /* MIT license */\n // NOTE: conversions should only return primitive values (i.e. arrays, or\n // values that give correct `typeof` results).\n // do not use box values types (i.e. Number(), String(), etc.)\n var reverseKeywords = {};\n\n for (var key in colorName) {\n if (colorName.hasOwnProperty(key)) {\n reverseKeywords[colorName[key]] = key;\n }\n }\n\n var convert = module.exports = {\n rgb: {\n channels: 3,\n labels: 'rgb'\n },\n hsl: {\n channels: 3,\n labels: 'hsl'\n },\n hsv: {\n channels: 3,\n labels: 'hsv'\n },\n hwb: {\n channels: 3,\n labels: 'hwb'\n },\n cmyk: {\n channels: 4,\n labels: 'cmyk'\n },\n xyz: {\n channels: 3,\n labels: 'xyz'\n },\n lab: {\n channels: 3,\n labels: 'lab'\n },\n lch: {\n channels: 3,\n labels: 'lch'\n },\n hex: {\n channels: 1,\n labels: ['hex']\n },\n keyword: {\n channels: 1,\n labels: ['keyword']\n },\n ansi16: {\n channels: 1,\n labels: ['ansi16']\n },\n ansi256: {\n channels: 1,\n labels: ['ansi256']\n },\n hcg: {\n channels: 3,\n labels: ['h', 'c', 'g']\n },\n apple: {\n channels: 3,\n labels: ['r16', 'g16', 'b16']\n },\n gray: {\n channels: 1,\n labels: ['gray']\n }\n }; // hide .channels and .labels properties\n\n for (var model in convert) {\n if (convert.hasOwnProperty(model)) {\n if (!('channels' in convert[model])) {\n throw new Error('missing channels property: ' + model);\n }\n\n if (!('labels' in convert[model])) {\n throw new Error('missing channel labels property: ' + model);\n }\n\n if (convert[model].labels.length !== convert[model].channels) {\n throw new Error('channel and label counts mismatch: ' + model);\n }\n\n var channels = convert[model].channels;\n var labels = convert[model].labels;\n delete convert[model].channels;\n delete convert[model].labels;\n Object.defineProperty(convert[model], 'channels', {\n value: channels\n });\n Object.defineProperty(convert[model], 'labels', {\n value: labels\n });\n }\n }\n\n convert.rgb.hsl = function (rgb) {\n var r = rgb[0] / 255;\n var g = rgb[1] / 255;\n var b = rgb[2] / 255;\n var min = Math.min(r, g, b);\n var max = Math.max(r, g, b);\n var delta = max - min;\n var h;\n var s;\n var l;\n\n if (max === min) {\n h = 0;\n } else if (r === max) {\n h = (g - b) / delta;\n } else if (g === max) {\n h = 2 + (b - r) / delta;\n } else if (b === max) {\n h = 4 + (r - g) / delta;\n }\n\n h = Math.min(h * 60, 360);\n\n if (h < 0) {\n h += 360;\n }\n\n l = (min + max) / 2;\n\n if (max === min) {\n s = 0;\n } else if (l <= 0.5) {\n s = delta / (max + min);\n } else {\n s = delta / (2 - max - min);\n }\n\n return [h, s * 100, l * 100];\n };\n\n convert.rgb.hsv = function (rgb) {\n var rdif;\n var gdif;\n var bdif;\n var h;\n var s;\n var r = rgb[0] / 255;\n var g = rgb[1] / 255;\n var b = rgb[2] / 255;\n var v = Math.max(r, g, b);\n var diff = v - Math.min(r, g, b);\n\n var diffc = function diffc(c) {\n return (v - c) / 6 / diff + 1 / 2;\n };\n\n if (diff === 0) {\n h = s = 0;\n } else {\n s = diff / v;\n rdif = diffc(r);\n gdif = diffc(g);\n bdif = diffc(b);\n\n if (r === v) {\n h = bdif - gdif;\n } else if (g === v) {\n h = 1 / 3 + rdif - bdif;\n } else if (b === v) {\n h = 2 / 3 + gdif - rdif;\n }\n\n if (h < 0) {\n h += 1;\n } else if (h > 1) {\n h -= 1;\n }\n }\n\n return [h * 360, s * 100, v * 100];\n };\n\n convert.rgb.hwb = function (rgb) {\n var r = rgb[0];\n var g = rgb[1];\n var b = rgb[2];\n var h = convert.rgb.hsl(rgb)[0];\n var w = 1 / 255 * Math.min(r, Math.min(g, b));\n b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));\n return [h, w * 100, b * 100];\n };\n\n convert.rgb.cmyk = function (rgb) {\n var r = rgb[0] / 255;\n var g = rgb[1] / 255;\n var b = rgb[2] / 255;\n var c;\n var m;\n var y;\n var k;\n k = Math.min(1 - r, 1 - g, 1 - b);\n c = (1 - r - k) / (1 - k) || 0;\n m = (1 - g - k) / (1 - k) || 0;\n y = (1 - b - k) / (1 - k) || 0;\n return [c * 100, m * 100, y * 100, k * 100];\n };\n /**\n * See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance\n * */\n\n\n function comparativeDistance(x, y) {\n return Math.pow(x[0] - y[0], 2) + Math.pow(x[1] - y[1], 2) + Math.pow(x[2] - y[2], 2);\n }\n\n convert.rgb.keyword = function (rgb) {\n var reversed = reverseKeywords[rgb];\n\n if (reversed) {\n return reversed;\n }\n\n var currentClosestDistance = Infinity;\n var currentClosestKeyword;\n\n for (var keyword in colorName) {\n if (colorName.hasOwnProperty(keyword)) {\n var value = colorName[keyword]; // Compute comparative distance\n\n var distance = comparativeDistance(rgb, value); // Check if its less, if so set as closest\n\n if (distance < currentClosestDistance) {\n currentClosestDistance = distance;\n currentClosestKeyword = keyword;\n }\n }\n }\n\n return currentClosestKeyword;\n };\n\n convert.keyword.rgb = function (keyword) {\n return colorName[keyword];\n };\n\n convert.rgb.xyz = function (rgb) {\n var r = rgb[0] / 255;\n var g = rgb[1] / 255;\n var b = rgb[2] / 255; // assume sRGB\n\n r = r > 0.04045 ? Math.pow((r + 0.055) / 1.055, 2.4) : r / 12.92;\n g = g > 0.04045 ? Math.pow((g + 0.055) / 1.055, 2.4) : g / 12.92;\n b = b > 0.04045 ? Math.pow((b + 0.055) / 1.055, 2.4) : b / 12.92;\n var x = r * 0.4124 + g * 0.3576 + b * 0.1805;\n var y = r * 0.2126 + g * 0.7152 + b * 0.0722;\n var z = r * 0.0193 + g * 0.1192 + b * 0.9505;\n return [x * 100, y * 100, z * 100];\n };\n\n convert.rgb.lab = function (rgb) {\n var xyz = convert.rgb.xyz(rgb);\n var x = xyz[0];\n var y = xyz[1];\n var z = xyz[2];\n var l;\n var a;\n var b;\n x /= 95.047;\n y /= 100;\n z /= 108.883;\n x = x > 0.008856 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116;\n y = y > 0.008856 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116;\n z = z > 0.008856 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116;\n l = 116 * y - 16;\n a = 500 * (x - y);\n b = 200 * (y - z);\n return [l, a, b];\n };\n\n convert.hsl.rgb = function (hsl) {\n var h = hsl[0] / 360;\n var s = hsl[1] / 100;\n var l = hsl[2] / 100;\n var t1;\n var t2;\n var t3;\n var rgb;\n var val;\n\n if (s === 0) {\n val = l * 255;\n return [val, val, val];\n }\n\n if (l < 0.5) {\n t2 = l * (1 + s);\n } else {\n t2 = l + s - l * s;\n }\n\n t1 = 2 * l - t2;\n rgb = [0, 0, 0];\n\n for (var i = 0; i < 3; i++) {\n t3 = h + 1 / 3 * -(i - 1);\n\n if (t3 < 0) {\n t3++;\n }\n\n if (t3 > 1) {\n t3--;\n }\n\n if (6 * t3 < 1) {\n val = t1 + (t2 - t1) * 6 * t3;\n } else if (2 * t3 < 1) {\n val = t2;\n } else if (3 * t3 < 2) {\n val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;\n } else {\n val = t1;\n }\n\n rgb[i] = val * 255;\n }\n\n return rgb;\n };\n\n convert.hsl.hsv = function (hsl) {\n var h = hsl[0];\n var s = hsl[1] / 100;\n var l = hsl[2] / 100;\n var smin = s;\n var lmin = Math.max(l, 0.01);\n var sv;\n var v;\n l *= 2;\n s *= l <= 1 ? l : 2 - l;\n smin *= lmin <= 1 ? lmin : 2 - lmin;\n v = (l + s) / 2;\n sv = l === 0 ? 2 * smin / (lmin + smin) : 2 * s / (l + s);\n return [h, sv * 100, v * 100];\n };\n\n convert.hsv.rgb = function (hsv) {\n var h = hsv[0] / 60;\n var s = hsv[1] / 100;\n var v = hsv[2] / 100;\n var hi = Math.floor(h) % 6;\n var f = h - Math.floor(h);\n var p = 255 * v * (1 - s);\n var q = 255 * v * (1 - s * f);\n var t = 255 * v * (1 - s * (1 - f));\n v *= 255;\n\n switch (hi) {\n case 0:\n return [v, t, p];\n\n case 1:\n return [q, v, p];\n\n case 2:\n return [p, v, t];\n\n case 3:\n return [p, q, v];\n\n case 4:\n return [t, p, v];\n\n case 5:\n return [v, p, q];\n }\n };\n\n convert.hsv.hsl = function (hsv) {\n var h = hsv[0];\n var s = hsv[1] / 100;\n var v = hsv[2] / 100;\n var vmin = Math.max(v, 0.01);\n var lmin;\n var sl;\n var l;\n l = (2 - s) * v;\n lmin = (2 - s) * vmin;\n sl = s * vmin;\n sl /= lmin <= 1 ? lmin : 2 - lmin;\n sl = sl || 0;\n l /= 2;\n return [h, sl * 100, l * 100];\n }; // http://dev.w3.org/csswg/css-color/#hwb-to-rgb\n\n\n convert.hwb.rgb = function (hwb) {\n var h = hwb[0] / 360;\n var wh = hwb[1] / 100;\n var bl = hwb[2] / 100;\n var ratio = wh + bl;\n var i;\n var v;\n var f;\n var n; // wh + bl cant be > 1\n\n if (ratio > 1) {\n wh /= ratio;\n bl /= ratio;\n }\n\n i = Math.floor(6 * h);\n v = 1 - bl;\n f = 6 * h - i;\n\n if ((i & 0x01) !== 0) {\n f = 1 - f;\n }\n\n n = wh + f * (v - wh); // linear interpolation\n\n var r;\n var g;\n var b;\n\n switch (i) {\n default:\n case 6:\n case 0:\n r = v;\n g = n;\n b = wh;\n break;\n\n case 1:\n r = n;\n g = v;\n b = wh;\n break;\n\n case 2:\n r = wh;\n g = v;\n b = n;\n break;\n\n case 3:\n r = wh;\n g = n;\n b = v;\n break;\n\n case 4:\n r = n;\n g = wh;\n b = v;\n break;\n\n case 5:\n r = v;\n g = wh;\n b = n;\n break;\n }\n\n return [r * 255, g * 255, b * 255];\n };\n\n convert.cmyk.rgb = function (cmyk) {\n var c = cmyk[0] / 100;\n var m = cmyk[1] / 100;\n var y = cmyk[2] / 100;\n var k = cmyk[3] / 100;\n var r;\n var g;\n var b;\n r = 1 - Math.min(1, c * (1 - k) + k);\n g = 1 - Math.min(1, m * (1 - k) + k);\n b = 1 - Math.min(1, y * (1 - k) + k);\n return [r * 255, g * 255, b * 255];\n };\n\n convert.xyz.rgb = function (xyz) {\n var x = xyz[0] / 100;\n var y = xyz[1] / 100;\n var z = xyz[2] / 100;\n var r;\n var g;\n var b;\n r = x * 3.2406 + y * -1.5372 + z * -0.4986;\n g = x * -0.9689 + y * 1.8758 + z * 0.0415;\n b = x * 0.0557 + y * -0.2040 + z * 1.0570; // assume sRGB\n\n r = r > 0.0031308 ? 1.055 * Math.pow(r, 1.0 / 2.4) - 0.055 : r * 12.92;\n g = g > 0.0031308 ? 1.055 * Math.pow(g, 1.0 / 2.4) - 0.055 : g * 12.92;\n b = b > 0.0031308 ? 1.055 * Math.pow(b, 1.0 / 2.4) - 0.055 : b * 12.92;\n r = Math.min(Math.max(0, r), 1);\n g = Math.min(Math.max(0, g), 1);\n b = Math.min(Math.max(0, b), 1);\n return [r * 255, g * 255, b * 255];\n };\n\n convert.xyz.lab = function (xyz) {\n var x = xyz[0];\n var y = xyz[1];\n var z = xyz[2];\n var l;\n var a;\n var b;\n x /= 95.047;\n y /= 100;\n z /= 108.883;\n x = x > 0.008856 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116;\n y = y > 0.008856 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116;\n z = z > 0.008856 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116;\n l = 116 * y - 16;\n a = 500 * (x - y);\n b = 200 * (y - z);\n return [l, a, b];\n };\n\n convert.lab.xyz = function (lab) {\n var l = lab[0];\n var a = lab[1];\n var b = lab[2];\n var x;\n var y;\n var z;\n y = (l + 16) / 116;\n x = a / 500 + y;\n z = y - b / 200;\n var y2 = Math.pow(y, 3);\n var x2 = Math.pow(x, 3);\n var z2 = Math.pow(z, 3);\n y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;\n x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;\n z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;\n x *= 95.047;\n y *= 100;\n z *= 108.883;\n return [x, y, z];\n };\n\n convert.lab.lch = function (lab) {\n var l = lab[0];\n var a = lab[1];\n var b = lab[2];\n var hr;\n var h;\n var c;\n hr = Math.atan2(b, a);\n h = hr * 360 / 2 / Math.PI;\n\n if (h < 0) {\n h += 360;\n }\n\n c = Math.sqrt(a * a + b * b);\n return [l, c, h];\n };\n\n convert.lch.lab = function (lch) {\n var l = lch[0];\n var c = lch[1];\n var h = lch[2];\n var a;\n var b;\n var hr;\n hr = h / 360 * 2 * Math.PI;\n a = c * Math.cos(hr);\n b = c * Math.sin(hr);\n return [l, a, b];\n };\n\n convert.rgb.ansi16 = function (args) {\n var r = args[0];\n var g = args[1];\n var b = args[2];\n var value = 1 in arguments ? arguments[1] : convert.rgb.hsv(args)[2]; // hsv -> ansi16 optimization\n\n value = Math.round(value / 50);\n\n if (value === 0) {\n return 30;\n }\n\n var ansi = 30 + (Math.round(b / 255) << 2 | Math.round(g / 255) << 1 | Math.round(r / 255));\n\n if (value === 2) {\n ansi += 60;\n }\n\n return ansi;\n };\n\n convert.hsv.ansi16 = function (args) {\n // optimization here; we already know the value and don't need to get\n // it converted for us.\n return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);\n };\n\n convert.rgb.ansi256 = function (args) {\n var r = args[0];\n var g = args[1];\n var b = args[2]; // we use the extended greyscale palette here, with the exception of\n // black and white. normal palette only has 4 greyscale shades.\n\n if (r === g && g === b) {\n if (r < 8) {\n return 16;\n }\n\n if (r > 248) {\n return 231;\n }\n\n return Math.round((r - 8) / 247 * 24) + 232;\n }\n\n var ansi = 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5);\n return ansi;\n };\n\n convert.ansi16.rgb = function (args) {\n var color = args % 10; // handle greyscale\n\n if (color === 0 || color === 7) {\n if (args > 50) {\n color += 3.5;\n }\n\n color = color / 10.5 * 255;\n return [color, color, color];\n }\n\n var mult = (~~(args > 50) + 1) * 0.5;\n var r = (color & 1) * mult * 255;\n var g = (color >> 1 & 1) * mult * 255;\n var b = (color >> 2 & 1) * mult * 255;\n return [r, g, b];\n };\n\n convert.ansi256.rgb = function (args) {\n // handle greyscale\n if (args >= 232) {\n var c = (args - 232) * 10 + 8;\n return [c, c, c];\n }\n\n args -= 16;\n var rem;\n var r = Math.floor(args / 36) / 5 * 255;\n var g = Math.floor((rem = args % 36) / 6) / 5 * 255;\n var b = rem % 6 / 5 * 255;\n return [r, g, b];\n };\n\n convert.rgb.hex = function (args) {\n var integer = ((Math.round(args[0]) & 0xFF) << 16) + ((Math.round(args[1]) & 0xFF) << 8) + (Math.round(args[2]) & 0xFF);\n var string = integer.toString(16).toUpperCase();\n return '000000'.substring(string.length) + string;\n };\n\n convert.hex.rgb = function (args) {\n var match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);\n\n if (!match) {\n return [0, 0, 0];\n }\n\n var colorString = match[0];\n\n if (match[0].length === 3) {\n colorString = colorString.split('').map(function (char) {\n return char + char;\n }).join('');\n }\n\n var integer = parseInt(colorString, 16);\n var r = integer >> 16 & 0xFF;\n var g = integer >> 8 & 0xFF;\n var b = integer & 0xFF;\n return [r, g, b];\n };\n\n convert.rgb.hcg = function (rgb) {\n var r = rgb[0] / 255;\n var g = rgb[1] / 255;\n var b = rgb[2] / 255;\n var max = Math.max(Math.max(r, g), b);\n var min = Math.min(Math.min(r, g), b);\n var chroma = max - min;\n var grayscale;\n var hue;\n\n if (chroma < 1) {\n grayscale = min / (1 - chroma);\n } else {\n grayscale = 0;\n }\n\n if (chroma <= 0) {\n hue = 0;\n } else if (max === r) {\n hue = (g - b) / chroma % 6;\n } else if (max === g) {\n hue = 2 + (b - r) / chroma;\n } else {\n hue = 4 + (r - g) / chroma + 4;\n }\n\n hue /= 6;\n hue %= 1;\n return [hue * 360, chroma * 100, grayscale * 100];\n };\n\n convert.hsl.hcg = function (hsl) {\n var s = hsl[1] / 100;\n var l = hsl[2] / 100;\n var c = 1;\n var f = 0;\n\n if (l < 0.5) {\n c = 2.0 * s * l;\n } else {\n c = 2.0 * s * (1.0 - l);\n }\n\n if (c < 1.0) {\n f = (l - 0.5 * c) / (1.0 - c);\n }\n\n return [hsl[0], c * 100, f * 100];\n };\n\n convert.hsv.hcg = function (hsv) {\n var s = hsv[1] / 100;\n var v = hsv[2] / 100;\n var c = s * v;\n var f = 0;\n\n if (c < 1.0) {\n f = (v - c) / (1 - c);\n }\n\n return [hsv[0], c * 100, f * 100];\n };\n\n convert.hcg.rgb = function (hcg) {\n var h = hcg[0] / 360;\n var c = hcg[1] / 100;\n var g = hcg[2] / 100;\n\n if (c === 0.0) {\n return [g * 255, g * 255, g * 255];\n }\n\n var pure = [0, 0, 0];\n var hi = h % 1 * 6;\n var v = hi % 1;\n var w = 1 - v;\n var mg = 0;\n\n switch (Math.floor(hi)) {\n case 0:\n pure[0] = 1;\n pure[1] = v;\n pure[2] = 0;\n break;\n\n case 1:\n pure[0] = w;\n pure[1] = 1;\n pure[2] = 0;\n break;\n\n case 2:\n pure[0] = 0;\n pure[1] = 1;\n pure[2] = v;\n break;\n\n case 3:\n pure[0] = 0;\n pure[1] = w;\n pure[2] = 1;\n break;\n\n case 4:\n pure[0] = v;\n pure[1] = 0;\n pure[2] = 1;\n break;\n\n default:\n pure[0] = 1;\n pure[1] = 0;\n pure[2] = w;\n }\n\n mg = (1.0 - c) * g;\n return [(c * pure[0] + mg) * 255, (c * pure[1] + mg) * 255, (c * pure[2] + mg) * 255];\n };\n\n convert.hcg.hsv = function (hcg) {\n var c = hcg[1] / 100;\n var g = hcg[2] / 100;\n var v = c + g * (1.0 - c);\n var f = 0;\n\n if (v > 0.0) {\n f = c / v;\n }\n\n return [hcg[0], f * 100, v * 100];\n };\n\n convert.hcg.hsl = function (hcg) {\n var c = hcg[1] / 100;\n var g = hcg[2] / 100;\n var l = g * (1.0 - c) + 0.5 * c;\n var s = 0;\n\n if (l > 0.0 && l < 0.5) {\n s = c / (2 * l);\n } else if (l >= 0.5 && l < 1.0) {\n s = c / (2 * (1 - l));\n }\n\n return [hcg[0], s * 100, l * 100];\n };\n\n convert.hcg.hwb = function (hcg) {\n var c = hcg[1] / 100;\n var g = hcg[2] / 100;\n var v = c + g * (1.0 - c);\n return [hcg[0], (v - c) * 100, (1 - v) * 100];\n };\n\n convert.hwb.hcg = function (hwb) {\n var w = hwb[1] / 100;\n var b = hwb[2] / 100;\n var v = 1 - b;\n var c = v - w;\n var g = 0;\n\n if (c < 1) {\n g = (v - c) / (1 - c);\n }\n\n return [hwb[0], c * 100, g * 100];\n };\n\n convert.apple.rgb = function (apple) {\n return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255];\n };\n\n convert.rgb.apple = function (rgb) {\n return [rgb[0] / 255 * 65535, rgb[1] / 255 * 65535, rgb[2] / 255 * 65535];\n };\n\n convert.gray.rgb = function (args) {\n return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];\n };\n\n convert.gray.hsl = convert.gray.hsv = function (args) {\n return [0, 0, args[0]];\n };\n\n convert.gray.hwb = function (gray) {\n return [0, 100, gray[0]];\n };\n\n convert.gray.cmyk = function (gray) {\n return [0, 0, 0, gray[0]];\n };\n\n convert.gray.lab = function (gray) {\n return [gray[0], 0, 0];\n };\n\n convert.gray.hex = function (gray) {\n var val = Math.round(gray[0] / 100 * 255) & 0xFF;\n var integer = (val << 16) + (val << 8) + val;\n var string = integer.toString(16).toUpperCase();\n return '000000'.substring(string.length) + string;\n };\n\n convert.rgb.gray = function (rgb) {\n var val = (rgb[0] + rgb[1] + rgb[2]) / 3;\n return [val / 255 * 100];\n };\n });\n var conversions_1 = conversions.rgb;\n var conversions_2 = conversions.hsl;\n var conversions_3 = conversions.hsv;\n var conversions_4 = conversions.hwb;\n var conversions_5 = conversions.cmyk;\n var conversions_6 = conversions.xyz;\n var conversions_7 = conversions.lab;\n var conversions_8 = conversions.lch;\n var conversions_9 = conversions.hex;\n var conversions_10 = conversions.keyword;\n var conversions_11 = conversions.ansi16;\n var conversions_12 = conversions.ansi256;\n var conversions_13 = conversions.hcg;\n var conversions_14 = conversions.apple;\n var conversions_15 = conversions.gray;\n /*\n \tthis function routes a model to all other models.\n \n \tall functions that are routed have a property `.conversion` attached\n \tto the returned synthetic function. This property is an array\n \tof strings, each with the steps in between the 'from' and 'to'\n \tcolor models (inclusive).\n \n \tconversions that are not possible simply are not included.\n */\n\n function buildGraph() {\n var graph = {}; // https://jsperf.com/object-keys-vs-for-in-with-closure/3\n\n var models = Object.keys(conversions);\n\n for (var len = models.length, i = 0; i < len; i++) {\n graph[models[i]] = {\n // http://jsperf.com/1-vs-infinity\n // micro-opt, but this is simple.\n distance: -1,\n parent: null\n };\n }\n\n return graph;\n } // https://en.wikipedia.org/wiki/Breadth-first_search\n\n\n function deriveBFS(fromModel) {\n var graph = buildGraph();\n var queue = [fromModel]; // unshift -> queue -> pop\n\n graph[fromModel].distance = 0;\n\n while (queue.length) {\n var current = queue.pop();\n var adjacents = Object.keys(conversions[current]);\n\n for (var len = adjacents.length, i = 0; i < len; i++) {\n var adjacent = adjacents[i];\n var node = graph[adjacent];\n\n if (node.distance === -1) {\n node.distance = graph[current].distance + 1;\n node.parent = current;\n queue.unshift(adjacent);\n }\n }\n }\n\n return graph;\n }\n\n function link(from, to) {\n return function (args) {\n return to(from(args));\n };\n }\n\n function wrapConversion(toModel, graph) {\n var path = [graph[toModel].parent, toModel];\n var fn = conversions[graph[toModel].parent][toModel];\n var cur = graph[toModel].parent;\n\n while (graph[cur].parent) {\n path.unshift(graph[cur].parent);\n fn = link(conversions[graph[cur].parent][cur], fn);\n cur = graph[cur].parent;\n }\n\n fn.conversion = path;\n return fn;\n }\n\n var route = function route(fromModel) {\n var graph = deriveBFS(fromModel);\n var conversion = {};\n var models = Object.keys(graph);\n\n for (var len = models.length, i = 0; i < len; i++) {\n var toModel = models[i];\n var node = graph[toModel];\n\n if (node.parent === null) {\n // no possible conversion, or this node is the source model.\n continue;\n }\n\n conversion[toModel] = wrapConversion(toModel, graph);\n }\n\n return conversion;\n };\n\n var convert = {};\n var models = Object.keys(conversions);\n\n function wrapRaw(fn) {\n var wrappedFn = function wrappedFn(args) {\n if (args === undefined || args === null) {\n return args;\n }\n\n if (arguments.length > 1) {\n args = Array.prototype.slice.call(arguments);\n }\n\n return fn(args);\n }; // preserve .conversion property if there is one\n\n\n if ('conversion' in fn) {\n wrappedFn.conversion = fn.conversion;\n }\n\n return wrappedFn;\n }\n\n function wrapRounded(fn) {\n var wrappedFn = function wrappedFn(args) {\n if (args === undefined || args === null) {\n return args;\n }\n\n if (arguments.length > 1) {\n args = Array.prototype.slice.call(arguments);\n }\n\n var result = fn(args); // we're assuming the result is an array here.\n // see notice in conversions.js; don't use box types\n // in conversion functions.\n\n if (_typeof(result) === 'object') {\n for (var len = result.length, i = 0; i < len; i++) {\n result[i] = Math.round(result[i]);\n }\n }\n\n return result;\n }; // preserve .conversion property if there is one\n\n\n if ('conversion' in fn) {\n wrappedFn.conversion = fn.conversion;\n }\n\n return wrappedFn;\n }\n\n models.forEach(function (fromModel) {\n convert[fromModel] = {};\n Object.defineProperty(convert[fromModel], 'channels', {\n value: conversions[fromModel].channels\n });\n Object.defineProperty(convert[fromModel], 'labels', {\n value: conversions[fromModel].labels\n });\n var routes = route(fromModel);\n var routeModels = Object.keys(routes);\n routeModels.forEach(function (toModel) {\n var fn = routes[toModel];\n convert[fromModel][toModel] = wrapRounded(fn);\n convert[fromModel][toModel].raw = wrapRaw(fn);\n });\n });\n var colorConvert = convert;\n var colorName$1 = {\n \"aliceblue\": [240, 248, 255],\n \"antiquewhite\": [250, 235, 215],\n \"aqua\": [0, 255, 255],\n \"aquamarine\": [127, 255, 212],\n \"azure\": [240, 255, 255],\n \"beige\": [245, 245, 220],\n \"bisque\": [255, 228, 196],\n \"black\": [0, 0, 0],\n \"blanchedalmond\": [255, 235, 205],\n \"blue\": [0, 0, 255],\n \"blueviolet\": [138, 43, 226],\n \"brown\": [165, 42, 42],\n \"burlywood\": [222, 184, 135],\n \"cadetblue\": [95, 158, 160],\n \"chartreuse\": [127, 255, 0],\n \"chocolate\": [210, 105, 30],\n \"coral\": [255, 127, 80],\n \"cornflowerblue\": [100, 149, 237],\n \"cornsilk\": [255, 248, 220],\n \"crimson\": [220, 20, 60],\n \"cyan\": [0, 255, 255],\n \"darkblue\": [0, 0, 139],\n \"darkcyan\": [0, 139, 139],\n \"darkgoldenrod\": [184, 134, 11],\n \"darkgray\": [169, 169, 169],\n \"darkgreen\": [0, 100, 0],\n \"darkgrey\": [169, 169, 169],\n \"darkkhaki\": [189, 183, 107],\n \"darkmagenta\": [139, 0, 139],\n \"darkolivegreen\": [85, 107, 47],\n \"darkorange\": [255, 140, 0],\n \"darkorchid\": [153, 50, 204],\n \"darkred\": [139, 0, 0],\n \"darksalmon\": [233, 150, 122],\n \"darkseagreen\": [143, 188, 143],\n \"darkslateblue\": [72, 61, 139],\n \"darkslategray\": [47, 79, 79],\n \"darkslategrey\": [47, 79, 79],\n \"darkturquoise\": [0, 206, 209],\n \"darkviolet\": [148, 0, 211],\n \"deeppink\": [255, 20, 147],\n \"deepskyblue\": [0, 191, 255],\n \"dimgray\": [105, 105, 105],\n \"dimgrey\": [105, 105, 105],\n \"dodgerblue\": [30, 144, 255],\n \"firebrick\": [178, 34, 34],\n \"floralwhite\": [255, 250, 240],\n \"forestgreen\": [34, 139, 34],\n \"fuchsia\": [255, 0, 255],\n \"gainsboro\": [220, 220, 220],\n \"ghostwhite\": [248, 248, 255],\n \"gold\": [255, 215, 0],\n \"goldenrod\": [218, 165, 32],\n \"gray\": [128, 128, 128],\n \"green\": [0, 128, 0],\n \"greenyellow\": [173, 255, 47],\n \"grey\": [128, 128, 128],\n \"honeydew\": [240, 255, 240],\n \"hotpink\": [255, 105, 180],\n \"indianred\": [205, 92, 92],\n \"indigo\": [75, 0, 130],\n \"ivory\": [255, 255, 240],\n \"khaki\": [240, 230, 140],\n \"lavender\": [230, 230, 250],\n \"lavenderblush\": [255, 240, 245],\n \"lawngreen\": [124, 252, 0],\n \"lemonchiffon\": [255, 250, 205],\n \"lightblue\": [173, 216, 230],\n \"lightcoral\": [240, 128, 128],\n \"lightcyan\": [224, 255, 255],\n \"lightgoldenrodyellow\": [250, 250, 210],\n \"lightgray\": [211, 211, 211],\n \"lightgreen\": [144, 238, 144],\n \"lightgrey\": [211, 211, 211],\n \"lightpink\": [255, 182, 193],\n \"lightsalmon\": [255, 160, 122],\n \"lightseagreen\": [32, 178, 170],\n \"lightskyblue\": [135, 206, 250],\n \"lightslategray\": [119, 136, 153],\n \"lightslategrey\": [119, 136, 153],\n \"lightsteelblue\": [176, 196, 222],\n \"lightyellow\": [255, 255, 224],\n \"lime\": [0, 255, 0],\n \"limegreen\": [50, 205, 50],\n \"linen\": [250, 240, 230],\n \"magenta\": [255, 0, 255],\n \"maroon\": [128, 0, 0],\n \"mediumaquamarine\": [102, 205, 170],\n \"mediumblue\": [0, 0, 205],\n \"mediumorchid\": [186, 85, 211],\n \"mediumpurple\": [147, 112, 219],\n \"mediumseagreen\": [60, 179, 113],\n \"mediumslateblue\": [123, 104, 238],\n \"mediumspringgreen\": [0, 250, 154],\n \"mediumturquoise\": [72, 209, 204],\n \"mediumvioletred\": [199, 21, 133],\n \"midnightblue\": [25, 25, 112],\n \"mintcream\": [245, 255, 250],\n \"mistyrose\": [255, 228, 225],\n \"moccasin\": [255, 228, 181],\n \"navajowhite\": [255, 222, 173],\n \"navy\": [0, 0, 128],\n \"oldlace\": [253, 245, 230],\n \"olive\": [128, 128, 0],\n \"olivedrab\": [107, 142, 35],\n \"orange\": [255, 165, 0],\n \"orangered\": [255, 69, 0],\n \"orchid\": [218, 112, 214],\n \"palegoldenrod\": [238, 232, 170],\n \"palegreen\": [152, 251, 152],\n \"paleturquoise\": [175, 238, 238],\n \"palevioletred\": [219, 112, 147],\n \"papayawhip\": [255, 239, 213],\n \"peachpuff\": [255, 218, 185],\n \"peru\": [205, 133, 63],\n \"pink\": [255, 192, 203],\n \"plum\": [221, 160, 221],\n \"powderblue\": [176, 224, 230],\n \"purple\": [128, 0, 128],\n \"rebeccapurple\": [102, 51, 153],\n \"red\": [255, 0, 0],\n \"rosybrown\": [188, 143, 143],\n \"royalblue\": [65, 105, 225],\n \"saddlebrown\": [139, 69, 19],\n \"salmon\": [250, 128, 114],\n \"sandybrown\": [244, 164, 96],\n \"seagreen\": [46, 139, 87],\n \"seashell\": [255, 245, 238],\n \"sienna\": [160, 82, 45],\n \"silver\": [192, 192, 192],\n \"skyblue\": [135, 206, 235],\n \"slateblue\": [106, 90, 205],\n \"slategray\": [112, 128, 144],\n \"slategrey\": [112, 128, 144],\n \"snow\": [255, 250, 250],\n \"springgreen\": [0, 255, 127],\n \"steelblue\": [70, 130, 180],\n \"tan\": [210, 180, 140],\n \"teal\": [0, 128, 128],\n \"thistle\": [216, 191, 216],\n \"tomato\": [255, 99, 71],\n \"turquoise\": [64, 224, 208],\n \"violet\": [238, 130, 238],\n \"wheat\": [245, 222, 179],\n \"white\": [255, 255, 255],\n \"whitesmoke\": [245, 245, 245],\n \"yellow\": [255, 255, 0],\n \"yellowgreen\": [154, 205, 50]\n };\n /* MIT license */\n\n var colorString = {\n getRgba: getRgba,\n getHsla: getHsla,\n getRgb: getRgb,\n getHsl: getHsl,\n getHwb: getHwb,\n getAlpha: getAlpha,\n hexString: hexString,\n rgbString: rgbString,\n rgbaString: rgbaString,\n percentString: percentString,\n percentaString: percentaString,\n hslString: hslString,\n hslaString: hslaString,\n hwbString: hwbString,\n keyword: keyword\n };\n\n function getRgba(string) {\n if (!string) {\n return;\n }\n\n var abbr = /^#([a-fA-F0-9]{3,4})$/i,\n hex = /^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i,\n rgba = /^rgba?\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/i,\n per = /^rgba?\\(\\s*([+-]?[\\d\\.]+)\\%\\s*,\\s*([+-]?[\\d\\.]+)\\%\\s*,\\s*([+-]?[\\d\\.]+)\\%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/i,\n keyword = /(\\w+)/;\n var rgb = [0, 0, 0],\n a = 1,\n match = string.match(abbr),\n hexAlpha = \"\";\n\n if (match) {\n match = match[1];\n hexAlpha = match[3];\n\n for (var i = 0; i < rgb.length; i++) {\n rgb[i] = parseInt(match[i] + match[i], 16);\n }\n\n if (hexAlpha) {\n a = Math.round(parseInt(hexAlpha + hexAlpha, 16) / 255 * 100) / 100;\n }\n } else if (match = string.match(hex)) {\n hexAlpha = match[2];\n match = match[1];\n\n for (var i = 0; i < rgb.length; i++) {\n rgb[i] = parseInt(match.slice(i * 2, i * 2 + 2), 16);\n }\n\n if (hexAlpha) {\n a = Math.round(parseInt(hexAlpha, 16) / 255 * 100) / 100;\n }\n } else if (match = string.match(rgba)) {\n for (var i = 0; i < rgb.length; i++) {\n rgb[i] = parseInt(match[i + 1]);\n }\n\n a = parseFloat(match[4]);\n } else if (match = string.match(per)) {\n for (var i = 0; i < rgb.length; i++) {\n rgb[i] = Math.round(parseFloat(match[i + 1]) * 2.55);\n }\n\n a = parseFloat(match[4]);\n } else if (match = string.match(keyword)) {\n if (match[1] == \"transparent\") {\n return [0, 0, 0, 0];\n }\n\n rgb = colorName$1[match[1]];\n\n if (!rgb) {\n return;\n }\n }\n\n for (var i = 0; i < rgb.length; i++) {\n rgb[i] = scale(rgb[i], 0, 255);\n }\n\n if (!a && a != 0) {\n a = 1;\n } else {\n a = scale(a, 0, 1);\n }\n\n rgb[3] = a;\n return rgb;\n }\n\n function getHsla(string) {\n if (!string) {\n return;\n }\n\n var hsl = /^hsla?\\(\\s*([+-]?\\d+)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)/;\n var match = string.match(hsl);\n\n if (match) {\n var alpha = parseFloat(match[4]);\n var h = scale(parseInt(match[1]), 0, 360),\n s = scale(parseFloat(match[2]), 0, 100),\n l = scale(parseFloat(match[3]), 0, 100),\n a = scale(isNaN(alpha) ? 1 : alpha, 0, 1);\n return [h, s, l, a];\n }\n }\n\n function getHwb(string) {\n if (!string) {\n return;\n }\n\n var hwb = /^hwb\\(\\s*([+-]?\\d+)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)/;\n var match = string.match(hwb);\n\n if (match) {\n var alpha = parseFloat(match[4]);\n var h = scale(parseInt(match[1]), 0, 360),\n w = scale(parseFloat(match[2]), 0, 100),\n b = scale(parseFloat(match[3]), 0, 100),\n a = scale(isNaN(alpha) ? 1 : alpha, 0, 1);\n return [h, w, b, a];\n }\n }\n\n function getRgb(string) {\n var rgba = getRgba(string);\n return rgba && rgba.slice(0, 3);\n }\n\n function getHsl(string) {\n var hsla = getHsla(string);\n return hsla && hsla.slice(0, 3);\n }\n\n function getAlpha(string) {\n var vals = getRgba(string);\n\n if (vals) {\n return vals[3];\n } else if (vals = getHsla(string)) {\n return vals[3];\n } else if (vals = getHwb(string)) {\n return vals[3];\n }\n } // generators\n\n\n function hexString(rgba, a) {\n var a = a !== undefined && rgba.length === 3 ? a : rgba[3];\n return \"#\" + hexDouble(rgba[0]) + hexDouble(rgba[1]) + hexDouble(rgba[2]) + (a >= 0 && a < 1 ? hexDouble(Math.round(a * 255)) : \"\");\n }\n\n function rgbString(rgba, alpha) {\n if (alpha < 1 || rgba[3] && rgba[3] < 1) {\n return rgbaString(rgba, alpha);\n }\n\n return \"rgb(\" + rgba[0] + \", \" + rgba[1] + \", \" + rgba[2] + \")\";\n }\n\n function rgbaString(rgba, alpha) {\n if (alpha === undefined) {\n alpha = rgba[3] !== undefined ? rgba[3] : 1;\n }\n\n return \"rgba(\" + rgba[0] + \", \" + rgba[1] + \", \" + rgba[2] + \", \" + alpha + \")\";\n }\n\n function percentString(rgba, alpha) {\n if (alpha < 1 || rgba[3] && rgba[3] < 1) {\n return percentaString(rgba, alpha);\n }\n\n var r = Math.round(rgba[0] / 255 * 100),\n g = Math.round(rgba[1] / 255 * 100),\n b = Math.round(rgba[2] / 255 * 100);\n return \"rgb(\" + r + \"%, \" + g + \"%, \" + b + \"%)\";\n }\n\n function percentaString(rgba, alpha) {\n var r = Math.round(rgba[0] / 255 * 100),\n g = Math.round(rgba[1] / 255 * 100),\n b = Math.round(rgba[2] / 255 * 100);\n return \"rgba(\" + r + \"%, \" + g + \"%, \" + b + \"%, \" + (alpha || rgba[3] || 1) + \")\";\n }\n\n function hslString(hsla, alpha) {\n if (alpha < 1 || hsla[3] && hsla[3] < 1) {\n return hslaString(hsla, alpha);\n }\n\n return \"hsl(\" + hsla[0] + \", \" + hsla[1] + \"%, \" + hsla[2] + \"%)\";\n }\n\n function hslaString(hsla, alpha) {\n if (alpha === undefined) {\n alpha = hsla[3] !== undefined ? hsla[3] : 1;\n }\n\n return \"hsla(\" + hsla[0] + \", \" + hsla[1] + \"%, \" + hsla[2] + \"%, \" + alpha + \")\";\n } // hwb is a bit different than rgb(a) & hsl(a) since there is no alpha specific syntax\n // (hwb have alpha optional & 1 is default value)\n\n\n function hwbString(hwb, alpha) {\n if (alpha === undefined) {\n alpha = hwb[3] !== undefined ? hwb[3] : 1;\n }\n\n return \"hwb(\" + hwb[0] + \", \" + hwb[1] + \"%, \" + hwb[2] + \"%\" + (alpha !== undefined && alpha !== 1 ? \", \" + alpha : \"\") + \")\";\n }\n\n function keyword(rgb) {\n return reverseNames[rgb.slice(0, 3)];\n } // helpers\n\n\n function scale(num, min, max) {\n return Math.min(Math.max(min, num), max);\n }\n\n function hexDouble(num) {\n var str = num.toString(16).toUpperCase();\n return str.length < 2 ? \"0\" + str : str;\n } //create a list of reverse color names\n\n\n var reverseNames = {};\n\n for (var name in colorName$1) {\n reverseNames[colorName$1[name]] = name;\n }\n /* MIT license */\n\n\n var Color = function Color(obj) {\n if (obj instanceof Color) {\n return obj;\n }\n\n if (!(this instanceof Color)) {\n return new Color(obj);\n }\n\n this.valid = false;\n this.values = {\n rgb: [0, 0, 0],\n hsl: [0, 0, 0],\n hsv: [0, 0, 0],\n hwb: [0, 0, 0],\n cmyk: [0, 0, 0, 0],\n alpha: 1\n }; // parse Color() argument\n\n var vals;\n\n if (typeof obj === 'string') {\n vals = colorString.getRgba(obj);\n\n if (vals) {\n this.setValues('rgb', vals);\n } else if (vals = colorString.getHsla(obj)) {\n this.setValues('hsl', vals);\n } else if (vals = colorString.getHwb(obj)) {\n this.setValues('hwb', vals);\n }\n } else if (_typeof(obj) === 'object') {\n vals = obj;\n\n if (vals.r !== undefined || vals.red !== undefined) {\n this.setValues('rgb', vals);\n } else if (vals.l !== undefined || vals.lightness !== undefined) {\n this.setValues('hsl', vals);\n } else if (vals.v !== undefined || vals.value !== undefined) {\n this.setValues('hsv', vals);\n } else if (vals.w !== undefined || vals.whiteness !== undefined) {\n this.setValues('hwb', vals);\n } else if (vals.c !== undefined || vals.cyan !== undefined) {\n this.setValues('cmyk', vals);\n }\n }\n };\n\n Color.prototype = {\n isValid: function isValid() {\n return this.valid;\n },\n rgb: function rgb() {\n return this.setSpace('rgb', arguments);\n },\n hsl: function hsl() {\n return this.setSpace('hsl', arguments);\n },\n hsv: function hsv() {\n return this.setSpace('hsv', arguments);\n },\n hwb: function hwb() {\n return this.setSpace('hwb', arguments);\n },\n cmyk: function cmyk() {\n return this.setSpace('cmyk', arguments);\n },\n rgbArray: function rgbArray() {\n return this.values.rgb;\n },\n hslArray: function hslArray() {\n return this.values.hsl;\n },\n hsvArray: function hsvArray() {\n return this.values.hsv;\n },\n hwbArray: function hwbArray() {\n var values = this.values;\n\n if (values.alpha !== 1) {\n return values.hwb.concat([values.alpha]);\n }\n\n return values.hwb;\n },\n cmykArray: function cmykArray() {\n return this.values.cmyk;\n },\n rgbaArray: function rgbaArray() {\n var values = this.values;\n return values.rgb.concat([values.alpha]);\n },\n hslaArray: function hslaArray() {\n var values = this.values;\n return values.hsl.concat([values.alpha]);\n },\n alpha: function alpha(val) {\n if (val === undefined) {\n return this.values.alpha;\n }\n\n this.setValues('alpha', val);\n return this;\n },\n red: function red(val) {\n return this.setChannel('rgb', 0, val);\n },\n green: function green(val) {\n return this.setChannel('rgb', 1, val);\n },\n blue: function blue(val) {\n return this.setChannel('rgb', 2, val);\n },\n hue: function hue(val) {\n if (val) {\n val %= 360;\n val = val < 0 ? 360 + val : val;\n }\n\n return this.setChannel('hsl', 0, val);\n },\n saturation: function saturation(val) {\n return this.setChannel('hsl', 1, val);\n },\n lightness: function lightness(val) {\n return this.setChannel('hsl', 2, val);\n },\n saturationv: function saturationv(val) {\n return this.setChannel('hsv', 1, val);\n },\n whiteness: function whiteness(val) {\n return this.setChannel('hwb', 1, val);\n },\n blackness: function blackness(val) {\n return this.setChannel('hwb', 2, val);\n },\n value: function value(val) {\n return this.setChannel('hsv', 2, val);\n },\n cyan: function cyan(val) {\n return this.setChannel('cmyk', 0, val);\n },\n magenta: function magenta(val) {\n return this.setChannel('cmyk', 1, val);\n },\n yellow: function yellow(val) {\n return this.setChannel('cmyk', 2, val);\n },\n black: function black(val) {\n return this.setChannel('cmyk', 3, val);\n },\n hexString: function hexString() {\n return colorString.hexString(this.values.rgb);\n },\n rgbString: function rgbString() {\n return colorString.rgbString(this.values.rgb, this.values.alpha);\n },\n rgbaString: function rgbaString() {\n return colorString.rgbaString(this.values.rgb, this.values.alpha);\n },\n percentString: function percentString() {\n return colorString.percentString(this.values.rgb, this.values.alpha);\n },\n hslString: function hslString() {\n return colorString.hslString(this.values.hsl, this.values.alpha);\n },\n hslaString: function hslaString() {\n return colorString.hslaString(this.values.hsl, this.values.alpha);\n },\n hwbString: function hwbString() {\n return colorString.hwbString(this.values.hwb, this.values.alpha);\n },\n keyword: function keyword() {\n return colorString.keyword(this.values.rgb, this.values.alpha);\n },\n rgbNumber: function rgbNumber() {\n var rgb = this.values.rgb;\n return rgb[0] << 16 | rgb[1] << 8 | rgb[2];\n },\n luminosity: function luminosity() {\n // http://www.w3.org/TR/WCAG20/#relativeluminancedef\n var rgb = this.values.rgb;\n var lum = [];\n\n for (var i = 0; i < rgb.length; i++) {\n var chan = rgb[i] / 255;\n lum[i] = chan <= 0.03928 ? chan / 12.92 : Math.pow((chan + 0.055) / 1.055, 2.4);\n }\n\n return 0.2126 * lum[0] + 0.7152 * lum[1] + 0.0722 * lum[2];\n },\n contrast: function contrast(color2) {\n // http://www.w3.org/TR/WCAG20/#contrast-ratiodef\n var lum1 = this.luminosity();\n var lum2 = color2.luminosity();\n\n if (lum1 > lum2) {\n return (lum1 + 0.05) / (lum2 + 0.05);\n }\n\n return (lum2 + 0.05) / (lum1 + 0.05);\n },\n level: function level(color2) {\n var contrastRatio = this.contrast(color2);\n\n if (contrastRatio >= 7.1) {\n return 'AAA';\n }\n\n return contrastRatio >= 4.5 ? 'AA' : '';\n },\n dark: function dark() {\n // YIQ equation from http://24ways.org/2010/calculating-color-contrast\n var rgb = this.values.rgb;\n var yiq = (rgb[0] * 299 + rgb[1] * 587 + rgb[2] * 114) / 1000;\n return yiq < 128;\n },\n light: function light() {\n return !this.dark();\n },\n negate: function negate() {\n var rgb = [];\n\n for (var i = 0; i < 3; i++) {\n rgb[i] = 255 - this.values.rgb[i];\n }\n\n this.setValues('rgb', rgb);\n return this;\n },\n lighten: function lighten(ratio) {\n var hsl = this.values.hsl;\n hsl[2] += hsl[2] * ratio;\n this.setValues('hsl', hsl);\n return this;\n },\n darken: function darken(ratio) {\n var hsl = this.values.hsl;\n hsl[2] -= hsl[2] * ratio;\n this.setValues('hsl', hsl);\n return this;\n },\n saturate: function saturate(ratio) {\n var hsl = this.values.hsl;\n hsl[1] += hsl[1] * ratio;\n this.setValues('hsl', hsl);\n return this;\n },\n desaturate: function desaturate(ratio) {\n var hsl = this.values.hsl;\n hsl[1] -= hsl[1] * ratio;\n this.setValues('hsl', hsl);\n return this;\n },\n whiten: function whiten(ratio) {\n var hwb = this.values.hwb;\n hwb[1] += hwb[1] * ratio;\n this.setValues('hwb', hwb);\n return this;\n },\n blacken: function blacken(ratio) {\n var hwb = this.values.hwb;\n hwb[2] += hwb[2] * ratio;\n this.setValues('hwb', hwb);\n return this;\n },\n greyscale: function greyscale() {\n var rgb = this.values.rgb; // http://en.wikipedia.org/wiki/Grayscale#Converting_color_to_grayscale\n\n var val = rgb[0] * 0.3 + rgb[1] * 0.59 + rgb[2] * 0.11;\n this.setValues('rgb', [val, val, val]);\n return this;\n },\n clearer: function clearer(ratio) {\n var alpha = this.values.alpha;\n this.setValues('alpha', alpha - alpha * ratio);\n return this;\n },\n opaquer: function opaquer(ratio) {\n var alpha = this.values.alpha;\n this.setValues('alpha', alpha + alpha * ratio);\n return this;\n },\n rotate: function rotate(degrees) {\n var hsl = this.values.hsl;\n var hue = (hsl[0] + degrees) % 360;\n hsl[0] = hue < 0 ? 360 + hue : hue;\n this.setValues('hsl', hsl);\n return this;\n },\n\n /**\n * Ported from sass implementation in C\n * https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209\n */\n mix: function mix(mixinColor, weight) {\n var color1 = this;\n var color2 = mixinColor;\n var p = weight === undefined ? 0.5 : weight;\n var w = 2 * p - 1;\n var a = color1.alpha() - color2.alpha();\n var w1 = ((w * a === -1 ? w : (w + a) / (1 + w * a)) + 1) / 2.0;\n var w2 = 1 - w1;\n return this.rgb(w1 * color1.red() + w2 * color2.red(), w1 * color1.green() + w2 * color2.green(), w1 * color1.blue() + w2 * color2.blue()).alpha(color1.alpha() * p + color2.alpha() * (1 - p));\n },\n toJSON: function toJSON() {\n return this.rgb();\n },\n clone: function clone() {\n // NOTE(SB): using node-clone creates a dependency to Buffer when using browserify,\n // making the final build way to big to embed in Chart.js. So let's do it manually,\n // assuming that values to clone are 1 dimension arrays containing only numbers,\n // except 'alpha' which is a number.\n var result = new Color();\n var source = this.values;\n var target = result.values;\n var value, type;\n\n for (var prop in source) {\n if (source.hasOwnProperty(prop)) {\n value = source[prop];\n type = {}.toString.call(value);\n\n if (type === '[object Array]') {\n target[prop] = value.slice(0);\n } else if (type === '[object Number]') {\n target[prop] = value;\n } else {\n console.error('unexpected color value:', value);\n }\n }\n }\n\n return result;\n }\n };\n Color.prototype.spaces = {\n rgb: ['red', 'green', 'blue'],\n hsl: ['hue', 'saturation', 'lightness'],\n hsv: ['hue', 'saturation', 'value'],\n hwb: ['hue', 'whiteness', 'blackness'],\n cmyk: ['cyan', 'magenta', 'yellow', 'black']\n };\n Color.prototype.maxes = {\n rgb: [255, 255, 255],\n hsl: [360, 100, 100],\n hsv: [360, 100, 100],\n hwb: [360, 100, 100],\n cmyk: [100, 100, 100, 100]\n };\n\n Color.prototype.getValues = function (space) {\n var values = this.values;\n var vals = {};\n\n for (var i = 0; i < space.length; i++) {\n vals[space.charAt(i)] = values[space][i];\n }\n\n if (values.alpha !== 1) {\n vals.a = values.alpha;\n } // {r: 255, g: 255, b: 255, a: 0.4}\n\n\n return vals;\n };\n\n Color.prototype.setValues = function (space, vals) {\n var values = this.values;\n var spaces = this.spaces;\n var maxes = this.maxes;\n var alpha = 1;\n var i;\n this.valid = true;\n\n if (space === 'alpha') {\n alpha = vals;\n } else if (vals.length) {\n // [10, 10, 10]\n values[space] = vals.slice(0, space.length);\n alpha = vals[space.length];\n } else if (vals[space.charAt(0)] !== undefined) {\n // {r: 10, g: 10, b: 10}\n for (i = 0; i < space.length; i++) {\n values[space][i] = vals[space.charAt(i)];\n }\n\n alpha = vals.a;\n } else if (vals[spaces[space][0]] !== undefined) {\n // {red: 10, green: 10, blue: 10}\n var chans = spaces[space];\n\n for (i = 0; i < space.length; i++) {\n values[space][i] = vals[chans[i]];\n }\n\n alpha = vals.alpha;\n }\n\n values.alpha = Math.max(0, Math.min(1, alpha === undefined ? values.alpha : alpha));\n\n if (space === 'alpha') {\n return false;\n }\n\n var capped; // cap values of the space prior converting all values\n\n for (i = 0; i < space.length; i++) {\n capped = Math.max(0, Math.min(maxes[space][i], values[space][i]));\n values[space][i] = Math.round(capped);\n } // convert to all the other color spaces\n\n\n for (var sname in spaces) {\n if (sname !== space) {\n values[sname] = colorConvert[space][sname](values[space]);\n }\n }\n\n return true;\n };\n\n Color.prototype.setSpace = function (space, args) {\n var vals = args[0];\n\n if (vals === undefined) {\n // color.rgb()\n return this.getValues(space);\n } // color.rgb(10, 10, 10)\n\n\n if (typeof vals === 'number') {\n vals = Array.prototype.slice.call(args);\n }\n\n this.setValues(space, vals);\n return this;\n };\n\n Color.prototype.setChannel = function (space, index, val) {\n var svalues = this.values[space];\n\n if (val === undefined) {\n // color.red()\n return svalues[index];\n } else if (val === svalues[index]) {\n // color.red(color.red())\n return this;\n } // color.red(100)\n\n\n svalues[index] = val;\n this.setValues(space, svalues);\n return this;\n };\n\n if (typeof window !== 'undefined') {\n window.Color = Color;\n }\n\n var chartjsColor = Color;\n\n function isValidKey(key) {\n return ['__proto__', 'prototype', 'constructor'].indexOf(key) === -1;\n }\n /**\r\n * @namespace Chart.helpers\r\n */\n\n\n var helpers = {\n /**\r\n * An empty function that can be used, for example, for optional callback.\r\n */\n noop: function noop() {},\n\n /**\r\n * Returns a unique id, sequentially generated from a global variable.\r\n * @returns {number}\r\n * @function\r\n */\n uid: function () {\n var id = 0;\n return function () {\n return id++;\n };\n }(),\n\n /**\r\n * Returns true if `value` is neither null nor undefined, else returns false.\r\n * @param {*} value - The value to test.\r\n * @returns {boolean}\r\n * @since 2.7.0\r\n */\n isNullOrUndef: function isNullOrUndef(value) {\n return value === null || typeof value === 'undefined';\n },\n\n /**\r\n * Returns true if `value` is an array (including typed arrays), else returns false.\r\n * @param {*} value - The value to test.\r\n * @returns {boolean}\r\n * @function\r\n */\n isArray: function isArray(value) {\n if (Array.isArray && Array.isArray(value)) {\n return true;\n }\n\n var type = Object.prototype.toString.call(value);\n\n if (type.substr(0, 7) === '[object' && type.substr(-6) === 'Array]') {\n return true;\n }\n\n return false;\n },\n\n /**\r\n * Returns true if `value` is an object (excluding null), else returns false.\r\n * @param {*} value - The value to test.\r\n * @returns {boolean}\r\n * @since 2.7.0\r\n */\n isObject: function isObject(value) {\n return value !== null && Object.prototype.toString.call(value) === '[object Object]';\n },\n\n /**\r\n * Returns true if `value` is a finite number, else returns false\r\n * @param {*} value - The value to test.\r\n * @returns {boolean}\r\n */\n isFinite: function (_isFinite) {\n function isFinite(_x) {\n return _isFinite.apply(this, arguments);\n }\n\n isFinite.toString = function () {\n return _isFinite.toString();\n };\n\n return isFinite;\n }(function (value) {\n return (typeof value === 'number' || value instanceof Number) && isFinite(value);\n }),\n\n /**\r\n * Returns `value` if defined, else returns `defaultValue`.\r\n * @param {*} value - The value to return if defined.\r\n * @param {*} defaultValue - The value to return if `value` is undefined.\r\n * @returns {*}\r\n */\n valueOrDefault: function valueOrDefault(value, defaultValue) {\n return typeof value === 'undefined' ? defaultValue : value;\n },\n\n /**\r\n * Returns value at the given `index` in array if defined, else returns `defaultValue`.\r\n * @param {Array} value - The array to lookup for value at `index`.\r\n * @param {number} index - The index in `value` to lookup for value.\r\n * @param {*} defaultValue - The value to return if `value[index]` is undefined.\r\n * @returns {*}\r\n */\n valueAtIndexOrDefault: function valueAtIndexOrDefault(value, index, defaultValue) {\n return helpers.valueOrDefault(helpers.isArray(value) ? value[index] : value, defaultValue);\n },\n\n /**\r\n * Calls `fn` with the given `args` in the scope defined by `thisArg` and returns the\r\n * value returned by `fn`. If `fn` is not a function, this method returns undefined.\r\n * @param {function} fn - The function to call.\r\n * @param {Array|undefined|null} args - The arguments with which `fn` should be called.\r\n * @param {object} [thisArg] - The value of `this` provided for the call to `fn`.\r\n * @returns {*}\r\n */\n callback: function callback(fn, args, thisArg) {\n if (fn && typeof fn.call === 'function') {\n return fn.apply(thisArg, args);\n }\n },\n\n /**\r\n * Note(SB) for performance sake, this method should only be used when loopable type\r\n * is unknown or in none intensive code (not called often and small loopable). Else\r\n * it's preferable to use a regular for() loop and save extra function calls.\r\n * @param {object|Array} loopable - The object or array to be iterated.\r\n * @param {function} fn - The function to call for each item.\r\n * @param {object} [thisArg] - The value of `this` provided for the call to `fn`.\r\n * @param {boolean} [reverse] - If true, iterates backward on the loopable.\r\n */\n each: function each(loopable, fn, thisArg, reverse) {\n var i, len, keys;\n\n if (helpers.isArray(loopable)) {\n len = loopable.length;\n\n if (reverse) {\n for (i = len - 1; i >= 0; i--) {\n fn.call(thisArg, loopable[i], i);\n }\n } else {\n for (i = 0; i < len; i++) {\n fn.call(thisArg, loopable[i], i);\n }\n }\n } else if (helpers.isObject(loopable)) {\n keys = Object.keys(loopable);\n len = keys.length;\n\n for (i = 0; i < len; i++) {\n fn.call(thisArg, loopable[keys[i]], keys[i]);\n }\n }\n },\n\n /**\r\n * Returns true if the `a0` and `a1` arrays have the same content, else returns false.\r\n * @see https://stackoverflow.com/a/14853974\r\n * @param {Array} a0 - The array to compare\r\n * @param {Array} a1 - The array to compare\r\n * @returns {boolean}\r\n */\n arrayEquals: function arrayEquals(a0, a1) {\n var i, ilen, v0, v1;\n\n if (!a0 || !a1 || a0.length !== a1.length) {\n return false;\n }\n\n for (i = 0, ilen = a0.length; i < ilen; ++i) {\n v0 = a0[i];\n v1 = a1[i];\n\n if (v0 instanceof Array && v1 instanceof Array) {\n if (!helpers.arrayEquals(v0, v1)) {\n return false;\n }\n } else if (v0 !== v1) {\n // NOTE: two different object instances will never be equal: {x:20} != {x:20}\n return false;\n }\n }\n\n return true;\n },\n\n /**\r\n * Returns a deep copy of `source` without keeping references on objects and arrays.\r\n * @param {*} source - The value to clone.\r\n * @returns {*}\r\n */\n clone: function clone(source) {\n if (helpers.isArray(source)) {\n return source.map(helpers.clone);\n }\n\n if (helpers.isObject(source)) {\n var target = Object.create(source);\n var keys = Object.keys(source);\n var klen = keys.length;\n var k = 0;\n\n for (; k < klen; ++k) {\n target[keys[k]] = helpers.clone(source[keys[k]]);\n }\n\n return target;\n }\n\n return source;\n },\n\n /**\r\n * The default merger when Chart.helpers.merge is called without merger option.\r\n * Note(SB): also used by mergeConfig and mergeScaleConfig as fallback.\r\n * @private\r\n */\n _merger: function _merger(key, target, source, options) {\n if (!isValidKey(key)) {\n // We want to ensure we do not copy prototypes over\n // as this can pollute global namespaces\n return;\n }\n\n var tval = target[key];\n var sval = source[key];\n\n if (helpers.isObject(tval) && helpers.isObject(sval)) {\n helpers.merge(tval, sval, options);\n } else {\n target[key] = helpers.clone(sval);\n }\n },\n\n /**\r\n * Merges source[key] in target[key] only if target[key] is undefined.\r\n * @private\r\n */\n _mergerIf: function _mergerIf(key, target, source) {\n if (!isValidKey(key)) {\n // We want to ensure we do not copy prototypes over\n // as this can pollute global namespaces\n return;\n }\n\n var tval = target[key];\n var sval = source[key];\n\n if (helpers.isObject(tval) && helpers.isObject(sval)) {\n helpers.mergeIf(tval, sval);\n } else if (!target.hasOwnProperty(key)) {\n target[key] = helpers.clone(sval);\n }\n },\n\n /**\r\n * Recursively deep copies `source` properties into `target` with the given `options`.\r\n * IMPORTANT: `target` is not cloned and will be updated with `source` properties.\r\n * @param {object} target - The target object in which all sources are merged into.\r\n * @param {object|object[]} source - Object(s) to merge into `target`.\r\n * @param {object} [options] - Merging options:\r\n * @param {function} [options.merger] - The merge method (key, target, source, options)\r\n * @returns {object} The `target` object.\r\n */\n merge: function merge(target, source, options) {\n var sources = helpers.isArray(source) ? source : [source];\n var ilen = sources.length;\n var merge, i, keys, klen, k;\n\n if (!helpers.isObject(target)) {\n return target;\n }\n\n options = options || {};\n merge = options.merger || helpers._merger;\n\n for (i = 0; i < ilen; ++i) {\n source = sources[i];\n\n if (!helpers.isObject(source)) {\n continue;\n }\n\n keys = Object.keys(source);\n\n for (k = 0, klen = keys.length; k < klen; ++k) {\n merge(keys[k], target, source, options);\n }\n }\n\n return target;\n },\n\n /**\r\n * Recursively deep copies `source` properties into `target` *only* if not defined in target.\r\n * IMPORTANT: `target` is not cloned and will be updated with `source` properties.\r\n * @param {object} target - The target object in which all sources are merged into.\r\n * @param {object|object[]} source - Object(s) to merge into `target`.\r\n * @returns {object} The `target` object.\r\n */\n mergeIf: function mergeIf(target, source) {\n return helpers.merge(target, source, {\n merger: helpers._mergerIf\n });\n },\n\n /**\r\n * Applies the contents of two or more objects together into the first object.\r\n * @param {object} target - The target object in which all objects are merged into.\r\n * @param {object} arg1 - Object containing additional properties to merge in target.\r\n * @param {object} argN - Additional objects containing properties to merge in target.\r\n * @returns {object} The `target` object.\r\n */\n extend: Object.assign || function (target) {\n return helpers.merge(target, [].slice.call(arguments, 1), {\n merger: function merger(key, dst, src) {\n dst[key] = src[key];\n }\n });\n },\n\n /**\r\n * Basic javascript inheritance based on the model created in Backbone.js\r\n */\n inherits: function inherits(extensions) {\n var me = this;\n var ChartElement = extensions && extensions.hasOwnProperty('constructor') ? extensions.constructor : function () {\n return me.apply(this, arguments);\n };\n\n var Surrogate = function Surrogate() {\n this.constructor = ChartElement;\n };\n\n Surrogate.prototype = me.prototype;\n ChartElement.prototype = new Surrogate();\n ChartElement.extend = helpers.inherits;\n\n if (extensions) {\n helpers.extend(ChartElement.prototype, extensions);\n }\n\n ChartElement.__super__ = me.prototype;\n return ChartElement;\n },\n _deprecated: function _deprecated(scope, value, previous, current) {\n if (value !== undefined) {\n console.warn(scope + ': \"' + previous + '\" is deprecated. Please use \"' + current + '\" instead');\n }\n }\n };\n var helpers_core = helpers; // DEPRECATIONS\n\n /**\r\n * Provided for backward compatibility, use Chart.helpers.callback instead.\r\n * @function Chart.helpers.callCallback\r\n * @deprecated since version 2.6.0\r\n * @todo remove at version 3\r\n * @private\r\n */\n\n helpers.callCallback = helpers.callback;\n /**\r\n * Provided for backward compatibility, use Array.prototype.indexOf instead.\r\n * Array.prototype.indexOf compatibility: Chrome, Opera, Safari, FF1.5+, IE9+\r\n * @function Chart.helpers.indexOf\r\n * @deprecated since version 2.7.0\r\n * @todo remove at version 3\r\n * @private\r\n */\n\n helpers.indexOf = function (array, item, fromIndex) {\n return Array.prototype.indexOf.call(array, item, fromIndex);\n };\n /**\r\n * Provided for backward compatibility, use Chart.helpers.valueOrDefault instead.\r\n * @function Chart.helpers.getValueOrDefault\r\n * @deprecated since version 2.7.0\r\n * @todo remove at version 3\r\n * @private\r\n */\n\n\n helpers.getValueOrDefault = helpers.valueOrDefault;\n /**\r\n * Provided for backward compatibility, use Chart.helpers.valueAtIndexOrDefault instead.\r\n * @function Chart.helpers.getValueAtIndexOrDefault\r\n * @deprecated since version 2.7.0\r\n * @todo remove at version 3\r\n * @private\r\n */\n\n helpers.getValueAtIndexOrDefault = helpers.valueAtIndexOrDefault;\n /**\r\n * Easing functions adapted from Robert Penner's easing equations.\r\n * @namespace Chart.helpers.easingEffects\r\n * @see http://www.robertpenner.com/easing/\r\n */\n\n var effects = {\n linear: function linear(t) {\n return t;\n },\n easeInQuad: function easeInQuad(t) {\n return t * t;\n },\n easeOutQuad: function easeOutQuad(t) {\n return -t * (t - 2);\n },\n easeInOutQuad: function easeInOutQuad(t) {\n if ((t /= 0.5) < 1) {\n return 0.5 * t * t;\n }\n\n return -0.5 * (--t * (t - 2) - 1);\n },\n easeInCubic: function easeInCubic(t) {\n return t * t * t;\n },\n easeOutCubic: function easeOutCubic(t) {\n return (t = t - 1) * t * t + 1;\n },\n easeInOutCubic: function easeInOutCubic(t) {\n if ((t /= 0.5) < 1) {\n return 0.5 * t * t * t;\n }\n\n return 0.5 * ((t -= 2) * t * t + 2);\n },\n easeInQuart: function easeInQuart(t) {\n return t * t * t * t;\n },\n easeOutQuart: function easeOutQuart(t) {\n return -((t = t - 1) * t * t * t - 1);\n },\n easeInOutQuart: function easeInOutQuart(t) {\n if ((t /= 0.5) < 1) {\n return 0.5 * t * t * t * t;\n }\n\n return -0.5 * ((t -= 2) * t * t * t - 2);\n },\n easeInQuint: function easeInQuint(t) {\n return t * t * t * t * t;\n },\n easeOutQuint: function easeOutQuint(t) {\n return (t = t - 1) * t * t * t * t + 1;\n },\n easeInOutQuint: function easeInOutQuint(t) {\n if ((t /= 0.5) < 1) {\n return 0.5 * t * t * t * t * t;\n }\n\n return 0.5 * ((t -= 2) * t * t * t * t + 2);\n },\n easeInSine: function easeInSine(t) {\n return -Math.cos(t * (Math.PI / 2)) + 1;\n },\n easeOutSine: function easeOutSine(t) {\n return Math.sin(t * (Math.PI / 2));\n },\n easeInOutSine: function easeInOutSine(t) {\n return -0.5 * (Math.cos(Math.PI * t) - 1);\n },\n easeInExpo: function easeInExpo(t) {\n return t === 0 ? 0 : Math.pow(2, 10 * (t - 1));\n },\n easeOutExpo: function easeOutExpo(t) {\n return t === 1 ? 1 : -Math.pow(2, -10 * t) + 1;\n },\n easeInOutExpo: function easeInOutExpo(t) {\n if (t === 0) {\n return 0;\n }\n\n if (t === 1) {\n return 1;\n }\n\n if ((t /= 0.5) < 1) {\n return 0.5 * Math.pow(2, 10 * (t - 1));\n }\n\n return 0.5 * (-Math.pow(2, -10 * --t) + 2);\n },\n easeInCirc: function easeInCirc(t) {\n if (t >= 1) {\n return t;\n }\n\n return -(Math.sqrt(1 - t * t) - 1);\n },\n easeOutCirc: function easeOutCirc(t) {\n return Math.sqrt(1 - (t = t - 1) * t);\n },\n easeInOutCirc: function easeInOutCirc(t) {\n if ((t /= 0.5) < 1) {\n return -0.5 * (Math.sqrt(1 - t * t) - 1);\n }\n\n return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);\n },\n easeInElastic: function easeInElastic(t) {\n var s = 1.70158;\n var p = 0;\n var a = 1;\n\n if (t === 0) {\n return 0;\n }\n\n if (t === 1) {\n return 1;\n }\n\n if (!p) {\n p = 0.3;\n }\n\n if (a < 1) {\n a = 1;\n s = p / 4;\n } else {\n s = p / (2 * Math.PI) * Math.asin(1 / a);\n }\n\n return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * (2 * Math.PI) / p));\n },\n easeOutElastic: function easeOutElastic(t) {\n var s = 1.70158;\n var p = 0;\n var a = 1;\n\n if (t === 0) {\n return 0;\n }\n\n if (t === 1) {\n return 1;\n }\n\n if (!p) {\n p = 0.3;\n }\n\n if (a < 1) {\n a = 1;\n s = p / 4;\n } else {\n s = p / (2 * Math.PI) * Math.asin(1 / a);\n }\n\n return a * Math.pow(2, -10 * t) * Math.sin((t - s) * (2 * Math.PI) / p) + 1;\n },\n easeInOutElastic: function easeInOutElastic(t) {\n var s = 1.70158;\n var p = 0;\n var a = 1;\n\n if (t === 0) {\n return 0;\n }\n\n if ((t /= 0.5) === 2) {\n return 1;\n }\n\n if (!p) {\n p = 0.45;\n }\n\n if (a < 1) {\n a = 1;\n s = p / 4;\n } else {\n s = p / (2 * Math.PI) * Math.asin(1 / a);\n }\n\n if (t < 1) {\n return -0.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * (2 * Math.PI) / p));\n }\n\n return a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t - s) * (2 * Math.PI) / p) * 0.5 + 1;\n },\n easeInBack: function easeInBack(t) {\n var s = 1.70158;\n return t * t * ((s + 1) * t - s);\n },\n easeOutBack: function easeOutBack(t) {\n var s = 1.70158;\n return (t = t - 1) * t * ((s + 1) * t + s) + 1;\n },\n easeInOutBack: function easeInOutBack(t) {\n var s = 1.70158;\n\n if ((t /= 0.5) < 1) {\n return 0.5 * (t * t * (((s *= 1.525) + 1) * t - s));\n }\n\n return 0.5 * ((t -= 2) * t * (((s *= 1.525) + 1) * t + s) + 2);\n },\n easeInBounce: function easeInBounce(t) {\n return 1 - effects.easeOutBounce(1 - t);\n },\n easeOutBounce: function easeOutBounce(t) {\n if (t < 1 / 2.75) {\n return 7.5625 * t * t;\n }\n\n if (t < 2 / 2.75) {\n return 7.5625 * (t -= 1.5 / 2.75) * t + 0.75;\n }\n\n if (t < 2.5 / 2.75) {\n return 7.5625 * (t -= 2.25 / 2.75) * t + 0.9375;\n }\n\n return 7.5625 * (t -= 2.625 / 2.75) * t + 0.984375;\n },\n easeInOutBounce: function easeInOutBounce(t) {\n if (t < 0.5) {\n return effects.easeInBounce(t * 2) * 0.5;\n }\n\n return effects.easeOutBounce(t * 2 - 1) * 0.5 + 0.5;\n }\n };\n var helpers_easing = {\n effects: effects\n }; // DEPRECATIONS\n\n /**\r\n * Provided for backward compatibility, use Chart.helpers.easing.effects instead.\r\n * @function Chart.helpers.easingEffects\r\n * @deprecated since version 2.7.0\r\n * @todo remove at version 3\r\n * @private\r\n */\n\n helpers_core.easingEffects = effects;\n var PI = Math.PI;\n var RAD_PER_DEG = PI / 180;\n var DOUBLE_PI = PI * 2;\n var HALF_PI = PI / 2;\n var QUARTER_PI = PI / 4;\n var TWO_THIRDS_PI = PI * 2 / 3;\n /**\r\n * @namespace Chart.helpers.canvas\r\n */\n\n var exports$1 = {\n /**\r\n * Clears the entire canvas associated to the given `chart`.\r\n * @param {Chart} chart - The chart for which to clear the canvas.\r\n */\n clear: function clear(chart) {\n chart.ctx.clearRect(0, 0, chart.width, chart.height);\n },\n\n /**\r\n * Creates a \"path\" for a rectangle with rounded corners at position (x, y) with a\r\n * given size (width, height) and the same `radius` for all corners.\r\n * @param {CanvasRenderingContext2D} ctx - The canvas 2D Context.\r\n * @param {number} x - The x axis of the coordinate for the rectangle starting point.\r\n * @param {number} y - The y axis of the coordinate for the rectangle starting point.\r\n * @param {number} width - The rectangle's width.\r\n * @param {number} height - The rectangle's height.\r\n * @param {number} radius - The rounded amount (in pixels) for the four corners.\r\n * @todo handle `radius` as top-left, top-right, bottom-right, bottom-left array/object?\r\n */\n roundedRect: function roundedRect(ctx, x, y, width, height, radius) {\n if (radius) {\n var r = Math.min(radius, height / 2, width / 2);\n var left = x + r;\n var top = y + r;\n var right = x + width - r;\n var bottom = y + height - r;\n ctx.moveTo(x, top);\n\n if (left < right && top < bottom) {\n ctx.arc(left, top, r, -PI, -HALF_PI);\n ctx.arc(right, top, r, -HALF_PI, 0);\n ctx.arc(right, bottom, r, 0, HALF_PI);\n ctx.arc(left, bottom, r, HALF_PI, PI);\n } else if (left < right) {\n ctx.moveTo(left, y);\n ctx.arc(right, top, r, -HALF_PI, HALF_PI);\n ctx.arc(left, top, r, HALF_PI, PI + HALF_PI);\n } else if (top < bottom) {\n ctx.arc(left, top, r, -PI, 0);\n ctx.arc(left, bottom, r, 0, PI);\n } else {\n ctx.arc(left, top, r, -PI, PI);\n }\n\n ctx.closePath();\n ctx.moveTo(x, y);\n } else {\n ctx.rect(x, y, width, height);\n }\n },\n drawPoint: function drawPoint(ctx, style, radius, x, y, rotation) {\n var type, xOffset, yOffset, size, cornerRadius;\n var rad = (rotation || 0) * RAD_PER_DEG;\n\n if (style && _typeof(style) === 'object') {\n type = style.toString();\n\n if (type === '[object HTMLImageElement]' || type === '[object HTMLCanvasElement]') {\n ctx.save();\n ctx.translate(x, y);\n ctx.rotate(rad);\n ctx.drawImage(style, -style.width / 2, -style.height / 2, style.width, style.height);\n ctx.restore();\n return;\n }\n }\n\n if (isNaN(radius) || radius <= 0) {\n return;\n }\n\n ctx.beginPath();\n\n switch (style) {\n // Default includes circle\n default:\n ctx.arc(x, y, radius, 0, DOUBLE_PI);\n ctx.closePath();\n break;\n\n case 'triangle':\n ctx.moveTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius);\n rad += TWO_THIRDS_PI;\n ctx.lineTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius);\n rad += TWO_THIRDS_PI;\n ctx.lineTo(x + Math.sin(rad) * radius, y - Math.cos(rad) * radius);\n ctx.closePath();\n break;\n\n case 'rectRounded':\n // NOTE: the rounded rect implementation changed to use `arc` instead of\n // `quadraticCurveTo` since it generates better results when rect is\n // almost a circle. 0.516 (instead of 0.5) produces results with visually\n // closer proportion to the previous impl and it is inscribed in the\n // circle with `radius`. For more details, see the following PRs:\n // https://github.com/chartjs/Chart.js/issues/5597\n // https://github.com/chartjs/Chart.js/issues/5858\n cornerRadius = radius * 0.516;\n size = radius - cornerRadius;\n xOffset = Math.cos(rad + QUARTER_PI) * size;\n yOffset = Math.sin(rad + QUARTER_PI) * size;\n ctx.arc(x - xOffset, y - yOffset, cornerRadius, rad - PI, rad - HALF_PI);\n ctx.arc(x + yOffset, y - xOffset, cornerRadius, rad - HALF_PI, rad);\n ctx.arc(x + xOffset, y + yOffset, cornerRadius, rad, rad + HALF_PI);\n ctx.arc(x - yOffset, y + xOffset, cornerRadius, rad + HALF_PI, rad + PI);\n ctx.closePath();\n break;\n\n case 'rect':\n if (!rotation) {\n size = Math.SQRT1_2 * radius;\n ctx.rect(x - size, y - size, 2 * size, 2 * size);\n break;\n }\n\n rad += QUARTER_PI;\n\n /* falls through */\n\n case 'rectRot':\n xOffset = Math.cos(rad) * radius;\n yOffset = Math.sin(rad) * radius;\n ctx.moveTo(x - xOffset, y - yOffset);\n ctx.lineTo(x + yOffset, y - xOffset);\n ctx.lineTo(x + xOffset, y + yOffset);\n ctx.lineTo(x - yOffset, y + xOffset);\n ctx.closePath();\n break;\n\n case 'crossRot':\n rad += QUARTER_PI;\n\n /* falls through */\n\n case 'cross':\n xOffset = Math.cos(rad) * radius;\n yOffset = Math.sin(rad) * radius;\n ctx.moveTo(x - xOffset, y - yOffset);\n ctx.lineTo(x + xOffset, y + yOffset);\n ctx.moveTo(x + yOffset, y - xOffset);\n ctx.lineTo(x - yOffset, y + xOffset);\n break;\n\n case 'star':\n xOffset = Math.cos(rad) * radius;\n yOffset = Math.sin(rad) * radius;\n ctx.moveTo(x - xOffset, y - yOffset);\n ctx.lineTo(x + xOffset, y + yOffset);\n ctx.moveTo(x + yOffset, y - xOffset);\n ctx.lineTo(x - yOffset, y + xOffset);\n rad += QUARTER_PI;\n xOffset = Math.cos(rad) * radius;\n yOffset = Math.sin(rad) * radius;\n ctx.moveTo(x - xOffset, y - yOffset);\n ctx.lineTo(x + xOffset, y + yOffset);\n ctx.moveTo(x + yOffset, y - xOffset);\n ctx.lineTo(x - yOffset, y + xOffset);\n break;\n\n case 'line':\n xOffset = Math.cos(rad) * radius;\n yOffset = Math.sin(rad) * radius;\n ctx.moveTo(x - xOffset, y - yOffset);\n ctx.lineTo(x + xOffset, y + yOffset);\n break;\n\n case 'dash':\n ctx.moveTo(x, y);\n ctx.lineTo(x + Math.cos(rad) * radius, y + Math.sin(rad) * radius);\n break;\n }\n\n ctx.fill();\n ctx.stroke();\n },\n\n /**\r\n * Returns true if the point is inside the rectangle\r\n * @param {object} point - The point to test\r\n * @param {object} area - The rectangle\r\n * @returns {boolean}\r\n * @private\r\n */\n _isPointInArea: function _isPointInArea(point, area) {\n var epsilon = 1e-6; // 1e-6 is margin in pixels for accumulated error.\n\n return point.x > area.left - epsilon && point.x < area.right + epsilon && point.y > area.top - epsilon && point.y < area.bottom + epsilon;\n },\n clipArea: function clipArea(ctx, area) {\n ctx.save();\n ctx.beginPath();\n ctx.rect(area.left, area.top, area.right - area.left, area.bottom - area.top);\n ctx.clip();\n },\n unclipArea: function unclipArea(ctx) {\n ctx.restore();\n },\n lineTo: function lineTo(ctx, previous, target, flip) {\n var stepped = target.steppedLine;\n\n if (stepped) {\n if (stepped === 'middle') {\n var midpoint = (previous.x + target.x) / 2.0;\n ctx.lineTo(midpoint, flip ? target.y : previous.y);\n ctx.lineTo(midpoint, flip ? previous.y : target.y);\n } else if (stepped === 'after' && !flip || stepped !== 'after' && flip) {\n ctx.lineTo(previous.x, target.y);\n } else {\n ctx.lineTo(target.x, previous.y);\n }\n\n ctx.lineTo(target.x, target.y);\n return;\n }\n\n if (!target.tension) {\n ctx.lineTo(target.x, target.y);\n return;\n }\n\n ctx.bezierCurveTo(flip ? previous.controlPointPreviousX : previous.controlPointNextX, flip ? previous.controlPointPreviousY : previous.controlPointNextY, flip ? target.controlPointNextX : target.controlPointPreviousX, flip ? target.controlPointNextY : target.controlPointPreviousY, target.x, target.y);\n }\n };\n var helpers_canvas = exports$1; // DEPRECATIONS\n\n /**\r\n * Provided for backward compatibility, use Chart.helpers.canvas.clear instead.\r\n * @namespace Chart.helpers.clear\r\n * @deprecated since version 2.7.0\r\n * @todo remove at version 3\r\n * @private\r\n */\n\n helpers_core.clear = exports$1.clear;\n /**\r\n * Provided for backward compatibility, use Chart.helpers.canvas.roundedRect instead.\r\n * @namespace Chart.helpers.drawRoundedRectangle\r\n * @deprecated since version 2.7.0\r\n * @todo remove at version 3\r\n * @private\r\n */\n\n helpers_core.drawRoundedRectangle = function (ctx) {\n ctx.beginPath();\n exports$1.roundedRect.apply(exports$1, arguments);\n };\n\n var defaults = {\n /**\r\n * @private\r\n */\n _set: function _set(scope, values) {\n return helpers_core.merge(this[scope] || (this[scope] = {}), values);\n }\n }; // TODO(v3): remove 'global' from namespace. all default are global and\n // there's inconsistency around which options are under 'global'\n\n defaults._set('global', {\n defaultColor: 'rgba(0,0,0,0.1)',\n defaultFontColor: '#666',\n defaultFontFamily: \"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif\",\n defaultFontSize: 12,\n defaultFontStyle: 'normal',\n defaultLineHeight: 1.2,\n showLines: true\n });\n\n var core_defaults = defaults;\n var valueOrDefault = helpers_core.valueOrDefault;\n /**\r\n * Converts the given font object into a CSS font string.\r\n * @param {object} font - A font object.\r\n * @return {string} The CSS font string. See https://developer.mozilla.org/en-US/docs/Web/CSS/font\r\n * @private\r\n */\n\n function toFontString(font) {\n if (!font || helpers_core.isNullOrUndef(font.size) || helpers_core.isNullOrUndef(font.family)) {\n return null;\n }\n\n return (font.style ? font.style + ' ' : '') + (font.weight ? font.weight + ' ' : '') + font.size + 'px ' + font.family;\n }\n /**\r\n * @alias Chart.helpers.options\r\n * @namespace\r\n */\n\n\n var helpers_options = {\n /**\r\n * Converts the given line height `value` in pixels for a specific font `size`.\r\n * @param {number|string} value - The lineHeight to parse (eg. 1.6, '14px', '75%', '1.6em').\r\n * @param {number} size - The font size (in pixels) used to resolve relative `value`.\r\n * @returns {number} The effective line height in pixels (size * 1.2 if value is invalid).\r\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/line-height\r\n * @since 2.7.0\r\n */\n toLineHeight: function toLineHeight(value, size) {\n var matches = ('' + value).match(/^(normal|(\\d+(?:\\.\\d+)?)(px|em|%)?)$/);\n\n if (!matches || matches[1] === 'normal') {\n return size * 1.2;\n }\n\n value = +matches[2];\n\n switch (matches[3]) {\n case 'px':\n return value;\n\n case '%':\n value /= 100;\n break;\n }\n\n return size * value;\n },\n\n /**\r\n * Converts the given value into a padding object with pre-computed width/height.\r\n * @param {number|object} value - If a number, set the value to all TRBL component,\r\n * else, if and object, use defined properties and sets undefined ones to 0.\r\n * @returns {object} The padding values (top, right, bottom, left, width, height)\r\n * @since 2.7.0\r\n */\n toPadding: function toPadding(value) {\n var t, r, b, l;\n\n if (helpers_core.isObject(value)) {\n t = +value.top || 0;\n r = +value.right || 0;\n b = +value.bottom || 0;\n l = +value.left || 0;\n } else {\n t = r = b = l = +value || 0;\n }\n\n return {\n top: t,\n right: r,\n bottom: b,\n left: l,\n height: t + b,\n width: l + r\n };\n },\n\n /**\r\n * Parses font options and returns the font object.\r\n * @param {object} options - A object that contains font options to be parsed.\r\n * @return {object} The font object.\r\n * @todo Support font.* options and renamed to toFont().\r\n * @private\r\n */\n _parseFont: function _parseFont(options) {\n var globalDefaults = core_defaults.global;\n var size = valueOrDefault(options.fontSize, globalDefaults.defaultFontSize);\n var font = {\n family: valueOrDefault(options.fontFamily, globalDefaults.defaultFontFamily),\n lineHeight: helpers_core.options.toLineHeight(valueOrDefault(options.lineHeight, globalDefaults.defaultLineHeight), size),\n size: size,\n style: valueOrDefault(options.fontStyle, globalDefaults.defaultFontStyle),\n weight: null,\n string: ''\n };\n font.string = toFontString(font);\n return font;\n },\n\n /**\r\n * Evaluates the given `inputs` sequentially and returns the first defined value.\r\n * @param {Array} inputs - An array of values, falling back to the last value.\r\n * @param {object} [context] - If defined and the current value is a function, the value\r\n * is called with `context` as first argument and the result becomes the new input.\r\n * @param {number} [index] - If defined and the current value is an array, the value\r\n * at `index` become the new input.\r\n * @param {object} [info] - object to return information about resolution in\r\n * @param {boolean} [info.cacheable] - Will be set to `false` if option is not cacheable.\r\n * @since 2.7.0\r\n */\n resolve: function resolve(inputs, context, index, info) {\n var cacheable = true;\n var i, ilen, value;\n\n for (i = 0, ilen = inputs.length; i < ilen; ++i) {\n value = inputs[i];\n\n if (value === undefined) {\n continue;\n }\n\n if (context !== undefined && typeof value === 'function') {\n value = value(context);\n cacheable = false;\n }\n\n if (index !== undefined && helpers_core.isArray(value)) {\n value = value[index];\n cacheable = false;\n }\n\n if (value !== undefined) {\n if (info && !cacheable) {\n info.cacheable = false;\n }\n\n return value;\n }\n }\n }\n };\n /**\r\n * @alias Chart.helpers.math\r\n * @namespace\r\n */\n\n var exports$2 = {\n /**\r\n * Returns an array of factors sorted from 1 to sqrt(value)\r\n * @private\r\n */\n _factorize: function _factorize(value) {\n var result = [];\n var sqrt = Math.sqrt(value);\n var i;\n\n for (i = 1; i < sqrt; i++) {\n if (value % i === 0) {\n result.push(i);\n result.push(value / i);\n }\n }\n\n if (sqrt === (sqrt | 0)) {\n // if value is a square number\n result.push(sqrt);\n }\n\n result.sort(function (a, b) {\n return a - b;\n }).pop();\n return result;\n },\n log10: Math.log10 || function (x) {\n var exponent = Math.log(x) * Math.LOG10E; // Math.LOG10E = 1 / Math.LN10.\n // Check for whole powers of 10,\n // which due to floating point rounding error should be corrected.\n\n var powerOf10 = Math.round(exponent);\n var isPowerOf10 = x === Math.pow(10, powerOf10);\n return isPowerOf10 ? powerOf10 : exponent;\n }\n };\n var helpers_math = exports$2; // DEPRECATIONS\n\n /**\r\n * Provided for backward compatibility, use Chart.helpers.math.log10 instead.\r\n * @namespace Chart.helpers.log10\r\n * @deprecated since version 2.9.0\r\n * @todo remove at version 3\r\n * @private\r\n */\n\n helpers_core.log10 = exports$2.log10;\n\n var getRtlAdapter = function getRtlAdapter(rectX, width) {\n return {\n x: function x(_x2) {\n return rectX + rectX + width - _x2;\n },\n setWidth: function setWidth(w) {\n width = w;\n },\n textAlign: function textAlign(align) {\n if (align === 'center') {\n return align;\n }\n\n return align === 'right' ? 'left' : 'right';\n },\n xPlus: function xPlus(x, value) {\n return x - value;\n },\n leftForLtr: function leftForLtr(x, itemWidth) {\n return x - itemWidth;\n }\n };\n };\n\n var getLtrAdapter = function getLtrAdapter() {\n return {\n x: function x(_x3) {\n return _x3;\n },\n setWidth: function setWidth(w) {// eslint-disable-line no-unused-vars\n },\n textAlign: function textAlign(align) {\n return align;\n },\n xPlus: function xPlus(x, value) {\n return x + value;\n },\n leftForLtr: function leftForLtr(x, _itemWidth) {\n // eslint-disable-line no-unused-vars\n return x;\n }\n };\n };\n\n var getAdapter = function getAdapter(rtl, rectX, width) {\n return rtl ? getRtlAdapter(rectX, width) : getLtrAdapter();\n };\n\n var overrideTextDirection = function overrideTextDirection(ctx, direction) {\n var style, original;\n\n if (direction === 'ltr' || direction === 'rtl') {\n style = ctx.canvas.style;\n original = [style.getPropertyValue('direction'), style.getPropertyPriority('direction')];\n style.setProperty('direction', direction, 'important');\n ctx.prevTextDirection = original;\n }\n };\n\n var restoreTextDirection = function restoreTextDirection(ctx) {\n var original = ctx.prevTextDirection;\n\n if (original !== undefined) {\n delete ctx.prevTextDirection;\n ctx.canvas.style.setProperty('direction', original[0], original[1]);\n }\n };\n\n var helpers_rtl = {\n getRtlAdapter: getAdapter,\n overrideTextDirection: overrideTextDirection,\n restoreTextDirection: restoreTextDirection\n };\n var helpers$1 = helpers_core;\n var easing = helpers_easing;\n var canvas = helpers_canvas;\n var options = helpers_options;\n var math = helpers_math;\n var rtl = helpers_rtl;\n helpers$1.easing = easing;\n helpers$1.canvas = canvas;\n helpers$1.options = options;\n helpers$1.math = math;\n helpers$1.rtl = rtl;\n\n function interpolate(start, view, model, ease) {\n var keys = Object.keys(model);\n var i, ilen, key, actual, origin, target, type, c0, c1;\n\n for (i = 0, ilen = keys.length; i < ilen; ++i) {\n key = keys[i];\n target = model[key]; // if a value is added to the model after pivot() has been called, the view\n // doesn't contain it, so let's initialize the view to the target value.\n\n if (!view.hasOwnProperty(key)) {\n view[key] = target;\n }\n\n actual = view[key];\n\n if (actual === target || key[0] === '_') {\n continue;\n }\n\n if (!start.hasOwnProperty(key)) {\n start[key] = actual;\n }\n\n origin = start[key];\n type = _typeof(target);\n\n if (type === _typeof(origin)) {\n if (type === 'string') {\n c0 = chartjsColor(origin);\n\n if (c0.valid) {\n c1 = chartjsColor(target);\n\n if (c1.valid) {\n view[key] = c1.mix(c0, ease).rgbString();\n continue;\n }\n }\n } else if (helpers$1.isFinite(origin) && helpers$1.isFinite(target)) {\n view[key] = origin + (target - origin) * ease;\n continue;\n }\n }\n\n view[key] = target;\n }\n }\n\n var Element = function Element(configuration) {\n helpers$1.extend(this, configuration);\n this.initialize.apply(this, arguments);\n };\n\n helpers$1.extend(Element.prototype, {\n _type: undefined,\n initialize: function initialize() {\n this.hidden = false;\n },\n pivot: function pivot() {\n var me = this;\n\n if (!me._view) {\n me._view = helpers$1.extend({}, me._model);\n }\n\n me._start = {};\n return me;\n },\n transition: function transition(ease) {\n var me = this;\n var model = me._model;\n var start = me._start;\n var view = me._view; // No animation -> No Transition\n\n if (!model || ease === 1) {\n me._view = helpers$1.extend({}, model);\n me._start = null;\n return me;\n }\n\n if (!view) {\n view = me._view = {};\n }\n\n if (!start) {\n start = me._start = {};\n }\n\n interpolate(start, view, model, ease);\n return me;\n },\n tooltipPosition: function tooltipPosition() {\n return {\n x: this._model.x,\n y: this._model.y\n };\n },\n hasValue: function hasValue() {\n return helpers$1.isNumber(this._model.x) && helpers$1.isNumber(this._model.y);\n }\n });\n Element.extend = helpers$1.inherits;\n var core_element = Element;\n var exports$3 = core_element.extend({\n chart: null,\n // the animation associated chart instance\n currentStep: 0,\n // the current animation step\n numSteps: 60,\n // default number of steps\n easing: '',\n // the easing to use for this animation\n render: null,\n // render function used by the animation service\n onAnimationProgress: null,\n // user specified callback to fire on each step of the animation\n onAnimationComplete: null // user specified callback to fire when the animation finishes\n\n });\n var core_animation = exports$3; // DEPRECATIONS\n\n /**\r\n * Provided for backward compatibility, use Chart.Animation instead\r\n * @prop Chart.Animation#animationObject\r\n * @deprecated since version 2.6.0\r\n * @todo remove at version 3\r\n */\n\n Object.defineProperty(exports$3.prototype, 'animationObject', {\n get: function get() {\n return this;\n }\n });\n /**\r\n * Provided for backward compatibility, use Chart.Animation#chart instead\r\n * @prop Chart.Animation#chartInstance\r\n * @deprecated since version 2.6.0\r\n * @todo remove at version 3\r\n */\n\n Object.defineProperty(exports$3.prototype, 'chartInstance', {\n get: function get() {\n return this.chart;\n },\n set: function set(value) {\n this.chart = value;\n }\n });\n\n core_defaults._set('global', {\n animation: {\n duration: 1000,\n easing: 'easeOutQuart',\n onProgress: helpers$1.noop,\n onComplete: helpers$1.noop\n }\n });\n\n var core_animations = {\n animations: [],\n request: null,\n\n /**\r\n * @param {Chart} chart - The chart to animate.\r\n * @param {Chart.Animation} animation - The animation that we will animate.\r\n * @param {number} duration - The animation duration in ms.\r\n * @param {boolean} lazy - if true, the chart is not marked as animating to enable more responsive interactions\r\n */\n addAnimation: function addAnimation(chart, animation, duration, lazy) {\n var animations = this.animations;\n var i, ilen;\n animation.chart = chart;\n animation.startTime = Date.now();\n animation.duration = duration;\n\n if (!lazy) {\n chart.animating = true;\n }\n\n for (i = 0, ilen = animations.length; i < ilen; ++i) {\n if (animations[i].chart === chart) {\n animations[i] = animation;\n return;\n }\n }\n\n animations.push(animation); // If there are no animations queued, manually kickstart a digest, for lack of a better word\n\n if (animations.length === 1) {\n this.requestAnimationFrame();\n }\n },\n cancelAnimation: function cancelAnimation(chart) {\n var index = helpers$1.findIndex(this.animations, function (animation) {\n return animation.chart === chart;\n });\n\n if (index !== -1) {\n this.animations.splice(index, 1);\n chart.animating = false;\n }\n },\n requestAnimationFrame: function requestAnimationFrame() {\n var me = this;\n\n if (me.request === null) {\n // Skip animation frame requests until the active one is executed.\n // This can happen when processing mouse events, e.g. 'mousemove'\n // and 'mouseout' events will trigger multiple renders.\n me.request = helpers$1.requestAnimFrame.call(window, function () {\n me.request = null;\n me.startDigest();\n });\n }\n },\n\n /**\r\n * @private\r\n */\n startDigest: function startDigest() {\n var me = this;\n me.advance(); // Do we have more stuff to animate?\n\n if (me.animations.length > 0) {\n me.requestAnimationFrame();\n }\n },\n\n /**\r\n * @private\r\n */\n advance: function advance() {\n var animations = this.animations;\n var animation, chart, numSteps, nextStep;\n var i = 0; // 1 animation per chart, so we are looping charts here\n\n while (i < animations.length) {\n animation = animations[i];\n chart = animation.chart;\n numSteps = animation.numSteps; // Make sure that currentStep starts at 1\n // https://github.com/chartjs/Chart.js/issues/6104\n\n nextStep = Math.floor((Date.now() - animation.startTime) / animation.duration * numSteps) + 1;\n animation.currentStep = Math.min(nextStep, numSteps);\n helpers$1.callback(animation.render, [chart, animation], chart);\n helpers$1.callback(animation.onAnimationProgress, [animation], chart);\n\n if (animation.currentStep >= numSteps) {\n helpers$1.callback(animation.onAnimationComplete, [animation], chart);\n chart.animating = false;\n animations.splice(i, 1);\n } else {\n ++i;\n }\n }\n }\n };\n var resolve = helpers$1.options.resolve;\n var arrayEvents = ['push', 'pop', 'shift', 'splice', 'unshift'];\n /**\r\n * Hooks the array methods that add or remove values ('push', pop', 'shift', 'splice',\r\n * 'unshift') and notify the listener AFTER the array has been altered. Listeners are\r\n * called on the 'onData*' callbacks (e.g. onDataPush, etc.) with same arguments.\r\n */\n\n function listenArrayEvents(array, listener) {\n if (array._chartjs) {\n array._chartjs.listeners.push(listener);\n\n return;\n }\n\n Object.defineProperty(array, '_chartjs', {\n configurable: true,\n enumerable: false,\n value: {\n listeners: [listener]\n }\n });\n arrayEvents.forEach(function (key) {\n var method = 'onData' + key.charAt(0).toUpperCase() + key.slice(1);\n var base = array[key];\n Object.defineProperty(array, key, {\n configurable: true,\n enumerable: false,\n value: function value() {\n var args = Array.prototype.slice.call(arguments);\n var res = base.apply(this, args);\n helpers$1.each(array._chartjs.listeners, function (object) {\n if (typeof object[method] === 'function') {\n object[method].apply(object, args);\n }\n });\n return res;\n }\n });\n });\n }\n /**\r\n * Removes the given array event listener and cleanup extra attached properties (such as\r\n * the _chartjs stub and overridden methods) if array doesn't have any more listeners.\r\n */\n\n\n function unlistenArrayEvents(array, listener) {\n var stub = array._chartjs;\n\n if (!stub) {\n return;\n }\n\n var listeners = stub.listeners;\n var index = listeners.indexOf(listener);\n\n if (index !== -1) {\n listeners.splice(index, 1);\n }\n\n if (listeners.length > 0) {\n return;\n }\n\n arrayEvents.forEach(function (key) {\n delete array[key];\n });\n delete array._chartjs;\n } // Base class for all dataset controllers (line, bar, etc)\n\n\n var DatasetController = function DatasetController(chart, datasetIndex) {\n this.initialize(chart, datasetIndex);\n };\n\n helpers$1.extend(DatasetController.prototype, {\n /**\r\n * Element type used to generate a meta dataset (e.g. Chart.element.Line).\r\n * @type {Chart.core.element}\r\n */\n datasetElementType: null,\n\n /**\r\n * Element type used to generate a meta data (e.g. Chart.element.Point).\r\n * @type {Chart.core.element}\r\n */\n dataElementType: null,\n\n /**\r\n * Dataset element option keys to be resolved in _resolveDatasetElementOptions.\r\n * A derived controller may override this to resolve controller-specific options.\r\n * The keys defined here are for backward compatibility for legend styles.\r\n * @private\r\n */\n _datasetElementOptions: ['backgroundColor', 'borderCapStyle', 'borderColor', 'borderDash', 'borderDashOffset', 'borderJoinStyle', 'borderWidth'],\n\n /**\r\n * Data element option keys to be resolved in _resolveDataElementOptions.\r\n * A derived controller may override this to resolve controller-specific options.\r\n * The keys defined here are for backward compatibility for legend styles.\r\n * @private\r\n */\n _dataElementOptions: ['backgroundColor', 'borderColor', 'borderWidth', 'pointStyle'],\n initialize: function initialize(chart, datasetIndex) {\n var me = this;\n me.chart = chart;\n me.index = datasetIndex;\n me.linkScales();\n me.addElements();\n me._type = me.getMeta().type;\n },\n updateIndex: function updateIndex(datasetIndex) {\n this.index = datasetIndex;\n },\n linkScales: function linkScales() {\n var me = this;\n var meta = me.getMeta();\n var chart = me.chart;\n var scales = chart.scales;\n var dataset = me.getDataset();\n var scalesOpts = chart.options.scales;\n\n if (meta.xAxisID === null || !(meta.xAxisID in scales) || dataset.xAxisID) {\n meta.xAxisID = dataset.xAxisID || scalesOpts.xAxes[0].id;\n }\n\n if (meta.yAxisID === null || !(meta.yAxisID in scales) || dataset.yAxisID) {\n meta.yAxisID = dataset.yAxisID || scalesOpts.yAxes[0].id;\n }\n },\n getDataset: function getDataset() {\n return this.chart.data.datasets[this.index];\n },\n getMeta: function getMeta() {\n return this.chart.getDatasetMeta(this.index);\n },\n getScaleForId: function getScaleForId(scaleID) {\n return this.chart.scales[scaleID];\n },\n\n /**\r\n * @private\r\n */\n _getValueScaleId: function _getValueScaleId() {\n return this.getMeta().yAxisID;\n },\n\n /**\r\n * @private\r\n */\n _getIndexScaleId: function _getIndexScaleId() {\n return this.getMeta().xAxisID;\n },\n\n /**\r\n * @private\r\n */\n _getValueScale: function _getValueScale() {\n return this.getScaleForId(this._getValueScaleId());\n },\n\n /**\r\n * @private\r\n */\n _getIndexScale: function _getIndexScale() {\n return this.getScaleForId(this._getIndexScaleId());\n },\n reset: function reset() {\n this._update(true);\n },\n\n /**\r\n * @private\r\n */\n destroy: function destroy() {\n if (this._data) {\n unlistenArrayEvents(this._data, this);\n }\n },\n createMetaDataset: function createMetaDataset() {\n var me = this;\n var type = me.datasetElementType;\n return type && new type({\n _chart: me.chart,\n _datasetIndex: me.index\n });\n },\n createMetaData: function createMetaData(index) {\n var me = this;\n var type = me.dataElementType;\n return type && new type({\n _chart: me.chart,\n _datasetIndex: me.index,\n _index: index\n });\n },\n addElements: function addElements() {\n var me = this;\n var meta = me.getMeta();\n var data = me.getDataset().data || [];\n var metaData = meta.data;\n var i, ilen;\n\n for (i = 0, ilen = data.length; i < ilen; ++i) {\n metaData[i] = metaData[i] || me.createMetaData(i);\n }\n\n meta.dataset = meta.dataset || me.createMetaDataset();\n },\n addElementAndReset: function addElementAndReset(index) {\n var element = this.createMetaData(index);\n this.getMeta().data.splice(index, 0, element);\n this.updateElement(element, index, true);\n },\n buildOrUpdateElements: function buildOrUpdateElements() {\n var me = this;\n var dataset = me.getDataset();\n var data = dataset.data || (dataset.data = []); // In order to correctly handle data addition/deletion animation (an thus simulate\n // real-time charts), we need to monitor these data modifications and synchronize\n // the internal meta data accordingly.\n\n if (me._data !== data) {\n if (me._data) {\n // This case happens when the user replaced the data array instance.\n unlistenArrayEvents(me._data, me);\n }\n\n if (data && Object.isExtensible(data)) {\n listenArrayEvents(data, me);\n }\n\n me._data = data;\n } // Re-sync meta data in case the user replaced the data array or if we missed\n // any updates and so make sure that we handle number of datapoints changing.\n\n\n me.resyncElements();\n },\n\n /**\r\n * Returns the merged user-supplied and default dataset-level options\r\n * @private\r\n */\n _configure: function _configure() {\n var me = this;\n me._config = helpers$1.merge(Object.create(null), [me.chart.options.datasets[me._type], me.getDataset()], {\n merger: function merger(key, target, source) {\n if (key !== '_meta' && key !== 'data') {\n helpers$1._merger(key, target, source);\n }\n }\n });\n },\n _update: function _update(reset) {\n var me = this;\n\n me._configure();\n\n me._cachedDataOpts = null;\n me.update(reset);\n },\n update: helpers$1.noop,\n transition: function transition(easingValue) {\n var meta = this.getMeta();\n var elements = meta.data || [];\n var ilen = elements.length;\n var i = 0;\n\n for (; i < ilen; ++i) {\n elements[i].transition(easingValue);\n }\n\n if (meta.dataset) {\n meta.dataset.transition(easingValue);\n }\n },\n draw: function draw() {\n var meta = this.getMeta();\n var elements = meta.data || [];\n var ilen = elements.length;\n var i = 0;\n\n if (meta.dataset) {\n meta.dataset.draw();\n }\n\n for (; i < ilen; ++i) {\n elements[i].draw();\n }\n },\n\n /**\r\n * Returns a set of predefined style properties that should be used to represent the dataset\r\n * or the data if the index is specified\r\n * @param {number} index - data index\r\n * @return {IStyleInterface} style object\r\n */\n getStyle: function getStyle(index) {\n var me = this;\n var meta = me.getMeta();\n var dataset = meta.dataset;\n var style;\n\n me._configure();\n\n if (dataset && index === undefined) {\n style = me._resolveDatasetElementOptions(dataset || {});\n } else {\n index = index || 0;\n style = me._resolveDataElementOptions(meta.data[index] || {}, index);\n }\n\n if (style.fill === false || style.fill === null) {\n style.backgroundColor = style.borderColor;\n }\n\n return style;\n },\n\n /**\r\n * @private\r\n */\n _resolveDatasetElementOptions: function _resolveDatasetElementOptions(element, hover) {\n var me = this;\n var chart = me.chart;\n var datasetOpts = me._config;\n var custom = element.custom || {};\n var options = chart.options.elements[me.datasetElementType.prototype._type] || {};\n var elementOptions = me._datasetElementOptions;\n var values = {};\n var i, ilen, key, readKey; // Scriptable options\n\n var context = {\n chart: chart,\n dataset: me.getDataset(),\n datasetIndex: me.index,\n hover: hover\n };\n\n for (i = 0, ilen = elementOptions.length; i < ilen; ++i) {\n key = elementOptions[i];\n readKey = hover ? 'hover' + key.charAt(0).toUpperCase() + key.slice(1) : key;\n values[key] = resolve([custom[readKey], datasetOpts[readKey], options[readKey]], context);\n }\n\n return values;\n },\n\n /**\r\n * @private\r\n */\n _resolveDataElementOptions: function _resolveDataElementOptions(element, index) {\n var me = this;\n var custom = element && element.custom;\n var cached = me._cachedDataOpts;\n\n if (cached && !custom) {\n return cached;\n }\n\n var chart = me.chart;\n var datasetOpts = me._config;\n var options = chart.options.elements[me.dataElementType.prototype._type] || {};\n var elementOptions = me._dataElementOptions;\n var values = {}; // Scriptable options\n\n var context = {\n chart: chart,\n dataIndex: index,\n dataset: me.getDataset(),\n datasetIndex: me.index\n }; // `resolve` sets cacheable to `false` if any option is indexed or scripted\n\n var info = {\n cacheable: !custom\n };\n var keys, i, ilen, key;\n custom = custom || {};\n\n if (helpers$1.isArray(elementOptions)) {\n for (i = 0, ilen = elementOptions.length; i < ilen; ++i) {\n key = elementOptions[i];\n values[key] = resolve([custom[key], datasetOpts[key], options[key]], context, index, info);\n }\n } else {\n keys = Object.keys(elementOptions);\n\n for (i = 0, ilen = keys.length; i < ilen; ++i) {\n key = keys[i];\n values[key] = resolve([custom[key], datasetOpts[elementOptions[key]], datasetOpts[key], options[key]], context, index, info);\n }\n }\n\n if (info.cacheable) {\n me._cachedDataOpts = Object.freeze(values);\n }\n\n return values;\n },\n removeHoverStyle: function removeHoverStyle(element) {\n helpers$1.merge(element._model, element.$previousStyle || {});\n delete element.$previousStyle;\n },\n setHoverStyle: function setHoverStyle(element) {\n var dataset = this.chart.data.datasets[element._datasetIndex];\n var index = element._index;\n var custom = element.custom || {};\n var model = element._model;\n var getHoverColor = helpers$1.getHoverColor;\n element.$previousStyle = {\n backgroundColor: model.backgroundColor,\n borderColor: model.borderColor,\n borderWidth: model.borderWidth\n };\n model.backgroundColor = resolve([custom.hoverBackgroundColor, dataset.hoverBackgroundColor, getHoverColor(model.backgroundColor)], undefined, index);\n model.borderColor = resolve([custom.hoverBorderColor, dataset.hoverBorderColor, getHoverColor(model.borderColor)], undefined, index);\n model.borderWidth = resolve([custom.hoverBorderWidth, dataset.hoverBorderWidth, model.borderWidth], undefined, index);\n },\n\n /**\r\n * @private\r\n */\n _removeDatasetHoverStyle: function _removeDatasetHoverStyle() {\n var element = this.getMeta().dataset;\n\n if (element) {\n this.removeHoverStyle(element);\n }\n },\n\n /**\r\n * @private\r\n */\n _setDatasetHoverStyle: function _setDatasetHoverStyle() {\n var element = this.getMeta().dataset;\n var prev = {};\n var i, ilen, key, keys, hoverOptions, model;\n\n if (!element) {\n return;\n }\n\n model = element._model;\n hoverOptions = this._resolveDatasetElementOptions(element, true);\n keys = Object.keys(hoverOptions);\n\n for (i = 0, ilen = keys.length; i < ilen; ++i) {\n key = keys[i];\n prev[key] = model[key];\n model[key] = hoverOptions[key];\n }\n\n element.$previousStyle = prev;\n },\n\n /**\r\n * @private\r\n */\n resyncElements: function resyncElements() {\n var me = this;\n var meta = me.getMeta();\n var data = me.getDataset().data;\n var numMeta = meta.data.length;\n var numData = data.length;\n\n if (numData < numMeta) {\n meta.data.splice(numData, numMeta - numData);\n } else if (numData > numMeta) {\n me.insertElements(numMeta, numData - numMeta);\n }\n },\n\n /**\r\n * @private\r\n */\n insertElements: function insertElements(start, count) {\n for (var i = 0; i < count; ++i) {\n this.addElementAndReset(start + i);\n }\n },\n\n /**\r\n * @private\r\n */\n onDataPush: function onDataPush() {\n var count = arguments.length;\n this.insertElements(this.getDataset().data.length - count, count);\n },\n\n /**\r\n * @private\r\n */\n onDataPop: function onDataPop() {\n this.getMeta().data.pop();\n },\n\n /**\r\n * @private\r\n */\n onDataShift: function onDataShift() {\n this.getMeta().data.shift();\n },\n\n /**\r\n * @private\r\n */\n onDataSplice: function onDataSplice(start, count) {\n this.getMeta().data.splice(start, count);\n this.insertElements(start, arguments.length - 2);\n },\n\n /**\r\n * @private\r\n */\n onDataUnshift: function onDataUnshift() {\n this.insertElements(0, arguments.length);\n }\n });\n DatasetController.extend = helpers$1.inherits;\n var core_datasetController = DatasetController;\n var TAU = Math.PI * 2;\n\n core_defaults._set('global', {\n elements: {\n arc: {\n backgroundColor: core_defaults.global.defaultColor,\n borderColor: '#fff',\n borderWidth: 2,\n borderAlign: 'center'\n }\n }\n });\n\n function clipArc(ctx, arc) {\n var startAngle = arc.startAngle;\n var endAngle = arc.endAngle;\n var pixelMargin = arc.pixelMargin;\n var angleMargin = pixelMargin / arc.outerRadius;\n var x = arc.x;\n var y = arc.y; // Draw an inner border by cliping the arc and drawing a double-width border\n // Enlarge the clipping arc by 0.33 pixels to eliminate glitches between borders\n\n ctx.beginPath();\n ctx.arc(x, y, arc.outerRadius, startAngle - angleMargin, endAngle + angleMargin);\n\n if (arc.innerRadius > pixelMargin) {\n angleMargin = pixelMargin / arc.innerRadius;\n ctx.arc(x, y, arc.innerRadius - pixelMargin, endAngle + angleMargin, startAngle - angleMargin, true);\n } else {\n ctx.arc(x, y, pixelMargin, endAngle + Math.PI / 2, startAngle - Math.PI / 2);\n }\n\n ctx.closePath();\n ctx.clip();\n }\n\n function drawFullCircleBorders(ctx, vm, arc, inner) {\n var endAngle = arc.endAngle;\n var i;\n\n if (inner) {\n arc.endAngle = arc.startAngle + TAU;\n clipArc(ctx, arc);\n arc.endAngle = endAngle;\n\n if (arc.endAngle === arc.startAngle && arc.fullCircles) {\n arc.endAngle += TAU;\n arc.fullCircles--;\n }\n }\n\n ctx.beginPath();\n ctx.arc(arc.x, arc.y, arc.innerRadius, arc.startAngle + TAU, arc.startAngle, true);\n\n for (i = 0; i < arc.fullCircles; ++i) {\n ctx.stroke();\n }\n\n ctx.beginPath();\n ctx.arc(arc.x, arc.y, vm.outerRadius, arc.startAngle, arc.startAngle + TAU);\n\n for (i = 0; i < arc.fullCircles; ++i) {\n ctx.stroke();\n }\n }\n\n function drawBorder(ctx, vm, arc) {\n var inner = vm.borderAlign === 'inner';\n\n if (inner) {\n ctx.lineWidth = vm.borderWidth * 2;\n ctx.lineJoin = 'round';\n } else {\n ctx.lineWidth = vm.borderWidth;\n ctx.lineJoin = 'bevel';\n }\n\n if (arc.fullCircles) {\n drawFullCircleBorders(ctx, vm, arc, inner);\n }\n\n if (inner) {\n clipArc(ctx, arc);\n }\n\n ctx.beginPath();\n ctx.arc(arc.x, arc.y, vm.outerRadius, arc.startAngle, arc.endAngle);\n ctx.arc(arc.x, arc.y, arc.innerRadius, arc.endAngle, arc.startAngle, true);\n ctx.closePath();\n ctx.stroke();\n }\n\n var element_arc = core_element.extend({\n _type: 'arc',\n inLabelRange: function inLabelRange(mouseX) {\n var vm = this._view;\n\n if (vm) {\n return Math.pow(mouseX - vm.x, 2) < Math.pow(vm.radius + vm.hoverRadius, 2);\n }\n\n return false;\n },\n inRange: function inRange(chartX, chartY) {\n var vm = this._view;\n\n if (vm) {\n var pointRelativePosition = helpers$1.getAngleFromPoint(vm, {\n x: chartX,\n y: chartY\n });\n var angle = pointRelativePosition.angle;\n var distance = pointRelativePosition.distance; // Sanitise angle range\n\n var startAngle = vm.startAngle;\n var endAngle = vm.endAngle;\n\n while (endAngle < startAngle) {\n endAngle += TAU;\n }\n\n while (angle > endAngle) {\n angle -= TAU;\n }\n\n while (angle < startAngle) {\n angle += TAU;\n } // Check if within the range of the open/close angle\n\n\n var betweenAngles = angle >= startAngle && angle <= endAngle;\n var withinRadius = distance >= vm.innerRadius && distance <= vm.outerRadius;\n return betweenAngles && withinRadius;\n }\n\n return false;\n },\n getCenterPoint: function getCenterPoint() {\n var vm = this._view;\n var halfAngle = (vm.startAngle + vm.endAngle) / 2;\n var halfRadius = (vm.innerRadius + vm.outerRadius) / 2;\n return {\n x: vm.x + Math.cos(halfAngle) * halfRadius,\n y: vm.y + Math.sin(halfAngle) * halfRadius\n };\n },\n getArea: function getArea() {\n var vm = this._view;\n return Math.PI * ((vm.endAngle - vm.startAngle) / (2 * Math.PI)) * (Math.pow(vm.outerRadius, 2) - Math.pow(vm.innerRadius, 2));\n },\n tooltipPosition: function tooltipPosition() {\n var vm = this._view;\n var centreAngle = vm.startAngle + (vm.endAngle - vm.startAngle) / 2;\n var rangeFromCentre = (vm.outerRadius - vm.innerRadius) / 2 + vm.innerRadius;\n return {\n x: vm.x + Math.cos(centreAngle) * rangeFromCentre,\n y: vm.y + Math.sin(centreAngle) * rangeFromCentre\n };\n },\n draw: function draw() {\n var ctx = this._chart.ctx;\n var vm = this._view;\n var pixelMargin = vm.borderAlign === 'inner' ? 0.33 : 0;\n var arc = {\n x: vm.x,\n y: vm.y,\n innerRadius: vm.innerRadius,\n outerRadius: Math.max(vm.outerRadius - pixelMargin, 0),\n pixelMargin: pixelMargin,\n startAngle: vm.startAngle,\n endAngle: vm.endAngle,\n fullCircles: Math.floor(vm.circumference / TAU)\n };\n var i;\n ctx.save();\n ctx.fillStyle = vm.backgroundColor;\n ctx.strokeStyle = vm.borderColor;\n\n if (arc.fullCircles) {\n arc.endAngle = arc.startAngle + TAU;\n ctx.beginPath();\n ctx.arc(arc.x, arc.y, arc.outerRadius, arc.startAngle, arc.endAngle);\n ctx.arc(arc.x, arc.y, arc.innerRadius, arc.endAngle, arc.startAngle, true);\n ctx.closePath();\n\n for (i = 0; i < arc.fullCircles; ++i) {\n ctx.fill();\n }\n\n arc.endAngle = arc.startAngle + vm.circumference % TAU;\n }\n\n ctx.beginPath();\n ctx.arc(arc.x, arc.y, arc.outerRadius, arc.startAngle, arc.endAngle);\n ctx.arc(arc.x, arc.y, arc.innerRadius, arc.endAngle, arc.startAngle, true);\n ctx.closePath();\n ctx.fill();\n\n if (vm.borderWidth) {\n drawBorder(ctx, vm, arc);\n }\n\n ctx.restore();\n }\n });\n var valueOrDefault$1 = helpers$1.valueOrDefault;\n var defaultColor = core_defaults.global.defaultColor;\n\n core_defaults._set('global', {\n elements: {\n line: {\n tension: 0.4,\n backgroundColor: defaultColor,\n borderWidth: 3,\n borderColor: defaultColor,\n borderCapStyle: 'butt',\n borderDash: [],\n borderDashOffset: 0.0,\n borderJoinStyle: 'miter',\n capBezierPoints: true,\n fill: true // do we fill in the area between the line and its base axis\n\n }\n }\n });\n\n var element_line = core_element.extend({\n _type: 'line',\n draw: function draw() {\n var me = this;\n var vm = me._view;\n var ctx = me._chart.ctx;\n var spanGaps = vm.spanGaps;\n\n var points = me._children.slice(); // clone array\n\n\n var globalDefaults = core_defaults.global;\n var globalOptionLineElements = globalDefaults.elements.line;\n var lastDrawnIndex = -1;\n var closePath = me._loop;\n var index, previous, currentVM;\n\n if (!points.length) {\n return;\n }\n\n if (me._loop) {\n for (index = 0; index < points.length; ++index) {\n previous = helpers$1.previousItem(points, index); // If the line has an open path, shift the point array\n\n if (!points[index]._view.skip && previous._view.skip) {\n points = points.slice(index).concat(points.slice(0, index));\n closePath = spanGaps;\n break;\n }\n } // If the line has a close path, add the first point again\n\n\n if (closePath) {\n points.push(points[0]);\n }\n }\n\n ctx.save(); // Stroke Line Options\n\n ctx.lineCap = vm.borderCapStyle || globalOptionLineElements.borderCapStyle; // IE 9 and 10 do not support line dash\n\n if (ctx.setLineDash) {\n ctx.setLineDash(vm.borderDash || globalOptionLineElements.borderDash);\n }\n\n ctx.lineDashOffset = valueOrDefault$1(vm.borderDashOffset, globalOptionLineElements.borderDashOffset);\n ctx.lineJoin = vm.borderJoinStyle || globalOptionLineElements.borderJoinStyle;\n ctx.lineWidth = valueOrDefault$1(vm.borderWidth, globalOptionLineElements.borderWidth);\n ctx.strokeStyle = vm.borderColor || globalDefaults.defaultColor; // Stroke Line\n\n ctx.beginPath(); // First point moves to it's starting position no matter what\n\n currentVM = points[0]._view;\n\n if (!currentVM.skip) {\n ctx.moveTo(currentVM.x, currentVM.y);\n lastDrawnIndex = 0;\n }\n\n for (index = 1; index < points.length; ++index) {\n currentVM = points[index]._view;\n previous = lastDrawnIndex === -1 ? helpers$1.previousItem(points, index) : points[lastDrawnIndex];\n\n if (!currentVM.skip) {\n if (lastDrawnIndex !== index - 1 && !spanGaps || lastDrawnIndex === -1) {\n // There was a gap and this is the first point after the gap\n ctx.moveTo(currentVM.x, currentVM.y);\n } else {\n // Line to next point\n helpers$1.canvas.lineTo(ctx, previous._view, currentVM);\n }\n\n lastDrawnIndex = index;\n }\n }\n\n if (closePath) {\n ctx.closePath();\n }\n\n ctx.stroke();\n ctx.restore();\n }\n });\n var valueOrDefault$2 = helpers$1.valueOrDefault;\n var defaultColor$1 = core_defaults.global.defaultColor;\n\n core_defaults._set('global', {\n elements: {\n point: {\n radius: 3,\n pointStyle: 'circle',\n backgroundColor: defaultColor$1,\n borderColor: defaultColor$1,\n borderWidth: 1,\n // Hover\n hitRadius: 1,\n hoverRadius: 4,\n hoverBorderWidth: 1\n }\n }\n });\n\n function xRange(mouseX) {\n var vm = this._view;\n return vm ? Math.abs(mouseX - vm.x) < vm.radius + vm.hitRadius : false;\n }\n\n function yRange(mouseY) {\n var vm = this._view;\n return vm ? Math.abs(mouseY - vm.y) < vm.radius + vm.hitRadius : false;\n }\n\n var element_point = core_element.extend({\n _type: 'point',\n inRange: function inRange(mouseX, mouseY) {\n var vm = this._view;\n return vm ? Math.pow(mouseX - vm.x, 2) + Math.pow(mouseY - vm.y, 2) < Math.pow(vm.hitRadius + vm.radius, 2) : false;\n },\n inLabelRange: xRange,\n inXRange: xRange,\n inYRange: yRange,\n getCenterPoint: function getCenterPoint() {\n var vm = this._view;\n return {\n x: vm.x,\n y: vm.y\n };\n },\n getArea: function getArea() {\n return Math.PI * Math.pow(this._view.radius, 2);\n },\n tooltipPosition: function tooltipPosition() {\n var vm = this._view;\n return {\n x: vm.x,\n y: vm.y,\n padding: vm.radius + vm.borderWidth\n };\n },\n draw: function draw(chartArea) {\n var vm = this._view;\n var ctx = this._chart.ctx;\n var pointStyle = vm.pointStyle;\n var rotation = vm.rotation;\n var radius = vm.radius;\n var x = vm.x;\n var y = vm.y;\n var globalDefaults = core_defaults.global;\n var defaultColor = globalDefaults.defaultColor; // eslint-disable-line no-shadow\n\n if (vm.skip) {\n return;\n } // Clipping for Points.\n\n\n if (chartArea === undefined || helpers$1.canvas._isPointInArea(vm, chartArea)) {\n ctx.strokeStyle = vm.borderColor || defaultColor;\n ctx.lineWidth = valueOrDefault$2(vm.borderWidth, globalDefaults.elements.point.borderWidth);\n ctx.fillStyle = vm.backgroundColor || defaultColor;\n helpers$1.canvas.drawPoint(ctx, pointStyle, radius, x, y, rotation);\n }\n }\n });\n var defaultColor$2 = core_defaults.global.defaultColor;\n\n core_defaults._set('global', {\n elements: {\n rectangle: {\n backgroundColor: defaultColor$2,\n borderColor: defaultColor$2,\n borderSkipped: 'bottom',\n borderWidth: 0\n }\n }\n });\n\n function isVertical(vm) {\n return vm && vm.width !== undefined;\n }\n /**\r\n * Helper function to get the bounds of the bar regardless of the orientation\r\n * @param bar {Chart.Element.Rectangle} the bar\r\n * @return {Bounds} bounds of the bar\r\n * @private\r\n */\n\n\n function getBarBounds(vm) {\n var x1, x2, y1, y2, half;\n\n if (isVertical(vm)) {\n half = vm.width / 2;\n x1 = vm.x - half;\n x2 = vm.x + half;\n y1 = Math.min(vm.y, vm.base);\n y2 = Math.max(vm.y, vm.base);\n } else {\n half = vm.height / 2;\n x1 = Math.min(vm.x, vm.base);\n x2 = Math.max(vm.x, vm.base);\n y1 = vm.y - half;\n y2 = vm.y + half;\n }\n\n return {\n left: x1,\n top: y1,\n right: x2,\n bottom: y2\n };\n }\n\n function swap(orig, v1, v2) {\n return orig === v1 ? v2 : orig === v2 ? v1 : orig;\n }\n\n function parseBorderSkipped(vm) {\n var edge = vm.borderSkipped;\n var res = {};\n\n if (!edge) {\n return res;\n }\n\n if (vm.horizontal) {\n if (vm.base > vm.x) {\n edge = swap(edge, 'left', 'right');\n }\n } else if (vm.base < vm.y) {\n edge = swap(edge, 'bottom', 'top');\n }\n\n res[edge] = true;\n return res;\n }\n\n function parseBorderWidth(vm, maxW, maxH) {\n var value = vm.borderWidth;\n var skip = parseBorderSkipped(vm);\n var t, r, b, l;\n\n if (helpers$1.isObject(value)) {\n t = +value.top || 0;\n r = +value.right || 0;\n b = +value.bottom || 0;\n l = +value.left || 0;\n } else {\n t = r = b = l = +value || 0;\n }\n\n return {\n t: skip.top || t < 0 ? 0 : t > maxH ? maxH : t,\n r: skip.right || r < 0 ? 0 : r > maxW ? maxW : r,\n b: skip.bottom || b < 0 ? 0 : b > maxH ? maxH : b,\n l: skip.left || l < 0 ? 0 : l > maxW ? maxW : l\n };\n }\n\n function boundingRects(vm) {\n var bounds = getBarBounds(vm);\n var width = bounds.right - bounds.left;\n var height = bounds.bottom - bounds.top;\n var border = parseBorderWidth(vm, width / 2, height / 2);\n return {\n outer: {\n x: bounds.left,\n y: bounds.top,\n w: width,\n h: height\n },\n inner: {\n x: bounds.left + border.l,\n y: bounds.top + border.t,\n w: width - border.l - border.r,\n h: height - border.t - border.b\n }\n };\n }\n\n function _inRange(vm, x, y) {\n var skipX = x === null;\n var skipY = y === null;\n var bounds = !vm || skipX && skipY ? false : getBarBounds(vm);\n return bounds && (skipX || x >= bounds.left && x <= bounds.right) && (skipY || y >= bounds.top && y <= bounds.bottom);\n }\n\n var element_rectangle = core_element.extend({\n _type: 'rectangle',\n draw: function draw() {\n var ctx = this._chart.ctx;\n var vm = this._view;\n var rects = boundingRects(vm);\n var outer = rects.outer;\n var inner = rects.inner;\n ctx.fillStyle = vm.backgroundColor;\n ctx.fillRect(outer.x, outer.y, outer.w, outer.h);\n\n if (outer.w === inner.w && outer.h === inner.h) {\n return;\n }\n\n ctx.save();\n ctx.beginPath();\n ctx.rect(outer.x, outer.y, outer.w, outer.h);\n ctx.clip();\n ctx.fillStyle = vm.borderColor;\n ctx.rect(inner.x, inner.y, inner.w, inner.h);\n ctx.fill('evenodd');\n ctx.restore();\n },\n height: function height() {\n var vm = this._view;\n return vm.base - vm.y;\n },\n inRange: function inRange(mouseX, mouseY) {\n return _inRange(this._view, mouseX, mouseY);\n },\n inLabelRange: function inLabelRange(mouseX, mouseY) {\n var vm = this._view;\n return isVertical(vm) ? _inRange(vm, mouseX, null) : _inRange(vm, null, mouseY);\n },\n inXRange: function inXRange(mouseX) {\n return _inRange(this._view, mouseX, null);\n },\n inYRange: function inYRange(mouseY) {\n return _inRange(this._view, null, mouseY);\n },\n getCenterPoint: function getCenterPoint() {\n var vm = this._view;\n var x, y;\n\n if (isVertical(vm)) {\n x = vm.x;\n y = (vm.y + vm.base) / 2;\n } else {\n x = (vm.x + vm.base) / 2;\n y = vm.y;\n }\n\n return {\n x: x,\n y: y\n };\n },\n getArea: function getArea() {\n var vm = this._view;\n return isVertical(vm) ? vm.width * Math.abs(vm.y - vm.base) : vm.height * Math.abs(vm.x - vm.base);\n },\n tooltipPosition: function tooltipPosition() {\n var vm = this._view;\n return {\n x: vm.x,\n y: vm.y\n };\n }\n });\n var elements = {};\n var Arc = element_arc;\n var Line = element_line;\n var Point = element_point;\n var Rectangle = element_rectangle;\n elements.Arc = Arc;\n elements.Line = Line;\n elements.Point = Point;\n elements.Rectangle = Rectangle;\n var deprecated = helpers$1._deprecated;\n var valueOrDefault$3 = helpers$1.valueOrDefault;\n\n core_defaults._set('bar', {\n hover: {\n mode: 'label'\n },\n scales: {\n xAxes: [{\n type: 'category',\n offset: true,\n gridLines: {\n offsetGridLines: true\n }\n }],\n yAxes: [{\n type: 'linear'\n }]\n }\n });\n\n core_defaults._set('global', {\n datasets: {\n bar: {\n categoryPercentage: 0.8,\n barPercentage: 0.9\n }\n }\n });\n /**\r\n * Computes the \"optimal\" sample size to maintain bars equally sized while preventing overlap.\r\n * @private\r\n */\n\n\n function computeMinSampleSize(scale, pixels) {\n var min = scale._length;\n var prev, curr, i, ilen;\n\n for (i = 1, ilen = pixels.length; i < ilen; ++i) {\n min = Math.min(min, Math.abs(pixels[i] - pixels[i - 1]));\n }\n\n for (i = 0, ilen = scale.getTicks().length; i < ilen; ++i) {\n curr = scale.getPixelForTick(i);\n min = i > 0 ? Math.min(min, Math.abs(curr - prev)) : min;\n prev = curr;\n }\n\n return min;\n }\n /**\r\n * Computes an \"ideal\" category based on the absolute bar thickness or, if undefined or null,\r\n * uses the smallest interval (see computeMinSampleSize) that prevents bar overlapping. This\r\n * mode currently always generates bars equally sized (until we introduce scriptable options?).\r\n * @private\r\n */\n\n\n function computeFitCategoryTraits(index, ruler, options) {\n var thickness = options.barThickness;\n var count = ruler.stackCount;\n var curr = ruler.pixels[index];\n var min = helpers$1.isNullOrUndef(thickness) ? computeMinSampleSize(ruler.scale, ruler.pixels) : -1;\n var size, ratio;\n\n if (helpers$1.isNullOrUndef(thickness)) {\n size = min * options.categoryPercentage;\n ratio = options.barPercentage;\n } else {\n // When bar thickness is enforced, category and bar percentages are ignored.\n // Note(SB): we could add support for relative bar thickness (e.g. barThickness: '50%')\n // and deprecate barPercentage since this value is ignored when thickness is absolute.\n size = thickness * count;\n ratio = 1;\n }\n\n return {\n chunk: size / count,\n ratio: ratio,\n start: curr - size / 2\n };\n }\n /**\r\n * Computes an \"optimal\" category that globally arranges bars side by side (no gap when\r\n * percentage options are 1), based on the previous and following categories. This mode\r\n * generates bars with different widths when data are not evenly spaced.\r\n * @private\r\n */\n\n\n function computeFlexCategoryTraits(index, ruler, options) {\n var pixels = ruler.pixels;\n var curr = pixels[index];\n var prev = index > 0 ? pixels[index - 1] : null;\n var next = index < pixels.length - 1 ? pixels[index + 1] : null;\n var percent = options.categoryPercentage;\n var start, size;\n\n if (prev === null) {\n // first data: its size is double based on the next point or,\n // if it's also the last data, we use the scale size.\n prev = curr - (next === null ? ruler.end - ruler.start : next - curr);\n }\n\n if (next === null) {\n // last data: its size is also double based on the previous point.\n next = curr + curr - prev;\n }\n\n start = curr - (curr - Math.min(prev, next)) / 2 * percent;\n size = Math.abs(next - prev) / 2 * percent;\n return {\n chunk: size / ruler.stackCount,\n ratio: options.barPercentage,\n start: start\n };\n }\n\n var controller_bar = core_datasetController.extend({\n dataElementType: elements.Rectangle,\n\n /**\r\n * @private\r\n */\n _dataElementOptions: ['backgroundColor', 'borderColor', 'borderSkipped', 'borderWidth', 'barPercentage', 'barThickness', 'categoryPercentage', 'maxBarThickness', 'minBarLength'],\n initialize: function initialize() {\n var me = this;\n var meta, scaleOpts;\n core_datasetController.prototype.initialize.apply(me, arguments);\n meta = me.getMeta();\n meta.stack = me.getDataset().stack;\n meta.bar = true;\n scaleOpts = me._getIndexScale().options;\n deprecated('bar chart', scaleOpts.barPercentage, 'scales.[x/y]Axes.barPercentage', 'dataset.barPercentage');\n deprecated('bar chart', scaleOpts.barThickness, 'scales.[x/y]Axes.barThickness', 'dataset.barThickness');\n deprecated('bar chart', scaleOpts.categoryPercentage, 'scales.[x/y]Axes.categoryPercentage', 'dataset.categoryPercentage');\n deprecated('bar chart', me._getValueScale().options.minBarLength, 'scales.[x/y]Axes.minBarLength', 'dataset.minBarLength');\n deprecated('bar chart', scaleOpts.maxBarThickness, 'scales.[x/y]Axes.maxBarThickness', 'dataset.maxBarThickness');\n },\n update: function update(reset) {\n var me = this;\n var rects = me.getMeta().data;\n var i, ilen;\n me._ruler = me.getRuler();\n\n for (i = 0, ilen = rects.length; i < ilen; ++i) {\n me.updateElement(rects[i], i, reset);\n }\n },\n updateElement: function updateElement(rectangle, index, reset) {\n var me = this;\n var meta = me.getMeta();\n var dataset = me.getDataset();\n\n var options = me._resolveDataElementOptions(rectangle, index);\n\n rectangle._xScale = me.getScaleForId(meta.xAxisID);\n rectangle._yScale = me.getScaleForId(meta.yAxisID);\n rectangle._datasetIndex = me.index;\n rectangle._index = index;\n rectangle._model = {\n backgroundColor: options.backgroundColor,\n borderColor: options.borderColor,\n borderSkipped: options.borderSkipped,\n borderWidth: options.borderWidth,\n datasetLabel: dataset.label,\n label: me.chart.data.labels[index]\n };\n\n if (helpers$1.isArray(dataset.data[index])) {\n rectangle._model.borderSkipped = null;\n }\n\n me._updateElementGeometry(rectangle, index, reset, options);\n\n rectangle.pivot();\n },\n\n /**\r\n * @private\r\n */\n _updateElementGeometry: function _updateElementGeometry(rectangle, index, reset, options) {\n var me = this;\n var model = rectangle._model;\n\n var vscale = me._getValueScale();\n\n var base = vscale.getBasePixel();\n var horizontal = vscale.isHorizontal();\n var ruler = me._ruler || me.getRuler();\n var vpixels = me.calculateBarValuePixels(me.index, index, options);\n var ipixels = me.calculateBarIndexPixels(me.index, index, ruler, options);\n model.horizontal = horizontal;\n model.base = reset ? base : vpixels.base;\n model.x = horizontal ? reset ? base : vpixels.head : ipixels.center;\n model.y = horizontal ? ipixels.center : reset ? base : vpixels.head;\n model.height = horizontal ? ipixels.size : undefined;\n model.width = horizontal ? undefined : ipixels.size;\n },\n\n /**\r\n * Returns the stacks based on groups and bar visibility.\r\n * @param {number} [last] - The dataset index\r\n * @returns {string[]} The list of stack IDs\r\n * @private\r\n */\n _getStacks: function _getStacks(last) {\n var me = this;\n\n var scale = me._getIndexScale();\n\n var metasets = scale._getMatchingVisibleMetas(me._type);\n\n var stacked = scale.options.stacked;\n var ilen = metasets.length;\n var stacks = [];\n var i, meta;\n\n for (i = 0; i < ilen; ++i) {\n meta = metasets[i]; // stacked | meta.stack\n // | found | not found | undefined\n // false | x | x | x\n // true | | x |\n // undefined | | x | x\n\n if (stacked === false || stacks.indexOf(meta.stack) === -1 || stacked === undefined && meta.stack === undefined) {\n stacks.push(meta.stack);\n }\n\n if (meta.index === last) {\n break;\n }\n }\n\n return stacks;\n },\n\n /**\r\n * Returns the effective number of stacks based on groups and bar visibility.\r\n * @private\r\n */\n getStackCount: function getStackCount() {\n return this._getStacks().length;\n },\n\n /**\r\n * Returns the stack index for the given dataset based on groups and bar visibility.\r\n * @param {number} [datasetIndex] - The dataset index\r\n * @param {string} [name] - The stack name to find\r\n * @returns {number} The stack index\r\n * @private\r\n */\n getStackIndex: function getStackIndex(datasetIndex, name) {\n var stacks = this._getStacks(datasetIndex);\n\n var index = name !== undefined ? stacks.indexOf(name) : -1; // indexOf returns -1 if element is not present\n\n return index === -1 ? stacks.length - 1 : index;\n },\n\n /**\r\n * @private\r\n */\n getRuler: function getRuler() {\n var me = this;\n\n var scale = me._getIndexScale();\n\n var pixels = [];\n var i, ilen;\n\n for (i = 0, ilen = me.getMeta().data.length; i < ilen; ++i) {\n pixels.push(scale.getPixelForValue(null, i, me.index));\n }\n\n return {\n pixels: pixels,\n start: scale._startPixel,\n end: scale._endPixel,\n stackCount: me.getStackCount(),\n scale: scale\n };\n },\n\n /**\r\n * Note: pixel values are not clamped to the scale area.\r\n * @private\r\n */\n calculateBarValuePixels: function calculateBarValuePixels(datasetIndex, index, options) {\n var me = this;\n var chart = me.chart;\n\n var scale = me._getValueScale();\n\n var isHorizontal = scale.isHorizontal();\n var datasets = chart.data.datasets;\n\n var metasets = scale._getMatchingVisibleMetas(me._type);\n\n var value = scale._parseValue(datasets[datasetIndex].data[index]);\n\n var minBarLength = options.minBarLength;\n var stacked = scale.options.stacked;\n var stack = me.getMeta().stack;\n var start = value.start === undefined ? 0 : value.max >= 0 && value.min >= 0 ? value.min : value.max;\n var length = value.start === undefined ? value.end : value.max >= 0 && value.min >= 0 ? value.max - value.min : value.min - value.max;\n var ilen = metasets.length;\n var i, imeta, ivalue, base, head, size, stackLength;\n\n if (stacked || stacked === undefined && stack !== undefined) {\n for (i = 0; i < ilen; ++i) {\n imeta = metasets[i];\n\n if (imeta.index === datasetIndex) {\n break;\n }\n\n if (imeta.stack === stack) {\n stackLength = scale._parseValue(datasets[imeta.index].data[index]);\n ivalue = stackLength.start === undefined ? stackLength.end : stackLength.min >= 0 && stackLength.max >= 0 ? stackLength.max : stackLength.min;\n\n if (value.min < 0 && ivalue < 0 || value.max >= 0 && ivalue > 0) {\n start += ivalue;\n }\n }\n }\n }\n\n base = scale.getPixelForValue(start);\n head = scale.getPixelForValue(start + length);\n size = head - base;\n\n if (minBarLength !== undefined && Math.abs(size) < minBarLength) {\n size = minBarLength;\n\n if (length >= 0 && !isHorizontal || length < 0 && isHorizontal) {\n head = base - minBarLength;\n } else {\n head = base + minBarLength;\n }\n }\n\n return {\n size: size,\n base: base,\n head: head,\n center: head + size / 2\n };\n },\n\n /**\r\n * @private\r\n */\n calculateBarIndexPixels: function calculateBarIndexPixels(datasetIndex, index, ruler, options) {\n var me = this;\n var range = options.barThickness === 'flex' ? computeFlexCategoryTraits(index, ruler, options) : computeFitCategoryTraits(index, ruler, options);\n var stackIndex = me.getStackIndex(datasetIndex, me.getMeta().stack);\n var center = range.start + range.chunk * stackIndex + range.chunk / 2;\n var size = Math.min(valueOrDefault$3(options.maxBarThickness, Infinity), range.chunk * range.ratio);\n return {\n base: center - size / 2,\n head: center + size / 2,\n center: center,\n size: size\n };\n },\n draw: function draw() {\n var me = this;\n var chart = me.chart;\n\n var scale = me._getValueScale();\n\n var rects = me.getMeta().data;\n var dataset = me.getDataset();\n var ilen = rects.length;\n var i = 0;\n helpers$1.canvas.clipArea(chart.ctx, chart.chartArea);\n\n for (; i < ilen; ++i) {\n var val = scale._parseValue(dataset.data[i]);\n\n if (!isNaN(val.min) && !isNaN(val.max)) {\n rects[i].draw();\n }\n }\n\n helpers$1.canvas.unclipArea(chart.ctx);\n },\n\n /**\r\n * @private\r\n */\n _resolveDataElementOptions: function _resolveDataElementOptions() {\n var me = this;\n var values = helpers$1.extend({}, core_datasetController.prototype._resolveDataElementOptions.apply(me, arguments));\n\n var indexOpts = me._getIndexScale().options;\n\n var valueOpts = me._getValueScale().options;\n\n values.barPercentage = valueOrDefault$3(indexOpts.barPercentage, values.barPercentage);\n values.barThickness = valueOrDefault$3(indexOpts.barThickness, values.barThickness);\n values.categoryPercentage = valueOrDefault$3(indexOpts.categoryPercentage, values.categoryPercentage);\n values.maxBarThickness = valueOrDefault$3(indexOpts.maxBarThickness, values.maxBarThickness);\n values.minBarLength = valueOrDefault$3(valueOpts.minBarLength, values.minBarLength);\n return values;\n }\n });\n var valueOrDefault$4 = helpers$1.valueOrDefault;\n var resolve$1 = helpers$1.options.resolve;\n\n core_defaults._set('bubble', {\n hover: {\n mode: 'single'\n },\n scales: {\n xAxes: [{\n type: 'linear',\n // bubble should probably use a linear scale by default\n position: 'bottom',\n id: 'x-axis-0' // need an ID so datasets can reference the scale\n\n }],\n yAxes: [{\n type: 'linear',\n position: 'left',\n id: 'y-axis-0'\n }]\n },\n tooltips: {\n callbacks: {\n title: function title() {\n // Title doesn't make sense for scatter since we format the data as a point\n return '';\n },\n label: function label(item, data) {\n var datasetLabel = data.datasets[item.datasetIndex].label || '';\n var dataPoint = data.datasets[item.datasetIndex].data[item.index];\n return datasetLabel + ': (' + item.xLabel + ', ' + item.yLabel + ', ' + dataPoint.r + ')';\n }\n }\n }\n });\n\n var controller_bubble = core_datasetController.extend({\n /**\r\n * @protected\r\n */\n dataElementType: elements.Point,\n\n /**\r\n * @private\r\n */\n _dataElementOptions: ['backgroundColor', 'borderColor', 'borderWidth', 'hoverBackgroundColor', 'hoverBorderColor', 'hoverBorderWidth', 'hoverRadius', 'hitRadius', 'pointStyle', 'rotation'],\n\n /**\r\n * @protected\r\n */\n update: function update(reset) {\n var me = this;\n var meta = me.getMeta();\n var points = meta.data; // Update Points\n\n helpers$1.each(points, function (point, index) {\n me.updateElement(point, index, reset);\n });\n },\n\n /**\r\n * @protected\r\n */\n updateElement: function updateElement(point, index, reset) {\n var me = this;\n var meta = me.getMeta();\n var custom = point.custom || {};\n var xScale = me.getScaleForId(meta.xAxisID);\n var yScale = me.getScaleForId(meta.yAxisID);\n\n var options = me._resolveDataElementOptions(point, index);\n\n var data = me.getDataset().data[index];\n var dsIndex = me.index;\n var x = reset ? xScale.getPixelForDecimal(0.5) : xScale.getPixelForValue(_typeof(data) === 'object' ? data : NaN, index, dsIndex);\n var y = reset ? yScale.getBasePixel() : yScale.getPixelForValue(data, index, dsIndex);\n point._xScale = xScale;\n point._yScale = yScale;\n point._options = options;\n point._datasetIndex = dsIndex;\n point._index = index;\n point._model = {\n backgroundColor: options.backgroundColor,\n borderColor: options.borderColor,\n borderWidth: options.borderWidth,\n hitRadius: options.hitRadius,\n pointStyle: options.pointStyle,\n rotation: options.rotation,\n radius: reset ? 0 : options.radius,\n skip: custom.skip || isNaN(x) || isNaN(y),\n x: x,\n y: y\n };\n point.pivot();\n },\n\n /**\r\n * @protected\r\n */\n setHoverStyle: function setHoverStyle(point) {\n var model = point._model;\n var options = point._options;\n var getHoverColor = helpers$1.getHoverColor;\n point.$previousStyle = {\n backgroundColor: model.backgroundColor,\n borderColor: model.borderColor,\n borderWidth: model.borderWidth,\n radius: model.radius\n };\n model.backgroundColor = valueOrDefault$4(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));\n model.borderColor = valueOrDefault$4(options.hoverBorderColor, getHoverColor(options.borderColor));\n model.borderWidth = valueOrDefault$4(options.hoverBorderWidth, options.borderWidth);\n model.radius = options.radius + options.hoverRadius;\n },\n\n /**\r\n * @private\r\n */\n _resolveDataElementOptions: function _resolveDataElementOptions(point, index) {\n var me = this;\n var chart = me.chart;\n var dataset = me.getDataset();\n var custom = point.custom || {};\n var data = dataset.data[index] || {};\n\n var values = core_datasetController.prototype._resolveDataElementOptions.apply(me, arguments); // Scriptable options\n\n\n var context = {\n chart: chart,\n dataIndex: index,\n dataset: dataset,\n datasetIndex: me.index\n }; // In case values were cached (and thus frozen), we need to clone the values\n\n if (me._cachedDataOpts === values) {\n values = helpers$1.extend({}, values);\n } // Custom radius resolution\n\n\n values.radius = resolve$1([custom.radius, data.r, me._config.radius, chart.options.elements.point.radius], context, index);\n return values;\n }\n });\n var valueOrDefault$5 = helpers$1.valueOrDefault;\n var PI$1 = Math.PI;\n var DOUBLE_PI$1 = PI$1 * 2;\n var HALF_PI$1 = PI$1 / 2;\n\n core_defaults._set('doughnut', {\n animation: {\n // Boolean - Whether we animate the rotation of the Doughnut\n animateRotate: true,\n // Boolean - Whether we animate scaling the Doughnut from the centre\n animateScale: false\n },\n hover: {\n mode: 'single'\n },\n legendCallback: function legendCallback(chart) {\n var list = document.createElement('ul');\n var data = chart.data;\n var datasets = data.datasets;\n var labels = data.labels;\n var i, ilen, listItem, listItemSpan;\n list.setAttribute('class', chart.id + '-legend');\n\n if (datasets.length) {\n for (i = 0, ilen = datasets[0].data.length; i < ilen; ++i) {\n listItem = list.appendChild(document.createElement('li'));\n listItemSpan = listItem.appendChild(document.createElement('span'));\n listItemSpan.style.backgroundColor = datasets[0].backgroundColor[i];\n\n if (labels[i]) {\n listItem.appendChild(document.createTextNode(labels[i]));\n }\n }\n }\n\n return list.outerHTML;\n },\n legend: {\n labels: {\n generateLabels: function generateLabels(chart) {\n var data = chart.data;\n\n if (data.labels.length && data.datasets.length) {\n return data.labels.map(function (label, i) {\n var meta = chart.getDatasetMeta(0);\n var style = meta.controller.getStyle(i);\n return {\n text: label,\n fillStyle: style.backgroundColor,\n strokeStyle: style.borderColor,\n lineWidth: style.borderWidth,\n hidden: isNaN(data.datasets[0].data[i]) || meta.data[i].hidden,\n // Extra data used for toggling the correct item\n index: i\n };\n });\n }\n\n return [];\n }\n },\n onClick: function onClick(e, legendItem) {\n var index = legendItem.index;\n var chart = this.chart;\n var i, ilen, meta;\n\n for (i = 0, ilen = (chart.data.datasets || []).length; i < ilen; ++i) {\n meta = chart.getDatasetMeta(i); // toggle visibility of index if exists\n\n if (meta.data[index]) {\n meta.data[index].hidden = !meta.data[index].hidden;\n }\n }\n\n chart.update();\n }\n },\n // The percentage of the chart that we cut out of the middle.\n cutoutPercentage: 50,\n // The rotation of the chart, where the first data arc begins.\n rotation: -HALF_PI$1,\n // The total circumference of the chart.\n circumference: DOUBLE_PI$1,\n // Need to override these to give a nice default\n tooltips: {\n callbacks: {\n title: function title() {\n return '';\n },\n label: function label(tooltipItem, data) {\n var dataLabel = data.labels[tooltipItem.index];\n var value = ': ' + data.datasets[tooltipItem.datasetIndex].data[tooltipItem.index];\n\n if (helpers$1.isArray(dataLabel)) {\n // show value on first line of multiline label\n // need to clone because we are changing the value\n dataLabel = dataLabel.slice();\n dataLabel[0] += value;\n } else {\n dataLabel += value;\n }\n\n return dataLabel;\n }\n }\n }\n });\n\n var controller_doughnut = core_datasetController.extend({\n dataElementType: elements.Arc,\n linkScales: helpers$1.noop,\n\n /**\r\n * @private\r\n */\n _dataElementOptions: ['backgroundColor', 'borderColor', 'borderWidth', 'borderAlign', 'hoverBackgroundColor', 'hoverBorderColor', 'hoverBorderWidth'],\n // Get index of the dataset in relation to the visible datasets. This allows determining the inner and outer radius correctly\n getRingIndex: function getRingIndex(datasetIndex) {\n var ringIndex = 0;\n\n for (var j = 0; j < datasetIndex; ++j) {\n if (this.chart.isDatasetVisible(j)) {\n ++ringIndex;\n }\n }\n\n return ringIndex;\n },\n update: function update(reset) {\n var me = this;\n var chart = me.chart;\n var chartArea = chart.chartArea;\n var opts = chart.options;\n var ratioX = 1;\n var ratioY = 1;\n var offsetX = 0;\n var offsetY = 0;\n var meta = me.getMeta();\n var arcs = meta.data;\n var cutout = opts.cutoutPercentage / 100 || 0;\n var circumference = opts.circumference;\n\n var chartWeight = me._getRingWeight(me.index);\n\n var maxWidth, maxHeight, i, ilen; // If the chart's circumference isn't a full circle, calculate size as a ratio of the width/height of the arc\n\n if (circumference < DOUBLE_PI$1) {\n var startAngle = opts.rotation % DOUBLE_PI$1;\n startAngle += startAngle >= PI$1 ? -DOUBLE_PI$1 : startAngle < -PI$1 ? DOUBLE_PI$1 : 0;\n var endAngle = startAngle + circumference;\n var startX = Math.cos(startAngle);\n var startY = Math.sin(startAngle);\n var endX = Math.cos(endAngle);\n var endY = Math.sin(endAngle);\n var contains0 = startAngle <= 0 && endAngle >= 0 || endAngle >= DOUBLE_PI$1;\n var contains90 = startAngle <= HALF_PI$1 && endAngle >= HALF_PI$1 || endAngle >= DOUBLE_PI$1 + HALF_PI$1;\n var contains180 = startAngle === -PI$1 || endAngle >= PI$1;\n var contains270 = startAngle <= -HALF_PI$1 && endAngle >= -HALF_PI$1 || endAngle >= PI$1 + HALF_PI$1;\n var minX = contains180 ? -1 : Math.min(startX, startX * cutout, endX, endX * cutout);\n var minY = contains270 ? -1 : Math.min(startY, startY * cutout, endY, endY * cutout);\n var maxX = contains0 ? 1 : Math.max(startX, startX * cutout, endX, endX * cutout);\n var maxY = contains90 ? 1 : Math.max(startY, startY * cutout, endY, endY * cutout);\n ratioX = (maxX - minX) / 2;\n ratioY = (maxY - minY) / 2;\n offsetX = -(maxX + minX) / 2;\n offsetY = -(maxY + minY) / 2;\n }\n\n for (i = 0, ilen = arcs.length; i < ilen; ++i) {\n arcs[i]._options = me._resolveDataElementOptions(arcs[i], i);\n }\n\n chart.borderWidth = me.getMaxBorderWidth();\n maxWidth = (chartArea.right - chartArea.left - chart.borderWidth) / ratioX;\n maxHeight = (chartArea.bottom - chartArea.top - chart.borderWidth) / ratioY;\n chart.outerRadius = Math.max(Math.min(maxWidth, maxHeight) / 2, 0);\n chart.innerRadius = Math.max(chart.outerRadius * cutout, 0);\n chart.radiusLength = (chart.outerRadius - chart.innerRadius) / (me._getVisibleDatasetWeightTotal() || 1);\n chart.offsetX = offsetX * chart.outerRadius;\n chart.offsetY = offsetY * chart.outerRadius;\n meta.total = me.calculateTotal();\n me.outerRadius = chart.outerRadius - chart.radiusLength * me._getRingWeightOffset(me.index);\n me.innerRadius = Math.max(me.outerRadius - chart.radiusLength * chartWeight, 0);\n\n for (i = 0, ilen = arcs.length; i < ilen; ++i) {\n me.updateElement(arcs[i], i, reset);\n }\n },\n updateElement: function updateElement(arc, index, reset) {\n var me = this;\n var chart = me.chart;\n var chartArea = chart.chartArea;\n var opts = chart.options;\n var animationOpts = opts.animation;\n var centerX = (chartArea.left + chartArea.right) / 2;\n var centerY = (chartArea.top + chartArea.bottom) / 2;\n var startAngle = opts.rotation; // non reset case handled later\n\n var endAngle = opts.rotation; // non reset case handled later\n\n var dataset = me.getDataset();\n var circumference = reset && animationOpts.animateRotate ? 0 : arc.hidden ? 0 : me.calculateCircumference(dataset.data[index]) * (opts.circumference / DOUBLE_PI$1);\n var innerRadius = reset && animationOpts.animateScale ? 0 : me.innerRadius;\n var outerRadius = reset && animationOpts.animateScale ? 0 : me.outerRadius;\n var options = arc._options || {};\n helpers$1.extend(arc, {\n // Utility\n _datasetIndex: me.index,\n _index: index,\n // Desired view properties\n _model: {\n backgroundColor: options.backgroundColor,\n borderColor: options.borderColor,\n borderWidth: options.borderWidth,\n borderAlign: options.borderAlign,\n x: centerX + chart.offsetX,\n y: centerY + chart.offsetY,\n startAngle: startAngle,\n endAngle: endAngle,\n circumference: circumference,\n outerRadius: outerRadius,\n innerRadius: innerRadius,\n label: helpers$1.valueAtIndexOrDefault(dataset.label, index, chart.data.labels[index])\n }\n });\n var model = arc._model; // Set correct angles if not resetting\n\n if (!reset || !animationOpts.animateRotate) {\n if (index === 0) {\n model.startAngle = opts.rotation;\n } else {\n model.startAngle = me.getMeta().data[index - 1]._model.endAngle;\n }\n\n model.endAngle = model.startAngle + model.circumference;\n }\n\n arc.pivot();\n },\n calculateTotal: function calculateTotal() {\n var dataset = this.getDataset();\n var meta = this.getMeta();\n var total = 0;\n var value;\n helpers$1.each(meta.data, function (element, index) {\n value = dataset.data[index];\n\n if (!isNaN(value) && !element.hidden) {\n total += Math.abs(value);\n }\n });\n /* if (total === 0) {\r\n \ttotal = NaN;\r\n }*/\n\n return total;\n },\n calculateCircumference: function calculateCircumference(value) {\n var total = this.getMeta().total;\n\n if (total > 0 && !isNaN(value)) {\n return DOUBLE_PI$1 * (Math.abs(value) / total);\n }\n\n return 0;\n },\n // gets the max border or hover width to properly scale pie charts\n getMaxBorderWidth: function getMaxBorderWidth(arcs) {\n var me = this;\n var max = 0;\n var chart = me.chart;\n var i, ilen, meta, arc, controller, options, borderWidth, hoverWidth;\n\n if (!arcs) {\n // Find the outmost visible dataset\n for (i = 0, ilen = chart.data.datasets.length; i < ilen; ++i) {\n if (chart.isDatasetVisible(i)) {\n meta = chart.getDatasetMeta(i);\n arcs = meta.data;\n\n if (i !== me.index) {\n controller = meta.controller;\n }\n\n break;\n }\n }\n }\n\n if (!arcs) {\n return 0;\n }\n\n for (i = 0, ilen = arcs.length; i < ilen; ++i) {\n arc = arcs[i];\n\n if (controller) {\n controller._configure();\n\n options = controller._resolveDataElementOptions(arc, i);\n } else {\n options = arc._options;\n }\n\n if (options.borderAlign !== 'inner') {\n borderWidth = options.borderWidth;\n hoverWidth = options.hoverBorderWidth;\n max = borderWidth > max ? borderWidth : max;\n max = hoverWidth > max ? hoverWidth : max;\n }\n }\n\n return max;\n },\n\n /**\r\n * @protected\r\n */\n setHoverStyle: function setHoverStyle(arc) {\n var model = arc._model;\n var options = arc._options;\n var getHoverColor = helpers$1.getHoverColor;\n arc.$previousStyle = {\n backgroundColor: model.backgroundColor,\n borderColor: model.borderColor,\n borderWidth: model.borderWidth\n };\n model.backgroundColor = valueOrDefault$5(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));\n model.borderColor = valueOrDefault$5(options.hoverBorderColor, getHoverColor(options.borderColor));\n model.borderWidth = valueOrDefault$5(options.hoverBorderWidth, options.borderWidth);\n },\n\n /**\r\n * Get radius length offset of the dataset in relation to the visible datasets weights. This allows determining the inner and outer radius correctly\r\n * @private\r\n */\n _getRingWeightOffset: function _getRingWeightOffset(datasetIndex) {\n var ringWeightOffset = 0;\n\n for (var i = 0; i < datasetIndex; ++i) {\n if (this.chart.isDatasetVisible(i)) {\n ringWeightOffset += this._getRingWeight(i);\n }\n }\n\n return ringWeightOffset;\n },\n\n /**\r\n * @private\r\n */\n _getRingWeight: function _getRingWeight(dataSetIndex) {\n return Math.max(valueOrDefault$5(this.chart.data.datasets[dataSetIndex].weight, 1), 0);\n },\n\n /**\r\n * Returns the sum of all visibile data set weights. This value can be 0.\r\n * @private\r\n */\n _getVisibleDatasetWeightTotal: function _getVisibleDatasetWeightTotal() {\n return this._getRingWeightOffset(this.chart.data.datasets.length);\n }\n });\n\n core_defaults._set('horizontalBar', {\n hover: {\n mode: 'index',\n axis: 'y'\n },\n scales: {\n xAxes: [{\n type: 'linear',\n position: 'bottom'\n }],\n yAxes: [{\n type: 'category',\n position: 'left',\n offset: true,\n gridLines: {\n offsetGridLines: true\n }\n }]\n },\n elements: {\n rectangle: {\n borderSkipped: 'left'\n }\n },\n tooltips: {\n mode: 'index',\n axis: 'y'\n }\n });\n\n core_defaults._set('global', {\n datasets: {\n horizontalBar: {\n categoryPercentage: 0.8,\n barPercentage: 0.9\n }\n }\n });\n\n var controller_horizontalBar = controller_bar.extend({\n /**\r\n * @private\r\n */\n _getValueScaleId: function _getValueScaleId() {\n return this.getMeta().xAxisID;\n },\n\n /**\r\n * @private\r\n */\n _getIndexScaleId: function _getIndexScaleId() {\n return this.getMeta().yAxisID;\n }\n });\n var valueOrDefault$6 = helpers$1.valueOrDefault;\n var resolve$2 = helpers$1.options.resolve;\n var isPointInArea = helpers$1.canvas._isPointInArea;\n\n core_defaults._set('line', {\n showLines: true,\n spanGaps: false,\n hover: {\n mode: 'label'\n },\n scales: {\n xAxes: [{\n type: 'category',\n id: 'x-axis-0'\n }],\n yAxes: [{\n type: 'linear',\n id: 'y-axis-0'\n }]\n }\n });\n\n function scaleClip(scale, halfBorderWidth) {\n var tickOpts = scale && scale.options.ticks || {};\n var reverse = tickOpts.reverse;\n var min = tickOpts.min === undefined ? halfBorderWidth : 0;\n var max = tickOpts.max === undefined ? halfBorderWidth : 0;\n return {\n start: reverse ? max : min,\n end: reverse ? min : max\n };\n }\n\n function defaultClip(xScale, yScale, borderWidth) {\n var halfBorderWidth = borderWidth / 2;\n var x = scaleClip(xScale, halfBorderWidth);\n var y = scaleClip(yScale, halfBorderWidth);\n return {\n top: y.end,\n right: x.end,\n bottom: y.start,\n left: x.start\n };\n }\n\n function toClip(value) {\n var t, r, b, l;\n\n if (helpers$1.isObject(value)) {\n t = value.top;\n r = value.right;\n b = value.bottom;\n l = value.left;\n } else {\n t = r = b = l = value;\n }\n\n return {\n top: t,\n right: r,\n bottom: b,\n left: l\n };\n }\n\n var controller_line = core_datasetController.extend({\n datasetElementType: elements.Line,\n dataElementType: elements.Point,\n\n /**\r\n * @private\r\n */\n _datasetElementOptions: ['backgroundColor', 'borderCapStyle', 'borderColor', 'borderDash', 'borderDashOffset', 'borderJoinStyle', 'borderWidth', 'cubicInterpolationMode', 'fill'],\n\n /**\r\n * @private\r\n */\n _dataElementOptions: {\n backgroundColor: 'pointBackgroundColor',\n borderColor: 'pointBorderColor',\n borderWidth: 'pointBorderWidth',\n hitRadius: 'pointHitRadius',\n hoverBackgroundColor: 'pointHoverBackgroundColor',\n hoverBorderColor: 'pointHoverBorderColor',\n hoverBorderWidth: 'pointHoverBorderWidth',\n hoverRadius: 'pointHoverRadius',\n pointStyle: 'pointStyle',\n radius: 'pointRadius',\n rotation: 'pointRotation'\n },\n update: function update(reset) {\n var me = this;\n var meta = me.getMeta();\n var line = meta.dataset;\n var points = meta.data || [];\n var options = me.chart.options;\n var config = me._config;\n var showLine = me._showLine = valueOrDefault$6(config.showLine, options.showLines);\n var i, ilen;\n me._xScale = me.getScaleForId(meta.xAxisID);\n me._yScale = me.getScaleForId(meta.yAxisID); // Update Line\n\n if (showLine) {\n // Compatibility: If the properties are defined with only the old name, use those values\n if (config.tension !== undefined && config.lineTension === undefined) {\n config.lineTension = config.tension;\n } // Utility\n\n\n line._scale = me._yScale;\n line._datasetIndex = me.index; // Data\n\n line._children = points; // Model\n\n line._model = me._resolveDatasetElementOptions(line);\n line.pivot();\n } // Update Points\n\n\n for (i = 0, ilen = points.length; i < ilen; ++i) {\n me.updateElement(points[i], i, reset);\n }\n\n if (showLine && line._model.tension !== 0) {\n me.updateBezierControlPoints();\n } // Now pivot the point for animation\n\n\n for (i = 0, ilen = points.length; i < ilen; ++i) {\n points[i].pivot();\n }\n },\n updateElement: function updateElement(point, index, reset) {\n var me = this;\n var meta = me.getMeta();\n var custom = point.custom || {};\n var dataset = me.getDataset();\n var datasetIndex = me.index;\n var value = dataset.data[index];\n var xScale = me._xScale;\n var yScale = me._yScale;\n var lineModel = meta.dataset._model;\n var x, y;\n\n var options = me._resolveDataElementOptions(point, index);\n\n x = xScale.getPixelForValue(_typeof(value) === 'object' ? value : NaN, index, datasetIndex);\n y = reset ? yScale.getBasePixel() : me.calculatePointY(value, index, datasetIndex); // Utility\n\n point._xScale = xScale;\n point._yScale = yScale;\n point._options = options;\n point._datasetIndex = datasetIndex;\n point._index = index; // Desired view properties\n\n point._model = {\n x: x,\n y: y,\n skip: custom.skip || isNaN(x) || isNaN(y),\n // Appearance\n radius: options.radius,\n pointStyle: options.pointStyle,\n rotation: options.rotation,\n backgroundColor: options.backgroundColor,\n borderColor: options.borderColor,\n borderWidth: options.borderWidth,\n tension: valueOrDefault$6(custom.tension, lineModel ? lineModel.tension : 0),\n steppedLine: lineModel ? lineModel.steppedLine : false,\n // Tooltip\n hitRadius: options.hitRadius\n };\n },\n\n /**\r\n * @private\r\n */\n _resolveDatasetElementOptions: function _resolveDatasetElementOptions(element) {\n var me = this;\n var config = me._config;\n var custom = element.custom || {};\n var options = me.chart.options;\n var lineOptions = options.elements.line;\n\n var values = core_datasetController.prototype._resolveDatasetElementOptions.apply(me, arguments); // The default behavior of lines is to break at null values, according\n // to https://github.com/chartjs/Chart.js/issues/2435#issuecomment-216718158\n // This option gives lines the ability to span gaps\n\n\n values.spanGaps = valueOrDefault$6(config.spanGaps, options.spanGaps);\n values.tension = valueOrDefault$6(config.lineTension, lineOptions.tension);\n values.steppedLine = resolve$2([custom.steppedLine, config.steppedLine, lineOptions.stepped]);\n values.clip = toClip(valueOrDefault$6(config.clip, defaultClip(me._xScale, me._yScale, values.borderWidth)));\n return values;\n },\n calculatePointY: function calculatePointY(value, index, datasetIndex) {\n var me = this;\n var chart = me.chart;\n var yScale = me._yScale;\n var sumPos = 0;\n var sumNeg = 0;\n var i, ds, dsMeta, stackedRightValue, rightValue, metasets, ilen;\n\n if (yScale.options.stacked) {\n rightValue = +yScale.getRightValue(value);\n metasets = chart._getSortedVisibleDatasetMetas();\n ilen = metasets.length;\n\n for (i = 0; i < ilen; ++i) {\n dsMeta = metasets[i];\n\n if (dsMeta.index === datasetIndex) {\n break;\n }\n\n ds = chart.data.datasets[dsMeta.index];\n\n if (dsMeta.type === 'line' && dsMeta.yAxisID === yScale.id) {\n stackedRightValue = +yScale.getRightValue(ds.data[index]);\n\n if (stackedRightValue < 0) {\n sumNeg += stackedRightValue || 0;\n } else {\n sumPos += stackedRightValue || 0;\n }\n }\n }\n\n if (rightValue < 0) {\n return yScale.getPixelForValue(sumNeg + rightValue);\n }\n\n return yScale.getPixelForValue(sumPos + rightValue);\n }\n\n return yScale.getPixelForValue(value);\n },\n updateBezierControlPoints: function updateBezierControlPoints() {\n var me = this;\n var chart = me.chart;\n var meta = me.getMeta();\n var lineModel = meta.dataset._model;\n var area = chart.chartArea;\n var points = meta.data || [];\n var i, ilen, model, controlPoints; // Only consider points that are drawn in case the spanGaps option is used\n\n if (lineModel.spanGaps) {\n points = points.filter(function (pt) {\n return !pt._model.skip;\n });\n }\n\n function capControlPoint(pt, min, max) {\n return Math.max(Math.min(pt, max), min);\n }\n\n if (lineModel.cubicInterpolationMode === 'monotone') {\n helpers$1.splineCurveMonotone(points);\n } else {\n for (i = 0, ilen = points.length; i < ilen; ++i) {\n model = points[i]._model;\n controlPoints = helpers$1.splineCurve(helpers$1.previousItem(points, i)._model, model, helpers$1.nextItem(points, i)._model, lineModel.tension);\n model.controlPointPreviousX = controlPoints.previous.x;\n model.controlPointPreviousY = controlPoints.previous.y;\n model.controlPointNextX = controlPoints.next.x;\n model.controlPointNextY = controlPoints.next.y;\n }\n }\n\n if (chart.options.elements.line.capBezierPoints) {\n for (i = 0, ilen = points.length; i < ilen; ++i) {\n model = points[i]._model;\n\n if (isPointInArea(model, area)) {\n if (i > 0 && isPointInArea(points[i - 1]._model, area)) {\n model.controlPointPreviousX = capControlPoint(model.controlPointPreviousX, area.left, area.right);\n model.controlPointPreviousY = capControlPoint(model.controlPointPreviousY, area.top, area.bottom);\n }\n\n if (i < points.length - 1 && isPointInArea(points[i + 1]._model, area)) {\n model.controlPointNextX = capControlPoint(model.controlPointNextX, area.left, area.right);\n model.controlPointNextY = capControlPoint(model.controlPointNextY, area.top, area.bottom);\n }\n }\n }\n }\n },\n draw: function draw() {\n var me = this;\n var chart = me.chart;\n var meta = me.getMeta();\n var points = meta.data || [];\n var area = chart.chartArea;\n var canvas = chart.canvas;\n var i = 0;\n var ilen = points.length;\n var clip;\n\n if (me._showLine) {\n clip = meta.dataset._model.clip;\n helpers$1.canvas.clipArea(chart.ctx, {\n left: clip.left === false ? 0 : area.left - clip.left,\n right: clip.right === false ? canvas.width : area.right + clip.right,\n top: clip.top === false ? 0 : area.top - clip.top,\n bottom: clip.bottom === false ? canvas.height : area.bottom + clip.bottom\n });\n meta.dataset.draw();\n helpers$1.canvas.unclipArea(chart.ctx);\n } // Draw the points\n\n\n for (; i < ilen; ++i) {\n points[i].draw(area);\n }\n },\n\n /**\r\n * @protected\r\n */\n setHoverStyle: function setHoverStyle(point) {\n var model = point._model;\n var options = point._options;\n var getHoverColor = helpers$1.getHoverColor;\n point.$previousStyle = {\n backgroundColor: model.backgroundColor,\n borderColor: model.borderColor,\n borderWidth: model.borderWidth,\n radius: model.radius\n };\n model.backgroundColor = valueOrDefault$6(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));\n model.borderColor = valueOrDefault$6(options.hoverBorderColor, getHoverColor(options.borderColor));\n model.borderWidth = valueOrDefault$6(options.hoverBorderWidth, options.borderWidth);\n model.radius = valueOrDefault$6(options.hoverRadius, options.radius);\n }\n });\n var resolve$3 = helpers$1.options.resolve;\n\n core_defaults._set('polarArea', {\n scale: {\n type: 'radialLinear',\n angleLines: {\n display: false\n },\n gridLines: {\n circular: true\n },\n pointLabels: {\n display: false\n },\n ticks: {\n beginAtZero: true\n }\n },\n // Boolean - Whether to animate the rotation of the chart\n animation: {\n animateRotate: true,\n animateScale: true\n },\n startAngle: -0.5 * Math.PI,\n legendCallback: function legendCallback(chart) {\n var list = document.createElement('ul');\n var data = chart.data;\n var datasets = data.datasets;\n var labels = data.labels;\n var i, ilen, listItem, listItemSpan;\n list.setAttribute('class', chart.id + '-legend');\n\n if (datasets.length) {\n for (i = 0, ilen = datasets[0].data.length; i < ilen; ++i) {\n listItem = list.appendChild(document.createElement('li'));\n listItemSpan = listItem.appendChild(document.createElement('span'));\n listItemSpan.style.backgroundColor = datasets[0].backgroundColor[i];\n\n if (labels[i]) {\n listItem.appendChild(document.createTextNode(labels[i]));\n }\n }\n }\n\n return list.outerHTML;\n },\n legend: {\n labels: {\n generateLabels: function generateLabels(chart) {\n var data = chart.data;\n\n if (data.labels.length && data.datasets.length) {\n return data.labels.map(function (label, i) {\n var meta = chart.getDatasetMeta(0);\n var style = meta.controller.getStyle(i);\n return {\n text: label,\n fillStyle: style.backgroundColor,\n strokeStyle: style.borderColor,\n lineWidth: style.borderWidth,\n hidden: isNaN(data.datasets[0].data[i]) || meta.data[i].hidden,\n // Extra data used for toggling the correct item\n index: i\n };\n });\n }\n\n return [];\n }\n },\n onClick: function onClick(e, legendItem) {\n var index = legendItem.index;\n var chart = this.chart;\n var i, ilen, meta;\n\n for (i = 0, ilen = (chart.data.datasets || []).length; i < ilen; ++i) {\n meta = chart.getDatasetMeta(i);\n meta.data[index].hidden = !meta.data[index].hidden;\n }\n\n chart.update();\n }\n },\n // Need to override these to give a nice default\n tooltips: {\n callbacks: {\n title: function title() {\n return '';\n },\n label: function label(item, data) {\n return data.labels[item.index] + ': ' + item.yLabel;\n }\n }\n }\n });\n\n var controller_polarArea = core_datasetController.extend({\n dataElementType: elements.Arc,\n linkScales: helpers$1.noop,\n\n /**\r\n * @private\r\n */\n _dataElementOptions: ['backgroundColor', 'borderColor', 'borderWidth', 'borderAlign', 'hoverBackgroundColor', 'hoverBorderColor', 'hoverBorderWidth'],\n\n /**\r\n * @private\r\n */\n _getIndexScaleId: function _getIndexScaleId() {\n return this.chart.scale.id;\n },\n\n /**\r\n * @private\r\n */\n _getValueScaleId: function _getValueScaleId() {\n return this.chart.scale.id;\n },\n update: function update(reset) {\n var me = this;\n var dataset = me.getDataset();\n var meta = me.getMeta();\n var start = me.chart.options.startAngle || 0;\n var starts = me._starts = [];\n var angles = me._angles = [];\n var arcs = meta.data;\n var i, ilen, angle;\n\n me._updateRadius();\n\n meta.count = me.countVisibleElements();\n\n for (i = 0, ilen = dataset.data.length; i < ilen; i++) {\n starts[i] = start;\n angle = me._computeAngle(i);\n angles[i] = angle;\n start += angle;\n }\n\n for (i = 0, ilen = arcs.length; i < ilen; ++i) {\n arcs[i]._options = me._resolveDataElementOptions(arcs[i], i);\n me.updateElement(arcs[i], i, reset);\n }\n },\n\n /**\r\n * @private\r\n */\n _updateRadius: function _updateRadius() {\n var me = this;\n var chart = me.chart;\n var chartArea = chart.chartArea;\n var opts = chart.options;\n var minSize = Math.min(chartArea.right - chartArea.left, chartArea.bottom - chartArea.top);\n chart.outerRadius = Math.max(minSize / 2, 0);\n chart.innerRadius = Math.max(opts.cutoutPercentage ? chart.outerRadius / 100 * opts.cutoutPercentage : 1, 0);\n chart.radiusLength = (chart.outerRadius - chart.innerRadius) / chart.getVisibleDatasetCount();\n me.outerRadius = chart.outerRadius - chart.radiusLength * me.index;\n me.innerRadius = me.outerRadius - chart.radiusLength;\n },\n updateElement: function updateElement(arc, index, reset) {\n var me = this;\n var chart = me.chart;\n var dataset = me.getDataset();\n var opts = chart.options;\n var animationOpts = opts.animation;\n var scale = chart.scale;\n var labels = chart.data.labels;\n var centerX = scale.xCenter;\n var centerY = scale.yCenter; // var negHalfPI = -0.5 * Math.PI;\n\n var datasetStartAngle = opts.startAngle;\n var distance = arc.hidden ? 0 : scale.getDistanceFromCenterForValue(dataset.data[index]);\n var startAngle = me._starts[index];\n var endAngle = startAngle + (arc.hidden ? 0 : me._angles[index]);\n var resetRadius = animationOpts.animateScale ? 0 : scale.getDistanceFromCenterForValue(dataset.data[index]);\n var options = arc._options || {};\n helpers$1.extend(arc, {\n // Utility\n _datasetIndex: me.index,\n _index: index,\n _scale: scale,\n // Desired view properties\n _model: {\n backgroundColor: options.backgroundColor,\n borderColor: options.borderColor,\n borderWidth: options.borderWidth,\n borderAlign: options.borderAlign,\n x: centerX,\n y: centerY,\n innerRadius: 0,\n outerRadius: reset ? resetRadius : distance,\n startAngle: reset && animationOpts.animateRotate ? datasetStartAngle : startAngle,\n endAngle: reset && animationOpts.animateRotate ? datasetStartAngle : endAngle,\n label: helpers$1.valueAtIndexOrDefault(labels, index, labels[index])\n }\n });\n arc.pivot();\n },\n countVisibleElements: function countVisibleElements() {\n var dataset = this.getDataset();\n var meta = this.getMeta();\n var count = 0;\n helpers$1.each(meta.data, function (element, index) {\n if (!isNaN(dataset.data[index]) && !element.hidden) {\n count++;\n }\n });\n return count;\n },\n\n /**\r\n * @protected\r\n */\n setHoverStyle: function setHoverStyle(arc) {\n var model = arc._model;\n var options = arc._options;\n var getHoverColor = helpers$1.getHoverColor;\n var valueOrDefault = helpers$1.valueOrDefault;\n arc.$previousStyle = {\n backgroundColor: model.backgroundColor,\n borderColor: model.borderColor,\n borderWidth: model.borderWidth\n };\n model.backgroundColor = valueOrDefault(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));\n model.borderColor = valueOrDefault(options.hoverBorderColor, getHoverColor(options.borderColor));\n model.borderWidth = valueOrDefault(options.hoverBorderWidth, options.borderWidth);\n },\n\n /**\r\n * @private\r\n */\n _computeAngle: function _computeAngle(index) {\n var me = this;\n var count = this.getMeta().count;\n var dataset = me.getDataset();\n var meta = me.getMeta();\n\n if (isNaN(dataset.data[index]) || meta.data[index].hidden) {\n return 0;\n } // Scriptable options\n\n\n var context = {\n chart: me.chart,\n dataIndex: index,\n dataset: dataset,\n datasetIndex: me.index\n };\n return resolve$3([me.chart.options.elements.arc.angle, 2 * Math.PI / count], context, index);\n }\n });\n\n core_defaults._set('pie', helpers$1.clone(core_defaults.doughnut));\n\n core_defaults._set('pie', {\n cutoutPercentage: 0\n }); // Pie charts are Doughnut chart with different defaults\n\n\n var controller_pie = controller_doughnut;\n var valueOrDefault$7 = helpers$1.valueOrDefault;\n\n core_defaults._set('radar', {\n spanGaps: false,\n scale: {\n type: 'radialLinear'\n },\n elements: {\n line: {\n fill: 'start',\n tension: 0 // no bezier in radar\n\n }\n }\n });\n\n var controller_radar = core_datasetController.extend({\n datasetElementType: elements.Line,\n dataElementType: elements.Point,\n linkScales: helpers$1.noop,\n\n /**\r\n * @private\r\n */\n _datasetElementOptions: ['backgroundColor', 'borderWidth', 'borderColor', 'borderCapStyle', 'borderDash', 'borderDashOffset', 'borderJoinStyle', 'fill'],\n\n /**\r\n * @private\r\n */\n _dataElementOptions: {\n backgroundColor: 'pointBackgroundColor',\n borderColor: 'pointBorderColor',\n borderWidth: 'pointBorderWidth',\n hitRadius: 'pointHitRadius',\n hoverBackgroundColor: 'pointHoverBackgroundColor',\n hoverBorderColor: 'pointHoverBorderColor',\n hoverBorderWidth: 'pointHoverBorderWidth',\n hoverRadius: 'pointHoverRadius',\n pointStyle: 'pointStyle',\n radius: 'pointRadius',\n rotation: 'pointRotation'\n },\n\n /**\r\n * @private\r\n */\n _getIndexScaleId: function _getIndexScaleId() {\n return this.chart.scale.id;\n },\n\n /**\r\n * @private\r\n */\n _getValueScaleId: function _getValueScaleId() {\n return this.chart.scale.id;\n },\n update: function update(reset) {\n var me = this;\n var meta = me.getMeta();\n var line = meta.dataset;\n var points = meta.data || [];\n var scale = me.chart.scale;\n var config = me._config;\n var i, ilen; // Compatibility: If the properties are defined with only the old name, use those values\n\n if (config.tension !== undefined && config.lineTension === undefined) {\n config.lineTension = config.tension;\n } // Utility\n\n\n line._scale = scale;\n line._datasetIndex = me.index; // Data\n\n line._children = points;\n line._loop = true; // Model\n\n line._model = me._resolveDatasetElementOptions(line);\n line.pivot(); // Update Points\n\n for (i = 0, ilen = points.length; i < ilen; ++i) {\n me.updateElement(points[i], i, reset);\n } // Update bezier control points\n\n\n me.updateBezierControlPoints(); // Now pivot the point for animation\n\n for (i = 0, ilen = points.length; i < ilen; ++i) {\n points[i].pivot();\n }\n },\n updateElement: function updateElement(point, index, reset) {\n var me = this;\n var custom = point.custom || {};\n var dataset = me.getDataset();\n var scale = me.chart.scale;\n var pointPosition = scale.getPointPositionForValue(index, dataset.data[index]);\n\n var options = me._resolveDataElementOptions(point, index);\n\n var lineModel = me.getMeta().dataset._model;\n\n var x = reset ? scale.xCenter : pointPosition.x;\n var y = reset ? scale.yCenter : pointPosition.y; // Utility\n\n point._scale = scale;\n point._options = options;\n point._datasetIndex = me.index;\n point._index = index; // Desired view properties\n\n point._model = {\n x: x,\n // value not used in dataset scale, but we want a consistent API between scales\n y: y,\n skip: custom.skip || isNaN(x) || isNaN(y),\n // Appearance\n radius: options.radius,\n pointStyle: options.pointStyle,\n rotation: options.rotation,\n backgroundColor: options.backgroundColor,\n borderColor: options.borderColor,\n borderWidth: options.borderWidth,\n tension: valueOrDefault$7(custom.tension, lineModel ? lineModel.tension : 0),\n // Tooltip\n hitRadius: options.hitRadius\n };\n },\n\n /**\r\n * @private\r\n */\n _resolveDatasetElementOptions: function _resolveDatasetElementOptions() {\n var me = this;\n var config = me._config;\n var options = me.chart.options;\n\n var values = core_datasetController.prototype._resolveDatasetElementOptions.apply(me, arguments);\n\n values.spanGaps = valueOrDefault$7(config.spanGaps, options.spanGaps);\n values.tension = valueOrDefault$7(config.lineTension, options.elements.line.tension);\n return values;\n },\n updateBezierControlPoints: function updateBezierControlPoints() {\n var me = this;\n var meta = me.getMeta();\n var area = me.chart.chartArea;\n var points = meta.data || [];\n var i, ilen, model, controlPoints; // Only consider points that are drawn in case the spanGaps option is used\n\n if (meta.dataset._model.spanGaps) {\n points = points.filter(function (pt) {\n return !pt._model.skip;\n });\n }\n\n function capControlPoint(pt, min, max) {\n return Math.max(Math.min(pt, max), min);\n }\n\n for (i = 0, ilen = points.length; i < ilen; ++i) {\n model = points[i]._model;\n controlPoints = helpers$1.splineCurve(helpers$1.previousItem(points, i, true)._model, model, helpers$1.nextItem(points, i, true)._model, model.tension); // Prevent the bezier going outside of the bounds of the graph\n\n model.controlPointPreviousX = capControlPoint(controlPoints.previous.x, area.left, area.right);\n model.controlPointPreviousY = capControlPoint(controlPoints.previous.y, area.top, area.bottom);\n model.controlPointNextX = capControlPoint(controlPoints.next.x, area.left, area.right);\n model.controlPointNextY = capControlPoint(controlPoints.next.y, area.top, area.bottom);\n }\n },\n setHoverStyle: function setHoverStyle(point) {\n var model = point._model;\n var options = point._options;\n var getHoverColor = helpers$1.getHoverColor;\n point.$previousStyle = {\n backgroundColor: model.backgroundColor,\n borderColor: model.borderColor,\n borderWidth: model.borderWidth,\n radius: model.radius\n };\n model.backgroundColor = valueOrDefault$7(options.hoverBackgroundColor, getHoverColor(options.backgroundColor));\n model.borderColor = valueOrDefault$7(options.hoverBorderColor, getHoverColor(options.borderColor));\n model.borderWidth = valueOrDefault$7(options.hoverBorderWidth, options.borderWidth);\n model.radius = valueOrDefault$7(options.hoverRadius, options.radius);\n }\n });\n\n core_defaults._set('scatter', {\n hover: {\n mode: 'single'\n },\n scales: {\n xAxes: [{\n id: 'x-axis-1',\n // need an ID so datasets can reference the scale\n type: 'linear',\n // scatter should not use a category axis\n position: 'bottom'\n }],\n yAxes: [{\n id: 'y-axis-1',\n type: 'linear',\n position: 'left'\n }]\n },\n tooltips: {\n callbacks: {\n title: function title() {\n return ''; // doesn't make sense for scatter since data are formatted as a point\n },\n label: function label(item) {\n return '(' + item.xLabel + ', ' + item.yLabel + ')';\n }\n }\n }\n });\n\n core_defaults._set('global', {\n datasets: {\n scatter: {\n showLine: false\n }\n }\n }); // Scatter charts use line controllers\n\n\n var controller_scatter = controller_line; // NOTE export a map in which the key represents the controller type, not\n // the class, and so must be CamelCase in order to be correctly retrieved\n // by the controller in core.controller.js (`controllers[meta.type]`).\n\n var controllers = {\n bar: controller_bar,\n bubble: controller_bubble,\n doughnut: controller_doughnut,\n horizontalBar: controller_horizontalBar,\n line: controller_line,\n polarArea: controller_polarArea,\n pie: controller_pie,\n radar: controller_radar,\n scatter: controller_scatter\n };\n /**\r\n * Helper function to get relative position for an event\r\n * @param {Event|IEvent} event - The event to get the position for\r\n * @param {Chart} chart - The chart\r\n * @returns {object} the event position\r\n */\n\n function getRelativePosition(e, chart) {\n if (e.native) {\n return {\n x: e.x,\n y: e.y\n };\n }\n\n return helpers$1.getRelativePosition(e, chart);\n }\n /**\r\n * Helper function to traverse all of the visible elements in the chart\r\n * @param {Chart} chart - the chart\r\n * @param {function} handler - the callback to execute for each visible item\r\n */\n\n\n function parseVisibleItems(chart, handler) {\n var metasets = chart._getSortedVisibleDatasetMetas();\n\n var metadata, i, j, ilen, jlen, element;\n\n for (i = 0, ilen = metasets.length; i < ilen; ++i) {\n metadata = metasets[i].data;\n\n for (j = 0, jlen = metadata.length; j < jlen; ++j) {\n element = metadata[j];\n\n if (!element._view.skip) {\n handler(element);\n }\n }\n }\n }\n /**\r\n * Helper function to get the items that intersect the event position\r\n * @param {ChartElement[]} items - elements to filter\r\n * @param {object} position - the point to be nearest to\r\n * @return {ChartElement[]} the nearest items\r\n */\n\n\n function getIntersectItems(chart, position) {\n var elements = [];\n parseVisibleItems(chart, function (element) {\n if (element.inRange(position.x, position.y)) {\n elements.push(element);\n }\n });\n return elements;\n }\n /**\r\n * Helper function to get the items nearest to the event position considering all visible items in teh chart\r\n * @param {Chart} chart - the chart to look at elements from\r\n * @param {object} position - the point to be nearest to\r\n * @param {boolean} intersect - if true, only consider items that intersect the position\r\n * @param {function} distanceMetric - function to provide the distance between points\r\n * @return {ChartElement[]} the nearest items\r\n */\n\n\n function getNearestItems(chart, position, intersect, distanceMetric) {\n var minDistance = Number.POSITIVE_INFINITY;\n var nearestItems = [];\n parseVisibleItems(chart, function (element) {\n if (intersect && !element.inRange(position.x, position.y)) {\n return;\n }\n\n var center = element.getCenterPoint();\n var distance = distanceMetric(position, center);\n\n if (distance < minDistance) {\n nearestItems = [element];\n minDistance = distance;\n } else if (distance === minDistance) {\n // Can have multiple items at the same distance in which case we sort by size\n nearestItems.push(element);\n }\n });\n return nearestItems;\n }\n /**\r\n * Get a distance metric function for two points based on the\r\n * axis mode setting\r\n * @param {string} axis - the axis mode. x|y|xy\r\n */\n\n\n function getDistanceMetricForAxis(axis) {\n var useX = axis.indexOf('x') !== -1;\n var useY = axis.indexOf('y') !== -1;\n return function (pt1, pt2) {\n var deltaX = useX ? Math.abs(pt1.x - pt2.x) : 0;\n var deltaY = useY ? Math.abs(pt1.y - pt2.y) : 0;\n return Math.sqrt(Math.pow(deltaX, 2) + Math.pow(deltaY, 2));\n };\n }\n\n function indexMode(chart, e, options) {\n var position = getRelativePosition(e, chart); // Default axis for index mode is 'x' to match old behaviour\n\n options.axis = options.axis || 'x';\n var distanceMetric = getDistanceMetricForAxis(options.axis);\n var items = options.intersect ? getIntersectItems(chart, position) : getNearestItems(chart, position, false, distanceMetric);\n var elements = [];\n\n if (!items.length) {\n return [];\n }\n\n chart._getSortedVisibleDatasetMetas().forEach(function (meta) {\n var element = meta.data[items[0]._index]; // don't count items that are skipped (null data)\n\n if (element && !element._view.skip) {\n elements.push(element);\n }\n });\n\n return elements;\n }\n /**\r\n * @interface IInteractionOptions\r\n */\n\n /**\r\n * If true, only consider items that intersect the point\r\n * @name IInterfaceOptions#boolean\r\n * @type Boolean\r\n */\n\n /**\r\n * Contains interaction related functions\r\n * @namespace Chart.Interaction\r\n */\n\n\n var core_interaction = {\n // Helper function for different modes\n modes: {\n single: function single(chart, e) {\n var position = getRelativePosition(e, chart);\n var elements = [];\n parseVisibleItems(chart, function (element) {\n if (element.inRange(position.x, position.y)) {\n elements.push(element);\n return elements;\n }\n });\n return elements.slice(0, 1);\n },\n\n /**\r\n * @function Chart.Interaction.modes.label\r\n * @deprecated since version 2.4.0\r\n * @todo remove at version 3\r\n * @private\r\n */\n label: indexMode,\n\n /**\r\n * Returns items at the same index. If the options.intersect parameter is true, we only return items if we intersect something\r\n * If the options.intersect mode is false, we find the nearest item and return the items at the same index as that item\r\n * @function Chart.Interaction.modes.index\r\n * @since v2.4.0\r\n * @param {Chart} chart - the chart we are returning items from\r\n * @param {Event} e - the event we are find things at\r\n * @param {IInteractionOptions} options - options to use during interaction\r\n * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n */\n index: indexMode,\n\n /**\r\n * Returns items in the same dataset. If the options.intersect parameter is true, we only return items if we intersect something\r\n * If the options.intersect is false, we find the nearest item and return the items in that dataset\r\n * @function Chart.Interaction.modes.dataset\r\n * @param {Chart} chart - the chart we are returning items from\r\n * @param {Event} e - the event we are find things at\r\n * @param {IInteractionOptions} options - options to use during interaction\r\n * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n */\n dataset: function dataset(chart, e, options) {\n var position = getRelativePosition(e, chart);\n options.axis = options.axis || 'xy';\n var distanceMetric = getDistanceMetricForAxis(options.axis);\n var items = options.intersect ? getIntersectItems(chart, position) : getNearestItems(chart, position, false, distanceMetric);\n\n if (items.length > 0) {\n items = chart.getDatasetMeta(items[0]._datasetIndex).data;\n }\n\n return items;\n },\n\n /**\r\n * @function Chart.Interaction.modes.x-axis\r\n * @deprecated since version 2.4.0. Use index mode and intersect == true\r\n * @todo remove at version 3\r\n * @private\r\n */\n 'x-axis': function xAxis(chart, e) {\n return indexMode(chart, e, {\n intersect: false\n });\n },\n\n /**\r\n * Point mode returns all elements that hit test based on the event position\r\n * of the event\r\n * @function Chart.Interaction.modes.intersect\r\n * @param {Chart} chart - the chart we are returning items from\r\n * @param {Event} e - the event we are find things at\r\n * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n */\n point: function point(chart, e) {\n var position = getRelativePosition(e, chart);\n return getIntersectItems(chart, position);\n },\n\n /**\r\n * nearest mode returns the element closest to the point\r\n * @function Chart.Interaction.modes.intersect\r\n * @param {Chart} chart - the chart we are returning items from\r\n * @param {Event} e - the event we are find things at\r\n * @param {IInteractionOptions} options - options to use\r\n * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n */\n nearest: function nearest(chart, e, options) {\n var position = getRelativePosition(e, chart);\n options.axis = options.axis || 'xy';\n var distanceMetric = getDistanceMetricForAxis(options.axis);\n return getNearestItems(chart, position, options.intersect, distanceMetric);\n },\n\n /**\r\n * x mode returns the elements that hit-test at the current x coordinate\r\n * @function Chart.Interaction.modes.x\r\n * @param {Chart} chart - the chart we are returning items from\r\n * @param {Event} e - the event we are find things at\r\n * @param {IInteractionOptions} options - options to use\r\n * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n */\n x: function x(chart, e, options) {\n var position = getRelativePosition(e, chart);\n var items = [];\n var intersectsItem = false;\n parseVisibleItems(chart, function (element) {\n if (element.inXRange(position.x)) {\n items.push(element);\n }\n\n if (element.inRange(position.x, position.y)) {\n intersectsItem = true;\n }\n }); // If we want to trigger on an intersect and we don't have any items\n // that intersect the position, return nothing\n\n if (options.intersect && !intersectsItem) {\n items = [];\n }\n\n return items;\n },\n\n /**\r\n * y mode returns the elements that hit-test at the current y coordinate\r\n * @function Chart.Interaction.modes.y\r\n * @param {Chart} chart - the chart we are returning items from\r\n * @param {Event} e - the event we are find things at\r\n * @param {IInteractionOptions} options - options to use\r\n * @return {Chart.Element[]} Array of elements that are under the point. If none are found, an empty array is returned\r\n */\n y: function y(chart, e, options) {\n var position = getRelativePosition(e, chart);\n var items = [];\n var intersectsItem = false;\n parseVisibleItems(chart, function (element) {\n if (element.inYRange(position.y)) {\n items.push(element);\n }\n\n if (element.inRange(position.x, position.y)) {\n intersectsItem = true;\n }\n }); // If we want to trigger on an intersect and we don't have any items\n // that intersect the position, return nothing\n\n if (options.intersect && !intersectsItem) {\n items = [];\n }\n\n return items;\n }\n }\n };\n var extend = helpers$1.extend;\n\n function filterByPosition(array, position) {\n return helpers$1.where(array, function (v) {\n return v.pos === position;\n });\n }\n\n function sortByWeight(array, reverse) {\n return array.sort(function (a, b) {\n var v0 = reverse ? b : a;\n var v1 = reverse ? a : b;\n return v0.weight === v1.weight ? v0.index - v1.index : v0.weight - v1.weight;\n });\n }\n\n function wrapBoxes(boxes) {\n var layoutBoxes = [];\n var i, ilen, box;\n\n for (i = 0, ilen = (boxes || []).length; i < ilen; ++i) {\n box = boxes[i];\n layoutBoxes.push({\n index: i,\n box: box,\n pos: box.position,\n horizontal: box.isHorizontal(),\n weight: box.weight\n });\n }\n\n return layoutBoxes;\n }\n\n function setLayoutDims(layouts, params) {\n var i, ilen, layout;\n\n for (i = 0, ilen = layouts.length; i < ilen; ++i) {\n layout = layouts[i]; // store width used instead of chartArea.w in fitBoxes\n\n layout.width = layout.horizontal ? layout.box.fullWidth && params.availableWidth : params.vBoxMaxWidth; // store height used instead of chartArea.h in fitBoxes\n\n layout.height = layout.horizontal && params.hBoxMaxHeight;\n }\n }\n\n function buildLayoutBoxes(boxes) {\n var layoutBoxes = wrapBoxes(boxes);\n var left = sortByWeight(filterByPosition(layoutBoxes, 'left'), true);\n var right = sortByWeight(filterByPosition(layoutBoxes, 'right'));\n var top = sortByWeight(filterByPosition(layoutBoxes, 'top'), true);\n var bottom = sortByWeight(filterByPosition(layoutBoxes, 'bottom'));\n return {\n leftAndTop: left.concat(top),\n rightAndBottom: right.concat(bottom),\n chartArea: filterByPosition(layoutBoxes, 'chartArea'),\n vertical: left.concat(right),\n horizontal: top.concat(bottom)\n };\n }\n\n function getCombinedMax(maxPadding, chartArea, a, b) {\n return Math.max(maxPadding[a], chartArea[a]) + Math.max(maxPadding[b], chartArea[b]);\n }\n\n function updateDims(chartArea, params, layout) {\n var box = layout.box;\n var maxPadding = chartArea.maxPadding;\n var newWidth, newHeight;\n\n if (layout.size) {\n // this layout was already counted for, lets first reduce old size\n chartArea[layout.pos] -= layout.size;\n }\n\n layout.size = layout.horizontal ? box.height : box.width;\n chartArea[layout.pos] += layout.size;\n\n if (box.getPadding) {\n var boxPadding = box.getPadding();\n maxPadding.top = Math.max(maxPadding.top, boxPadding.top);\n maxPadding.left = Math.max(maxPadding.left, boxPadding.left);\n maxPadding.bottom = Math.max(maxPadding.bottom, boxPadding.bottom);\n maxPadding.right = Math.max(maxPadding.right, boxPadding.right);\n }\n\n newWidth = params.outerWidth - getCombinedMax(maxPadding, chartArea, 'left', 'right');\n newHeight = params.outerHeight - getCombinedMax(maxPadding, chartArea, 'top', 'bottom');\n\n if (newWidth !== chartArea.w || newHeight !== chartArea.h) {\n chartArea.w = newWidth;\n chartArea.h = newHeight; // return true if chart area changed in layout's direction\n\n var sizes = layout.horizontal ? [newWidth, chartArea.w] : [newHeight, chartArea.h];\n return sizes[0] !== sizes[1] && (!isNaN(sizes[0]) || !isNaN(sizes[1]));\n }\n }\n\n function handleMaxPadding(chartArea) {\n var maxPadding = chartArea.maxPadding;\n\n function updatePos(pos) {\n var change = Math.max(maxPadding[pos] - chartArea[pos], 0);\n chartArea[pos] += change;\n return change;\n }\n\n chartArea.y += updatePos('top');\n chartArea.x += updatePos('left');\n updatePos('right');\n updatePos('bottom');\n }\n\n function getMargins(horizontal, chartArea) {\n var maxPadding = chartArea.maxPadding;\n\n function marginForPositions(positions) {\n var margin = {\n left: 0,\n top: 0,\n right: 0,\n bottom: 0\n };\n positions.forEach(function (pos) {\n margin[pos] = Math.max(chartArea[pos], maxPadding[pos]);\n });\n return margin;\n }\n\n return horizontal ? marginForPositions(['left', 'right']) : marginForPositions(['top', 'bottom']);\n }\n\n function fitBoxes(boxes, chartArea, params) {\n var refitBoxes = [];\n var i, ilen, layout, box, refit, changed;\n\n for (i = 0, ilen = boxes.length; i < ilen; ++i) {\n layout = boxes[i];\n box = layout.box;\n box.update(layout.width || chartArea.w, layout.height || chartArea.h, getMargins(layout.horizontal, chartArea));\n\n if (updateDims(chartArea, params, layout)) {\n changed = true;\n\n if (refitBoxes.length) {\n // Dimensions changed and there were non full width boxes before this\n // -> we have to refit those\n refit = true;\n }\n }\n\n if (!box.fullWidth) {\n // fullWidth boxes don't need to be re-fitted in any case\n refitBoxes.push(layout);\n }\n }\n\n return refit ? fitBoxes(refitBoxes, chartArea, params) || changed : changed;\n }\n\n function placeBoxes(boxes, chartArea, params) {\n var userPadding = params.padding;\n var x = chartArea.x;\n var y = chartArea.y;\n var i, ilen, layout, box;\n\n for (i = 0, ilen = boxes.length; i < ilen; ++i) {\n layout = boxes[i];\n box = layout.box;\n\n if (layout.horizontal) {\n box.left = box.fullWidth ? userPadding.left : chartArea.left;\n box.right = box.fullWidth ? params.outerWidth - userPadding.right : chartArea.left + chartArea.w;\n box.top = y;\n box.bottom = y + box.height;\n box.width = box.right - box.left;\n y = box.bottom;\n } else {\n box.left = x;\n box.right = x + box.width;\n box.top = chartArea.top;\n box.bottom = chartArea.top + chartArea.h;\n box.height = box.bottom - box.top;\n x = box.right;\n }\n }\n\n chartArea.x = x;\n chartArea.y = y;\n }\n\n core_defaults._set('global', {\n layout: {\n padding: {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n }\n }\n });\n /**\r\n * @interface ILayoutItem\r\n * @prop {string} position - The position of the item in the chart layout. Possible values are\r\n * 'left', 'top', 'right', 'bottom', and 'chartArea'\r\n * @prop {number} weight - The weight used to sort the item. Higher weights are further away from the chart area\r\n * @prop {boolean} fullWidth - if true, and the item is horizontal, then push vertical boxes down\r\n * @prop {function} isHorizontal - returns true if the layout item is horizontal (ie. top or bottom)\r\n * @prop {function} update - Takes two parameters: width and height. Returns size of item\r\n * @prop {function} getPadding - Returns an object with padding on the edges\r\n * @prop {number} width - Width of item. Must be valid after update()\r\n * @prop {number} height - Height of item. Must be valid after update()\r\n * @prop {number} left - Left edge of the item. Set by layout system and cannot be used in update\r\n * @prop {number} top - Top edge of the item. Set by layout system and cannot be used in update\r\n * @prop {number} right - Right edge of the item. Set by layout system and cannot be used in update\r\n * @prop {number} bottom - Bottom edge of the item. Set by layout system and cannot be used in update\r\n */\n // The layout service is very self explanatory. It's responsible for the layout within a chart.\n // Scales, Legends and Plugins all rely on the layout service and can easily register to be placed anywhere they need\n // It is this service's responsibility of carrying out that layout.\n\n\n var core_layouts = {\n defaults: {},\n\n /**\r\n * Register a box to a chart.\r\n * A box is simply a reference to an object that requires layout. eg. Scales, Legend, Title.\r\n * @param {Chart} chart - the chart to use\r\n * @param {ILayoutItem} item - the item to add to be layed out\r\n */\n addBox: function addBox(chart, item) {\n if (!chart.boxes) {\n chart.boxes = [];\n } // initialize item with default values\n\n\n item.fullWidth = item.fullWidth || false;\n item.position = item.position || 'top';\n item.weight = item.weight || 0;\n\n item._layers = item._layers || function () {\n return [{\n z: 0,\n draw: function draw() {\n item.draw.apply(item, arguments);\n }\n }];\n };\n\n chart.boxes.push(item);\n },\n\n /**\r\n * Remove a layoutItem from a chart\r\n * @param {Chart} chart - the chart to remove the box from\r\n * @param {ILayoutItem} layoutItem - the item to remove from the layout\r\n */\n removeBox: function removeBox(chart, layoutItem) {\n var index = chart.boxes ? chart.boxes.indexOf(layoutItem) : -1;\n\n if (index !== -1) {\n chart.boxes.splice(index, 1);\n }\n },\n\n /**\r\n * Sets (or updates) options on the given `item`.\r\n * @param {Chart} chart - the chart in which the item lives (or will be added to)\r\n * @param {ILayoutItem} item - the item to configure with the given options\r\n * @param {object} options - the new item options.\r\n */\n configure: function configure(chart, item, options) {\n var props = ['fullWidth', 'position', 'weight'];\n var ilen = props.length;\n var i = 0;\n var prop;\n\n for (; i < ilen; ++i) {\n prop = props[i];\n\n if (options.hasOwnProperty(prop)) {\n item[prop] = options[prop];\n }\n }\n },\n\n /**\r\n * Fits boxes of the given chart into the given size by having each box measure itself\r\n * then running a fitting algorithm\r\n * @param {Chart} chart - the chart\r\n * @param {number} width - the width to fit into\r\n * @param {number} height - the height to fit into\r\n */\n update: function update(chart, width, height) {\n if (!chart) {\n return;\n }\n\n var layoutOptions = chart.options.layout || {};\n var padding = helpers$1.options.toPadding(layoutOptions.padding);\n var availableWidth = width - padding.width;\n var availableHeight = height - padding.height;\n var boxes = buildLayoutBoxes(chart.boxes);\n var verticalBoxes = boxes.vertical;\n var horizontalBoxes = boxes.horizontal; // Essentially we now have any number of boxes on each of the 4 sides.\n // Our canvas looks like the following.\n // The areas L1 and L2 are the left axes. R1 is the right axis, T1 is the top axis and\n // B1 is the bottom axis\n // There are also 4 quadrant-like locations (left to right instead of clockwise) reserved for chart overlays\n // These locations are single-box locations only, when trying to register a chartArea location that is already taken,\n // an error will be thrown.\n //\n // |----------------------------------------------------|\n // | T1 (Full Width) |\n // |----------------------------------------------------|\n // | | | T2 | |\n // | |----|-------------------------------------|----|\n // | | | C1 | | C2 | |\n // | | |----| |----| |\n // | | | | |\n // | L1 | L2 | ChartArea (C0) | R1 |\n // | | | | |\n // | | |----| |----| |\n // | | | C3 | | C4 | |\n // | |----|-------------------------------------|----|\n // | | | B1 | |\n // |----------------------------------------------------|\n // | B2 (Full Width) |\n // |----------------------------------------------------|\n //\n\n var params = Object.freeze({\n outerWidth: width,\n outerHeight: height,\n padding: padding,\n availableWidth: availableWidth,\n vBoxMaxWidth: availableWidth / 2 / verticalBoxes.length,\n hBoxMaxHeight: availableHeight / 2\n });\n var chartArea = extend({\n maxPadding: extend({}, padding),\n w: availableWidth,\n h: availableHeight,\n x: padding.left,\n y: padding.top\n }, padding);\n setLayoutDims(verticalBoxes.concat(horizontalBoxes), params); // First fit vertical boxes\n\n fitBoxes(verticalBoxes, chartArea, params); // Then fit horizontal boxes\n\n if (fitBoxes(horizontalBoxes, chartArea, params)) {\n // if the area changed, re-fit vertical boxes\n fitBoxes(verticalBoxes, chartArea, params);\n }\n\n handleMaxPadding(chartArea); // Finally place the boxes to correct coordinates\n\n placeBoxes(boxes.leftAndTop, chartArea, params); // Move to opposite side of chart\n\n chartArea.x += chartArea.w;\n chartArea.y += chartArea.h;\n placeBoxes(boxes.rightAndBottom, chartArea, params);\n chart.chartArea = {\n left: chartArea.left,\n top: chartArea.top,\n right: chartArea.left + chartArea.w,\n bottom: chartArea.top + chartArea.h\n }; // Finally update boxes in chartArea (radial scale for example)\n\n helpers$1.each(boxes.chartArea, function (layout) {\n var box = layout.box;\n extend(box, chart.chartArea);\n box.update(chartArea.w, chartArea.h);\n });\n }\n };\n /**\r\n * Platform fallback implementation (minimal).\r\n * @see https://github.com/chartjs/Chart.js/pull/4591#issuecomment-319575939\r\n */\n\n var platform_basic = {\n acquireContext: function acquireContext(item) {\n if (item && item.canvas) {\n // Support for any object associated to a canvas (including a context2d)\n item = item.canvas;\n }\n\n return item && item.getContext('2d') || null;\n }\n };\n var platform_dom = \"/*\\r\\n * DOM element rendering detection\\r\\n * https://davidwalsh.name/detect-node-insertion\\r\\n */\\r\\n@keyframes chartjs-render-animation {\\r\\n\\tfrom { opacity: 0.99; }\\r\\n\\tto { opacity: 1; }\\r\\n}\\r\\n\\r\\n.chartjs-render-monitor {\\r\\n\\tanimation: chartjs-render-animation 0.001s;\\r\\n}\\r\\n\\r\\n/*\\r\\n * DOM element resizing detection\\r\\n * https://github.com/marcj/css-element-queries\\r\\n */\\r\\n.chartjs-size-monitor,\\r\\n.chartjs-size-monitor-expand,\\r\\n.chartjs-size-monitor-shrink {\\r\\n\\tposition: absolute;\\r\\n\\tdirection: ltr;\\r\\n\\tleft: 0;\\r\\n\\ttop: 0;\\r\\n\\tright: 0;\\r\\n\\tbottom: 0;\\r\\n\\toverflow: hidden;\\r\\n\\tpointer-events: none;\\r\\n\\tvisibility: hidden;\\r\\n\\tz-index: -1;\\r\\n}\\r\\n\\r\\n.chartjs-size-monitor-expand > div {\\r\\n\\tposition: absolute;\\r\\n\\twidth: 1000000px;\\r\\n\\theight: 1000000px;\\r\\n\\tleft: 0;\\r\\n\\ttop: 0;\\r\\n}\\r\\n\\r\\n.chartjs-size-monitor-shrink > div {\\r\\n\\tposition: absolute;\\r\\n\\twidth: 200%;\\r\\n\\theight: 200%;\\r\\n\\tleft: 0;\\r\\n\\ttop: 0;\\r\\n}\\r\\n\";\n var platform_dom$1 = /*#__PURE__*/Object.freeze({\n __proto__: null,\n 'default': platform_dom\n });\n var stylesheet = getCjsExportFromNamespace(platform_dom$1);\n var EXPANDO_KEY = '$chartjs';\n var CSS_PREFIX = 'chartjs-';\n var CSS_SIZE_MONITOR = CSS_PREFIX + 'size-monitor';\n var CSS_RENDER_MONITOR = CSS_PREFIX + 'render-monitor';\n var CSS_RENDER_ANIMATION = CSS_PREFIX + 'render-animation';\n var ANIMATION_START_EVENTS = ['animationstart', 'webkitAnimationStart'];\n /**\r\n * DOM event types -> Chart.js event types.\r\n * Note: only events with different types are mapped.\r\n * @see https://developer.mozilla.org/en-US/docs/Web/Events\r\n */\n\n var EVENT_TYPES = {\n touchstart: 'mousedown',\n touchmove: 'mousemove',\n touchend: 'mouseup',\n pointerenter: 'mouseenter',\n pointerdown: 'mousedown',\n pointermove: 'mousemove',\n pointerup: 'mouseup',\n pointerleave: 'mouseout',\n pointerout: 'mouseout'\n };\n /**\r\n * The \"used\" size is the final value of a dimension property after all calculations have\r\n * been performed. This method uses the computed style of `element` but returns undefined\r\n * if the computed style is not expressed in pixels. That can happen in some cases where\r\n * `element` has a size relative to its parent and this last one is not yet displayed,\r\n * for example because of `display: none` on a parent node.\r\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/used_value\r\n * @returns {number} Size in pixels or undefined if unknown.\r\n */\n\n function readUsedSize(element, property) {\n var value = helpers$1.getStyle(element, property);\n var matches = value && value.match(/^(\\d+)(\\.\\d+)?px$/);\n return matches ? Number(matches[1]) : undefined;\n }\n /**\r\n * Initializes the canvas style and render size without modifying the canvas display size,\r\n * since responsiveness is handled by the controller.resize() method. The config is used\r\n * to determine the aspect ratio to apply in case no explicit height has been specified.\r\n */\n\n\n function initCanvas(canvas, config) {\n var style = canvas.style; // NOTE(SB) canvas.getAttribute('width') !== canvas.width: in the first case it\n // returns null or '' if no explicit value has been set to the canvas attribute.\n\n var renderHeight = canvas.getAttribute('height');\n var renderWidth = canvas.getAttribute('width'); // Chart.js modifies some canvas values that we want to restore on destroy\n\n canvas[EXPANDO_KEY] = {\n initial: {\n height: renderHeight,\n width: renderWidth,\n style: {\n display: style.display,\n height: style.height,\n width: style.width\n }\n }\n }; // Force canvas to display as block to avoid extra space caused by inline\n // elements, which would interfere with the responsive resize process.\n // https://github.com/chartjs/Chart.js/issues/2538\n\n style.display = style.display || 'block';\n\n if (renderWidth === null || renderWidth === '') {\n var displayWidth = readUsedSize(canvas, 'width');\n\n if (displayWidth !== undefined) {\n canvas.width = displayWidth;\n }\n }\n\n if (renderHeight === null || renderHeight === '') {\n if (canvas.style.height === '') {\n // If no explicit render height and style height, let's apply the aspect ratio,\n // which one can be specified by the user but also by charts as default option\n // (i.e. options.aspectRatio). If not specified, use canvas aspect ratio of 2.\n canvas.height = canvas.width / (config.options.aspectRatio || 2);\n } else {\n var displayHeight = readUsedSize(canvas, 'height');\n\n if (displayWidth !== undefined) {\n canvas.height = displayHeight;\n }\n }\n }\n\n return canvas;\n }\n /**\r\n * Detects support for options object argument in addEventListener.\r\n * https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support\r\n * @private\r\n */\n\n\n var supportsEventListenerOptions = function () {\n var supports = false;\n\n try {\n var options = Object.defineProperty({}, 'passive', {\n // eslint-disable-next-line getter-return\n get: function get() {\n supports = true;\n }\n });\n window.addEventListener('e', null, options);\n } catch (e) {// continue regardless of error\n }\n\n return supports;\n }(); // Default passive to true as expected by Chrome for 'touchstart' and 'touchend' events.\n // https://github.com/chartjs/Chart.js/issues/4287\n\n\n var eventListenerOptions = supportsEventListenerOptions ? {\n passive: true\n } : false;\n\n function addListener(node, type, listener) {\n node.addEventListener(type, listener, eventListenerOptions);\n }\n\n function removeListener(node, type, listener) {\n node.removeEventListener(type, listener, eventListenerOptions);\n }\n\n function createEvent(type, chart, x, y, nativeEvent) {\n return {\n type: type,\n chart: chart,\n native: nativeEvent || null,\n x: x !== undefined ? x : null,\n y: y !== undefined ? y : null\n };\n }\n\n function fromNativeEvent(event, chart) {\n var type = EVENT_TYPES[event.type] || event.type;\n var pos = helpers$1.getRelativePosition(event, chart);\n return createEvent(type, chart, pos.x, pos.y, event);\n }\n\n function throttled(fn, thisArg) {\n var ticking = false;\n var args = [];\n return function () {\n args = Array.prototype.slice.call(arguments);\n thisArg = thisArg || this;\n\n if (!ticking) {\n ticking = true;\n helpers$1.requestAnimFrame.call(window, function () {\n ticking = false;\n fn.apply(thisArg, args);\n });\n }\n };\n }\n\n function createDiv(cls) {\n var el = document.createElement('div');\n el.className = cls || '';\n return el;\n } // Implementation based on https://github.com/marcj/css-element-queries\n\n\n function createResizer(handler) {\n var maxSize = 1000000; // NOTE(SB) Don't use innerHTML because it could be considered unsafe.\n // https://github.com/chartjs/Chart.js/issues/5902\n\n var resizer = createDiv(CSS_SIZE_MONITOR);\n var expand = createDiv(CSS_SIZE_MONITOR + '-expand');\n var shrink = createDiv(CSS_SIZE_MONITOR + '-shrink');\n expand.appendChild(createDiv());\n shrink.appendChild(createDiv());\n resizer.appendChild(expand);\n resizer.appendChild(shrink);\n\n resizer._reset = function () {\n expand.scrollLeft = maxSize;\n expand.scrollTop = maxSize;\n shrink.scrollLeft = maxSize;\n shrink.scrollTop = maxSize;\n };\n\n var onScroll = function onScroll() {\n resizer._reset();\n\n handler();\n };\n\n addListener(expand, 'scroll', onScroll.bind(expand, 'expand'));\n addListener(shrink, 'scroll', onScroll.bind(shrink, 'shrink'));\n return resizer;\n } // https://davidwalsh.name/detect-node-insertion\n\n\n function watchForRender(node, handler) {\n var expando = node[EXPANDO_KEY] || (node[EXPANDO_KEY] = {});\n\n var proxy = expando.renderProxy = function (e) {\n if (e.animationName === CSS_RENDER_ANIMATION) {\n handler();\n }\n };\n\n helpers$1.each(ANIMATION_START_EVENTS, function (type) {\n addListener(node, type, proxy);\n }); // #4737: Chrome might skip the CSS animation when the CSS_RENDER_MONITOR class\n // is removed then added back immediately (same animation frame?). Accessing the\n // `offsetParent` property will force a reflow and re-evaluate the CSS animation.\n // https://gist.github.com/paulirish/5d52fb081b3570c81e3a#box-metrics\n // https://github.com/chartjs/Chart.js/issues/4737\n\n expando.reflow = !!node.offsetParent;\n node.classList.add(CSS_RENDER_MONITOR);\n }\n\n function unwatchForRender(node) {\n var expando = node[EXPANDO_KEY] || {};\n var proxy = expando.renderProxy;\n\n if (proxy) {\n helpers$1.each(ANIMATION_START_EVENTS, function (type) {\n removeListener(node, type, proxy);\n });\n delete expando.renderProxy;\n }\n\n node.classList.remove(CSS_RENDER_MONITOR);\n }\n\n function addResizeListener(node, listener, chart) {\n var expando = node[EXPANDO_KEY] || (node[EXPANDO_KEY] = {}); // Let's keep track of this added resizer and thus avoid DOM query when removing it.\n\n var resizer = expando.resizer = createResizer(throttled(function () {\n if (expando.resizer) {\n var container = chart.options.maintainAspectRatio && node.parentNode;\n var w = container ? container.clientWidth : 0;\n listener(createEvent('resize', chart));\n\n if (container && container.clientWidth < w && chart.canvas) {\n // If the container size shrank during chart resize, let's assume\n // scrollbar appeared. So we resize again with the scrollbar visible -\n // effectively making chart smaller and the scrollbar hidden again.\n // Because we are inside `throttled`, and currently `ticking`, scroll\n // events are ignored during this whole 2 resize process.\n // If we assumed wrong and something else happened, we are resizing\n // twice in a frame (potential performance issue)\n listener(createEvent('resize', chart));\n }\n }\n })); // The resizer needs to be attached to the node parent, so we first need to be\n // sure that `node` is attached to the DOM before injecting the resizer element.\n\n watchForRender(node, function () {\n if (expando.resizer) {\n var container = node.parentNode;\n\n if (container && container !== resizer.parentNode) {\n container.insertBefore(resizer, container.firstChild);\n } // The container size might have changed, let's reset the resizer state.\n\n\n resizer._reset();\n }\n });\n }\n\n function removeResizeListener(node) {\n var expando = node[EXPANDO_KEY] || {};\n var resizer = expando.resizer;\n delete expando.resizer;\n unwatchForRender(node);\n\n if (resizer && resizer.parentNode) {\n resizer.parentNode.removeChild(resizer);\n }\n }\n /**\r\n * Injects CSS styles inline if the styles are not already present.\r\n * @param {HTMLDocument|ShadowRoot} rootNode - the node to contain the \n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MentionBox.vue?vue&type=script&setup=true&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MentionBox.vue?vue&type=script&setup=true&lang=js&\"","import { render, staticRenderFns } from \"./MentionBox.vue?vue&type=template&id=84f545c4&scoped=true&\"\nimport script from \"./MentionBox.vue?vue&type=script&setup=true&lang=js&\"\nexport * from \"./MentionBox.vue?vue&type=script&setup=true&lang=js&\"\nimport style0 from \"./MentionBox.vue?vue&type=style&index=0&id=84f545c4&prod&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"84f545c4\",\n null\n \n)\n\nexport default component.exports","'use strict';\n\nmodule.exports = require('./lib/');","import { INBOX_TYPES } from 'shared/mixins/inboxMixin';\n\nexport const getInboxSource = (type, phoneNumber, inbox) => {\n switch (type) {\n case INBOX_TYPES.WEB:\n return inbox.website_url || '';\n\n case INBOX_TYPES.TWILIO:\n case INBOX_TYPES.WHATSAPP:\n return phoneNumber || '';\n\n case INBOX_TYPES.EMAIL:\n return inbox.email || '';\n\n default:\n return '';\n }\n};\nexport const getReadableInboxByType = (type, phoneNumber) => {\n switch (type) {\n case INBOX_TYPES.WEB:\n return 'livechat';\n\n case INBOX_TYPES.FB:\n return 'facebook';\n\n case INBOX_TYPES.TWITTER:\n return 'twitter';\n\n case INBOX_TYPES.TWILIO:\n return phoneNumber?.startsWith('whatsapp') ? 'whatsapp' : 'sms';\n\n case INBOX_TYPES.WHATSAPP:\n return 'whatsapp';\n\n case INBOX_TYPES.API:\n return 'api';\n\n case INBOX_TYPES.EMAIL:\n return 'email';\n\n case INBOX_TYPES.TELEGRAM:\n return 'telegram';\n\n case INBOX_TYPES.LINE:\n return 'line';\n\n default:\n return 'chat';\n }\n};\n\nexport const getInboxClassByType = (type, phoneNumber) => {\n switch (type) {\n case INBOX_TYPES.WEB:\n return 'globe-desktop';\n\n case INBOX_TYPES.FB:\n return 'brand-facebook';\n\n case INBOX_TYPES.TWITTER:\n return 'brand-twitter';\n\n case INBOX_TYPES.TWILIO:\n return phoneNumber?.startsWith('whatsapp')\n ? 'brand-whatsapp'\n : 'brand-sms';\n\n case INBOX_TYPES.WHATSAPP:\n return 'brand-whatsapp';\n\n case INBOX_TYPES.API:\n return 'cloud';\n\n case INBOX_TYPES.EMAIL:\n return 'mail';\n\n case INBOX_TYPES.TELEGRAM:\n return 'brand-telegram';\n\n case INBOX_TYPES.LINE:\n return 'brand-line';\n\n default:\n return 'chat';\n }\n};\n\nexport const getInboxWarningIconClass = (type, reauthorizationRequired) => {\n const allowedInboxTypes = [INBOX_TYPES.FB, INBOX_TYPES.EMAIL];\n if (allowedInboxTypes.includes(type) && reauthorizationRequired) {\n return 'warning';\n }\n return '';\n};\n","/**\n * class Ruler\n *\n * Helper class, used by [[MarkdownIt#core]], [[MarkdownIt#block]] and\n * [[MarkdownIt#inline]] to manage sequences of functions (rules):\n *\n * - keep rules in defined order\n * - assign the name to each rule\n * - enable/disable rules\n * - add/replace rules\n * - allow assign rules to additional named chains (in the same)\n * - cacheing lists of active rules\n *\n * You will not need use this class directly until write plugins. For simple\n * rules control use [[MarkdownIt.disable]], [[MarkdownIt.enable]] and\n * [[MarkdownIt.use]].\n **/\n'use strict';\n/**\n * new Ruler()\n **/\n\nfunction Ruler() {\n // List of added rules. Each element is:\n //\n // {\n // name: XXX,\n // enabled: Boolean,\n // fn: Function(),\n // alt: [ name2, name3 ]\n // }\n //\n this.__rules__ = []; // Cached rule chains.\n //\n // First level - chain name, '' for default.\n // Second level - diginal anchor for fast filtering by charcodes.\n //\n\n this.__cache__ = null;\n} ////////////////////////////////////////////////////////////////////////////////\n// Helper methods, should not be used directly\n// Find rule index by name\n//\n\n\nRuler.prototype.__find__ = function (name) {\n for (var i = 0; i < this.__rules__.length; i++) {\n if (this.__rules__[i].name === name) {\n return i;\n }\n }\n\n return -1;\n}; // Build rules lookup cache\n//\n\n\nRuler.prototype.__compile__ = function () {\n var self = this;\n var chains = ['']; // collect unique names\n\n self.__rules__.forEach(function (rule) {\n if (!rule.enabled) {\n return;\n }\n\n rule.alt.forEach(function (altName) {\n if (chains.indexOf(altName) < 0) {\n chains.push(altName);\n }\n });\n });\n\n self.__cache__ = {};\n chains.forEach(function (chain) {\n self.__cache__[chain] = [];\n\n self.__rules__.forEach(function (rule) {\n if (!rule.enabled) {\n return;\n }\n\n if (chain && rule.alt.indexOf(chain) < 0) {\n return;\n }\n\n self.__cache__[chain].push(rule.fn);\n });\n });\n};\n/**\n * Ruler.at(name, fn [, options])\n * - name (String): rule name to replace.\n * - fn (Function): new rule function.\n * - options (Object): new rule options (not mandatory).\n *\n * Replace rule by name with new function & options. Throws error if name not\n * found.\n *\n * ##### Options:\n *\n * - __alt__ - array with names of \"alternate\" chains.\n *\n * ##### Example\n *\n * Replace existing typographer replacement rule with new one:\n *\n * ```javascript\n * var md = require('markdown-it')();\n *\n * md.core.ruler.at('replacements', function replace(state) {\n * //...\n * });\n * ```\n **/\n\n\nRuler.prototype.at = function (name, fn, options) {\n var index = this.__find__(name);\n\n var opt = options || {};\n\n if (index === -1) {\n throw new Error('Parser rule not found: ' + name);\n }\n\n this.__rules__[index].fn = fn;\n this.__rules__[index].alt = opt.alt || [];\n this.__cache__ = null;\n};\n/**\n * Ruler.before(beforeName, ruleName, fn [, options])\n * - beforeName (String): new rule will be added before this one.\n * - ruleName (String): name of added rule.\n * - fn (Function): rule function.\n * - options (Object): rule options (not mandatory).\n *\n * Add new rule to chain before one with given name. See also\n * [[Ruler.after]], [[Ruler.push]].\n *\n * ##### Options:\n *\n * - __alt__ - array with names of \"alternate\" chains.\n *\n * ##### Example\n *\n * ```javascript\n * var md = require('markdown-it')();\n *\n * md.block.ruler.before('paragraph', 'my_rule', function replace(state) {\n * //...\n * });\n * ```\n **/\n\n\nRuler.prototype.before = function (beforeName, ruleName, fn, options) {\n var index = this.__find__(beforeName);\n\n var opt = options || {};\n\n if (index === -1) {\n throw new Error('Parser rule not found: ' + beforeName);\n }\n\n this.__rules__.splice(index, 0, {\n name: ruleName,\n enabled: true,\n fn: fn,\n alt: opt.alt || []\n });\n\n this.__cache__ = null;\n};\n/**\n * Ruler.after(afterName, ruleName, fn [, options])\n * - afterName (String): new rule will be added after this one.\n * - ruleName (String): name of added rule.\n * - fn (Function): rule function.\n * - options (Object): rule options (not mandatory).\n *\n * Add new rule to chain after one with given name. See also\n * [[Ruler.before]], [[Ruler.push]].\n *\n * ##### Options:\n *\n * - __alt__ - array with names of \"alternate\" chains.\n *\n * ##### Example\n *\n * ```javascript\n * var md = require('markdown-it')();\n *\n * md.inline.ruler.after('text', 'my_rule', function replace(state) {\n * //...\n * });\n * ```\n **/\n\n\nRuler.prototype.after = function (afterName, ruleName, fn, options) {\n var index = this.__find__(afterName);\n\n var opt = options || {};\n\n if (index === -1) {\n throw new Error('Parser rule not found: ' + afterName);\n }\n\n this.__rules__.splice(index + 1, 0, {\n name: ruleName,\n enabled: true,\n fn: fn,\n alt: opt.alt || []\n });\n\n this.__cache__ = null;\n};\n/**\n * Ruler.push(ruleName, fn [, options])\n * - ruleName (String): name of added rule.\n * - fn (Function): rule function.\n * - options (Object): rule options (not mandatory).\n *\n * Push new rule to the end of chain. See also\n * [[Ruler.before]], [[Ruler.after]].\n *\n * ##### Options:\n *\n * - __alt__ - array with names of \"alternate\" chains.\n *\n * ##### Example\n *\n * ```javascript\n * var md = require('markdown-it')();\n *\n * md.core.ruler.push('my_rule', function replace(state) {\n * //...\n * });\n * ```\n **/\n\n\nRuler.prototype.push = function (ruleName, fn, options) {\n var opt = options || {};\n\n this.__rules__.push({\n name: ruleName,\n enabled: true,\n fn: fn,\n alt: opt.alt || []\n });\n\n this.__cache__ = null;\n};\n/**\n * Ruler.enable(list [, ignoreInvalid]) -> Array\n * - list (String|Array): list of rule names to enable.\n * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.\n *\n * Enable rules with given names. If any rule name not found - throw Error.\n * Errors can be disabled by second param.\n *\n * Returns list of found rule names (if no exception happened).\n *\n * See also [[Ruler.disable]], [[Ruler.enableOnly]].\n **/\n\n\nRuler.prototype.enable = function (list, ignoreInvalid) {\n if (!Array.isArray(list)) {\n list = [list];\n }\n\n var result = []; // Search by name and enable\n\n list.forEach(function (name) {\n var idx = this.__find__(name);\n\n if (idx < 0) {\n if (ignoreInvalid) {\n return;\n }\n\n throw new Error('Rules manager: invalid rule name ' + name);\n }\n\n this.__rules__[idx].enabled = true;\n result.push(name);\n }, this);\n this.__cache__ = null;\n return result;\n};\n/**\n * Ruler.enableOnly(list [, ignoreInvalid])\n * - list (String|Array): list of rule names to enable (whitelist).\n * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.\n *\n * Enable rules with given names, and disable everything else. If any rule name\n * not found - throw Error. Errors can be disabled by second param.\n *\n * See also [[Ruler.disable]], [[Ruler.enable]].\n **/\n\n\nRuler.prototype.enableOnly = function (list, ignoreInvalid) {\n if (!Array.isArray(list)) {\n list = [list];\n }\n\n this.__rules__.forEach(function (rule) {\n rule.enabled = false;\n });\n\n this.enable(list, ignoreInvalid);\n};\n/**\n * Ruler.disable(list [, ignoreInvalid]) -> Array\n * - list (String|Array): list of rule names to disable.\n * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.\n *\n * Disable rules with given names. If any rule name not found - throw Error.\n * Errors can be disabled by second param.\n *\n * Returns list of found rule names (if no exception happened).\n *\n * See also [[Ruler.enable]], [[Ruler.enableOnly]].\n **/\n\n\nRuler.prototype.disable = function (list, ignoreInvalid) {\n if (!Array.isArray(list)) {\n list = [list];\n }\n\n var result = []; // Search by name and disable\n\n list.forEach(function (name) {\n var idx = this.__find__(name);\n\n if (idx < 0) {\n if (ignoreInvalid) {\n return;\n }\n\n throw new Error('Rules manager: invalid rule name ' + name);\n }\n\n this.__rules__[idx].enabled = false;\n result.push(name);\n }, this);\n this.__cache__ = null;\n return result;\n};\n/**\n * Ruler.getRules(chainName) -> Array\n *\n * Return array of active functions (rules) for given chain name. It analyzes\n * rules configuration, compiles caches if not exists and returns result.\n *\n * Default chain name is `''` (empty string). It can't be skipped. That's\n * done intentionally, to keep signature monomorphic for high speed.\n **/\n\n\nRuler.prototype.getRules = function (chainName) {\n if (this.__cache__ === null) {\n this.__compile__();\n } // Chain can be empty, if rules disabled. But we still have to return Array.\n\n\n return this.__cache__[chainName] || [];\n};\n\nmodule.exports = Ruler;","// Token class\n'use strict';\n/**\n * class Token\n **/\n\n/**\n * new Token(type, tag, nesting)\n *\n * Create new token and fill passed properties.\n **/\n\nfunction Token(type, tag, nesting) {\n /**\n * Token#type -> String\n *\n * Type of the token (string, e.g. \"paragraph_open\")\n **/\n this.type = type;\n /**\n * Token#tag -> String\n *\n * html tag name, e.g. \"p\"\n **/\n\n this.tag = tag;\n /**\n * Token#attrs -> Array\n *\n * Html attributes. Format: `[ [ name1, value1 ], [ name2, value2 ] ]`\n **/\n\n this.attrs = null;\n /**\n * Token#map -> Array\n *\n * Source map info. Format: `[ line_begin, line_end ]`\n **/\n\n this.map = null;\n /**\n * Token#nesting -> Number\n *\n * Level change (number in {-1, 0, 1} set), where:\n *\n * - `1` means the tag is opening\n * - `0` means the tag is self-closing\n * - `-1` means the tag is closing\n **/\n\n this.nesting = nesting;\n /**\n * Token#level -> Number\n *\n * nesting level, the same as `state.level`\n **/\n\n this.level = 0;\n /**\n * Token#children -> Array\n *\n * An array of child nodes (inline and img tokens)\n **/\n\n this.children = null;\n /**\n * Token#content -> String\n *\n * In a case of self-closing tag (code, html, fence, etc.),\n * it has contents of this tag.\n **/\n\n this.content = '';\n /**\n * Token#markup -> String\n *\n * '*' or '_' for emphasis, fence string for fence, etc.\n **/\n\n this.markup = '';\n /**\n * Token#info -> String\n *\n * fence infostring\n **/\n\n this.info = '';\n /**\n * Token#meta -> Object\n *\n * A place for plugins to store an arbitrary data\n **/\n\n this.meta = null;\n /**\n * Token#block -> Boolean\n *\n * True for block-level tokens, false for inline tokens.\n * Used in renderer to calculate line breaks\n **/\n\n this.block = false;\n /**\n * Token#hidden -> Boolean\n *\n * If it's true, ignore this element when rendering. Used for tight lists\n * to hide paragraphs.\n **/\n\n this.hidden = false;\n}\n/**\n * Token.attrIndex(name) -> Number\n *\n * Search attribute index by name.\n **/\n\n\nToken.prototype.attrIndex = function attrIndex(name) {\n var attrs, i, len;\n\n if (!this.attrs) {\n return -1;\n }\n\n attrs = this.attrs;\n\n for (i = 0, len = attrs.length; i < len; i++) {\n if (attrs[i][0] === name) {\n return i;\n }\n }\n\n return -1;\n};\n/**\n * Token.attrPush(attrData)\n *\n * Add `[ name, value ]` attribute to list. Init attrs if necessary\n **/\n\n\nToken.prototype.attrPush = function attrPush(attrData) {\n if (this.attrs) {\n this.attrs.push(attrData);\n } else {\n this.attrs = [attrData];\n }\n};\n/**\n * Token.attrSet(name, value)\n *\n * Set `name` attribute to `value`. Override old value if exists.\n **/\n\n\nToken.prototype.attrSet = function attrSet(name, value) {\n var idx = this.attrIndex(name),\n attrData = [name, value];\n\n if (idx < 0) {\n this.attrPush(attrData);\n } else {\n this.attrs[idx] = attrData;\n }\n};\n/**\n * Token.attrGet(name)\n *\n * Get the value of attribute `name`, or null if it does not exist.\n **/\n\n\nToken.prototype.attrGet = function attrGet(name) {\n var idx = this.attrIndex(name),\n value = null;\n\n if (idx >= 0) {\n value = this.attrs[idx][1];\n }\n\n return value;\n};\n/**\n * Token.attrJoin(name, value)\n *\n * Join value to existing attribute via space. Or create new attribute if not\n * exists. Useful to operate with token classes.\n **/\n\n\nToken.prototype.attrJoin = function attrJoin(name, value) {\n var idx = this.attrIndex(name);\n\n if (idx < 0) {\n this.attrPush([name, value]);\n } else {\n this.attrs[idx][1] = this.attrs[idx][1] + ' ' + value;\n }\n};\n\nmodule.exports = Token;","function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nimport { noop, makeDestructurable, camelize, toValue, isClient, isObject, tryOnScopeDispose, isIOS, tryOnMounted, notNullish, objectOmit, promiseTimeout, until, increaseWithUnit, objectEntries, createSingletonPromise, useTimeoutFn, pausableWatch, toRef, createEventHook, computedWithControl, timestamp, pausableFilter, watchIgnorable, debounceFilter, createFilterWrapper, bypassFilter, toRefs, useIntervalFn, containsProp, hasOwn, throttleFilter, useDebounceFn, useThrottleFn, clamp, syncRef, objectPick, tryOnUnmounted, watchWithFilter, tryOnBeforeUnmount, identity, isDef, isWorker } from '@vueuse/shared';\nexport * from '@vueuse/shared';\nimport { isRef, ref, shallowRef, watchEffect, computed, inject, isVue3, version, defineComponent, h, TransitionGroup, shallowReactive, Fragment, watch, getCurrentInstance, customRef, onUpdated, onMounted, isVue2, readonly, nextTick, reactive, markRaw, unref, getCurrentScope, set as _set2, del, isReadonly, onBeforeUpdate } from 'vue-demi';\n\nfunction computedAsync(evaluationCallback, initialState, optionsOrRef) {\n var options;\n\n if (isRef(optionsOrRef)) {\n options = {\n evaluating: optionsOrRef\n };\n } else {\n options = optionsOrRef || {};\n }\n\n var _options2 = options,\n _options2$lazy = _options2.lazy,\n lazy = _options2$lazy === void 0 ? false : _options2$lazy,\n _options2$evaluating = _options2.evaluating,\n evaluating = _options2$evaluating === void 0 ? void 0 : _options2$evaluating,\n _options2$shallow = _options2.shallow,\n shallow = _options2$shallow === void 0 ? true : _options2$shallow,\n _options2$onError = _options2.onError,\n onError = _options2$onError === void 0 ? noop : _options2$onError;\n var started = ref(!lazy);\n var current = shallow ? shallowRef(initialState) : ref(initialState);\n var counter = 0;\n watchEffect( /*#__PURE__*/function () {\n var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(onInvalidate) {\n var counterAtBeginning, hasFinished, result;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (started.value) {\n _context.next = 2;\n break;\n }\n\n return _context.abrupt(\"return\");\n\n case 2:\n counter++;\n counterAtBeginning = counter;\n hasFinished = false;\n\n if (evaluating) {\n Promise.resolve().then(function () {\n evaluating.value = true;\n });\n }\n\n _context.prev = 6;\n _context.next = 9;\n return evaluationCallback(function (cancelCallback) {\n onInvalidate(function () {\n if (evaluating) evaluating.value = false;\n if (!hasFinished) cancelCallback();\n });\n });\n\n case 9:\n result = _context.sent;\n if (counterAtBeginning === counter) current.value = result;\n _context.next = 16;\n break;\n\n case 13:\n _context.prev = 13;\n _context.t0 = _context[\"catch\"](6);\n onError(_context.t0);\n\n case 16:\n _context.prev = 16;\n if (evaluating && counterAtBeginning === counter) evaluating.value = false;\n hasFinished = true;\n return _context.finish(16);\n\n case 20:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[6, 13, 16, 20]]);\n }));\n\n return function (_x2) {\n return _ref.apply(this, arguments);\n };\n }());\n\n if (lazy) {\n return computed(function () {\n started.value = true;\n return current.value;\n });\n } else {\n return current;\n }\n}\n\nfunction computedInject(key, options, defaultSource, treatDefaultAsFactory) {\n var source = inject(key);\n if (defaultSource) source = inject(key, defaultSource);\n if (treatDefaultAsFactory) source = inject(key, defaultSource, treatDefaultAsFactory);\n\n if (typeof options === \"function\") {\n return computed(function (ctx) {\n return options(source, ctx);\n });\n } else {\n return computed({\n get: function get(ctx) {\n return options.get(source, ctx);\n },\n set: options.set\n });\n }\n}\n\nfunction createReusableTemplate() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n if (!isVue3 && !version.startsWith(\"2.7.\")) {\n if (process.env.NODE_ENV !== \"production\") throw new Error(\"[VueUse] createReusableTemplate only works in Vue 2.7 or above.\");\n return;\n }\n\n var _options$inheritAttrs = options.inheritAttrs,\n inheritAttrs = _options$inheritAttrs === void 0 ? true : _options$inheritAttrs;\n var render = shallowRef();\n var define = /* #__PURE__ */defineComponent({\n setup: function setup(_, _ref2) {\n var slots = _ref2.slots;\n return function () {\n render.value = slots.default;\n };\n }\n });\n var reuse = /* #__PURE__ */defineComponent({\n inheritAttrs: inheritAttrs,\n setup: function setup(_, _ref3) {\n var attrs = _ref3.attrs,\n slots = _ref3.slots;\n return function () {\n var _a;\n\n if (!render.value && process.env.NODE_ENV !== \"production\") throw new Error(\"[VueUse] Failed to find the definition of reusable template\");\n var vnode = (_a = render.value) == null ? void 0 : _a.call(render, _objectSpread(_objectSpread({}, keysToCamelKebabCase(attrs)), {}, {\n $slots: slots\n }));\n return inheritAttrs && (vnode == null ? void 0 : vnode.length) === 1 ? vnode[0] : vnode;\n };\n }\n });\n return makeDestructurable({\n define: define,\n reuse: reuse\n }, [define, reuse]);\n}\n\nfunction keysToCamelKebabCase(obj) {\n var newObj = {};\n\n for (var key in obj) {\n newObj[camelize(key)] = obj[key];\n }\n\n return newObj;\n}\n\nfunction createTemplatePromise() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n if (!isVue3) {\n if (process.env.NODE_ENV !== \"production\") throw new Error(\"[VueUse] createTemplatePromise only works in Vue 3 or above.\");\n return;\n }\n\n var index = 0;\n var instances = ref([]);\n\n function create() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var props = shallowReactive({\n key: index++,\n args: args,\n promise: void 0,\n resolve: function resolve() {},\n reject: function reject() {},\n isResolving: false,\n options: options\n });\n instances.value.push(props);\n props.promise = new Promise(function (_resolve, _reject) {\n props.resolve = function (v) {\n props.isResolving = true;\n return _resolve(v);\n };\n\n props.reject = _reject;\n }).finally(function () {\n props.promise = void 0;\n var index2 = instances.value.indexOf(props);\n if (index2 !== -1) instances.value.splice(index2, 1);\n });\n return props.promise;\n }\n\n function start() {\n if (options.singleton && instances.value.length > 0) return instances.value[0].promise;\n return create.apply(void 0, arguments);\n }\n\n var component = /* #__PURE__ */defineComponent(function (_, _ref4) {\n var slots = _ref4.slots;\n\n var renderList = function renderList() {\n return instances.value.map(function (props) {\n var _a;\n\n return h(Fragment, {\n key: props.key\n }, (_a = slots.default) == null ? void 0 : _a.call(slots, props));\n });\n };\n\n if (options.transition) return function () {\n return h(TransitionGroup, options.transition, renderList);\n };\n return renderList;\n });\n component.start = start;\n return component;\n}\n\nfunction createUnrefFn(fn) {\n return function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return fn.apply(this, args.map(function (i) {\n return toValue(i);\n }));\n };\n}\n\nfunction unrefElement(elRef) {\n var _a;\n\n var plain = toValue(elRef);\n return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;\n}\n\nvar defaultWindow = isClient ? window : void 0;\nvar defaultDocument = isClient ? window.document : void 0;\nvar defaultNavigator = isClient ? window.navigator : void 0;\nvar defaultLocation = isClient ? window.location : void 0;\n\nfunction useEventListener() {\n var target;\n var events;\n var listeners;\n var options;\n\n for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n\n if (typeof args[0] === \"string\" || Array.isArray(args[0])) {\n events = args[0];\n listeners = args[1];\n options = args[2];\n target = defaultWindow;\n } else {\n target = args[0];\n events = args[1];\n listeners = args[2];\n options = args[3];\n }\n\n if (!target) return noop;\n if (!Array.isArray(events)) events = [events];\n if (!Array.isArray(listeners)) listeners = [listeners];\n var cleanups = [];\n\n var cleanup = function cleanup() {\n cleanups.forEach(function (fn) {\n return fn();\n });\n cleanups.length = 0;\n };\n\n var register = function register(el, event, listener, options2) {\n el.addEventListener(event, listener, options2);\n return function () {\n return el.removeEventListener(event, listener, options2);\n };\n };\n\n var stopWatch = watch(function () {\n return [unrefElement(target), toValue(options)];\n }, function (_ref5) {\n var _ref6 = _slicedToArray(_ref5, 2),\n el = _ref6[0],\n options2 = _ref6[1];\n\n cleanup();\n if (!el) return;\n var optionsClone = isObject(options2) ? _objectSpread({}, options2) : options2;\n cleanups.push.apply(cleanups, _toConsumableArray(events.flatMap(function (event) {\n return listeners.map(function (listener) {\n return register(el, event, listener, optionsClone);\n });\n })));\n }, {\n immediate: true,\n flush: \"post\"\n });\n\n var stop = function stop() {\n stopWatch();\n cleanup();\n };\n\n tryOnScopeDispose(stop);\n return stop;\n}\n\nvar _iOSWorkaround = false;\n\nfunction onClickOutside(target, handler) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var _options$window = options.window,\n window = _options$window === void 0 ? defaultWindow : _options$window,\n _options$ignore = options.ignore,\n ignore = _options$ignore === void 0 ? [] : _options$ignore,\n _options$capture = options.capture,\n capture = _options$capture === void 0 ? true : _options$capture,\n _options$detectIframe = options.detectIframe,\n detectIframe = _options$detectIframe === void 0 ? false : _options$detectIframe;\n if (!window) return noop;\n\n if (isIOS && !_iOSWorkaround) {\n _iOSWorkaround = true;\n Array.from(window.document.body.children).forEach(function (el) {\n return el.addEventListener(\"click\", noop);\n });\n window.document.documentElement.addEventListener(\"click\", noop);\n }\n\n var shouldListen = true;\n\n var shouldIgnore = function shouldIgnore(event) {\n return ignore.some(function (target2) {\n if (typeof target2 === \"string\") {\n return Array.from(window.document.querySelectorAll(target2)).some(function (el) {\n return el === event.target || event.composedPath().includes(el);\n });\n } else {\n var el = unrefElement(target2);\n return el && (event.target === el || event.composedPath().includes(el));\n }\n });\n };\n\n var listener = function listener(event) {\n var el = unrefElement(target);\n if (!el || el === event.target || event.composedPath().includes(el)) return;\n if (event.detail === 0) shouldListen = !shouldIgnore(event);\n\n if (!shouldListen) {\n shouldListen = true;\n return;\n }\n\n handler(event);\n };\n\n var cleanup = [useEventListener(window, \"click\", listener, {\n passive: true,\n capture: capture\n }), useEventListener(window, \"pointerdown\", function (e) {\n var el = unrefElement(target);\n shouldListen = !shouldIgnore(e) && !!(el && !e.composedPath().includes(el));\n }, {\n passive: true\n }), detectIframe && useEventListener(window, \"blur\", function (event) {\n setTimeout(function () {\n var _a;\n\n var el = unrefElement(target);\n if (((_a = window.document.activeElement) == null ? void 0 : _a.tagName) === \"IFRAME\" && !(el == null ? void 0 : el.contains(window.document.activeElement))) handler(event);\n }, 0);\n })].filter(Boolean);\n\n var stop = function stop() {\n return cleanup.forEach(function (fn) {\n return fn();\n });\n };\n\n return stop;\n}\n\nfunction createKeyPredicate(keyFilter) {\n if (typeof keyFilter === \"function\") return keyFilter;else if (typeof keyFilter === \"string\") return function (event) {\n return event.key === keyFilter;\n };else if (Array.isArray(keyFilter)) return function (event) {\n return keyFilter.includes(event.key);\n };\n return function () {\n return true;\n };\n}\n\nfunction onKeyStroke() {\n var key;\n var handler;\n var options = {};\n\n if (arguments.length === 3) {\n key = arguments.length <= 0 ? undefined : arguments[0];\n handler = arguments.length <= 1 ? undefined : arguments[1];\n options = arguments.length <= 2 ? undefined : arguments[2];\n } else if (arguments.length === 2) {\n if (_typeof(arguments.length <= 1 ? undefined : arguments[1]) === \"object\") {\n key = true;\n handler = arguments.length <= 0 ? undefined : arguments[0];\n options = arguments.length <= 1 ? undefined : arguments[1];\n } else {\n key = arguments.length <= 0 ? undefined : arguments[0];\n handler = arguments.length <= 1 ? undefined : arguments[1];\n }\n } else {\n key = true;\n handler = arguments.length <= 0 ? undefined : arguments[0];\n }\n\n var _options3 = options,\n _options3$target = _options3.target,\n target = _options3$target === void 0 ? defaultWindow : _options3$target,\n _options3$eventName = _options3.eventName,\n eventName = _options3$eventName === void 0 ? \"keydown\" : _options3$eventName,\n _options3$passive = _options3.passive,\n passive = _options3$passive === void 0 ? false : _options3$passive,\n _options3$dedupe = _options3.dedupe,\n dedupe = _options3$dedupe === void 0 ? false : _options3$dedupe;\n var predicate = createKeyPredicate(key);\n\n var listener = function listener(e) {\n if (e.repeat && toValue(dedupe)) return;\n if (predicate(e)) handler(e);\n };\n\n return useEventListener(target, eventName, listener, passive);\n}\n\nfunction onKeyDown(key, handler) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n return onKeyStroke(key, handler, _objectSpread(_objectSpread({}, options), {}, {\n eventName: \"keydown\"\n }));\n}\n\nfunction onKeyPressed(key, handler) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n return onKeyStroke(key, handler, _objectSpread(_objectSpread({}, options), {}, {\n eventName: \"keypress\"\n }));\n}\n\nfunction onKeyUp(key, handler) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n return onKeyStroke(key, handler, _objectSpread(_objectSpread({}, options), {}, {\n eventName: \"keyup\"\n }));\n}\n\nvar DEFAULT_DELAY = 500;\nvar DEFAULT_THRESHOLD = 10;\n\nfunction onLongPress(target, handler, options) {\n var _a, _b;\n\n var elementRef = computed(function () {\n return unrefElement(target);\n });\n var timeout;\n var posStart;\n var startTimestamp;\n var hasLongPressed = false;\n\n function clear() {\n if (timeout) {\n clearTimeout(timeout);\n timeout = void 0;\n }\n\n posStart = void 0;\n startTimestamp = void 0;\n hasLongPressed = false;\n }\n\n function onRelease(ev) {\n var _a2, _b2, _c;\n\n var _startTimestamp = startTimestamp,\n _posStart = posStart,\n _hasLongPressed = hasLongPressed;\n clear();\n if (!(options == null ? void 0 : options.onMouseUp) || !_posStart || !_startTimestamp) return;\n if (((_a2 = options == null ? void 0 : options.modifiers) == null ? void 0 : _a2.self) && ev.target !== elementRef.value) return;\n if ((_b2 = options == null ? void 0 : options.modifiers) == null ? void 0 : _b2.prevent) ev.preventDefault();\n if ((_c = options == null ? void 0 : options.modifiers) == null ? void 0 : _c.stop) ev.stopPropagation();\n var dx = ev.x - _posStart.x;\n var dy = ev.y - _posStart.y;\n var distance = Math.sqrt(dx * dx + dy * dy);\n options.onMouseUp(ev.timeStamp - _startTimestamp, distance, _hasLongPressed);\n }\n\n function onDown(ev) {\n var _a2, _b2, _c, _d;\n\n if (((_a2 = options == null ? void 0 : options.modifiers) == null ? void 0 : _a2.self) && ev.target !== elementRef.value) return;\n clear();\n if ((_b2 = options == null ? void 0 : options.modifiers) == null ? void 0 : _b2.prevent) ev.preventDefault();\n if ((_c = options == null ? void 0 : options.modifiers) == null ? void 0 : _c.stop) ev.stopPropagation();\n posStart = {\n x: ev.x,\n y: ev.y\n };\n startTimestamp = ev.timeStamp;\n timeout = setTimeout(function () {\n hasLongPressed = true;\n handler(ev);\n }, (_d = options == null ? void 0 : options.delay) != null ? _d : DEFAULT_DELAY);\n }\n\n function onMove(ev) {\n var _a2, _b2, _c, _d;\n\n if (((_a2 = options == null ? void 0 : options.modifiers) == null ? void 0 : _a2.self) && ev.target !== elementRef.value) return;\n if (!posStart || (options == null ? void 0 : options.distanceThreshold) === false) return;\n if ((_b2 = options == null ? void 0 : options.modifiers) == null ? void 0 : _b2.prevent) ev.preventDefault();\n if ((_c = options == null ? void 0 : options.modifiers) == null ? void 0 : _c.stop) ev.stopPropagation();\n var dx = ev.x - posStart.x;\n var dy = ev.y - posStart.y;\n var distance = Math.sqrt(dx * dx + dy * dy);\n if (distance >= ((_d = options == null ? void 0 : options.distanceThreshold) != null ? _d : DEFAULT_THRESHOLD)) clear();\n }\n\n var listenerOptions = {\n capture: (_a = options == null ? void 0 : options.modifiers) == null ? void 0 : _a.capture,\n once: (_b = options == null ? void 0 : options.modifiers) == null ? void 0 : _b.once\n };\n var cleanup = [useEventListener(elementRef, \"pointerdown\", onDown, listenerOptions), useEventListener(elementRef, \"pointermove\", onMove, listenerOptions), useEventListener(elementRef, [\"pointerup\", \"pointerleave\"], onRelease, listenerOptions)];\n\n var stop = function stop() {\n return cleanup.forEach(function (fn) {\n return fn();\n });\n };\n\n return stop;\n}\n\nfunction isFocusedElementEditable() {\n var _document = document,\n activeElement = _document.activeElement,\n body = _document.body;\n if (!activeElement) return false;\n if (activeElement === body) return false;\n\n switch (activeElement.tagName) {\n case \"INPUT\":\n case \"TEXTAREA\":\n return true;\n }\n\n return activeElement.hasAttribute(\"contenteditable\");\n}\n\nfunction isTypedCharValid(_ref7) {\n var keyCode = _ref7.keyCode,\n metaKey = _ref7.metaKey,\n ctrlKey = _ref7.ctrlKey,\n altKey = _ref7.altKey;\n if (metaKey || ctrlKey || altKey) return false;\n if (keyCode >= 48 && keyCode <= 57) return true;\n if (keyCode >= 65 && keyCode <= 90) return true;\n if (keyCode >= 97 && keyCode <= 122) return true;\n return false;\n}\n\nfunction onStartTyping(callback) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _options$document = options.document,\n document2 = _options$document === void 0 ? defaultDocument : _options$document;\n\n var keydown = function keydown(event) {\n !isFocusedElementEditable() && isTypedCharValid(event) && callback(event);\n };\n\n if (document2) useEventListener(document2, \"keydown\", keydown, {\n passive: true\n });\n}\n\nfunction templateRef(key) {\n var initialValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var instance = getCurrentInstance();\n\n var _trigger = function _trigger() {};\n\n var element = customRef(function (track, trigger) {\n _trigger = trigger;\n return {\n get: function get() {\n var _a, _b;\n\n track();\n return (_b = (_a = instance == null ? void 0 : instance.proxy) == null ? void 0 : _a.$refs[key]) != null ? _b : initialValue;\n },\n set: function set() {}\n };\n });\n tryOnMounted(_trigger);\n onUpdated(_trigger);\n return element;\n}\n\nfunction useMounted() {\n var isMounted = ref(false);\n var instance = getCurrentInstance();\n\n if (instance) {\n onMounted(function () {\n isMounted.value = true;\n }, isVue2 ? void 0 : instance);\n }\n\n return isMounted;\n}\n\nfunction useSupported(callback) {\n var isMounted = useMounted();\n return computed(function () {\n isMounted.value;\n return Boolean(callback());\n });\n}\n\nfunction useMutationObserver(target, callback) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n var _options$window2 = options.window,\n window = _options$window2 === void 0 ? defaultWindow : _options$window2,\n mutationOptions = _objectWithoutProperties(options, [\"window\"]);\n\n var observer;\n var isSupported = useSupported(function () {\n return window && \"MutationObserver\" in window;\n });\n\n var cleanup = function cleanup() {\n if (observer) {\n observer.disconnect();\n observer = void 0;\n }\n };\n\n var targets = computed(function () {\n var value = toValue(target);\n var items = (Array.isArray(value) ? value : [value]).map(unrefElement).filter(notNullish);\n return new Set(items);\n });\n var stopWatch = watch(function () {\n return targets.value;\n }, function (targets2) {\n cleanup();\n\n if (isSupported.value && targets2.size) {\n observer = new MutationObserver(callback);\n targets2.forEach(function (el) {\n return observer.observe(el, mutationOptions);\n });\n }\n }, {\n immediate: true,\n flush: \"post\"\n });\n\n var takeRecords = function takeRecords() {\n return observer == null ? void 0 : observer.takeRecords();\n };\n\n var stop = function stop() {\n cleanup();\n stopWatch();\n };\n\n tryOnScopeDispose(stop);\n return {\n isSupported: isSupported,\n stop: stop,\n takeRecords: takeRecords\n };\n}\n\nfunction useActiveElement() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n var _a;\n\n var _options$window3 = options.window,\n window = _options$window3 === void 0 ? defaultWindow : _options$window3,\n _options$deep = options.deep,\n deep = _options$deep === void 0 ? true : _options$deep,\n _options$triggerOnRem = options.triggerOnRemoval,\n triggerOnRemoval = _options$triggerOnRem === void 0 ? false : _options$triggerOnRem;\n var document = (_a = options.document) != null ? _a : window == null ? void 0 : window.document;\n\n var getDeepActiveElement = function getDeepActiveElement() {\n var _a2;\n\n var element = document == null ? void 0 : document.activeElement;\n\n if (deep) {\n while (element == null ? void 0 : element.shadowRoot) {\n element = (_a2 = element == null ? void 0 : element.shadowRoot) == null ? void 0 : _a2.activeElement;\n }\n }\n\n return element;\n };\n\n var activeElement = ref();\n\n var trigger = function trigger() {\n activeElement.value = getDeepActiveElement();\n };\n\n if (window) {\n useEventListener(window, \"blur\", function (event) {\n if (event.relatedTarget !== null) return;\n trigger();\n }, true);\n useEventListener(window, \"focus\", trigger, true);\n }\n\n if (triggerOnRemoval) {\n useMutationObserver(document, function (mutations) {\n mutations.filter(function (m) {\n return m.removedNodes.length;\n }).map(function (n) {\n return Array.from(n.removedNodes);\n }).flat().forEach(function (node) {\n if (node === activeElement.value) trigger();\n });\n }, {\n childList: true,\n subtree: true\n });\n }\n\n trigger();\n return activeElement;\n}\n\nfunction useRafFn(fn) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _options$immediate = options.immediate,\n immediate = _options$immediate === void 0 ? true : _options$immediate,\n _options$fpsLimit = options.fpsLimit,\n fpsLimit = _options$fpsLimit === void 0 ? void 0 : _options$fpsLimit,\n _options$window4 = options.window,\n window = _options$window4 === void 0 ? defaultWindow : _options$window4;\n var isActive = ref(false);\n var intervalLimit = fpsLimit ? 1e3 / fpsLimit : null;\n var previousFrameTimestamp = 0;\n var rafId = null;\n\n function loop(timestamp) {\n if (!isActive.value || !window) return;\n if (!previousFrameTimestamp) previousFrameTimestamp = timestamp;\n var delta = timestamp - previousFrameTimestamp;\n\n if (intervalLimit && delta < intervalLimit) {\n rafId = window.requestAnimationFrame(loop);\n return;\n }\n\n previousFrameTimestamp = timestamp;\n fn({\n delta: delta,\n timestamp: timestamp\n });\n rafId = window.requestAnimationFrame(loop);\n }\n\n function resume() {\n if (!isActive.value && window) {\n isActive.value = true;\n previousFrameTimestamp = 0;\n rafId = window.requestAnimationFrame(loop);\n }\n }\n\n function pause() {\n isActive.value = false;\n\n if (rafId != null && window) {\n window.cancelAnimationFrame(rafId);\n rafId = null;\n }\n }\n\n if (immediate) resume();\n tryOnScopeDispose(pause);\n return {\n isActive: readonly(isActive),\n pause: pause,\n resume: resume\n };\n}\n\nfunction useAnimate(target, keyframes, options) {\n var config;\n var animateOptions;\n\n if (isObject(options)) {\n config = options;\n animateOptions = objectOmit(options, [\"window\", \"immediate\", \"commitStyles\", \"persist\", \"onReady\", \"onError\"]);\n } else {\n config = {\n duration: options\n };\n animateOptions = options;\n }\n\n var _config = config,\n _config$window = _config.window,\n window = _config$window === void 0 ? defaultWindow : _config$window,\n _config$immediate = _config.immediate,\n immediate = _config$immediate === void 0 ? true : _config$immediate,\n commitStyles = _config.commitStyles,\n persist = _config.persist,\n _config$playbackRate = _config.playbackRate,\n _playbackRate = _config$playbackRate === void 0 ? 1 : _config$playbackRate,\n onReady = _config.onReady,\n _config$onError = _config.onError,\n onError = _config$onError === void 0 ? function (e) {\n console.error(e);\n } : _config$onError;\n\n var isSupported = useSupported(function () {\n return window && HTMLElement && \"animate\" in HTMLElement.prototype;\n });\n var animate = shallowRef(void 0);\n var store = shallowReactive({\n startTime: null,\n currentTime: null,\n timeline: null,\n playbackRate: _playbackRate,\n pending: false,\n playState: immediate ? \"idle\" : \"paused\",\n replaceState: \"active\"\n });\n var pending = computed(function () {\n return store.pending;\n });\n var playState = computed(function () {\n return store.playState;\n });\n var replaceState = computed(function () {\n return store.replaceState;\n });\n var startTime = computed({\n get: function get() {\n return store.startTime;\n },\n set: function set(value) {\n store.startTime = value;\n if (animate.value) animate.value.startTime = value;\n }\n });\n var currentTime = computed({\n get: function get() {\n return store.currentTime;\n },\n set: function set(value) {\n store.currentTime = value;\n\n if (animate.value) {\n animate.value.currentTime = value;\n syncResume();\n }\n }\n });\n var timeline = computed({\n get: function get() {\n return store.timeline;\n },\n set: function set(value) {\n store.timeline = value;\n if (animate.value) animate.value.timeline = value;\n }\n });\n var playbackRate = computed({\n get: function get() {\n return store.playbackRate;\n },\n set: function set(value) {\n store.playbackRate = value;\n if (animate.value) animate.value.playbackRate = value;\n }\n });\n\n var play = function play() {\n if (animate.value) {\n try {\n animate.value.play();\n syncResume();\n } catch (e) {\n syncPause();\n onError(e);\n }\n } else {\n update();\n }\n };\n\n var pause = function pause() {\n var _a;\n\n try {\n (_a = animate.value) == null ? void 0 : _a.pause();\n syncPause();\n } catch (e) {\n onError(e);\n }\n };\n\n var reverse = function reverse() {\n var _a;\n\n !animate.value && update();\n\n try {\n (_a = animate.value) == null ? void 0 : _a.reverse();\n syncResume();\n } catch (e) {\n syncPause();\n onError(e);\n }\n };\n\n var finish = function finish() {\n var _a;\n\n try {\n (_a = animate.value) == null ? void 0 : _a.finish();\n syncPause();\n } catch (e) {\n onError(e);\n }\n };\n\n var cancel = function cancel() {\n var _a;\n\n try {\n (_a = animate.value) == null ? void 0 : _a.cancel();\n syncPause();\n } catch (e) {\n onError(e);\n }\n };\n\n watch(function () {\n return unrefElement(target);\n }, function (el) {\n el && update();\n });\n watch(function () {\n return keyframes;\n }, function (value) {\n !animate.value && update();\n\n if (!unrefElement(target) && animate.value) {\n animate.value.effect = new KeyframeEffect(unrefElement(target), toValue(value), animateOptions);\n }\n }, {\n deep: true\n });\n tryOnMounted(function () {\n nextTick(function () {\n return update(true);\n });\n });\n tryOnScopeDispose(cancel);\n\n function update(init) {\n var el = unrefElement(target);\n if (!isSupported.value || !el) return;\n if (!animate.value) animate.value = el.animate(toValue(keyframes), animateOptions);\n if (persist) animate.value.persist();\n if (_playbackRate !== 1) animate.value.playbackRate = _playbackRate;\n if (init && !immediate) animate.value.pause();else syncResume();\n onReady == null ? void 0 : onReady(animate.value);\n }\n\n useEventListener(animate, [\"cancel\", \"finish\", \"remove\"], syncPause);\n useEventListener(animate, \"finish\", function () {\n var _a;\n\n if (commitStyles) (_a = animate.value) == null ? void 0 : _a.commitStyles();\n });\n\n var _useRafFn = useRafFn(function () {\n if (!animate.value) return;\n store.pending = animate.value.pending;\n store.playState = animate.value.playState;\n store.replaceState = animate.value.replaceState;\n store.startTime = animate.value.startTime;\n store.currentTime = animate.value.currentTime;\n store.timeline = animate.value.timeline;\n store.playbackRate = animate.value.playbackRate;\n }, {\n immediate: false\n }),\n resumeRef = _useRafFn.resume,\n pauseRef = _useRafFn.pause;\n\n function syncResume() {\n if (isSupported.value) resumeRef();\n }\n\n function syncPause() {\n if (isSupported.value && window) window.requestAnimationFrame(pauseRef);\n }\n\n return {\n isSupported: isSupported,\n animate: animate,\n // actions\n play: play,\n pause: pause,\n reverse: reverse,\n finish: finish,\n cancel: cancel,\n // state\n pending: pending,\n playState: playState,\n replaceState: replaceState,\n startTime: startTime,\n currentTime: currentTime,\n timeline: timeline,\n playbackRate: playbackRate\n };\n}\n\nfunction useAsyncQueue(tasks, options) {\n var _ref8 = options || {},\n _ref8$interrupt = _ref8.interrupt,\n interrupt = _ref8$interrupt === void 0 ? true : _ref8$interrupt,\n _ref8$onError = _ref8.onError,\n onError = _ref8$onError === void 0 ? noop : _ref8$onError,\n _ref8$onFinished = _ref8.onFinished,\n onFinished = _ref8$onFinished === void 0 ? noop : _ref8$onFinished,\n signal = _ref8.signal;\n\n var promiseState = {\n aborted: \"aborted\",\n fulfilled: \"fulfilled\",\n pending: \"pending\",\n rejected: \"rejected\"\n };\n var initialResult = Array.from(Array.from({\n length: tasks.length\n }), function () {\n return {\n state: promiseState.pending,\n data: null\n };\n });\n var result = reactive(initialResult);\n var activeIndex = ref(-1);\n\n if (!tasks || tasks.length === 0) {\n onFinished();\n return {\n activeIndex: activeIndex,\n result: result\n };\n }\n\n function updateResult(state, res) {\n activeIndex.value++;\n result[activeIndex.value].data = res;\n result[activeIndex.value].state = state;\n }\n\n tasks.reduce(function (prev, curr) {\n return prev.then(function (prevRes) {\n var _a;\n\n if (signal == null ? void 0 : signal.aborted) {\n updateResult(promiseState.aborted, new Error(\"aborted\"));\n return;\n }\n\n if (((_a = result[activeIndex.value]) == null ? void 0 : _a.state) === promiseState.rejected && interrupt) {\n onFinished();\n return;\n }\n\n var done = curr(prevRes).then(function (currentRes) {\n updateResult(promiseState.fulfilled, currentRes);\n activeIndex.value === tasks.length - 1 && onFinished();\n return currentRes;\n });\n if (!signal) return done;\n return Promise.race([done, whenAborted(signal)]);\n }).catch(function (e) {\n if (signal == null ? void 0 : signal.aborted) {\n updateResult(promiseState.aborted, e);\n return e;\n }\n\n updateResult(promiseState.rejected, e);\n onError();\n return e;\n });\n }, Promise.resolve());\n return {\n activeIndex: activeIndex,\n result: result\n };\n}\n\nfunction whenAborted(signal) {\n return new Promise(function (resolve, reject) {\n var error = new Error(\"aborted\");\n if (signal.aborted) reject(error);else signal.addEventListener(\"abort\", function () {\n return reject(error);\n }, {\n once: true\n });\n });\n}\n\nfunction useAsyncState(promise, initialState, options) {\n var _ref9 = options != null ? options : {},\n _ref9$immediate = _ref9.immediate,\n immediate = _ref9$immediate === void 0 ? true : _ref9$immediate,\n _ref9$delay = _ref9.delay,\n delay = _ref9$delay === void 0 ? 0 : _ref9$delay,\n _ref9$onError = _ref9.onError,\n onError = _ref9$onError === void 0 ? noop : _ref9$onError,\n _ref9$onSuccess = _ref9.onSuccess,\n onSuccess = _ref9$onSuccess === void 0 ? noop : _ref9$onSuccess,\n _ref9$resetOnExecute = _ref9.resetOnExecute,\n resetOnExecute = _ref9$resetOnExecute === void 0 ? true : _ref9$resetOnExecute,\n _ref9$shallow = _ref9.shallow,\n shallow = _ref9$shallow === void 0 ? true : _ref9$shallow,\n throwError = _ref9.throwError;\n\n var state = shallow ? shallowRef(initialState) : ref(initialState);\n var isReady = ref(false);\n var isLoading = ref(false);\n var error = shallowRef(void 0);\n\n function execute() {\n return _execute.apply(this, arguments);\n }\n\n function _execute() {\n _execute = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {\n var delay2,\n _len4,\n args,\n _key4,\n _promise,\n data,\n _args2 = arguments;\n\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n delay2 = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : 0;\n if (resetOnExecute) state.value = initialState;\n error.value = void 0;\n isReady.value = false;\n isLoading.value = true;\n\n if (!(delay2 > 0)) {\n _context2.next = 8;\n break;\n }\n\n _context2.next = 8;\n return promiseTimeout(delay2);\n\n case 8:\n for (_len4 = _args2.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {\n args[_key4 - 1] = _args2[_key4];\n }\n\n _promise = typeof promise === \"function\" ? promise.apply(void 0, args) : promise;\n _context2.prev = 10;\n _context2.next = 13;\n return _promise;\n\n case 13:\n data = _context2.sent;\n state.value = data;\n isReady.value = true;\n onSuccess(data);\n _context2.next = 25;\n break;\n\n case 19:\n _context2.prev = 19;\n _context2.t0 = _context2[\"catch\"](10);\n error.value = _context2.t0;\n onError(_context2.t0);\n\n if (!throwError) {\n _context2.next = 25;\n break;\n }\n\n throw _context2.t0;\n\n case 25:\n _context2.prev = 25;\n isLoading.value = false;\n return _context2.finish(25);\n\n case 28:\n return _context2.abrupt(\"return\", state.value);\n\n case 29:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, null, [[10, 19, 25, 28]]);\n }));\n return _execute.apply(this, arguments);\n }\n\n if (immediate) execute(delay);\n var shell = {\n state: state,\n isReady: isReady,\n isLoading: isLoading,\n error: error,\n execute: execute\n };\n\n function waitUntilIsLoaded() {\n return new Promise(function (resolve, reject) {\n until(isLoading).toBe(false).then(function () {\n return resolve(shell);\n }).catch(reject);\n });\n }\n\n return _objectSpread(_objectSpread({}, shell), {}, {\n then: function then(onFulfilled, onRejected) {\n return waitUntilIsLoaded().then(onFulfilled, onRejected);\n }\n });\n}\n\nvar defaults = {\n array: function array(v) {\n return JSON.stringify(v);\n },\n object: function object(v) {\n return JSON.stringify(v);\n },\n set: function set(v) {\n return JSON.stringify(Array.from(v));\n },\n map: function map(v) {\n return JSON.stringify(Object.fromEntries(v));\n },\n null: function _null() {\n return \"\";\n }\n};\n\nfunction getDefaultSerialization(target) {\n if (!target) return defaults.null;\n if (target instanceof Map) return defaults.map;else if (target instanceof Set) return defaults.set;else if (Array.isArray(target)) return defaults.array;else return defaults.object;\n}\n\nfunction useBase64(target, options) {\n var base64 = ref(\"\");\n var promise = ref();\n\n function execute() {\n if (!isClient) return;\n promise.value = new Promise(function (resolve, reject) {\n try {\n var _target = toValue(target);\n\n if (_target == null) {\n resolve(\"\");\n } else if (typeof _target === \"string\") {\n resolve(blobToBase64(new Blob([_target], {\n type: \"text/plain\"\n })));\n } else if (_target instanceof Blob) {\n resolve(blobToBase64(_target));\n } else if (_target instanceof ArrayBuffer) {\n resolve(window.btoa(String.fromCharCode.apply(String, _toConsumableArray(new Uint8Array(_target)))));\n } else if (_target instanceof HTMLCanvasElement) {\n resolve(_target.toDataURL(options == null ? void 0 : options.type, options == null ? void 0 : options.quality));\n } else if (_target instanceof HTMLImageElement) {\n var img = _target.cloneNode(false);\n\n img.crossOrigin = \"Anonymous\";\n imgLoaded(img).then(function () {\n var canvas = document.createElement(\"canvas\");\n var ctx = canvas.getContext(\"2d\");\n canvas.width = img.width;\n canvas.height = img.height;\n ctx.drawImage(img, 0, 0, canvas.width, canvas.height);\n resolve(canvas.toDataURL(options == null ? void 0 : options.type, options == null ? void 0 : options.quality));\n }).catch(reject);\n } else if (_typeof(_target) === \"object\") {\n var _serializeFn = (options == null ? void 0 : options.serializer) || getDefaultSerialization(_target);\n\n var serialized = _serializeFn(_target);\n\n return resolve(blobToBase64(new Blob([serialized], {\n type: \"application/json\"\n })));\n } else {\n reject(new Error(\"target is unsupported types\"));\n }\n } catch (error) {\n reject(error);\n }\n });\n promise.value.then(function (res) {\n return base64.value = res;\n });\n return promise.value;\n }\n\n if (isRef(target) || typeof target === \"function\") watch(target, execute, {\n immediate: true\n });else execute();\n return {\n base64: base64,\n promise: promise,\n execute: execute\n };\n}\n\nfunction imgLoaded(img) {\n return new Promise(function (resolve, reject) {\n if (!img.complete) {\n img.onload = function () {\n resolve();\n };\n\n img.onerror = reject;\n } else {\n resolve();\n }\n });\n}\n\nfunction blobToBase64(blob) {\n return new Promise(function (resolve, reject) {\n var fr = new FileReader();\n\n fr.onload = function (e) {\n resolve(e.target.result);\n };\n\n fr.onerror = reject;\n fr.readAsDataURL(blob);\n });\n}\n\nfunction useBattery() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$navigator = options.navigator,\n navigator = _options$navigator === void 0 ? defaultNavigator : _options$navigator;\n var events = [\"chargingchange\", \"chargingtimechange\", \"dischargingtimechange\", \"levelchange\"];\n var isSupported = useSupported(function () {\n return navigator && \"getBattery\" in navigator && typeof navigator.getBattery === \"function\";\n });\n var charging = ref(false);\n var chargingTime = ref(0);\n var dischargingTime = ref(0);\n var level = ref(1);\n var battery;\n\n function updateBatteryInfo() {\n charging.value = this.charging;\n chargingTime.value = this.chargingTime || 0;\n dischargingTime.value = this.dischargingTime || 0;\n level.value = this.level;\n }\n\n if (isSupported.value) {\n navigator.getBattery().then(function (_battery) {\n battery = _battery;\n updateBatteryInfo.call(battery);\n useEventListener(battery, events, updateBatteryInfo, {\n passive: true\n });\n });\n }\n\n return {\n isSupported: isSupported,\n charging: charging,\n chargingTime: chargingTime,\n dischargingTime: dischargingTime,\n level: level\n };\n}\n\nfunction useBluetooth(options) {\n var _ref10 = options || {},\n _ref10$acceptAllDevic = _ref10.acceptAllDevices,\n acceptAllDevices = _ref10$acceptAllDevic === void 0 ? false : _ref10$acceptAllDevic;\n\n var _ref11 = options || {},\n _ref11$filters = _ref11.filters,\n filters = _ref11$filters === void 0 ? void 0 : _ref11$filters,\n _ref11$optionalServic = _ref11.optionalServices,\n optionalServices = _ref11$optionalServic === void 0 ? void 0 : _ref11$optionalServic,\n _ref11$navigator = _ref11.navigator,\n navigator = _ref11$navigator === void 0 ? defaultNavigator : _ref11$navigator;\n\n var isSupported = useSupported(function () {\n return navigator && \"bluetooth\" in navigator;\n });\n var device = shallowRef(void 0);\n var error = shallowRef(null);\n watch(device, function () {\n connectToBluetoothGATTServer();\n });\n\n function requestDevice() {\n return _requestDevice.apply(this, arguments);\n }\n\n function _requestDevice() {\n _requestDevice = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {\n return regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n if (isSupported.value) {\n _context3.next = 2;\n break;\n }\n\n return _context3.abrupt(\"return\");\n\n case 2:\n error.value = null;\n if (filters && filters.length > 0) acceptAllDevices = false;\n _context3.prev = 4;\n _context3.next = 7;\n return navigator == null ? void 0 : navigator.bluetooth.requestDevice({\n acceptAllDevices: acceptAllDevices,\n filters: filters,\n optionalServices: optionalServices\n });\n\n case 7:\n device.value = _context3.sent;\n _context3.next = 13;\n break;\n\n case 10:\n _context3.prev = 10;\n _context3.t0 = _context3[\"catch\"](4);\n error.value = _context3.t0;\n\n case 13:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, null, [[4, 10]]);\n }));\n return _requestDevice.apply(this, arguments);\n }\n\n var server = ref();\n var isConnected = computed(function () {\n var _a;\n\n return ((_a = server.value) == null ? void 0 : _a.connected) || false;\n });\n\n function connectToBluetoothGATTServer() {\n return _connectToBluetoothGATTServer.apply(this, arguments);\n }\n\n function _connectToBluetoothGATTServer() {\n _connectToBluetoothGATTServer = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {\n return regeneratorRuntime.wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n error.value = null;\n\n if (!(device.value && device.value.gatt)) {\n _context4.next = 12;\n break;\n }\n\n device.value.addEventListener(\"gattserverdisconnected\", function () {});\n _context4.prev = 3;\n _context4.next = 6;\n return device.value.gatt.connect();\n\n case 6:\n server.value = _context4.sent;\n _context4.next = 12;\n break;\n\n case 9:\n _context4.prev = 9;\n _context4.t0 = _context4[\"catch\"](3);\n error.value = _context4.t0;\n\n case 12:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4, null, [[3, 9]]);\n }));\n return _connectToBluetoothGATTServer.apply(this, arguments);\n }\n\n tryOnMounted(function () {\n var _a;\n\n if (device.value) (_a = device.value.gatt) == null ? void 0 : _a.connect();\n });\n tryOnScopeDispose(function () {\n var _a;\n\n if (device.value) (_a = device.value.gatt) == null ? void 0 : _a.disconnect();\n });\n return {\n isSupported: isSupported,\n isConnected: isConnected,\n // Device:\n device: device,\n requestDevice: requestDevice,\n // Server:\n server: server,\n // Errors:\n error: error\n };\n}\n\nfunction useMediaQuery(query) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _options$window5 = options.window,\n window = _options$window5 === void 0 ? defaultWindow : _options$window5;\n var isSupported = useSupported(function () {\n return window && \"matchMedia\" in window && typeof window.matchMedia === \"function\";\n });\n var mediaQuery;\n var matches = ref(false);\n\n var handler = function handler(event) {\n matches.value = event.matches;\n };\n\n var cleanup = function cleanup() {\n if (!mediaQuery) return;\n if (\"removeEventListener\" in mediaQuery) mediaQuery.removeEventListener(\"change\", handler);else mediaQuery.removeListener(handler);\n };\n\n var stopWatch = watchEffect(function () {\n if (!isSupported.value) return;\n cleanup();\n mediaQuery = window.matchMedia(toValue(query));\n if (\"addEventListener\" in mediaQuery) mediaQuery.addEventListener(\"change\", handler);else mediaQuery.addListener(handler);\n matches.value = mediaQuery.matches;\n });\n tryOnScopeDispose(function () {\n stopWatch();\n cleanup();\n mediaQuery = void 0;\n });\n return matches;\n}\n\nvar breakpointsTailwind = {\n \"sm\": 640,\n \"md\": 768,\n \"lg\": 1024,\n \"xl\": 1280,\n \"2xl\": 1536\n};\nvar breakpointsBootstrapV5 = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200,\n xxl: 1400\n};\nvar breakpointsVuetifyV2 = {\n xs: 0,\n sm: 600,\n md: 960,\n lg: 1264,\n xl: 1904\n};\nvar breakpointsVuetifyV3 = {\n xs: 0,\n sm: 600,\n md: 960,\n lg: 1280,\n xl: 1920,\n xxl: 2560\n};\nvar breakpointsVuetify = breakpointsVuetifyV2;\nvar breakpointsAntDesign = {\n xs: 480,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200,\n xxl: 1600\n};\nvar breakpointsQuasar = {\n xs: 0,\n sm: 600,\n md: 1024,\n lg: 1440,\n xl: 1920\n};\nvar breakpointsSematic = {\n mobileS: 320,\n mobileM: 375,\n mobileL: 425,\n tablet: 768,\n laptop: 1024,\n laptopL: 1440,\n desktop4K: 2560\n};\nvar breakpointsMasterCss = {\n \"3xs\": 360,\n \"2xs\": 480,\n \"xs\": 600,\n \"sm\": 768,\n \"md\": 1024,\n \"lg\": 1280,\n \"xl\": 1440,\n \"2xl\": 1600,\n \"3xl\": 1920,\n \"4xl\": 2560\n};\nvar breakpointsPrimeFlex = {\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200\n};\n\nfunction useBreakpoints(breakpoints) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n function getValue(k, delta) {\n var v = toValue(breakpoints[toValue(k)]);\n if (delta != null) v = increaseWithUnit(v, delta);\n if (typeof v === \"number\") v = \"\".concat(v, \"px\");\n return v;\n }\n\n var _options$window6 = options.window,\n window = _options$window6 === void 0 ? defaultWindow : _options$window6,\n _options$strategy = options.strategy,\n strategy = _options$strategy === void 0 ? \"min-width\" : _options$strategy;\n\n function match(query) {\n if (!window) return false;\n return window.matchMedia(query).matches;\n }\n\n var greaterOrEqual = function greaterOrEqual(k) {\n return useMediaQuery(function () {\n return \"(min-width: \".concat(getValue(k), \")\");\n }, options);\n };\n\n var smallerOrEqual = function smallerOrEqual(k) {\n return useMediaQuery(function () {\n return \"(max-width: \".concat(getValue(k), \")\");\n }, options);\n };\n\n var shortcutMethods = Object.keys(breakpoints).reduce(function (shortcuts, k) {\n Object.defineProperty(shortcuts, k, {\n get: function get() {\n return strategy === \"min-width\" ? greaterOrEqual(k) : smallerOrEqual(k);\n },\n enumerable: true,\n configurable: true\n });\n return shortcuts;\n }, {});\n\n function current() {\n var points = Object.keys(breakpoints).map(function (i) {\n return [i, greaterOrEqual(i)];\n });\n return computed(function () {\n return points.filter(function (_ref12) {\n var _ref13 = _slicedToArray(_ref12, 2),\n v = _ref13[1];\n\n return v.value;\n }).map(function (_ref14) {\n var _ref15 = _slicedToArray(_ref14, 1),\n k = _ref15[0];\n\n return k;\n });\n });\n }\n\n return Object.assign(shortcutMethods, {\n greaterOrEqual: greaterOrEqual,\n smallerOrEqual: smallerOrEqual,\n greater: function greater(k) {\n return useMediaQuery(function () {\n return \"(min-width: \".concat(getValue(k, 0.1), \")\");\n }, options);\n },\n smaller: function smaller(k) {\n return useMediaQuery(function () {\n return \"(max-width: \".concat(getValue(k, -0.1), \")\");\n }, options);\n },\n between: function between(a, b) {\n return useMediaQuery(function () {\n return \"(min-width: \".concat(getValue(a), \") and (max-width: \").concat(getValue(b, -0.1), \")\");\n }, options);\n },\n isGreater: function isGreater(k) {\n return match(\"(min-width: \".concat(getValue(k, 0.1), \")\"));\n },\n isGreaterOrEqual: function isGreaterOrEqual(k) {\n return match(\"(min-width: \".concat(getValue(k), \")\"));\n },\n isSmaller: function isSmaller(k) {\n return match(\"(max-width: \".concat(getValue(k, -0.1), \")\"));\n },\n isSmallerOrEqual: function isSmallerOrEqual(k) {\n return match(\"(max-width: \".concat(getValue(k), \")\"));\n },\n isInBetween: function isInBetween(a, b) {\n return match(\"(min-width: \".concat(getValue(a), \") and (max-width: \").concat(getValue(b, -0.1), \")\"));\n },\n current: current,\n active: function active() {\n var bps = current();\n return computed(function () {\n return bps.value.length === 0 ? \"\" : bps.value.at(-1);\n });\n }\n });\n}\n\nfunction useBroadcastChannel(options) {\n var name = options.name,\n _options$window7 = options.window,\n window = _options$window7 === void 0 ? defaultWindow : _options$window7;\n var isSupported = useSupported(function () {\n return window && \"BroadcastChannel\" in window;\n });\n var isClosed = ref(false);\n var channel = ref();\n var data = ref();\n var error = shallowRef(null);\n\n var post = function post(data2) {\n if (channel.value) channel.value.postMessage(data2);\n };\n\n var close = function close() {\n if (channel.value) channel.value.close();\n isClosed.value = true;\n };\n\n if (isSupported.value) {\n tryOnMounted(function () {\n error.value = null;\n channel.value = new BroadcastChannel(name);\n channel.value.addEventListener(\"message\", function (e) {\n data.value = e.data;\n }, {\n passive: true\n });\n channel.value.addEventListener(\"messageerror\", function (e) {\n error.value = e;\n }, {\n passive: true\n });\n channel.value.addEventListener(\"close\", function () {\n isClosed.value = true;\n });\n });\n }\n\n tryOnScopeDispose(function () {\n close();\n });\n return {\n isSupported: isSupported,\n channel: channel,\n data: data,\n post: post,\n close: close,\n error: error,\n isClosed: isClosed\n };\n}\n\nvar WRITABLE_PROPERTIES = [\"hash\", \"host\", \"hostname\", \"href\", \"pathname\", \"port\", \"protocol\", \"search\"];\n\nfunction useBrowserLocation() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$window8 = options.window,\n window = _options$window8 === void 0 ? defaultWindow : _options$window8;\n var refs = Object.fromEntries(WRITABLE_PROPERTIES.map(function (key) {\n return [key, ref()];\n }));\n\n var _iterator = _createForOfIteratorHelper(objectEntries(refs)),\n _step;\n\n try {\n var _loop = function _loop() {\n var _step$value = _slicedToArray(_step.value, 2),\n key = _step$value[0],\n ref2 = _step$value[1];\n\n watch(ref2, function (value) {\n if (!(window == null ? void 0 : window.location) || window.location[key] === value) return;\n window.location[key] = value;\n });\n };\n\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n _loop();\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n var buildState = function buildState(trigger) {\n var _a;\n\n var _ref16 = (window == null ? void 0 : window.history) || {},\n state2 = _ref16.state,\n length = _ref16.length;\n\n var _ref17 = (window == null ? void 0 : window.location) || {},\n origin = _ref17.origin;\n\n var _iterator2 = _createForOfIteratorHelper(WRITABLE_PROPERTIES),\n _step2;\n\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var key = _step2.value;\n refs[key].value = (_a = window == null ? void 0 : window.location) == null ? void 0 : _a[key];\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n\n return reactive(_objectSpread({\n trigger: trigger,\n state: state2,\n length: length,\n origin: origin\n }, refs));\n };\n\n var state = ref(buildState(\"load\"));\n\n if (window) {\n useEventListener(window, \"popstate\", function () {\n return state.value = buildState(\"popstate\");\n }, {\n passive: true\n });\n useEventListener(window, \"hashchange\", function () {\n return state.value = buildState(\"hashchange\");\n }, {\n passive: true\n });\n }\n\n return state;\n}\n\nfunction useCached(refValue) {\n var comparator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (a, b) {\n return a === b;\n };\n var watchOptions = arguments.length > 2 ? arguments[2] : undefined;\n var cachedValue = ref(refValue.value);\n watch(function () {\n return refValue.value;\n }, function (value) {\n if (!comparator(value, cachedValue.value)) cachedValue.value = value;\n }, watchOptions);\n return cachedValue;\n}\n\nfunction usePermission(permissionDesc) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _options$controls = options.controls,\n controls = _options$controls === void 0 ? false : _options$controls,\n _options$navigator2 = options.navigator,\n navigator = _options$navigator2 === void 0 ? defaultNavigator : _options$navigator2;\n var isSupported = useSupported(function () {\n return navigator && \"permissions\" in navigator;\n });\n var permissionStatus;\n var desc = typeof permissionDesc === \"string\" ? {\n name: permissionDesc\n } : permissionDesc;\n var state = ref();\n\n var onChange = function onChange() {\n if (permissionStatus) state.value = permissionStatus.state;\n };\n\n var query = createSingletonPromise( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {\n return regeneratorRuntime.wrap(function _callee5$(_context5) {\n while (1) {\n switch (_context5.prev = _context5.next) {\n case 0:\n if (isSupported.value) {\n _context5.next = 2;\n break;\n }\n\n return _context5.abrupt(\"return\");\n\n case 2:\n if (permissionStatus) {\n _context5.next = 14;\n break;\n }\n\n _context5.prev = 3;\n _context5.next = 6;\n return navigator.permissions.query(desc);\n\n case 6:\n permissionStatus = _context5.sent;\n useEventListener(permissionStatus, \"change\", onChange);\n onChange();\n _context5.next = 14;\n break;\n\n case 11:\n _context5.prev = 11;\n _context5.t0 = _context5[\"catch\"](3);\n state.value = \"prompt\";\n\n case 14:\n return _context5.abrupt(\"return\", permissionStatus);\n\n case 15:\n case \"end\":\n return _context5.stop();\n }\n }\n }, _callee5, null, [[3, 11]]);\n })));\n query();\n\n if (controls) {\n return {\n state: state,\n isSupported: isSupported,\n query: query\n };\n } else {\n return state;\n }\n}\n\nfunction useClipboard() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$navigator3 = options.navigator,\n navigator = _options$navigator3 === void 0 ? defaultNavigator : _options$navigator3,\n _options$read = options.read,\n read = _options$read === void 0 ? false : _options$read,\n source = options.source,\n _options$copiedDuring = options.copiedDuring,\n copiedDuring = _options$copiedDuring === void 0 ? 1500 : _options$copiedDuring,\n _options$legacy = options.legacy,\n legacy = _options$legacy === void 0 ? false : _options$legacy;\n var isClipboardApiSupported = useSupported(function () {\n return navigator && \"clipboard\" in navigator;\n });\n var permissionRead = usePermission(\"clipboard-read\");\n var permissionWrite = usePermission(\"clipboard-write\");\n var isSupported = computed(function () {\n return isClipboardApiSupported.value || legacy;\n });\n var text = ref(\"\");\n var copied = ref(false);\n var timeout = useTimeoutFn(function () {\n return copied.value = false;\n }, copiedDuring);\n\n function updateText() {\n if (isClipboardApiSupported.value && isAllowed(permissionRead.value)) {\n navigator.clipboard.readText().then(function (value) {\n text.value = value;\n });\n } else {\n text.value = legacyRead();\n }\n }\n\n if (isSupported.value && read) useEventListener([\"copy\", \"cut\"], updateText);\n\n function copy() {\n return _copy.apply(this, arguments);\n }\n\n function _copy() {\n _copy = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {\n var value,\n _args6 = arguments;\n return regeneratorRuntime.wrap(function _callee6$(_context6) {\n while (1) {\n switch (_context6.prev = _context6.next) {\n case 0:\n value = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : toValue(source);\n\n if (!(isSupported.value && value != null)) {\n _context6.next = 11;\n break;\n }\n\n if (!(isClipboardApiSupported.value && isAllowed(permissionWrite.value))) {\n _context6.next = 7;\n break;\n }\n\n _context6.next = 5;\n return navigator.clipboard.writeText(value);\n\n case 5:\n _context6.next = 8;\n break;\n\n case 7:\n legacyCopy(value);\n\n case 8:\n text.value = value;\n copied.value = true;\n timeout.start();\n\n case 11:\n case \"end\":\n return _context6.stop();\n }\n }\n }, _callee6);\n }));\n return _copy.apply(this, arguments);\n }\n\n function legacyCopy(value) {\n var ta = document.createElement(\"textarea\");\n ta.value = value != null ? value : \"\";\n ta.style.position = \"absolute\";\n ta.style.opacity = \"0\";\n document.body.appendChild(ta);\n ta.select();\n document.execCommand(\"copy\");\n ta.remove();\n }\n\n function legacyRead() {\n var _a, _b, _c;\n\n return (_c = (_b = (_a = document == null ? void 0 : document.getSelection) == null ? void 0 : _a.call(document)) == null ? void 0 : _b.toString()) != null ? _c : \"\";\n }\n\n function isAllowed(status) {\n return status === \"granted\" || status === \"prompt\";\n }\n\n return {\n isSupported: isSupported,\n text: text,\n copied: copied,\n copy: copy\n };\n}\n\nfunction useClipboardItems() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$navigator4 = options.navigator,\n navigator = _options$navigator4 === void 0 ? defaultNavigator : _options$navigator4,\n _options$read2 = options.read,\n read = _options$read2 === void 0 ? false : _options$read2,\n source = options.source,\n _options$copiedDuring2 = options.copiedDuring,\n copiedDuring = _options$copiedDuring2 === void 0 ? 1500 : _options$copiedDuring2;\n var isSupported = useSupported(function () {\n return navigator && \"clipboard\" in navigator;\n });\n var content = ref([]);\n var copied = ref(false);\n var timeout = useTimeoutFn(function () {\n return copied.value = false;\n }, copiedDuring);\n\n function updateContent() {\n if (isSupported.value) {\n navigator.clipboard.read().then(function (items) {\n content.value = items;\n });\n }\n }\n\n if (isSupported.value && read) useEventListener([\"copy\", \"cut\"], updateContent);\n\n function copy() {\n return _copy2.apply(this, arguments);\n }\n\n function _copy2() {\n _copy2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {\n var value,\n _args7 = arguments;\n return regeneratorRuntime.wrap(function _callee7$(_context7) {\n while (1) {\n switch (_context7.prev = _context7.next) {\n case 0:\n value = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : toValue(source);\n\n if (!(isSupported.value && value != null)) {\n _context7.next = 7;\n break;\n }\n\n _context7.next = 4;\n return navigator.clipboard.write(value);\n\n case 4:\n content.value = value;\n copied.value = true;\n timeout.start();\n\n case 7:\n case \"end\":\n return _context7.stop();\n }\n }\n }, _callee7);\n }));\n return _copy2.apply(this, arguments);\n }\n\n return {\n isSupported: isSupported,\n content: content,\n copied: copied,\n copy: copy\n };\n}\n\nfunction cloneFnJSON(source) {\n return JSON.parse(JSON.stringify(source));\n}\n\nfunction useCloned(source) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var cloned = ref({});\n var manual = options.manual,\n _options$clone = options.clone,\n clone = _options$clone === void 0 ? cloneFnJSON : _options$clone,\n _options$deep2 = options.deep,\n deep = _options$deep2 === void 0 ? true : _options$deep2,\n _options$immediate2 = options.immediate,\n immediate = _options$immediate2 === void 0 ? true : _options$immediate2;\n\n function sync() {\n cloned.value = clone(toValue(source));\n }\n\n if (!manual && (isRef(source) || typeof source === \"function\")) {\n watch(source, sync, _objectSpread(_objectSpread({}, options), {}, {\n deep: deep,\n immediate: immediate\n }));\n } else {\n sync();\n }\n\n return {\n cloned: cloned,\n sync: sync\n };\n}\n\nvar _global = typeof globalThis !== \"undefined\" ? globalThis : typeof window !== \"undefined\" ? window : typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : {};\n\nvar globalKey = \"__vueuse_ssr_handlers__\";\nvar handlers = /* @__PURE__ */getHandlers();\n\nfunction getHandlers() {\n if (!(globalKey in _global)) _global[globalKey] = _global[globalKey] || {};\n return _global[globalKey];\n}\n\nfunction getSSRHandler(key, fallback) {\n return handlers[key] || fallback;\n}\n\nfunction setSSRHandler(key, fn) {\n handlers[key] = fn;\n}\n\nfunction guessSerializerType(rawInit) {\n return rawInit == null ? \"any\" : rawInit instanceof Set ? \"set\" : rawInit instanceof Map ? \"map\" : rawInit instanceof Date ? \"date\" : typeof rawInit === \"boolean\" ? \"boolean\" : typeof rawInit === \"string\" ? \"string\" : _typeof(rawInit) === \"object\" ? \"object\" : !Number.isNaN(rawInit) ? \"number\" : \"any\";\n}\n\nvar StorageSerializers = {\n boolean: {\n read: function read(v) {\n return v === \"true\";\n },\n write: function write(v) {\n return String(v);\n }\n },\n object: {\n read: function read(v) {\n return JSON.parse(v);\n },\n write: function write(v) {\n return JSON.stringify(v);\n }\n },\n number: {\n read: function read(v) {\n return Number.parseFloat(v);\n },\n write: function write(v) {\n return String(v);\n }\n },\n any: {\n read: function read(v) {\n return v;\n },\n write: function write(v) {\n return String(v);\n }\n },\n string: {\n read: function read(v) {\n return v;\n },\n write: function write(v) {\n return String(v);\n }\n },\n map: {\n read: function read(v) {\n return new Map(JSON.parse(v));\n },\n write: function write(v) {\n return JSON.stringify(Array.from(v.entries()));\n }\n },\n set: {\n read: function read(v) {\n return new Set(JSON.parse(v));\n },\n write: function write(v) {\n return JSON.stringify(Array.from(v));\n }\n },\n date: {\n read: function read(v) {\n return new Date(v);\n },\n write: function write(v) {\n return v.toISOString();\n }\n }\n};\nvar customStorageEventName = \"vueuse-storage\";\n\nfunction useStorage(key, defaults, storage) {\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n\n var _a;\n\n var _options$flush = options.flush,\n flush = _options$flush === void 0 ? \"pre\" : _options$flush,\n _options$deep3 = options.deep,\n deep = _options$deep3 === void 0 ? true : _options$deep3,\n _options$listenToStor = options.listenToStorageChanges,\n listenToStorageChanges = _options$listenToStor === void 0 ? true : _options$listenToStor,\n _options$writeDefault = options.writeDefaults,\n writeDefaults = _options$writeDefault === void 0 ? true : _options$writeDefault,\n _options$mergeDefault = options.mergeDefaults,\n mergeDefaults = _options$mergeDefault === void 0 ? false : _options$mergeDefault,\n shallow = options.shallow,\n _options$window9 = options.window,\n window = _options$window9 === void 0 ? defaultWindow : _options$window9,\n eventFilter = options.eventFilter,\n _options$onError = options.onError,\n onError = _options$onError === void 0 ? function (e) {\n console.error(e);\n } : _options$onError,\n initOnMounted = options.initOnMounted;\n var data = (shallow ? shallowRef : ref)(typeof defaults === \"function\" ? defaults() : defaults);\n\n if (!storage) {\n try {\n storage = getSSRHandler(\"getDefaultStorage\", function () {\n var _a2;\n\n return (_a2 = defaultWindow) == null ? void 0 : _a2.localStorage;\n })();\n } catch (e) {\n onError(e);\n }\n }\n\n if (!storage) return data;\n var rawInit = toValue(defaults);\n var type = guessSerializerType(rawInit);\n var serializer = (_a = options.serializer) != null ? _a : StorageSerializers[type];\n\n var _pausableWatch = pausableWatch(data, function () {\n return write(data.value);\n }, {\n flush: flush,\n deep: deep,\n eventFilter: eventFilter\n }),\n pauseWatch = _pausableWatch.pause,\n resumeWatch = _pausableWatch.resume;\n\n if (window && listenToStorageChanges) {\n tryOnMounted(function () {\n useEventListener(window, \"storage\", update);\n useEventListener(window, customStorageEventName, updateFromCustomEvent);\n if (initOnMounted) update();\n });\n }\n\n if (!initOnMounted) update();\n\n function dispatchWriteEvent(oldValue, newValue) {\n if (window) {\n window.dispatchEvent(new CustomEvent(customStorageEventName, {\n detail: {\n key: key,\n oldValue: oldValue,\n newValue: newValue,\n storageArea: storage\n }\n }));\n }\n }\n\n function write(v) {\n try {\n var oldValue = storage.getItem(key);\n\n if (v == null) {\n dispatchWriteEvent(oldValue, null);\n storage.removeItem(key);\n } else {\n var serialized = serializer.write(v);\n\n if (oldValue !== serialized) {\n storage.setItem(key, serialized);\n dispatchWriteEvent(oldValue, serialized);\n }\n }\n } catch (e) {\n onError(e);\n }\n }\n\n function read(event) {\n var rawValue = event ? event.newValue : storage.getItem(key);\n\n if (rawValue == null) {\n if (writeDefaults && rawInit != null) storage.setItem(key, serializer.write(rawInit));\n return rawInit;\n } else if (!event && mergeDefaults) {\n var value = serializer.read(rawValue);\n if (typeof mergeDefaults === \"function\") return mergeDefaults(value, rawInit);else if (type === \"object\" && !Array.isArray(value)) return _objectSpread(_objectSpread({}, rawInit), value);\n return value;\n } else if (typeof rawValue !== \"string\") {\n return rawValue;\n } else {\n return serializer.read(rawValue);\n }\n }\n\n function update(event) {\n if (event && event.storageArea !== storage) return;\n\n if (event && event.key == null) {\n data.value = rawInit;\n return;\n }\n\n if (event && event.key !== key) return;\n pauseWatch();\n\n try {\n if ((event == null ? void 0 : event.newValue) !== serializer.write(data.value)) data.value = read(event);\n } catch (e) {\n onError(e);\n } finally {\n if (event) nextTick(resumeWatch);else resumeWatch();\n }\n }\n\n function updateFromCustomEvent(event) {\n update(event.detail);\n }\n\n return data;\n}\n\nfunction usePreferredDark(options) {\n return useMediaQuery(\"(prefers-color-scheme: dark)\", options);\n}\n\nfunction useColorMode() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$selector = options.selector,\n selector = _options$selector === void 0 ? \"html\" : _options$selector,\n _options$attribute = options.attribute,\n attribute = _options$attribute === void 0 ? \"class\" : _options$attribute,\n _options$initialValue = options.initialValue,\n initialValue = _options$initialValue === void 0 ? \"auto\" : _options$initialValue,\n _options$window10 = options.window,\n window = _options$window10 === void 0 ? defaultWindow : _options$window10,\n storage = options.storage,\n _options$storageKey = options.storageKey,\n storageKey = _options$storageKey === void 0 ? \"vueuse-color-scheme\" : _options$storageKey,\n _options$listenToStor2 = options.listenToStorageChanges,\n listenToStorageChanges = _options$listenToStor2 === void 0 ? true : _options$listenToStor2,\n storageRef = options.storageRef,\n emitAuto = options.emitAuto,\n _options$disableTrans = options.disableTransition,\n disableTransition = _options$disableTrans === void 0 ? true : _options$disableTrans;\n\n var modes = _objectSpread({\n auto: \"\",\n light: \"light\",\n dark: \"dark\"\n }, options.modes || {});\n\n var preferredDark = usePreferredDark({\n window: window\n });\n var system = computed(function () {\n return preferredDark.value ? \"dark\" : \"light\";\n });\n var store = storageRef || (storageKey == null ? toRef(initialValue) : useStorage(storageKey, initialValue, storage, {\n window: window,\n listenToStorageChanges: listenToStorageChanges\n }));\n var state = computed(function () {\n return store.value === \"auto\" ? system.value : store.value;\n });\n var updateHTMLAttrs = getSSRHandler(\"updateHTMLAttrs\", function (selector2, attribute2, value) {\n var el = typeof selector2 === \"string\" ? window == null ? void 0 : window.document.querySelector(selector2) : unrefElement(selector2);\n if (!el) return;\n var style;\n\n if (disableTransition) {\n style = window.document.createElement(\"style\");\n var styleString = \"*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}\";\n style.appendChild(document.createTextNode(styleString));\n window.document.head.appendChild(style);\n }\n\n if (attribute2 === \"class\") {\n var current = value.split(/\\s/g);\n Object.values(modes).flatMap(function (i) {\n return (i || \"\").split(/\\s/g);\n }).filter(Boolean).forEach(function (v) {\n if (current.includes(v)) el.classList.add(v);else el.classList.remove(v);\n });\n } else {\n el.setAttribute(attribute2, value);\n }\n\n if (disableTransition) {\n window.getComputedStyle(style).opacity;\n document.head.removeChild(style);\n }\n });\n\n function defaultOnChanged(mode) {\n var _a;\n\n updateHTMLAttrs(selector, attribute, (_a = modes[mode]) != null ? _a : mode);\n }\n\n function onChanged(mode) {\n if (options.onChanged) options.onChanged(mode, defaultOnChanged);else defaultOnChanged(mode);\n }\n\n watch(state, onChanged, {\n flush: \"post\",\n immediate: true\n });\n tryOnMounted(function () {\n return onChanged(state.value);\n });\n var auto = computed({\n get: function get() {\n return emitAuto ? store.value : state.value;\n },\n set: function set(v) {\n store.value = v;\n }\n });\n\n try {\n return Object.assign(auto, {\n store: store,\n system: system,\n state: state\n });\n } catch (e) {\n return auto;\n }\n}\n\nfunction useConfirmDialog() {\n var revealed = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ref(false);\n var confirmHook = createEventHook();\n var cancelHook = createEventHook();\n var revealHook = createEventHook();\n var _resolve = noop;\n\n var reveal = function reveal(data) {\n revealHook.trigger(data);\n revealed.value = true;\n return new Promise(function (resolve) {\n _resolve = resolve;\n });\n };\n\n var confirm = function confirm(data) {\n revealed.value = false;\n confirmHook.trigger(data);\n\n _resolve({\n data: data,\n isCanceled: false\n });\n };\n\n var cancel = function cancel(data) {\n revealed.value = false;\n cancelHook.trigger(data);\n\n _resolve({\n data: data,\n isCanceled: true\n });\n };\n\n return {\n isRevealed: computed(function () {\n return revealed.value;\n }),\n reveal: reveal,\n confirm: confirm,\n cancel: cancel,\n onReveal: revealHook.on,\n onConfirm: confirmHook.on,\n onCancel: cancelHook.on\n };\n}\n\nfunction useCssVar(prop, target) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var _options$window11 = options.window,\n window = _options$window11 === void 0 ? defaultWindow : _options$window11,\n _options$initialValue2 = options.initialValue,\n initialValue = _options$initialValue2 === void 0 ? \"\" : _options$initialValue2,\n _options$observe = options.observe,\n observe = _options$observe === void 0 ? false : _options$observe;\n var variable = ref(initialValue);\n var elRef = computed(function () {\n var _a;\n\n return unrefElement(target) || ((_a = window == null ? void 0 : window.document) == null ? void 0 : _a.documentElement);\n });\n\n function updateCssVar() {\n var _a;\n\n var key = toValue(prop);\n var el = toValue(elRef);\n\n if (el && window) {\n var value = (_a = window.getComputedStyle(el).getPropertyValue(key)) == null ? void 0 : _a.trim();\n variable.value = value || initialValue;\n }\n }\n\n if (observe) {\n useMutationObserver(elRef, updateCssVar, {\n attributeFilter: [\"style\", \"class\"],\n window: window\n });\n }\n\n watch([elRef, function () {\n return toValue(prop);\n }], updateCssVar, {\n immediate: true\n });\n watch(variable, function (val) {\n var _a;\n\n if ((_a = elRef.value) == null ? void 0 : _a.style) elRef.value.style.setProperty(toValue(prop), val);\n });\n return variable;\n}\n\nfunction useCurrentElement(rootComponent) {\n var vm = getCurrentInstance();\n var currentElement = computedWithControl(function () {\n return null;\n }, function () {\n return rootComponent ? unrefElement(rootComponent) : vm.proxy.$el;\n });\n onUpdated(currentElement.trigger);\n onMounted(currentElement.trigger);\n return currentElement;\n}\n\nfunction useCycleList(list, options) {\n var state = shallowRef(getInitialValue());\n var listRef = toRef(list);\n var index = computed({\n get: function get() {\n var _a;\n\n var targetList = listRef.value;\n var index2 = (options == null ? void 0 : options.getIndexOf) ? options.getIndexOf(state.value, targetList) : targetList.indexOf(state.value);\n if (index2 < 0) index2 = (_a = options == null ? void 0 : options.fallbackIndex) != null ? _a : 0;\n return index2;\n },\n set: function set(v) {\n _set(v);\n }\n });\n\n function _set(i) {\n var targetList = listRef.value;\n var length = targetList.length;\n var index2 = (i % length + length) % length;\n var value = targetList[index2];\n state.value = value;\n return value;\n }\n\n function shift() {\n var delta = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n return _set(index.value + delta);\n }\n\n function next() {\n var n = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n return shift(n);\n }\n\n function prev() {\n var n = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n return shift(-n);\n }\n\n function getInitialValue() {\n var _a, _b;\n\n return (_b = toValue((_a = options == null ? void 0 : options.initialValue) != null ? _a : toValue(list)[0])) != null ? _b : void 0;\n }\n\n watch(listRef, function () {\n return _set(index.value);\n });\n return {\n state: state,\n index: index,\n next: next,\n prev: prev,\n go: _set\n };\n}\n\nfunction useDark() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$valueDark = options.valueDark,\n valueDark = _options$valueDark === void 0 ? \"dark\" : _options$valueDark,\n _options$valueLight = options.valueLight,\n valueLight = _options$valueLight === void 0 ? \"\" : _options$valueLight,\n _options$window12 = options.window,\n window = _options$window12 === void 0 ? defaultWindow : _options$window12;\n var mode = useColorMode(_objectSpread(_objectSpread({}, options), {}, {\n onChanged: function onChanged(mode2, defaultHandler) {\n var _a;\n\n if (options.onChanged) (_a = options.onChanged) == null ? void 0 : _a.call(options, mode2 === \"dark\", defaultHandler, mode2);else defaultHandler(mode2);\n },\n modes: {\n dark: valueDark,\n light: valueLight\n }\n }));\n var system = computed(function () {\n if (mode.system) {\n return mode.system.value;\n } else {\n var preferredDark = usePreferredDark({\n window: window\n });\n return preferredDark.value ? \"dark\" : \"light\";\n }\n });\n var isDark = computed({\n get: function get() {\n return mode.value === \"dark\";\n },\n set: function set(v) {\n var modeVal = v ? \"dark\" : \"light\";\n if (system.value === modeVal) mode.value = \"auto\";else mode.value = modeVal;\n }\n });\n return isDark;\n}\n\nfunction fnBypass(v) {\n return v;\n}\n\nfunction fnSetSource(source, value) {\n return source.value = value;\n}\n\nfunction defaultDump(clone) {\n return clone ? typeof clone === \"function\" ? clone : cloneFnJSON : fnBypass;\n}\n\nfunction defaultParse(clone) {\n return clone ? typeof clone === \"function\" ? clone : cloneFnJSON : fnBypass;\n}\n\nfunction useManualRefHistory(source) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _options$clone2 = options.clone,\n clone = _options$clone2 === void 0 ? false : _options$clone2,\n _options$dump = options.dump,\n dump = _options$dump === void 0 ? defaultDump(clone) : _options$dump,\n _options$parse = options.parse,\n parse = _options$parse === void 0 ? defaultParse(clone) : _options$parse,\n _options$setSource = options.setSource,\n setSource = _options$setSource === void 0 ? fnSetSource : _options$setSource;\n\n function _createHistoryRecord() {\n return markRaw({\n snapshot: dump(source.value),\n timestamp: timestamp()\n });\n }\n\n var last = ref(_createHistoryRecord());\n var undoStack = ref([]);\n var redoStack = ref([]);\n\n var _setSource = function _setSource(record) {\n setSource(source, parse(record.snapshot));\n last.value = record;\n };\n\n var commit = function commit() {\n undoStack.value.unshift(last.value);\n last.value = _createHistoryRecord();\n if (options.capacity && undoStack.value.length > options.capacity) undoStack.value.splice(options.capacity, Number.POSITIVE_INFINITY);\n if (redoStack.value.length) redoStack.value.splice(0, redoStack.value.length);\n };\n\n var clear = function clear() {\n undoStack.value.splice(0, undoStack.value.length);\n redoStack.value.splice(0, redoStack.value.length);\n };\n\n var undo = function undo() {\n var state = undoStack.value.shift();\n\n if (state) {\n redoStack.value.unshift(last.value);\n\n _setSource(state);\n }\n };\n\n var redo = function redo() {\n var state = redoStack.value.shift();\n\n if (state) {\n undoStack.value.unshift(last.value);\n\n _setSource(state);\n }\n };\n\n var reset = function reset() {\n _setSource(last.value);\n };\n\n var history = computed(function () {\n return [last.value].concat(_toConsumableArray(undoStack.value));\n });\n var canUndo = computed(function () {\n return undoStack.value.length > 0;\n });\n var canRedo = computed(function () {\n return redoStack.value.length > 0;\n });\n return {\n source: source,\n undoStack: undoStack,\n redoStack: redoStack,\n last: last,\n history: history,\n canUndo: canUndo,\n canRedo: canRedo,\n clear: clear,\n commit: commit,\n reset: reset,\n undo: undo,\n redo: redo\n };\n}\n\nfunction useRefHistory(source) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _options$deep4 = options.deep,\n deep = _options$deep4 === void 0 ? false : _options$deep4,\n _options$flush2 = options.flush,\n flush = _options$flush2 === void 0 ? \"pre\" : _options$flush2,\n eventFilter = options.eventFilter;\n\n var _pausableFilter = pausableFilter(eventFilter),\n composedFilter = _pausableFilter.eventFilter,\n pause = _pausableFilter.pause,\n resumeTracking = _pausableFilter.resume,\n isTracking = _pausableFilter.isActive;\n\n var _watchIgnorable = watchIgnorable(source, commit, {\n deep: deep,\n flush: flush,\n eventFilter: composedFilter\n }),\n ignoreUpdates = _watchIgnorable.ignoreUpdates,\n ignorePrevAsyncUpdates = _watchIgnorable.ignorePrevAsyncUpdates,\n stop = _watchIgnorable.stop;\n\n function setSource(source2, value) {\n ignorePrevAsyncUpdates();\n ignoreUpdates(function () {\n source2.value = value;\n });\n }\n\n var manualHistory = useManualRefHistory(source, _objectSpread(_objectSpread({}, options), {}, {\n clone: options.clone || deep,\n setSource: setSource\n }));\n var clear = manualHistory.clear,\n manualCommit = manualHistory.commit;\n\n function commit() {\n ignorePrevAsyncUpdates();\n manualCommit();\n }\n\n function resume(commitNow) {\n resumeTracking();\n if (commitNow) commit();\n }\n\n function batch(fn) {\n var canceled = false;\n\n var cancel = function cancel() {\n return canceled = true;\n };\n\n ignoreUpdates(function () {\n fn(cancel);\n });\n if (!canceled) commit();\n }\n\n function dispose() {\n stop();\n clear();\n }\n\n return _objectSpread(_objectSpread({}, manualHistory), {}, {\n isTracking: isTracking,\n pause: pause,\n resume: resume,\n commit: commit,\n batch: batch,\n dispose: dispose\n });\n}\n\nfunction useDebouncedRefHistory(source) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var filter = options.debounce ? debounceFilter(options.debounce) : void 0;\n var history = useRefHistory(source, _objectSpread(_objectSpread({}, options), {}, {\n eventFilter: filter\n }));\n return _objectSpread({}, history);\n}\n\nfunction useDeviceMotion() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$window13 = options.window,\n window = _options$window13 === void 0 ? defaultWindow : _options$window13,\n _options$eventFilter = options.eventFilter,\n eventFilter = _options$eventFilter === void 0 ? bypassFilter : _options$eventFilter;\n var acceleration = ref({\n x: null,\n y: null,\n z: null\n });\n var rotationRate = ref({\n alpha: null,\n beta: null,\n gamma: null\n });\n var interval = ref(0);\n var accelerationIncludingGravity = ref({\n x: null,\n y: null,\n z: null\n });\n\n if (window) {\n var onDeviceMotion = createFilterWrapper(eventFilter, function (event) {\n acceleration.value = event.acceleration;\n accelerationIncludingGravity.value = event.accelerationIncludingGravity;\n rotationRate.value = event.rotationRate;\n interval.value = event.interval;\n });\n useEventListener(window, \"devicemotion\", onDeviceMotion);\n }\n\n return {\n acceleration: acceleration,\n accelerationIncludingGravity: accelerationIncludingGravity,\n rotationRate: rotationRate,\n interval: interval\n };\n}\n\nfunction useDeviceOrientation() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$window14 = options.window,\n window = _options$window14 === void 0 ? defaultWindow : _options$window14;\n var isSupported = useSupported(function () {\n return window && \"DeviceOrientationEvent\" in window;\n });\n var isAbsolute = ref(false);\n var alpha = ref(null);\n var beta = ref(null);\n var gamma = ref(null);\n\n if (window && isSupported.value) {\n useEventListener(window, \"deviceorientation\", function (event) {\n isAbsolute.value = event.absolute;\n alpha.value = event.alpha;\n beta.value = event.beta;\n gamma.value = event.gamma;\n });\n }\n\n return {\n isSupported: isSupported,\n isAbsolute: isAbsolute,\n alpha: alpha,\n beta: beta,\n gamma: gamma\n };\n}\n\nfunction useDevicePixelRatio() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$window15 = options.window,\n window = _options$window15 === void 0 ? defaultWindow : _options$window15;\n var pixelRatio = ref(1);\n\n if (window) {\n var observe2 = function observe2() {\n pixelRatio.value = window.devicePixelRatio;\n cleanup2();\n media = window.matchMedia(\"(resolution: \".concat(pixelRatio.value, \"dppx)\"));\n media.addEventListener(\"change\", observe2, {\n once: true\n });\n },\n cleanup2 = function cleanup2() {\n media == null ? void 0 : media.removeEventListener(\"change\", observe2);\n };\n\n var media;\n observe2();\n tryOnScopeDispose(cleanup2);\n }\n\n return {\n pixelRatio: pixelRatio\n };\n}\n\nfunction useDevicesList() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$navigator5 = options.navigator,\n navigator = _options$navigator5 === void 0 ? defaultNavigator : _options$navigator5,\n _options$requestPermi = options.requestPermissions,\n requestPermissions = _options$requestPermi === void 0 ? false : _options$requestPermi,\n _options$constraints = options.constraints,\n constraints = _options$constraints === void 0 ? {\n audio: true,\n video: true\n } : _options$constraints,\n onUpdated = options.onUpdated;\n var devices = ref([]);\n var videoInputs = computed(function () {\n return devices.value.filter(function (i) {\n return i.kind === \"videoinput\";\n });\n });\n var audioInputs = computed(function () {\n return devices.value.filter(function (i) {\n return i.kind === \"audioinput\";\n });\n });\n var audioOutputs = computed(function () {\n return devices.value.filter(function (i) {\n return i.kind === \"audiooutput\";\n });\n });\n var isSupported = useSupported(function () {\n return navigator && navigator.mediaDevices && navigator.mediaDevices.enumerateDevices;\n });\n var permissionGranted = ref(false);\n var stream;\n\n function update() {\n return _update.apply(this, arguments);\n }\n\n function _update() {\n _update = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {\n return regeneratorRuntime.wrap(function _callee8$(_context8) {\n while (1) {\n switch (_context8.prev = _context8.next) {\n case 0:\n if (isSupported.value) {\n _context8.next = 2;\n break;\n }\n\n return _context8.abrupt(\"return\");\n\n case 2:\n _context8.next = 4;\n return navigator.mediaDevices.enumerateDevices();\n\n case 4:\n devices.value = _context8.sent;\n onUpdated == null ? void 0 : onUpdated(devices.value);\n\n if (stream) {\n stream.getTracks().forEach(function (t) {\n return t.stop();\n });\n stream = null;\n }\n\n case 7:\n case \"end\":\n return _context8.stop();\n }\n }\n }, _callee8);\n }));\n return _update.apply(this, arguments);\n }\n\n function ensurePermissions() {\n return _ensurePermissions.apply(this, arguments);\n }\n\n function _ensurePermissions() {\n _ensurePermissions = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {\n var _usePermission, state, query;\n\n return regeneratorRuntime.wrap(function _callee9$(_context9) {\n while (1) {\n switch (_context9.prev = _context9.next) {\n case 0:\n if (isSupported.value) {\n _context9.next = 2;\n break;\n }\n\n return _context9.abrupt(\"return\", false);\n\n case 2:\n if (!permissionGranted.value) {\n _context9.next = 4;\n break;\n }\n\n return _context9.abrupt(\"return\", true);\n\n case 4:\n _usePermission = usePermission(\"camera\", {\n controls: true\n }), state = _usePermission.state, query = _usePermission.query;\n _context9.next = 7;\n return query();\n\n case 7:\n if (!(state.value !== \"granted\")) {\n _context9.next = 15;\n break;\n }\n\n _context9.next = 10;\n return navigator.mediaDevices.getUserMedia(constraints);\n\n case 10:\n stream = _context9.sent;\n update();\n permissionGranted.value = true;\n _context9.next = 16;\n break;\n\n case 15:\n permissionGranted.value = true;\n\n case 16:\n return _context9.abrupt(\"return\", permissionGranted.value);\n\n case 17:\n case \"end\":\n return _context9.stop();\n }\n }\n }, _callee9);\n }));\n return _ensurePermissions.apply(this, arguments);\n }\n\n if (isSupported.value) {\n if (requestPermissions) ensurePermissions();\n useEventListener(navigator.mediaDevices, \"devicechange\", update);\n update();\n }\n\n return {\n devices: devices,\n ensurePermissions: ensurePermissions,\n permissionGranted: permissionGranted,\n videoInputs: videoInputs,\n audioInputs: audioInputs,\n audioOutputs: audioOutputs,\n isSupported: isSupported\n };\n}\n\nfunction useDisplayMedia() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n var _a;\n\n var enabled = ref((_a = options.enabled) != null ? _a : false);\n var video = options.video;\n var audio = options.audio;\n var _options$navigator6 = options.navigator,\n navigator = _options$navigator6 === void 0 ? defaultNavigator : _options$navigator6;\n var isSupported = useSupported(function () {\n var _a2;\n\n return (_a2 = navigator == null ? void 0 : navigator.mediaDevices) == null ? void 0 : _a2.getDisplayMedia;\n });\n var constraint = {\n audio: audio,\n video: video\n };\n var stream = shallowRef();\n\n function _start() {\n return _start2.apply(this, arguments);\n }\n\n function _start2() {\n _start2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {\n var _a2;\n\n return regeneratorRuntime.wrap(function _callee10$(_context10) {\n while (1) {\n switch (_context10.prev = _context10.next) {\n case 0:\n if (!(!isSupported.value || stream.value)) {\n _context10.next = 2;\n break;\n }\n\n return _context10.abrupt(\"return\");\n\n case 2:\n _context10.next = 4;\n return navigator.mediaDevices.getDisplayMedia(constraint);\n\n case 4:\n stream.value = _context10.sent;\n (_a2 = stream.value) == null ? void 0 : _a2.getTracks().forEach(function (t) {\n return t.addEventListener(\"ended\", stop);\n });\n return _context10.abrupt(\"return\", stream.value);\n\n case 7:\n case \"end\":\n return _context10.stop();\n }\n }\n }, _callee10);\n }));\n return _start2.apply(this, arguments);\n }\n\n function _stop() {\n return _stop2.apply(this, arguments);\n }\n\n function _stop2() {\n _stop2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {\n var _a2;\n\n return regeneratorRuntime.wrap(function _callee11$(_context11) {\n while (1) {\n switch (_context11.prev = _context11.next) {\n case 0:\n (_a2 = stream.value) == null ? void 0 : _a2.getTracks().forEach(function (t) {\n return t.stop();\n });\n stream.value = void 0;\n\n case 2:\n case \"end\":\n return _context11.stop();\n }\n }\n }, _callee11);\n }));\n return _stop2.apply(this, arguments);\n }\n\n function stop() {\n _stop();\n\n enabled.value = false;\n }\n\n function start() {\n return _start3.apply(this, arguments);\n }\n\n function _start3() {\n _start3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12() {\n return regeneratorRuntime.wrap(function _callee12$(_context12) {\n while (1) {\n switch (_context12.prev = _context12.next) {\n case 0:\n _context12.next = 2;\n return _start();\n\n case 2:\n if (stream.value) enabled.value = true;\n return _context12.abrupt(\"return\", stream.value);\n\n case 4:\n case \"end\":\n return _context12.stop();\n }\n }\n }, _callee12);\n }));\n return _start3.apply(this, arguments);\n }\n\n watch(enabled, function (v) {\n if (v) _start();else _stop();\n }, {\n immediate: true\n });\n return {\n isSupported: isSupported,\n stream: stream,\n start: start,\n stop: stop,\n enabled: enabled\n };\n}\n\nfunction useDocumentVisibility() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$document2 = options.document,\n document = _options$document2 === void 0 ? defaultDocument : _options$document2;\n if (!document) return ref(\"visible\");\n var visibility = ref(document.visibilityState);\n useEventListener(document, \"visibilitychange\", function () {\n visibility.value = document.visibilityState;\n });\n return visibility;\n}\n\nfunction useDraggable(target) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var _a, _b;\n\n var pointerTypes = options.pointerTypes,\n preventDefault = options.preventDefault,\n stopPropagation = options.stopPropagation,\n exact = options.exact,\n onMove = options.onMove,\n onEnd = options.onEnd,\n onStart = options.onStart,\n initialValue = options.initialValue,\n _options$axis = options.axis,\n axis = _options$axis === void 0 ? \"both\" : _options$axis,\n _options$draggingElem = options.draggingElement,\n draggingElement = _options$draggingElem === void 0 ? defaultWindow : _options$draggingElem,\n containerElement = options.containerElement,\n _options$handle = options.handle,\n draggingHandle = _options$handle === void 0 ? target : _options$handle;\n var position = ref((_a = toValue(initialValue)) != null ? _a : {\n x: 0,\n y: 0\n });\n var pressedDelta = ref();\n\n var filterEvent = function filterEvent(e) {\n if (pointerTypes) return pointerTypes.includes(e.pointerType);\n return true;\n };\n\n var handleEvent = function handleEvent(e) {\n if (toValue(preventDefault)) e.preventDefault();\n if (toValue(stopPropagation)) e.stopPropagation();\n };\n\n var start = function start(e) {\n var _a2;\n\n if (e.button !== 0) return;\n if (toValue(options.disabled) || !filterEvent(e)) return;\n if (toValue(exact) && e.target !== toValue(target)) return;\n var container = toValue(containerElement);\n var containerRect = (_a2 = container == null ? void 0 : container.getBoundingClientRect) == null ? void 0 : _a2.call(container);\n var targetRect = toValue(target).getBoundingClientRect();\n var pos = {\n x: e.clientX - (container ? targetRect.left - containerRect.left + container.scrollLeft : targetRect.left),\n y: e.clientY - (container ? targetRect.top - containerRect.top + container.scrollTop : targetRect.top)\n };\n if ((onStart == null ? void 0 : onStart(pos, e)) === false) return;\n pressedDelta.value = pos;\n handleEvent(e);\n };\n\n var move = function move(e) {\n if (toValue(options.disabled) || !filterEvent(e)) return;\n if (!pressedDelta.value) return;\n var container = toValue(containerElement);\n var targetRect = toValue(target).getBoundingClientRect();\n var _position$value = position.value,\n x = _position$value.x,\n y = _position$value.y;\n\n if (axis === \"x\" || axis === \"both\") {\n x = e.clientX - pressedDelta.value.x;\n if (container) x = Math.min(Math.max(0, x), container.scrollWidth - targetRect.width);\n }\n\n if (axis === \"y\" || axis === \"both\") {\n y = e.clientY - pressedDelta.value.y;\n if (container) y = Math.min(Math.max(0, y), container.scrollHeight - targetRect.height);\n }\n\n position.value = {\n x: x,\n y: y\n };\n onMove == null ? void 0 : onMove(position.value, e);\n handleEvent(e);\n };\n\n var end = function end(e) {\n if (toValue(options.disabled) || !filterEvent(e)) return;\n if (!pressedDelta.value) return;\n pressedDelta.value = void 0;\n onEnd == null ? void 0 : onEnd(position.value, e);\n handleEvent(e);\n };\n\n if (isClient) {\n var config = {\n capture: (_b = options.capture) != null ? _b : true\n };\n useEventListener(draggingHandle, \"pointerdown\", start, config);\n useEventListener(draggingElement, \"pointermove\", move, config);\n useEventListener(draggingElement, \"pointerup\", end, config);\n }\n\n return _objectSpread(_objectSpread({}, toRefs(position)), {}, {\n position: position,\n isDragging: computed(function () {\n return !!pressedDelta.value;\n }),\n style: computed(function () {\n return \"left:\".concat(position.value.x, \"px;top:\").concat(position.value.y, \"px;\");\n })\n });\n}\n\nfunction useDropZone(target) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var isOverDropZone = ref(false);\n var files = shallowRef(null);\n var counter = 0;\n var isDataTypeIncluded = true;\n\n if (isClient) {\n var _options = typeof options === \"function\" ? {\n onDrop: options\n } : options;\n\n var getFiles = function getFiles(event) {\n var _a, _b;\n\n var list = Array.from((_b = (_a = event.dataTransfer) == null ? void 0 : _a.files) != null ? _b : []);\n return files.value = list.length === 0 ? null : list;\n };\n\n useEventListener(target, \"dragenter\", function (event) {\n var _a, _b;\n\n var types = Array.from(((_a = event == null ? void 0 : event.dataTransfer) == null ? void 0 : _a.items) || []).map(function (i) {\n return i.kind === \"file\" ? i.type : null;\n }).filter(notNullish);\n\n if (_options.dataTypes && event.dataTransfer) {\n var dataTypes = unref(_options.dataTypes);\n isDataTypeIncluded = typeof dataTypes === \"function\" ? dataTypes(types) : dataTypes ? dataTypes.some(function (item) {\n return types.includes(item);\n }) : true;\n if (!isDataTypeIncluded) return;\n }\n\n event.preventDefault();\n counter += 1;\n isOverDropZone.value = true;\n (_b = _options.onEnter) == null ? void 0 : _b.call(_options, getFiles(event), event);\n });\n useEventListener(target, \"dragover\", function (event) {\n var _a;\n\n if (!isDataTypeIncluded) return;\n event.preventDefault();\n (_a = _options.onOver) == null ? void 0 : _a.call(_options, getFiles(event), event);\n });\n useEventListener(target, \"dragleave\", function (event) {\n var _a;\n\n if (!isDataTypeIncluded) return;\n event.preventDefault();\n counter -= 1;\n if (counter === 0) isOverDropZone.value = false;\n (_a = _options.onLeave) == null ? void 0 : _a.call(_options, getFiles(event), event);\n });\n useEventListener(target, \"drop\", function (event) {\n var _a;\n\n event.preventDefault();\n counter = 0;\n isOverDropZone.value = false;\n (_a = _options.onDrop) == null ? void 0 : _a.call(_options, getFiles(event), event);\n });\n }\n\n return {\n files: files,\n isOverDropZone: isOverDropZone\n };\n}\n\nfunction useResizeObserver(target, callback) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n var _options$window16 = options.window,\n window = _options$window16 === void 0 ? defaultWindow : _options$window16,\n observerOptions = _objectWithoutProperties(options, [\"window\"]);\n\n var observer;\n var isSupported = useSupported(function () {\n return window && \"ResizeObserver\" in window;\n });\n\n var cleanup = function cleanup() {\n if (observer) {\n observer.disconnect();\n observer = void 0;\n }\n };\n\n var targets = computed(function () {\n return Array.isArray(target) ? target.map(function (el) {\n return unrefElement(el);\n }) : [unrefElement(target)];\n });\n var stopWatch = watch(targets, function (els) {\n cleanup();\n\n if (isSupported.value && window) {\n observer = new ResizeObserver(callback);\n\n var _iterator3 = _createForOfIteratorHelper(els),\n _step3;\n\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var _el = _step3.value;\n _el && observer.observe(_el, observerOptions);\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n }\n }, {\n immediate: true,\n flush: \"post\"\n });\n\n var stop = function stop() {\n cleanup();\n stopWatch();\n };\n\n tryOnScopeDispose(stop);\n return {\n isSupported: isSupported,\n stop: stop\n };\n}\n\nfunction useElementBounding(target) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _options$reset = options.reset,\n reset = _options$reset === void 0 ? true : _options$reset,\n _options$windowResize = options.windowResize,\n windowResize = _options$windowResize === void 0 ? true : _options$windowResize,\n _options$windowScroll = options.windowScroll,\n windowScroll = _options$windowScroll === void 0 ? true : _options$windowScroll,\n _options$immediate3 = options.immediate,\n immediate = _options$immediate3 === void 0 ? true : _options$immediate3;\n var height = ref(0);\n var bottom = ref(0);\n var left = ref(0);\n var right = ref(0);\n var top = ref(0);\n var width = ref(0);\n var x = ref(0);\n var y = ref(0);\n\n function update() {\n var el = unrefElement(target);\n\n if (!el) {\n if (reset) {\n height.value = 0;\n bottom.value = 0;\n left.value = 0;\n right.value = 0;\n top.value = 0;\n width.value = 0;\n x.value = 0;\n y.value = 0;\n }\n\n return;\n }\n\n var rect = el.getBoundingClientRect();\n height.value = rect.height;\n bottom.value = rect.bottom;\n left.value = rect.left;\n right.value = rect.right;\n top.value = rect.top;\n width.value = rect.width;\n x.value = rect.x;\n y.value = rect.y;\n }\n\n useResizeObserver(target, update);\n watch(function () {\n return unrefElement(target);\n }, function (ele) {\n return !ele && update();\n });\n useMutationObserver(target, update, {\n attributeFilter: [\"style\", \"class\"]\n });\n if (windowScroll) useEventListener(\"scroll\", update, {\n capture: true,\n passive: true\n });\n if (windowResize) useEventListener(\"resize\", update, {\n passive: true\n });\n tryOnMounted(function () {\n if (immediate) update();\n });\n return {\n height: height,\n bottom: bottom,\n left: left,\n right: right,\n top: top,\n width: width,\n x: x,\n y: y,\n update: update\n };\n}\n\nfunction useElementByPoint(options) {\n var x = options.x,\n y = options.y,\n _options$document3 = options.document,\n document = _options$document3 === void 0 ? defaultDocument : _options$document3,\n multiple = options.multiple,\n _options$interval = options.interval,\n interval = _options$interval === void 0 ? \"requestAnimationFrame\" : _options$interval,\n _options$immediate4 = options.immediate,\n immediate = _options$immediate4 === void 0 ? true : _options$immediate4;\n var isSupported = useSupported(function () {\n if (toValue(multiple)) return document && \"elementsFromPoint\" in document;\n return document && \"elementFromPoint\" in document;\n });\n var element = ref(null);\n\n var cb = function cb() {\n var _a, _b;\n\n element.value = toValue(multiple) ? (_a = document == null ? void 0 : document.elementsFromPoint(toValue(x), toValue(y))) != null ? _a : [] : (_b = document == null ? void 0 : document.elementFromPoint(toValue(x), toValue(y))) != null ? _b : null;\n };\n\n var controls = interval === \"requestAnimationFrame\" ? useRafFn(cb, {\n immediate: immediate\n }) : useIntervalFn(cb, interval, {\n immediate: immediate\n });\n return _objectSpread({\n isSupported: isSupported,\n element: element\n }, controls);\n}\n\nfunction useElementHover(el) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _options$delayEnter = options.delayEnter,\n delayEnter = _options$delayEnter === void 0 ? 0 : _options$delayEnter,\n _options$delayLeave = options.delayLeave,\n delayLeave = _options$delayLeave === void 0 ? 0 : _options$delayLeave,\n _options$window17 = options.window,\n window = _options$window17 === void 0 ? defaultWindow : _options$window17;\n var isHovered = ref(false);\n var timer;\n\n var toggle = function toggle(entering) {\n var delay = entering ? delayEnter : delayLeave;\n\n if (timer) {\n clearTimeout(timer);\n timer = void 0;\n }\n\n if (delay) timer = setTimeout(function () {\n return isHovered.value = entering;\n }, delay);else isHovered.value = entering;\n };\n\n if (!window) return isHovered;\n useEventListener(el, \"mouseenter\", function () {\n return toggle(true);\n }, {\n passive: true\n });\n useEventListener(el, \"mouseleave\", function () {\n return toggle(false);\n }, {\n passive: true\n });\n return isHovered;\n}\n\nfunction useElementSize(target) {\n var initialSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n width: 0,\n height: 0\n };\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var _options$window18 = options.window,\n window = _options$window18 === void 0 ? defaultWindow : _options$window18,\n _options$box = options.box,\n box = _options$box === void 0 ? \"content-box\" : _options$box;\n var isSVG = computed(function () {\n var _a, _b;\n\n return (_b = (_a = unrefElement(target)) == null ? void 0 : _a.namespaceURI) == null ? void 0 : _b.includes(\"svg\");\n });\n var width = ref(initialSize.width);\n var height = ref(initialSize.height);\n\n var _useResizeObserver = useResizeObserver(target, function (_ref19) {\n var _ref20 = _slicedToArray(_ref19, 1),\n entry = _ref20[0];\n\n var boxSize = box === \"border-box\" ? entry.borderBoxSize : box === \"content-box\" ? entry.contentBoxSize : entry.devicePixelContentBoxSize;\n\n if (window && isSVG.value) {\n var $elem = unrefElement(target);\n\n if ($elem) {\n var rect = $elem.getBoundingClientRect();\n width.value = rect.width;\n height.value = rect.height;\n }\n } else {\n if (boxSize) {\n var formatBoxSize = Array.isArray(boxSize) ? boxSize : [boxSize];\n width.value = formatBoxSize.reduce(function (acc, _ref21) {\n var inlineSize = _ref21.inlineSize;\n return acc + inlineSize;\n }, 0);\n height.value = formatBoxSize.reduce(function (acc, _ref22) {\n var blockSize = _ref22.blockSize;\n return acc + blockSize;\n }, 0);\n } else {\n width.value = entry.contentRect.width;\n height.value = entry.contentRect.height;\n }\n }\n }, options),\n stop1 = _useResizeObserver.stop;\n\n tryOnMounted(function () {\n var ele = unrefElement(target);\n\n if (ele) {\n width.value = \"offsetWidth\" in ele ? ele.offsetWidth : initialSize.width;\n height.value = \"offsetHeight\" in ele ? ele.offsetHeight : initialSize.height;\n }\n });\n var stop2 = watch(function () {\n return unrefElement(target);\n }, function (ele) {\n width.value = ele ? initialSize.width : 0;\n height.value = ele ? initialSize.height : 0;\n });\n\n function stop() {\n stop1();\n stop2();\n }\n\n return {\n width: width,\n height: height,\n stop: stop\n };\n}\n\nfunction useIntersectionObserver(target, callback) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var root = options.root,\n _options$rootMargin = options.rootMargin,\n rootMargin = _options$rootMargin === void 0 ? \"0px\" : _options$rootMargin,\n _options$threshold = options.threshold,\n threshold = _options$threshold === void 0 ? 0.1 : _options$threshold,\n _options$window19 = options.window,\n window = _options$window19 === void 0 ? defaultWindow : _options$window19,\n _options$immediate5 = options.immediate,\n immediate = _options$immediate5 === void 0 ? true : _options$immediate5;\n var isSupported = useSupported(function () {\n return window && \"IntersectionObserver\" in window;\n });\n var targets = computed(function () {\n var _target = toValue(target);\n\n return (Array.isArray(_target) ? _target : [_target]).map(unrefElement).filter(notNullish);\n });\n var _cleanup = noop;\n var isActive = ref(immediate);\n var stopWatch = isSupported.value ? watch(function () {\n return [targets.value, unrefElement(root), isActive.value];\n }, function (_ref23) {\n var _ref24 = _slicedToArray(_ref23, 2),\n targets2 = _ref24[0],\n root2 = _ref24[1];\n\n _cleanup();\n\n if (!isActive.value) return;\n if (!targets2.length) return;\n var observer = new IntersectionObserver(callback, {\n root: unrefElement(root2),\n rootMargin: rootMargin,\n threshold: threshold\n });\n targets2.forEach(function (el) {\n return el && observer.observe(el);\n });\n\n _cleanup = function cleanup() {\n observer.disconnect();\n _cleanup = noop;\n };\n }, {\n immediate: immediate,\n flush: \"post\"\n }) : noop;\n\n var stop = function stop() {\n _cleanup();\n\n stopWatch();\n isActive.value = false;\n };\n\n tryOnScopeDispose(stop);\n return {\n isSupported: isSupported,\n isActive: isActive,\n pause: function pause() {\n _cleanup();\n\n isActive.value = false;\n },\n resume: function resume() {\n isActive.value = true;\n },\n stop: stop\n };\n}\n\nfunction useElementVisibility(element) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _options$window20 = options.window,\n window = _options$window20 === void 0 ? defaultWindow : _options$window20,\n scrollTarget = options.scrollTarget,\n _options$threshold2 = options.threshold,\n threshold = _options$threshold2 === void 0 ? 0 : _options$threshold2;\n var elementIsVisible = ref(false);\n useIntersectionObserver(element, function (intersectionObserverEntries) {\n var isIntersecting = elementIsVisible.value;\n var latestTime = 0;\n\n var _iterator4 = _createForOfIteratorHelper(intersectionObserverEntries),\n _step4;\n\n try {\n for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n var entry = _step4.value;\n\n if (entry.time >= latestTime) {\n latestTime = entry.time;\n isIntersecting = entry.isIntersecting;\n }\n }\n } catch (err) {\n _iterator4.e(err);\n } finally {\n _iterator4.f();\n }\n\n elementIsVisible.value = isIntersecting;\n }, {\n root: scrollTarget,\n window: window,\n threshold: threshold\n });\n return elementIsVisible;\n}\n\nvar events = /* @__PURE__ */new Map();\n\nfunction useEventBus(key) {\n var scope = getCurrentScope();\n\n function on(listener) {\n var _a;\n\n var listeners = events.get(key) || /* @__PURE__ */new Set();\n listeners.add(listener);\n events.set(key, listeners);\n\n var _off = function _off() {\n return off(listener);\n };\n\n (_a = scope == null ? void 0 : scope.cleanups) == null ? void 0 : _a.push(_off);\n return _off;\n }\n\n function once(listener) {\n function _listener() {\n off(_listener);\n listener.apply(void 0, arguments);\n }\n\n return on(_listener);\n }\n\n function off(listener) {\n var listeners = events.get(key);\n if (!listeners) return;\n listeners.delete(listener);\n if (!listeners.size) reset();\n }\n\n function reset() {\n events.delete(key);\n }\n\n function emit(event, payload) {\n var _a;\n\n (_a = events.get(key)) == null ? void 0 : _a.forEach(function (v) {\n return v(event, payload);\n });\n }\n\n return {\n on: on,\n once: once,\n off: off,\n emit: emit,\n reset: reset\n };\n}\n\nfunction resolveNestedOptions$1(options) {\n if (options === true) return {};\n return options;\n}\n\nfunction useEventSource(url) {\n var events = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var event = ref(null);\n var data = ref(null);\n var status = ref(\"CONNECTING\");\n var eventSource = ref(null);\n var error = shallowRef(null);\n var urlRef = toRef(url);\n var lastEventId = shallowRef(null);\n var explicitlyClosed = false;\n var retried = 0;\n var _options$withCredenti = options.withCredentials,\n withCredentials = _options$withCredenti === void 0 ? false : _options$withCredenti,\n _options$immediate6 = options.immediate,\n immediate = _options$immediate6 === void 0 ? true : _options$immediate6;\n\n var close = function close() {\n if (isClient && eventSource.value) {\n eventSource.value.close();\n eventSource.value = null;\n status.value = \"CLOSED\";\n explicitlyClosed = true;\n }\n };\n\n var _init = function _init() {\n if (explicitlyClosed || typeof urlRef.value === \"undefined\") return;\n var es = new EventSource(urlRef.value, {\n withCredentials: withCredentials\n });\n status.value = \"CONNECTING\";\n eventSource.value = es;\n\n es.onopen = function () {\n status.value = \"OPEN\";\n error.value = null;\n };\n\n es.onerror = function (e) {\n status.value = \"CLOSED\";\n error.value = e;\n\n if (es.readyState === 2 && !explicitlyClosed && options.autoReconnect) {\n es.close();\n\n var _resolveNestedOptions = resolveNestedOptions$1(options.autoReconnect),\n _resolveNestedOptions2 = _resolveNestedOptions.retries,\n retries = _resolveNestedOptions2 === void 0 ? -1 : _resolveNestedOptions2,\n _resolveNestedOptions3 = _resolveNestedOptions.delay,\n delay = _resolveNestedOptions3 === void 0 ? 1e3 : _resolveNestedOptions3,\n onFailed = _resolveNestedOptions.onFailed;\n\n retried += 1;\n if (typeof retries === \"number\" && (retries < 0 || retried < retries)) setTimeout(_init, delay);else if (typeof retries === \"function\" && retries()) setTimeout(_init, delay);else onFailed == null ? void 0 : onFailed();\n }\n };\n\n es.onmessage = function (e) {\n event.value = null;\n data.value = e.data;\n lastEventId.value = e.lastEventId;\n };\n\n var _iterator5 = _createForOfIteratorHelper(events),\n _step5;\n\n try {\n var _loop2 = function _loop2() {\n var event_name = _step5.value;\n useEventListener(es, event_name, function (e) {\n event.value = event_name;\n data.value = e.data || null;\n });\n };\n\n for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {\n _loop2();\n }\n } catch (err) {\n _iterator5.e(err);\n } finally {\n _iterator5.f();\n }\n };\n\n var open = function open() {\n if (!isClient) return;\n close();\n explicitlyClosed = false;\n retried = 0;\n\n _init();\n };\n\n if (immediate) watch(urlRef, open, {\n immediate: true\n });\n tryOnScopeDispose(close);\n return {\n eventSource: eventSource,\n event: event,\n data: data,\n status: status,\n error: error,\n open: open,\n close: close,\n lastEventId: lastEventId\n };\n}\n\nfunction useEyeDropper() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$initialValue3 = options.initialValue,\n initialValue = _options$initialValue3 === void 0 ? \"\" : _options$initialValue3;\n var isSupported = useSupported(function () {\n return typeof window !== \"undefined\" && \"EyeDropper\" in window;\n });\n var sRGBHex = ref(initialValue);\n\n function open(_x3) {\n return _open.apply(this, arguments);\n }\n\n function _open() {\n _open = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee13(openOptions) {\n var eyeDropper, result;\n return regeneratorRuntime.wrap(function _callee13$(_context13) {\n while (1) {\n switch (_context13.prev = _context13.next) {\n case 0:\n if (isSupported.value) {\n _context13.next = 2;\n break;\n }\n\n return _context13.abrupt(\"return\");\n\n case 2:\n eyeDropper = new window.EyeDropper();\n _context13.next = 5;\n return eyeDropper.open(openOptions);\n\n case 5:\n result = _context13.sent;\n sRGBHex.value = result.sRGBHex;\n return _context13.abrupt(\"return\", result);\n\n case 8:\n case \"end\":\n return _context13.stop();\n }\n }\n }, _callee13);\n }));\n return _open.apply(this, arguments);\n }\n\n return {\n isSupported: isSupported,\n sRGBHex: sRGBHex,\n open: open\n };\n}\n\nfunction useFavicon() {\n var newIcon = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _options$baseUrl = options.baseUrl,\n baseUrl = _options$baseUrl === void 0 ? \"\" : _options$baseUrl,\n _options$rel = options.rel,\n rel = _options$rel === void 0 ? \"icon\" : _options$rel,\n _options$document4 = options.document,\n document = _options$document4 === void 0 ? defaultDocument : _options$document4;\n var favicon = toRef(newIcon);\n\n var applyIcon = function applyIcon(icon) {\n var elements = document == null ? void 0 : document.head.querySelectorAll(\"link[rel*=\\\"\".concat(rel, \"\\\"]\"));\n\n if (!elements || elements.length === 0) {\n var link = document == null ? void 0 : document.createElement(\"link\");\n\n if (link) {\n link.rel = rel;\n link.href = \"\".concat(baseUrl).concat(icon);\n link.type = \"image/\".concat(icon.split(\".\").pop());\n document == null ? void 0 : document.head.append(link);\n }\n\n return;\n }\n\n elements == null ? void 0 : elements.forEach(function (el) {\n return el.href = \"\".concat(baseUrl).concat(icon);\n });\n };\n\n watch(favicon, function (i, o) {\n if (typeof i === \"string\" && i !== o) applyIcon(i);\n }, {\n immediate: true\n });\n return favicon;\n}\n\nvar payloadMapping = {\n json: \"application/json\",\n text: \"text/plain\"\n};\n\nfunction isFetchOptions(obj) {\n return obj && containsProp(obj, \"immediate\", \"refetch\", \"initialData\", \"timeout\", \"beforeFetch\", \"afterFetch\", \"onFetchError\", \"fetch\", \"updateDataOnError\");\n}\n\nvar reAbsolute = /^(?:[a-z][a-z\\d+\\-.]*:)?\\/\\//i;\n\nfunction isAbsoluteURL(url) {\n return reAbsolute.test(url);\n}\n\nfunction headersToObject(headers) {\n if (typeof Headers !== \"undefined\" && headers instanceof Headers) return Object.fromEntries(headers.entries());\n return headers;\n}\n\nfunction combineCallbacks(combination) {\n for (var _len5 = arguments.length, callbacks = new Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {\n callbacks[_key5 - 1] = arguments[_key5];\n }\n\n if (combination === \"overwrite\") {\n return /*#__PURE__*/function () {\n var _ref25 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14(ctx) {\n var callback;\n return regeneratorRuntime.wrap(function _callee14$(_context14) {\n while (1) {\n switch (_context14.prev = _context14.next) {\n case 0:\n callback = callbacks[callbacks.length - 1];\n\n if (!callback) {\n _context14.next = 8;\n break;\n }\n\n _context14.t0 = _objectSpread;\n _context14.t1 = _objectSpread({}, ctx);\n _context14.next = 6;\n return callback(ctx);\n\n case 6:\n _context14.t2 = _context14.sent;\n return _context14.abrupt(\"return\", (0, _context14.t0)(_context14.t1, _context14.t2));\n\n case 8:\n return _context14.abrupt(\"return\", ctx);\n\n case 9:\n case \"end\":\n return _context14.stop();\n }\n }\n }, _callee14);\n }));\n\n return function (_x4) {\n return _ref25.apply(this, arguments);\n };\n }();\n } else {\n return /*#__PURE__*/function () {\n var _ref26 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee15(ctx) {\n var _iterator6, _step6, callback;\n\n return regeneratorRuntime.wrap(function _callee15$(_context15) {\n while (1) {\n switch (_context15.prev = _context15.next) {\n case 0:\n _iterator6 = _createForOfIteratorHelper(callbacks);\n _context15.prev = 1;\n\n _iterator6.s();\n\n case 3:\n if ((_step6 = _iterator6.n()).done) {\n _context15.next = 14;\n break;\n }\n\n callback = _step6.value;\n\n if (!callback) {\n _context15.next = 12;\n break;\n }\n\n _context15.t0 = _objectSpread;\n _context15.t1 = _objectSpread({}, ctx);\n _context15.next = 10;\n return callback(ctx);\n\n case 10:\n _context15.t2 = _context15.sent;\n ctx = (0, _context15.t0)(_context15.t1, _context15.t2);\n\n case 12:\n _context15.next = 3;\n break;\n\n case 14:\n _context15.next = 19;\n break;\n\n case 16:\n _context15.prev = 16;\n _context15.t3 = _context15[\"catch\"](1);\n\n _iterator6.e(_context15.t3);\n\n case 19:\n _context15.prev = 19;\n\n _iterator6.f();\n\n return _context15.finish(19);\n\n case 22:\n return _context15.abrupt(\"return\", ctx);\n\n case 23:\n case \"end\":\n return _context15.stop();\n }\n }\n }, _callee15, null, [[1, 16, 19, 22]]);\n }));\n\n return function (_x5) {\n return _ref26.apply(this, arguments);\n };\n }();\n }\n}\n\nfunction createFetch() {\n var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n var _combination = config.combination || \"chain\";\n\n var _options = config.options || {};\n\n var _fetchOptions = config.fetchOptions || {};\n\n function useFactoryFetch(url) {\n var computedUrl = computed(function () {\n var baseUrl = toValue(config.baseUrl);\n var targetUrl = toValue(url);\n return baseUrl && !isAbsoluteURL(targetUrl) ? joinPaths(baseUrl, targetUrl) : targetUrl;\n });\n var options = _options;\n var fetchOptions = _fetchOptions;\n\n for (var _len6 = arguments.length, args = new Array(_len6 > 1 ? _len6 - 1 : 0), _key6 = 1; _key6 < _len6; _key6++) {\n args[_key6 - 1] = arguments[_key6];\n }\n\n if (args.length > 0) {\n if (isFetchOptions(args[0])) {\n options = _objectSpread(_objectSpread(_objectSpread({}, options), args[0]), {}, {\n beforeFetch: combineCallbacks(_combination, _options.beforeFetch, args[0].beforeFetch),\n afterFetch: combineCallbacks(_combination, _options.afterFetch, args[0].afterFetch),\n onFetchError: combineCallbacks(_combination, _options.onFetchError, args[0].onFetchError)\n });\n } else {\n fetchOptions = _objectSpread(_objectSpread(_objectSpread({}, fetchOptions), args[0]), {}, {\n headers: _objectSpread(_objectSpread({}, headersToObject(fetchOptions.headers) || {}), headersToObject(args[0].headers) || {})\n });\n }\n }\n\n if (args.length > 1 && isFetchOptions(args[1])) {\n options = _objectSpread(_objectSpread(_objectSpread({}, options), args[1]), {}, {\n beforeFetch: combineCallbacks(_combination, _options.beforeFetch, args[1].beforeFetch),\n afterFetch: combineCallbacks(_combination, _options.afterFetch, args[1].afterFetch),\n onFetchError: combineCallbacks(_combination, _options.onFetchError, args[1].onFetchError)\n });\n }\n\n return useFetch(computedUrl, fetchOptions, options);\n }\n\n return useFactoryFetch;\n}\n\nfunction useFetch(url) {\n var _a;\n\n var supportsAbort = typeof AbortController === \"function\";\n var fetchOptions = {};\n var options = {\n immediate: true,\n refetch: false,\n timeout: 0,\n updateDataOnError: false\n };\n var config = {\n method: \"GET\",\n type: \"text\",\n payload: void 0\n };\n\n if ((arguments.length <= 1 ? 0 : arguments.length - 1) > 0) {\n if (isFetchOptions(arguments.length <= 1 ? undefined : arguments[1])) options = _objectSpread(_objectSpread({}, options), arguments.length <= 1 ? undefined : arguments[1]);else fetchOptions = arguments.length <= 1 ? undefined : arguments[1];\n }\n\n if ((arguments.length <= 1 ? 0 : arguments.length - 1) > 1) {\n if (isFetchOptions(arguments.length <= 2 ? undefined : arguments[2])) options = _objectSpread(_objectSpread({}, options), arguments.length <= 2 ? undefined : arguments[2]);\n }\n\n var _options4 = options,\n _options4$fetch = _options4.fetch,\n fetch = _options4$fetch === void 0 ? (_a = defaultWindow) == null ? void 0 : _a.fetch : _options4$fetch,\n initialData = _options4.initialData,\n timeout = _options4.timeout;\n var responseEvent = createEventHook();\n var errorEvent = createEventHook();\n var finallyEvent = createEventHook();\n var isFinished = ref(false);\n var isFetching = ref(false);\n var aborted = ref(false);\n var statusCode = ref(null);\n var response = shallowRef(null);\n var error = shallowRef(null);\n var data = shallowRef(initialData || null);\n var canAbort = computed(function () {\n return supportsAbort && isFetching.value;\n });\n var controller;\n var timer;\n\n var abort = function abort() {\n if (supportsAbort) {\n controller == null ? void 0 : controller.abort();\n controller = new AbortController();\n\n controller.signal.onabort = function () {\n return aborted.value = true;\n };\n\n fetchOptions = _objectSpread(_objectSpread({}, fetchOptions), {}, {\n signal: controller.signal\n });\n }\n };\n\n var loading = function loading(isLoading) {\n isFetching.value = isLoading;\n isFinished.value = !isLoading;\n };\n\n if (timeout) timer = useTimeoutFn(abort, timeout, {\n immediate: false\n });\n var executeCounter = 0;\n\n var execute = /*#__PURE__*/function () {\n var _ref27 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee18() {\n var throwOnFailed,\n _a2,\n _b,\n currentExecuteCounter,\n defaultFetchOptions,\n headers,\n payload,\n isCanceled,\n context,\n responseData,\n _args18 = arguments;\n\n return regeneratorRuntime.wrap(function _callee18$(_context18) {\n while (1) {\n switch (_context18.prev = _context18.next) {\n case 0:\n throwOnFailed = _args18.length > 0 && _args18[0] !== undefined ? _args18[0] : false;\n abort();\n loading(true);\n error.value = null;\n statusCode.value = null;\n aborted.value = false;\n executeCounter += 1;\n currentExecuteCounter = executeCounter;\n defaultFetchOptions = {\n method: config.method,\n headers: {}\n };\n\n if (config.payload) {\n headers = headersToObject(defaultFetchOptions.headers);\n payload = toValue(config.payload);\n if (!config.payloadType && payload && Object.getPrototypeOf(payload) === Object.prototype && !(payload instanceof FormData)) config.payloadType = \"json\";\n if (config.payloadType) headers[\"Content-Type\"] = (_a2 = payloadMapping[config.payloadType]) != null ? _a2 : config.payloadType;\n defaultFetchOptions.body = config.payloadType === \"json\" ? JSON.stringify(payload) : payload;\n }\n\n isCanceled = false;\n context = {\n url: toValue(url),\n options: _objectSpread(_objectSpread({}, defaultFetchOptions), fetchOptions),\n cancel: function cancel() {\n isCanceled = true;\n }\n };\n\n if (!options.beforeFetch) {\n _context18.next = 19;\n break;\n }\n\n _context18.t0 = Object;\n _context18.t1 = context;\n _context18.next = 17;\n return options.beforeFetch(context);\n\n case 17:\n _context18.t2 = _context18.sent;\n\n _context18.t0.assign.call(_context18.t0, _context18.t1, _context18.t2);\n\n case 19:\n if (!(isCanceled || !fetch)) {\n _context18.next = 22;\n break;\n }\n\n loading(false);\n return _context18.abrupt(\"return\", Promise.resolve(null));\n\n case 22:\n responseData = null;\n if (timer) timer.start();\n return _context18.abrupt(\"return\", fetch(context.url, _objectSpread(_objectSpread(_objectSpread({}, defaultFetchOptions), context.options), {}, {\n headers: _objectSpread(_objectSpread({}, headersToObject(defaultFetchOptions.headers)), headersToObject((_b = context.options) == null ? void 0 : _b.headers))\n })).then( /*#__PURE__*/function () {\n var _ref28 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee16(fetchResponse) {\n var _yield$options$afterF;\n\n return regeneratorRuntime.wrap(function _callee16$(_context16) {\n while (1) {\n switch (_context16.prev = _context16.next) {\n case 0:\n response.value = fetchResponse;\n statusCode.value = fetchResponse.status;\n _context16.next = 4;\n return fetchResponse.clone()[config.type]();\n\n case 4:\n responseData = _context16.sent;\n\n if (fetchResponse.ok) {\n _context16.next = 8;\n break;\n }\n\n data.value = initialData || null;\n throw new Error(fetchResponse.statusText);\n\n case 8:\n if (!options.afterFetch) {\n _context16.next = 13;\n break;\n }\n\n _context16.next = 11;\n return options.afterFetch({\n data: responseData,\n response: fetchResponse\n });\n\n case 11:\n _yield$options$afterF = _context16.sent;\n responseData = _yield$options$afterF.data;\n\n case 13:\n data.value = responseData;\n responseEvent.trigger(fetchResponse);\n return _context16.abrupt(\"return\", fetchResponse);\n\n case 16:\n case \"end\":\n return _context16.stop();\n }\n }\n }, _callee16);\n }));\n\n return function (_x6) {\n return _ref28.apply(this, arguments);\n };\n }()).catch( /*#__PURE__*/function () {\n var _ref29 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee17(fetchError) {\n var errorData, _yield$options$onFetc;\n\n return regeneratorRuntime.wrap(function _callee17$(_context17) {\n while (1) {\n switch (_context17.prev = _context17.next) {\n case 0:\n errorData = fetchError.message || fetchError.name;\n\n if (!options.onFetchError) {\n _context17.next = 7;\n break;\n }\n\n _context17.next = 4;\n return options.onFetchError({\n data: responseData,\n error: fetchError,\n response: response.value\n });\n\n case 4:\n _yield$options$onFetc = _context17.sent;\n errorData = _yield$options$onFetc.error;\n responseData = _yield$options$onFetc.data;\n\n case 7:\n error.value = errorData;\n if (options.updateDataOnError) data.value = responseData;\n errorEvent.trigger(fetchError);\n\n if (!throwOnFailed) {\n _context17.next = 12;\n break;\n }\n\n throw fetchError;\n\n case 12:\n return _context17.abrupt(\"return\", null);\n\n case 13:\n case \"end\":\n return _context17.stop();\n }\n }\n }, _callee17);\n }));\n\n return function (_x7) {\n return _ref29.apply(this, arguments);\n };\n }()).finally(function () {\n if (currentExecuteCounter === executeCounter) loading(false);\n if (timer) timer.stop();\n finallyEvent.trigger(null);\n }));\n\n case 25:\n case \"end\":\n return _context18.stop();\n }\n }\n }, _callee18);\n }));\n\n return function execute() {\n return _ref27.apply(this, arguments);\n };\n }();\n\n var refetch = toRef(options.refetch);\n watch([refetch, toRef(url)], function (_ref30) {\n var _ref31 = _slicedToArray(_ref30, 1),\n refetch2 = _ref31[0];\n\n return refetch2 && execute();\n }, {\n deep: true\n });\n var shell = {\n isFinished: readonly(isFinished),\n isFetching: readonly(isFetching),\n statusCode: statusCode,\n response: response,\n error: error,\n data: data,\n canAbort: canAbort,\n aborted: aborted,\n abort: abort,\n execute: execute,\n onFetchResponse: responseEvent.on,\n onFetchError: errorEvent.on,\n onFetchFinally: finallyEvent.on,\n // method\n get: setMethod(\"GET\"),\n put: setMethod(\"PUT\"),\n post: setMethod(\"POST\"),\n delete: setMethod(\"DELETE\"),\n patch: setMethod(\"PATCH\"),\n head: setMethod(\"HEAD\"),\n options: setMethod(\"OPTIONS\"),\n // type\n json: setType(\"json\"),\n text: setType(\"text\"),\n blob: setType(\"blob\"),\n arrayBuffer: setType(\"arrayBuffer\"),\n formData: setType(\"formData\")\n };\n\n function setMethod(method) {\n return function (payload, payloadType) {\n if (!isFetching.value) {\n config.method = method;\n config.payload = payload;\n config.payloadType = payloadType;\n\n if (isRef(config.payload)) {\n watch([refetch, toRef(config.payload)], function (_ref32) {\n var _ref33 = _slicedToArray(_ref32, 1),\n refetch2 = _ref33[0];\n\n return refetch2 && execute();\n }, {\n deep: true\n });\n }\n\n return _objectSpread(_objectSpread({}, shell), {}, {\n then: function then(onFulfilled, onRejected) {\n return waitUntilFinished().then(onFulfilled, onRejected);\n }\n });\n }\n\n return void 0;\n };\n }\n\n function waitUntilFinished() {\n return new Promise(function (resolve, reject) {\n until(isFinished).toBe(true).then(function () {\n return resolve(shell);\n }).catch(function (error2) {\n return reject(error2);\n });\n });\n }\n\n function setType(type) {\n return function () {\n if (!isFetching.value) {\n config.type = type;\n return _objectSpread(_objectSpread({}, shell), {}, {\n then: function then(onFulfilled, onRejected) {\n return waitUntilFinished().then(onFulfilled, onRejected);\n }\n });\n }\n\n return void 0;\n };\n }\n\n if (options.immediate) Promise.resolve().then(function () {\n return execute();\n });\n return _objectSpread(_objectSpread({}, shell), {}, {\n then: function then(onFulfilled, onRejected) {\n return waitUntilFinished().then(onFulfilled, onRejected);\n }\n });\n}\n\nfunction joinPaths(start, end) {\n if (!start.endsWith(\"/\") && !end.startsWith(\"/\")) return \"\".concat(start, \"/\").concat(end);\n return \"\".concat(start).concat(end);\n}\n\nvar DEFAULT_OPTIONS = {\n multiple: true,\n accept: \"*\",\n reset: false,\n directory: false\n};\n\nfunction useFileDialog() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$document5 = options.document,\n document = _options$document5 === void 0 ? defaultDocument : _options$document5;\n var files = ref(null);\n\n var _createEventHook = createEventHook(),\n onChange = _createEventHook.on,\n trigger = _createEventHook.trigger;\n\n var input;\n\n if (document) {\n input = document.createElement(\"input\");\n input.type = \"file\";\n\n input.onchange = function (event) {\n var result = event.target;\n files.value = result.files;\n trigger(files.value);\n };\n }\n\n var reset = function reset() {\n files.value = null;\n\n if (input && input.value) {\n input.value = \"\";\n trigger(null);\n }\n };\n\n var open = function open(localOptions) {\n if (!input) return;\n\n var _options = _objectSpread(_objectSpread(_objectSpread({}, DEFAULT_OPTIONS), options), localOptions);\n\n input.multiple = _options.multiple;\n input.accept = _options.accept;\n input.webkitdirectory = _options.directory;\n if (hasOwn(_options, \"capture\")) input.capture = _options.capture;\n if (_options.reset) reset();\n input.click();\n };\n\n return {\n files: readonly(files),\n open: open,\n reset: reset,\n onChange: onChange\n };\n}\n\nfunction useFileSystemAccess() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n var _options$window21 = options.window,\n _window = _options$window21 === void 0 ? defaultWindow : _options$window21,\n _options$dataType = options.dataType,\n dataType = _options$dataType === void 0 ? \"Text\" : _options$dataType;\n\n var window = _window;\n var isSupported = useSupported(function () {\n return window && \"showSaveFilePicker\" in window && \"showOpenFilePicker\" in window;\n });\n var fileHandle = ref();\n var data = ref();\n var file = ref();\n var fileName = computed(function () {\n var _a, _b;\n\n return (_b = (_a = file.value) == null ? void 0 : _a.name) != null ? _b : \"\";\n });\n var fileMIME = computed(function () {\n var _a, _b;\n\n return (_b = (_a = file.value) == null ? void 0 : _a.type) != null ? _b : \"\";\n });\n var fileSize = computed(function () {\n var _a, _b;\n\n return (_b = (_a = file.value) == null ? void 0 : _a.size) != null ? _b : 0;\n });\n var fileLastModified = computed(function () {\n var _a, _b;\n\n return (_b = (_a = file.value) == null ? void 0 : _a.lastModified) != null ? _b : 0;\n });\n\n function open() {\n return _open2.apply(this, arguments);\n }\n\n function _open2() {\n _open2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee19() {\n var _options,\n _yield$window$showOpe,\n _yield$window$showOpe2,\n handle,\n _args19 = arguments;\n\n return regeneratorRuntime.wrap(function _callee19$(_context19) {\n while (1) {\n switch (_context19.prev = _context19.next) {\n case 0:\n _options = _args19.length > 0 && _args19[0] !== undefined ? _args19[0] : {};\n\n if (isSupported.value) {\n _context19.next = 3;\n break;\n }\n\n return _context19.abrupt(\"return\");\n\n case 3:\n _context19.next = 5;\n return window.showOpenFilePicker(_objectSpread(_objectSpread({}, toValue(options)), _options));\n\n case 5:\n _yield$window$showOpe = _context19.sent;\n _yield$window$showOpe2 = _slicedToArray(_yield$window$showOpe, 1);\n handle = _yield$window$showOpe2[0];\n fileHandle.value = handle;\n _context19.next = 11;\n return updateData();\n\n case 11:\n case \"end\":\n return _context19.stop();\n }\n }\n }, _callee19);\n }));\n return _open2.apply(this, arguments);\n }\n\n function create() {\n return _create.apply(this, arguments);\n }\n\n function _create() {\n _create = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee20() {\n var _options,\n _args20 = arguments;\n\n return regeneratorRuntime.wrap(function _callee20$(_context20) {\n while (1) {\n switch (_context20.prev = _context20.next) {\n case 0:\n _options = _args20.length > 0 && _args20[0] !== undefined ? _args20[0] : {};\n\n if (isSupported.value) {\n _context20.next = 3;\n break;\n }\n\n return _context20.abrupt(\"return\");\n\n case 3:\n _context20.next = 5;\n return window.showSaveFilePicker(_objectSpread(_objectSpread({}, options), _options));\n\n case 5:\n fileHandle.value = _context20.sent;\n data.value = void 0;\n _context20.next = 9;\n return updateData();\n\n case 9:\n case \"end\":\n return _context20.stop();\n }\n }\n }, _callee20);\n }));\n return _create.apply(this, arguments);\n }\n\n function save() {\n return _save.apply(this, arguments);\n }\n\n function _save() {\n _save = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee21() {\n var _options,\n writableStream,\n _args21 = arguments;\n\n return regeneratorRuntime.wrap(function _callee21$(_context21) {\n while (1) {\n switch (_context21.prev = _context21.next) {\n case 0:\n _options = _args21.length > 0 && _args21[0] !== undefined ? _args21[0] : {};\n\n if (isSupported.value) {\n _context21.next = 3;\n break;\n }\n\n return _context21.abrupt(\"return\");\n\n case 3:\n if (fileHandle.value) {\n _context21.next = 5;\n break;\n }\n\n return _context21.abrupt(\"return\", saveAs(_options));\n\n case 5:\n if (!data.value) {\n _context21.next = 13;\n break;\n }\n\n _context21.next = 8;\n return fileHandle.value.createWritable();\n\n case 8:\n writableStream = _context21.sent;\n _context21.next = 11;\n return writableStream.write(data.value);\n\n case 11:\n _context21.next = 13;\n return writableStream.close();\n\n case 13:\n _context21.next = 15;\n return updateFile();\n\n case 15:\n case \"end\":\n return _context21.stop();\n }\n }\n }, _callee21);\n }));\n return _save.apply(this, arguments);\n }\n\n function saveAs() {\n return _saveAs.apply(this, arguments);\n }\n\n function _saveAs() {\n _saveAs = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee22() {\n var _options,\n writableStream,\n _args22 = arguments;\n\n return regeneratorRuntime.wrap(function _callee22$(_context22) {\n while (1) {\n switch (_context22.prev = _context22.next) {\n case 0:\n _options = _args22.length > 0 && _args22[0] !== undefined ? _args22[0] : {};\n\n if (isSupported.value) {\n _context22.next = 3;\n break;\n }\n\n return _context22.abrupt(\"return\");\n\n case 3:\n _context22.next = 5;\n return window.showSaveFilePicker(_objectSpread(_objectSpread({}, options), _options));\n\n case 5:\n fileHandle.value = _context22.sent;\n\n if (!data.value) {\n _context22.next = 14;\n break;\n }\n\n _context22.next = 9;\n return fileHandle.value.createWritable();\n\n case 9:\n writableStream = _context22.sent;\n _context22.next = 12;\n return writableStream.write(data.value);\n\n case 12:\n _context22.next = 14;\n return writableStream.close();\n\n case 14:\n _context22.next = 16;\n return updateFile();\n\n case 16:\n case \"end\":\n return _context22.stop();\n }\n }\n }, _callee22);\n }));\n return _saveAs.apply(this, arguments);\n }\n\n function updateFile() {\n return _updateFile.apply(this, arguments);\n }\n\n function _updateFile() {\n _updateFile = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee23() {\n var _a;\n\n return regeneratorRuntime.wrap(function _callee23$(_context23) {\n while (1) {\n switch (_context23.prev = _context23.next) {\n case 0:\n _context23.next = 2;\n return (_a = fileHandle.value) == null ? void 0 : _a.getFile();\n\n case 2:\n file.value = _context23.sent;\n\n case 3:\n case \"end\":\n return _context23.stop();\n }\n }\n }, _callee23);\n }));\n return _updateFile.apply(this, arguments);\n }\n\n function updateData() {\n return _updateData.apply(this, arguments);\n }\n\n function _updateData() {\n _updateData = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee24() {\n var _a, _b, type;\n\n return regeneratorRuntime.wrap(function _callee24$(_context24) {\n while (1) {\n switch (_context24.prev = _context24.next) {\n case 0:\n _context24.next = 2;\n return updateFile();\n\n case 2:\n type = toValue(dataType);\n\n if (!(type === \"Text\")) {\n _context24.next = 9;\n break;\n }\n\n _context24.next = 6;\n return (_a = file.value) == null ? void 0 : _a.text();\n\n case 6:\n data.value = _context24.sent;\n _context24.next = 16;\n break;\n\n case 9:\n if (!(type === \"ArrayBuffer\")) {\n _context24.next = 15;\n break;\n }\n\n _context24.next = 12;\n return (_b = file.value) == null ? void 0 : _b.arrayBuffer();\n\n case 12:\n data.value = _context24.sent;\n _context24.next = 16;\n break;\n\n case 15:\n if (type === \"Blob\") data.value = file.value;\n\n case 16:\n case \"end\":\n return _context24.stop();\n }\n }\n }, _callee24);\n }));\n return _updateData.apply(this, arguments);\n }\n\n watch(function () {\n return toValue(dataType);\n }, updateData);\n return {\n isSupported: isSupported,\n data: data,\n file: file,\n fileName: fileName,\n fileMIME: fileMIME,\n fileSize: fileSize,\n fileLastModified: fileLastModified,\n open: open,\n create: create,\n save: save,\n saveAs: saveAs,\n updateData: updateData\n };\n}\n\nfunction useFocus(target) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _options$initialValue4 = options.initialValue,\n initialValue = _options$initialValue4 === void 0 ? false : _options$initialValue4,\n _options$focusVisible = options.focusVisible,\n focusVisible = _options$focusVisible === void 0 ? false : _options$focusVisible;\n var innerFocused = ref(false);\n var targetElement = computed(function () {\n return unrefElement(target);\n });\n useEventListener(targetElement, \"focus\", function (event) {\n var _a, _b;\n\n if (!focusVisible || ((_b = (_a = event.target).matches) == null ? void 0 : _b.call(_a, \":focus-visible\"))) innerFocused.value = true;\n });\n useEventListener(targetElement, \"blur\", function () {\n return innerFocused.value = false;\n });\n var focused = computed({\n get: function get() {\n return innerFocused.value;\n },\n set: function set(value) {\n var _a, _b;\n\n if (!value && innerFocused.value) (_a = targetElement.value) == null ? void 0 : _a.blur();else if (value && !innerFocused.value) (_b = targetElement.value) == null ? void 0 : _b.focus();\n }\n });\n watch(targetElement, function () {\n focused.value = initialValue;\n }, {\n immediate: true,\n flush: \"post\"\n });\n return {\n focused: focused\n };\n}\n\nfunction useFocusWithin(target) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var activeElement = useActiveElement(options);\n var targetElement = computed(function () {\n return unrefElement(target);\n });\n var focused = computed(function () {\n return targetElement.value && activeElement.value ? targetElement.value.contains(activeElement.value) : false;\n });\n return {\n focused: focused\n };\n}\n\nfunction useFps(options) {\n var _a;\n\n var fps = ref(0);\n if (typeof performance === \"undefined\") return fps;\n var every = (_a = options == null ? void 0 : options.every) != null ? _a : 10;\n var last = performance.now();\n var ticks = 0;\n useRafFn(function () {\n ticks += 1;\n\n if (ticks >= every) {\n var now = performance.now();\n var diff = now - last;\n fps.value = Math.round(1e3 / (diff / ticks));\n last = now;\n ticks = 0;\n }\n });\n return fps;\n}\n\nvar eventHandlers = [\"fullscreenchange\", \"webkitfullscreenchange\", \"webkitendfullscreen\", \"mozfullscreenchange\", \"MSFullscreenChange\"];\n\nfunction useFullscreen(target) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _options$document6 = options.document,\n document = _options$document6 === void 0 ? defaultDocument : _options$document6,\n _options$autoExit = options.autoExit,\n autoExit = _options$autoExit === void 0 ? false : _options$autoExit;\n var targetRef = computed(function () {\n var _a;\n\n return (_a = unrefElement(target)) != null ? _a : document == null ? void 0 : document.querySelector(\"html\");\n });\n var isFullscreen = ref(false);\n var requestMethod = computed(function () {\n return [\"requestFullscreen\", \"webkitRequestFullscreen\", \"webkitEnterFullscreen\", \"webkitEnterFullScreen\", \"webkitRequestFullScreen\", \"mozRequestFullScreen\", \"msRequestFullscreen\"].find(function (m) {\n return document && m in document || targetRef.value && m in targetRef.value;\n });\n });\n var exitMethod = computed(function () {\n return [\"exitFullscreen\", \"webkitExitFullscreen\", \"webkitExitFullScreen\", \"webkitCancelFullScreen\", \"mozCancelFullScreen\", \"msExitFullscreen\"].find(function (m) {\n return document && m in document || targetRef.value && m in targetRef.value;\n });\n });\n var fullscreenEnabled = computed(function () {\n return [\"fullScreen\", \"webkitIsFullScreen\", \"webkitDisplayingFullscreen\", \"mozFullScreen\", \"msFullscreenElement\"].find(function (m) {\n return document && m in document || targetRef.value && m in targetRef.value;\n });\n });\n var fullscreenElementMethod = [\"fullscreenElement\", \"webkitFullscreenElement\", \"mozFullScreenElement\", \"msFullscreenElement\"].find(function (m) {\n return document && m in document;\n });\n var isSupported = useSupported(function () {\n return targetRef.value && document && requestMethod.value !== void 0 && exitMethod.value !== void 0 && fullscreenEnabled.value !== void 0;\n });\n\n var isCurrentElementFullScreen = function isCurrentElementFullScreen() {\n if (fullscreenElementMethod) return (document == null ? void 0 : document[fullscreenElementMethod]) === targetRef.value;\n return false;\n };\n\n var isElementFullScreen = function isElementFullScreen() {\n if (fullscreenEnabled.value) {\n if (document && document[fullscreenEnabled.value] != null) {\n return document[fullscreenEnabled.value];\n } else {\n var target2 = targetRef.value;\n\n if ((target2 == null ? void 0 : target2[fullscreenEnabled.value]) != null) {\n return Boolean(target2[fullscreenEnabled.value]);\n }\n }\n }\n\n return false;\n };\n\n function exit() {\n return _exit.apply(this, arguments);\n }\n\n function _exit() {\n _exit = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee25() {\n var target2;\n return regeneratorRuntime.wrap(function _callee25$(_context25) {\n while (1) {\n switch (_context25.prev = _context25.next) {\n case 0:\n if (!(!isSupported.value || !isFullscreen.value)) {\n _context25.next = 2;\n break;\n }\n\n return _context25.abrupt(\"return\");\n\n case 2:\n if (!exitMethod.value) {\n _context25.next = 12;\n break;\n }\n\n if (!((document == null ? void 0 : document[exitMethod.value]) != null)) {\n _context25.next = 8;\n break;\n }\n\n _context25.next = 6;\n return document[exitMethod.value]();\n\n case 6:\n _context25.next = 12;\n break;\n\n case 8:\n target2 = targetRef.value;\n\n if (!((target2 == null ? void 0 : target2[exitMethod.value]) != null)) {\n _context25.next = 12;\n break;\n }\n\n _context25.next = 12;\n return target2[exitMethod.value]();\n\n case 12:\n isFullscreen.value = false;\n\n case 13:\n case \"end\":\n return _context25.stop();\n }\n }\n }, _callee25);\n }));\n return _exit.apply(this, arguments);\n }\n\n function enter() {\n return _enter.apply(this, arguments);\n }\n\n function _enter() {\n _enter = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee26() {\n var target2;\n return regeneratorRuntime.wrap(function _callee26$(_context26) {\n while (1) {\n switch (_context26.prev = _context26.next) {\n case 0:\n if (!(!isSupported.value || isFullscreen.value)) {\n _context26.next = 2;\n break;\n }\n\n return _context26.abrupt(\"return\");\n\n case 2:\n if (!isElementFullScreen()) {\n _context26.next = 5;\n break;\n }\n\n _context26.next = 5;\n return exit();\n\n case 5:\n target2 = targetRef.value;\n\n if (!(requestMethod.value && (target2 == null ? void 0 : target2[requestMethod.value]) != null)) {\n _context26.next = 10;\n break;\n }\n\n _context26.next = 9;\n return target2[requestMethod.value]();\n\n case 9:\n isFullscreen.value = true;\n\n case 10:\n case \"end\":\n return _context26.stop();\n }\n }\n }, _callee26);\n }));\n return _enter.apply(this, arguments);\n }\n\n function toggle() {\n return _toggle.apply(this, arguments);\n }\n\n function _toggle() {\n _toggle = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee27() {\n return regeneratorRuntime.wrap(function _callee27$(_context27) {\n while (1) {\n switch (_context27.prev = _context27.next) {\n case 0:\n _context27.next = 2;\n return isFullscreen.value ? exit() : enter();\n\n case 2:\n case \"end\":\n return _context27.stop();\n }\n }\n }, _callee27);\n }));\n return _toggle.apply(this, arguments);\n }\n\n var handlerCallback = function handlerCallback() {\n var isElementFullScreenValue = isElementFullScreen();\n if (!isElementFullScreenValue || isElementFullScreenValue && isCurrentElementFullScreen()) isFullscreen.value = isElementFullScreenValue;\n };\n\n useEventListener(document, eventHandlers, handlerCallback, false);\n useEventListener(function () {\n return unrefElement(targetRef);\n }, eventHandlers, handlerCallback, false);\n if (autoExit) tryOnScopeDispose(exit);\n return {\n isSupported: isSupported,\n isFullscreen: isFullscreen,\n enter: enter,\n exit: exit,\n toggle: toggle\n };\n}\n\nfunction mapGamepadToXbox360Controller(gamepad) {\n return computed(function () {\n if (gamepad.value) {\n return {\n buttons: {\n a: gamepad.value.buttons[0],\n b: gamepad.value.buttons[1],\n x: gamepad.value.buttons[2],\n y: gamepad.value.buttons[3]\n },\n bumper: {\n left: gamepad.value.buttons[4],\n right: gamepad.value.buttons[5]\n },\n triggers: {\n left: gamepad.value.buttons[6],\n right: gamepad.value.buttons[7]\n },\n stick: {\n left: {\n horizontal: gamepad.value.axes[0],\n vertical: gamepad.value.axes[1],\n button: gamepad.value.buttons[10]\n },\n right: {\n horizontal: gamepad.value.axes[2],\n vertical: gamepad.value.axes[3],\n button: gamepad.value.buttons[11]\n }\n },\n dpad: {\n up: gamepad.value.buttons[12],\n down: gamepad.value.buttons[13],\n left: gamepad.value.buttons[14],\n right: gamepad.value.buttons[15]\n },\n back: gamepad.value.buttons[8],\n start: gamepad.value.buttons[9]\n };\n }\n\n return null;\n });\n}\n\nfunction useGamepad() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$navigator7 = options.navigator,\n navigator = _options$navigator7 === void 0 ? defaultNavigator : _options$navigator7;\n var isSupported = useSupported(function () {\n return navigator && \"getGamepads\" in navigator;\n });\n var gamepads = ref([]);\n var onConnectedHook = createEventHook();\n var onDisconnectedHook = createEventHook();\n\n var stateFromGamepad = function stateFromGamepad(gamepad) {\n var hapticActuators = [];\n var vibrationActuator = \"vibrationActuator\" in gamepad ? gamepad.vibrationActuator : null;\n if (vibrationActuator) hapticActuators.push(vibrationActuator);\n if (gamepad.hapticActuators) hapticActuators.push.apply(hapticActuators, _toConsumableArray(gamepad.hapticActuators));\n return {\n id: gamepad.id,\n index: gamepad.index,\n connected: gamepad.connected,\n mapping: gamepad.mapping,\n timestamp: gamepad.timestamp,\n vibrationActuator: gamepad.vibrationActuator,\n hapticActuators: hapticActuators,\n axes: gamepad.axes.map(function (axes) {\n return axes;\n }),\n buttons: gamepad.buttons.map(function (button) {\n return {\n pressed: button.pressed,\n touched: button.touched,\n value: button.value\n };\n })\n };\n };\n\n var updateGamepadState = function updateGamepadState() {\n var _gamepads = (navigator == null ? void 0 : navigator.getGamepads()) || [];\n\n var _iterator7 = _createForOfIteratorHelper(_gamepads),\n _step7;\n\n try {\n for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {\n var gamepad = _step7.value;\n if (gamepad && gamepads.value[gamepad.index]) gamepads.value[gamepad.index] = stateFromGamepad(gamepad);\n }\n } catch (err) {\n _iterator7.e(err);\n } finally {\n _iterator7.f();\n }\n };\n\n var _useRafFn2 = useRafFn(updateGamepadState),\n isActive = _useRafFn2.isActive,\n pause = _useRafFn2.pause,\n resume = _useRafFn2.resume;\n\n var onGamepadConnected = function onGamepadConnected(gamepad) {\n if (!gamepads.value.some(function (_ref34) {\n var index = _ref34.index;\n return index === gamepad.index;\n })) {\n gamepads.value.push(stateFromGamepad(gamepad));\n onConnectedHook.trigger(gamepad.index);\n }\n\n resume();\n };\n\n var onGamepadDisconnected = function onGamepadDisconnected(gamepad) {\n gamepads.value = gamepads.value.filter(function (x) {\n return x.index !== gamepad.index;\n });\n onDisconnectedHook.trigger(gamepad.index);\n };\n\n useEventListener(\"gamepadconnected\", function (e) {\n return onGamepadConnected(e.gamepad);\n });\n useEventListener(\"gamepaddisconnected\", function (e) {\n return onGamepadDisconnected(e.gamepad);\n });\n tryOnMounted(function () {\n var _gamepads = (navigator == null ? void 0 : navigator.getGamepads()) || [];\n\n var _iterator8 = _createForOfIteratorHelper(_gamepads),\n _step8;\n\n try {\n for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {\n var gamepad = _step8.value;\n if (gamepad && gamepads.value[gamepad.index]) onGamepadConnected(gamepad);\n }\n } catch (err) {\n _iterator8.e(err);\n } finally {\n _iterator8.f();\n }\n });\n pause();\n return {\n isSupported: isSupported,\n onConnected: onConnectedHook.on,\n onDisconnected: onDisconnectedHook.on,\n gamepads: gamepads,\n pause: pause,\n resume: resume,\n isActive: isActive\n };\n}\n\nfunction useGeolocation() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$enableHighAc = options.enableHighAccuracy,\n enableHighAccuracy = _options$enableHighAc === void 0 ? true : _options$enableHighAc,\n _options$maximumAge = options.maximumAge,\n maximumAge = _options$maximumAge === void 0 ? 3e4 : _options$maximumAge,\n _options$timeout = options.timeout,\n timeout = _options$timeout === void 0 ? 27e3 : _options$timeout,\n _options$navigator8 = options.navigator,\n navigator = _options$navigator8 === void 0 ? defaultNavigator : _options$navigator8,\n _options$immediate7 = options.immediate,\n immediate = _options$immediate7 === void 0 ? true : _options$immediate7;\n var isSupported = useSupported(function () {\n return navigator && \"geolocation\" in navigator;\n });\n var locatedAt = ref(null);\n var error = shallowRef(null);\n var coords = ref({\n accuracy: 0,\n latitude: Number.POSITIVE_INFINITY,\n longitude: Number.POSITIVE_INFINITY,\n altitude: null,\n altitudeAccuracy: null,\n heading: null,\n speed: null\n });\n\n function updatePosition(position) {\n locatedAt.value = position.timestamp;\n coords.value = position.coords;\n error.value = null;\n }\n\n var watcher;\n\n function resume() {\n if (isSupported.value) {\n watcher = navigator.geolocation.watchPosition(updatePosition, function (err) {\n return error.value = err;\n }, {\n enableHighAccuracy: enableHighAccuracy,\n maximumAge: maximumAge,\n timeout: timeout\n });\n }\n }\n\n if (immediate) resume();\n\n function pause() {\n if (watcher && navigator) navigator.geolocation.clearWatch(watcher);\n }\n\n tryOnScopeDispose(function () {\n pause();\n });\n return {\n isSupported: isSupported,\n coords: coords,\n locatedAt: locatedAt,\n error: error,\n resume: resume,\n pause: pause\n };\n}\n\nvar defaultEvents$1 = [\"mousemove\", \"mousedown\", \"resize\", \"keydown\", \"touchstart\", \"wheel\"];\nvar oneMinute = 6e4;\n\nfunction useIdle() {\n var timeout = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : oneMinute;\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _options$initialState = options.initialState,\n initialState = _options$initialState === void 0 ? false : _options$initialState,\n _options$listenForVis = options.listenForVisibilityChange,\n listenForVisibilityChange = _options$listenForVis === void 0 ? true : _options$listenForVis,\n _options$events = options.events,\n events = _options$events === void 0 ? defaultEvents$1 : _options$events,\n _options$window22 = options.window,\n window = _options$window22 === void 0 ? defaultWindow : _options$window22,\n _options$eventFilter2 = options.eventFilter,\n eventFilter = _options$eventFilter2 === void 0 ? throttleFilter(50) : _options$eventFilter2;\n var idle = ref(initialState);\n var lastActive = ref(timestamp());\n var timer;\n\n var reset = function reset() {\n idle.value = false;\n clearTimeout(timer);\n timer = setTimeout(function () {\n return idle.value = true;\n }, timeout);\n };\n\n var onEvent = createFilterWrapper(eventFilter, function () {\n lastActive.value = timestamp();\n reset();\n });\n\n if (window) {\n var _document2 = window.document;\n\n var _iterator9 = _createForOfIteratorHelper(events),\n _step9;\n\n try {\n for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {\n var event = _step9.value;\n useEventListener(window, event, onEvent, {\n passive: true\n });\n }\n } catch (err) {\n _iterator9.e(err);\n } finally {\n _iterator9.f();\n }\n\n if (listenForVisibilityChange) {\n useEventListener(_document2, \"visibilitychange\", function () {\n if (!_document2.hidden) onEvent();\n });\n }\n\n reset();\n }\n\n return {\n idle: idle,\n lastActive: lastActive,\n reset: reset\n };\n}\n\nfunction loadImage(_x8) {\n return _loadImage.apply(this, arguments);\n}\n\nfunction _loadImage() {\n _loadImage = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee44(options) {\n return regeneratorRuntime.wrap(function _callee44$(_context44) {\n while (1) {\n switch (_context44.prev = _context44.next) {\n case 0:\n return _context44.abrupt(\"return\", new Promise(function (resolve, reject) {\n var img = new Image();\n var src = options.src,\n srcset = options.srcset,\n sizes = options.sizes,\n clazz = options.class,\n loading = options.loading,\n crossorigin = options.crossorigin,\n referrerPolicy = options.referrerPolicy;\n img.src = src;\n if (srcset) img.srcset = srcset;\n if (sizes) img.sizes = sizes;\n if (clazz) img.className = clazz;\n if (loading) img.loading = loading;\n if (crossorigin) img.crossOrigin = crossorigin;\n if (referrerPolicy) img.referrerPolicy = referrerPolicy;\n\n img.onload = function () {\n return resolve(img);\n };\n\n img.onerror = reject;\n }));\n\n case 1:\n case \"end\":\n return _context44.stop();\n }\n }\n }, _callee44);\n }));\n return _loadImage.apply(this, arguments);\n}\n\nfunction useImage(options) {\n var asyncStateOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var state = useAsyncState(function () {\n return loadImage(toValue(options));\n }, void 0, _objectSpread({\n resetOnExecute: true\n }, asyncStateOptions));\n watch(function () {\n return toValue(options);\n }, function () {\n return state.execute(asyncStateOptions.delay);\n }, {\n deep: true\n });\n return state;\n}\n\nvar ARRIVED_STATE_THRESHOLD_PIXELS = 1;\n\nfunction useScroll(element) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _options$throttle = options.throttle,\n throttle = _options$throttle === void 0 ? 0 : _options$throttle,\n _options$idle = options.idle,\n idle = _options$idle === void 0 ? 200 : _options$idle,\n _options$onStop = options.onStop,\n onStop = _options$onStop === void 0 ? noop : _options$onStop,\n _options$onScroll = options.onScroll,\n onScroll = _options$onScroll === void 0 ? noop : _options$onScroll,\n _options$offset = options.offset,\n offset = _options$offset === void 0 ? {\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n } : _options$offset,\n _options$eventListene = options.eventListenerOptions,\n eventListenerOptions = _options$eventListene === void 0 ? {\n capture: false,\n passive: true\n } : _options$eventListene,\n _options$behavior = options.behavior,\n behavior = _options$behavior === void 0 ? \"auto\" : _options$behavior,\n _options$window23 = options.window,\n window = _options$window23 === void 0 ? defaultWindow : _options$window23,\n _options$onError2 = options.onError,\n onError = _options$onError2 === void 0 ? function (e) {\n console.error(e);\n } : _options$onError2;\n var internalX = ref(0);\n var internalY = ref(0);\n var x = computed({\n get: function get() {\n return internalX.value;\n },\n set: function set(x2) {\n scrollTo(x2, void 0);\n }\n });\n var y = computed({\n get: function get() {\n return internalY.value;\n },\n set: function set(y2) {\n scrollTo(void 0, y2);\n }\n });\n\n function scrollTo(_x, _y) {\n var _a, _b, _c, _d;\n\n if (!window) return;\n\n var _element = toValue(element);\n\n if (!_element) return;\n (_c = _element instanceof Document ? window.document.body : _element) == null ? void 0 : _c.scrollTo({\n top: (_a = toValue(_y)) != null ? _a : y.value,\n left: (_b = toValue(_x)) != null ? _b : x.value,\n behavior: toValue(behavior)\n });\n var scrollContainer = ((_d = _element == null ? void 0 : _element.document) == null ? void 0 : _d.documentElement) || (_element == null ? void 0 : _element.documentElement) || _element;\n if (x != null) internalX.value = scrollContainer.scrollLeft;\n if (y != null) internalY.value = scrollContainer.scrollTop;\n }\n\n var isScrolling = ref(false);\n var arrivedState = reactive({\n left: true,\n right: false,\n top: true,\n bottom: false\n });\n var directions = reactive({\n left: false,\n right: false,\n top: false,\n bottom: false\n });\n\n var onScrollEnd = function onScrollEnd(e) {\n if (!isScrolling.value) return;\n isScrolling.value = false;\n directions.left = false;\n directions.right = false;\n directions.top = false;\n directions.bottom = false;\n onStop(e);\n };\n\n var onScrollEndDebounced = useDebounceFn(onScrollEnd, throttle + idle);\n\n var setArrivedState = function setArrivedState(target) {\n var _a;\n\n if (!window) return;\n var el = ((_a = target == null ? void 0 : target.document) == null ? void 0 : _a.documentElement) || (target == null ? void 0 : target.documentElement) || unrefElement(target);\n\n var _getComputedStyle = getComputedStyle(el),\n display = _getComputedStyle.display,\n flexDirection = _getComputedStyle.flexDirection;\n\n var scrollLeft = el.scrollLeft;\n directions.left = scrollLeft < internalX.value;\n directions.right = scrollLeft > internalX.value;\n var left = Math.abs(scrollLeft) <= (offset.left || 0);\n var right = Math.abs(scrollLeft) + el.clientWidth >= el.scrollWidth - (offset.right || 0) - ARRIVED_STATE_THRESHOLD_PIXELS;\n\n if (display === \"flex\" && flexDirection === \"row-reverse\") {\n arrivedState.left = right;\n arrivedState.right = left;\n } else {\n arrivedState.left = left;\n arrivedState.right = right;\n }\n\n internalX.value = scrollLeft;\n var scrollTop = el.scrollTop;\n if (target === window.document && !scrollTop) scrollTop = window.document.body.scrollTop;\n directions.top = scrollTop < internalY.value;\n directions.bottom = scrollTop > internalY.value;\n var top = Math.abs(scrollTop) <= (offset.top || 0);\n var bottom = Math.abs(scrollTop) + el.clientHeight >= el.scrollHeight - (offset.bottom || 0) - ARRIVED_STATE_THRESHOLD_PIXELS;\n\n if (display === \"flex\" && flexDirection === \"column-reverse\") {\n arrivedState.top = bottom;\n arrivedState.bottom = top;\n } else {\n arrivedState.top = top;\n arrivedState.bottom = bottom;\n }\n\n internalY.value = scrollTop;\n };\n\n var onScrollHandler = function onScrollHandler(e) {\n var _a;\n\n if (!window) return;\n var eventTarget = (_a = e.target.documentElement) != null ? _a : e.target;\n setArrivedState(eventTarget);\n isScrolling.value = true;\n onScrollEndDebounced(e);\n onScroll(e);\n };\n\n useEventListener(element, \"scroll\", throttle ? useThrottleFn(onScrollHandler, throttle, true, false) : onScrollHandler, eventListenerOptions);\n tryOnMounted(function () {\n try {\n var _element = toValue(element);\n\n if (!_element) return;\n setArrivedState(_element);\n } catch (e) {\n onError(e);\n }\n });\n useEventListener(element, \"scrollend\", onScrollEnd, eventListenerOptions);\n return {\n x: x,\n y: y,\n isScrolling: isScrolling,\n arrivedState: arrivedState,\n directions: directions,\n measure: function measure() {\n var _element = toValue(element);\n\n if (window && _element) setArrivedState(_element);\n }\n };\n}\n\nfunction resolveElement(el) {\n if (typeof Window !== \"undefined\" && el instanceof Window) return el.document.documentElement;\n if (typeof Document !== \"undefined\" && el instanceof Document) return el.documentElement;\n return el;\n}\n\nfunction useInfiniteScroll(element, onLoadMore) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n var _a;\n\n var _options$direction = options.direction,\n direction = _options$direction === void 0 ? \"bottom\" : _options$direction,\n _options$interval2 = options.interval,\n interval = _options$interval2 === void 0 ? 100 : _options$interval2,\n _options$canLoadMore = options.canLoadMore,\n canLoadMore = _options$canLoadMore === void 0 ? function () {\n return true;\n } : _options$canLoadMore;\n var state = reactive(useScroll(element, _objectSpread(_objectSpread({}, options), {}, {\n offset: _objectSpread(_defineProperty({}, direction, (_a = options.distance) != null ? _a : 0), options.offset)\n })));\n var promise = ref();\n var isLoading = computed(function () {\n return !!promise.value;\n });\n var observedElement = computed(function () {\n return resolveElement(toValue(element));\n });\n var isElementVisible = useElementVisibility(observedElement);\n\n function checkAndLoad() {\n state.measure();\n if (!observedElement.value || !isElementVisible.value || !canLoadMore(observedElement.value)) return;\n var _observedElement$valu = observedElement.value,\n scrollHeight = _observedElement$valu.scrollHeight,\n clientHeight = _observedElement$valu.clientHeight,\n scrollWidth = _observedElement$valu.scrollWidth,\n clientWidth = _observedElement$valu.clientWidth;\n var isNarrower = direction === \"bottom\" || direction === \"top\" ? scrollHeight <= clientHeight : scrollWidth <= clientWidth;\n\n if (state.arrivedState[direction] || isNarrower) {\n if (!promise.value) {\n promise.value = Promise.all([onLoadMore(state), new Promise(function (resolve) {\n return setTimeout(resolve, interval);\n })]).finally(function () {\n promise.value = null;\n nextTick(function () {\n return checkAndLoad();\n });\n });\n }\n }\n }\n\n watch(function () {\n return [state.arrivedState[direction], isElementVisible.value];\n }, checkAndLoad, {\n immediate: true\n });\n return {\n isLoading: isLoading\n };\n}\n\nvar defaultEvents = [\"mousedown\", \"mouseup\", \"keydown\", \"keyup\"];\n\nfunction useKeyModifier(modifier) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _options$events2 = options.events,\n events = _options$events2 === void 0 ? defaultEvents : _options$events2,\n _options$document7 = options.document,\n document = _options$document7 === void 0 ? defaultDocument : _options$document7,\n _options$initial = options.initial,\n initial = _options$initial === void 0 ? null : _options$initial;\n var state = ref(initial);\n\n if (document) {\n events.forEach(function (listenerEvent) {\n useEventListener(document, listenerEvent, function (evt) {\n if (typeof evt.getModifierState === \"function\") state.value = evt.getModifierState(modifier);\n });\n });\n }\n\n return state;\n}\n\nfunction useLocalStorage(key, initialValue) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var _options$window24 = options.window,\n window = _options$window24 === void 0 ? defaultWindow : _options$window24;\n return useStorage(key, initialValue, window == null ? void 0 : window.localStorage, options);\n}\n\nvar DefaultMagicKeysAliasMap = {\n ctrl: \"control\",\n command: \"meta\",\n cmd: \"meta\",\n option: \"alt\",\n up: \"arrowup\",\n down: \"arrowdown\",\n left: \"arrowleft\",\n right: \"arrowright\"\n};\n\nfunction useMagicKeys() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$reactive = options.reactive,\n useReactive = _options$reactive === void 0 ? false : _options$reactive,\n _options$target = options.target,\n target = _options$target === void 0 ? defaultWindow : _options$target,\n _options$aliasMap = options.aliasMap,\n aliasMap = _options$aliasMap === void 0 ? DefaultMagicKeysAliasMap : _options$aliasMap,\n _options$passive = options.passive,\n passive = _options$passive === void 0 ? true : _options$passive,\n _options$onEventFired = options.onEventFired,\n onEventFired = _options$onEventFired === void 0 ? noop : _options$onEventFired;\n var current = reactive( /* @__PURE__ */new Set());\n var obj = {\n toJSON: function toJSON() {\n return {};\n },\n current: current\n };\n var refs = useReactive ? reactive(obj) : obj;\n var metaDeps = /* @__PURE__ */new Set();\n var usedKeys = /* @__PURE__ */new Set();\n\n function setRefs(key, value) {\n if (key in refs) {\n if (useReactive) refs[key] = value;else refs[key].value = value;\n }\n }\n\n function reset() {\n current.clear();\n\n var _iterator10 = _createForOfIteratorHelper(usedKeys),\n _step10;\n\n try {\n for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {\n var key = _step10.value;\n setRefs(key, false);\n }\n } catch (err) {\n _iterator10.e(err);\n } finally {\n _iterator10.f();\n }\n }\n\n function updateRefs(e, value) {\n var _a, _b;\n\n var key = (_a = e.key) == null ? void 0 : _a.toLowerCase();\n var code = (_b = e.code) == null ? void 0 : _b.toLowerCase();\n var values = [code, key].filter(Boolean);\n\n if (key) {\n if (value) current.add(key);else current.delete(key);\n }\n\n var _iterator11 = _createForOfIteratorHelper(values),\n _step11;\n\n try {\n for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {\n var key2 = _step11.value;\n usedKeys.add(key2);\n setRefs(key2, value);\n }\n } catch (err) {\n _iterator11.e(err);\n } finally {\n _iterator11.f();\n }\n\n if (key === \"meta\" && !value) {\n metaDeps.forEach(function (key2) {\n current.delete(key2);\n setRefs(key2, false);\n });\n metaDeps.clear();\n } else if (typeof e.getModifierState === \"function\" && e.getModifierState(\"Meta\") && value) {\n [].concat(_toConsumableArray(current), _toConsumableArray(values)).forEach(function (key2) {\n return metaDeps.add(key2);\n });\n }\n }\n\n useEventListener(target, \"keydown\", function (e) {\n updateRefs(e, true);\n return onEventFired(e);\n }, {\n passive: passive\n });\n useEventListener(target, \"keyup\", function (e) {\n updateRefs(e, false);\n return onEventFired(e);\n }, {\n passive: passive\n });\n useEventListener(\"blur\", reset, {\n passive: true\n });\n useEventListener(\"focus\", reset, {\n passive: true\n });\n var proxy = new Proxy(refs, {\n get: function get(target2, prop, rec) {\n if (typeof prop !== \"string\") return Reflect.get(target2, prop, rec);\n prop = prop.toLowerCase();\n if (prop in aliasMap) prop = aliasMap[prop];\n\n if (!(prop in refs)) {\n if (/[+_-]/.test(prop)) {\n var _keys = prop.split(/[+_-]/g).map(function (i) {\n return i.trim();\n });\n\n refs[prop] = computed(function () {\n return _keys.every(function (key) {\n return toValue(proxy[key]);\n });\n });\n } else {\n refs[prop] = ref(false);\n }\n }\n\n var r = Reflect.get(target2, prop, rec);\n return useReactive ? toValue(r) : r;\n }\n });\n return proxy;\n}\n\nfunction usingElRef(source, cb) {\n if (toValue(source)) cb(toValue(source));\n}\n\nfunction timeRangeToArray(timeRanges) {\n var ranges = [];\n\n for (var i = 0; i < timeRanges.length; ++i) {\n ranges = [].concat(_toConsumableArray(ranges), [[timeRanges.start(i), timeRanges.end(i)]]);\n }\n\n return ranges;\n}\n\nfunction tracksToArray(tracks) {\n return Array.from(tracks).map(function (_ref35, id) {\n var label = _ref35.label,\n kind = _ref35.kind,\n language = _ref35.language,\n mode = _ref35.mode,\n activeCues = _ref35.activeCues,\n cues = _ref35.cues,\n inBandMetadataTrackDispatchType = _ref35.inBandMetadataTrackDispatchType;\n return {\n id: id,\n label: label,\n kind: kind,\n language: language,\n mode: mode,\n activeCues: activeCues,\n cues: cues,\n inBandMetadataTrackDispatchType: inBandMetadataTrackDispatchType\n };\n });\n}\n\nvar defaultOptions = {\n src: \"\",\n tracks: []\n};\n\nfunction useMediaControls(target) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n target = toRef(target);\n options = _objectSpread(_objectSpread({}, defaultOptions), options);\n var _options5 = options,\n _options5$document = _options5.document,\n document = _options5$document === void 0 ? defaultDocument : _options5$document;\n var currentTime = ref(0);\n var duration = ref(0);\n var seeking = ref(false);\n var volume = ref(1);\n var waiting = ref(false);\n var ended = ref(false);\n var playing = ref(false);\n var rate = ref(1);\n var stalled = ref(false);\n var buffered = ref([]);\n var tracks = ref([]);\n var selectedTrack = ref(-1);\n var isPictureInPicture = ref(false);\n var muted = ref(false);\n var supportsPictureInPicture = document && \"pictureInPictureEnabled\" in document;\n var sourceErrorEvent = createEventHook();\n\n var disableTrack = function disableTrack(track) {\n usingElRef(target, function (el) {\n if (track) {\n var id = typeof track === \"number\" ? track : track.id;\n el.textTracks[id].mode = \"disabled\";\n } else {\n for (var i = 0; i < el.textTracks.length; ++i) {\n el.textTracks[i].mode = \"disabled\";\n }\n }\n\n selectedTrack.value = -1;\n });\n };\n\n var enableTrack = function enableTrack(track) {\n var disableTracks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n usingElRef(target, function (el) {\n var id = typeof track === \"number\" ? track : track.id;\n if (disableTracks) disableTrack();\n el.textTracks[id].mode = \"showing\";\n selectedTrack.value = id;\n });\n };\n\n var togglePictureInPicture = function togglePictureInPicture() {\n return new Promise(function (resolve, reject) {\n usingElRef(target, /*#__PURE__*/function () {\n var _ref36 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee28(el) {\n return regeneratorRuntime.wrap(function _callee28$(_context28) {\n while (1) {\n switch (_context28.prev = _context28.next) {\n case 0:\n if (supportsPictureInPicture) {\n if (!isPictureInPicture.value) {\n el.requestPictureInPicture().then(resolve).catch(reject);\n } else {\n document.exitPictureInPicture().then(resolve).catch(reject);\n }\n }\n\n case 1:\n case \"end\":\n return _context28.stop();\n }\n }\n }, _callee28);\n }));\n\n return function (_x9) {\n return _ref36.apply(this, arguments);\n };\n }());\n });\n };\n\n watchEffect(function () {\n if (!document) return;\n var el = toValue(target);\n if (!el) return;\n var src = toValue(options.src);\n var sources = [];\n if (!src) return;\n if (typeof src === \"string\") sources = [{\n src: src\n }];else if (Array.isArray(src)) sources = src;else if (isObject(src)) sources = [src];\n el.querySelectorAll(\"source\").forEach(function (e) {\n e.removeEventListener(\"error\", sourceErrorEvent.trigger);\n e.remove();\n });\n sources.forEach(function (_ref37) {\n var src2 = _ref37.src,\n type = _ref37.type;\n var source = document.createElement(\"source\");\n source.setAttribute(\"src\", src2);\n source.setAttribute(\"type\", type || \"\");\n source.addEventListener(\"error\", sourceErrorEvent.trigger);\n el.appendChild(source);\n });\n el.load();\n });\n tryOnScopeDispose(function () {\n var el = toValue(target);\n if (!el) return;\n el.querySelectorAll(\"source\").forEach(function (e) {\n return e.removeEventListener(\"error\", sourceErrorEvent.trigger);\n });\n });\n watch([target, volume], function () {\n var el = toValue(target);\n if (!el) return;\n el.volume = volume.value;\n });\n watch([target, muted], function () {\n var el = toValue(target);\n if (!el) return;\n el.muted = muted.value;\n });\n watch([target, rate], function () {\n var el = toValue(target);\n if (!el) return;\n el.playbackRate = rate.value;\n });\n watchEffect(function () {\n if (!document) return;\n var textTracks = toValue(options.tracks);\n var el = toValue(target);\n if (!textTracks || !textTracks.length || !el) return;\n el.querySelectorAll(\"track\").forEach(function (e) {\n return e.remove();\n });\n textTracks.forEach(function (_ref38, i) {\n var isDefault = _ref38.default,\n kind = _ref38.kind,\n label = _ref38.label,\n src = _ref38.src,\n srcLang = _ref38.srcLang;\n var track = document.createElement(\"track\");\n track.default = isDefault || false;\n track.kind = kind;\n track.label = label;\n track.src = src;\n track.srclang = srcLang;\n if (track.default) selectedTrack.value = i;\n el.appendChild(track);\n });\n });\n\n var _watchIgnorable2 = watchIgnorable(currentTime, function (time) {\n var el = toValue(target);\n if (!el) return;\n el.currentTime = time;\n }),\n ignoreCurrentTimeUpdates = _watchIgnorable2.ignoreUpdates;\n\n var _watchIgnorable3 = watchIgnorable(playing, function (isPlaying) {\n var el = toValue(target);\n if (!el) return;\n isPlaying ? el.play() : el.pause();\n }),\n ignorePlayingUpdates = _watchIgnorable3.ignoreUpdates;\n\n useEventListener(target, \"timeupdate\", function () {\n return ignoreCurrentTimeUpdates(function () {\n return currentTime.value = toValue(target).currentTime;\n });\n });\n useEventListener(target, \"durationchange\", function () {\n return duration.value = toValue(target).duration;\n });\n useEventListener(target, \"progress\", function () {\n return buffered.value = timeRangeToArray(toValue(target).buffered);\n });\n useEventListener(target, \"seeking\", function () {\n return seeking.value = true;\n });\n useEventListener(target, \"seeked\", function () {\n return seeking.value = false;\n });\n useEventListener(target, [\"waiting\", \"loadstart\"], function () {\n waiting.value = true;\n ignorePlayingUpdates(function () {\n return playing.value = false;\n });\n });\n useEventListener(target, \"loadeddata\", function () {\n return waiting.value = false;\n });\n useEventListener(target, \"playing\", function () {\n waiting.value = false;\n ended.value = false;\n ignorePlayingUpdates(function () {\n return playing.value = true;\n });\n });\n useEventListener(target, \"ratechange\", function () {\n return rate.value = toValue(target).playbackRate;\n });\n useEventListener(target, \"stalled\", function () {\n return stalled.value = true;\n });\n useEventListener(target, \"ended\", function () {\n return ended.value = true;\n });\n useEventListener(target, \"pause\", function () {\n return ignorePlayingUpdates(function () {\n return playing.value = false;\n });\n });\n useEventListener(target, \"play\", function () {\n return ignorePlayingUpdates(function () {\n return playing.value = true;\n });\n });\n useEventListener(target, \"enterpictureinpicture\", function () {\n return isPictureInPicture.value = true;\n });\n useEventListener(target, \"leavepictureinpicture\", function () {\n return isPictureInPicture.value = false;\n });\n useEventListener(target, \"volumechange\", function () {\n var el = toValue(target);\n if (!el) return;\n volume.value = el.volume;\n muted.value = el.muted;\n });\n var listeners = [];\n var stop = watch([target], function () {\n var el = toValue(target);\n if (!el) return;\n stop();\n listeners[0] = useEventListener(el.textTracks, \"addtrack\", function () {\n return tracks.value = tracksToArray(el.textTracks);\n });\n listeners[1] = useEventListener(el.textTracks, \"removetrack\", function () {\n return tracks.value = tracksToArray(el.textTracks);\n });\n listeners[2] = useEventListener(el.textTracks, \"change\", function () {\n return tracks.value = tracksToArray(el.textTracks);\n });\n });\n tryOnScopeDispose(function () {\n return listeners.forEach(function (listener) {\n return listener();\n });\n });\n return {\n currentTime: currentTime,\n duration: duration,\n waiting: waiting,\n seeking: seeking,\n ended: ended,\n stalled: stalled,\n buffered: buffered,\n playing: playing,\n rate: rate,\n // Volume\n volume: volume,\n muted: muted,\n // Tracks\n tracks: tracks,\n selectedTrack: selectedTrack,\n enableTrack: enableTrack,\n disableTrack: disableTrack,\n // Picture in Picture\n supportsPictureInPicture: supportsPictureInPicture,\n togglePictureInPicture: togglePictureInPicture,\n isPictureInPicture: isPictureInPicture,\n // Events\n onSourceError: sourceErrorEvent.on\n };\n}\n\nfunction getMapVue2Compat() {\n var data = shallowReactive({});\n return {\n get: function get(key) {\n return data[key];\n },\n set: function set(key, value) {\n return _set2(data, key, value);\n },\n has: function has(key) {\n return hasOwn(data, key);\n },\n delete: function _delete(key) {\n return del(data, key);\n },\n clear: function clear() {\n Object.keys(data).forEach(function (key) {\n del(data, key);\n });\n }\n };\n}\n\nfunction useMemoize(resolver, options) {\n var initCache = function initCache() {\n if (options == null ? void 0 : options.cache) return shallowReactive(options.cache);\n if (isVue2) return getMapVue2Compat();\n return shallowReactive( /* @__PURE__ */new Map());\n };\n\n var cache = initCache();\n\n var generateKey = function generateKey() {\n for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {\n args[_key7] = arguments[_key7];\n }\n\n return (options == null ? void 0 : options.getKey) ? options.getKey.apply(options, args) : JSON.stringify(args);\n };\n\n var _loadData = function _loadData(key) {\n for (var _len8 = arguments.length, args = new Array(_len8 > 1 ? _len8 - 1 : 0), _key8 = 1; _key8 < _len8; _key8++) {\n args[_key8 - 1] = arguments[_key8];\n }\n\n cache.set(key, resolver.apply(void 0, args));\n return cache.get(key);\n };\n\n var loadData = function loadData() {\n for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {\n args[_key9] = arguments[_key9];\n }\n\n return _loadData.apply(void 0, [generateKey.apply(void 0, args)].concat(args));\n };\n\n var deleteData = function deleteData() {\n cache.delete(generateKey.apply(void 0, arguments));\n };\n\n var clearData = function clearData() {\n cache.clear();\n };\n\n var memoized = function memoized() {\n for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {\n args[_key10] = arguments[_key10];\n }\n\n var key = generateKey.apply(void 0, args);\n if (cache.has(key)) return cache.get(key);\n return _loadData.apply(void 0, [key].concat(args));\n };\n\n memoized.load = loadData;\n memoized.delete = deleteData;\n memoized.clear = clearData;\n memoized.generateKey = generateKey;\n memoized.cache = cache;\n return memoized;\n}\n\nfunction useMemory() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var memory = ref();\n var isSupported = useSupported(function () {\n return typeof performance !== \"undefined\" && \"memory\" in performance;\n });\n\n if (isSupported.value) {\n var _options$interval3 = options.interval,\n interval = _options$interval3 === void 0 ? 1e3 : _options$interval3;\n useIntervalFn(function () {\n memory.value = performance.memory;\n }, interval, {\n immediate: options.immediate,\n immediateCallback: options.immediateCallback\n });\n }\n\n return {\n isSupported: isSupported,\n memory: memory\n };\n}\n\nvar UseMouseBuiltinExtractors = {\n page: function page(event) {\n return [event.pageX, event.pageY];\n },\n client: function client(event) {\n return [event.clientX, event.clientY];\n },\n screen: function screen(event) {\n return [event.screenX, event.screenY];\n },\n movement: function movement(event) {\n return event instanceof Touch ? null : [event.movementX, event.movementY];\n }\n};\n\nfunction useMouse() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$type = options.type,\n type = _options$type === void 0 ? \"page\" : _options$type,\n _options$touch = options.touch,\n touch = _options$touch === void 0 ? true : _options$touch,\n _options$resetOnTouch = options.resetOnTouchEnds,\n resetOnTouchEnds = _options$resetOnTouch === void 0 ? false : _options$resetOnTouch,\n _options$initialValue5 = options.initialValue,\n initialValue = _options$initialValue5 === void 0 ? {\n x: 0,\n y: 0\n } : _options$initialValue5,\n _options$window25 = options.window,\n window = _options$window25 === void 0 ? defaultWindow : _options$window25,\n _options$target2 = options.target,\n target = _options$target2 === void 0 ? window : _options$target2,\n _options$scroll = options.scroll,\n scroll = _options$scroll === void 0 ? true : _options$scroll,\n eventFilter = options.eventFilter;\n var _prevMouseEvent = null;\n var x = ref(initialValue.x);\n var y = ref(initialValue.y);\n var sourceType = ref(null);\n var extractor = typeof type === \"function\" ? type : UseMouseBuiltinExtractors[type];\n\n var mouseHandler = function mouseHandler(event) {\n var result = extractor(event);\n _prevMouseEvent = event;\n\n if (result) {\n var _result = _slicedToArray(result, 2);\n\n x.value = _result[0];\n y.value = _result[1];\n sourceType.value = \"mouse\";\n }\n };\n\n var touchHandler = function touchHandler(event) {\n if (event.touches.length > 0) {\n var result = extractor(event.touches[0]);\n\n if (result) {\n var _result2 = _slicedToArray(result, 2);\n\n x.value = _result2[0];\n y.value = _result2[1];\n sourceType.value = \"touch\";\n }\n }\n };\n\n var scrollHandler = function scrollHandler() {\n if (!_prevMouseEvent || !window) return;\n var pos = extractor(_prevMouseEvent);\n\n if (_prevMouseEvent instanceof MouseEvent && pos) {\n x.value = pos[0] + window.scrollX;\n y.value = pos[1] + window.scrollY;\n }\n };\n\n var reset = function reset() {\n x.value = initialValue.x;\n y.value = initialValue.y;\n };\n\n var mouseHandlerWrapper = eventFilter ? function (event) {\n return eventFilter(function () {\n return mouseHandler(event);\n }, {});\n } : function (event) {\n return mouseHandler(event);\n };\n var touchHandlerWrapper = eventFilter ? function (event) {\n return eventFilter(function () {\n return touchHandler(event);\n }, {});\n } : function (event) {\n return touchHandler(event);\n };\n var scrollHandlerWrapper = eventFilter ? function () {\n return eventFilter(function () {\n return scrollHandler();\n }, {});\n } : function () {\n return scrollHandler();\n };\n\n if (target) {\n var listenerOptions = {\n passive: true\n };\n useEventListener(target, [\"mousemove\", \"dragover\"], mouseHandlerWrapper, listenerOptions);\n\n if (touch && type !== \"movement\") {\n useEventListener(target, [\"touchstart\", \"touchmove\"], touchHandlerWrapper, listenerOptions);\n if (resetOnTouchEnds) useEventListener(target, \"touchend\", reset, listenerOptions);\n }\n\n if (scroll && type === \"page\") useEventListener(window, \"scroll\", scrollHandlerWrapper, {\n passive: true\n });\n }\n\n return {\n x: x,\n y: y,\n sourceType: sourceType\n };\n}\n\nfunction useMouseInElement(target) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _options$handleOutsid = options.handleOutside,\n handleOutside = _options$handleOutsid === void 0 ? true : _options$handleOutsid,\n _options$window26 = options.window,\n window = _options$window26 === void 0 ? defaultWindow : _options$window26;\n var type = options.type || \"page\";\n\n var _useMouse = useMouse(options),\n x = _useMouse.x,\n y = _useMouse.y,\n sourceType = _useMouse.sourceType;\n\n var targetRef = ref(target != null ? target : window == null ? void 0 : window.document.body);\n var elementX = ref(0);\n var elementY = ref(0);\n var elementPositionX = ref(0);\n var elementPositionY = ref(0);\n var elementHeight = ref(0);\n var elementWidth = ref(0);\n var isOutside = ref(true);\n\n var stop = function stop() {};\n\n if (window) {\n stop = watch([targetRef, x, y], function () {\n var el = unrefElement(targetRef);\n if (!el) return;\n\n var _el$getBoundingClient = el.getBoundingClientRect(),\n left = _el$getBoundingClient.left,\n top = _el$getBoundingClient.top,\n width = _el$getBoundingClient.width,\n height = _el$getBoundingClient.height;\n\n elementPositionX.value = left + (type === \"page\" ? window.pageXOffset : 0);\n elementPositionY.value = top + (type === \"page\" ? window.pageYOffset : 0);\n elementHeight.value = height;\n elementWidth.value = width;\n var elX = x.value - elementPositionX.value;\n var elY = y.value - elementPositionY.value;\n isOutside.value = width === 0 || height === 0 || elX < 0 || elY < 0 || elX > width || elY > height;\n\n if (handleOutside || !isOutside.value) {\n elementX.value = elX;\n elementY.value = elY;\n }\n }, {\n immediate: true\n });\n useEventListener(document, \"mouseleave\", function () {\n isOutside.value = true;\n });\n }\n\n return {\n x: x,\n y: y,\n sourceType: sourceType,\n elementX: elementX,\n elementY: elementY,\n elementPositionX: elementPositionX,\n elementPositionY: elementPositionY,\n elementHeight: elementHeight,\n elementWidth: elementWidth,\n isOutside: isOutside,\n stop: stop\n };\n}\n\nfunction useMousePressed() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$touch2 = options.touch,\n touch = _options$touch2 === void 0 ? true : _options$touch2,\n _options$drag = options.drag,\n drag = _options$drag === void 0 ? true : _options$drag,\n _options$capture2 = options.capture,\n capture = _options$capture2 === void 0 ? false : _options$capture2,\n _options$initialValue6 = options.initialValue,\n initialValue = _options$initialValue6 === void 0 ? false : _options$initialValue6,\n _options$window27 = options.window,\n window = _options$window27 === void 0 ? defaultWindow : _options$window27;\n var pressed = ref(initialValue);\n var sourceType = ref(null);\n\n if (!window) {\n return {\n pressed: pressed,\n sourceType: sourceType\n };\n }\n\n var onPressed = function onPressed(srcType) {\n return function () {\n pressed.value = true;\n sourceType.value = srcType;\n };\n };\n\n var onReleased = function onReleased() {\n pressed.value = false;\n sourceType.value = null;\n };\n\n var target = computed(function () {\n return unrefElement(options.target) || window;\n });\n useEventListener(target, \"mousedown\", onPressed(\"mouse\"), {\n passive: true,\n capture: capture\n });\n useEventListener(window, \"mouseleave\", onReleased, {\n passive: true,\n capture: capture\n });\n useEventListener(window, \"mouseup\", onReleased, {\n passive: true,\n capture: capture\n });\n\n if (drag) {\n useEventListener(target, \"dragstart\", onPressed(\"mouse\"), {\n passive: true,\n capture: capture\n });\n useEventListener(window, \"drop\", onReleased, {\n passive: true,\n capture: capture\n });\n useEventListener(window, \"dragend\", onReleased, {\n passive: true,\n capture: capture\n });\n }\n\n if (touch) {\n useEventListener(target, \"touchstart\", onPressed(\"touch\"), {\n passive: true,\n capture: capture\n });\n useEventListener(window, \"touchend\", onReleased, {\n passive: true,\n capture: capture\n });\n useEventListener(window, \"touchcancel\", onReleased, {\n passive: true,\n capture: capture\n });\n }\n\n return {\n pressed: pressed,\n sourceType: sourceType\n };\n}\n\nfunction useNavigatorLanguage() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$window28 = options.window,\n window = _options$window28 === void 0 ? defaultWindow : _options$window28;\n var navigator = window == null ? void 0 : window.navigator;\n var isSupported = useSupported(function () {\n return navigator && \"language\" in navigator;\n });\n var language = ref(navigator == null ? void 0 : navigator.language);\n useEventListener(window, \"languagechange\", function () {\n if (navigator) language.value = navigator.language;\n });\n return {\n isSupported: isSupported,\n language: language\n };\n}\n\nfunction useNetwork() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$window29 = options.window,\n window = _options$window29 === void 0 ? defaultWindow : _options$window29;\n var navigator = window == null ? void 0 : window.navigator;\n var isSupported = useSupported(function () {\n return navigator && \"connection\" in navigator;\n });\n var isOnline = ref(true);\n var saveData = ref(false);\n var offlineAt = ref(void 0);\n var onlineAt = ref(void 0);\n var downlink = ref(void 0);\n var downlinkMax = ref(void 0);\n var rtt = ref(void 0);\n var effectiveType = ref(void 0);\n var type = ref(\"unknown\");\n var connection = isSupported.value && navigator.connection;\n\n function updateNetworkInformation() {\n if (!navigator) return;\n isOnline.value = navigator.onLine;\n offlineAt.value = isOnline.value ? void 0 : Date.now();\n onlineAt.value = isOnline.value ? Date.now() : void 0;\n\n if (connection) {\n downlink.value = connection.downlink;\n downlinkMax.value = connection.downlinkMax;\n effectiveType.value = connection.effectiveType;\n rtt.value = connection.rtt;\n saveData.value = connection.saveData;\n type.value = connection.type;\n }\n }\n\n if (window) {\n useEventListener(window, \"offline\", function () {\n isOnline.value = false;\n offlineAt.value = Date.now();\n });\n useEventListener(window, \"online\", function () {\n isOnline.value = true;\n onlineAt.value = Date.now();\n });\n }\n\n if (connection) useEventListener(connection, \"change\", updateNetworkInformation, false);\n updateNetworkInformation();\n return {\n isSupported: isSupported,\n isOnline: isOnline,\n saveData: saveData,\n offlineAt: offlineAt,\n onlineAt: onlineAt,\n downlink: downlink,\n downlinkMax: downlinkMax,\n effectiveType: effectiveType,\n rtt: rtt,\n type: type\n };\n}\n\nfunction useNow() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$controls2 = options.controls,\n exposeControls = _options$controls2 === void 0 ? false : _options$controls2,\n _options$interval4 = options.interval,\n interval = _options$interval4 === void 0 ? \"requestAnimationFrame\" : _options$interval4;\n var now = ref( /* @__PURE__ */new Date());\n\n var update = function update() {\n return now.value = /* @__PURE__ */new Date();\n };\n\n var controls = interval === \"requestAnimationFrame\" ? useRafFn(update, {\n immediate: true\n }) : useIntervalFn(update, interval, {\n immediate: true\n });\n\n if (exposeControls) {\n return _objectSpread({\n now: now\n }, controls);\n } else {\n return now;\n }\n}\n\nfunction useObjectUrl(object) {\n var url = ref();\n\n var release = function release() {\n if (url.value) URL.revokeObjectURL(url.value);\n url.value = void 0;\n };\n\n watch(function () {\n return toValue(object);\n }, function (newObject) {\n release();\n if (newObject) url.value = URL.createObjectURL(newObject);\n }, {\n immediate: true\n });\n tryOnScopeDispose(release);\n return readonly(url);\n}\n\nfunction useClamp(value, min, max) {\n if (typeof value === \"function\" || isReadonly(value)) return computed(function () {\n return clamp(toValue(value), toValue(min), toValue(max));\n });\n\n var _value = ref(value);\n\n return computed({\n get: function get() {\n return _value.value = clamp(_value.value, toValue(min), toValue(max));\n },\n set: function set(value2) {\n _value.value = clamp(value2, toValue(min), toValue(max));\n }\n });\n}\n\nfunction useOffsetPagination(options) {\n var _options$total = options.total,\n total = _options$total === void 0 ? Number.POSITIVE_INFINITY : _options$total,\n _options$pageSize = options.pageSize,\n pageSize = _options$pageSize === void 0 ? 10 : _options$pageSize,\n _options$page = options.page,\n page = _options$page === void 0 ? 1 : _options$page,\n _options$onPageChange = options.onPageChange,\n onPageChange = _options$onPageChange === void 0 ? noop : _options$onPageChange,\n _options$onPageSizeCh = options.onPageSizeChange,\n onPageSizeChange = _options$onPageSizeCh === void 0 ? noop : _options$onPageSizeCh,\n _options$onPageCountC = options.onPageCountChange,\n onPageCountChange = _options$onPageCountC === void 0 ? noop : _options$onPageCountC;\n var currentPageSize = useClamp(pageSize, 1, Number.POSITIVE_INFINITY);\n var pageCount = computed(function () {\n return Math.max(1, Math.ceil(toValue(total) / toValue(currentPageSize)));\n });\n var currentPage = useClamp(page, 1, pageCount);\n var isFirstPage = computed(function () {\n return currentPage.value === 1;\n });\n var isLastPage = computed(function () {\n return currentPage.value === pageCount.value;\n });\n\n if (isRef(page)) {\n syncRef(page, currentPage, {\n direction: isReadonly(page) ? \"ltr\" : \"both\"\n });\n }\n\n if (isRef(pageSize)) {\n syncRef(pageSize, currentPageSize, {\n direction: isReadonly(pageSize) ? \"ltr\" : \"both\"\n });\n }\n\n function prev() {\n currentPage.value--;\n }\n\n function next() {\n currentPage.value++;\n }\n\n var returnValue = {\n currentPage: currentPage,\n currentPageSize: currentPageSize,\n pageCount: pageCount,\n isFirstPage: isFirstPage,\n isLastPage: isLastPage,\n prev: prev,\n next: next\n };\n watch(currentPage, function () {\n onPageChange(reactive(returnValue));\n });\n watch(currentPageSize, function () {\n onPageSizeChange(reactive(returnValue));\n });\n watch(pageCount, function () {\n onPageCountChange(reactive(returnValue));\n });\n return returnValue;\n}\n\nfunction useOnline() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n var _useNetwork = useNetwork(options),\n isOnline = _useNetwork.isOnline;\n\n return isOnline;\n}\n\nfunction usePageLeave() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$window30 = options.window,\n window = _options$window30 === void 0 ? defaultWindow : _options$window30;\n var isLeft = ref(false);\n\n var handler = function handler(event) {\n if (!window) return;\n event = event || window.event;\n var from = event.relatedTarget || event.toElement;\n isLeft.value = !from;\n };\n\n if (window) {\n useEventListener(window, \"mouseout\", handler, {\n passive: true\n });\n useEventListener(window.document, \"mouseleave\", handler, {\n passive: true\n });\n useEventListener(window.document, \"mouseenter\", handler, {\n passive: true\n });\n }\n\n return isLeft;\n}\n\nfunction useScreenOrientation() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$window31 = options.window,\n window = _options$window31 === void 0 ? defaultWindow : _options$window31;\n var isSupported = useSupported(function () {\n return window && \"screen\" in window && \"orientation\" in window.screen;\n });\n var screenOrientation = isSupported.value ? window.screen.orientation : {};\n var orientation = ref(screenOrientation.type);\n var angle = ref(screenOrientation.angle || 0);\n\n if (isSupported.value) {\n useEventListener(window, \"orientationchange\", function () {\n orientation.value = screenOrientation.type;\n angle.value = screenOrientation.angle;\n });\n }\n\n var lockOrientation = function lockOrientation(type) {\n if (isSupported.value && typeof screenOrientation.lock === \"function\") return screenOrientation.lock(type);\n return Promise.reject(new Error(\"Not supported\"));\n };\n\n var unlockOrientation = function unlockOrientation() {\n if (isSupported.value && typeof screenOrientation.unlock === \"function\") screenOrientation.unlock();\n };\n\n return {\n isSupported: isSupported,\n orientation: orientation,\n angle: angle,\n lockOrientation: lockOrientation,\n unlockOrientation: unlockOrientation\n };\n}\n\nfunction useParallax(target) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _options$deviceOrient = options.deviceOrientationTiltAdjust,\n deviceOrientationTiltAdjust = _options$deviceOrient === void 0 ? function (i) {\n return i;\n } : _options$deviceOrient,\n _options$deviceOrient2 = options.deviceOrientationRollAdjust,\n deviceOrientationRollAdjust = _options$deviceOrient2 === void 0 ? function (i) {\n return i;\n } : _options$deviceOrient2,\n _options$mouseTiltAdj = options.mouseTiltAdjust,\n mouseTiltAdjust = _options$mouseTiltAdj === void 0 ? function (i) {\n return i;\n } : _options$mouseTiltAdj,\n _options$mouseRollAdj = options.mouseRollAdjust,\n mouseRollAdjust = _options$mouseRollAdj === void 0 ? function (i) {\n return i;\n } : _options$mouseRollAdj,\n _options$window32 = options.window,\n window = _options$window32 === void 0 ? defaultWindow : _options$window32;\n var orientation = reactive(useDeviceOrientation({\n window: window\n }));\n var screenOrientation = reactive(useScreenOrientation({\n window: window\n }));\n\n var _useMouseInElement = useMouseInElement(target, {\n handleOutside: false,\n window: window\n }),\n x = _useMouseInElement.elementX,\n y = _useMouseInElement.elementY,\n width = _useMouseInElement.elementWidth,\n height = _useMouseInElement.elementHeight;\n\n var source = computed(function () {\n if (orientation.isSupported && (orientation.alpha != null && orientation.alpha !== 0 || orientation.gamma != null && orientation.gamma !== 0)) return \"deviceOrientation\";\n return \"mouse\";\n });\n var roll = computed(function () {\n if (source.value === \"deviceOrientation\") {\n var value;\n\n switch (screenOrientation.orientation) {\n case \"landscape-primary\":\n value = orientation.gamma / 90;\n break;\n\n case \"landscape-secondary\":\n value = -orientation.gamma / 90;\n break;\n\n case \"portrait-primary\":\n value = -orientation.beta / 90;\n break;\n\n case \"portrait-secondary\":\n value = orientation.beta / 90;\n break;\n\n default:\n value = -orientation.beta / 90;\n }\n\n return deviceOrientationRollAdjust(value);\n } else {\n var _value2 = -(y.value - height.value / 2) / height.value;\n\n return mouseRollAdjust(_value2);\n }\n });\n var tilt = computed(function () {\n if (source.value === \"deviceOrientation\") {\n var value;\n\n switch (screenOrientation.orientation) {\n case \"landscape-primary\":\n value = orientation.beta / 90;\n break;\n\n case \"landscape-secondary\":\n value = -orientation.beta / 90;\n break;\n\n case \"portrait-primary\":\n value = orientation.gamma / 90;\n break;\n\n case \"portrait-secondary\":\n value = -orientation.gamma / 90;\n break;\n\n default:\n value = orientation.gamma / 90;\n }\n\n return deviceOrientationTiltAdjust(value);\n } else {\n var _value3 = (x.value - width.value / 2) / width.value;\n\n return mouseTiltAdjust(_value3);\n }\n });\n return {\n roll: roll,\n tilt: tilt,\n source: source\n };\n}\n\nfunction useParentElement() {\n var element = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : useCurrentElement();\n var parentElement = shallowRef();\n\n var update = function update() {\n var el = unrefElement(element);\n if (el) parentElement.value = el.parentElement;\n };\n\n tryOnMounted(update);\n watch(function () {\n return toValue(element);\n }, update);\n return parentElement;\n}\n\nfunction usePerformanceObserver(options, callback) {\n var _options$window33 = options.window,\n window = _options$window33 === void 0 ? defaultWindow : _options$window33,\n _options$immediate8 = options.immediate,\n immediate = _options$immediate8 === void 0 ? true : _options$immediate8,\n performanceOptions = _objectWithoutProperties(options, [\"window\", \"immediate\"]);\n\n var isSupported = useSupported(function () {\n return window && \"PerformanceObserver\" in window;\n });\n var observer;\n\n var stop = function stop() {\n observer == null ? void 0 : observer.disconnect();\n };\n\n var start = function start() {\n if (isSupported.value) {\n stop();\n observer = new PerformanceObserver(callback);\n observer.observe(performanceOptions);\n }\n };\n\n tryOnScopeDispose(stop);\n if (immediate) start();\n return {\n isSupported: isSupported,\n start: start,\n stop: stop\n };\n}\n\nvar defaultState = {\n x: 0,\n y: 0,\n pointerId: 0,\n pressure: 0,\n tiltX: 0,\n tiltY: 0,\n width: 0,\n height: 0,\n twist: 0,\n pointerType: null\n};\nvar keys = /* @__PURE__ */Object.keys(defaultState);\n\nfunction usePointer() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$target3 = options.target,\n target = _options$target3 === void 0 ? defaultWindow : _options$target3;\n var isInside = ref(false);\n var state = ref(options.initialValue || {});\n Object.assign(state.value, defaultState, state.value);\n\n var handler = function handler(event) {\n isInside.value = true;\n if (options.pointerTypes && !options.pointerTypes.includes(event.pointerType)) return;\n state.value = objectPick(event, keys, false);\n };\n\n if (target) {\n var listenerOptions = {\n passive: true\n };\n useEventListener(target, [\"pointerdown\", \"pointermove\", \"pointerup\"], handler, listenerOptions);\n useEventListener(target, \"pointerleave\", function () {\n return isInside.value = false;\n }, listenerOptions);\n }\n\n return _objectSpread(_objectSpread({}, toRefs(state)), {}, {\n isInside: isInside\n });\n}\n\nfunction usePointerLock(target) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _options$document8 = options.document,\n document = _options$document8 === void 0 ? defaultDocument : _options$document8;\n var isSupported = useSupported(function () {\n return document && \"pointerLockElement\" in document;\n });\n var element = ref();\n var triggerElement = ref();\n var targetElement;\n\n if (isSupported.value) {\n useEventListener(document, \"pointerlockchange\", function () {\n var _a;\n\n var currentElement = (_a = document.pointerLockElement) != null ? _a : element.value;\n\n if (targetElement && currentElement === targetElement) {\n element.value = document.pointerLockElement;\n if (!element.value) targetElement = triggerElement.value = null;\n }\n });\n useEventListener(document, \"pointerlockerror\", function () {\n var _a;\n\n var currentElement = (_a = document.pointerLockElement) != null ? _a : element.value;\n\n if (targetElement && currentElement === targetElement) {\n var action = document.pointerLockElement ? \"release\" : \"acquire\";\n throw new Error(\"Failed to \".concat(action, \" pointer lock.\"));\n }\n });\n }\n\n function lock(_x10) {\n return _lock.apply(this, arguments);\n }\n\n function _lock() {\n _lock = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee29(e) {\n var _a;\n\n return regeneratorRuntime.wrap(function _callee29$(_context29) {\n while (1) {\n switch (_context29.prev = _context29.next) {\n case 0:\n if (isSupported.value) {\n _context29.next = 2;\n break;\n }\n\n throw new Error(\"Pointer Lock API is not supported by your browser.\");\n\n case 2:\n triggerElement.value = e instanceof Event ? e.currentTarget : null;\n targetElement = e instanceof Event ? (_a = unrefElement(target)) != null ? _a : triggerElement.value : unrefElement(e);\n\n if (targetElement) {\n _context29.next = 6;\n break;\n }\n\n throw new Error(\"Target element undefined.\");\n\n case 6:\n targetElement.requestPointerLock();\n _context29.next = 9;\n return until(element).toBe(targetElement);\n\n case 9:\n return _context29.abrupt(\"return\", _context29.sent);\n\n case 10:\n case \"end\":\n return _context29.stop();\n }\n }\n }, _callee29);\n }));\n return _lock.apply(this, arguments);\n }\n\n function unlock() {\n return _unlock.apply(this, arguments);\n }\n\n function _unlock() {\n _unlock = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee30() {\n return regeneratorRuntime.wrap(function _callee30$(_context30) {\n while (1) {\n switch (_context30.prev = _context30.next) {\n case 0:\n if (element.value) {\n _context30.next = 2;\n break;\n }\n\n return _context30.abrupt(\"return\", false);\n\n case 2:\n document.exitPointerLock();\n _context30.next = 5;\n return until(element).toBeNull();\n\n case 5:\n return _context30.abrupt(\"return\", true);\n\n case 6:\n case \"end\":\n return _context30.stop();\n }\n }\n }, _callee30);\n }));\n return _unlock.apply(this, arguments);\n }\n\n return {\n isSupported: isSupported,\n element: element,\n triggerElement: triggerElement,\n lock: lock,\n unlock: unlock\n };\n}\n\nfunction usePointerSwipe(target) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var targetRef = toRef(target);\n var _options$threshold3 = options.threshold,\n threshold = _options$threshold3 === void 0 ? 50 : _options$threshold3,\n onSwipe = options.onSwipe,\n onSwipeEnd = options.onSwipeEnd,\n onSwipeStart = options.onSwipeStart,\n _options$disableTextS = options.disableTextSelect,\n disableTextSelect = _options$disableTextS === void 0 ? false : _options$disableTextS;\n var posStart = reactive({\n x: 0,\n y: 0\n });\n\n var updatePosStart = function updatePosStart(x, y) {\n posStart.x = x;\n posStart.y = y;\n };\n\n var posEnd = reactive({\n x: 0,\n y: 0\n });\n\n var updatePosEnd = function updatePosEnd(x, y) {\n posEnd.x = x;\n posEnd.y = y;\n };\n\n var distanceX = computed(function () {\n return posStart.x - posEnd.x;\n });\n var distanceY = computed(function () {\n return posStart.y - posEnd.y;\n });\n var max = Math.max,\n abs = Math.abs;\n var isThresholdExceeded = computed(function () {\n return max(abs(distanceX.value), abs(distanceY.value)) >= threshold;\n });\n var isSwiping = ref(false);\n var isPointerDown = ref(false);\n var direction = computed(function () {\n if (!isThresholdExceeded.value) return \"none\";\n\n if (abs(distanceX.value) > abs(distanceY.value)) {\n return distanceX.value > 0 ? \"left\" : \"right\";\n } else {\n return distanceY.value > 0 ? \"up\" : \"down\";\n }\n });\n\n var eventIsAllowed = function eventIsAllowed(e) {\n var _a, _b, _c;\n\n var isReleasingButton = e.buttons === 0;\n var isPrimaryButton = e.buttons === 1;\n return (_c = (_b = (_a = options.pointerTypes) == null ? void 0 : _a.includes(e.pointerType)) != null ? _b : isReleasingButton || isPrimaryButton) != null ? _c : true;\n };\n\n var stops = [useEventListener(target, \"pointerdown\", function (e) {\n if (!eventIsAllowed(e)) return;\n isPointerDown.value = true;\n var eventTarget = e.target;\n eventTarget == null ? void 0 : eventTarget.setPointerCapture(e.pointerId);\n var x = e.clientX,\n y = e.clientY;\n updatePosStart(x, y);\n updatePosEnd(x, y);\n onSwipeStart == null ? void 0 : onSwipeStart(e);\n }), useEventListener(target, \"pointermove\", function (e) {\n if (!eventIsAllowed(e)) return;\n if (!isPointerDown.value) return;\n var x = e.clientX,\n y = e.clientY;\n updatePosEnd(x, y);\n if (!isSwiping.value && isThresholdExceeded.value) isSwiping.value = true;\n if (isSwiping.value) onSwipe == null ? void 0 : onSwipe(e);\n }), useEventListener(target, \"pointerup\", function (e) {\n if (!eventIsAllowed(e)) return;\n if (isSwiping.value) onSwipeEnd == null ? void 0 : onSwipeEnd(e, direction.value);\n isPointerDown.value = false;\n isSwiping.value = false;\n })];\n tryOnMounted(function () {\n var _a, _b, _c, _d, _e, _f, _g, _h;\n\n (_b = (_a = targetRef.value) == null ? void 0 : _a.style) == null ? void 0 : _b.setProperty(\"touch-action\", \"none\");\n\n if (disableTextSelect) {\n (_d = (_c = targetRef.value) == null ? void 0 : _c.style) == null ? void 0 : _d.setProperty(\"-webkit-user-select\", \"none\");\n (_f = (_e = targetRef.value) == null ? void 0 : _e.style) == null ? void 0 : _f.setProperty(\"-ms-user-select\", \"none\");\n (_h = (_g = targetRef.value) == null ? void 0 : _g.style) == null ? void 0 : _h.setProperty(\"user-select\", \"none\");\n }\n });\n\n var stop = function stop() {\n return stops.forEach(function (s) {\n return s();\n });\n };\n\n return {\n isSwiping: readonly(isSwiping),\n direction: readonly(direction),\n posStart: readonly(posStart),\n posEnd: readonly(posEnd),\n distanceX: distanceX,\n distanceY: distanceY,\n stop: stop\n };\n}\n\nfunction usePreferredColorScheme(options) {\n var isLight = useMediaQuery(\"(prefers-color-scheme: light)\", options);\n var isDark = useMediaQuery(\"(prefers-color-scheme: dark)\", options);\n return computed(function () {\n if (isDark.value) return \"dark\";\n if (isLight.value) return \"light\";\n return \"no-preference\";\n });\n}\n\nfunction usePreferredContrast(options) {\n var isMore = useMediaQuery(\"(prefers-contrast: more)\", options);\n var isLess = useMediaQuery(\"(prefers-contrast: less)\", options);\n var isCustom = useMediaQuery(\"(prefers-contrast: custom)\", options);\n return computed(function () {\n if (isMore.value) return \"more\";\n if (isLess.value) return \"less\";\n if (isCustom.value) return \"custom\";\n return \"no-preference\";\n });\n}\n\nfunction usePreferredLanguages() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$window34 = options.window,\n window = _options$window34 === void 0 ? defaultWindow : _options$window34;\n if (!window) return ref([\"en\"]);\n var navigator = window.navigator;\n var value = ref(navigator.languages);\n useEventListener(window, \"languagechange\", function () {\n value.value = navigator.languages;\n });\n return value;\n}\n\nfunction usePreferredReducedMotion(options) {\n var isReduced = useMediaQuery(\"(prefers-reduced-motion: reduce)\", options);\n return computed(function () {\n if (isReduced.value) return \"reduce\";\n return \"no-preference\";\n });\n}\n\nfunction usePrevious(value, initialValue) {\n var previous = shallowRef(initialValue);\n watch(toRef(value), function (_, oldValue) {\n previous.value = oldValue;\n }, {\n flush: \"sync\"\n });\n return readonly(previous);\n}\n\nvar topVarName = \"--vueuse-safe-area-top\";\nvar rightVarName = \"--vueuse-safe-area-right\";\nvar bottomVarName = \"--vueuse-safe-area-bottom\";\nvar leftVarName = \"--vueuse-safe-area-left\";\n\nfunction useScreenSafeArea() {\n var top = ref(\"\");\n var right = ref(\"\");\n var bottom = ref(\"\");\n var left = ref(\"\");\n\n if (isClient) {\n var topCssVar = useCssVar(topVarName);\n var rightCssVar = useCssVar(rightVarName);\n var bottomCssVar = useCssVar(bottomVarName);\n var leftCssVar = useCssVar(leftVarName);\n topCssVar.value = \"env(safe-area-inset-top, 0px)\";\n rightCssVar.value = \"env(safe-area-inset-right, 0px)\";\n bottomCssVar.value = \"env(safe-area-inset-bottom, 0px)\";\n leftCssVar.value = \"env(safe-area-inset-left, 0px)\";\n update();\n useEventListener(\"resize\", useDebounceFn(update));\n }\n\n function update() {\n top.value = getValue(topVarName);\n right.value = getValue(rightVarName);\n bottom.value = getValue(bottomVarName);\n left.value = getValue(leftVarName);\n }\n\n return {\n top: top,\n right: right,\n bottom: bottom,\n left: left,\n update: update\n };\n}\n\nfunction getValue(position) {\n return getComputedStyle(document.documentElement).getPropertyValue(position);\n}\n\nfunction useScriptTag(src) {\n var onLoaded = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var _options$immediate9 = options.immediate,\n immediate = _options$immediate9 === void 0 ? true : _options$immediate9,\n _options$manual = options.manual,\n manual = _options$manual === void 0 ? false : _options$manual,\n _options$type2 = options.type,\n type = _options$type2 === void 0 ? \"text/javascript\" : _options$type2,\n _options$async = options.async,\n async = _options$async === void 0 ? true : _options$async,\n crossOrigin = options.crossOrigin,\n referrerPolicy = options.referrerPolicy,\n noModule = options.noModule,\n defer = options.defer,\n _options$document9 = options.document,\n document = _options$document9 === void 0 ? defaultDocument : _options$document9,\n _options$attrs = options.attrs,\n attrs = _options$attrs === void 0 ? {} : _options$attrs;\n var scriptTag = ref(null);\n var _promise = null;\n\n var loadScript = function loadScript(waitForScriptLoad) {\n return new Promise(function (resolve, reject) {\n var resolveWithElement = function resolveWithElement(el2) {\n scriptTag.value = el2;\n resolve(el2);\n return el2;\n };\n\n if (!document) {\n resolve(false);\n return;\n }\n\n var shouldAppend = false;\n var el = document.querySelector(\"script[src=\\\"\".concat(toValue(src), \"\\\"]\"));\n\n if (!el) {\n el = document.createElement(\"script\");\n el.type = type;\n el.async = async;\n el.src = toValue(src);\n if (defer) el.defer = defer;\n if (crossOrigin) el.crossOrigin = crossOrigin;\n if (noModule) el.noModule = noModule;\n if (referrerPolicy) el.referrerPolicy = referrerPolicy;\n Object.entries(attrs).forEach(function (_ref39) {\n var _ref40 = _slicedToArray(_ref39, 2),\n name = _ref40[0],\n value = _ref40[1];\n\n return el == null ? void 0 : el.setAttribute(name, value);\n });\n shouldAppend = true;\n } else if (el.hasAttribute(\"data-loaded\")) {\n resolveWithElement(el);\n }\n\n el.addEventListener(\"error\", function (event) {\n return reject(event);\n });\n el.addEventListener(\"abort\", function (event) {\n return reject(event);\n });\n el.addEventListener(\"load\", function () {\n el.setAttribute(\"data-loaded\", \"true\");\n onLoaded(el);\n resolveWithElement(el);\n });\n if (shouldAppend) el = document.head.appendChild(el);\n if (!waitForScriptLoad) resolveWithElement(el);\n });\n };\n\n var load = function load() {\n var waitForScriptLoad = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n if (!_promise) _promise = loadScript(waitForScriptLoad);\n return _promise;\n };\n\n var unload = function unload() {\n if (!document) return;\n _promise = null;\n if (scriptTag.value) scriptTag.value = null;\n var el = document.querySelector(\"script[src=\\\"\".concat(toValue(src), \"\\\"]\"));\n if (el) document.head.removeChild(el);\n };\n\n if (immediate && !manual) tryOnMounted(load);\n if (!manual) tryOnUnmounted(unload);\n return {\n scriptTag: scriptTag,\n load: load,\n unload: unload\n };\n}\n\nfunction checkOverflowScroll(ele) {\n var style = window.getComputedStyle(ele);\n\n if (style.overflowX === \"scroll\" || style.overflowY === \"scroll\" || style.overflowX === \"auto\" && ele.clientWidth < ele.scrollWidth || style.overflowY === \"auto\" && ele.clientHeight < ele.scrollHeight) {\n return true;\n } else {\n var parent = ele.parentNode;\n if (!parent || parent.tagName === \"BODY\") return false;\n return checkOverflowScroll(parent);\n }\n}\n\nfunction preventDefault(rawEvent) {\n var e = rawEvent || window.event;\n var _target = e.target;\n if (checkOverflowScroll(_target)) return false;\n if (e.touches.length > 1) return true;\n if (e.preventDefault) e.preventDefault();\n return false;\n}\n\nvar elInitialOverflow = /* @__PURE__ */new WeakMap();\n\nfunction useScrollLock(element) {\n var initialState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var isLocked = ref(initialState);\n var stopTouchMoveListener = null;\n var initialOverflow = \"\";\n watch(toRef(element), function (el) {\n var target = resolveElement(toValue(el));\n\n if (target) {\n var ele = target;\n if (!elInitialOverflow.get(ele)) elInitialOverflow.set(ele, ele.style.overflow);\n if (ele.style.overflow !== \"hidden\") initialOverflow = ele.style.overflow;\n if (ele.style.overflow === \"hidden\") return isLocked.value = true;\n if (isLocked.value) return ele.style.overflow = \"hidden\";\n }\n }, {\n immediate: true\n });\n\n var lock = function lock() {\n var el = resolveElement(toValue(element));\n if (!el || isLocked.value) return;\n\n if (isIOS) {\n stopTouchMoveListener = useEventListener(el, \"touchmove\", function (e) {\n preventDefault(e);\n }, {\n passive: false\n });\n }\n\n el.style.overflow = \"hidden\";\n isLocked.value = true;\n };\n\n var unlock = function unlock() {\n var el = resolveElement(toValue(element));\n if (!el || !isLocked.value) return;\n isIOS && (stopTouchMoveListener == null ? void 0 : stopTouchMoveListener());\n el.style.overflow = initialOverflow;\n elInitialOverflow.delete(el);\n isLocked.value = false;\n };\n\n tryOnScopeDispose(unlock);\n return computed({\n get: function get() {\n return isLocked.value;\n },\n set: function set(v) {\n if (v) lock();else unlock();\n }\n });\n}\n\nfunction useSessionStorage(key, initialValue) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var _options$window35 = options.window,\n window = _options$window35 === void 0 ? defaultWindow : _options$window35;\n return useStorage(key, initialValue, window == null ? void 0 : window.sessionStorage, options);\n}\n\nfunction useShare() {\n var shareOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _options$navigator9 = options.navigator,\n navigator = _options$navigator9 === void 0 ? defaultNavigator : _options$navigator9;\n var _navigator = navigator;\n var isSupported = useSupported(function () {\n return _navigator && \"canShare\" in _navigator;\n });\n\n var share = /*#__PURE__*/function () {\n var _ref41 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee31() {\n var overrideOptions,\n data,\n granted,\n _args31 = arguments;\n return regeneratorRuntime.wrap(function _callee31$(_context31) {\n while (1) {\n switch (_context31.prev = _context31.next) {\n case 0:\n overrideOptions = _args31.length > 0 && _args31[0] !== undefined ? _args31[0] : {};\n\n if (!isSupported.value) {\n _context31.next = 7;\n break;\n }\n\n data = _objectSpread(_objectSpread({}, toValue(shareOptions)), toValue(overrideOptions));\n granted = true;\n if (data.files && _navigator.canShare) granted = _navigator.canShare({\n files: data.files\n });\n\n if (!granted) {\n _context31.next = 7;\n break;\n }\n\n return _context31.abrupt(\"return\", _navigator.share(data));\n\n case 7:\n case \"end\":\n return _context31.stop();\n }\n }\n }, _callee31);\n }));\n\n return function share() {\n return _ref41.apply(this, arguments);\n };\n }();\n\n return {\n isSupported: isSupported,\n share: share\n };\n}\n\nvar defaultSortFn = function defaultSortFn(source, compareFn) {\n return source.sort(compareFn);\n};\n\nvar defaultCompare = function defaultCompare(a, b) {\n return a - b;\n};\n\nfunction useSorted() {\n var _a, _b, _c, _d;\n\n for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {\n args[_key11] = arguments[_key11];\n }\n\n var source = args[0];\n var compareFn = defaultCompare;\n var options = {};\n\n if (args.length === 2) {\n if (_typeof(args[1]) === \"object\") {\n options = args[1];\n compareFn = (_a = options.compareFn) != null ? _a : defaultCompare;\n } else {\n compareFn = (_b = args[1]) != null ? _b : defaultCompare;\n }\n } else if (args.length > 2) {\n compareFn = (_c = args[1]) != null ? _c : defaultCompare;\n options = (_d = args[2]) != null ? _d : {};\n }\n\n var _options6 = options,\n _options6$dirty = _options6.dirty,\n dirty = _options6$dirty === void 0 ? false : _options6$dirty,\n _options6$sortFn = _options6.sortFn,\n sortFn = _options6$sortFn === void 0 ? defaultSortFn : _options6$sortFn;\n if (!dirty) return computed(function () {\n return sortFn(_toConsumableArray(toValue(source)), compareFn);\n });\n watchEffect(function () {\n var result = sortFn(toValue(source), compareFn);\n if (isRef(source)) source.value = result;else source.splice.apply(source, [0, source.length].concat(_toConsumableArray(result)));\n });\n return source;\n}\n\nfunction useSpeechRecognition() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$interimResul = options.interimResults,\n interimResults = _options$interimResul === void 0 ? true : _options$interimResul,\n _options$continuous = options.continuous,\n continuous = _options$continuous === void 0 ? true : _options$continuous,\n _options$window36 = options.window,\n window = _options$window36 === void 0 ? defaultWindow : _options$window36;\n var lang = toRef(options.lang || \"en-US\");\n var isListening = ref(false);\n var isFinal = ref(false);\n var result = ref(\"\");\n var error = shallowRef(void 0);\n\n var toggle = function toggle() {\n var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !isListening.value;\n isListening.value = value;\n };\n\n var start = function start() {\n isListening.value = true;\n };\n\n var stop = function stop() {\n isListening.value = false;\n };\n\n var SpeechRecognition = window && (window.SpeechRecognition || window.webkitSpeechRecognition);\n var isSupported = useSupported(function () {\n return SpeechRecognition;\n });\n var recognition;\n\n if (isSupported.value) {\n recognition = new SpeechRecognition();\n recognition.continuous = continuous;\n recognition.interimResults = interimResults;\n recognition.lang = toValue(lang);\n\n recognition.onstart = function () {\n isFinal.value = false;\n };\n\n watch(lang, function (lang2) {\n if (recognition && !isListening.value) recognition.lang = lang2;\n });\n\n recognition.onresult = function (event) {\n var transcript = Array.from(event.results).map(function (result2) {\n isFinal.value = result2.isFinal;\n return result2[0];\n }).map(function (result2) {\n return result2.transcript;\n }).join(\"\");\n result.value = transcript;\n error.value = void 0;\n };\n\n recognition.onerror = function (event) {\n error.value = event;\n };\n\n recognition.onend = function () {\n isListening.value = false;\n recognition.lang = toValue(lang);\n };\n\n watch(isListening, function () {\n if (isListening.value) recognition.start();else recognition.stop();\n });\n }\n\n tryOnScopeDispose(function () {\n isListening.value = false;\n });\n return {\n isSupported: isSupported,\n isListening: isListening,\n isFinal: isFinal,\n recognition: recognition,\n result: result,\n error: error,\n toggle: toggle,\n start: start,\n stop: stop\n };\n}\n\nfunction useSpeechSynthesis(text) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _options$pitch = options.pitch,\n pitch = _options$pitch === void 0 ? 1 : _options$pitch,\n _options$rate = options.rate,\n rate = _options$rate === void 0 ? 1 : _options$rate,\n _options$volume = options.volume,\n volume = _options$volume === void 0 ? 1 : _options$volume,\n _options$window37 = options.window,\n window = _options$window37 === void 0 ? defaultWindow : _options$window37;\n var synth = window && window.speechSynthesis;\n var isSupported = useSupported(function () {\n return synth;\n });\n var isPlaying = ref(false);\n var status = ref(\"init\");\n var spokenText = toRef(text || \"\");\n var lang = toRef(options.lang || \"en-US\");\n var error = shallowRef(void 0);\n\n var toggle = function toggle() {\n var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !isPlaying.value;\n isPlaying.value = value;\n };\n\n var bindEventsForUtterance = function bindEventsForUtterance(utterance2) {\n utterance2.lang = toValue(lang);\n utterance2.voice = toValue(options.voice) || null;\n utterance2.pitch = toValue(pitch);\n utterance2.rate = toValue(rate);\n utterance2.volume = volume;\n\n utterance2.onstart = function () {\n isPlaying.value = true;\n status.value = \"play\";\n };\n\n utterance2.onpause = function () {\n isPlaying.value = false;\n status.value = \"pause\";\n };\n\n utterance2.onresume = function () {\n isPlaying.value = true;\n status.value = \"play\";\n };\n\n utterance2.onend = function () {\n isPlaying.value = false;\n status.value = \"end\";\n };\n\n utterance2.onerror = function (event) {\n error.value = event;\n };\n };\n\n var utterance = computed(function () {\n isPlaying.value = false;\n status.value = \"init\";\n var newUtterance = new SpeechSynthesisUtterance(spokenText.value);\n bindEventsForUtterance(newUtterance);\n return newUtterance;\n });\n\n var speak = function speak() {\n synth.cancel();\n utterance && synth.speak(utterance.value);\n };\n\n var stop = function stop() {\n synth.cancel();\n isPlaying.value = false;\n };\n\n if (isSupported.value) {\n bindEventsForUtterance(utterance.value);\n watch(lang, function (lang2) {\n if (utterance.value && !isPlaying.value) utterance.value.lang = lang2;\n });\n\n if (options.voice) {\n watch(options.voice, function () {\n synth.cancel();\n });\n }\n\n watch(isPlaying, function () {\n if (isPlaying.value) synth.resume();else synth.pause();\n });\n }\n\n tryOnScopeDispose(function () {\n isPlaying.value = false;\n });\n return {\n isSupported: isSupported,\n isPlaying: isPlaying,\n status: status,\n utterance: utterance,\n error: error,\n stop: stop,\n toggle: toggle,\n speak: speak\n };\n}\n\nfunction useStepper(steps, initialStep) {\n var stepsRef = ref(steps);\n var stepNames = computed(function () {\n return Array.isArray(stepsRef.value) ? stepsRef.value : Object.keys(stepsRef.value);\n });\n var index = ref(stepNames.value.indexOf(initialStep != null ? initialStep : stepNames.value[0]));\n var current = computed(function () {\n return at(index.value);\n });\n var isFirst = computed(function () {\n return index.value === 0;\n });\n var isLast = computed(function () {\n return index.value === stepNames.value.length - 1;\n });\n var next = computed(function () {\n return stepNames.value[index.value + 1];\n });\n var previous = computed(function () {\n return stepNames.value[index.value - 1];\n });\n\n function at(index2) {\n if (Array.isArray(stepsRef.value)) return stepsRef.value[index2];\n return stepsRef.value[stepNames.value[index2]];\n }\n\n function get(step) {\n if (!stepNames.value.includes(step)) return;\n return at(stepNames.value.indexOf(step));\n }\n\n function goTo(step) {\n if (stepNames.value.includes(step)) index.value = stepNames.value.indexOf(step);\n }\n\n function goToNext() {\n if (isLast.value) return;\n index.value++;\n }\n\n function goToPrevious() {\n if (isFirst.value) return;\n index.value--;\n }\n\n function goBackTo(step) {\n if (isAfter(step)) goTo(step);\n }\n\n function isNext(step) {\n return stepNames.value.indexOf(step) === index.value + 1;\n }\n\n function isPrevious(step) {\n return stepNames.value.indexOf(step) === index.value - 1;\n }\n\n function isCurrent(step) {\n return stepNames.value.indexOf(step) === index.value;\n }\n\n function isBefore(step) {\n return index.value < stepNames.value.indexOf(step);\n }\n\n function isAfter(step) {\n return index.value > stepNames.value.indexOf(step);\n }\n\n return {\n steps: stepsRef,\n stepNames: stepNames,\n index: index,\n current: current,\n next: next,\n previous: previous,\n isFirst: isFirst,\n isLast: isLast,\n at: at,\n get: get,\n goTo: goTo,\n goToNext: goToNext,\n goToPrevious: goToPrevious,\n goBackTo: goBackTo,\n isNext: isNext,\n isPrevious: isPrevious,\n isCurrent: isCurrent,\n isBefore: isBefore,\n isAfter: isAfter\n };\n}\n\nfunction useStorageAsync(key, initialValue, storage) {\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n\n var _a;\n\n var _options$flush3 = options.flush,\n flush = _options$flush3 === void 0 ? \"pre\" : _options$flush3,\n _options$deep5 = options.deep,\n deep = _options$deep5 === void 0 ? true : _options$deep5,\n _options$listenToStor3 = options.listenToStorageChanges,\n listenToStorageChanges = _options$listenToStor3 === void 0 ? true : _options$listenToStor3,\n _options$writeDefault2 = options.writeDefaults,\n writeDefaults = _options$writeDefault2 === void 0 ? true : _options$writeDefault2,\n _options$mergeDefault2 = options.mergeDefaults,\n mergeDefaults = _options$mergeDefault2 === void 0 ? false : _options$mergeDefault2,\n shallow = options.shallow,\n _options$window38 = options.window,\n window = _options$window38 === void 0 ? defaultWindow : _options$window38,\n eventFilter = options.eventFilter,\n _options$onError3 = options.onError,\n onError = _options$onError3 === void 0 ? function (e) {\n console.error(e);\n } : _options$onError3;\n var rawInit = toValue(initialValue);\n var type = guessSerializerType(rawInit);\n var data = (shallow ? shallowRef : ref)(initialValue);\n var serializer = (_a = options.serializer) != null ? _a : StorageSerializers[type];\n\n if (!storage) {\n try {\n storage = getSSRHandler(\"getDefaultStorageAsync\", function () {\n var _a2;\n\n return (_a2 = defaultWindow) == null ? void 0 : _a2.localStorage;\n })();\n } catch (e) {\n onError(e);\n }\n }\n\n function read(_x11) {\n return _read.apply(this, arguments);\n }\n\n function _read() {\n _read = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee33(event) {\n var rawValue, value;\n return regeneratorRuntime.wrap(function _callee33$(_context33) {\n while (1) {\n switch (_context33.prev = _context33.next) {\n case 0:\n if (!(!storage || event && event.key !== key)) {\n _context33.next = 2;\n break;\n }\n\n return _context33.abrupt(\"return\");\n\n case 2:\n _context33.prev = 2;\n\n if (!event) {\n _context33.next = 7;\n break;\n }\n\n _context33.t0 = event.newValue;\n _context33.next = 10;\n break;\n\n case 7:\n _context33.next = 9;\n return storage.getItem(key);\n\n case 9:\n _context33.t0 = _context33.sent;\n\n case 10:\n rawValue = _context33.t0;\n\n if (!(rawValue == null)) {\n _context33.next = 23;\n break;\n }\n\n data.value = rawInit;\n\n if (!(writeDefaults && rawInit !== null)) {\n _context33.next = 21;\n break;\n }\n\n _context33.t1 = storage;\n _context33.t2 = key;\n _context33.next = 18;\n return serializer.write(rawInit);\n\n case 18:\n _context33.t3 = _context33.sent;\n _context33.next = 21;\n return _context33.t1.setItem.call(_context33.t1, _context33.t2, _context33.t3);\n\n case 21:\n _context33.next = 33;\n break;\n\n case 23:\n if (!mergeDefaults) {\n _context33.next = 30;\n break;\n }\n\n _context33.next = 26;\n return serializer.read(rawValue);\n\n case 26:\n value = _context33.sent;\n if (typeof mergeDefaults === \"function\") data.value = mergeDefaults(value, rawInit);else if (type === \"object\" && !Array.isArray(value)) data.value = _objectSpread(_objectSpread({}, rawInit), value);else data.value = value;\n _context33.next = 33;\n break;\n\n case 30:\n _context33.next = 32;\n return serializer.read(rawValue);\n\n case 32:\n data.value = _context33.sent;\n\n case 33:\n _context33.next = 38;\n break;\n\n case 35:\n _context33.prev = 35;\n _context33.t4 = _context33[\"catch\"](2);\n onError(_context33.t4);\n\n case 38:\n case \"end\":\n return _context33.stop();\n }\n }\n }, _callee33, null, [[2, 35]]);\n }));\n return _read.apply(this, arguments);\n }\n\n read();\n if (window && listenToStorageChanges) useEventListener(window, \"storage\", function (e) {\n return Promise.resolve().then(function () {\n return read(e);\n });\n });\n\n if (storage) {\n watchWithFilter(data, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee32() {\n return regeneratorRuntime.wrap(function _callee32$(_context32) {\n while (1) {\n switch (_context32.prev = _context32.next) {\n case 0:\n _context32.prev = 0;\n\n if (!(data.value == null)) {\n _context32.next = 6;\n break;\n }\n\n _context32.next = 4;\n return storage.removeItem(key);\n\n case 4:\n _context32.next = 13;\n break;\n\n case 6:\n _context32.t0 = storage;\n _context32.t1 = key;\n _context32.next = 10;\n return serializer.write(data.value);\n\n case 10:\n _context32.t2 = _context32.sent;\n _context32.next = 13;\n return _context32.t0.setItem.call(_context32.t0, _context32.t1, _context32.t2);\n\n case 13:\n _context32.next = 18;\n break;\n\n case 15:\n _context32.prev = 15;\n _context32.t3 = _context32[\"catch\"](0);\n onError(_context32.t3);\n\n case 18:\n case \"end\":\n return _context32.stop();\n }\n }\n }, _callee32, null, [[0, 15]]);\n })), {\n flush: flush,\n deep: deep,\n eventFilter: eventFilter\n });\n }\n\n return data;\n}\n\nvar _id = 0;\n\nfunction useStyleTag(css) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var isLoaded = ref(false);\n var _options$document10 = options.document,\n document = _options$document10 === void 0 ? defaultDocument : _options$document10,\n _options$immediate10 = options.immediate,\n immediate = _options$immediate10 === void 0 ? true : _options$immediate10,\n _options$manual2 = options.manual,\n manual = _options$manual2 === void 0 ? false : _options$manual2,\n _options$id = options.id,\n id = _options$id === void 0 ? \"vueuse_styletag_\".concat(++_id) : _options$id;\n var cssRef = ref(css);\n\n var stop = function stop() {};\n\n var load = function load() {\n if (!document) return;\n var el = document.getElementById(id) || document.createElement(\"style\");\n\n if (!el.isConnected) {\n el.id = id;\n if (options.media) el.media = options.media;\n document.head.appendChild(el);\n }\n\n if (isLoaded.value) return;\n stop = watch(cssRef, function (value) {\n el.textContent = value;\n }, {\n immediate: true\n });\n isLoaded.value = true;\n };\n\n var unload = function unload() {\n if (!document || !isLoaded.value) return;\n stop();\n document.head.removeChild(document.getElementById(id));\n isLoaded.value = false;\n };\n\n if (immediate && !manual) tryOnMounted(load);\n if (!manual) tryOnScopeDispose(unload);\n return {\n id: id,\n css: cssRef,\n unload: unload,\n load: load,\n isLoaded: readonly(isLoaded)\n };\n}\n\nfunction useSwipe(target) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _options$threshold4 = options.threshold,\n threshold = _options$threshold4 === void 0 ? 50 : _options$threshold4,\n onSwipe = options.onSwipe,\n onSwipeEnd = options.onSwipeEnd,\n onSwipeStart = options.onSwipeStart,\n _options$passive2 = options.passive,\n passive = _options$passive2 === void 0 ? true : _options$passive2,\n _options$window39 = options.window,\n window = _options$window39 === void 0 ? defaultWindow : _options$window39;\n var coordsStart = reactive({\n x: 0,\n y: 0\n });\n var coordsEnd = reactive({\n x: 0,\n y: 0\n });\n var diffX = computed(function () {\n return coordsStart.x - coordsEnd.x;\n });\n var diffY = computed(function () {\n return coordsStart.y - coordsEnd.y;\n });\n var max = Math.max,\n abs = Math.abs;\n var isThresholdExceeded = computed(function () {\n return max(abs(diffX.value), abs(diffY.value)) >= threshold;\n });\n var isSwiping = ref(false);\n var direction = computed(function () {\n if (!isThresholdExceeded.value) return \"none\";\n\n if (abs(diffX.value) > abs(diffY.value)) {\n return diffX.value > 0 ? \"left\" : \"right\";\n } else {\n return diffY.value > 0 ? \"up\" : \"down\";\n }\n });\n\n var getTouchEventCoords = function getTouchEventCoords(e) {\n return [e.touches[0].clientX, e.touches[0].clientY];\n };\n\n var updateCoordsStart = function updateCoordsStart(x, y) {\n coordsStart.x = x;\n coordsStart.y = y;\n };\n\n var updateCoordsEnd = function updateCoordsEnd(x, y) {\n coordsEnd.x = x;\n coordsEnd.y = y;\n };\n\n var listenerOptions;\n var isPassiveEventSupported = checkPassiveEventSupport(window == null ? void 0 : window.document);\n if (!passive) listenerOptions = isPassiveEventSupported ? {\n passive: false,\n capture: true\n } : {\n capture: true\n };else listenerOptions = isPassiveEventSupported ? {\n passive: true\n } : {\n capture: false\n };\n\n var onTouchEnd = function onTouchEnd(e) {\n if (isSwiping.value) onSwipeEnd == null ? void 0 : onSwipeEnd(e, direction.value);\n isSwiping.value = false;\n };\n\n var stops = [useEventListener(target, \"touchstart\", function (e) {\n if (e.touches.length !== 1) return;\n if (listenerOptions.capture && !listenerOptions.passive) e.preventDefault();\n\n var _getTouchEventCoords = getTouchEventCoords(e),\n _getTouchEventCoords2 = _slicedToArray(_getTouchEventCoords, 2),\n x = _getTouchEventCoords2[0],\n y = _getTouchEventCoords2[1];\n\n updateCoordsStart(x, y);\n updateCoordsEnd(x, y);\n onSwipeStart == null ? void 0 : onSwipeStart(e);\n }, listenerOptions), useEventListener(target, \"touchmove\", function (e) {\n if (e.touches.length !== 1) return;\n\n var _getTouchEventCoords3 = getTouchEventCoords(e),\n _getTouchEventCoords4 = _slicedToArray(_getTouchEventCoords3, 2),\n x = _getTouchEventCoords4[0],\n y = _getTouchEventCoords4[1];\n\n updateCoordsEnd(x, y);\n if (!isSwiping.value && isThresholdExceeded.value) isSwiping.value = true;\n if (isSwiping.value) onSwipe == null ? void 0 : onSwipe(e);\n }, listenerOptions), useEventListener(target, [\"touchend\", \"touchcancel\"], onTouchEnd, listenerOptions)];\n\n var stop = function stop() {\n return stops.forEach(function (s) {\n return s();\n });\n };\n\n return {\n isPassiveEventSupported: isPassiveEventSupported,\n isSwiping: isSwiping,\n direction: direction,\n coordsStart: coordsStart,\n coordsEnd: coordsEnd,\n lengthX: diffX,\n lengthY: diffY,\n stop: stop\n };\n}\n\nfunction checkPassiveEventSupport(document) {\n if (!document) return false;\n var supportsPassive = false;\n var optionsBlock = {\n get passive() {\n supportsPassive = true;\n return false;\n }\n\n };\n document.addEventListener(\"x\", noop, optionsBlock);\n document.removeEventListener(\"x\", noop);\n return supportsPassive;\n}\n\nfunction useTemplateRefsList() {\n var refs = ref([]);\n\n refs.value.set = function (el) {\n if (el) refs.value.push(el);\n };\n\n onBeforeUpdate(function () {\n refs.value.length = 0;\n });\n return refs;\n}\n\nfunction useTextDirection() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$document11 = options.document,\n document = _options$document11 === void 0 ? defaultDocument : _options$document11,\n _options$selector2 = options.selector,\n selector = _options$selector2 === void 0 ? \"html\" : _options$selector2,\n _options$observe2 = options.observe,\n observe = _options$observe2 === void 0 ? false : _options$observe2,\n _options$initialValue7 = options.initialValue,\n initialValue = _options$initialValue7 === void 0 ? \"ltr\" : _options$initialValue7;\n\n function getValue() {\n var _a, _b;\n\n return (_b = (_a = document == null ? void 0 : document.querySelector(selector)) == null ? void 0 : _a.getAttribute(\"dir\")) != null ? _b : initialValue;\n }\n\n var dir = ref(getValue());\n tryOnMounted(function () {\n return dir.value = getValue();\n });\n\n if (observe && document) {\n useMutationObserver(document.querySelector(selector), function () {\n return dir.value = getValue();\n }, {\n attributes: true\n });\n }\n\n return computed({\n get: function get() {\n return dir.value;\n },\n set: function set(v) {\n var _a, _b;\n\n dir.value = v;\n if (!document) return;\n if (dir.value) (_a = document.querySelector(selector)) == null ? void 0 : _a.setAttribute(\"dir\", dir.value);else (_b = document.querySelector(selector)) == null ? void 0 : _b.removeAttribute(\"dir\");\n }\n });\n}\n\nfunction getRangesFromSelection(selection) {\n var _a;\n\n var rangeCount = (_a = selection.rangeCount) != null ? _a : 0;\n return Array.from({\n length: rangeCount\n }, function (_, i) {\n return selection.getRangeAt(i);\n });\n}\n\nfunction useTextSelection() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$window40 = options.window,\n window = _options$window40 === void 0 ? defaultWindow : _options$window40;\n var selection = ref(null);\n var text = computed(function () {\n var _a, _b;\n\n return (_b = (_a = selection.value) == null ? void 0 : _a.toString()) != null ? _b : \"\";\n });\n var ranges = computed(function () {\n return selection.value ? getRangesFromSelection(selection.value) : [];\n });\n var rects = computed(function () {\n return ranges.value.map(function (range) {\n return range.getBoundingClientRect();\n });\n });\n\n function onSelectionChange() {\n selection.value = null;\n if (window) selection.value = window.getSelection();\n }\n\n if (window) useEventListener(window.document, \"selectionchange\", onSelectionChange);\n return {\n text: text,\n rects: rects,\n ranges: ranges,\n selection: selection\n };\n}\n\nfunction useTextareaAutosize(options) {\n var _a;\n\n var textarea = ref(options == null ? void 0 : options.element);\n var input = ref(options == null ? void 0 : options.input);\n var styleProp = (_a = options == null ? void 0 : options.styleProp) != null ? _a : \"height\";\n var textareaScrollHeight = ref(1);\n\n function triggerResize() {\n var _a2;\n\n if (!textarea.value) return;\n var height = \"\";\n textarea.value.style[styleProp] = \"1px\";\n textareaScrollHeight.value = (_a2 = textarea.value) == null ? void 0 : _a2.scrollHeight;\n if (options == null ? void 0 : options.styleTarget) toValue(options.styleTarget).style[styleProp] = \"\".concat(textareaScrollHeight.value, \"px\");else height = \"\".concat(textareaScrollHeight.value, \"px\");\n textarea.value.style[styleProp] = height;\n }\n\n watch([input, textarea], function () {\n return nextTick(triggerResize);\n }, {\n immediate: true\n });\n watch(textareaScrollHeight, function () {\n var _a2;\n\n return (_a2 = options == null ? void 0 : options.onResize) == null ? void 0 : _a2.call(options);\n });\n useResizeObserver(textarea, function () {\n return triggerResize();\n });\n if (options == null ? void 0 : options.watch) watch(options.watch, triggerResize, {\n immediate: true,\n deep: true\n });\n return {\n textarea: textarea,\n input: input,\n triggerResize: triggerResize\n };\n}\n\nfunction useThrottledRefHistory(source) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _options$throttle2 = options.throttle,\n throttle = _options$throttle2 === void 0 ? 200 : _options$throttle2,\n _options$trailing = options.trailing,\n trailing = _options$trailing === void 0 ? true : _options$trailing;\n var filter = throttleFilter(throttle, trailing);\n var history = useRefHistory(source, _objectSpread(_objectSpread({}, options), {}, {\n eventFilter: filter\n }));\n return _objectSpread({}, history);\n}\n\nvar DEFAULT_UNITS = [{\n max: 6e4,\n value: 1e3,\n name: \"second\"\n}, {\n max: 276e4,\n value: 6e4,\n name: \"minute\"\n}, {\n max: 72e6,\n value: 36e5,\n name: \"hour\"\n}, {\n max: 5184e5,\n value: 864e5,\n name: \"day\"\n}, {\n max: 24192e5,\n value: 6048e5,\n name: \"week\"\n}, {\n max: 28512e6,\n value: 2592e6,\n name: \"month\"\n}, {\n max: Number.POSITIVE_INFINITY,\n value: 31536e6,\n name: \"year\"\n}];\nvar DEFAULT_MESSAGES = {\n justNow: \"just now\",\n past: function past(n) {\n return n.match(/\\d/) ? \"\".concat(n, \" ago\") : n;\n },\n future: function future(n) {\n return n.match(/\\d/) ? \"in \".concat(n) : n;\n },\n month: function month(n, past) {\n return n === 1 ? past ? \"last month\" : \"next month\" : \"\".concat(n, \" month\").concat(n > 1 ? \"s\" : \"\");\n },\n year: function year(n, past) {\n return n === 1 ? past ? \"last year\" : \"next year\" : \"\".concat(n, \" year\").concat(n > 1 ? \"s\" : \"\");\n },\n day: function day(n, past) {\n return n === 1 ? past ? \"yesterday\" : \"tomorrow\" : \"\".concat(n, \" day\").concat(n > 1 ? \"s\" : \"\");\n },\n week: function week(n, past) {\n return n === 1 ? past ? \"last week\" : \"next week\" : \"\".concat(n, \" week\").concat(n > 1 ? \"s\" : \"\");\n },\n hour: function hour(n) {\n return \"\".concat(n, \" hour\").concat(n > 1 ? \"s\" : \"\");\n },\n minute: function minute(n) {\n return \"\".concat(n, \" minute\").concat(n > 1 ? \"s\" : \"\");\n },\n second: function second(n) {\n return \"\".concat(n, \" second\").concat(n > 1 ? \"s\" : \"\");\n },\n invalid: \"\"\n};\n\nfunction DEFAULT_FORMATTER(date) {\n return date.toISOString().slice(0, 10);\n}\n\nfunction useTimeAgo(time) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _options$controls3 = options.controls,\n exposeControls = _options$controls3 === void 0 ? false : _options$controls3,\n _options$updateInterv = options.updateInterval,\n updateInterval = _options$updateInterv === void 0 ? 3e4 : _options$updateInterv;\n\n var _useNow = useNow({\n interval: updateInterval,\n controls: true\n }),\n now = _useNow.now,\n controls = _objectWithoutProperties(_useNow, [\"now\"]);\n\n var timeAgo = computed(function () {\n return formatTimeAgo(new Date(toValue(time)), options, toValue(now));\n });\n\n if (exposeControls) {\n return _objectSpread({\n timeAgo: timeAgo\n }, controls);\n } else {\n return timeAgo;\n }\n}\n\nfunction formatTimeAgo(from) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var now = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Date.now();\n\n var _a;\n\n var max = options.max,\n _options$messages = options.messages,\n messages = _options$messages === void 0 ? DEFAULT_MESSAGES : _options$messages,\n _options$fullDateForm = options.fullDateFormatter,\n fullDateFormatter = _options$fullDateForm === void 0 ? DEFAULT_FORMATTER : _options$fullDateForm,\n _options$units = options.units,\n units = _options$units === void 0 ? DEFAULT_UNITS : _options$units,\n _options$showSecond = options.showSecond,\n showSecond = _options$showSecond === void 0 ? false : _options$showSecond,\n _options$rounding = options.rounding,\n rounding = _options$rounding === void 0 ? \"round\" : _options$rounding;\n var roundFn = typeof rounding === \"number\" ? function (n) {\n return +n.toFixed(rounding);\n } : Math[rounding];\n var diff = +now - +from;\n var absDiff = Math.abs(diff);\n\n function getValue(diff2, unit) {\n return roundFn(Math.abs(diff2) / unit.value);\n }\n\n function format(diff2, unit) {\n var val = getValue(diff2, unit);\n var past = diff2 > 0;\n var str = applyFormat(unit.name, val, past);\n return applyFormat(past ? \"past\" : \"future\", str, past);\n }\n\n function applyFormat(name, val, isPast) {\n var formatter = messages[name];\n if (typeof formatter === \"function\") return formatter(val, isPast);\n return formatter.replace(\"{0}\", val.toString());\n }\n\n if (absDiff < 6e4 && !showSecond) return messages.justNow;\n if (typeof max === \"number\" && absDiff > max) return fullDateFormatter(new Date(from));\n\n if (typeof max === \"string\") {\n var unitMax = (_a = units.find(function (i) {\n return i.name === max;\n })) == null ? void 0 : _a.max;\n if (unitMax && absDiff > unitMax) return fullDateFormatter(new Date(from));\n }\n\n var _iterator12 = _createForOfIteratorHelper(units.entries()),\n _step12;\n\n try {\n for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {\n var _step12$value = _slicedToArray(_step12.value, 2),\n idx = _step12$value[0],\n unit = _step12$value[1];\n\n var val = getValue(diff, unit);\n if (val <= 0 && units[idx - 1]) return format(diff, units[idx - 1]);\n if (absDiff < unit.max) return format(diff, unit);\n }\n } catch (err) {\n _iterator12.e(err);\n } finally {\n _iterator12.f();\n }\n\n return messages.invalid;\n}\n\nfunction useTimeoutPoll(fn, interval, timeoutPollOptions) {\n var _useTimeoutFn = useTimeoutFn(loop, interval, {\n immediate: false\n }),\n start = _useTimeoutFn.start;\n\n var isActive = ref(false);\n\n function loop() {\n return _loop3.apply(this, arguments);\n }\n\n function _loop3() {\n _loop3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee34() {\n return regeneratorRuntime.wrap(function _callee34$(_context34) {\n while (1) {\n switch (_context34.prev = _context34.next) {\n case 0:\n if (isActive.value) {\n _context34.next = 2;\n break;\n }\n\n return _context34.abrupt(\"return\");\n\n case 2:\n _context34.next = 4;\n return fn();\n\n case 4:\n start();\n\n case 5:\n case \"end\":\n return _context34.stop();\n }\n }\n }, _callee34);\n }));\n return _loop3.apply(this, arguments);\n }\n\n function resume() {\n if (!isActive.value) {\n isActive.value = true;\n loop();\n }\n }\n\n function pause() {\n isActive.value = false;\n }\n\n if (timeoutPollOptions == null ? void 0 : timeoutPollOptions.immediate) resume();\n tryOnScopeDispose(pause);\n return {\n isActive: isActive,\n pause: pause,\n resume: resume\n };\n}\n\nfunction useTimestamp() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$controls4 = options.controls,\n exposeControls = _options$controls4 === void 0 ? false : _options$controls4,\n _options$offset2 = options.offset,\n offset = _options$offset2 === void 0 ? 0 : _options$offset2,\n _options$immediate11 = options.immediate,\n immediate = _options$immediate11 === void 0 ? true : _options$immediate11,\n _options$interval5 = options.interval,\n interval = _options$interval5 === void 0 ? \"requestAnimationFrame\" : _options$interval5,\n callback = options.callback;\n var ts = ref(timestamp() + offset);\n\n var update = function update() {\n return ts.value = timestamp() + offset;\n };\n\n var cb = callback ? function () {\n update();\n callback(ts.value);\n } : update;\n var controls = interval === \"requestAnimationFrame\" ? useRafFn(cb, {\n immediate: immediate\n }) : useIntervalFn(cb, interval, {\n immediate: immediate\n });\n\n if (exposeControls) {\n return _objectSpread({\n timestamp: ts\n }, controls);\n } else {\n return ts;\n }\n}\n\nfunction useTitle() {\n var newTitle = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var _a, _b, _c;\n\n var _options$document12 = options.document,\n document = _options$document12 === void 0 ? defaultDocument : _options$document12,\n _options$restoreOnUnm = options.restoreOnUnmount,\n restoreOnUnmount = _options$restoreOnUnm === void 0 ? function (t) {\n return t;\n } : _options$restoreOnUnm;\n var originalTitle = (_a = document == null ? void 0 : document.title) != null ? _a : \"\";\n var title = toRef((_b = newTitle != null ? newTitle : document == null ? void 0 : document.title) != null ? _b : null);\n var isReadonly = newTitle && typeof newTitle === \"function\";\n\n function format(t) {\n if (!(\"titleTemplate\" in options)) return t;\n var template = options.titleTemplate || \"%s\";\n return typeof template === \"function\" ? template(t) : toValue(template).replace(/%s/g, t);\n }\n\n watch(title, function (t, o) {\n if (t !== o && document) document.title = format(typeof t === \"string\" ? t : \"\");\n }, {\n immediate: true\n });\n\n if (options.observe && !options.titleTemplate && document && !isReadonly) {\n useMutationObserver((_c = document.head) == null ? void 0 : _c.querySelector(\"title\"), function () {\n if (document && document.title !== title.value) title.value = format(document.title);\n }, {\n childList: true\n });\n }\n\n tryOnBeforeUnmount(function () {\n if (restoreOnUnmount) {\n var restoredTitle = restoreOnUnmount(originalTitle, title.value || \"\");\n if (restoredTitle != null && document) document.title = restoredTitle;\n }\n });\n return title;\n}\n\nvar _TransitionPresets = {\n easeInSine: [0.12, 0, 0.39, 0],\n easeOutSine: [0.61, 1, 0.88, 1],\n easeInOutSine: [0.37, 0, 0.63, 1],\n easeInQuad: [0.11, 0, 0.5, 0],\n easeOutQuad: [0.5, 1, 0.89, 1],\n easeInOutQuad: [0.45, 0, 0.55, 1],\n easeInCubic: [0.32, 0, 0.67, 0],\n easeOutCubic: [0.33, 1, 0.68, 1],\n easeInOutCubic: [0.65, 0, 0.35, 1],\n easeInQuart: [0.5, 0, 0.75, 0],\n easeOutQuart: [0.25, 1, 0.5, 1],\n easeInOutQuart: [0.76, 0, 0.24, 1],\n easeInQuint: [0.64, 0, 0.78, 0],\n easeOutQuint: [0.22, 1, 0.36, 1],\n easeInOutQuint: [0.83, 0, 0.17, 1],\n easeInExpo: [0.7, 0, 0.84, 0],\n easeOutExpo: [0.16, 1, 0.3, 1],\n easeInOutExpo: [0.87, 0, 0.13, 1],\n easeInCirc: [0.55, 0, 1, 0.45],\n easeOutCirc: [0, 0.55, 0.45, 1],\n easeInOutCirc: [0.85, 0, 0.15, 1],\n easeInBack: [0.36, 0, 0.66, -0.56],\n easeOutBack: [0.34, 1.56, 0.64, 1],\n easeInOutBack: [0.68, -0.6, 0.32, 1.6]\n};\nvar TransitionPresets = /* @__PURE__ */Object.assign({}, {\n linear: identity\n}, _TransitionPresets);\n\nfunction createEasingFunction(_ref43) {\n var _ref44 = _slicedToArray(_ref43, 4),\n p0 = _ref44[0],\n p1 = _ref44[1],\n p2 = _ref44[2],\n p3 = _ref44[3];\n\n var a = function a(a1, a2) {\n return 1 - 3 * a2 + 3 * a1;\n };\n\n var b = function b(a1, a2) {\n return 3 * a2 - 6 * a1;\n };\n\n var c = function c(a1) {\n return 3 * a1;\n };\n\n var calcBezier = function calcBezier(t, a1, a2) {\n return ((a(a1, a2) * t + b(a1, a2)) * t + c(a1)) * t;\n };\n\n var getSlope = function getSlope(t, a1, a2) {\n return 3 * a(a1, a2) * t * t + 2 * b(a1, a2) * t + c(a1);\n };\n\n var getTforX = function getTforX(x) {\n var aGuessT = x;\n\n for (var i = 0; i < 4; ++i) {\n var currentSlope = getSlope(aGuessT, p0, p2);\n if (currentSlope === 0) return aGuessT;\n var currentX = calcBezier(aGuessT, p0, p2) - x;\n aGuessT -= currentX / currentSlope;\n }\n\n return aGuessT;\n };\n\n return function (x) {\n return p0 === p1 && p2 === p3 ? x : calcBezier(getTforX(x), p1, p3);\n };\n}\n\nfunction lerp(a, b, alpha) {\n return a + alpha * (b - a);\n}\n\nfunction toVec(t) {\n return (typeof t === \"number\" ? [t] : t) || [];\n}\n\nfunction executeTransition(source, from, to) {\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n\n var _a, _b;\n\n var fromVal = toValue(from);\n var toVal = toValue(to);\n var v1 = toVec(fromVal);\n var v2 = toVec(toVal);\n var duration = (_a = toValue(options.duration)) != null ? _a : 1e3;\n var startedAt = Date.now();\n var endAt = Date.now() + duration;\n var trans = typeof options.transition === \"function\" ? options.transition : (_b = toValue(options.transition)) != null ? _b : identity;\n var ease = typeof trans === \"function\" ? trans : createEasingFunction(trans);\n return new Promise(function (resolve) {\n source.value = fromVal;\n\n var tick = function tick() {\n var _a2;\n\n if ((_a2 = options.abort) == null ? void 0 : _a2.call(options)) {\n resolve();\n return;\n }\n\n var now = Date.now();\n var alpha = ease((now - startedAt) / duration);\n var arr = toVec(source.value).map(function (n, i) {\n return lerp(v1[i], v2[i], alpha);\n });\n if (Array.isArray(source.value)) source.value = arr.map(function (n, i) {\n var _a3, _b2;\n\n return lerp((_a3 = v1[i]) != null ? _a3 : 0, (_b2 = v2[i]) != null ? _b2 : 0, alpha);\n });else if (typeof source.value === \"number\") source.value = arr[0];\n\n if (now < endAt) {\n requestAnimationFrame(tick);\n } else {\n source.value = toVal;\n resolve();\n }\n };\n\n tick();\n });\n}\n\nfunction useTransition(source) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var currentId = 0;\n\n var sourceVal = function sourceVal() {\n var v = toValue(source);\n return typeof v === \"number\" ? v : v.map(toValue);\n };\n\n var outputRef = ref(sourceVal());\n watch(sourceVal, /*#__PURE__*/function () {\n var _ref45 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee35(to) {\n var _a, _b, id, toVal;\n\n return regeneratorRuntime.wrap(function _callee35$(_context35) {\n while (1) {\n switch (_context35.prev = _context35.next) {\n case 0:\n if (!toValue(options.disabled)) {\n _context35.next = 2;\n break;\n }\n\n return _context35.abrupt(\"return\");\n\n case 2:\n id = ++currentId;\n\n if (!options.delay) {\n _context35.next = 6;\n break;\n }\n\n _context35.next = 6;\n return promiseTimeout(toValue(options.delay));\n\n case 6:\n if (!(id !== currentId)) {\n _context35.next = 8;\n break;\n }\n\n return _context35.abrupt(\"return\");\n\n case 8:\n toVal = Array.isArray(to) ? to.map(toValue) : toValue(to);\n (_a = options.onStarted) == null ? void 0 : _a.call(options);\n _context35.next = 12;\n return executeTransition(outputRef, outputRef.value, toVal, _objectSpread(_objectSpread({}, options), {}, {\n abort: function abort() {\n var _a2;\n\n return id !== currentId || ((_a2 = options.abort) == null ? void 0 : _a2.call(options));\n }\n }));\n\n case 12:\n (_b = options.onFinished) == null ? void 0 : _b.call(options);\n\n case 13:\n case \"end\":\n return _context35.stop();\n }\n }\n }, _callee35);\n }));\n\n return function (_x12) {\n return _ref45.apply(this, arguments);\n };\n }(), {\n deep: true\n });\n watch(function () {\n return toValue(options.disabled);\n }, function (disabled) {\n if (disabled) {\n currentId++;\n outputRef.value = sourceVal();\n }\n });\n tryOnScopeDispose(function () {\n currentId++;\n });\n return computed(function () {\n return toValue(options.disabled) ? sourceVal() : outputRef.value;\n });\n}\n\nfunction useUrlSearchParams() {\n var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"history\";\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _options$initialValue8 = options.initialValue,\n initialValue = _options$initialValue8 === void 0 ? {} : _options$initialValue8,\n _options$removeNullis = options.removeNullishValues,\n removeNullishValues = _options$removeNullis === void 0 ? true : _options$removeNullis,\n _options$removeFalsyV = options.removeFalsyValues,\n removeFalsyValues = _options$removeFalsyV === void 0 ? false : _options$removeFalsyV,\n _options$write = options.write,\n enableWrite = _options$write === void 0 ? true : _options$write,\n _options$window41 = options.window,\n window = _options$window41 === void 0 ? defaultWindow : _options$window41;\n if (!window) return reactive(initialValue);\n var state = reactive({});\n\n function getRawParams() {\n if (mode === \"history\") {\n return window.location.search || \"\";\n } else if (mode === \"hash\") {\n var hash = window.location.hash || \"\";\n var index = hash.indexOf(\"?\");\n return index > 0 ? hash.slice(index) : \"\";\n } else {\n return (window.location.hash || \"\").replace(/^#/, \"\");\n }\n }\n\n function constructQuery(params) {\n var stringified = params.toString();\n if (mode === \"history\") return \"\".concat(stringified ? \"?\".concat(stringified) : \"\").concat(window.location.hash || \"\");\n if (mode === \"hash-params\") return \"\".concat(window.location.search || \"\").concat(stringified ? \"#\".concat(stringified) : \"\");\n var hash = window.location.hash || \"#\";\n var index = hash.indexOf(\"?\");\n if (index > 0) return \"\".concat(hash.slice(0, index)).concat(stringified ? \"?\".concat(stringified) : \"\");\n return \"\".concat(hash).concat(stringified ? \"?\".concat(stringified) : \"\");\n }\n\n function read() {\n return new URLSearchParams(getRawParams());\n }\n\n function updateState(params) {\n var unusedKeys = new Set(Object.keys(state));\n\n var _iterator13 = _createForOfIteratorHelper(params.keys()),\n _step13;\n\n try {\n for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) {\n var key = _step13.value;\n var paramsForKey = params.getAll(key);\n state[key] = paramsForKey.length > 1 ? paramsForKey : params.get(key) || \"\";\n unusedKeys.delete(key);\n }\n } catch (err) {\n _iterator13.e(err);\n } finally {\n _iterator13.f();\n }\n\n Array.from(unusedKeys).forEach(function (key) {\n return delete state[key];\n });\n }\n\n var _pausableWatch2 = pausableWatch(state, function () {\n var params = new URLSearchParams(\"\");\n Object.keys(state).forEach(function (key) {\n var mapEntry = state[key];\n if (Array.isArray(mapEntry)) mapEntry.forEach(function (value) {\n return params.append(key, value);\n });else if (removeNullishValues && mapEntry == null) params.delete(key);else if (removeFalsyValues && !mapEntry) params.delete(key);else params.set(key, mapEntry);\n });\n write(params);\n }, {\n deep: true\n }),\n pause = _pausableWatch2.pause,\n resume = _pausableWatch2.resume;\n\n function write(params, shouldUpdate) {\n pause();\n if (shouldUpdate) updateState(params);\n window.history.replaceState(window.history.state, window.document.title, window.location.pathname + constructQuery(params));\n resume();\n }\n\n function onChanged() {\n if (!enableWrite) return;\n write(read(), true);\n }\n\n useEventListener(window, \"popstate\", onChanged, false);\n if (mode !== \"history\") useEventListener(window, \"hashchange\", onChanged, false);\n var initial = read();\n if (initial.keys().next().value) updateState(initial);else Object.assign(state, initialValue);\n return state;\n}\n\nfunction useUserMedia() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n var _a, _b;\n\n var enabled = ref((_a = options.enabled) != null ? _a : false);\n var autoSwitch = ref((_b = options.autoSwitch) != null ? _b : true);\n var constraints = ref(options.constraints);\n var _options$navigator10 = options.navigator,\n navigator = _options$navigator10 === void 0 ? defaultNavigator : _options$navigator10;\n var isSupported = useSupported(function () {\n var _a2;\n\n return (_a2 = navigator == null ? void 0 : navigator.mediaDevices) == null ? void 0 : _a2.getUserMedia;\n });\n var stream = shallowRef();\n\n function getDeviceOptions(type) {\n switch (type) {\n case \"video\":\n {\n if (constraints.value) return constraints.value.video || false;\n break;\n }\n\n case \"audio\":\n {\n if (constraints.value) return constraints.value.audio || false;\n break;\n }\n }\n }\n\n function _start() {\n return _start4.apply(this, arguments);\n }\n\n function _start4() {\n _start4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee36() {\n return regeneratorRuntime.wrap(function _callee36$(_context36) {\n while (1) {\n switch (_context36.prev = _context36.next) {\n case 0:\n if (!(!isSupported.value || stream.value)) {\n _context36.next = 2;\n break;\n }\n\n return _context36.abrupt(\"return\");\n\n case 2:\n _context36.next = 4;\n return navigator.mediaDevices.getUserMedia({\n video: getDeviceOptions(\"video\"),\n audio: getDeviceOptions(\"audio\")\n });\n\n case 4:\n stream.value = _context36.sent;\n return _context36.abrupt(\"return\", stream.value);\n\n case 6:\n case \"end\":\n return _context36.stop();\n }\n }\n }, _callee36);\n }));\n return _start4.apply(this, arguments);\n }\n\n function _stop() {\n var _a2;\n\n (_a2 = stream.value) == null ? void 0 : _a2.getTracks().forEach(function (t) {\n return t.stop();\n });\n stream.value = void 0;\n }\n\n function stop() {\n _stop();\n\n enabled.value = false;\n }\n\n function start() {\n return _start5.apply(this, arguments);\n }\n\n function _start5() {\n _start5 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee37() {\n return regeneratorRuntime.wrap(function _callee37$(_context37) {\n while (1) {\n switch (_context37.prev = _context37.next) {\n case 0:\n _context37.next = 2;\n return _start();\n\n case 2:\n if (stream.value) enabled.value = true;\n return _context37.abrupt(\"return\", stream.value);\n\n case 4:\n case \"end\":\n return _context37.stop();\n }\n }\n }, _callee37);\n }));\n return _start5.apply(this, arguments);\n }\n\n function restart() {\n return _restart.apply(this, arguments);\n }\n\n function _restart() {\n _restart = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee38() {\n return regeneratorRuntime.wrap(function _callee38$(_context38) {\n while (1) {\n switch (_context38.prev = _context38.next) {\n case 0:\n _stop();\n\n _context38.next = 3;\n return start();\n\n case 3:\n return _context38.abrupt(\"return\", _context38.sent);\n\n case 4:\n case \"end\":\n return _context38.stop();\n }\n }\n }, _callee38);\n }));\n return _restart.apply(this, arguments);\n }\n\n watch(enabled, function (v) {\n if (v) _start();else _stop();\n }, {\n immediate: true\n });\n watch(constraints, function () {\n if (autoSwitch.value && stream.value) restart();\n }, {\n immediate: true\n });\n tryOnScopeDispose(function () {\n stop();\n });\n return {\n isSupported: isSupported,\n stream: stream,\n start: start,\n stop: stop,\n restart: restart,\n constraints: constraints,\n enabled: enabled,\n autoSwitch: autoSwitch\n };\n}\n\nfunction useVModel(props, key, emit) {\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n\n var _a, _b, _c, _d, _e;\n\n var _options$clone3 = options.clone,\n clone = _options$clone3 === void 0 ? false : _options$clone3,\n _options$passive3 = options.passive,\n passive = _options$passive3 === void 0 ? false : _options$passive3,\n eventName = options.eventName,\n _options$deep6 = options.deep,\n deep = _options$deep6 === void 0 ? false : _options$deep6,\n defaultValue = options.defaultValue,\n shouldEmit = options.shouldEmit;\n var vm = getCurrentInstance();\n\n var _emit = emit || (vm == null ? void 0 : vm.emit) || ((_a = vm == null ? void 0 : vm.$emit) == null ? void 0 : _a.bind(vm)) || ((_c = (_b = vm == null ? void 0 : vm.proxy) == null ? void 0 : _b.$emit) == null ? void 0 : _c.bind(vm == null ? void 0 : vm.proxy));\n\n var event = eventName;\n\n if (!key) {\n if (isVue2) {\n var modelOptions = (_e = (_d = vm == null ? void 0 : vm.proxy) == null ? void 0 : _d.$options) == null ? void 0 : _e.model;\n key = (modelOptions == null ? void 0 : modelOptions.value) || \"value\";\n if (!eventName) event = (modelOptions == null ? void 0 : modelOptions.event) || \"input\";\n } else {\n key = \"modelValue\";\n }\n }\n\n event = event || \"update:\".concat(key.toString());\n\n var cloneFn = function cloneFn(val) {\n return !clone ? val : typeof clone === \"function\" ? clone(val) : cloneFnJSON(val);\n };\n\n var getValue = function getValue() {\n return isDef(props[key]) ? cloneFn(props[key]) : defaultValue;\n };\n\n var triggerEmit = function triggerEmit(value) {\n if (shouldEmit) {\n if (shouldEmit(value)) _emit(event, value);\n } else {\n _emit(event, value);\n }\n };\n\n if (passive) {\n var initialValue = getValue();\n var proxy = ref(initialValue);\n var isUpdating = false;\n watch(function () {\n return props[key];\n }, function (v) {\n if (!isUpdating) {\n isUpdating = true;\n proxy.value = cloneFn(v);\n nextTick(function () {\n return isUpdating = false;\n });\n }\n });\n watch(proxy, function (v) {\n if (!isUpdating && (v !== props[key] || deep)) triggerEmit(v);\n }, {\n deep: deep\n });\n return proxy;\n } else {\n return computed({\n get: function get() {\n return getValue();\n },\n set: function set(value) {\n triggerEmit(value);\n }\n });\n }\n}\n\nfunction useVModels(props, emit) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var ret = {};\n\n for (var key in props) {\n ret[key] = useVModel(props, key, emit, options);\n }\n\n return ret;\n}\n\nfunction useVibrate(options) {\n var _ref46 = options || {},\n _ref46$pattern = _ref46.pattern,\n pattern = _ref46$pattern === void 0 ? [] : _ref46$pattern,\n _ref46$interval = _ref46.interval,\n interval = _ref46$interval === void 0 ? 0 : _ref46$interval,\n _ref46$navigator = _ref46.navigator,\n navigator = _ref46$navigator === void 0 ? defaultNavigator : _ref46$navigator;\n\n var isSupported = useSupported(function () {\n return typeof navigator !== \"undefined\" && \"vibrate\" in navigator;\n });\n var patternRef = toRef(pattern);\n var intervalControls;\n\n var vibrate = function vibrate() {\n var pattern2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : patternRef.value;\n if (isSupported.value) navigator.vibrate(pattern2);\n };\n\n var stop = function stop() {\n if (isSupported.value) navigator.vibrate(0);\n intervalControls == null ? void 0 : intervalControls.pause();\n };\n\n if (interval > 0) {\n intervalControls = useIntervalFn(vibrate, interval, {\n immediate: false,\n immediateCallback: false\n });\n }\n\n return {\n isSupported: isSupported,\n pattern: pattern,\n intervalControls: intervalControls,\n vibrate: vibrate,\n stop: stop\n };\n}\n\nfunction useVirtualList(list, options) {\n var _ref47 = \"itemHeight\" in options ? useVerticalVirtualList(options, list) : useHorizontalVirtualList(options, list),\n containerStyle = _ref47.containerStyle,\n wrapperProps = _ref47.wrapperProps,\n scrollTo = _ref47.scrollTo,\n calculateRange = _ref47.calculateRange,\n currentList = _ref47.currentList,\n containerRef = _ref47.containerRef;\n\n return {\n list: currentList,\n scrollTo: scrollTo,\n containerProps: {\n ref: containerRef,\n onScroll: function onScroll() {\n calculateRange();\n },\n style: containerStyle\n },\n wrapperProps: wrapperProps\n };\n}\n\nfunction useVirtualListResources(list) {\n var containerRef = ref(null);\n var size = useElementSize(containerRef);\n var currentList = ref([]);\n var source = shallowRef(list);\n var state = ref({\n start: 0,\n end: 10\n });\n return {\n state: state,\n source: source,\n currentList: currentList,\n size: size,\n containerRef: containerRef\n };\n}\n\nfunction createGetViewCapacity(state, source, itemSize) {\n return function (containerSize) {\n if (typeof itemSize === \"number\") return Math.ceil(containerSize / itemSize);\n var _state$value$start = state.value.start,\n start = _state$value$start === void 0 ? 0 : _state$value$start;\n var sum = 0;\n var capacity = 0;\n\n for (var i = start; i < source.value.length; i++) {\n var size = itemSize(i);\n sum += size;\n capacity = i;\n if (sum > containerSize) break;\n }\n\n return capacity - start;\n };\n}\n\nfunction createGetOffset(source, itemSize) {\n return function (scrollDirection) {\n if (typeof itemSize === \"number\") return Math.floor(scrollDirection / itemSize) + 1;\n var sum = 0;\n var offset = 0;\n\n for (var i = 0; i < source.value.length; i++) {\n var size = itemSize(i);\n sum += size;\n\n if (sum >= scrollDirection) {\n offset = i;\n break;\n }\n }\n\n return offset + 1;\n };\n}\n\nfunction createCalculateRange(type, overscan, getOffset, getViewCapacity, _ref48) {\n var containerRef = _ref48.containerRef,\n state = _ref48.state,\n currentList = _ref48.currentList,\n source = _ref48.source;\n return function () {\n var element = containerRef.value;\n\n if (element) {\n var offset = getOffset(type === \"vertical\" ? element.scrollTop : element.scrollLeft);\n var viewCapacity = getViewCapacity(type === \"vertical\" ? element.clientHeight : element.clientWidth);\n var from = offset - overscan;\n var to = offset + viewCapacity + overscan;\n state.value = {\n start: from < 0 ? 0 : from,\n end: to > source.value.length ? source.value.length : to\n };\n currentList.value = source.value.slice(state.value.start, state.value.end).map(function (ele, index) {\n return {\n data: ele,\n index: index + state.value.start\n };\n });\n }\n };\n}\n\nfunction createGetDistance(itemSize, source) {\n return function (index) {\n if (typeof itemSize === \"number\") {\n var size2 = index * itemSize;\n return size2;\n }\n\n var size = source.value.slice(0, index).reduce(function (sum, _, i) {\n return sum + itemSize(i);\n }, 0);\n return size;\n };\n}\n\nfunction useWatchForSizes(size, list, containerRef, calculateRange) {\n watch([size.width, size.height, list, containerRef], function () {\n calculateRange();\n });\n}\n\nfunction createComputedTotalSize(itemSize, source) {\n return computed(function () {\n if (typeof itemSize === \"number\") return source.value.length * itemSize;\n return source.value.reduce(function (sum, _, index) {\n return sum + itemSize(index);\n }, 0);\n });\n}\n\nvar scrollToDictionaryForElementScrollKey = {\n horizontal: \"scrollLeft\",\n vertical: \"scrollTop\"\n};\n\nfunction createScrollTo(type, calculateRange, getDistance, containerRef) {\n return function (index) {\n if (containerRef.value) {\n containerRef.value[scrollToDictionaryForElementScrollKey[type]] = getDistance(index);\n calculateRange();\n }\n };\n}\n\nfunction useHorizontalVirtualList(options, list) {\n var resources = useVirtualListResources(list);\n var state = resources.state,\n source = resources.source,\n currentList = resources.currentList,\n size = resources.size,\n containerRef = resources.containerRef;\n var containerStyle = {\n overflowX: \"auto\"\n };\n var itemWidth = options.itemWidth,\n _options$overscan = options.overscan,\n overscan = _options$overscan === void 0 ? 5 : _options$overscan;\n var getViewCapacity = createGetViewCapacity(state, source, itemWidth);\n var getOffset = createGetOffset(source, itemWidth);\n var calculateRange = createCalculateRange(\"horizontal\", overscan, getOffset, getViewCapacity, resources);\n var getDistanceLeft = createGetDistance(itemWidth, source);\n var offsetLeft = computed(function () {\n return getDistanceLeft(state.value.start);\n });\n var totalWidth = createComputedTotalSize(itemWidth, source);\n useWatchForSizes(size, list, containerRef, calculateRange);\n var scrollTo = createScrollTo(\"horizontal\", calculateRange, getDistanceLeft, containerRef);\n var wrapperProps = computed(function () {\n return {\n style: {\n height: \"100%\",\n width: \"\".concat(totalWidth.value - offsetLeft.value, \"px\"),\n marginLeft: \"\".concat(offsetLeft.value, \"px\"),\n display: \"flex\"\n }\n };\n });\n return {\n scrollTo: scrollTo,\n calculateRange: calculateRange,\n wrapperProps: wrapperProps,\n containerStyle: containerStyle,\n currentList: currentList,\n containerRef: containerRef\n };\n}\n\nfunction useVerticalVirtualList(options, list) {\n var resources = useVirtualListResources(list);\n var state = resources.state,\n source = resources.source,\n currentList = resources.currentList,\n size = resources.size,\n containerRef = resources.containerRef;\n var containerStyle = {\n overflowY: \"auto\"\n };\n var itemHeight = options.itemHeight,\n _options$overscan2 = options.overscan,\n overscan = _options$overscan2 === void 0 ? 5 : _options$overscan2;\n var getViewCapacity = createGetViewCapacity(state, source, itemHeight);\n var getOffset = createGetOffset(source, itemHeight);\n var calculateRange = createCalculateRange(\"vertical\", overscan, getOffset, getViewCapacity, resources);\n var getDistanceTop = createGetDistance(itemHeight, source);\n var offsetTop = computed(function () {\n return getDistanceTop(state.value.start);\n });\n var totalHeight = createComputedTotalSize(itemHeight, source);\n useWatchForSizes(size, list, containerRef, calculateRange);\n var scrollTo = createScrollTo(\"vertical\", calculateRange, getDistanceTop, containerRef);\n var wrapperProps = computed(function () {\n return {\n style: {\n width: \"100%\",\n height: \"\".concat(totalHeight.value - offsetTop.value, \"px\"),\n marginTop: \"\".concat(offsetTop.value, \"px\")\n }\n };\n });\n return {\n calculateRange: calculateRange,\n scrollTo: scrollTo,\n containerStyle: containerStyle,\n wrapperProps: wrapperProps,\n currentList: currentList,\n containerRef: containerRef\n };\n}\n\nfunction useWakeLock() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$navigator11 = options.navigator,\n navigator = _options$navigator11 === void 0 ? defaultNavigator : _options$navigator11,\n _options$document13 = options.document,\n document = _options$document13 === void 0 ? defaultDocument : _options$document13;\n var wakeLock;\n var isSupported = useSupported(function () {\n return navigator && \"wakeLock\" in navigator;\n });\n var isActive = ref(false);\n\n function onVisibilityChange() {\n return _onVisibilityChange.apply(this, arguments);\n }\n\n function _onVisibilityChange() {\n _onVisibilityChange = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee39() {\n return regeneratorRuntime.wrap(function _callee39$(_context39) {\n while (1) {\n switch (_context39.prev = _context39.next) {\n case 0:\n if (!(!isSupported.value || !wakeLock)) {\n _context39.next = 2;\n break;\n }\n\n return _context39.abrupt(\"return\");\n\n case 2:\n if (!(document && document.visibilityState === \"visible\")) {\n _context39.next = 6;\n break;\n }\n\n _context39.next = 5;\n return navigator.wakeLock.request(\"screen\");\n\n case 5:\n wakeLock = _context39.sent;\n\n case 6:\n isActive.value = !wakeLock.released;\n\n case 7:\n case \"end\":\n return _context39.stop();\n }\n }\n }, _callee39);\n }));\n return _onVisibilityChange.apply(this, arguments);\n }\n\n if (document) useEventListener(document, \"visibilitychange\", onVisibilityChange, {\n passive: true\n });\n\n function request(_x13) {\n return _request.apply(this, arguments);\n }\n\n function _request() {\n _request = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee40(type) {\n return regeneratorRuntime.wrap(function _callee40$(_context40) {\n while (1) {\n switch (_context40.prev = _context40.next) {\n case 0:\n if (isSupported.value) {\n _context40.next = 2;\n break;\n }\n\n return _context40.abrupt(\"return\");\n\n case 2:\n _context40.next = 4;\n return navigator.wakeLock.request(type);\n\n case 4:\n wakeLock = _context40.sent;\n isActive.value = !wakeLock.released;\n\n case 6:\n case \"end\":\n return _context40.stop();\n }\n }\n }, _callee40);\n }));\n return _request.apply(this, arguments);\n }\n\n function release() {\n return _release.apply(this, arguments);\n }\n\n function _release() {\n _release = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee41() {\n return regeneratorRuntime.wrap(function _callee41$(_context41) {\n while (1) {\n switch (_context41.prev = _context41.next) {\n case 0:\n if (!(!isSupported.value || !wakeLock)) {\n _context41.next = 2;\n break;\n }\n\n return _context41.abrupt(\"return\");\n\n case 2:\n _context41.next = 4;\n return wakeLock.release();\n\n case 4:\n isActive.value = !wakeLock.released;\n wakeLock = null;\n\n case 6:\n case \"end\":\n return _context41.stop();\n }\n }\n }, _callee41);\n }));\n return _release.apply(this, arguments);\n }\n\n return {\n isSupported: isSupported,\n isActive: isActive,\n request: request,\n release: release\n };\n}\n\nfunction useWebNotification() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n var _options$window42 = options.window,\n window = _options$window42 === void 0 ? defaultWindow : _options$window42,\n _options$requestPermi2 = options.requestPermissions,\n _requestForPermissions = _options$requestPermi2 === void 0 ? true : _options$requestPermi2;\n\n var defaultWebNotificationOptions = options;\n var isSupported = useSupported(function () {\n if (!window || !(\"Notification\" in window)) return false;\n\n try {\n new Notification(\"\");\n } catch (e) {\n return false;\n }\n\n return true;\n });\n var permissionGranted = ref(isSupported.value && \"permission\" in Notification && Notification.permission === \"granted\");\n var notification = ref(null);\n\n var ensurePermissions = /*#__PURE__*/function () {\n var _ref49 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee42() {\n var result;\n return regeneratorRuntime.wrap(function _callee42$(_context42) {\n while (1) {\n switch (_context42.prev = _context42.next) {\n case 0:\n if (isSupported.value) {\n _context42.next = 2;\n break;\n }\n\n return _context42.abrupt(\"return\");\n\n case 2:\n if (!(!permissionGranted.value && Notification.permission !== \"denied\")) {\n _context42.next = 7;\n break;\n }\n\n _context42.next = 5;\n return Notification.requestPermission();\n\n case 5:\n result = _context42.sent;\n if (result === \"granted\") permissionGranted.value = true;\n\n case 7:\n return _context42.abrupt(\"return\", permissionGranted.value);\n\n case 8:\n case \"end\":\n return _context42.stop();\n }\n }\n }, _callee42);\n }));\n\n return function ensurePermissions() {\n return _ref49.apply(this, arguments);\n };\n }();\n\n var _createEventHook2 = createEventHook(),\n onClick = _createEventHook2.on,\n clickTrigger = _createEventHook2.trigger;\n\n var _createEventHook3 = createEventHook(),\n onShow = _createEventHook3.on,\n showTrigger = _createEventHook3.trigger;\n\n var _createEventHook4 = createEventHook(),\n onError = _createEventHook4.on,\n errorTrigger = _createEventHook4.trigger;\n\n var _createEventHook5 = createEventHook(),\n onClose = _createEventHook5.on,\n closeTrigger = _createEventHook5.trigger;\n\n var show = /*#__PURE__*/function () {\n var _ref50 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee43(overrides) {\n var options2;\n return regeneratorRuntime.wrap(function _callee43$(_context43) {\n while (1) {\n switch (_context43.prev = _context43.next) {\n case 0:\n if (!(!isSupported.value || !permissionGranted.value)) {\n _context43.next = 2;\n break;\n }\n\n return _context43.abrupt(\"return\");\n\n case 2:\n options2 = Object.assign({}, defaultWebNotificationOptions, overrides);\n notification.value = new Notification(options2.title || \"\", options2);\n notification.value.onclick = clickTrigger;\n notification.value.onshow = showTrigger;\n notification.value.onerror = errorTrigger;\n notification.value.onclose = closeTrigger;\n return _context43.abrupt(\"return\", notification.value);\n\n case 9:\n case \"end\":\n return _context43.stop();\n }\n }\n }, _callee43);\n }));\n\n return function show(_x14) {\n return _ref50.apply(this, arguments);\n };\n }();\n\n var close = function close() {\n if (notification.value) notification.value.close();\n notification.value = null;\n };\n\n if (_requestForPermissions) tryOnMounted(ensurePermissions);\n tryOnScopeDispose(close);\n\n if (isSupported.value && window) {\n var _document3 = window.document;\n useEventListener(_document3, \"visibilitychange\", function (e) {\n e.preventDefault();\n\n if (_document3.visibilityState === \"visible\") {\n close();\n }\n });\n }\n\n return {\n isSupported: isSupported,\n notification: notification,\n ensurePermissions: ensurePermissions,\n permissionGranted: permissionGranted,\n show: show,\n close: close,\n onClick: onClick,\n onShow: onShow,\n onError: onError,\n onClose: onClose\n };\n}\n\nvar DEFAULT_PING_MESSAGE = \"ping\";\n\nfunction resolveNestedOptions(options) {\n if (options === true) return {};\n return options;\n}\n\nfunction useWebSocket(url) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var onConnected = options.onConnected,\n onDisconnected = options.onDisconnected,\n onError = options.onError,\n onMessage = options.onMessage,\n _options$immediate12 = options.immediate,\n immediate = _options$immediate12 === void 0 ? true : _options$immediate12,\n _options$autoClose = options.autoClose,\n autoClose = _options$autoClose === void 0 ? true : _options$autoClose,\n _options$protocols = options.protocols,\n protocols = _options$protocols === void 0 ? [] : _options$protocols;\n var data = ref(null);\n var status = ref(\"CLOSED\");\n var wsRef = ref();\n var urlRef = toRef(url);\n var heartbeatPause;\n var heartbeatResume;\n var explicitlyClosed = false;\n var retried = 0;\n var bufferedData = [];\n var pongTimeoutWait;\n\n var _sendBuffer = function _sendBuffer() {\n if (bufferedData.length && wsRef.value && status.value === \"OPEN\") {\n var _iterator14 = _createForOfIteratorHelper(bufferedData),\n _step14;\n\n try {\n for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {\n var buffer = _step14.value;\n wsRef.value.send(buffer);\n }\n } catch (err) {\n _iterator14.e(err);\n } finally {\n _iterator14.f();\n }\n\n bufferedData = [];\n }\n };\n\n var resetHeartbeat = function resetHeartbeat() {\n clearTimeout(pongTimeoutWait);\n pongTimeoutWait = void 0;\n };\n\n var close = function close() {\n var code = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1e3;\n var reason = arguments.length > 1 ? arguments[1] : undefined;\n if (!isClient || !wsRef.value) return;\n explicitlyClosed = true;\n resetHeartbeat();\n heartbeatPause == null ? void 0 : heartbeatPause();\n wsRef.value.close(code, reason);\n wsRef.value = void 0;\n };\n\n var send = function send(data2) {\n var useBuffer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n if (!wsRef.value || status.value !== \"OPEN\") {\n if (useBuffer) bufferedData.push(data2);\n return false;\n }\n\n _sendBuffer();\n\n wsRef.value.send(data2);\n return true;\n };\n\n var _init = function _init() {\n if (explicitlyClosed || typeof urlRef.value === \"undefined\") return;\n var ws = new WebSocket(urlRef.value, protocols);\n wsRef.value = ws;\n status.value = \"CONNECTING\";\n\n ws.onopen = function () {\n status.value = \"OPEN\";\n onConnected == null ? void 0 : onConnected(ws);\n heartbeatResume == null ? void 0 : heartbeatResume();\n\n _sendBuffer();\n };\n\n ws.onclose = function (ev) {\n status.value = \"CLOSED\";\n onDisconnected == null ? void 0 : onDisconnected(ws, ev);\n\n if (!explicitlyClosed && options.autoReconnect) {\n var _resolveNestedOptions4 = resolveNestedOptions(options.autoReconnect),\n _resolveNestedOptions5 = _resolveNestedOptions4.retries,\n retries = _resolveNestedOptions5 === void 0 ? -1 : _resolveNestedOptions5,\n _resolveNestedOptions6 = _resolveNestedOptions4.delay,\n delay = _resolveNestedOptions6 === void 0 ? 1e3 : _resolveNestedOptions6,\n onFailed = _resolveNestedOptions4.onFailed;\n\n retried += 1;\n if (typeof retries === \"number\" && (retries < 0 || retried < retries)) setTimeout(_init, delay);else if (typeof retries === \"function\" && retries()) setTimeout(_init, delay);else onFailed == null ? void 0 : onFailed();\n }\n };\n\n ws.onerror = function (e) {\n onError == null ? void 0 : onError(ws, e);\n };\n\n ws.onmessage = function (e) {\n if (options.heartbeat) {\n resetHeartbeat();\n\n var _resolveNestedOptions7 = resolveNestedOptions(options.heartbeat),\n _resolveNestedOptions8 = _resolveNestedOptions7.message,\n message = _resolveNestedOptions8 === void 0 ? DEFAULT_PING_MESSAGE : _resolveNestedOptions8;\n\n if (e.data === message) return;\n }\n\n data.value = e.data;\n onMessage == null ? void 0 : onMessage(ws, e);\n };\n };\n\n if (options.heartbeat) {\n var _resolveNestedOptions9 = resolveNestedOptions(options.heartbeat),\n _resolveNestedOptions10 = _resolveNestedOptions9.message,\n message = _resolveNestedOptions10 === void 0 ? DEFAULT_PING_MESSAGE : _resolveNestedOptions10,\n _resolveNestedOptions11 = _resolveNestedOptions9.interval,\n interval = _resolveNestedOptions11 === void 0 ? 1e3 : _resolveNestedOptions11,\n _resolveNestedOptions12 = _resolveNestedOptions9.pongTimeout,\n pongTimeout = _resolveNestedOptions12 === void 0 ? 1e3 : _resolveNestedOptions12;\n\n var _useIntervalFn = useIntervalFn(function () {\n send(message, false);\n if (pongTimeoutWait != null) return;\n pongTimeoutWait = setTimeout(function () {\n close();\n explicitlyClosed = false;\n }, pongTimeout);\n }, interval, {\n immediate: false\n }),\n pause = _useIntervalFn.pause,\n resume = _useIntervalFn.resume;\n\n heartbeatPause = pause;\n heartbeatResume = resume;\n }\n\n if (autoClose) {\n if (isClient) useEventListener(\"beforeunload\", function () {\n return close();\n });\n tryOnScopeDispose(close);\n }\n\n var open = function open() {\n if (!isClient && !isWorker) return;\n close();\n explicitlyClosed = false;\n retried = 0;\n\n _init();\n };\n\n if (immediate) open();\n watch(urlRef, open);\n return {\n data: data,\n status: status,\n close: close,\n send: send,\n open: open,\n ws: wsRef\n };\n}\n\nfunction useWebWorker(arg0, workerOptions, options) {\n var _ref51 = options != null ? options : {},\n _ref51$window = _ref51.window,\n window = _ref51$window === void 0 ? defaultWindow : _ref51$window;\n\n var data = ref(null);\n var worker = shallowRef();\n\n var post = function post() {\n var _worker$value;\n\n if (!worker.value) return;\n\n (_worker$value = worker.value).postMessage.apply(_worker$value, arguments);\n };\n\n var terminate = function terminate2() {\n if (!worker.value) return;\n worker.value.terminate();\n };\n\n if (window) {\n if (typeof arg0 === \"string\") worker.value = new Worker(arg0, workerOptions);else if (typeof arg0 === \"function\") worker.value = arg0();else worker.value = arg0;\n\n worker.value.onmessage = function (e) {\n data.value = e.data;\n };\n\n tryOnScopeDispose(function () {\n if (worker.value) worker.value.terminate();\n });\n }\n\n return {\n data: data,\n post: post,\n terminate: terminate,\n worker: worker\n };\n}\n\nfunction jobRunner(userFunc) {\n return function (e) {\n var userFuncArgs = e.data[0];\n return Promise.resolve(userFunc.apply(void 0, userFuncArgs)).then(function (result) {\n postMessage([\"SUCCESS\", result]);\n }).catch(function (error) {\n postMessage([\"ERROR\", error]);\n });\n };\n}\n\nfunction depsParser(deps, localDeps) {\n if (deps.length === 0 && localDeps.length === 0) return \"\";\n var depsString = deps.map(function (dep) {\n return \"'\".concat(dep, \"'\");\n }).toString();\n var depsFunctionString = localDeps.filter(function (dep) {\n return typeof dep === \"function\";\n }).map(function (fn) {\n var str = fn.toString();\n\n if (str.trim().startsWith(\"function\")) {\n return str;\n } else {\n var name = fn.name;\n return \"const \".concat(name, \" = \").concat(str);\n }\n }).join(\";\");\n var importString = \"importScripts(\".concat(depsString, \");\");\n return \"\".concat(depsString.trim() === \"\" ? \"\" : importString, \" \").concat(depsFunctionString);\n}\n\nfunction createWorkerBlobUrl(fn, deps, localDeps) {\n var blobCode = \"\".concat(depsParser(deps, localDeps), \"; onmessage=(\").concat(jobRunner, \")(\").concat(fn, \")\");\n var blob = new Blob([blobCode], {\n type: \"text/javascript\"\n });\n var url = URL.createObjectURL(blob);\n return url;\n}\n\nfunction useWebWorkerFn(fn) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _options$dependencies = options.dependencies,\n dependencies = _options$dependencies === void 0 ? [] : _options$dependencies,\n _options$localDepende = options.localDependencies,\n localDependencies = _options$localDepende === void 0 ? [] : _options$localDepende,\n timeout = options.timeout,\n _options$window43 = options.window,\n window = _options$window43 === void 0 ? defaultWindow : _options$window43;\n var worker = ref();\n var workerStatus = ref(\"PENDING\");\n var promise = ref({});\n var timeoutId = ref();\n\n var workerTerminate = function workerTerminate() {\n var status = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"PENDING\";\n\n if (worker.value && worker.value._url && window) {\n worker.value.terminate();\n URL.revokeObjectURL(worker.value._url);\n promise.value = {};\n worker.value = void 0;\n window.clearTimeout(timeoutId.value);\n workerStatus.value = status;\n }\n };\n\n workerTerminate();\n tryOnScopeDispose(workerTerminate);\n\n var generateWorker = function generateWorker() {\n var blobUrl = createWorkerBlobUrl(fn, dependencies, localDependencies);\n var newWorker = new Worker(blobUrl);\n newWorker._url = blobUrl;\n\n newWorker.onmessage = function (e) {\n var _promise$value = promise.value,\n _promise$value$resolv = _promise$value.resolve,\n resolve = _promise$value$resolv === void 0 ? function () {} : _promise$value$resolv,\n _promise$value$reject = _promise$value.reject,\n reject = _promise$value$reject === void 0 ? function () {} : _promise$value$reject;\n\n var _e$data = _slicedToArray(e.data, 2),\n status = _e$data[0],\n result = _e$data[1];\n\n switch (status) {\n case \"SUCCESS\":\n resolve(result);\n workerTerminate(status);\n break;\n\n default:\n reject(result);\n workerTerminate(\"ERROR\");\n break;\n }\n };\n\n newWorker.onerror = function (e) {\n var _promise$value$reject2 = promise.value.reject,\n reject = _promise$value$reject2 === void 0 ? function () {} : _promise$value$reject2;\n e.preventDefault();\n reject(e);\n workerTerminate(\"ERROR\");\n };\n\n if (timeout) {\n timeoutId.value = setTimeout(function () {\n return workerTerminate(\"TIMEOUT_EXPIRED\");\n }, timeout);\n }\n\n return newWorker;\n };\n\n var callWorker = function callWorker() {\n for (var _len12 = arguments.length, fnArgs = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {\n fnArgs[_key12] = arguments[_key12];\n }\n\n return new Promise(function (resolve, reject) {\n promise.value = {\n resolve: resolve,\n reject: reject\n };\n worker.value && worker.value.postMessage([[].concat(fnArgs)]);\n workerStatus.value = \"RUNNING\";\n });\n };\n\n var workerFn = function workerFn() {\n if (workerStatus.value === \"RUNNING\") {\n console.error(\"[useWebWorkerFn] You can only run one instance of the worker at a time.\");\n return Promise.reject();\n }\n\n worker.value = generateWorker();\n return callWorker.apply(void 0, arguments);\n };\n\n return {\n workerFn: workerFn,\n workerStatus: workerStatus,\n workerTerminate: workerTerminate\n };\n}\n\nfunction useWindowFocus() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$window44 = options.window,\n window = _options$window44 === void 0 ? defaultWindow : _options$window44;\n if (!window) return ref(false);\n var focused = ref(window.document.hasFocus());\n useEventListener(window, \"blur\", function () {\n focused.value = false;\n });\n useEventListener(window, \"focus\", function () {\n focused.value = true;\n });\n return focused;\n}\n\nfunction useWindowScroll() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$window45 = options.window,\n window = _options$window45 === void 0 ? defaultWindow : _options$window45,\n _options$behavior2 = options.behavior,\n behavior = _options$behavior2 === void 0 ? \"auto\" : _options$behavior2;\n\n if (!window) {\n return {\n x: ref(0),\n y: ref(0)\n };\n }\n\n var internalX = ref(window.scrollX);\n var internalY = ref(window.scrollY);\n var x = computed({\n get: function get() {\n return internalX.value;\n },\n set: function set(x2) {\n scrollTo({\n left: x2,\n behavior: behavior\n });\n }\n });\n var y = computed({\n get: function get() {\n return internalY.value;\n },\n set: function set(y2) {\n scrollTo({\n top: y2,\n behavior: behavior\n });\n }\n });\n useEventListener(window, \"scroll\", function () {\n internalX.value = window.scrollX;\n internalY.value = window.scrollY;\n }, {\n capture: false,\n passive: true\n });\n return {\n x: x,\n y: y\n };\n}\n\nfunction useWindowSize() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$window46 = options.window,\n window = _options$window46 === void 0 ? defaultWindow : _options$window46,\n _options$initialWidth = options.initialWidth,\n initialWidth = _options$initialWidth === void 0 ? Number.POSITIVE_INFINITY : _options$initialWidth,\n _options$initialHeigh = options.initialHeight,\n initialHeight = _options$initialHeigh === void 0 ? Number.POSITIVE_INFINITY : _options$initialHeigh,\n _options$listenOrient = options.listenOrientation,\n listenOrientation = _options$listenOrient === void 0 ? true : _options$listenOrient,\n _options$includeScrol = options.includeScrollbar,\n includeScrollbar = _options$includeScrol === void 0 ? true : _options$includeScrol;\n var width = ref(initialWidth);\n var height = ref(initialHeight);\n\n var update = function update() {\n if (window) {\n if (includeScrollbar) {\n width.value = window.innerWidth;\n height.value = window.innerHeight;\n } else {\n width.value = window.document.documentElement.clientWidth;\n height.value = window.document.documentElement.clientHeight;\n }\n }\n };\n\n update();\n tryOnMounted(update);\n useEventListener(\"resize\", update, {\n passive: true\n });\n\n if (listenOrientation) {\n var matches = useMediaQuery(\"(orientation: portrait)\");\n watch(matches, function () {\n return update();\n });\n }\n\n return {\n width: width,\n height: height\n };\n}\n\nexport { DefaultMagicKeysAliasMap, StorageSerializers, TransitionPresets, computedAsync as asyncComputed, breakpointsAntDesign, breakpointsBootstrapV5, breakpointsMasterCss, breakpointsPrimeFlex, breakpointsQuasar, breakpointsSematic, breakpointsTailwind, breakpointsVuetify, breakpointsVuetifyV2, breakpointsVuetifyV3, cloneFnJSON, computedAsync, computedInject, createFetch, createReusableTemplate, createTemplatePromise, createUnrefFn, customStorageEventName, defaultDocument, defaultLocation, defaultNavigator, defaultWindow, executeTransition, formatTimeAgo, getSSRHandler, mapGamepadToXbox360Controller, onClickOutside, onKeyDown, onKeyPressed, onKeyStroke, onKeyUp, onLongPress, onStartTyping, setSSRHandler, templateRef, unrefElement, useActiveElement, useAnimate, useAsyncQueue, useAsyncState, useBase64, useBattery, useBluetooth, useBreakpoints, useBroadcastChannel, useBrowserLocation, useCached, useClipboard, useClipboardItems, useCloned, useColorMode, useConfirmDialog, useCssVar, useCurrentElement, useCycleList, useDark, useDebouncedRefHistory, useDeviceMotion, useDeviceOrientation, useDevicePixelRatio, useDevicesList, useDisplayMedia, useDocumentVisibility, useDraggable, useDropZone, useElementBounding, useElementByPoint, useElementHover, useElementSize, useElementVisibility, useEventBus, useEventListener, useEventSource, useEyeDropper, useFavicon, useFetch, useFileDialog, useFileSystemAccess, useFocus, useFocusWithin, useFps, useFullscreen, useGamepad, useGeolocation, useIdle, useImage, useInfiniteScroll, useIntersectionObserver, useKeyModifier, useLocalStorage, useMagicKeys, useManualRefHistory, useMediaControls, useMediaQuery, useMemoize, useMemory, useMounted, useMouse, useMouseInElement, useMousePressed, useMutationObserver, useNavigatorLanguage, useNetwork, useNow, useObjectUrl, useOffsetPagination, useOnline, usePageLeave, useParallax, useParentElement, usePerformanceObserver, usePermission, usePointer, usePointerLock, usePointerSwipe, usePreferredColorScheme, usePreferredContrast, usePreferredDark, usePreferredLanguages, usePreferredReducedMotion, usePrevious, useRafFn, useRefHistory, useResizeObserver, useScreenOrientation, useScreenSafeArea, useScriptTag, useScroll, useScrollLock, useSessionStorage, useShare, useSorted, useSpeechRecognition, useSpeechSynthesis, useStepper, useStorage, useStorageAsync, useStyleTag, useSupported, useSwipe, useTemplateRefsList, useTextDirection, useTextSelection, useTextareaAutosize, useThrottledRefHistory, useTimeAgo, useTimeoutPoll, useTimestamp, useTitle, useTransition, useUrlSearchParams, useUserMedia, useVModel, useVModels, useVibrate, useVirtualList, useWakeLock, useWebNotification, useWebSocket, useWebWorker, useWebWorkerFn, useWindowFocus, useWindowScroll, useWindowSize };","var $ = require('../internals/export');\nvar iterate = require('../internals/iterate');\nvar createProperty = require('../internals/create-property');\n\n// `Object.fromEntries` method\n// https://github.com/tc39/proposal-object-from-entries\n$({ target: 'Object', stat: true }, {\n fromEntries: function fromEntries(iterable) {\n var obj = {};\n iterate(iterable, function (k, v) {\n createProperty(obj, k, v);\n }, { AS_ENTRIES: true });\n return obj;\n }\n});\n","import { keyName, base } from 'w3c-keyname';\nimport { Plugin } from 'prosemirror-state'; // declare global: navigator\n\nvar mac = typeof navigator != \"undefined\" ? /Mac/.test(navigator.platform) : false;\n\nfunction normalizeKeyName(name) {\n var parts = name.split(/-(?!$)/),\n result = parts[parts.length - 1];\n\n if (result == \"Space\") {\n result = \" \";\n }\n\n var alt, ctrl, shift, meta;\n\n for (var i = 0; i < parts.length - 1; i++) {\n var mod = parts[i];\n\n if (/^(cmd|meta|m)$/i.test(mod)) {\n meta = true;\n } else if (/^a(lt)?$/i.test(mod)) {\n alt = true;\n } else if (/^(c|ctrl|control)$/i.test(mod)) {\n ctrl = true;\n } else if (/^s(hift)?$/i.test(mod)) {\n shift = true;\n } else if (/^mod$/i.test(mod)) {\n if (mac) {\n meta = true;\n } else {\n ctrl = true;\n }\n } else {\n throw new Error(\"Unrecognized modifier name: \" + mod);\n }\n }\n\n if (alt) {\n result = \"Alt-\" + result;\n }\n\n if (ctrl) {\n result = \"Ctrl-\" + result;\n }\n\n if (meta) {\n result = \"Meta-\" + result;\n }\n\n if (shift) {\n result = \"Shift-\" + result;\n }\n\n return result;\n}\n\nfunction normalize(map) {\n var copy = Object.create(null);\n\n for (var prop in map) {\n copy[normalizeKeyName(prop)] = map[prop];\n }\n\n return copy;\n}\n\nfunction modifiers(name, event, shift) {\n if (event.altKey) {\n name = \"Alt-\" + name;\n }\n\n if (event.ctrlKey) {\n name = \"Ctrl-\" + name;\n }\n\n if (event.metaKey) {\n name = \"Meta-\" + name;\n }\n\n if (shift !== false && event.shiftKey) {\n name = \"Shift-\" + name;\n }\n\n return name;\n} // :: (Object) → Plugin\n// Create a keymap plugin for the given set of bindings.\n//\n// Bindings should map key names to [command](#commands)-style\n// functions, which will be called with `(EditorState, dispatch,\n// EditorView)` arguments, and should return true when they've handled\n// the key. Note that the view argument isn't part of the command\n// protocol, but can be used as an escape hatch if a binding needs to\n// directly interact with the UI.\n//\n// Key names may be strings like `\"Shift-Ctrl-Enter\"`—a key\n// identifier prefixed with zero or more modifiers. Key identifiers\n// are based on the strings that can appear in\n// [`KeyEvent.key`](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key).\n// Use lowercase letters to refer to letter keys (or uppercase letters\n// if you want shift to be held). You may use `\"Space\"` as an alias\n// for the `\" \"` name.\n//\n// Modifiers can be given in any order. `Shift-` (or `s-`), `Alt-` (or\n// `a-`), `Ctrl-` (or `c-` or `Control-`) and `Cmd-` (or `m-` or\n// `Meta-`) are recognized. For characters that are created by holding\n// shift, the `Shift-` prefix is implied, and should not be added\n// explicitly.\n//\n// You can use `Mod-` as a shorthand for `Cmd-` on Mac and `Ctrl-` on\n// other platforms.\n//\n// You can add multiple keymap plugins to an editor. The order in\n// which they appear determines their precedence (the ones early in\n// the array get to dispatch first).\n\n\nfunction keymap(bindings) {\n return new Plugin({\n props: {\n handleKeyDown: keydownHandler(bindings)\n }\n });\n} // :: (Object) → (view: EditorView, event: dom.Event) → bool\n// Given a set of bindings (using the same format as\n// [`keymap`](#keymap.keymap), return a [keydown\n// handler](#view.EditorProps.handleKeyDown) that handles them.\n\n\nfunction keydownHandler(bindings) {\n var map = normalize(bindings);\n return function (view, event) {\n var name = keyName(event),\n isChar = name.length == 1 && name != \" \",\n baseName;\n var direct = map[modifiers(name, event, !isChar)];\n\n if (direct && direct(view.state, view.dispatch, view)) {\n return true;\n }\n\n if (isChar && (event.shiftKey || event.altKey || event.metaKey || name.charCodeAt(0) > 127) && (baseName = base[event.keyCode]) && baseName != name) {\n // Try falling back to the keyCode when there's a modifier\n // active or the character produced isn't ASCII, and our table\n // produces a different name from the the keyCode. See #668,\n // #1060\n var fromCode = map[modifiers(baseName, event, true)];\n\n if (fromCode && fromCode(view.state, view.dispatch, view)) {\n return true;\n }\n } else if (isChar && event.shiftKey) {\n // Otherwise, if shift is active, also try the binding with the\n // Shift- prefix enabled. See #997\n var withShift = map[modifiers(name, event, true)];\n\n if (withShift && withShift(view.state, view.dispatch, view)) {\n return true;\n }\n }\n\n return false;\n };\n}\n\nexport { keydownHandler, keymap };","'use strict';\n\nmodule.exports = function (opts) {\n var re = {};\n opts = opts || {}; // Use direct extract instead of `regenerate` to reduse browserified size\n\n re.src_Any = require('uc.micro/properties/Any/regex').source;\n re.src_Cc = require('uc.micro/categories/Cc/regex').source;\n re.src_Z = require('uc.micro/categories/Z/regex').source;\n re.src_P = require('uc.micro/categories/P/regex').source; // \\p{\\Z\\P\\Cc\\CF} (white spaces + control + format + punctuation)\n\n re.src_ZPCc = [re.src_Z, re.src_P, re.src_Cc].join('|'); // \\p{\\Z\\Cc} (white spaces + control)\n\n re.src_ZCc = [re.src_Z, re.src_Cc].join('|'); // Experimental. List of chars, completely prohibited in links\n // because can separate it from other part of text\n\n var text_separators = \"[><\\uFF5C]\"; // All possible word characters (everything without punctuation, spaces & controls)\n // Defined via punctuation & spaces to save space\n // Should be something like \\p{\\L\\N\\S\\M} (\\w but without `_`)\n\n re.src_pseudo_letter = '(?:(?!' + text_separators + '|' + re.src_ZPCc + ')' + re.src_Any + ')'; // The same as abothe but without [0-9]\n // var src_pseudo_letter_non_d = '(?:(?![0-9]|' + src_ZPCc + ')' + src_Any + ')';\n ////////////////////////////////////////////////////////////////////////////////\n\n re.src_ip4 = '(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)'; // Prohibit any of \"@/[]()\" in user/pass to avoid wrong domain fetch.\n\n re.src_auth = '(?:(?:(?!' + re.src_ZCc + '|[@/\\\\[\\\\]()]).)+@)?';\n re.src_port = '(?::(?:6(?:[0-4]\\\\d{3}|5(?:[0-4]\\\\d{2}|5(?:[0-2]\\\\d|3[0-5])))|[1-5]?\\\\d{1,4}))?';\n re.src_host_terminator = '(?=$|' + text_separators + '|' + re.src_ZPCc + ')' + '(?!' + (opts['---'] ? '-(?!--)|' : '-|') + '_|:\\\\d|\\\\.-|\\\\.(?!$|' + re.src_ZPCc + '))';\n re.src_path = '(?:' + '[/?#]' + '(?:' + '(?!' + re.src_ZCc + '|' + text_separators + '|[()[\\\\]{}.,\"\\'?!\\\\-;]).|' + '\\\\[(?:(?!' + re.src_ZCc + '|\\\\]).)*\\\\]|' + '\\\\((?:(?!' + re.src_ZCc + '|[)]).)*\\\\)|' + '\\\\{(?:(?!' + re.src_ZCc + '|[}]).)*\\\\}|' + '\\\\\"(?:(?!' + re.src_ZCc + '|[\"]).)+\\\\\"|' + \"\\\\'(?:(?!\" + re.src_ZCc + \"|[']).)+\\\\'|\" + \"\\\\'(?=\" + re.src_pseudo_letter + '|[-])|' + // allow `I'm_king` if no pair found\n '\\\\.{2,}[a-zA-Z0-9%/&]|' + // google has many dots in \"google search\" links (#66, #81).\n // github has ... in commit range links,\n // Restrict to\n // - english\n // - percent-encoded\n // - parts of file path\n // - params separator\n // until more examples found.\n '\\\\.(?!' + re.src_ZCc + '|[.]|$)|' + (opts['---'] ? '\\\\-(?!--(?:[^-]|$))(?:-*)|' // `---` => long dash, terminate\n : '\\\\-+|') + ',(?!' + re.src_ZCc + '|$)|' + // allow `,,,` in paths\n ';(?!' + re.src_ZCc + '|$)|' + // allow `;` if not followed by space-like char\n '\\\\!+(?!' + re.src_ZCc + '|[!]|$)|' + // allow `!!!` in paths, but not at the end\n '\\\\?(?!' + re.src_ZCc + '|[?]|$)' + ')+' + '|\\\\/' + ')?'; // Allow anything in markdown spec, forbid quote (\") at the first position\n // because emails enclosed in quotes are far more common\n\n re.src_email_name = '[\\\\-;:&=\\\\+\\\\$,\\\\.a-zA-Z0-9_][\\\\-;:&=\\\\+\\\\$,\\\\\"\\\\.a-zA-Z0-9_]*';\n re.src_xn = 'xn--[a-z0-9\\\\-]{1,59}'; // More to read about domain names\n // http://serverfault.com/questions/638260/\n\n re.src_domain_root = // Allow letters & digits (http://test1)\n '(?:' + re.src_xn + '|' + re.src_pseudo_letter + '{1,63}' + ')';\n re.src_domain = '(?:' + re.src_xn + '|' + '(?:' + re.src_pseudo_letter + ')' + '|' + '(?:' + re.src_pseudo_letter + '(?:-|' + re.src_pseudo_letter + '){0,61}' + re.src_pseudo_letter + ')' + ')';\n re.src_host = '(?:' + // Don't need IP check, because digits are already allowed in normal domain names\n // src_ip4 +\n // '|' +\n '(?:(?:(?:' + re.src_domain + ')\\\\.)*' + re.src_domain\n /*_root*/\n + ')' + ')';\n re.tpl_host_fuzzy = '(?:' + re.src_ip4 + '|' + '(?:(?:(?:' + re.src_domain + ')\\\\.)+(?:%TLDS%))' + ')';\n re.tpl_host_no_ip_fuzzy = '(?:(?:(?:' + re.src_domain + ')\\\\.)+(?:%TLDS%))';\n re.src_host_strict = re.src_host + re.src_host_terminator;\n re.tpl_host_fuzzy_strict = re.tpl_host_fuzzy + re.src_host_terminator;\n re.src_host_port_strict = re.src_host + re.src_port + re.src_host_terminator;\n re.tpl_host_port_fuzzy_strict = re.tpl_host_fuzzy + re.src_port + re.src_host_terminator;\n re.tpl_host_port_no_ip_fuzzy_strict = re.tpl_host_no_ip_fuzzy + re.src_port + re.src_host_terminator; ////////////////////////////////////////////////////////////////////////////////\n // Main rules\n // Rude test fuzzy links by host, for quick deny\n\n re.tpl_host_fuzzy_test = 'localhost|www\\\\.|\\\\.\\\\d{1,3}\\\\.|(?:\\\\.(?:%TLDS%)(?:' + re.src_ZPCc + '|>|$))';\n re.tpl_email_fuzzy = '(^|' + text_separators + '|\"|\\\\(|' + re.src_ZCc + ')' + '(' + re.src_email_name + '@' + re.tpl_host_fuzzy_strict + ')';\n re.tpl_link_fuzzy = // Fuzzy link can't be prepended with .:/\\- and non punctuation.\n // but can start with > (markdown blockquote)\n \"(^|(?![.:/\\\\-_@])(?:[$+<=>^`|\\uFF5C]|\" + re.src_ZPCc + '))' + \"((?![$+<=>^`|\\uFF5C])\" + re.tpl_host_port_fuzzy_strict + re.src_path + ')';\n re.tpl_link_no_ip_fuzzy = // Fuzzy link can't be prepended with .:/\\- and non punctuation.\n // but can start with > (markdown blockquote)\n \"(^|(?![.:/\\\\-_@])(?:[$+<=>^`|\\uFF5C]|\" + re.src_ZPCc + '))' + \"((?![$+<=>^`|\\uFF5C])\" + re.tpl_host_port_no_ip_fuzzy_strict + re.src_path + ')';\n return re;\n};","// Main parser class\n'use strict';\n\nvar utils = require('./common/utils');\n\nvar helpers = require('./helpers');\n\nvar Renderer = require('./renderer');\n\nvar ParserCore = require('./parser_core');\n\nvar ParserBlock = require('./parser_block');\n\nvar ParserInline = require('./parser_inline');\n\nvar LinkifyIt = require('linkify-it');\n\nvar mdurl = require('mdurl');\n\nvar punycode = require('punycode');\n\nvar config = {\n default: require('./presets/default'),\n zero: require('./presets/zero'),\n commonmark: require('./presets/commonmark')\n}; ////////////////////////////////////////////////////////////////////////////////\n//\n// This validator can prohibit more than really needed to prevent XSS. It's a\n// tradeoff to keep code simple and to be secure by default.\n//\n// If you need different setup - override validator method as you wish. Or\n// replace it with dummy function and use external sanitizer.\n//\n\nvar BAD_PROTO_RE = /^(vbscript|javascript|file|data):/;\nvar GOOD_DATA_RE = /^data:image\\/(gif|png|jpeg|webp);/;\n\nfunction validateLink(url) {\n // url should be normalized at this point, and existing entities are decoded\n var str = url.trim().toLowerCase();\n return BAD_PROTO_RE.test(str) ? GOOD_DATA_RE.test(str) ? true : false : true;\n} ////////////////////////////////////////////////////////////////////////////////\n\n\nvar RECODE_HOSTNAME_FOR = ['http:', 'https:', 'mailto:'];\n\nfunction normalizeLink(url) {\n var parsed = mdurl.parse(url, true);\n\n if (parsed.hostname) {\n // Encode hostnames in urls like:\n // `http://host/`, `https://host/`, `mailto:user@host`, `//host/`\n //\n // We don't encode unknown schemas, because it's likely that we encode\n // something we shouldn't (e.g. `skype:name` treated as `skype:host`)\n //\n if (!parsed.protocol || RECODE_HOSTNAME_FOR.indexOf(parsed.protocol) >= 0) {\n try {\n parsed.hostname = punycode.toASCII(parsed.hostname);\n } catch (er) {\n /**/\n }\n }\n }\n\n return mdurl.encode(mdurl.format(parsed));\n}\n\nfunction normalizeLinkText(url) {\n var parsed = mdurl.parse(url, true);\n\n if (parsed.hostname) {\n // Encode hostnames in urls like:\n // `http://host/`, `https://host/`, `mailto:user@host`, `//host/`\n //\n // We don't encode unknown schemas, because it's likely that we encode\n // something we shouldn't (e.g. `skype:name` treated as `skype:host`)\n //\n if (!parsed.protocol || RECODE_HOSTNAME_FOR.indexOf(parsed.protocol) >= 0) {\n try {\n parsed.hostname = punycode.toUnicode(parsed.hostname);\n } catch (er) {\n /**/\n }\n }\n } // add '%' to exclude list because of https://github.com/markdown-it/markdown-it/issues/720\n\n\n return mdurl.decode(mdurl.format(parsed), mdurl.decode.defaultChars + '%');\n}\n/**\n * class MarkdownIt\n *\n * Main parser/renderer class.\n *\n * ##### Usage\n *\n * ```javascript\n * // node.js, \"classic\" way:\n * var MarkdownIt = require('markdown-it'),\n * md = new MarkdownIt();\n * var result = md.render('# markdown-it rulezz!');\n *\n * // node.js, the same, but with sugar:\n * var md = require('markdown-it')();\n * var result = md.render('# markdown-it rulezz!');\n *\n * // browser without AMD, added to \"window\" on script load\n * // Note, there are no dash.\n * var md = window.markdownit();\n * var result = md.render('# markdown-it rulezz!');\n * ```\n *\n * Single line rendering, without paragraph wrap:\n *\n * ```javascript\n * var md = require('markdown-it')();\n * var result = md.renderInline('__markdown-it__ rulezz!');\n * ```\n **/\n\n/**\n * new MarkdownIt([presetName, options])\n * - presetName (String): optional, `commonmark` / `zero`\n * - options (Object)\n *\n * Creates parser instanse with given config. Can be called without `new`.\n *\n * ##### presetName\n *\n * MarkdownIt provides named presets as a convenience to quickly\n * enable/disable active syntax rules and options for common use cases.\n *\n * - [\"commonmark\"](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/commonmark.js) -\n * configures parser to strict [CommonMark](http://commonmark.org/) mode.\n * - [default](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/default.js) -\n * similar to GFM, used when no preset name given. Enables all available rules,\n * but still without html, typographer & autolinker.\n * - [\"zero\"](https://github.com/markdown-it/markdown-it/blob/master/lib/presets/zero.js) -\n * all rules disabled. Useful to quickly setup your config via `.enable()`.\n * For example, when you need only `bold` and `italic` markup and nothing else.\n *\n * ##### options:\n *\n * - __html__ - `false`. Set `true` to enable HTML tags in source. Be careful!\n * That's not safe! You may need external sanitizer to protect output from XSS.\n * It's better to extend features via plugins, instead of enabling HTML.\n * - __xhtmlOut__ - `false`. Set `true` to add '/' when closing single tags\n * (`
`). This is needed only for full CommonMark compatibility. In real\n * world you will need HTML output.\n * - __breaks__ - `false`. Set `true` to convert `\\n` in paragraphs into `
`.\n * - __langPrefix__ - `language-`. CSS language class prefix for fenced blocks.\n * Can be useful for external highlighters.\n * - __linkify__ - `false`. Set `true` to autoconvert URL-like text to links.\n * - __typographer__ - `false`. Set `true` to enable [some language-neutral\n * replacement](https://github.com/markdown-it/markdown-it/blob/master/lib/rules_core/replacements.js) +\n * quotes beautification (smartquotes).\n * - __quotes__ - `“”‘’`, String or Array. Double + single quotes replacement\n * pairs, when typographer enabled and smartquotes on. For example, you can\n * use `'«»„“'` for Russian, `'„“‚‘'` for German, and\n * `['«\\xA0', '\\xA0»', '‹\\xA0', '\\xA0›']` for French (including nbsp).\n * - __highlight__ - `null`. Highlighter function for fenced code blocks.\n * Highlighter `function (str, lang)` should return escaped HTML. It can also\n * return empty string if the source was not changed and should be escaped\n * externaly. If result starts with `):\n *\n * ```javascript\n * var hljs = require('highlight.js') // https://highlightjs.org/\n *\n * // Actual default values\n * var md = require('markdown-it')({\n * highlight: function (str, lang) {\n * if (lang && hljs.getLanguage(lang)) {\n * try {\n * return '' +\n * hljs.highlight(str, { language: lang, ignoreIllegals: true }).value +\n * '
';\n * } catch (__) {}\n * }\n *\n * return '' + md.utils.escapeHtml(str) + '
';\n * }\n * });\n * ```\n *\n **/\n\n\nfunction MarkdownIt(presetName, options) {\n if (!(this instanceof MarkdownIt)) {\n return new MarkdownIt(presetName, options);\n }\n\n if (!options) {\n if (!utils.isString(presetName)) {\n options = presetName || {};\n presetName = 'default';\n }\n }\n /**\n * MarkdownIt#inline -> ParserInline\n *\n * Instance of [[ParserInline]]. You may need it to add new rules when\n * writing plugins. For simple rules control use [[MarkdownIt.disable]] and\n * [[MarkdownIt.enable]].\n **/\n\n\n this.inline = new ParserInline();\n /**\n * MarkdownIt#block -> ParserBlock\n *\n * Instance of [[ParserBlock]]. You may need it to add new rules when\n * writing plugins. For simple rules control use [[MarkdownIt.disable]] and\n * [[MarkdownIt.enable]].\n **/\n\n this.block = new ParserBlock();\n /**\n * MarkdownIt#core -> Core\n *\n * Instance of [[Core]] chain executor. You may need it to add new rules when\n * writing plugins. For simple rules control use [[MarkdownIt.disable]] and\n * [[MarkdownIt.enable]].\n **/\n\n this.core = new ParserCore();\n /**\n * MarkdownIt#renderer -> Renderer\n *\n * Instance of [[Renderer]]. Use it to modify output look. Or to add rendering\n * rules for new token types, generated by plugins.\n *\n * ##### Example\n *\n * ```javascript\n * var md = require('markdown-it')();\n *\n * function myToken(tokens, idx, options, env, self) {\n * //...\n * return result;\n * };\n *\n * md.renderer.rules['my_token'] = myToken\n * ```\n *\n * See [[Renderer]] docs and [source code](https://github.com/markdown-it/markdown-it/blob/master/lib/renderer.js).\n **/\n\n this.renderer = new Renderer();\n /**\n * MarkdownIt#linkify -> LinkifyIt\n *\n * [linkify-it](https://github.com/markdown-it/linkify-it) instance.\n * Used by [linkify](https://github.com/markdown-it/markdown-it/blob/master/lib/rules_core/linkify.js)\n * rule.\n **/\n\n this.linkify = new LinkifyIt();\n /**\n * MarkdownIt#validateLink(url) -> Boolean\n *\n * Link validation function. CommonMark allows too much in links. By default\n * we disable `javascript:`, `vbscript:`, `file:` schemas, and almost all `data:...` schemas\n * except some embedded image types.\n *\n * You can change this behaviour:\n *\n * ```javascript\n * var md = require('markdown-it')();\n * // enable everything\n * md.validateLink = function () { return true; }\n * ```\n **/\n\n this.validateLink = validateLink;\n /**\n * MarkdownIt#normalizeLink(url) -> String\n *\n * Function used to encode link url to a machine-readable format,\n * which includes url-encoding, punycode, etc.\n **/\n\n this.normalizeLink = normalizeLink;\n /**\n * MarkdownIt#normalizeLinkText(url) -> String\n *\n * Function used to decode link url to a human-readable format`\n **/\n\n this.normalizeLinkText = normalizeLinkText; // Expose utils & helpers for easy acces from plugins\n\n /**\n * MarkdownIt#utils -> utils\n *\n * Assorted utility functions, useful to write plugins. See details\n * [here](https://github.com/markdown-it/markdown-it/blob/master/lib/common/utils.js).\n **/\n\n this.utils = utils;\n /**\n * MarkdownIt#helpers -> helpers\n *\n * Link components parser functions, useful to write plugins. See details\n * [here](https://github.com/markdown-it/markdown-it/blob/master/lib/helpers).\n **/\n\n this.helpers = utils.assign({}, helpers);\n this.options = {};\n this.configure(presetName);\n\n if (options) {\n this.set(options);\n }\n}\n/** chainable\n * MarkdownIt.set(options)\n *\n * Set parser options (in the same format as in constructor). Probably, you\n * will never need it, but you can change options after constructor call.\n *\n * ##### Example\n *\n * ```javascript\n * var md = require('markdown-it')()\n * .set({ html: true, breaks: true })\n * .set({ typographer, true });\n * ```\n *\n * __Note:__ To achieve the best possible performance, don't modify a\n * `markdown-it` instance options on the fly. If you need multiple configurations\n * it's best to create multiple instances and initialize each with separate\n * config.\n **/\n\n\nMarkdownIt.prototype.set = function (options) {\n utils.assign(this.options, options);\n return this;\n};\n/** chainable, internal\n * MarkdownIt.configure(presets)\n *\n * Batch load of all options and compenent settings. This is internal method,\n * and you probably will not need it. But if you will - see available presets\n * and data structure [here](https://github.com/markdown-it/markdown-it/tree/master/lib/presets)\n *\n * We strongly recommend to use presets instead of direct config loads. That\n * will give better compatibility with next versions.\n **/\n\n\nMarkdownIt.prototype.configure = function (presets) {\n var self = this,\n presetName;\n\n if (utils.isString(presets)) {\n presetName = presets;\n presets = config[presetName];\n\n if (!presets) {\n throw new Error('Wrong `markdown-it` preset \"' + presetName + '\", check name');\n }\n }\n\n if (!presets) {\n throw new Error('Wrong `markdown-it` preset, can\\'t be empty');\n }\n\n if (presets.options) {\n self.set(presets.options);\n }\n\n if (presets.components) {\n Object.keys(presets.components).forEach(function (name) {\n if (presets.components[name].rules) {\n self[name].ruler.enableOnly(presets.components[name].rules);\n }\n\n if (presets.components[name].rules2) {\n self[name].ruler2.enableOnly(presets.components[name].rules2);\n }\n });\n }\n\n return this;\n};\n/** chainable\n * MarkdownIt.enable(list, ignoreInvalid)\n * - list (String|Array): rule name or list of rule names to enable\n * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.\n *\n * Enable list or rules. It will automatically find appropriate components,\n * containing rules with given names. If rule not found, and `ignoreInvalid`\n * not set - throws exception.\n *\n * ##### Example\n *\n * ```javascript\n * var md = require('markdown-it')()\n * .enable(['sub', 'sup'])\n * .disable('smartquotes');\n * ```\n **/\n\n\nMarkdownIt.prototype.enable = function (list, ignoreInvalid) {\n var result = [];\n\n if (!Array.isArray(list)) {\n list = [list];\n }\n\n ['core', 'block', 'inline'].forEach(function (chain) {\n result = result.concat(this[chain].ruler.enable(list, true));\n }, this);\n result = result.concat(this.inline.ruler2.enable(list, true));\n var missed = list.filter(function (name) {\n return result.indexOf(name) < 0;\n });\n\n if (missed.length && !ignoreInvalid) {\n throw new Error('MarkdownIt. Failed to enable unknown rule(s): ' + missed);\n }\n\n return this;\n};\n/** chainable\n * MarkdownIt.disable(list, ignoreInvalid)\n * - list (String|Array): rule name or list of rule names to disable.\n * - ignoreInvalid (Boolean): set `true` to ignore errors when rule not found.\n *\n * The same as [[MarkdownIt.enable]], but turn specified rules off.\n **/\n\n\nMarkdownIt.prototype.disable = function (list, ignoreInvalid) {\n var result = [];\n\n if (!Array.isArray(list)) {\n list = [list];\n }\n\n ['core', 'block', 'inline'].forEach(function (chain) {\n result = result.concat(this[chain].ruler.disable(list, true));\n }, this);\n result = result.concat(this.inline.ruler2.disable(list, true));\n var missed = list.filter(function (name) {\n return result.indexOf(name) < 0;\n });\n\n if (missed.length && !ignoreInvalid) {\n throw new Error('MarkdownIt. Failed to disable unknown rule(s): ' + missed);\n }\n\n return this;\n};\n/** chainable\n * MarkdownIt.use(plugin, params)\n *\n * Load specified plugin with given params into current parser instance.\n * It's just a sugar to call `plugin(md, params)` with curring.\n *\n * ##### Example\n *\n * ```javascript\n * var iterator = require('markdown-it-for-inline');\n * var md = require('markdown-it')()\n * .use(iterator, 'foo_replace', 'text', function (tokens, idx) {\n * tokens[idx].content = tokens[idx].content.replace(/foo/g, 'bar');\n * });\n * ```\n **/\n\n\nMarkdownIt.prototype.use = function (plugin\n/*, params, ... */\n) {\n var args = [this].concat(Array.prototype.slice.call(arguments, 1));\n plugin.apply(plugin, args);\n return this;\n};\n/** internal\n * MarkdownIt.parse(src, env) -> Array\n * - src (String): source string\n * - env (Object): environment sandbox\n *\n * Parse input string and return list of block tokens (special token type\n * \"inline\" will contain list of inline tokens). You should not call this\n * method directly, until you write custom renderer (for example, to produce\n * AST).\n *\n * `env` is used to pass data between \"distributed\" rules and return additional\n * metadata like reference info, needed for the renderer. It also can be used to\n * inject data in specific cases. Usually, you will be ok to pass `{}`,\n * and then pass updated object to renderer.\n **/\n\n\nMarkdownIt.prototype.parse = function (src, env) {\n if (typeof src !== 'string') {\n throw new Error('Input data should be a String');\n }\n\n var state = new this.core.State(src, this, env);\n this.core.process(state);\n return state.tokens;\n};\n/**\n * MarkdownIt.render(src [, env]) -> String\n * - src (String): source string\n * - env (Object): environment sandbox\n *\n * Render markdown string into html. It does all magic for you :).\n *\n * `env` can be used to inject additional metadata (`{}` by default).\n * But you will not need it with high probability. See also comment\n * in [[MarkdownIt.parse]].\n **/\n\n\nMarkdownIt.prototype.render = function (src, env) {\n env = env || {};\n return this.renderer.render(this.parse(src, env), this.options, env);\n};\n/** internal\n * MarkdownIt.parseInline(src, env) -> Array\n * - src (String): source string\n * - env (Object): environment sandbox\n *\n * The same as [[MarkdownIt.parse]] but skip all block rules. It returns the\n * block tokens list with the single `inline` element, containing parsed inline\n * tokens in `children` property. Also updates `env` object.\n **/\n\n\nMarkdownIt.prototype.parseInline = function (src, env) {\n var state = new this.core.State(src, this, env);\n state.inlineMode = true;\n this.core.process(state);\n return state.tokens;\n};\n/**\n * MarkdownIt.renderInline(src [, env]) -> String\n * - src (String): source string\n * - env (Object): environment sandbox\n *\n * Similar to [[MarkdownIt.render]] but for single paragraph content. Result\n * will NOT be wrapped into `` tags.\n **/\n\n\nMarkdownIt.prototype.renderInline = function (src, env) {\n env = env || {};\n return this.renderer.render(this.parseInline(src, env), this.options, env);\n};\n\nmodule.exports = MarkdownIt;","'use strict';\n\nvar encodeCache = {}; // Create a lookup array where anything but characters in `chars` string\n// and alphanumeric chars is percent-encoded.\n//\n\nfunction getEncodeCache(exclude) {\n var i,\n ch,\n cache = encodeCache[exclude];\n\n if (cache) {\n return cache;\n }\n\n cache = encodeCache[exclude] = [];\n\n for (i = 0; i < 128; i++) {\n ch = String.fromCharCode(i);\n\n if (/^[0-9a-z]$/i.test(ch)) {\n // always allow unencoded alphanumeric characters\n cache.push(ch);\n } else {\n cache.push('%' + ('0' + i.toString(16).toUpperCase()).slice(-2));\n }\n }\n\n for (i = 0; i < exclude.length; i++) {\n cache[exclude.charCodeAt(i)] = exclude[i];\n }\n\n return cache;\n} // Encode unsafe characters with percent-encoding, skipping already\n// encoded sequences.\n//\n// - string - string to encode\n// - exclude - list of characters to ignore (in addition to a-zA-Z0-9)\n// - keepEscaped - don't encode '%' in a correct escape sequence (default: true)\n//\n\n\nfunction encode(string, exclude, keepEscaped) {\n var i,\n l,\n code,\n nextCode,\n cache,\n result = '';\n\n if (typeof exclude !== 'string') {\n // encode(string, keepEscaped)\n keepEscaped = exclude;\n exclude = encode.defaultChars;\n }\n\n if (typeof keepEscaped === 'undefined') {\n keepEscaped = true;\n }\n\n cache = getEncodeCache(exclude);\n\n for (i = 0, l = string.length; i < l; i++) {\n code = string.charCodeAt(i);\n\n if (keepEscaped && code === 0x25\n /* % */\n && i + 2 < l) {\n if (/^[0-9a-f]{2}$/i.test(string.slice(i + 1, i + 3))) {\n result += string.slice(i, i + 3);\n i += 2;\n continue;\n }\n }\n\n if (code < 128) {\n result += cache[code];\n continue;\n }\n\n if (code >= 0xD800 && code <= 0xDFFF) {\n if (code >= 0xD800 && code <= 0xDBFF && i + 1 < l) {\n nextCode = string.charCodeAt(i + 1);\n\n if (nextCode >= 0xDC00 && nextCode <= 0xDFFF) {\n result += encodeURIComponent(string[i] + string[i + 1]);\n i++;\n continue;\n }\n }\n\n result += '%EF%BF%BD';\n continue;\n }\n\n result += encodeURIComponent(string[i]);\n }\n\n return result;\n}\n\nencode.defaultChars = \";/?:@&=+$,-_.!~*'()#\";\nencode.componentChars = \"-_.!~*'()\";\nmodule.exports = encode;","'use strict';\n/* eslint-disable no-bitwise */\n\nvar decodeCache = {};\n\nfunction getDecodeCache(exclude) {\n var i,\n ch,\n cache = decodeCache[exclude];\n\n if (cache) {\n return cache;\n }\n\n cache = decodeCache[exclude] = [];\n\n for (i = 0; i < 128; i++) {\n ch = String.fromCharCode(i);\n cache.push(ch);\n }\n\n for (i = 0; i < exclude.length; i++) {\n ch = exclude.charCodeAt(i);\n cache[ch] = '%' + ('0' + ch.toString(16).toUpperCase()).slice(-2);\n }\n\n return cache;\n} // Decode percent-encoded string.\n//\n\n\nfunction decode(string, exclude) {\n var cache;\n\n if (typeof exclude !== 'string') {\n exclude = decode.defaultChars;\n }\n\n cache = getDecodeCache(exclude);\n return string.replace(/(%[a-f0-9]{2})+/gi, function (seq) {\n var i,\n l,\n b1,\n b2,\n b3,\n b4,\n chr,\n result = '';\n\n for (i = 0, l = seq.length; i < l; i += 3) {\n b1 = parseInt(seq.slice(i + 1, i + 3), 16);\n\n if (b1 < 0x80) {\n result += cache[b1];\n continue;\n }\n\n if ((b1 & 0xE0) === 0xC0 && i + 3 < l) {\n // 110xxxxx 10xxxxxx\n b2 = parseInt(seq.slice(i + 4, i + 6), 16);\n\n if ((b2 & 0xC0) === 0x80) {\n chr = b1 << 6 & 0x7C0 | b2 & 0x3F;\n\n if (chr < 0x80) {\n result += \"\\uFFFD\\uFFFD\";\n } else {\n result += String.fromCharCode(chr);\n }\n\n i += 3;\n continue;\n }\n }\n\n if ((b1 & 0xF0) === 0xE0 && i + 6 < l) {\n // 1110xxxx 10xxxxxx 10xxxxxx\n b2 = parseInt(seq.slice(i + 4, i + 6), 16);\n b3 = parseInt(seq.slice(i + 7, i + 9), 16);\n\n if ((b2 & 0xC0) === 0x80 && (b3 & 0xC0) === 0x80) {\n chr = b1 << 12 & 0xF000 | b2 << 6 & 0xFC0 | b3 & 0x3F;\n\n if (chr < 0x800 || chr >= 0xD800 && chr <= 0xDFFF) {\n result += \"\\uFFFD\\uFFFD\\uFFFD\";\n } else {\n result += String.fromCharCode(chr);\n }\n\n i += 6;\n continue;\n }\n }\n\n if ((b1 & 0xF8) === 0xF0 && i + 9 < l) {\n // 111110xx 10xxxxxx 10xxxxxx 10xxxxxx\n b2 = parseInt(seq.slice(i + 4, i + 6), 16);\n b3 = parseInt(seq.slice(i + 7, i + 9), 16);\n b4 = parseInt(seq.slice(i + 10, i + 12), 16);\n\n if ((b2 & 0xC0) === 0x80 && (b3 & 0xC0) === 0x80 && (b4 & 0xC0) === 0x80) {\n chr = b1 << 18 & 0x1C0000 | b2 << 12 & 0x3F000 | b3 << 6 & 0xFC0 | b4 & 0x3F;\n\n if (chr < 0x10000 || chr > 0x10FFFF) {\n result += \"\\uFFFD\\uFFFD\\uFFFD\\uFFFD\";\n } else {\n chr -= 0x10000;\n result += String.fromCharCode(0xD800 + (chr >> 10), 0xDC00 + (chr & 0x3FF));\n }\n\n i += 9;\n continue;\n }\n }\n\n result += \"\\uFFFD\";\n }\n\n return result;\n });\n}\n\ndecode.defaultChars = ';/?:@&=+$,#';\ndecode.componentChars = '';\nmodule.exports = decode;","'use strict';\n\nmodule.exports = function format(url) {\n var result = '';\n result += url.protocol || '';\n result += url.slashes ? '//' : '';\n result += url.auth ? url.auth + '@' : '';\n\n if (url.hostname && url.hostname.indexOf(':') !== -1) {\n // ipv6 address\n result += '[' + url.hostname + ']';\n } else {\n result += url.hostname || '';\n }\n\n result += url.port ? ':' + url.port : '';\n result += url.pathname || '';\n result += url.search || '';\n result += url.hash || '';\n return result;\n};","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n'use strict'; //\n// Changes from joyent/node:\n//\n// 1. No leading slash in paths,\n// e.g. in `url.parse('http://foo?bar')` pathname is ``, not `/`\n//\n// 2. Backslashes are not replaced with slashes,\n// so `http:\\\\example.org\\` is treated like a relative path\n//\n// 3. Trailing colon is treated like a part of the path,\n// i.e. in `http://example.org:foo` pathname is `:foo`\n//\n// 4. Nothing is URL-encoded in the resulting object,\n// (in joyent/node some chars in auth and paths are encoded)\n//\n// 5. `url.parse()` does not have `parseQueryString` argument\n//\n// 6. Removed extraneous result properties: `host`, `path`, `query`, etc.,\n// which can be constructed using other parts of the url.\n//\n\nfunction Url() {\n this.protocol = null;\n this.slashes = null;\n this.auth = null;\n this.port = null;\n this.hostname = null;\n this.hash = null;\n this.search = null;\n this.pathname = null;\n} // Reference: RFC 3986, RFC 1808, RFC 2396\n// define these here so at least they only have to be\n// compiled once on the first module load.\n\n\nvar protocolPattern = /^([a-z0-9.+-]+:)/i,\n portPattern = /:[0-9]*$/,\n // Special case for a simple path URL\nsimplePathPattern = /^(\\/\\/?(?!\\/)[^\\?\\s]*)(\\?[^\\s]*)?$/,\n // RFC 2396: characters reserved for delimiting URLs.\n// We actually just auto-escape these.\ndelims = ['<', '>', '\"', '`', ' ', '\\r', '\\n', '\\t'],\n // RFC 2396: characters not allowed for various reasons.\nunwise = ['{', '}', '|', '\\\\', '^', '`'].concat(delims),\n // Allowed by RFCs, but cause of XSS attacks. Always escape these.\nautoEscape = ['\\''].concat(unwise),\n // Characters that are never ever allowed in a hostname.\n// Note that any invalid chars are also handled, but these\n// are the ones that are *expected* to be seen, so we fast-path\n// them.\nnonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape),\n hostEndingChars = ['/', '?', '#'],\n hostnameMaxLen = 255,\n hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/,\n hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/,\n // protocols that can allow \"unsafe\" and \"unwise\" chars.\n\n/* eslint-disable no-script-url */\n// protocols that never have a hostname.\nhostlessProtocol = {\n 'javascript': true,\n 'javascript:': true\n},\n // protocols that always contain a // bit.\nslashedProtocol = {\n 'http': true,\n 'https': true,\n 'ftp': true,\n 'gopher': true,\n 'file': true,\n 'http:': true,\n 'https:': true,\n 'ftp:': true,\n 'gopher:': true,\n 'file:': true\n};\n/* eslint-enable no-script-url */\n\nfunction urlParse(url, slashesDenoteHost) {\n if (url && url instanceof Url) {\n return url;\n }\n\n var u = new Url();\n u.parse(url, slashesDenoteHost);\n return u;\n}\n\nUrl.prototype.parse = function (url, slashesDenoteHost) {\n var i,\n l,\n lowerProto,\n hec,\n slashes,\n rest = url; // trim before proceeding.\n // This is to support parse stuff like \" http://foo.com \\n\"\n\n rest = rest.trim();\n\n if (!slashesDenoteHost && url.split('#').length === 1) {\n // Try fast path regexp\n var simplePath = simplePathPattern.exec(rest);\n\n if (simplePath) {\n this.pathname = simplePath[1];\n\n if (simplePath[2]) {\n this.search = simplePath[2];\n }\n\n return this;\n }\n }\n\n var proto = protocolPattern.exec(rest);\n\n if (proto) {\n proto = proto[0];\n lowerProto = proto.toLowerCase();\n this.protocol = proto;\n rest = rest.substr(proto.length);\n } // figure out if it's got a host\n // user@server is *always* interpreted as a hostname, and url\n // resolution will treat //foo/bar as host=foo,path=bar because that's\n // how the browser resolves relative URLs.\n\n\n if (slashesDenoteHost || proto || rest.match(/^\\/\\/[^@\\/]+@[^@\\/]+/)) {\n slashes = rest.substr(0, 2) === '//';\n\n if (slashes && !(proto && hostlessProtocol[proto])) {\n rest = rest.substr(2);\n this.slashes = true;\n }\n }\n\n if (!hostlessProtocol[proto] && (slashes || proto && !slashedProtocol[proto])) {\n // there's a hostname.\n // the first instance of /, ?, ;, or # ends the host.\n //\n // If there is an @ in the hostname, then non-host chars *are* allowed\n // to the left of the last @ sign, unless some host-ending character\n // comes *before* the @-sign.\n // URLs are obnoxious.\n //\n // ex:\n // http://a@b@c/ => user:a@b host:c\n // http://a@b?@c => user:a host:c path:/?@c\n // v0.12 TODO(isaacs): This is not quite how Chrome does things.\n // Review our test case against browsers more comprehensively.\n // find the first instance of any hostEndingChars\n var hostEnd = -1;\n\n for (i = 0; i < hostEndingChars.length; i++) {\n hec = rest.indexOf(hostEndingChars[i]);\n\n if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) {\n hostEnd = hec;\n }\n } // at this point, either we have an explicit point where the\n // auth portion cannot go past, or the last @ char is the decider.\n\n\n var auth, atSign;\n\n if (hostEnd === -1) {\n // atSign can be anywhere.\n atSign = rest.lastIndexOf('@');\n } else {\n // atSign must be in auth portion.\n // http://a@b/c@d => host:b auth:a path:/c@d\n atSign = rest.lastIndexOf('@', hostEnd);\n } // Now we have a portion which is definitely the auth.\n // Pull that off.\n\n\n if (atSign !== -1) {\n auth = rest.slice(0, atSign);\n rest = rest.slice(atSign + 1);\n this.auth = auth;\n } // the host is the remaining to the left of the first non-host char\n\n\n hostEnd = -1;\n\n for (i = 0; i < nonHostChars.length; i++) {\n hec = rest.indexOf(nonHostChars[i]);\n\n if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) {\n hostEnd = hec;\n }\n } // if we still have not hit it, then the entire thing is a host.\n\n\n if (hostEnd === -1) {\n hostEnd = rest.length;\n }\n\n if (rest[hostEnd - 1] === ':') {\n hostEnd--;\n }\n\n var host = rest.slice(0, hostEnd);\n rest = rest.slice(hostEnd); // pull out port.\n\n this.parseHost(host); // we've indicated that there is a hostname,\n // so even if it's empty, it has to be present.\n\n this.hostname = this.hostname || ''; // if hostname begins with [ and ends with ]\n // assume that it's an IPv6 address.\n\n var ipv6Hostname = this.hostname[0] === '[' && this.hostname[this.hostname.length - 1] === ']'; // validate a little.\n\n if (!ipv6Hostname) {\n var hostparts = this.hostname.split(/\\./);\n\n for (i = 0, l = hostparts.length; i < l; i++) {\n var part = hostparts[i];\n\n if (!part) {\n continue;\n }\n\n if (!part.match(hostnamePartPattern)) {\n var newpart = '';\n\n for (var j = 0, k = part.length; j < k; j++) {\n if (part.charCodeAt(j) > 127) {\n // we replace non-ASCII char with a temporary placeholder\n // we need this to make sure size of hostname is not\n // broken by replacing non-ASCII by nothing\n newpart += 'x';\n } else {\n newpart += part[j];\n }\n } // we test again with ASCII char only\n\n\n if (!newpart.match(hostnamePartPattern)) {\n var validParts = hostparts.slice(0, i);\n var notHost = hostparts.slice(i + 1);\n var bit = part.match(hostnamePartStart);\n\n if (bit) {\n validParts.push(bit[1]);\n notHost.unshift(bit[2]);\n }\n\n if (notHost.length) {\n rest = notHost.join('.') + rest;\n }\n\n this.hostname = validParts.join('.');\n break;\n }\n }\n }\n }\n\n if (this.hostname.length > hostnameMaxLen) {\n this.hostname = '';\n } // strip [ and ] from the hostname\n // the host field still retains them, though\n\n\n if (ipv6Hostname) {\n this.hostname = this.hostname.substr(1, this.hostname.length - 2);\n }\n } // chop off from the tail first.\n\n\n var hash = rest.indexOf('#');\n\n if (hash !== -1) {\n // got a fragment string.\n this.hash = rest.substr(hash);\n rest = rest.slice(0, hash);\n }\n\n var qm = rest.indexOf('?');\n\n if (qm !== -1) {\n this.search = rest.substr(qm);\n rest = rest.slice(0, qm);\n }\n\n if (rest) {\n this.pathname = rest;\n }\n\n if (slashedProtocol[lowerProto] && this.hostname && !this.pathname) {\n this.pathname = '';\n }\n\n return this;\n};\n\nUrl.prototype.parseHost = function (host) {\n var port = portPattern.exec(host);\n\n if (port) {\n port = port[0];\n\n if (port !== ':') {\n this.port = port.substr(1);\n }\n\n host = host.substr(0, host.length - port.length);\n }\n\n if (host) {\n this.hostname = host;\n }\n};\n\nmodule.exports = urlParse;","module.exports = /[\\xAD\\u0600-\\u0605\\u061C\\u06DD\\u070F\\u08E2\\u180E\\u200B-\\u200F\\u202A-\\u202E\\u2060-\\u2064\\u2066-\\u206F\\uFEFF\\uFFF9-\\uFFFB]|\\uD804[\\uDCBD\\uDCCD]|\\uD82F[\\uDCA0-\\uDCA3]|\\uD834[\\uDD73-\\uDD7A]|\\uDB40[\\uDC01\\uDC20-\\uDC7F]/;","// Just a shortcut for bulk export\n'use strict';\n\nexports.parseLinkLabel = require('./parse_link_label');\nexports.parseLinkDestination = require('./parse_link_destination');\nexports.parseLinkTitle = require('./parse_link_title');","// Parse link label\n//\n// this function assumes that first character (\"[\") already matches;\n// returns the end of the label\n//\n'use strict';\n\nmodule.exports = function parseLinkLabel(state, start, disableNested) {\n var level,\n found,\n marker,\n prevPos,\n labelEnd = -1,\n max = state.posMax,\n oldPos = state.pos;\n state.pos = start + 1;\n level = 1;\n\n while (state.pos < max) {\n marker = state.src.charCodeAt(state.pos);\n\n if (marker === 0x5D\n /* ] */\n ) {\n level--;\n\n if (level === 0) {\n found = true;\n break;\n }\n }\n\n prevPos = state.pos;\n state.md.inline.skipToken(state);\n\n if (marker === 0x5B\n /* [ */\n ) {\n if (prevPos === state.pos - 1) {\n // increase level if we find text `[`, which is not a part of any token\n level++;\n } else if (disableNested) {\n state.pos = oldPos;\n return -1;\n }\n }\n }\n\n if (found) {\n labelEnd = state.pos;\n } // restore old state\n\n\n state.pos = oldPos;\n return labelEnd;\n};","// Parse link destination\n//\n'use strict';\n\nvar unescapeAll = require('../common/utils').unescapeAll;\n\nmodule.exports = function parseLinkDestination(str, start, max) {\n var code,\n level,\n pos = start,\n result = {\n ok: false,\n pos: 0,\n lines: 0,\n str: ''\n };\n\n if (str.charCodeAt(pos) === 0x3C\n /* < */\n ) {\n pos++;\n\n while (pos < max) {\n code = str.charCodeAt(pos);\n\n if (code === 0x0A\n /* \\n */\n ) {\n return result;\n }\n\n if (code === 0x3C\n /* < */\n ) {\n return result;\n }\n\n if (code === 0x3E\n /* > */\n ) {\n result.pos = pos + 1;\n result.str = unescapeAll(str.slice(start + 1, pos));\n result.ok = true;\n return result;\n }\n\n if (code === 0x5C\n /* \\ */\n && pos + 1 < max) {\n pos += 2;\n continue;\n }\n\n pos++;\n } // no closing '>'\n\n\n return result;\n } // this should be ... } else { ... branch\n\n\n level = 0;\n\n while (pos < max) {\n code = str.charCodeAt(pos);\n\n if (code === 0x20) {\n break;\n } // ascii control characters\n\n\n if (code < 0x20 || code === 0x7F) {\n break;\n }\n\n if (code === 0x5C\n /* \\ */\n && pos + 1 < max) {\n if (str.charCodeAt(pos + 1) === 0x20) {\n break;\n }\n\n pos += 2;\n continue;\n }\n\n if (code === 0x28\n /* ( */\n ) {\n level++;\n\n if (level > 32) {\n return result;\n }\n }\n\n if (code === 0x29\n /* ) */\n ) {\n if (level === 0) {\n break;\n }\n\n level--;\n }\n\n pos++;\n }\n\n if (start === pos) {\n return result;\n }\n\n if (level !== 0) {\n return result;\n }\n\n result.str = unescapeAll(str.slice(start, pos));\n result.pos = pos;\n result.ok = true;\n return result;\n};","// Parse link title\n//\n'use strict';\n\nvar unescapeAll = require('../common/utils').unescapeAll;\n\nmodule.exports = function parseLinkTitle(str, start, max) {\n var code,\n marker,\n lines = 0,\n pos = start,\n result = {\n ok: false,\n pos: 0,\n lines: 0,\n str: ''\n };\n\n if (pos >= max) {\n return result;\n }\n\n marker = str.charCodeAt(pos);\n\n if (marker !== 0x22\n /* \" */\n && marker !== 0x27\n /* ' */\n && marker !== 0x28\n /* ( */\n ) {\n return result;\n }\n\n pos++; // if opening marker is \"(\", switch it to closing marker \")\"\n\n if (marker === 0x28) {\n marker = 0x29;\n }\n\n while (pos < max) {\n code = str.charCodeAt(pos);\n\n if (code === marker) {\n result.pos = pos + 1;\n result.lines = lines;\n result.str = unescapeAll(str.slice(start + 1, pos));\n result.ok = true;\n return result;\n } else if (code === 0x28\n /* ( */\n && marker === 0x29\n /* ) */\n ) {\n return result;\n } else if (code === 0x0A) {\n lines++;\n } else if (code === 0x5C\n /* \\ */\n && pos + 1 < max) {\n pos++;\n\n if (str.charCodeAt(pos) === 0x0A) {\n lines++;\n }\n }\n\n pos++;\n }\n\n return result;\n};","/**\n * class Renderer\n *\n * Generates HTML from parsed token stream. Each instance has independent\n * copy of rules. Those can be rewritten with ease. Also, you can add new\n * rules if you create plugin and adds new token types.\n **/\n'use strict';\n\nvar assign = require('./common/utils').assign;\n\nvar unescapeAll = require('./common/utils').unescapeAll;\n\nvar escapeHtml = require('./common/utils').escapeHtml; ////////////////////////////////////////////////////////////////////////////////\n\n\nvar default_rules = {};\n\ndefault_rules.code_inline = function (tokens, idx, options, env, slf) {\n var token = tokens[idx];\n return '' + escapeHtml(token.content) + '
';\n};\n\ndefault_rules.code_block = function (tokens, idx, options, env, slf) {\n var token = tokens[idx];\n return '
' + escapeHtml(tokens[idx].content) + '
\\n';\n};\n\ndefault_rules.fence = function (tokens, idx, options, env, slf) {\n var token = tokens[idx],\n info = token.info ? unescapeAll(token.info).trim() : '',\n langName = '',\n langAttrs = '',\n highlighted,\n i,\n arr,\n tmpAttrs,\n tmpToken;\n\n if (info) {\n arr = info.split(/(\\s+)/g);\n langName = arr[0];\n langAttrs = arr.slice(2).join('');\n }\n\n if (options.highlight) {\n highlighted = options.highlight(token.content, langName, langAttrs) || escapeHtml(token.content);\n } else {\n highlighted = escapeHtml(token.content);\n }\n\n if (highlighted.indexOf('' + highlighted + '
\\n';\n }\n\n return '' + highlighted + '
\\n';\n};\n\ndefault_rules.image = function (tokens, idx, options, env, slf) {\n var token = tokens[idx]; // \"alt\" attr MUST be set, even if empty. Because it's mandatory and\n // should be placed on proper position for tests.\n //\n // Replace content with actual value\n\n token.attrs[token.attrIndex('alt')][1] = slf.renderInlineAsText(token.children, options, env);\n return slf.renderToken(tokens, idx, options);\n};\n\ndefault_rules.hardbreak = function (tokens, idx, options\n/*, env */\n) {\n return options.xhtmlOut ? '
\\n' : '
\\n';\n};\n\ndefault_rules.softbreak = function (tokens, idx, options\n/*, env */\n) {\n return options.breaks ? options.xhtmlOut ? '
\\n' : '
\\n' : '\\n';\n};\n\ndefault_rules.text = function (tokens, idx\n/*, options, env */\n) {\n return escapeHtml(tokens[idx].content);\n};\n\ndefault_rules.html_block = function (tokens, idx\n/*, options, env */\n) {\n return tokens[idx].content;\n};\n\ndefault_rules.html_inline = function (tokens, idx\n/*, options, env */\n) {\n return tokens[idx].content;\n};\n/**\n * new Renderer()\n *\n * Creates new [[Renderer]] instance and fill [[Renderer#rules]] with defaults.\n **/\n\n\nfunction Renderer() {\n /**\n * Renderer#rules -> Object\n *\n * Contains render rules for tokens. Can be updated and extended.\n *\n * ##### Example\n *\n * ```javascript\n * var md = require('markdown-it')();\n *\n * md.renderer.rules.strong_open = function () { return ''; };\n * md.renderer.rules.strong_close = function () { return ''; };\n *\n * var result = md.renderInline(...);\n * ```\n *\n * Each rule is called as independent static function with fixed signature:\n *\n * ```javascript\n * function my_token_render(tokens, idx, options, env, renderer) {\n * // ...\n * return renderedHTML;\n * }\n * ```\n *\n * See [source code](https://github.com/markdown-it/markdown-it/blob/master/lib/renderer.js)\n * for more details and examples.\n **/\n this.rules = assign({}, default_rules);\n}\n/**\n * Renderer.renderAttrs(token) -> String\n *\n * Render token attributes to string.\n **/\n\n\nRenderer.prototype.renderAttrs = function renderAttrs(token) {\n var i, l, result;\n\n if (!token.attrs) {\n return '';\n }\n\n result = '';\n\n for (i = 0, l = token.attrs.length; i < l; i++) {\n result += ' ' + escapeHtml(token.attrs[i][0]) + '=\"' + escapeHtml(token.attrs[i][1]) + '\"';\n }\n\n return result;\n};\n/**\n * Renderer.renderToken(tokens, idx, options) -> String\n * - tokens (Array): list of tokens\n * - idx (Numbed): token index to render\n * - options (Object): params of parser instance\n *\n * Default token renderer. Can be overriden by custom function\n * in [[Renderer#rules]].\n **/\n\n\nRenderer.prototype.renderToken = function renderToken(tokens, idx, options) {\n var nextToken,\n result = '',\n needLf = false,\n token = tokens[idx]; // Tight list paragraphs\n\n if (token.hidden) {\n return '';\n } // Insert a newline between hidden paragraph and subsequent opening\n // block-level tag.\n //\n // For example, here we should insert a newline before blockquote:\n // - a\n // >\n //\n\n\n if (token.block && token.nesting !== -1 && idx && tokens[idx - 1].hidden) {\n result += '\\n';\n } // Add token name, e.g. `
`.\n //\n needLf = false;\n }\n }\n }\n }\n\n result += needLf ? '>\\n' : '>';\n return result;\n};\n/**\n * Renderer.renderInline(tokens, options, env) -> String\n * - tokens (Array): list on block tokens to render\n * - options (Object): params of parser instance\n * - env (Object): additional data from parsed input (references, for example)\n *\n * The same as [[Renderer.render]], but for single token of `inline` type.\n **/\n\n\nRenderer.prototype.renderInline = function (tokens, options, env) {\n var type,\n result = '',\n rules = this.rules;\n\n for (var i = 0, len = tokens.length; i < len; i++) {\n type = tokens[i].type;\n\n if (typeof rules[type] !== 'undefined') {\n result += rules[type](tokens, i, options, env, this);\n } else {\n result += this.renderToken(tokens, i, options);\n }\n }\n\n return result;\n};\n/** internal\n * Renderer.renderInlineAsText(tokens, options, env) -> String\n * - tokens (Array): list on block tokens to render\n * - options (Object): params of parser instance\n * - env (Object): additional data from parsed input (references, for example)\n *\n * Special kludge for image `alt` attributes to conform CommonMark spec.\n * Don't try to use it! Spec requires to show `alt` content with stripped markup,\n * instead of simple escaping.\n **/\n\n\nRenderer.prototype.renderInlineAsText = function (tokens, options, env) {\n var result = '';\n\n for (var i = 0, len = tokens.length; i < len; i++) {\n if (tokens[i].type === 'text') {\n result += tokens[i].content;\n } else if (tokens[i].type === 'image') {\n result += this.renderInlineAsText(tokens[i].children, options, env);\n } else if (tokens[i].type === 'softbreak') {\n result += '\\n';\n }\n }\n\n return result;\n};\n/**\n * Renderer.render(tokens, options, env) -> String\n * - tokens (Array): list on block tokens to render\n * - options (Object): params of parser instance\n * - env (Object): additional data from parsed input (references, for example)\n *\n * Takes token stream and generates HTML. Probably, you will never need to call\n * this method directly.\n **/\n\n\nRenderer.prototype.render = function (tokens, options, env) {\n var i,\n len,\n type,\n result = '',\n rules = this.rules;\n\n for (i = 0, len = tokens.length; i < len; i++) {\n type = tokens[i].type;\n\n if (type === 'inline') {\n result += this.renderInline(tokens[i].children, options, env);\n } else if (typeof rules[type] !== 'undefined') {\n result += rules[type](tokens, i, options, env, this);\n } else {\n result += this.renderToken(tokens, i, options, env);\n }\n }\n\n return result;\n};\n\nmodule.exports = Renderer;","/** internal\n * class Core\n *\n * Top-level rules executor. Glues block/inline parsers and does intermediate\n * transformations.\n **/\n'use strict';\n\nvar Ruler = require('./ruler');\n\nvar _rules = [['normalize', require('./rules_core/normalize')], ['block', require('./rules_core/block')], ['inline', require('./rules_core/inline')], ['linkify', require('./rules_core/linkify')], ['replacements', require('./rules_core/replacements')], ['smartquotes', require('./rules_core/smartquotes')], // `text_join` finds `text_special` tokens (for escape sequences)\n// and joins them with the rest of the text\n['text_join', require('./rules_core/text_join')]];\n/**\n * new Core()\n **/\n\nfunction Core() {\n /**\n * Core#ruler -> Ruler\n *\n * [[Ruler]] instance. Keep configuration of core rules.\n **/\n this.ruler = new Ruler();\n\n for (var i = 0; i < _rules.length; i++) {\n this.ruler.push(_rules[i][0], _rules[i][1]);\n }\n}\n/**\n * Core.process(state)\n *\n * Executes core chain rules.\n **/\n\n\nCore.prototype.process = function (state) {\n var i, l, rules;\n rules = this.ruler.getRules('');\n\n for (i = 0, l = rules.length; i < l; i++) {\n rules[i](state);\n }\n};\n\nCore.prototype.State = require('./rules_core/state_core');\nmodule.exports = Core;","// Normalize input string\n'use strict'; // https://spec.commonmark.org/0.29/#line-ending\n\nvar NEWLINES_RE = /\\r\\n?|\\n/g;\nvar NULL_RE = /\\0/g;\n\nmodule.exports = function normalize(state) {\n var str; // Normalize newlines\n\n str = state.src.replace(NEWLINES_RE, '\\n'); // Replace NULL characters\n\n str = str.replace(NULL_RE, \"\\uFFFD\");\n state.src = str;\n};","'use strict';\n\nmodule.exports = function block(state) {\n var token;\n\n if (state.inlineMode) {\n token = new state.Token('inline', '', 0);\n token.content = state.src;\n token.map = [0, 1];\n token.children = [];\n state.tokens.push(token);\n } else {\n state.md.block.parse(state.src, state.md, state.env, state.tokens);\n }\n};","'use strict';\n\nmodule.exports = function inline(state) {\n var tokens = state.tokens,\n tok,\n i,\n l; // Parse inlines\n\n for (i = 0, l = tokens.length; i < l; i++) {\n tok = tokens[i];\n\n if (tok.type === 'inline') {\n state.md.inline.parse(tok.content, state.md, state.env, tok.children);\n }\n }\n};","// Replace link-like texts with link nodes.\n//\n// Currently restricted by `md.validateLink()` to http/https/ftp\n//\n'use strict';\n\nvar arrayReplaceAt = require('../common/utils').arrayReplaceAt;\n\nfunction isLinkOpen(str) {\n return /^\\s]/i.test(str);\n}\n\nfunction isLinkClose(str) {\n return /^<\\/a\\s*>/i.test(str);\n}\n\nmodule.exports = function linkify(state) {\n var i,\n j,\n l,\n tokens,\n token,\n currentToken,\n nodes,\n ln,\n text,\n pos,\n lastPos,\n level,\n htmlLinkLevel,\n url,\n fullUrl,\n urlText,\n blockTokens = state.tokens,\n links;\n\n if (!state.md.options.linkify) {\n return;\n }\n\n for (j = 0, l = blockTokens.length; j < l; j++) {\n if (blockTokens[j].type !== 'inline' || !state.md.linkify.pretest(blockTokens[j].content)) {\n continue;\n }\n\n tokens = blockTokens[j].children;\n htmlLinkLevel = 0; // We scan from the end, to keep position when new tags added.\n // Use reversed logic in links start/end match\n\n for (i = tokens.length - 1; i >= 0; i--) {\n currentToken = tokens[i]; // Skip content of markdown links\n\n if (currentToken.type === 'link_close') {\n i--;\n\n while (tokens[i].level !== currentToken.level && tokens[i].type !== 'link_open') {\n i--;\n }\n\n continue;\n } // Skip content of html tag links\n\n\n if (currentToken.type === 'html_inline') {\n if (isLinkOpen(currentToken.content) && htmlLinkLevel > 0) {\n htmlLinkLevel--;\n }\n\n if (isLinkClose(currentToken.content)) {\n htmlLinkLevel++;\n }\n }\n\n if (htmlLinkLevel > 0) {\n continue;\n }\n\n if (currentToken.type === 'text' && state.md.linkify.test(currentToken.content)) {\n text = currentToken.content;\n links = state.md.linkify.match(text); // Now split string to nodes\n\n nodes = [];\n level = currentToken.level;\n lastPos = 0; // forbid escape sequence at the start of the string,\n // this avoids http\\://example.com/ from being linkified as\n // http://example.com/\n\n if (links.length > 0 && links[0].index === 0 && i > 0 && tokens[i - 1].type === 'text_special') {\n links = links.slice(1);\n }\n\n for (ln = 0; ln < links.length; ln++) {\n url = links[ln].url;\n fullUrl = state.md.normalizeLink(url);\n\n if (!state.md.validateLink(fullUrl)) {\n continue;\n }\n\n urlText = links[ln].text; // Linkifier might send raw hostnames like \"example.com\", where url\n // starts with domain name. So we prepend http:// in those cases,\n // and remove it afterwards.\n //\n\n if (!links[ln].schema) {\n urlText = state.md.normalizeLinkText('http://' + urlText).replace(/^http:\\/\\//, '');\n } else if (links[ln].schema === 'mailto:' && !/^mailto:/i.test(urlText)) {\n urlText = state.md.normalizeLinkText('mailto:' + urlText).replace(/^mailto:/, '');\n } else {\n urlText = state.md.normalizeLinkText(urlText);\n }\n\n pos = links[ln].index;\n\n if (pos > lastPos) {\n token = new state.Token('text', '', 0);\n token.content = text.slice(lastPos, pos);\n token.level = level;\n nodes.push(token);\n }\n\n token = new state.Token('link_open', 'a', 1);\n token.attrs = [['href', fullUrl]];\n token.level = level++;\n token.markup = 'linkify';\n token.info = 'auto';\n nodes.push(token);\n token = new state.Token('text', '', 0);\n token.content = urlText;\n token.level = level;\n nodes.push(token);\n token = new state.Token('link_close', 'a', -1);\n token.level = --level;\n token.markup = 'linkify';\n token.info = 'auto';\n nodes.push(token);\n lastPos = links[ln].lastIndex;\n }\n\n if (lastPos < text.length) {\n token = new state.Token('text', '', 0);\n token.content = text.slice(lastPos);\n token.level = level;\n nodes.push(token);\n } // replace current node\n\n\n blockTokens[j].children = tokens = arrayReplaceAt(tokens, i, nodes);\n }\n }\n }\n};","// Simple typographic replacements\n//\n// (c) (C) → ©\n// (tm) (TM) → ™\n// (r) (R) → ®\n// +- → ±\n// ... → … (also ?.... → ?.., !.... → !..)\n// ???????? → ???, !!!!! → !!!, `,,` → `,`\n// -- → –, --- → —\n//\n'use strict'; // TODO:\n// - fractionals 1/2, 1/4, 3/4 -> ½, ¼, ¾\n// - multiplications 2 x 4 -> 2 × 4\n\nvar RARE_RE = /\\+-|\\.\\.|\\?\\?\\?\\?|!!!!|,,|--/; // Workaround for phantomjs - need regex without /g flag,\n// or root check will fail every second time\n\nvar SCOPED_ABBR_TEST_RE = /\\((c|tm|r)\\)/i;\nvar SCOPED_ABBR_RE = /\\((c|tm|r)\\)/ig;\nvar SCOPED_ABBR = {\n c: '©',\n r: '®',\n tm: '™'\n};\n\nfunction replaceFn(match, name) {\n return SCOPED_ABBR[name.toLowerCase()];\n}\n\nfunction replace_scoped(inlineTokens) {\n var i,\n token,\n inside_autolink = 0;\n\n for (i = inlineTokens.length - 1; i >= 0; i--) {\n token = inlineTokens[i];\n\n if (token.type === 'text' && !inside_autolink) {\n token.content = token.content.replace(SCOPED_ABBR_RE, replaceFn);\n }\n\n if (token.type === 'link_open' && token.info === 'auto') {\n inside_autolink--;\n }\n\n if (token.type === 'link_close' && token.info === 'auto') {\n inside_autolink++;\n }\n }\n}\n\nfunction replace_rare(inlineTokens) {\n var i,\n token,\n inside_autolink = 0;\n\n for (i = inlineTokens.length - 1; i >= 0; i--) {\n token = inlineTokens[i];\n\n if (token.type === 'text' && !inside_autolink) {\n if (RARE_RE.test(token.content)) {\n token.content = token.content.replace(/\\+-/g, '±') // .., ..., ....... -> …\n // but ?..... & !..... -> ?.. & !..\n .replace(/\\.{2,}/g, '…').replace(/([?!])…/g, '$1..').replace(/([?!]){4,}/g, '$1$1$1').replace(/,{2,}/g, ',') // em-dash\n .replace(/(^|[^-])---(?=[^-]|$)/mg, \"$1\\u2014\") // en-dash\n .replace(/(^|\\s)--(?=\\s|$)/mg, \"$1\\u2013\").replace(/(^|[^-\\s])--(?=[^-\\s]|$)/mg, \"$1\\u2013\");\n }\n }\n\n if (token.type === 'link_open' && token.info === 'auto') {\n inside_autolink--;\n }\n\n if (token.type === 'link_close' && token.info === 'auto') {\n inside_autolink++;\n }\n }\n}\n\nmodule.exports = function replace(state) {\n var blkIdx;\n\n if (!state.md.options.typographer) {\n return;\n }\n\n for (blkIdx = state.tokens.length - 1; blkIdx >= 0; blkIdx--) {\n if (state.tokens[blkIdx].type !== 'inline') {\n continue;\n }\n\n if (SCOPED_ABBR_TEST_RE.test(state.tokens[blkIdx].content)) {\n replace_scoped(state.tokens[blkIdx].children);\n }\n\n if (RARE_RE.test(state.tokens[blkIdx].content)) {\n replace_rare(state.tokens[blkIdx].children);\n }\n }\n};","// Convert straight quotation marks to typographic ones\n//\n'use strict';\n\nvar isWhiteSpace = require('../common/utils').isWhiteSpace;\n\nvar isPunctChar = require('../common/utils').isPunctChar;\n\nvar isMdAsciiPunct = require('../common/utils').isMdAsciiPunct;\n\nvar QUOTE_TEST_RE = /['\"]/;\nvar QUOTE_RE = /['\"]/g;\nvar APOSTROPHE = \"\\u2019\";\n/* ’ */\n\nfunction replaceAt(str, index, ch) {\n return str.slice(0, index) + ch + str.slice(index + 1);\n}\n\nfunction process_inlines(tokens, state) {\n var i, token, text, t, pos, max, thisLevel, item, lastChar, nextChar, isLastPunctChar, isNextPunctChar, isLastWhiteSpace, isNextWhiteSpace, canOpen, canClose, j, isSingle, stack, openQuote, closeQuote;\n stack = [];\n\n for (i = 0; i < tokens.length; i++) {\n token = tokens[i];\n thisLevel = tokens[i].level;\n\n for (j = stack.length - 1; j >= 0; j--) {\n if (stack[j].level <= thisLevel) {\n break;\n }\n }\n\n stack.length = j + 1;\n\n if (token.type !== 'text') {\n continue;\n }\n\n text = token.content;\n pos = 0;\n max = text.length;\n /*eslint no-labels:0,block-scoped-var:0*/\n\n OUTER: while (pos < max) {\n QUOTE_RE.lastIndex = pos;\n t = QUOTE_RE.exec(text);\n\n if (!t) {\n break;\n }\n\n canOpen = canClose = true;\n pos = t.index + 1;\n isSingle = t[0] === \"'\"; // Find previous character,\n // default to space if it's the beginning of the line\n //\n\n lastChar = 0x20;\n\n if (t.index - 1 >= 0) {\n lastChar = text.charCodeAt(t.index - 1);\n } else {\n for (j = i - 1; j >= 0; j--) {\n if (tokens[j].type === 'softbreak' || tokens[j].type === 'hardbreak') break; // lastChar defaults to 0x20\n\n if (!tokens[j].content) continue; // should skip all tokens except 'text', 'html_inline' or 'code_inline'\n\n lastChar = tokens[j].content.charCodeAt(tokens[j].content.length - 1);\n break;\n }\n } // Find next character,\n // default to space if it's the end of the line\n //\n\n\n nextChar = 0x20;\n\n if (pos < max) {\n nextChar = text.charCodeAt(pos);\n } else {\n for (j = i + 1; j < tokens.length; j++) {\n if (tokens[j].type === 'softbreak' || tokens[j].type === 'hardbreak') break; // nextChar defaults to 0x20\n\n if (!tokens[j].content) continue; // should skip all tokens except 'text', 'html_inline' or 'code_inline'\n\n nextChar = tokens[j].content.charCodeAt(0);\n break;\n }\n }\n\n isLastPunctChar = isMdAsciiPunct(lastChar) || isPunctChar(String.fromCharCode(lastChar));\n isNextPunctChar = isMdAsciiPunct(nextChar) || isPunctChar(String.fromCharCode(nextChar));\n isLastWhiteSpace = isWhiteSpace(lastChar);\n isNextWhiteSpace = isWhiteSpace(nextChar);\n\n if (isNextWhiteSpace) {\n canOpen = false;\n } else if (isNextPunctChar) {\n if (!(isLastWhiteSpace || isLastPunctChar)) {\n canOpen = false;\n }\n }\n\n if (isLastWhiteSpace) {\n canClose = false;\n } else if (isLastPunctChar) {\n if (!(isNextWhiteSpace || isNextPunctChar)) {\n canClose = false;\n }\n }\n\n if (nextChar === 0x22\n /* \" */\n && t[0] === '\"') {\n if (lastChar >= 0x30\n /* 0 */\n && lastChar <= 0x39\n /* 9 */\n ) {\n // special case: 1\"\" - count first quote as an inch\n canClose = canOpen = false;\n }\n }\n\n if (canOpen && canClose) {\n // Replace quotes in the middle of punctuation sequence, but not\n // in the middle of the words, i.e.:\n //\n // 1. foo \" bar \" baz - not replaced\n // 2. foo-\"-bar-\"-baz - replaced\n // 3. foo\"bar\"baz - not replaced\n //\n canOpen = isLastPunctChar;\n canClose = isNextPunctChar;\n }\n\n if (!canOpen && !canClose) {\n // middle of word\n if (isSingle) {\n token.content = replaceAt(token.content, t.index, APOSTROPHE);\n }\n\n continue;\n }\n\n if (canClose) {\n // this could be a closing quote, rewind the stack to get a match\n for (j = stack.length - 1; j >= 0; j--) {\n item = stack[j];\n\n if (stack[j].level < thisLevel) {\n break;\n }\n\n if (item.single === isSingle && stack[j].level === thisLevel) {\n item = stack[j];\n\n if (isSingle) {\n openQuote = state.md.options.quotes[2];\n closeQuote = state.md.options.quotes[3];\n } else {\n openQuote = state.md.options.quotes[0];\n closeQuote = state.md.options.quotes[1];\n } // replace token.content *before* tokens[item.token].content,\n // because, if they are pointing at the same token, replaceAt\n // could mess up indices when quote length != 1\n\n\n token.content = replaceAt(token.content, t.index, closeQuote);\n tokens[item.token].content = replaceAt(tokens[item.token].content, item.pos, openQuote);\n pos += closeQuote.length - 1;\n\n if (item.token === i) {\n pos += openQuote.length - 1;\n }\n\n text = token.content;\n max = text.length;\n stack.length = j;\n continue OUTER;\n }\n }\n }\n\n if (canOpen) {\n stack.push({\n token: i,\n pos: t.index,\n single: isSingle,\n level: thisLevel\n });\n } else if (canClose && isSingle) {\n token.content = replaceAt(token.content, t.index, APOSTROPHE);\n }\n }\n }\n}\n\nmodule.exports = function smartquotes(state) {\n /*eslint max-depth:0*/\n var blkIdx;\n\n if (!state.md.options.typographer) {\n return;\n }\n\n for (blkIdx = state.tokens.length - 1; blkIdx >= 0; blkIdx--) {\n if (state.tokens[blkIdx].type !== 'inline' || !QUOTE_TEST_RE.test(state.tokens[blkIdx].content)) {\n continue;\n }\n\n process_inlines(state.tokens[blkIdx].children, state);\n }\n};","// Join raw text tokens with the rest of the text\n//\n// This is set as a separate rule to provide an opportunity for plugins\n// to run text replacements after text join, but before escape join.\n//\n// For example, `\\:)` shouldn't be replaced with an emoji.\n//\n'use strict';\n\nmodule.exports = function text_join(state) {\n var j,\n l,\n tokens,\n curr,\n max,\n last,\n blockTokens = state.tokens;\n\n for (j = 0, l = blockTokens.length; j < l; j++) {\n if (blockTokens[j].type !== 'inline') continue;\n tokens = blockTokens[j].children;\n max = tokens.length;\n\n for (curr = 0; curr < max; curr++) {\n if (tokens[curr].type === 'text_special') {\n tokens[curr].type = 'text';\n }\n }\n\n for (curr = last = 0; curr < max; curr++) {\n if (tokens[curr].type === 'text' && curr + 1 < max && tokens[curr + 1].type === 'text') {\n // collapse two adjacent text nodes\n tokens[curr + 1].content = tokens[curr].content + tokens[curr + 1].content;\n } else {\n if (curr !== last) {\n tokens[last] = tokens[curr];\n }\n\n last++;\n }\n }\n\n if (curr !== last) {\n tokens.length = last;\n }\n }\n};","// Core state object\n//\n'use strict';\n\nvar Token = require('../token');\n\nfunction StateCore(src, md, env) {\n this.src = src;\n this.env = env;\n this.tokens = [];\n this.inlineMode = false;\n this.md = md; // link to parser instance\n} // re-export Token class to use in core rules\n\n\nStateCore.prototype.Token = Token;\nmodule.exports = StateCore;","/** internal\n * class ParserBlock\n *\n * Block-level tokenizer.\n **/\n'use strict';\n\nvar Ruler = require('./ruler');\n\nvar _rules = [// First 2 params - rule name & source. Secondary array - list of rules,\n// which can be terminated by this one.\n['table', require('./rules_block/table'), ['paragraph', 'reference']], ['code', require('./rules_block/code')], ['fence', require('./rules_block/fence'), ['paragraph', 'reference', 'blockquote', 'list']], ['blockquote', require('./rules_block/blockquote'), ['paragraph', 'reference', 'blockquote', 'list']], ['hr', require('./rules_block/hr'), ['paragraph', 'reference', 'blockquote', 'list']], ['list', require('./rules_block/list'), ['paragraph', 'reference', 'blockquote']], ['reference', require('./rules_block/reference')], ['html_block', require('./rules_block/html_block'), ['paragraph', 'reference', 'blockquote']], ['heading', require('./rules_block/heading'), ['paragraph', 'reference', 'blockquote']], ['lheading', require('./rules_block/lheading')], ['paragraph', require('./rules_block/paragraph')]];\n/**\n * new ParserBlock()\n **/\n\nfunction ParserBlock() {\n /**\n * ParserBlock#ruler -> Ruler\n *\n * [[Ruler]] instance. Keep configuration of block rules.\n **/\n this.ruler = new Ruler();\n\n for (var i = 0; i < _rules.length; i++) {\n this.ruler.push(_rules[i][0], _rules[i][1], {\n alt: (_rules[i][2] || []).slice()\n });\n }\n} // Generate tokens for input range\n//\n\n\nParserBlock.prototype.tokenize = function (state, startLine, endLine) {\n var ok,\n i,\n prevLine,\n rules = this.ruler.getRules(''),\n len = rules.length,\n line = startLine,\n hasEmptyLines = false,\n maxNesting = state.md.options.maxNesting;\n\n while (line < endLine) {\n state.line = line = state.skipEmptyLines(line);\n\n if (line >= endLine) {\n break;\n } // Termination condition for nested calls.\n // Nested calls currently used for blockquotes & lists\n\n\n if (state.sCount[line] < state.blkIndent) {\n break;\n } // If nesting level exceeded - skip tail to the end. That's not ordinary\n // situation and we should not care about content.\n\n\n if (state.level >= maxNesting) {\n state.line = endLine;\n break;\n } // Try all possible rules.\n // On success, rule should:\n //\n // - update `state.line`\n // - update `state.tokens`\n // - return true\n\n\n prevLine = state.line;\n\n for (i = 0; i < len; i++) {\n ok = rules[i](state, line, endLine, false);\n\n if (ok) {\n if (prevLine >= state.line) {\n throw new Error(\"block rule didn't increment state.line\");\n }\n\n break;\n }\n } // this can only happen if user disables paragraph rule\n\n\n if (!ok) throw new Error('none of the block rules matched'); // set state.tight if we had an empty line before current tag\n // i.e. latest empty line should not count\n\n state.tight = !hasEmptyLines; // paragraph might \"eat\" one newline after it in nested lists\n\n if (state.isEmpty(state.line - 1)) {\n hasEmptyLines = true;\n }\n\n line = state.line;\n\n if (line < endLine && state.isEmpty(line)) {\n hasEmptyLines = true;\n line++;\n state.line = line;\n }\n }\n};\n/**\n * ParserBlock.parse(str, md, env, outTokens)\n *\n * Process input string and push block tokens into `outTokens`\n **/\n\n\nParserBlock.prototype.parse = function (src, md, env, outTokens) {\n var state;\n\n if (!src) {\n return;\n }\n\n state = new this.State(src, md, env, outTokens);\n this.tokenize(state, state.line, state.lineMax);\n};\n\nParserBlock.prototype.State = require('./rules_block/state_block');\nmodule.exports = ParserBlock;","// GFM table, https://github.github.com/gfm/#tables-extension-\n'use strict';\n\nvar isSpace = require('../common/utils').isSpace;\n\nfunction getLine(state, line) {\n var pos = state.bMarks[line] + state.tShift[line],\n max = state.eMarks[line];\n return state.src.slice(pos, max);\n}\n\nfunction escapedSplit(str) {\n var result = [],\n pos = 0,\n max = str.length,\n ch,\n isEscaped = false,\n lastPos = 0,\n current = '';\n ch = str.charCodeAt(pos);\n\n while (pos < max) {\n if (ch === 0x7c\n /* | */\n ) {\n if (!isEscaped) {\n // pipe separating cells, '|'\n result.push(current + str.substring(lastPos, pos));\n current = '';\n lastPos = pos + 1;\n } else {\n // escaped pipe, '\\|'\n current += str.substring(lastPos, pos - 1);\n lastPos = pos;\n }\n }\n\n isEscaped = ch === 0x5c\n /* \\ */\n ;\n pos++;\n ch = str.charCodeAt(pos);\n }\n\n result.push(current + str.substring(lastPos));\n return result;\n}\n\nmodule.exports = function table(state, startLine, endLine, silent) {\n var ch, lineText, pos, i, l, nextLine, columns, columnCount, token, aligns, t, tableLines, tbodyLines, oldParentType, terminate, terminatorRules, firstCh, secondCh; // should have at least two lines\n\n if (startLine + 2 > endLine) {\n return false;\n }\n\n nextLine = startLine + 1;\n\n if (state.sCount[nextLine] < state.blkIndent) {\n return false;\n } // if it's indented more than 3 spaces, it should be a code block\n\n\n if (state.sCount[nextLine] - state.blkIndent >= 4) {\n return false;\n } // first character of the second line should be '|', '-', ':',\n // and no other characters are allowed but spaces;\n // basically, this is the equivalent of /^[-:|][-:|\\s]*$/ regexp\n\n\n pos = state.bMarks[nextLine] + state.tShift[nextLine];\n\n if (pos >= state.eMarks[nextLine]) {\n return false;\n }\n\n firstCh = state.src.charCodeAt(pos++);\n\n if (firstCh !== 0x7C\n /* | */\n && firstCh !== 0x2D\n /* - */\n && firstCh !== 0x3A\n /* : */\n ) {\n return false;\n }\n\n if (pos >= state.eMarks[nextLine]) {\n return false;\n }\n\n secondCh = state.src.charCodeAt(pos++);\n\n if (secondCh !== 0x7C\n /* | */\n && secondCh !== 0x2D\n /* - */\n && secondCh !== 0x3A\n /* : */\n && !isSpace(secondCh)) {\n return false;\n } // if first character is '-', then second character must not be a space\n // (due to parsing ambiguity with list)\n\n\n if (firstCh === 0x2D\n /* - */\n && isSpace(secondCh)) {\n return false;\n }\n\n while (pos < state.eMarks[nextLine]) {\n ch = state.src.charCodeAt(pos);\n\n if (ch !== 0x7C\n /* | */\n && ch !== 0x2D\n /* - */\n && ch !== 0x3A\n /* : */\n && !isSpace(ch)) {\n return false;\n }\n\n pos++;\n }\n\n lineText = getLine(state, startLine + 1);\n columns = lineText.split('|');\n aligns = [];\n\n for (i = 0; i < columns.length; i++) {\n t = columns[i].trim();\n\n if (!t) {\n // allow empty columns before and after table, but not in between columns;\n // e.g. allow ` |---| `, disallow ` ---||--- `\n if (i === 0 || i === columns.length - 1) {\n continue;\n } else {\n return false;\n }\n }\n\n if (!/^:?-+:?$/.test(t)) {\n return false;\n }\n\n if (t.charCodeAt(t.length - 1) === 0x3A\n /* : */\n ) {\n aligns.push(t.charCodeAt(0) === 0x3A\n /* : */\n ? 'center' : 'right');\n } else if (t.charCodeAt(0) === 0x3A\n /* : */\n ) {\n aligns.push('left');\n } else {\n aligns.push('');\n }\n }\n\n lineText = getLine(state, startLine).trim();\n\n if (lineText.indexOf('|') === -1) {\n return false;\n }\n\n if (state.sCount[startLine] - state.blkIndent >= 4) {\n return false;\n }\n\n columns = escapedSplit(lineText);\n if (columns.length && columns[0] === '') columns.shift();\n if (columns.length && columns[columns.length - 1] === '') columns.pop(); // header row will define an amount of columns in the entire table,\n // and align row should be exactly the same (the rest of the rows can differ)\n\n columnCount = columns.length;\n\n if (columnCount === 0 || columnCount !== aligns.length) {\n return false;\n }\n\n if (silent) {\n return true;\n }\n\n oldParentType = state.parentType;\n state.parentType = 'table'; // use 'blockquote' lists for termination because it's\n // the most similar to tables\n\n terminatorRules = state.md.block.ruler.getRules('blockquote');\n token = state.push('table_open', 'table', 1);\n token.map = tableLines = [startLine, 0];\n token = state.push('thead_open', 'thead', 1);\n token.map = [startLine, startLine + 1];\n token = state.push('tr_open', 'tr', 1);\n token.map = [startLine, startLine + 1];\n\n for (i = 0; i < columns.length; i++) {\n token = state.push('th_open', 'th', 1);\n\n if (aligns[i]) {\n token.attrs = [['style', 'text-align:' + aligns[i]]];\n }\n\n token = state.push('inline', '', 0);\n token.content = columns[i].trim();\n token.children = [];\n token = state.push('th_close', 'th', -1);\n }\n\n token = state.push('tr_close', 'tr', -1);\n token = state.push('thead_close', 'thead', -1);\n\n for (nextLine = startLine + 2; nextLine < endLine; nextLine++) {\n if (state.sCount[nextLine] < state.blkIndent) {\n break;\n }\n\n terminate = false;\n\n for (i = 0, l = terminatorRules.length; i < l; i++) {\n if (terminatorRules[i](state, nextLine, endLine, true)) {\n terminate = true;\n break;\n }\n }\n\n if (terminate) {\n break;\n }\n\n lineText = getLine(state, nextLine).trim();\n\n if (!lineText) {\n break;\n }\n\n if (state.sCount[nextLine] - state.blkIndent >= 4) {\n break;\n }\n\n columns = escapedSplit(lineText);\n if (columns.length && columns[0] === '') columns.shift();\n if (columns.length && columns[columns.length - 1] === '') columns.pop();\n\n if (nextLine === startLine + 2) {\n token = state.push('tbody_open', 'tbody', 1);\n token.map = tbodyLines = [startLine + 2, 0];\n }\n\n token = state.push('tr_open', 'tr', 1);\n token.map = [nextLine, nextLine + 1];\n\n for (i = 0; i < columnCount; i++) {\n token = state.push('td_open', 'td', 1);\n\n if (aligns[i]) {\n token.attrs = [['style', 'text-align:' + aligns[i]]];\n }\n\n token = state.push('inline', '', 0);\n token.content = columns[i] ? columns[i].trim() : '';\n token.children = [];\n token = state.push('td_close', 'td', -1);\n }\n\n token = state.push('tr_close', 'tr', -1);\n }\n\n if (tbodyLines) {\n token = state.push('tbody_close', 'tbody', -1);\n tbodyLines[1] = nextLine;\n }\n\n token = state.push('table_close', 'table', -1);\n tableLines[1] = nextLine;\n state.parentType = oldParentType;\n state.line = nextLine;\n return true;\n};","// Code block (4 spaces padded)\n'use strict';\n\nmodule.exports = function code(state, startLine, endLine\n/*, silent*/\n) {\n var nextLine, last, token;\n\n if (state.sCount[startLine] - state.blkIndent < 4) {\n return false;\n }\n\n last = nextLine = startLine + 1;\n\n while (nextLine < endLine) {\n if (state.isEmpty(nextLine)) {\n nextLine++;\n continue;\n }\n\n if (state.sCount[nextLine] - state.blkIndent >= 4) {\n nextLine++;\n last = nextLine;\n continue;\n }\n\n break;\n }\n\n state.line = last;\n token = state.push('code_block', 'code', 0);\n token.content = state.getLines(startLine, last, 4 + state.blkIndent, false) + '\\n';\n token.map = [startLine, state.line];\n return true;\n};","// fences (``` lang, ~~~ lang)\n'use strict';\n\nmodule.exports = function fence(state, startLine, endLine, silent) {\n var marker,\n len,\n params,\n nextLine,\n mem,\n token,\n markup,\n haveEndMarker = false,\n pos = state.bMarks[startLine] + state.tShift[startLine],\n max = state.eMarks[startLine]; // if it's indented more than 3 spaces, it should be a code block\n\n if (state.sCount[startLine] - state.blkIndent >= 4) {\n return false;\n }\n\n if (pos + 3 > max) {\n return false;\n }\n\n marker = state.src.charCodeAt(pos);\n\n if (marker !== 0x7E\n /* ~ */\n && marker !== 0x60\n /* ` */\n ) {\n return false;\n } // scan marker length\n\n\n mem = pos;\n pos = state.skipChars(pos, marker);\n len = pos - mem;\n\n if (len < 3) {\n return false;\n }\n\n markup = state.src.slice(mem, pos);\n params = state.src.slice(pos, max);\n\n if (marker === 0x60\n /* ` */\n ) {\n if (params.indexOf(String.fromCharCode(marker)) >= 0) {\n return false;\n }\n } // Since start is found, we can report success here in validation mode\n\n\n if (silent) {\n return true;\n } // search end of block\n\n\n nextLine = startLine;\n\n for (;;) {\n nextLine++;\n\n if (nextLine >= endLine) {\n // unclosed block should be autoclosed by end of document.\n // also block seems to be autoclosed by end of parent\n break;\n }\n\n pos = mem = state.bMarks[nextLine] + state.tShift[nextLine];\n max = state.eMarks[nextLine];\n\n if (pos < max && state.sCount[nextLine] < state.blkIndent) {\n // non-empty line with negative indent should stop the list:\n // - ```\n // test\n break;\n }\n\n if (state.src.charCodeAt(pos) !== marker) {\n continue;\n }\n\n if (state.sCount[nextLine] - state.blkIndent >= 4) {\n // closing fence should be indented less than 4 spaces\n continue;\n }\n\n pos = state.skipChars(pos, marker); // closing code fence must be at least as long as the opening one\n\n if (pos - mem < len) {\n continue;\n } // make sure tail has spaces only\n\n\n pos = state.skipSpaces(pos);\n\n if (pos < max) {\n continue;\n }\n\n haveEndMarker = true; // found!\n\n break;\n } // If a fence has heading spaces, they should be removed from its inner block\n\n\n len = state.sCount[startLine];\n state.line = nextLine + (haveEndMarker ? 1 : 0);\n token = state.push('fence', 'code', 0);\n token.info = params;\n token.content = state.getLines(startLine + 1, nextLine, len, true);\n token.markup = markup;\n token.map = [startLine, state.line];\n return true;\n};","// Block quotes\n'use strict';\n\nvar isSpace = require('../common/utils').isSpace;\n\nmodule.exports = function blockquote(state, startLine, endLine, silent) {\n var adjustTab,\n ch,\n i,\n initial,\n l,\n lastLineEmpty,\n lines,\n nextLine,\n offset,\n oldBMarks,\n oldBSCount,\n oldIndent,\n oldParentType,\n oldSCount,\n oldTShift,\n spaceAfterMarker,\n terminate,\n terminatorRules,\n token,\n isOutdented,\n oldLineMax = state.lineMax,\n pos = state.bMarks[startLine] + state.tShift[startLine],\n max = state.eMarks[startLine]; // if it's indented more than 3 spaces, it should be a code block\n\n if (state.sCount[startLine] - state.blkIndent >= 4) {\n return false;\n } // check the block quote marker\n\n\n if (state.src.charCodeAt(pos) !== 0x3E\n /* > */\n ) {\n return false;\n } // we know that it's going to be a valid blockquote,\n // so no point trying to find the end of it in silent mode\n\n\n if (silent) {\n return true;\n }\n\n oldBMarks = [];\n oldBSCount = [];\n oldSCount = [];\n oldTShift = [];\n terminatorRules = state.md.block.ruler.getRules('blockquote');\n oldParentType = state.parentType;\n state.parentType = 'blockquote'; // Search the end of the block\n //\n // Block ends with either:\n // 1. an empty line outside:\n // ```\n // > test\n //\n // ```\n // 2. an empty line inside:\n // ```\n // >\n // test\n // ```\n // 3. another tag:\n // ```\n // > test\n // - - -\n // ```\n\n for (nextLine = startLine; nextLine < endLine; nextLine++) {\n // check if it's outdented, i.e. it's inside list item and indented\n // less than said list item:\n //\n // ```\n // 1. anything\n // > current blockquote\n // 2. checking this line\n // ```\n isOutdented = state.sCount[nextLine] < state.blkIndent;\n pos = state.bMarks[nextLine] + state.tShift[nextLine];\n max = state.eMarks[nextLine];\n\n if (pos >= max) {\n // Case 1: line is not inside the blockquote, and this line is empty.\n break;\n }\n\n if (state.src.charCodeAt(pos++) === 0x3E\n /* > */\n && !isOutdented) {\n // This line is inside the blockquote.\n // set offset past spaces and \">\"\n initial = state.sCount[nextLine] + 1; // skip one optional space after '>'\n\n if (state.src.charCodeAt(pos) === 0x20\n /* space */\n ) {\n // ' > test '\n // ^ -- position start of line here:\n pos++;\n initial++;\n adjustTab = false;\n spaceAfterMarker = true;\n } else if (state.src.charCodeAt(pos) === 0x09\n /* tab */\n ) {\n spaceAfterMarker = true;\n\n if ((state.bsCount[nextLine] + initial) % 4 === 3) {\n // ' >\\t test '\n // ^ -- position start of line here (tab has width===1)\n pos++;\n initial++;\n adjustTab = false;\n } else {\n // ' >\\t test '\n // ^ -- position start of line here + shift bsCount slightly\n // to make extra space appear\n adjustTab = true;\n }\n } else {\n spaceAfterMarker = false;\n }\n\n offset = initial;\n oldBMarks.push(state.bMarks[nextLine]);\n state.bMarks[nextLine] = pos;\n\n while (pos < max) {\n ch = state.src.charCodeAt(pos);\n\n if (isSpace(ch)) {\n if (ch === 0x09) {\n offset += 4 - (offset + state.bsCount[nextLine] + (adjustTab ? 1 : 0)) % 4;\n } else {\n offset++;\n }\n } else {\n break;\n }\n\n pos++;\n }\n\n lastLineEmpty = pos >= max;\n oldBSCount.push(state.bsCount[nextLine]);\n state.bsCount[nextLine] = state.sCount[nextLine] + 1 + (spaceAfterMarker ? 1 : 0);\n oldSCount.push(state.sCount[nextLine]);\n state.sCount[nextLine] = offset - initial;\n oldTShift.push(state.tShift[nextLine]);\n state.tShift[nextLine] = pos - state.bMarks[nextLine];\n continue;\n } // Case 2: line is not inside the blockquote, and the last line was empty.\n\n\n if (lastLineEmpty) {\n break;\n } // Case 3: another tag found.\n\n\n terminate = false;\n\n for (i = 0, l = terminatorRules.length; i < l; i++) {\n if (terminatorRules[i](state, nextLine, endLine, true)) {\n terminate = true;\n break;\n }\n }\n\n if (terminate) {\n // Quirk to enforce \"hard termination mode\" for paragraphs;\n // normally if you call `tokenize(state, startLine, nextLine)`,\n // paragraphs will look below nextLine for paragraph continuation,\n // but if blockquote is terminated by another tag, they shouldn't\n state.lineMax = nextLine;\n\n if (state.blkIndent !== 0) {\n // state.blkIndent was non-zero, we now set it to zero,\n // so we need to re-calculate all offsets to appear as\n // if indent wasn't changed\n oldBMarks.push(state.bMarks[nextLine]);\n oldBSCount.push(state.bsCount[nextLine]);\n oldTShift.push(state.tShift[nextLine]);\n oldSCount.push(state.sCount[nextLine]);\n state.sCount[nextLine] -= state.blkIndent;\n }\n\n break;\n }\n\n oldBMarks.push(state.bMarks[nextLine]);\n oldBSCount.push(state.bsCount[nextLine]);\n oldTShift.push(state.tShift[nextLine]);\n oldSCount.push(state.sCount[nextLine]); // A negative indentation means that this is a paragraph continuation\n //\n\n state.sCount[nextLine] = -1;\n }\n\n oldIndent = state.blkIndent;\n state.blkIndent = 0;\n token = state.push('blockquote_open', 'blockquote', 1);\n token.markup = '>';\n token.map = lines = [startLine, 0];\n state.md.block.tokenize(state, startLine, nextLine);\n token = state.push('blockquote_close', 'blockquote', -1);\n token.markup = '>';\n state.lineMax = oldLineMax;\n state.parentType = oldParentType;\n lines[1] = state.line; // Restore original tShift; this might not be necessary since the parser\n // has already been here, but just to make sure we can do that.\n\n for (i = 0; i < oldTShift.length; i++) {\n state.bMarks[i + startLine] = oldBMarks[i];\n state.tShift[i + startLine] = oldTShift[i];\n state.sCount[i + startLine] = oldSCount[i];\n state.bsCount[i + startLine] = oldBSCount[i];\n }\n\n state.blkIndent = oldIndent;\n return true;\n};","// Horizontal rule\n'use strict';\n\nvar isSpace = require('../common/utils').isSpace;\n\nmodule.exports = function hr(state, startLine, endLine, silent) {\n var marker,\n cnt,\n ch,\n token,\n pos = state.bMarks[startLine] + state.tShift[startLine],\n max = state.eMarks[startLine]; // if it's indented more than 3 spaces, it should be a code block\n\n if (state.sCount[startLine] - state.blkIndent >= 4) {\n return false;\n }\n\n marker = state.src.charCodeAt(pos++); // Check hr marker\n\n if (marker !== 0x2A\n /* * */\n && marker !== 0x2D\n /* - */\n && marker !== 0x5F\n /* _ */\n ) {\n return false;\n } // markers can be mixed with spaces, but there should be at least 3 of them\n\n\n cnt = 1;\n\n while (pos < max) {\n ch = state.src.charCodeAt(pos++);\n\n if (ch !== marker && !isSpace(ch)) {\n return false;\n }\n\n if (ch === marker) {\n cnt++;\n }\n }\n\n if (cnt < 3) {\n return false;\n }\n\n if (silent) {\n return true;\n }\n\n state.line = startLine + 1;\n token = state.push('hr', 'hr', 0);\n token.map = [startLine, state.line];\n token.markup = Array(cnt + 1).join(String.fromCharCode(marker));\n return true;\n};","// Lists\n'use strict';\n\nvar isSpace = require('../common/utils').isSpace; // Search `[-+*][\\n ]`, returns next pos after marker on success\n// or -1 on fail.\n\n\nfunction skipBulletListMarker(state, startLine) {\n var marker, pos, max, ch;\n pos = state.bMarks[startLine] + state.tShift[startLine];\n max = state.eMarks[startLine];\n marker = state.src.charCodeAt(pos++); // Check bullet\n\n if (marker !== 0x2A\n /* * */\n && marker !== 0x2D\n /* - */\n && marker !== 0x2B\n /* + */\n ) {\n return -1;\n }\n\n if (pos < max) {\n ch = state.src.charCodeAt(pos);\n\n if (!isSpace(ch)) {\n // \" -test \" - is not a list item\n return -1;\n }\n }\n\n return pos;\n} // Search `\\d+[.)][\\n ]`, returns next pos after marker on success\n// or -1 on fail.\n\n\nfunction skipOrderedListMarker(state, startLine) {\n var ch,\n start = state.bMarks[startLine] + state.tShift[startLine],\n pos = start,\n max = state.eMarks[startLine]; // List marker should have at least 2 chars (digit + dot)\n\n if (pos + 1 >= max) {\n return -1;\n }\n\n ch = state.src.charCodeAt(pos++);\n\n if (ch < 0x30\n /* 0 */\n || ch > 0x39\n /* 9 */\n ) {\n return -1;\n }\n\n for (;;) {\n // EOL -> fail\n if (pos >= max) {\n return -1;\n }\n\n ch = state.src.charCodeAt(pos++);\n\n if (ch >= 0x30\n /* 0 */\n && ch <= 0x39\n /* 9 */\n ) {\n // List marker should have no more than 9 digits\n // (prevents integer overflow in browsers)\n if (pos - start >= 10) {\n return -1;\n }\n\n continue;\n } // found valid marker\n\n\n if (ch === 0x29\n /* ) */\n || ch === 0x2e\n /* . */\n ) {\n break;\n }\n\n return -1;\n }\n\n if (pos < max) {\n ch = state.src.charCodeAt(pos);\n\n if (!isSpace(ch)) {\n // \" 1.test \" - is not a list item\n return -1;\n }\n }\n\n return pos;\n}\n\nfunction markTightParagraphs(state, idx) {\n var i,\n l,\n level = state.level + 2;\n\n for (i = idx + 2, l = state.tokens.length - 2; i < l; i++) {\n if (state.tokens[i].level === level && state.tokens[i].type === 'paragraph_open') {\n state.tokens[i + 2].hidden = true;\n state.tokens[i].hidden = true;\n i += 2;\n }\n }\n}\n\nmodule.exports = function list(state, startLine, endLine, silent) {\n var ch,\n contentStart,\n i,\n indent,\n indentAfterMarker,\n initial,\n isOrdered,\n itemLines,\n l,\n listLines,\n listTokIdx,\n markerCharCode,\n markerValue,\n max,\n offset,\n oldListIndent,\n oldParentType,\n oldSCount,\n oldTShift,\n oldTight,\n pos,\n posAfterMarker,\n prevEmptyEnd,\n start,\n terminate,\n terminatorRules,\n token,\n nextLine = startLine,\n isTerminatingParagraph = false,\n tight = true; // if it's indented more than 3 spaces, it should be a code block\n\n if (state.sCount[nextLine] - state.blkIndent >= 4) {\n return false;\n } // Special case:\n // - item 1\n // - item 2\n // - item 3\n // - item 4\n // - this one is a paragraph continuation\n\n\n if (state.listIndent >= 0 && state.sCount[nextLine] - state.listIndent >= 4 && state.sCount[nextLine] < state.blkIndent) {\n return false;\n } // limit conditions when list can interrupt\n // a paragraph (validation mode only)\n\n\n if (silent && state.parentType === 'paragraph') {\n // Next list item should still terminate previous list item;\n //\n // This code can fail if plugins use blkIndent as well as lists,\n // but I hope the spec gets fixed long before that happens.\n //\n if (state.sCount[nextLine] >= state.blkIndent) {\n isTerminatingParagraph = true;\n }\n } // Detect list type and position after marker\n\n\n if ((posAfterMarker = skipOrderedListMarker(state, nextLine)) >= 0) {\n isOrdered = true;\n start = state.bMarks[nextLine] + state.tShift[nextLine];\n markerValue = Number(state.src.slice(start, posAfterMarker - 1)); // If we're starting a new ordered list right after\n // a paragraph, it should start with 1.\n\n if (isTerminatingParagraph && markerValue !== 1) return false;\n } else if ((posAfterMarker = skipBulletListMarker(state, nextLine)) >= 0) {\n isOrdered = false;\n } else {\n return false;\n } // If we're starting a new unordered list right after\n // a paragraph, first line should not be empty.\n\n\n if (isTerminatingParagraph) {\n if (state.skipSpaces(posAfterMarker) >= state.eMarks[nextLine]) return false;\n } // For validation mode we can terminate immediately\n\n\n if (silent) {\n return true;\n } // We should terminate list on style change. Remember first one to compare.\n\n\n markerCharCode = state.src.charCodeAt(posAfterMarker - 1); // Start list\n\n listTokIdx = state.tokens.length;\n\n if (isOrdered) {\n token = state.push('ordered_list_open', 'ol', 1);\n\n if (markerValue !== 1) {\n token.attrs = [['start', markerValue]];\n }\n } else {\n token = state.push('bullet_list_open', 'ul', 1);\n }\n\n token.map = listLines = [nextLine, 0];\n token.markup = String.fromCharCode(markerCharCode); //\n // Iterate list items\n //\n\n prevEmptyEnd = false;\n terminatorRules = state.md.block.ruler.getRules('list');\n oldParentType = state.parentType;\n state.parentType = 'list';\n\n while (nextLine < endLine) {\n pos = posAfterMarker;\n max = state.eMarks[nextLine];\n initial = offset = state.sCount[nextLine] + posAfterMarker - (state.bMarks[nextLine] + state.tShift[nextLine]);\n\n while (pos < max) {\n ch = state.src.charCodeAt(pos);\n\n if (ch === 0x09) {\n offset += 4 - (offset + state.bsCount[nextLine]) % 4;\n } else if (ch === 0x20) {\n offset++;\n } else {\n break;\n }\n\n pos++;\n }\n\n contentStart = pos;\n\n if (contentStart >= max) {\n // trimming space in \"- \\n 3\" case, indent is 1 here\n indentAfterMarker = 1;\n } else {\n indentAfterMarker = offset - initial;\n } // If we have more than 4 spaces, the indent is 1\n // (the rest is just indented code block)\n\n\n if (indentAfterMarker > 4) {\n indentAfterMarker = 1;\n } // \" - test\"\n // ^^^^^ - calculating total length of this thing\n\n\n indent = initial + indentAfterMarker; // Run subparser & write tokens\n\n token = state.push('list_item_open', 'li', 1);\n token.markup = String.fromCharCode(markerCharCode);\n token.map = itemLines = [nextLine, 0];\n\n if (isOrdered) {\n token.info = state.src.slice(start, posAfterMarker - 1);\n } // change current state, then restore it after parser subcall\n\n\n oldTight = state.tight;\n oldTShift = state.tShift[nextLine];\n oldSCount = state.sCount[nextLine]; // - example list\n // ^ listIndent position will be here\n // ^ blkIndent position will be here\n //\n\n oldListIndent = state.listIndent;\n state.listIndent = state.blkIndent;\n state.blkIndent = indent;\n state.tight = true;\n state.tShift[nextLine] = contentStart - state.bMarks[nextLine];\n state.sCount[nextLine] = offset;\n\n if (contentStart >= max && state.isEmpty(nextLine + 1)) {\n // workaround for this case\n // (list item is empty, list terminates before \"foo\"):\n // ~~~~~~~~\n // -\n //\n // foo\n // ~~~~~~~~\n state.line = Math.min(state.line + 2, endLine);\n } else {\n state.md.block.tokenize(state, nextLine, endLine, true);\n } // If any of list item is tight, mark list as tight\n\n\n if (!state.tight || prevEmptyEnd) {\n tight = false;\n } // Item become loose if finish with empty line,\n // but we should filter last element, because it means list finish\n\n\n prevEmptyEnd = state.line - nextLine > 1 && state.isEmpty(state.line - 1);\n state.blkIndent = state.listIndent;\n state.listIndent = oldListIndent;\n state.tShift[nextLine] = oldTShift;\n state.sCount[nextLine] = oldSCount;\n state.tight = oldTight;\n token = state.push('list_item_close', 'li', -1);\n token.markup = String.fromCharCode(markerCharCode);\n nextLine = state.line;\n itemLines[1] = nextLine;\n\n if (nextLine >= endLine) {\n break;\n } //\n // Try to check if list is terminated or continued.\n //\n\n\n if (state.sCount[nextLine] < state.blkIndent) {\n break;\n } // if it's indented more than 3 spaces, it should be a code block\n\n\n if (state.sCount[nextLine] - state.blkIndent >= 4) {\n break;\n } // fail if terminating block found\n\n\n terminate = false;\n\n for (i = 0, l = terminatorRules.length; i < l; i++) {\n if (terminatorRules[i](state, nextLine, endLine, true)) {\n terminate = true;\n break;\n }\n }\n\n if (terminate) {\n break;\n } // fail if list has another type\n\n\n if (isOrdered) {\n posAfterMarker = skipOrderedListMarker(state, nextLine);\n\n if (posAfterMarker < 0) {\n break;\n }\n\n start = state.bMarks[nextLine] + state.tShift[nextLine];\n } else {\n posAfterMarker = skipBulletListMarker(state, nextLine);\n\n if (posAfterMarker < 0) {\n break;\n }\n }\n\n if (markerCharCode !== state.src.charCodeAt(posAfterMarker - 1)) {\n break;\n }\n } // Finalize list\n\n\n if (isOrdered) {\n token = state.push('ordered_list_close', 'ol', -1);\n } else {\n token = state.push('bullet_list_close', 'ul', -1);\n }\n\n token.markup = String.fromCharCode(markerCharCode);\n listLines[1] = nextLine;\n state.line = nextLine;\n state.parentType = oldParentType; // mark paragraphs tight if needed\n\n if (tight) {\n markTightParagraphs(state, listTokIdx);\n }\n\n return true;\n};","'use strict';\n\nvar normalizeReference = require('../common/utils').normalizeReference;\n\nvar isSpace = require('../common/utils').isSpace;\n\nmodule.exports = function reference(state, startLine, _endLine, silent) {\n var ch,\n destEndPos,\n destEndLineNo,\n endLine,\n href,\n i,\n l,\n label,\n labelEnd,\n oldParentType,\n res,\n start,\n str,\n terminate,\n terminatorRules,\n title,\n lines = 0,\n pos = state.bMarks[startLine] + state.tShift[startLine],\n max = state.eMarks[startLine],\n nextLine = startLine + 1; // if it's indented more than 3 spaces, it should be a code block\n\n if (state.sCount[startLine] - state.blkIndent >= 4) {\n return false;\n }\n\n if (state.src.charCodeAt(pos) !== 0x5B\n /* [ */\n ) {\n return false;\n } // Simple check to quickly interrupt scan on [link](url) at the start of line.\n // Can be useful on practice: https://github.com/markdown-it/markdown-it/issues/54\n\n\n while (++pos < max) {\n if (state.src.charCodeAt(pos) === 0x5D\n /* ] */\n && state.src.charCodeAt(pos - 1) !== 0x5C\n /* \\ */\n ) {\n if (pos + 1 === max) {\n return false;\n }\n\n if (state.src.charCodeAt(pos + 1) !== 0x3A\n /* : */\n ) {\n return false;\n }\n\n break;\n }\n }\n\n endLine = state.lineMax; // jump line-by-line until empty one or EOF\n\n terminatorRules = state.md.block.ruler.getRules('reference');\n oldParentType = state.parentType;\n state.parentType = 'reference';\n\n for (; nextLine < endLine && !state.isEmpty(nextLine); nextLine++) {\n // this would be a code block normally, but after paragraph\n // it's considered a lazy continuation regardless of what's there\n if (state.sCount[nextLine] - state.blkIndent > 3) {\n continue;\n } // quirk for blockquotes, this line should already be checked by that rule\n\n\n if (state.sCount[nextLine] < 0) {\n continue;\n } // Some tags can terminate paragraph without empty line.\n\n\n terminate = false;\n\n for (i = 0, l = terminatorRules.length; i < l; i++) {\n if (terminatorRules[i](state, nextLine, endLine, true)) {\n terminate = true;\n break;\n }\n }\n\n if (terminate) {\n break;\n }\n }\n\n str = state.getLines(startLine, nextLine, state.blkIndent, false).trim();\n max = str.length;\n\n for (pos = 1; pos < max; pos++) {\n ch = str.charCodeAt(pos);\n\n if (ch === 0x5B\n /* [ */\n ) {\n return false;\n } else if (ch === 0x5D\n /* ] */\n ) {\n labelEnd = pos;\n break;\n } else if (ch === 0x0A\n /* \\n */\n ) {\n lines++;\n } else if (ch === 0x5C\n /* \\ */\n ) {\n pos++;\n\n if (pos < max && str.charCodeAt(pos) === 0x0A) {\n lines++;\n }\n }\n }\n\n if (labelEnd < 0 || str.charCodeAt(labelEnd + 1) !== 0x3A\n /* : */\n ) {\n return false;\n } // [label]: destination 'title'\n // ^^^ skip optional whitespace here\n\n\n for (pos = labelEnd + 2; pos < max; pos++) {\n ch = str.charCodeAt(pos);\n\n if (ch === 0x0A) {\n lines++;\n } else if (isSpace(ch)) {\n /*eslint no-empty:0*/\n } else {\n break;\n }\n } // [label]: destination 'title'\n // ^^^^^^^^^^^ parse this\n\n\n res = state.md.helpers.parseLinkDestination(str, pos, max);\n\n if (!res.ok) {\n return false;\n }\n\n href = state.md.normalizeLink(res.str);\n\n if (!state.md.validateLink(href)) {\n return false;\n }\n\n pos = res.pos;\n lines += res.lines; // save cursor state, we could require to rollback later\n\n destEndPos = pos;\n destEndLineNo = lines; // [label]: destination 'title'\n // ^^^ skipping those spaces\n\n start = pos;\n\n for (; pos < max; pos++) {\n ch = str.charCodeAt(pos);\n\n if (ch === 0x0A) {\n lines++;\n } else if (isSpace(ch)) {\n /*eslint no-empty:0*/\n } else {\n break;\n }\n } // [label]: destination 'title'\n // ^^^^^^^ parse this\n\n\n res = state.md.helpers.parseLinkTitle(str, pos, max);\n\n if (pos < max && start !== pos && res.ok) {\n title = res.str;\n pos = res.pos;\n lines += res.lines;\n } else {\n title = '';\n pos = destEndPos;\n lines = destEndLineNo;\n } // skip trailing spaces until the rest of the line\n\n\n while (pos < max) {\n ch = str.charCodeAt(pos);\n\n if (!isSpace(ch)) {\n break;\n }\n\n pos++;\n }\n\n if (pos < max && str.charCodeAt(pos) !== 0x0A) {\n if (title) {\n // garbage at the end of the line after title,\n // but it could still be a valid reference if we roll back\n title = '';\n pos = destEndPos;\n lines = destEndLineNo;\n\n while (pos < max) {\n ch = str.charCodeAt(pos);\n\n if (!isSpace(ch)) {\n break;\n }\n\n pos++;\n }\n }\n }\n\n if (pos < max && str.charCodeAt(pos) !== 0x0A) {\n // garbage at the end of the line\n return false;\n }\n\n label = normalizeReference(str.slice(1, labelEnd));\n\n if (!label) {\n // CommonMark 0.20 disallows empty labels\n return false;\n } // Reference can not terminate anything. This check is for safety only.\n\n /*istanbul ignore if*/\n\n\n if (silent) {\n return true;\n }\n\n if (typeof state.env.references === 'undefined') {\n state.env.references = {};\n }\n\n if (typeof state.env.references[label] === 'undefined') {\n state.env.references[label] = {\n title: title,\n href: href\n };\n }\n\n state.parentType = oldParentType;\n state.line = startLine + lines + 1;\n return true;\n};","// HTML block\n'use strict';\n\nvar block_names = require('../common/html_blocks');\n\nvar HTML_OPEN_CLOSE_TAG_RE = require('../common/html_re').HTML_OPEN_CLOSE_TAG_RE; // An array of opening and corresponding closing sequences for html tags,\n// last argument defines whether it can terminate a paragraph or not\n//\n\n\nvar HTML_SEQUENCES = [[/^<(script|pre|style|textarea)(?=(\\s|>|$))/i, /<\\/(script|pre|style|textarea)>/i, true], [/^/, true], [/^<\\?/, /\\?>/, true], [/^/, true], [/^/, true], [new RegExp('^?(' + block_names.join('|') + ')(?=(\\\\s|/?>|$))', 'i'), /^$/, true], [new RegExp(HTML_OPEN_CLOSE_TAG_RE.source + '\\\\s*$'), /^$/, false]];\n\nmodule.exports = function html_block(state, startLine, endLine, silent) {\n var i,\n nextLine,\n token,\n lineText,\n pos = state.bMarks[startLine] + state.tShift[startLine],\n max = state.eMarks[startLine]; // if it's indented more than 3 spaces, it should be a code block\n\n if (state.sCount[startLine] - state.blkIndent >= 4) {\n return false;\n }\n\n if (!state.md.options.html) {\n return false;\n }\n\n if (state.src.charCodeAt(pos) !== 0x3C\n /* < */\n ) {\n return false;\n }\n\n lineText = state.src.slice(pos, max);\n\n for (i = 0; i < HTML_SEQUENCES.length; i++) {\n if (HTML_SEQUENCES[i][0].test(lineText)) {\n break;\n }\n }\n\n if (i === HTML_SEQUENCES.length) {\n return false;\n }\n\n if (silent) {\n // true if this sequence can be a terminator, false otherwise\n return HTML_SEQUENCES[i][2];\n }\n\n nextLine = startLine + 1; // If we are here - we detected HTML block.\n // Let's roll down till block end.\n\n if (!HTML_SEQUENCES[i][1].test(lineText)) {\n for (; nextLine < endLine; nextLine++) {\n if (state.sCount[nextLine] < state.blkIndent) {\n break;\n }\n\n pos = state.bMarks[nextLine] + state.tShift[nextLine];\n max = state.eMarks[nextLine];\n lineText = state.src.slice(pos, max);\n\n if (HTML_SEQUENCES[i][1].test(lineText)) {\n if (lineText.length !== 0) {\n nextLine++;\n }\n\n break;\n }\n }\n }\n\n state.line = nextLine;\n token = state.push('html_block', '', 0);\n token.map = [startLine, nextLine];\n token.content = state.getLines(startLine, nextLine, state.blkIndent, true);\n return true;\n};","// List of valid html blocks names, accorting to commonmark spec\n// http://jgm.github.io/CommonMark/spec.html#html-blocks\n'use strict';\n\nmodule.exports = ['address', 'article', 'aside', 'base', 'basefont', 'blockquote', 'body', 'caption', 'center', 'col', 'colgroup', 'dd', 'details', 'dialog', 'dir', 'div', 'dl', 'dt', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'frame', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hr', 'html', 'iframe', 'legend', 'li', 'link', 'main', 'menu', 'menuitem', 'nav', 'noframes', 'ol', 'optgroup', 'option', 'p', 'param', 'section', 'source', 'summary', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'title', 'tr', 'track', 'ul'];","// heading (#, ##, ...)\n'use strict';\n\nvar isSpace = require('../common/utils').isSpace;\n\nmodule.exports = function heading(state, startLine, endLine, silent) {\n var ch,\n level,\n tmp,\n token,\n pos = state.bMarks[startLine] + state.tShift[startLine],\n max = state.eMarks[startLine]; // if it's indented more than 3 spaces, it should be a code block\n\n if (state.sCount[startLine] - state.blkIndent >= 4) {\n return false;\n }\n\n ch = state.src.charCodeAt(pos);\n\n if (ch !== 0x23\n /* # */\n || pos >= max) {\n return false;\n } // count heading level\n\n\n level = 1;\n ch = state.src.charCodeAt(++pos);\n\n while (ch === 0x23\n /* # */\n && pos < max && level <= 6) {\n level++;\n ch = state.src.charCodeAt(++pos);\n }\n\n if (level > 6 || pos < max && !isSpace(ch)) {\n return false;\n }\n\n if (silent) {\n return true;\n } // Let's cut tails like ' ### ' from the end of string\n\n\n max = state.skipSpacesBack(max, pos);\n tmp = state.skipCharsBack(max, 0x23, pos); // #\n\n if (tmp > pos && isSpace(state.src.charCodeAt(tmp - 1))) {\n max = tmp;\n }\n\n state.line = startLine + 1;\n token = state.push('heading_open', 'h' + String(level), 1);\n token.markup = '########'.slice(0, level);\n token.map = [startLine, state.line];\n token = state.push('inline', '', 0);\n token.content = state.src.slice(pos, max).trim();\n token.map = [startLine, state.line];\n token.children = [];\n token = state.push('heading_close', 'h' + String(level), -1);\n token.markup = '########'.slice(0, level);\n return true;\n};","// lheading (---, ===)\n'use strict';\n\nmodule.exports = function lheading(state, startLine, endLine\n/*, silent*/\n) {\n var content,\n terminate,\n i,\n l,\n token,\n pos,\n max,\n level,\n marker,\n nextLine = startLine + 1,\n oldParentType,\n terminatorRules = state.md.block.ruler.getRules('paragraph'); // if it's indented more than 3 spaces, it should be a code block\n\n if (state.sCount[startLine] - state.blkIndent >= 4) {\n return false;\n }\n\n oldParentType = state.parentType;\n state.parentType = 'paragraph'; // use paragraph to match terminatorRules\n // jump line-by-line until empty one or EOF\n\n for (; nextLine < endLine && !state.isEmpty(nextLine); nextLine++) {\n // this would be a code block normally, but after paragraph\n // it's considered a lazy continuation regardless of what's there\n if (state.sCount[nextLine] - state.blkIndent > 3) {\n continue;\n } //\n // Check for underline in setext header\n //\n\n\n if (state.sCount[nextLine] >= state.blkIndent) {\n pos = state.bMarks[nextLine] + state.tShift[nextLine];\n max = state.eMarks[nextLine];\n\n if (pos < max) {\n marker = state.src.charCodeAt(pos);\n\n if (marker === 0x2D\n /* - */\n || marker === 0x3D\n /* = */\n ) {\n pos = state.skipChars(pos, marker);\n pos = state.skipSpaces(pos);\n\n if (pos >= max) {\n level = marker === 0x3D\n /* = */\n ? 1 : 2;\n break;\n }\n }\n }\n } // quirk for blockquotes, this line should already be checked by that rule\n\n\n if (state.sCount[nextLine] < 0) {\n continue;\n } // Some tags can terminate paragraph without empty line.\n\n\n terminate = false;\n\n for (i = 0, l = terminatorRules.length; i < l; i++) {\n if (terminatorRules[i](state, nextLine, endLine, true)) {\n terminate = true;\n break;\n }\n }\n\n if (terminate) {\n break;\n }\n }\n\n if (!level) {\n // Didn't find valid underline\n return false;\n }\n\n content = state.getLines(startLine, nextLine, state.blkIndent, false).trim();\n state.line = nextLine + 1;\n token = state.push('heading_open', 'h' + String(level), 1);\n token.markup = String.fromCharCode(marker);\n token.map = [startLine, state.line];\n token = state.push('inline', '', 0);\n token.content = content;\n token.map = [startLine, state.line - 1];\n token.children = [];\n token = state.push('heading_close', 'h' + String(level), -1);\n token.markup = String.fromCharCode(marker);\n state.parentType = oldParentType;\n return true;\n};","// Paragraph\n'use strict';\n\nmodule.exports = function paragraph(state, startLine, endLine) {\n var content,\n terminate,\n i,\n l,\n token,\n oldParentType,\n nextLine = startLine + 1,\n terminatorRules = state.md.block.ruler.getRules('paragraph');\n oldParentType = state.parentType;\n state.parentType = 'paragraph'; // jump line-by-line until empty one or EOF\n\n for (; nextLine < endLine && !state.isEmpty(nextLine); nextLine++) {\n // this would be a code block normally, but after paragraph\n // it's considered a lazy continuation regardless of what's there\n if (state.sCount[nextLine] - state.blkIndent > 3) {\n continue;\n } // quirk for blockquotes, this line should already be checked by that rule\n\n\n if (state.sCount[nextLine] < 0) {\n continue;\n } // Some tags can terminate paragraph without empty line.\n\n\n terminate = false;\n\n for (i = 0, l = terminatorRules.length; i < l; i++) {\n if (terminatorRules[i](state, nextLine, endLine, true)) {\n terminate = true;\n break;\n }\n }\n\n if (terminate) {\n break;\n }\n }\n\n content = state.getLines(startLine, nextLine, state.blkIndent, false).trim();\n state.line = nextLine;\n token = state.push('paragraph_open', 'p', 1);\n token.map = [startLine, state.line];\n token = state.push('inline', '', 0);\n token.content = content;\n token.map = [startLine, state.line];\n token.children = [];\n token = state.push('paragraph_close', 'p', -1);\n state.parentType = oldParentType;\n return true;\n};","// Parser state class\n'use strict';\n\nvar Token = require('../token');\n\nvar isSpace = require('../common/utils').isSpace;\n\nfunction StateBlock(src, md, env, tokens) {\n var ch, s, start, pos, len, indent, offset, indent_found;\n this.src = src; // link to parser instance\n\n this.md = md;\n this.env = env; //\n // Internal state vartiables\n //\n\n this.tokens = tokens;\n this.bMarks = []; // line begin offsets for fast jumps\n\n this.eMarks = []; // line end offsets for fast jumps\n\n this.tShift = []; // offsets of the first non-space characters (tabs not expanded)\n\n this.sCount = []; // indents for each line (tabs expanded)\n // An amount of virtual spaces (tabs expanded) between beginning\n // of each line (bMarks) and real beginning of that line.\n //\n // It exists only as a hack because blockquotes override bMarks\n // losing information in the process.\n //\n // It's used only when expanding tabs, you can think about it as\n // an initial tab length, e.g. bsCount=21 applied to string `\\t123`\n // means first tab should be expanded to 4-21%4 === 3 spaces.\n //\n\n this.bsCount = []; // block parser variables\n\n this.blkIndent = 0; // required block content indent (for example, if we are\n // inside a list, it would be positioned after list marker)\n\n this.line = 0; // line index in src\n\n this.lineMax = 0; // lines count\n\n this.tight = false; // loose/tight mode for lists\n\n this.ddIndent = -1; // indent of the current dd block (-1 if there isn't any)\n\n this.listIndent = -1; // indent of the current list block (-1 if there isn't any)\n // can be 'blockquote', 'list', 'root', 'paragraph' or 'reference'\n // used in lists to determine if they interrupt a paragraph\n\n this.parentType = 'root';\n this.level = 0; // renderer\n\n this.result = ''; // Create caches\n // Generate markers.\n\n s = this.src;\n indent_found = false;\n\n for (start = pos = indent = offset = 0, len = s.length; pos < len; pos++) {\n ch = s.charCodeAt(pos);\n\n if (!indent_found) {\n if (isSpace(ch)) {\n indent++;\n\n if (ch === 0x09) {\n offset += 4 - offset % 4;\n } else {\n offset++;\n }\n\n continue;\n } else {\n indent_found = true;\n }\n }\n\n if (ch === 0x0A || pos === len - 1) {\n if (ch !== 0x0A) {\n pos++;\n }\n\n this.bMarks.push(start);\n this.eMarks.push(pos);\n this.tShift.push(indent);\n this.sCount.push(offset);\n this.bsCount.push(0);\n indent_found = false;\n indent = 0;\n offset = 0;\n start = pos + 1;\n }\n } // Push fake entry to simplify cache bounds checks\n\n\n this.bMarks.push(s.length);\n this.eMarks.push(s.length);\n this.tShift.push(0);\n this.sCount.push(0);\n this.bsCount.push(0);\n this.lineMax = this.bMarks.length - 1; // don't count last fake line\n} // Push new token to \"stream\".\n//\n\n\nStateBlock.prototype.push = function (type, tag, nesting) {\n var token = new Token(type, tag, nesting);\n token.block = true;\n if (nesting < 0) this.level--; // closing tag\n\n token.level = this.level;\n if (nesting > 0) this.level++; // opening tag\n\n this.tokens.push(token);\n return token;\n};\n\nStateBlock.prototype.isEmpty = function isEmpty(line) {\n return this.bMarks[line] + this.tShift[line] >= this.eMarks[line];\n};\n\nStateBlock.prototype.skipEmptyLines = function skipEmptyLines(from) {\n for (var max = this.lineMax; from < max; from++) {\n if (this.bMarks[from] + this.tShift[from] < this.eMarks[from]) {\n break;\n }\n }\n\n return from;\n}; // Skip spaces from given position.\n\n\nStateBlock.prototype.skipSpaces = function skipSpaces(pos) {\n var ch;\n\n for (var max = this.src.length; pos < max; pos++) {\n ch = this.src.charCodeAt(pos);\n\n if (!isSpace(ch)) {\n break;\n }\n }\n\n return pos;\n}; // Skip spaces from given position in reverse.\n\n\nStateBlock.prototype.skipSpacesBack = function skipSpacesBack(pos, min) {\n if (pos <= min) {\n return pos;\n }\n\n while (pos > min) {\n if (!isSpace(this.src.charCodeAt(--pos))) {\n return pos + 1;\n }\n }\n\n return pos;\n}; // Skip char codes from given position\n\n\nStateBlock.prototype.skipChars = function skipChars(pos, code) {\n for (var max = this.src.length; pos < max; pos++) {\n if (this.src.charCodeAt(pos) !== code) {\n break;\n }\n }\n\n return pos;\n}; // Skip char codes reverse from given position - 1\n\n\nStateBlock.prototype.skipCharsBack = function skipCharsBack(pos, code, min) {\n if (pos <= min) {\n return pos;\n }\n\n while (pos > min) {\n if (code !== this.src.charCodeAt(--pos)) {\n return pos + 1;\n }\n }\n\n return pos;\n}; // cut lines range from source.\n\n\nStateBlock.prototype.getLines = function getLines(begin, end, indent, keepLastLF) {\n var i,\n lineIndent,\n ch,\n first,\n last,\n queue,\n lineStart,\n line = begin;\n\n if (begin >= end) {\n return '';\n }\n\n queue = new Array(end - begin);\n\n for (i = 0; line < end; line++, i++) {\n lineIndent = 0;\n lineStart = first = this.bMarks[line];\n\n if (line + 1 < end || keepLastLF) {\n // No need for bounds check because we have fake entry on tail.\n last = this.eMarks[line] + 1;\n } else {\n last = this.eMarks[line];\n }\n\n while (first < last && lineIndent < indent) {\n ch = this.src.charCodeAt(first);\n\n if (isSpace(ch)) {\n if (ch === 0x09) {\n lineIndent += 4 - (lineIndent + this.bsCount[line]) % 4;\n } else {\n lineIndent++;\n }\n } else if (first - lineStart < this.tShift[line]) {\n // patched tShift masked characters to look like spaces (blockquotes, list markers)\n lineIndent++;\n } else {\n break;\n }\n\n first++;\n }\n\n if (lineIndent > indent) {\n // partially expanding tabs in code blocks, e.g '\\t\\tfoobar'\n // with indent=2 becomes ' \\tfoobar'\n queue[i] = new Array(lineIndent - indent + 1).join(' ') + this.src.slice(first, last);\n } else {\n queue[i] = this.src.slice(first, last);\n }\n }\n\n return queue.join('');\n}; // re-export Token class to use in block rules\n\n\nStateBlock.prototype.Token = Token;\nmodule.exports = StateBlock;","/** internal\n * class ParserInline\n *\n * Tokenizes paragraph content.\n **/\n'use strict';\n\nvar Ruler = require('./ruler'); ////////////////////////////////////////////////////////////////////////////////\n// Parser rules\n\n\nvar _rules = [['text', require('./rules_inline/text')], ['linkify', require('./rules_inline/linkify')], ['newline', require('./rules_inline/newline')], ['escape', require('./rules_inline/escape')], ['backticks', require('./rules_inline/backticks')], ['strikethrough', require('./rules_inline/strikethrough').tokenize], ['emphasis', require('./rules_inline/emphasis').tokenize], ['link', require('./rules_inline/link')], ['image', require('./rules_inline/image')], ['autolink', require('./rules_inline/autolink')], ['html_inline', require('./rules_inline/html_inline')], ['entity', require('./rules_inline/entity')]]; // `rule2` ruleset was created specifically for emphasis/strikethrough\n// post-processing and may be changed in the future.\n//\n// Don't use this for anything except pairs (plugins working with `balance_pairs`).\n//\n\nvar _rules2 = [['balance_pairs', require('./rules_inline/balance_pairs')], ['strikethrough', require('./rules_inline/strikethrough').postProcess], ['emphasis', require('./rules_inline/emphasis').postProcess], // rules for pairs separate '**' into its own text tokens, which may be left unused,\n// rule below merges unused segments back with the rest of the text\n['fragments_join', require('./rules_inline/fragments_join')]];\n/**\n * new ParserInline()\n **/\n\nfunction ParserInline() {\n var i;\n /**\n * ParserInline#ruler -> Ruler\n *\n * [[Ruler]] instance. Keep configuration of inline rules.\n **/\n\n this.ruler = new Ruler();\n\n for (i = 0; i < _rules.length; i++) {\n this.ruler.push(_rules[i][0], _rules[i][1]);\n }\n /**\n * ParserInline#ruler2 -> Ruler\n *\n * [[Ruler]] instance. Second ruler used for post-processing\n * (e.g. in emphasis-like rules).\n **/\n\n\n this.ruler2 = new Ruler();\n\n for (i = 0; i < _rules2.length; i++) {\n this.ruler2.push(_rules2[i][0], _rules2[i][1]);\n }\n} // Skip single token by running all rules in validation mode;\n// returns `true` if any rule reported success\n//\n\n\nParserInline.prototype.skipToken = function (state) {\n var ok,\n i,\n pos = state.pos,\n rules = this.ruler.getRules(''),\n len = rules.length,\n maxNesting = state.md.options.maxNesting,\n cache = state.cache;\n\n if (typeof cache[pos] !== 'undefined') {\n state.pos = cache[pos];\n return;\n }\n\n if (state.level < maxNesting) {\n for (i = 0; i < len; i++) {\n // Increment state.level and decrement it later to limit recursion.\n // It's harmless to do here, because no tokens are created. But ideally,\n // we'd need a separate private state variable for this purpose.\n //\n state.level++;\n ok = rules[i](state, true);\n state.level--;\n\n if (ok) {\n if (pos >= state.pos) {\n throw new Error(\"inline rule didn't increment state.pos\");\n }\n\n break;\n }\n }\n } else {\n // Too much nesting, just skip until the end of the paragraph.\n //\n // NOTE: this will cause links to behave incorrectly in the following case,\n // when an amount of `[` is exactly equal to `maxNesting + 1`:\n //\n // [[[[[[[[[[[[[[[[[[[[[foo]()\n //\n // TODO: remove this workaround when CM standard will allow nested links\n // (we can replace it by preventing links from being parsed in\n // validation mode)\n //\n state.pos = state.posMax;\n }\n\n if (!ok) {\n state.pos++;\n }\n\n cache[pos] = state.pos;\n}; // Generate tokens for input range\n//\n\n\nParserInline.prototype.tokenize = function (state) {\n var ok,\n i,\n prevPos,\n rules = this.ruler.getRules(''),\n len = rules.length,\n end = state.posMax,\n maxNesting = state.md.options.maxNesting;\n\n while (state.pos < end) {\n // Try all possible rules.\n // On success, rule should:\n //\n // - update `state.pos`\n // - update `state.tokens`\n // - return true\n prevPos = state.pos;\n\n if (state.level < maxNesting) {\n for (i = 0; i < len; i++) {\n ok = rules[i](state, false);\n\n if (ok) {\n if (prevPos >= state.pos) {\n throw new Error(\"inline rule didn't increment state.pos\");\n }\n\n break;\n }\n }\n }\n\n if (ok) {\n if (state.pos >= end) {\n break;\n }\n\n continue;\n }\n\n state.pending += state.src[state.pos++];\n }\n\n if (state.pending) {\n state.pushPending();\n }\n};\n/**\n * ParserInline.parse(str, md, env, outTokens)\n *\n * Process input string and push inline tokens into `outTokens`\n **/\n\n\nParserInline.prototype.parse = function (str, md, env, outTokens) {\n var i, rules, len;\n var state = new this.State(str, md, env, outTokens);\n this.tokenize(state);\n rules = this.ruler2.getRules('');\n len = rules.length;\n\n for (i = 0; i < len; i++) {\n rules[i](state);\n }\n};\n\nParserInline.prototype.State = require('./rules_inline/state_inline');\nmodule.exports = ParserInline;","// Skip text characters for text token, place those to pending buffer\n// and increment current pos\n'use strict'; // Rule to skip pure text\n// '{}$%@~+=:' reserved for extentions\n// !, \", #, $, %, &, ', (, ), *, +, ,, -, ., /, :, ;, <, =, >, ?, @, [, \\, ], ^, _, `, {, |, }, or ~\n// !!!! Don't confuse with \"Markdown ASCII Punctuation\" chars\n// http://spec.commonmark.org/0.15/#ascii-punctuation-character\n\nfunction isTerminatorChar(ch) {\n switch (ch) {\n case 0x0A\n /* \\n */\n :\n case 0x21\n /* ! */\n :\n case 0x23\n /* # */\n :\n case 0x24\n /* $ */\n :\n case 0x25\n /* % */\n :\n case 0x26\n /* & */\n :\n case 0x2A\n /* * */\n :\n case 0x2B\n /* + */\n :\n case 0x2D\n /* - */\n :\n case 0x3A\n /* : */\n :\n case 0x3C\n /* < */\n :\n case 0x3D\n /* = */\n :\n case 0x3E\n /* > */\n :\n case 0x40\n /* @ */\n :\n case 0x5B\n /* [ */\n :\n case 0x5C\n /* \\ */\n :\n case 0x5D\n /* ] */\n :\n case 0x5E\n /* ^ */\n :\n case 0x5F\n /* _ */\n :\n case 0x60\n /* ` */\n :\n case 0x7B\n /* { */\n :\n case 0x7D\n /* } */\n :\n case 0x7E\n /* ~ */\n :\n return true;\n\n default:\n return false;\n }\n}\n\nmodule.exports = function text(state, silent) {\n var pos = state.pos;\n\n while (pos < state.posMax && !isTerminatorChar(state.src.charCodeAt(pos))) {\n pos++;\n }\n\n if (pos === state.pos) {\n return false;\n }\n\n if (!silent) {\n state.pending += state.src.slice(state.pos, pos);\n }\n\n state.pos = pos;\n return true;\n}; // Alternative implementation, for memory.\n//\n// It costs 10% of performance, but allows extend terminators list, if place it\n// to `ParcerInline` property. Probably, will switch to it sometime, such\n// flexibility required.\n\n/*\nvar TERMINATOR_RE = /[\\n!#$%&*+\\-:<=>@[\\\\\\]^_`{}~]/;\n\nmodule.exports = function text(state, silent) {\n var pos = state.pos,\n idx = state.src.slice(pos).search(TERMINATOR_RE);\n\n // first char is terminator -> empty text\n if (idx === 0) { return false; }\n\n // no terminator -> text till end of string\n if (idx < 0) {\n if (!silent) { state.pending += state.src.slice(pos); }\n state.pos = state.src.length;\n return true;\n }\n\n if (!silent) { state.pending += state.src.slice(pos, pos + idx); }\n\n state.pos += idx;\n\n return true;\n};*/","// Process links like https://example.org/\n'use strict'; // RFC3986: scheme = ALPHA *( ALPHA / DIGIT / \"+\" / \"-\" / \".\" )\n\nvar SCHEME_RE = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;\n\nmodule.exports = function linkify(state, silent) {\n var pos, max, match, proto, link, url, fullUrl, token;\n if (!state.md.options.linkify) return false;\n if (state.linkLevel > 0) return false;\n pos = state.pos;\n max = state.posMax;\n if (pos + 3 > max) return false;\n if (state.src.charCodeAt(pos) !== 0x3A\n /* : */\n ) return false;\n if (state.src.charCodeAt(pos + 1) !== 0x2F\n /* / */\n ) return false;\n if (state.src.charCodeAt(pos + 2) !== 0x2F\n /* / */\n ) return false;\n match = state.pending.match(SCHEME_RE);\n if (!match) return false;\n proto = match[1];\n link = state.md.linkify.matchAtStart(state.src.slice(pos - proto.length));\n if (!link) return false;\n url = link.url; // invalid link, but still detected by linkify somehow;\n // need to check to prevent infinite loop below\n\n if (url.length <= proto.length) return false; // disallow '*' at the end of the link (conflicts with emphasis)\n\n url = url.replace(/\\*+$/, '');\n fullUrl = state.md.normalizeLink(url);\n if (!state.md.validateLink(fullUrl)) return false;\n\n if (!silent) {\n state.pending = state.pending.slice(0, -proto.length);\n token = state.push('link_open', 'a', 1);\n token.attrs = [['href', fullUrl]];\n token.markup = 'linkify';\n token.info = 'auto';\n token = state.push('text', '', 0);\n token.content = state.md.normalizeLinkText(url);\n token = state.push('link_close', 'a', -1);\n token.markup = 'linkify';\n token.info = 'auto';\n }\n\n state.pos += url.length - proto.length;\n return true;\n};","// Proceess '\\n'\n'use strict';\n\nvar isSpace = require('../common/utils').isSpace;\n\nmodule.exports = function newline(state, silent) {\n var pmax,\n max,\n ws,\n pos = state.pos;\n\n if (state.src.charCodeAt(pos) !== 0x0A\n /* \\n */\n ) {\n return false;\n }\n\n pmax = state.pending.length - 1;\n max = state.posMax; // ' \\n' -> hardbreak\n // Lookup in pending chars is bad practice! Don't copy to other rules!\n // Pending string is stored in concat mode, indexed lookups will cause\n // convertion to flat mode.\n\n if (!silent) {\n if (pmax >= 0 && state.pending.charCodeAt(pmax) === 0x20) {\n if (pmax >= 1 && state.pending.charCodeAt(pmax - 1) === 0x20) {\n // Find whitespaces tail of pending chars.\n ws = pmax - 1;\n\n while (ws >= 1 && state.pending.charCodeAt(ws - 1) === 0x20) {\n ws--;\n }\n\n state.pending = state.pending.slice(0, ws);\n state.push('hardbreak', 'br', 0);\n } else {\n state.pending = state.pending.slice(0, -1);\n state.push('softbreak', 'br', 0);\n }\n } else {\n state.push('softbreak', 'br', 0);\n }\n }\n\n pos++; // skip heading spaces for next line\n\n while (pos < max && isSpace(state.src.charCodeAt(pos))) {\n pos++;\n }\n\n state.pos = pos;\n return true;\n};","// Process escaped chars and hardbreaks\n'use strict';\n\nvar isSpace = require('../common/utils').isSpace;\n\nvar ESCAPED = [];\n\nfor (var i = 0; i < 256; i++) {\n ESCAPED.push(0);\n}\n\n'\\\\!\"#$%&\\'()*+,./:;<=>?@[]^_`{|}~-'.split('').forEach(function (ch) {\n ESCAPED[ch.charCodeAt(0)] = 1;\n});\n\nmodule.exports = function escape(state, silent) {\n var ch1,\n ch2,\n origStr,\n escapedStr,\n token,\n pos = state.pos,\n max = state.posMax;\n if (state.src.charCodeAt(pos) !== 0x5C\n /* \\ */\n ) return false;\n pos++; // '\\' at the end of the inline block\n\n if (pos >= max) return false;\n ch1 = state.src.charCodeAt(pos);\n\n if (ch1 === 0x0A) {\n if (!silent) {\n state.push('hardbreak', 'br', 0);\n }\n\n pos++; // skip leading whitespaces from next line\n\n while (pos < max) {\n ch1 = state.src.charCodeAt(pos);\n if (!isSpace(ch1)) break;\n pos++;\n }\n\n state.pos = pos;\n return true;\n }\n\n escapedStr = state.src[pos];\n\n if (ch1 >= 0xD800 && ch1 <= 0xDBFF && pos + 1 < max) {\n ch2 = state.src.charCodeAt(pos + 1);\n\n if (ch2 >= 0xDC00 && ch2 <= 0xDFFF) {\n escapedStr += state.src[pos + 1];\n pos++;\n }\n }\n\n origStr = '\\\\' + escapedStr;\n\n if (!silent) {\n token = state.push('text_special', '', 0);\n\n if (ch1 < 256 && ESCAPED[ch1] !== 0) {\n token.content = escapedStr;\n } else {\n token.content = origStr;\n }\n\n token.markup = origStr;\n token.info = 'escape';\n }\n\n state.pos = pos + 1;\n return true;\n};","// Parse backticks\n'use strict';\n\nmodule.exports = function backtick(state, silent) {\n var start,\n max,\n marker,\n token,\n matchStart,\n matchEnd,\n openerLength,\n closerLength,\n pos = state.pos,\n ch = state.src.charCodeAt(pos);\n\n if (ch !== 0x60\n /* ` */\n ) {\n return false;\n }\n\n start = pos;\n pos++;\n max = state.posMax; // scan marker length\n\n while (pos < max && state.src.charCodeAt(pos) === 0x60\n /* ` */\n ) {\n pos++;\n }\n\n marker = state.src.slice(start, pos);\n openerLength = marker.length;\n\n if (state.backticksScanned && (state.backticks[openerLength] || 0) <= start) {\n if (!silent) state.pending += marker;\n state.pos += openerLength;\n return true;\n }\n\n matchEnd = pos; // Nothing found in the cache, scan until the end of the line (or until marker is found)\n\n while ((matchStart = state.src.indexOf('`', matchEnd)) !== -1) {\n matchEnd = matchStart + 1; // scan marker length\n\n while (matchEnd < max && state.src.charCodeAt(matchEnd) === 0x60\n /* ` */\n ) {\n matchEnd++;\n }\n\n closerLength = matchEnd - matchStart;\n\n if (closerLength === openerLength) {\n // Found matching closer length.\n if (!silent) {\n token = state.push('code_inline', 'code', 0);\n token.markup = marker;\n token.content = state.src.slice(pos, matchStart).replace(/\\n/g, ' ').replace(/^ (.+) $/, '$1');\n }\n\n state.pos = matchEnd;\n return true;\n } // Some different length found, put it in cache as upper limit of where closer can be found\n\n\n state.backticks[closerLength] = matchStart;\n } // Scanned through the end, didn't find anything\n\n\n state.backticksScanned = true;\n if (!silent) state.pending += marker;\n state.pos += openerLength;\n return true;\n};","// Process [link]( \"stuff\")\n'use strict';\n\nvar normalizeReference = require('../common/utils').normalizeReference;\n\nvar isSpace = require('../common/utils').isSpace;\n\nmodule.exports = function link(state, silent) {\n var attrs,\n code,\n label,\n labelEnd,\n labelStart,\n pos,\n res,\n ref,\n token,\n href = '',\n title = '',\n oldPos = state.pos,\n max = state.posMax,\n start = state.pos,\n parseReference = true;\n\n if (state.src.charCodeAt(state.pos) !== 0x5B\n /* [ */\n ) {\n return false;\n }\n\n labelStart = state.pos + 1;\n labelEnd = state.md.helpers.parseLinkLabel(state, state.pos, true); // parser failed to find ']', so it's not a valid link\n\n if (labelEnd < 0) {\n return false;\n }\n\n pos = labelEnd + 1;\n\n if (pos < max && state.src.charCodeAt(pos) === 0x28\n /* ( */\n ) {\n //\n // Inline link\n //\n // might have found a valid shortcut link, disable reference parsing\n parseReference = false; // [link]( \"title\" )\n // ^^ skipping these spaces\n\n pos++;\n\n for (; pos < max; pos++) {\n code = state.src.charCodeAt(pos);\n\n if (!isSpace(code) && code !== 0x0A) {\n break;\n }\n }\n\n if (pos >= max) {\n return false;\n } // [link]( \"title\" )\n // ^^^^^^ parsing link destination\n\n\n start = pos;\n res = state.md.helpers.parseLinkDestination(state.src, pos, state.posMax);\n\n if (res.ok) {\n href = state.md.normalizeLink(res.str);\n\n if (state.md.validateLink(href)) {\n pos = res.pos;\n } else {\n href = '';\n } // [link]( \"title\" )\n // ^^ skipping these spaces\n\n\n start = pos;\n\n for (; pos < max; pos++) {\n code = state.src.charCodeAt(pos);\n\n if (!isSpace(code) && code !== 0x0A) {\n break;\n }\n } // [link]( \"title\" )\n // ^^^^^^^ parsing link title\n\n\n res = state.md.helpers.parseLinkTitle(state.src, pos, state.posMax);\n\n if (pos < max && start !== pos && res.ok) {\n title = res.str;\n pos = res.pos; // [link]( \"title\" )\n // ^^ skipping these spaces\n\n for (; pos < max; pos++) {\n code = state.src.charCodeAt(pos);\n\n if (!isSpace(code) && code !== 0x0A) {\n break;\n }\n }\n }\n }\n\n if (pos >= max || state.src.charCodeAt(pos) !== 0x29\n /* ) */\n ) {\n // parsing a valid shortcut link failed, fallback to reference\n parseReference = true;\n }\n\n pos++;\n }\n\n if (parseReference) {\n //\n // Link reference\n //\n if (typeof state.env.references === 'undefined') {\n return false;\n }\n\n if (pos < max && state.src.charCodeAt(pos) === 0x5B\n /* [ */\n ) {\n start = pos + 1;\n pos = state.md.helpers.parseLinkLabel(state, pos);\n\n if (pos >= 0) {\n label = state.src.slice(start, pos++);\n } else {\n pos = labelEnd + 1;\n }\n } else {\n pos = labelEnd + 1;\n } // covers label === '' and label === undefined\n // (collapsed reference link and shortcut reference link respectively)\n\n\n if (!label) {\n label = state.src.slice(labelStart, labelEnd);\n }\n\n ref = state.env.references[normalizeReference(label)];\n\n if (!ref) {\n state.pos = oldPos;\n return false;\n }\n\n href = ref.href;\n title = ref.title;\n } //\n // We found the end of the link, and know for a fact it's a valid link;\n // so all that's left to do is to call tokenizer.\n //\n\n\n if (!silent) {\n state.pos = labelStart;\n state.posMax = labelEnd;\n token = state.push('link_open', 'a', 1);\n token.attrs = attrs = [['href', href]];\n\n if (title) {\n attrs.push(['title', title]);\n }\n\n state.linkLevel++;\n state.md.inline.tokenize(state);\n state.linkLevel--;\n token = state.push('link_close', 'a', -1);\n }\n\n state.pos = pos;\n state.posMax = max;\n return true;\n};","// Process \n'use strict';\n\nvar normalizeReference = require('../common/utils').normalizeReference;\n\nvar isSpace = require('../common/utils').isSpace;\n\nmodule.exports = function image(state, silent) {\n var attrs,\n code,\n content,\n label,\n labelEnd,\n labelStart,\n pos,\n ref,\n res,\n title,\n token,\n tokens,\n start,\n href = '',\n oldPos = state.pos,\n max = state.posMax;\n\n if (state.src.charCodeAt(state.pos) !== 0x21\n /* ! */\n ) {\n return false;\n }\n\n if (state.src.charCodeAt(state.pos + 1) !== 0x5B\n /* [ */\n ) {\n return false;\n }\n\n labelStart = state.pos + 2;\n labelEnd = state.md.helpers.parseLinkLabel(state, state.pos + 1, false); // parser failed to find ']', so it's not a valid link\n\n if (labelEnd < 0) {\n return false;\n }\n\n pos = labelEnd + 1;\n\n if (pos < max && state.src.charCodeAt(pos) === 0x28\n /* ( */\n ) {\n //\n // Inline link\n //\n // [link]( \"title\" )\n // ^^ skipping these spaces\n pos++;\n\n for (; pos < max; pos++) {\n code = state.src.charCodeAt(pos);\n\n if (!isSpace(code) && code !== 0x0A) {\n break;\n }\n }\n\n if (pos >= max) {\n return false;\n } // [link]( \"title\" )\n // ^^^^^^ parsing link destination\n\n\n start = pos;\n res = state.md.helpers.parseLinkDestination(state.src, pos, state.posMax);\n\n if (res.ok) {\n href = state.md.normalizeLink(res.str);\n\n if (state.md.validateLink(href)) {\n pos = res.pos;\n } else {\n href = '';\n }\n } // [link]( \"title\" )\n // ^^ skipping these spaces\n\n\n start = pos;\n\n for (; pos < max; pos++) {\n code = state.src.charCodeAt(pos);\n\n if (!isSpace(code) && code !== 0x0A) {\n break;\n }\n } // [link]( \"title\" )\n // ^^^^^^^ parsing link title\n\n\n res = state.md.helpers.parseLinkTitle(state.src, pos, state.posMax);\n\n if (pos < max && start !== pos && res.ok) {\n title = res.str;\n pos = res.pos; // [link]( \"title\" )\n // ^^ skipping these spaces\n\n for (; pos < max; pos++) {\n code = state.src.charCodeAt(pos);\n\n if (!isSpace(code) && code !== 0x0A) {\n break;\n }\n }\n } else {\n title = '';\n }\n\n if (pos >= max || state.src.charCodeAt(pos) !== 0x29\n /* ) */\n ) {\n state.pos = oldPos;\n return false;\n }\n\n pos++;\n } else {\n //\n // Link reference\n //\n if (typeof state.env.references === 'undefined') {\n return false;\n }\n\n if (pos < max && state.src.charCodeAt(pos) === 0x5B\n /* [ */\n ) {\n start = pos + 1;\n pos = state.md.helpers.parseLinkLabel(state, pos);\n\n if (pos >= 0) {\n label = state.src.slice(start, pos++);\n } else {\n pos = labelEnd + 1;\n }\n } else {\n pos = labelEnd + 1;\n } // covers label === '' and label === undefined\n // (collapsed reference link and shortcut reference link respectively)\n\n\n if (!label) {\n label = state.src.slice(labelStart, labelEnd);\n }\n\n ref = state.env.references[normalizeReference(label)];\n\n if (!ref) {\n state.pos = oldPos;\n return false;\n }\n\n href = ref.href;\n title = ref.title;\n } //\n // We found the end of the link, and know for a fact it's a valid link;\n // so all that's left to do is to call tokenizer.\n //\n\n\n if (!silent) {\n content = state.src.slice(labelStart, labelEnd);\n state.md.inline.parse(content, state.md, state.env, tokens = []);\n token = state.push('image', 'img', 0);\n token.attrs = attrs = [['src', href], ['alt', '']];\n token.children = tokens;\n token.content = content;\n\n if (title) {\n attrs.push(['title', title]);\n }\n }\n\n state.pos = pos;\n state.posMax = max;\n return true;\n};","// Process autolinks ''\n'use strict';\n/*eslint max-len:0*/\n\nvar EMAIL_RE = /^([a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/;\nvar AUTOLINK_RE = /^([a-zA-Z][a-zA-Z0-9+.\\-]{1,31}):([^<>\\x00-\\x20]*)$/;\n\nmodule.exports = function autolink(state, silent) {\n var url,\n fullUrl,\n token,\n ch,\n start,\n max,\n pos = state.pos;\n\n if (state.src.charCodeAt(pos) !== 0x3C\n /* < */\n ) {\n return false;\n }\n\n start = state.pos;\n max = state.posMax;\n\n for (;;) {\n if (++pos >= max) return false;\n ch = state.src.charCodeAt(pos);\n if (ch === 0x3C\n /* < */\n ) return false;\n if (ch === 0x3E\n /* > */\n ) break;\n }\n\n url = state.src.slice(start + 1, pos);\n\n if (AUTOLINK_RE.test(url)) {\n fullUrl = state.md.normalizeLink(url);\n\n if (!state.md.validateLink(fullUrl)) {\n return false;\n }\n\n if (!silent) {\n token = state.push('link_open', 'a', 1);\n token.attrs = [['href', fullUrl]];\n token.markup = 'autolink';\n token.info = 'auto';\n token = state.push('text', '', 0);\n token.content = state.md.normalizeLinkText(url);\n token = state.push('link_close', 'a', -1);\n token.markup = 'autolink';\n token.info = 'auto';\n }\n\n state.pos += url.length + 2;\n return true;\n }\n\n if (EMAIL_RE.test(url)) {\n fullUrl = state.md.normalizeLink('mailto:' + url);\n\n if (!state.md.validateLink(fullUrl)) {\n return false;\n }\n\n if (!silent) {\n token = state.push('link_open', 'a', 1);\n token.attrs = [['href', fullUrl]];\n token.markup = 'autolink';\n token.info = 'auto';\n token = state.push('text', '', 0);\n token.content = state.md.normalizeLinkText(url);\n token = state.push('link_close', 'a', -1);\n token.markup = 'autolink';\n token.info = 'auto';\n }\n\n state.pos += url.length + 2;\n return true;\n }\n\n return false;\n};","// Process html tags\n'use strict';\n\nvar HTML_TAG_RE = require('../common/html_re').HTML_TAG_RE;\n\nfunction isLinkOpen(str) {\n return /^\\s]/i.test(str);\n}\n\nfunction isLinkClose(str) {\n return /^<\\/a\\s*>/i.test(str);\n}\n\nfunction isLetter(ch) {\n /*eslint no-bitwise:0*/\n var lc = ch | 0x20; // to lower case\n\n return lc >= 0x61\n /* a */\n && lc <= 0x7a\n /* z */\n ;\n}\n\nmodule.exports = function html_inline(state, silent) {\n var ch,\n match,\n max,\n token,\n pos = state.pos;\n\n if (!state.md.options.html) {\n return false;\n } // Check start\n\n\n max = state.posMax;\n\n if (state.src.charCodeAt(pos) !== 0x3C\n /* < */\n || pos + 2 >= max) {\n return false;\n } // Quick fail on second char\n\n\n ch = state.src.charCodeAt(pos + 1);\n\n if (ch !== 0x21\n /* ! */\n && ch !== 0x3F\n /* ? */\n && ch !== 0x2F\n /* / */\n && !isLetter(ch)) {\n return false;\n }\n\n match = state.src.slice(pos).match(HTML_TAG_RE);\n\n if (!match) {\n return false;\n }\n\n if (!silent) {\n token = state.push('html_inline', '', 0);\n token.content = match[0];\n if (isLinkOpen(token.content)) state.linkLevel++;\n if (isLinkClose(token.content)) state.linkLevel--;\n }\n\n state.pos += match[0].length;\n return true;\n};","// Process html entity - {, ¯, ", ...\n'use strict';\n\nvar entities = require('../common/entities');\n\nvar has = require('../common/utils').has;\n\nvar isValidEntityCode = require('../common/utils').isValidEntityCode;\n\nvar fromCodePoint = require('../common/utils').fromCodePoint;\n\nvar DIGITAL_RE = /^((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i;\nvar NAMED_RE = /^&([a-z][a-z0-9]{1,31});/i;\n\nmodule.exports = function entity(state, silent) {\n var ch,\n code,\n match,\n token,\n pos = state.pos,\n max = state.posMax;\n if (state.src.charCodeAt(pos) !== 0x26\n /* & */\n ) return false;\n if (pos + 1 >= max) return false;\n ch = state.src.charCodeAt(pos + 1);\n\n if (ch === 0x23\n /* # */\n ) {\n match = state.src.slice(pos).match(DIGITAL_RE);\n\n if (match) {\n if (!silent) {\n code = match[1][0].toLowerCase() === 'x' ? parseInt(match[1].slice(1), 16) : parseInt(match[1], 10);\n token = state.push('text_special', '', 0);\n token.content = isValidEntityCode(code) ? fromCodePoint(code) : fromCodePoint(0xFFFD);\n token.markup = match[0];\n token.info = 'entity';\n }\n\n state.pos += match[0].length;\n return true;\n }\n } else {\n match = state.src.slice(pos).match(NAMED_RE);\n\n if (match) {\n if (has(entities, match[1])) {\n if (!silent) {\n token = state.push('text_special', '', 0);\n token.content = entities[match[1]];\n token.markup = match[0];\n token.info = 'entity';\n }\n\n state.pos += match[0].length;\n return true;\n }\n }\n }\n\n return false;\n};","// For each opening emphasis-like marker find a matching closing one\n//\n'use strict';\n\nfunction processDelimiters(delimiters) {\n var closerIdx,\n openerIdx,\n closer,\n opener,\n minOpenerIdx,\n newMinOpenerIdx,\n isOddMatch,\n lastJump,\n openersBottom = {},\n max = delimiters.length;\n if (!max) return; // headerIdx is the first delimiter of the current (where closer is) delimiter run\n\n var headerIdx = 0;\n var lastTokenIdx = -2; // needs any value lower than -1\n\n var jumps = [];\n\n for (closerIdx = 0; closerIdx < max; closerIdx++) {\n closer = delimiters[closerIdx];\n jumps.push(0); // markers belong to same delimiter run if:\n // - they have adjacent tokens\n // - AND markers are the same\n //\n\n if (delimiters[headerIdx].marker !== closer.marker || lastTokenIdx !== closer.token - 1) {\n headerIdx = closerIdx;\n }\n\n lastTokenIdx = closer.token; // Length is only used for emphasis-specific \"rule of 3\",\n // if it's not defined (in strikethrough or 3rd party plugins),\n // we can default it to 0 to disable those checks.\n //\n\n closer.length = closer.length || 0;\n if (!closer.close) continue; // Previously calculated lower bounds (previous fails)\n // for each marker, each delimiter length modulo 3,\n // and for whether this closer can be an opener;\n // https://github.com/commonmark/cmark/commit/34250e12ccebdc6372b8b49c44fab57c72443460\n\n if (!openersBottom.hasOwnProperty(closer.marker)) {\n openersBottom[closer.marker] = [-1, -1, -1, -1, -1, -1];\n }\n\n minOpenerIdx = openersBottom[closer.marker][(closer.open ? 3 : 0) + closer.length % 3];\n openerIdx = headerIdx - jumps[headerIdx] - 1;\n newMinOpenerIdx = openerIdx;\n\n for (; openerIdx > minOpenerIdx; openerIdx -= jumps[openerIdx] + 1) {\n opener = delimiters[openerIdx];\n if (opener.marker !== closer.marker) continue;\n\n if (opener.open && opener.end < 0) {\n isOddMatch = false; // from spec:\n //\n // If one of the delimiters can both open and close emphasis, then the\n // sum of the lengths of the delimiter runs containing the opening and\n // closing delimiters must not be a multiple of 3 unless both lengths\n // are multiples of 3.\n //\n\n if (opener.close || closer.open) {\n if ((opener.length + closer.length) % 3 === 0) {\n if (opener.length % 3 !== 0 || closer.length % 3 !== 0) {\n isOddMatch = true;\n }\n }\n }\n\n if (!isOddMatch) {\n // If previous delimiter cannot be an opener, we can safely skip\n // the entire sequence in future checks. This is required to make\n // sure algorithm has linear complexity (see *_*_*_*_*_... case).\n //\n lastJump = openerIdx > 0 && !delimiters[openerIdx - 1].open ? jumps[openerIdx - 1] + 1 : 0;\n jumps[closerIdx] = closerIdx - openerIdx + lastJump;\n jumps[openerIdx] = lastJump;\n closer.open = false;\n opener.end = closerIdx;\n opener.close = false;\n newMinOpenerIdx = -1; // treat next token as start of run,\n // it optimizes skips in **<...>**a**<...>** pathological case\n\n lastTokenIdx = -2;\n break;\n }\n }\n }\n\n if (newMinOpenerIdx !== -1) {\n // If match for this delimiter run failed, we want to set lower bound for\n // future lookups. This is required to make sure algorithm has linear\n // complexity.\n //\n // See details here:\n // https://github.com/commonmark/cmark/issues/178#issuecomment-270417442\n //\n openersBottom[closer.marker][(closer.open ? 3 : 0) + (closer.length || 0) % 3] = newMinOpenerIdx;\n }\n }\n}\n\nmodule.exports = function link_pairs(state) {\n var curr,\n tokens_meta = state.tokens_meta,\n max = state.tokens_meta.length;\n processDelimiters(state.delimiters);\n\n for (curr = 0; curr < max; curr++) {\n if (tokens_meta[curr] && tokens_meta[curr].delimiters) {\n processDelimiters(tokens_meta[curr].delimiters);\n }\n }\n};","// Clean up tokens after emphasis and strikethrough postprocessing:\n// merge adjacent text nodes into one and re-calculate all token levels\n//\n// This is necessary because initially emphasis delimiter markers (*, _, ~)\n// are treated as their own separate text tokens. Then emphasis rule either\n// leaves them as text (needed to merge with adjacent text) or turns them\n// into opening/closing tags (which messes up levels inside).\n//\n'use strict';\n\nmodule.exports = function fragments_join(state) {\n var curr,\n last,\n level = 0,\n tokens = state.tokens,\n max = state.tokens.length;\n\n for (curr = last = 0; curr < max; curr++) {\n // re-calculate levels after emphasis/strikethrough turns some text nodes\n // into opening/closing tags\n if (tokens[curr].nesting < 0) level--; // closing tag\n\n tokens[curr].level = level;\n if (tokens[curr].nesting > 0) level++; // opening tag\n\n if (tokens[curr].type === 'text' && curr + 1 < max && tokens[curr + 1].type === 'text') {\n // collapse two adjacent text nodes\n tokens[curr + 1].content = tokens[curr].content + tokens[curr + 1].content;\n } else {\n if (curr !== last) {\n tokens[last] = tokens[curr];\n }\n\n last++;\n }\n }\n\n if (curr !== last) {\n tokens.length = last;\n }\n};","// Inline parser state\n'use strict';\n\nvar Token = require('../token');\n\nvar isWhiteSpace = require('../common/utils').isWhiteSpace;\n\nvar isPunctChar = require('../common/utils').isPunctChar;\n\nvar isMdAsciiPunct = require('../common/utils').isMdAsciiPunct;\n\nfunction StateInline(src, md, env, outTokens) {\n this.src = src;\n this.env = env;\n this.md = md;\n this.tokens = outTokens;\n this.tokens_meta = Array(outTokens.length);\n this.pos = 0;\n this.posMax = this.src.length;\n this.level = 0;\n this.pending = '';\n this.pendingLevel = 0; // Stores { start: end } pairs. Useful for backtrack\n // optimization of pairs parse (emphasis, strikes).\n\n this.cache = {}; // List of emphasis-like delimiters for current tag\n\n this.delimiters = []; // Stack of delimiter lists for upper level tags\n\n this._prev_delimiters = []; // backtick length => last seen position\n\n this.backticks = {};\n this.backticksScanned = false; // Counter used to disable inline linkify-it execution\n // inside and markdown links\n\n this.linkLevel = 0;\n} // Flush pending text\n//\n\n\nStateInline.prototype.pushPending = function () {\n var token = new Token('text', '', 0);\n token.content = this.pending;\n token.level = this.pendingLevel;\n this.tokens.push(token);\n this.pending = '';\n return token;\n}; // Push new token to \"stream\".\n// If pending text exists - flush it as text token\n//\n\n\nStateInline.prototype.push = function (type, tag, nesting) {\n if (this.pending) {\n this.pushPending();\n }\n\n var token = new Token(type, tag, nesting);\n var token_meta = null;\n\n if (nesting < 0) {\n // closing tag\n this.level--;\n this.delimiters = this._prev_delimiters.pop();\n }\n\n token.level = this.level;\n\n if (nesting > 0) {\n // opening tag\n this.level++;\n\n this._prev_delimiters.push(this.delimiters);\n\n this.delimiters = [];\n token_meta = {\n delimiters: this.delimiters\n };\n }\n\n this.pendingLevel = this.level;\n this.tokens.push(token);\n this.tokens_meta.push(token_meta);\n return token;\n}; // Scan a sequence of emphasis-like markers, and determine whether\n// it can start an emphasis sequence or end an emphasis sequence.\n//\n// - start - position to scan from (it should point at a valid marker);\n// - canSplitWord - determine if these markers can be found inside a word\n//\n\n\nStateInline.prototype.scanDelims = function (start, canSplitWord) {\n var pos = start,\n lastChar,\n nextChar,\n count,\n can_open,\n can_close,\n isLastWhiteSpace,\n isLastPunctChar,\n isNextWhiteSpace,\n isNextPunctChar,\n left_flanking = true,\n right_flanking = true,\n max = this.posMax,\n marker = this.src.charCodeAt(start); // treat beginning of the line as a whitespace\n\n lastChar = start > 0 ? this.src.charCodeAt(start - 1) : 0x20;\n\n while (pos < max && this.src.charCodeAt(pos) === marker) {\n pos++;\n }\n\n count = pos - start; // treat end of the line as a whitespace\n\n nextChar = pos < max ? this.src.charCodeAt(pos) : 0x20;\n isLastPunctChar = isMdAsciiPunct(lastChar) || isPunctChar(String.fromCharCode(lastChar));\n isNextPunctChar = isMdAsciiPunct(nextChar) || isPunctChar(String.fromCharCode(nextChar));\n isLastWhiteSpace = isWhiteSpace(lastChar);\n isNextWhiteSpace = isWhiteSpace(nextChar);\n\n if (isNextWhiteSpace) {\n left_flanking = false;\n } else if (isNextPunctChar) {\n if (!(isLastWhiteSpace || isLastPunctChar)) {\n left_flanking = false;\n }\n }\n\n if (isLastWhiteSpace) {\n right_flanking = false;\n } else if (isLastPunctChar) {\n if (!(isNextWhiteSpace || isNextPunctChar)) {\n right_flanking = false;\n }\n }\n\n if (!canSplitWord) {\n can_open = left_flanking && (!right_flanking || isLastPunctChar);\n can_close = right_flanking && (!left_flanking || isNextPunctChar);\n } else {\n can_open = left_flanking;\n can_close = right_flanking;\n }\n\n return {\n can_open: can_open,\n can_close: can_close,\n length: count\n };\n}; // re-export Token class to use in block rules\n\n\nStateInline.prototype.Token = Token;\nmodule.exports = StateInline;","// markdown-it default options\n'use strict';\n\nmodule.exports = {\n options: {\n html: false,\n // Enable HTML tags in source\n xhtmlOut: false,\n // Use '/' to close single tags (
)\n breaks: false,\n // Convert '\\n' in paragraphs into
\n langPrefix: 'language-',\n // CSS language prefix for fenced blocks\n linkify: false,\n // autoconvert URL-like texts to links\n // Enable some language-neutral replacements + quotes beautification\n typographer: false,\n // Double + single quotes replacement pairs, when typographer enabled,\n // and smartquotes on. Could be either a String or an Array.\n //\n // For example, you can use '«»„“' for Russian, '„“‚‘' for German,\n // and ['«\\xA0', '\\xA0»', '‹\\xA0', '\\xA0›'] for French (including nbsp).\n quotes: \"\\u201C\\u201D\\u2018\\u2019\",\n\n /* “”‘’ */\n // Highlighter function. Should return escaped HTML,\n // or '' if the source string is not changed and should be escaped externaly.\n // If result starts with )\n breaks: false,\n // Convert '\\n' in paragraphs into
\n langPrefix: 'language-',\n // CSS language prefix for fenced blocks\n linkify: false,\n // autoconvert URL-like texts to links\n // Enable some language-neutral replacements + quotes beautification\n typographer: false,\n // Double + single quotes replacement pairs, when typographer enabled,\n // and smartquotes on. Could be either a String or an Array.\n //\n // For example, you can use '«»„“' for Russian, '„“‚‘' for German,\n // and ['«\\xA0', '\\xA0»', '‹\\xA0', '\\xA0›'] for French (including nbsp).\n quotes: \"\\u201C\\u201D\\u2018\\u2019\",\n\n /* “”‘’ */\n // Highlighter function. Should return escaped HTML,\n // or '' if the source string is not changed and should be escaped externaly.\n // If result starts with )\n breaks: false,\n // Convert '\\n' in paragraphs into
\n langPrefix: 'language-',\n // CSS language prefix for fenced blocks\n linkify: false,\n // autoconvert URL-like texts to links\n // Enable some language-neutral replacements + quotes beautification\n typographer: false,\n // Double + single quotes replacement pairs, when typographer enabled,\n // and smartquotes on. Could be either a String or an Array.\n //\n // For example, you can use '«»„“' for Russian, '„“‚‘' for German,\n // and ['«\\xA0', '\\xA0»', '‹\\xA0', '\\xA0›'] for French (including nbsp).\n quotes: \"\\u201C\\u201D\\u2018\\u2019\",\n\n /* “”‘’ */\n // Highlighter function. Should return escaped HTML,\n // or '' if the source string is not changed and should be escaped externaly.\n // If result starts with 1 ? arguments[1] : undefined;\n var len = toLength(that.length);\n var end = endPosition === undefined ? len : min(toLength(endPosition), len);\n var search = String(searchString);\n return $endsWith\n ? $endsWith.call(that, search, end)\n : that.slice(end - search.length, end) === search;\n }\n});\n","var getNative = require('./_getNative'),\n root = require('./_root');\n/* Built-in method references that are verified to be native. */\n\n\nvar Map = getNative(root, 'Map');\nmodule.exports = Map;","var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n/** `Object#toString` result references. */\n\n\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n } // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n\n\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;","var root = require('./_root');\n/** Built-in value references. */\n\n\nvar _Symbol = root.Symbol;\nmodule.exports = _Symbol;","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nvar root = require('./_root'),\n stubFalse = require('./stubFalse');\n/** Detect free variable `exports`. */\n\n\nvar freeExports = (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) == 'object' && exports && !exports.nodeType && exports;\n/** Detect free variable `module`. */\n\nvar freeModule = freeExports && (typeof module === \"undefined\" ? \"undefined\" : _typeof(module)) == 'object' && module && !module.nodeType && module;\n/** Detect the popular CommonJS extension `module.exports`. */\n\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n/** Built-in value references. */\n\nvar Buffer = moduleExports ? root.Buffer : undefined;\n/* Built-in method references for those with the same name as other `lodash` methods. */\n\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\n\nvar isBuffer = nativeIsBuffer || stubFalse;\nmodule.exports = isBuffer;","var baseIsTypedArray = require('./_baseIsTypedArray'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n/* Node.js helper references. */\n\n\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\n\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\nmodule.exports = isTypedArray;","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\n\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = typeof Ctor == 'function' && Ctor.prototype || objectProto;\n return value === proto;\n}\n\nmodule.exports = isPrototype;","var defineProperty = require('./_defineProperty');\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n\n\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\nmodule.exports = baseAssignValue;","var map = {\n\t\"./af\": 390,\n\t\"./af.js\": 390,\n\t\"./ar\": 391,\n\t\"./ar-dz\": 392,\n\t\"./ar-dz.js\": 392,\n\t\"./ar-kw\": 393,\n\t\"./ar-kw.js\": 393,\n\t\"./ar-ly\": 394,\n\t\"./ar-ly.js\": 394,\n\t\"./ar-ma\": 395,\n\t\"./ar-ma.js\": 395,\n\t\"./ar-sa\": 396,\n\t\"./ar-sa.js\": 396,\n\t\"./ar-tn\": 397,\n\t\"./ar-tn.js\": 397,\n\t\"./ar.js\": 391,\n\t\"./az\": 398,\n\t\"./az.js\": 398,\n\t\"./be\": 399,\n\t\"./be.js\": 399,\n\t\"./bg\": 400,\n\t\"./bg.js\": 400,\n\t\"./bm\": 401,\n\t\"./bm.js\": 401,\n\t\"./bn\": 402,\n\t\"./bn-bd\": 403,\n\t\"./bn-bd.js\": 403,\n\t\"./bn.js\": 402,\n\t\"./bo\": 404,\n\t\"./bo.js\": 404,\n\t\"./br\": 405,\n\t\"./br.js\": 405,\n\t\"./bs\": 406,\n\t\"./bs.js\": 406,\n\t\"./ca\": 407,\n\t\"./ca.js\": 407,\n\t\"./cs\": 408,\n\t\"./cs.js\": 408,\n\t\"./cv\": 409,\n\t\"./cv.js\": 409,\n\t\"./cy\": 410,\n\t\"./cy.js\": 410,\n\t\"./da\": 411,\n\t\"./da.js\": 411,\n\t\"./de\": 412,\n\t\"./de-at\": 413,\n\t\"./de-at.js\": 413,\n\t\"./de-ch\": 414,\n\t\"./de-ch.js\": 414,\n\t\"./de.js\": 412,\n\t\"./dv\": 415,\n\t\"./dv.js\": 415,\n\t\"./el\": 416,\n\t\"./el.js\": 416,\n\t\"./en-au\": 417,\n\t\"./en-au.js\": 417,\n\t\"./en-ca\": 418,\n\t\"./en-ca.js\": 418,\n\t\"./en-gb\": 419,\n\t\"./en-gb.js\": 419,\n\t\"./en-ie\": 420,\n\t\"./en-ie.js\": 420,\n\t\"./en-il\": 421,\n\t\"./en-il.js\": 421,\n\t\"./en-in\": 422,\n\t\"./en-in.js\": 422,\n\t\"./en-nz\": 423,\n\t\"./en-nz.js\": 423,\n\t\"./en-sg\": 424,\n\t\"./en-sg.js\": 424,\n\t\"./eo\": 425,\n\t\"./eo.js\": 425,\n\t\"./es\": 426,\n\t\"./es-do\": 427,\n\t\"./es-do.js\": 427,\n\t\"./es-mx\": 428,\n\t\"./es-mx.js\": 428,\n\t\"./es-us\": 429,\n\t\"./es-us.js\": 429,\n\t\"./es.js\": 426,\n\t\"./et\": 430,\n\t\"./et.js\": 430,\n\t\"./eu\": 431,\n\t\"./eu.js\": 431,\n\t\"./fa\": 432,\n\t\"./fa.js\": 432,\n\t\"./fi\": 433,\n\t\"./fi.js\": 433,\n\t\"./fil\": 434,\n\t\"./fil.js\": 434,\n\t\"./fo\": 435,\n\t\"./fo.js\": 435,\n\t\"./fr\": 436,\n\t\"./fr-ca\": 437,\n\t\"./fr-ca.js\": 437,\n\t\"./fr-ch\": 438,\n\t\"./fr-ch.js\": 438,\n\t\"./fr.js\": 436,\n\t\"./fy\": 439,\n\t\"./fy.js\": 439,\n\t\"./ga\": 440,\n\t\"./ga.js\": 440,\n\t\"./gd\": 441,\n\t\"./gd.js\": 441,\n\t\"./gl\": 442,\n\t\"./gl.js\": 442,\n\t\"./gom-deva\": 443,\n\t\"./gom-deva.js\": 443,\n\t\"./gom-latn\": 444,\n\t\"./gom-latn.js\": 444,\n\t\"./gu\": 445,\n\t\"./gu.js\": 445,\n\t\"./he\": 446,\n\t\"./he.js\": 446,\n\t\"./hi\": 447,\n\t\"./hi.js\": 447,\n\t\"./hr\": 448,\n\t\"./hr.js\": 448,\n\t\"./hu\": 449,\n\t\"./hu.js\": 449,\n\t\"./hy-am\": 450,\n\t\"./hy-am.js\": 450,\n\t\"./id\": 451,\n\t\"./id.js\": 451,\n\t\"./is\": 452,\n\t\"./is.js\": 452,\n\t\"./it\": 453,\n\t\"./it-ch\": 454,\n\t\"./it-ch.js\": 454,\n\t\"./it.js\": 453,\n\t\"./ja\": 455,\n\t\"./ja.js\": 455,\n\t\"./jv\": 456,\n\t\"./jv.js\": 456,\n\t\"./ka\": 457,\n\t\"./ka.js\": 457,\n\t\"./kk\": 458,\n\t\"./kk.js\": 458,\n\t\"./km\": 459,\n\t\"./km.js\": 459,\n\t\"./kn\": 460,\n\t\"./kn.js\": 460,\n\t\"./ko\": 461,\n\t\"./ko.js\": 461,\n\t\"./ku\": 462,\n\t\"./ku.js\": 462,\n\t\"./ky\": 463,\n\t\"./ky.js\": 463,\n\t\"./lb\": 464,\n\t\"./lb.js\": 464,\n\t\"./lo\": 465,\n\t\"./lo.js\": 465,\n\t\"./lt\": 466,\n\t\"./lt.js\": 466,\n\t\"./lv\": 467,\n\t\"./lv.js\": 467,\n\t\"./me\": 468,\n\t\"./me.js\": 468,\n\t\"./mi\": 469,\n\t\"./mi.js\": 469,\n\t\"./mk\": 470,\n\t\"./mk.js\": 470,\n\t\"./ml\": 471,\n\t\"./ml.js\": 471,\n\t\"./mn\": 472,\n\t\"./mn.js\": 472,\n\t\"./mr\": 473,\n\t\"./mr.js\": 473,\n\t\"./ms\": 474,\n\t\"./ms-my\": 475,\n\t\"./ms-my.js\": 475,\n\t\"./ms.js\": 474,\n\t\"./mt\": 476,\n\t\"./mt.js\": 476,\n\t\"./my\": 477,\n\t\"./my.js\": 477,\n\t\"./nb\": 478,\n\t\"./nb.js\": 478,\n\t\"./ne\": 479,\n\t\"./ne.js\": 479,\n\t\"./nl\": 480,\n\t\"./nl-be\": 481,\n\t\"./nl-be.js\": 481,\n\t\"./nl.js\": 480,\n\t\"./nn\": 482,\n\t\"./nn.js\": 482,\n\t\"./oc-lnc\": 483,\n\t\"./oc-lnc.js\": 483,\n\t\"./pa-in\": 484,\n\t\"./pa-in.js\": 484,\n\t\"./pl\": 485,\n\t\"./pl.js\": 485,\n\t\"./pt\": 486,\n\t\"./pt-br\": 487,\n\t\"./pt-br.js\": 487,\n\t\"./pt.js\": 486,\n\t\"./ro\": 488,\n\t\"./ro.js\": 488,\n\t\"./ru\": 489,\n\t\"./ru.js\": 489,\n\t\"./sd\": 490,\n\t\"./sd.js\": 490,\n\t\"./se\": 491,\n\t\"./se.js\": 491,\n\t\"./si\": 492,\n\t\"./si.js\": 492,\n\t\"./sk\": 493,\n\t\"./sk.js\": 493,\n\t\"./sl\": 494,\n\t\"./sl.js\": 494,\n\t\"./sq\": 495,\n\t\"./sq.js\": 495,\n\t\"./sr\": 496,\n\t\"./sr-cyrl\": 497,\n\t\"./sr-cyrl.js\": 497,\n\t\"./sr.js\": 496,\n\t\"./ss\": 498,\n\t\"./ss.js\": 498,\n\t\"./sv\": 499,\n\t\"./sv.js\": 499,\n\t\"./sw\": 500,\n\t\"./sw.js\": 500,\n\t\"./ta\": 501,\n\t\"./ta.js\": 501,\n\t\"./te\": 502,\n\t\"./te.js\": 502,\n\t\"./tet\": 503,\n\t\"./tet.js\": 503,\n\t\"./tg\": 504,\n\t\"./tg.js\": 504,\n\t\"./th\": 505,\n\t\"./th.js\": 505,\n\t\"./tk\": 506,\n\t\"./tk.js\": 506,\n\t\"./tl-ph\": 507,\n\t\"./tl-ph.js\": 507,\n\t\"./tlh\": 508,\n\t\"./tlh.js\": 508,\n\t\"./tr\": 509,\n\t\"./tr.js\": 509,\n\t\"./tzl\": 510,\n\t\"./tzl.js\": 510,\n\t\"./tzm\": 511,\n\t\"./tzm-latn\": 512,\n\t\"./tzm-latn.js\": 512,\n\t\"./tzm.js\": 511,\n\t\"./ug-cn\": 513,\n\t\"./ug-cn.js\": 513,\n\t\"./uk\": 514,\n\t\"./uk.js\": 514,\n\t\"./ur\": 515,\n\t\"./ur.js\": 515,\n\t\"./uz\": 516,\n\t\"./uz-latn\": 517,\n\t\"./uz-latn.js\": 517,\n\t\"./uz.js\": 516,\n\t\"./vi\": 518,\n\t\"./vi.js\": 518,\n\t\"./x-pseudo\": 519,\n\t\"./x-pseudo.js\": 519,\n\t\"./yo\": 520,\n\t\"./yo.js\": 520,\n\t\"./zh-cn\": 521,\n\t\"./zh-cn.js\": 521,\n\t\"./zh-hk\": 522,\n\t\"./zh-hk.js\": 522,\n\t\"./zh-mo\": 523,\n\t\"./zh-mo.js\": 523,\n\t\"./zh-tw\": 524,\n\t\"./zh-tw.js\": 524\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 1888;","'use strict';\nvar global = require('../internals/global');\nvar redefineAll = require('../internals/redefine-all');\nvar InternalMetadataModule = require('../internals/internal-metadata');\nvar collection = require('../internals/collection');\nvar collectionWeak = require('../internals/collection-weak');\nvar isObject = require('../internals/is-object');\nvar enforceIternalState = require('../internals/internal-state').enforce;\nvar NATIVE_WEAK_MAP = require('../internals/native-weak-map');\n\nvar IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global;\n// eslint-disable-next-line es/no-object-isextensible -- safe\nvar isExtensible = Object.isExtensible;\nvar InternalWeakMap;\n\nvar wrapper = function (init) {\n return function WeakMap() {\n return init(this, arguments.length ? arguments[0] : undefined);\n };\n};\n\n// `WeakMap` constructor\n// https://tc39.es/ecma262/#sec-weakmap-constructor\nvar $WeakMap = module.exports = collection('WeakMap', wrapper, collectionWeak);\n\n// IE11 WeakMap frozen keys fix\n// We can't use feature detection because it crash some old IE builds\n// https://github.com/zloirock/core-js/issues/485\nif (NATIVE_WEAK_MAP && IS_IE11) {\n InternalWeakMap = collectionWeak.getConstructor(wrapper, 'WeakMap', true);\n InternalMetadataModule.REQUIRED = true;\n var WeakMapPrototype = $WeakMap.prototype;\n var nativeDelete = WeakMapPrototype['delete'];\n var nativeHas = WeakMapPrototype.has;\n var nativeGet = WeakMapPrototype.get;\n var nativeSet = WeakMapPrototype.set;\n redefineAll(WeakMapPrototype, {\n 'delete': function (key) {\n if (isObject(key) && !isExtensible(key)) {\n var state = enforceIternalState(this);\n if (!state.frozen) state.frozen = new InternalWeakMap();\n return nativeDelete.call(this, key) || state.frozen['delete'](key);\n } return nativeDelete.call(this, key);\n },\n has: function has(key) {\n if (isObject(key) && !isExtensible(key)) {\n var state = enforceIternalState(this);\n if (!state.frozen) state.frozen = new InternalWeakMap();\n return nativeHas.call(this, key) || state.frozen.has(key);\n } return nativeHas.call(this, key);\n },\n get: function get(key) {\n if (isObject(key) && !isExtensible(key)) {\n var state = enforceIternalState(this);\n if (!state.frozen) state.frozen = new InternalWeakMap();\n return nativeHas.call(this, key) ? nativeGet.call(this, key) : state.frozen.get(key);\n } return nativeGet.call(this, key);\n },\n set: function set(key, value) {\n if (isObject(key) && !isExtensible(key)) {\n var state = enforceIternalState(this);\n if (!state.frozen) state.frozen = new InternalWeakMap();\n nativeHas.call(this, key) ? nativeSet.call(this, key, value) : state.frozen.set(key, value);\n } else nativeSet.call(this, key, value);\n return this;\n }\n });\n}\n","'use strict';\nvar redefineAll = require('../internals/redefine-all');\nvar getWeakData = require('../internals/internal-metadata').getWeakData;\nvar anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar anInstance = require('../internals/an-instance');\nvar iterate = require('../internals/iterate');\nvar ArrayIterationModule = require('../internals/array-iteration');\nvar $has = require('../internals/has');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\nvar find = ArrayIterationModule.find;\nvar findIndex = ArrayIterationModule.findIndex;\nvar id = 0;\n\n// fallback for uncaught frozen keys\nvar uncaughtFrozenStore = function (store) {\n return store.frozen || (store.frozen = new UncaughtFrozenStore());\n};\n\nvar UncaughtFrozenStore = function () {\n this.entries = [];\n};\n\nvar findUncaughtFrozen = function (store, key) {\n return find(store.entries, function (it) {\n return it[0] === key;\n });\n};\n\nUncaughtFrozenStore.prototype = {\n get: function (key) {\n var entry = findUncaughtFrozen(this, key);\n if (entry) return entry[1];\n },\n has: function (key) {\n return !!findUncaughtFrozen(this, key);\n },\n set: function (key, value) {\n var entry = findUncaughtFrozen(this, key);\n if (entry) entry[1] = value;\n else this.entries.push([key, value]);\n },\n 'delete': function (key) {\n var index = findIndex(this.entries, function (it) {\n return it[0] === key;\n });\n if (~index) this.entries.splice(index, 1);\n return !!~index;\n }\n};\n\nmodule.exports = {\n getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {\n var C = wrapper(function (that, iterable) {\n anInstance(that, C, CONSTRUCTOR_NAME);\n setInternalState(that, {\n type: CONSTRUCTOR_NAME,\n id: id++,\n frozen: undefined\n });\n if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n });\n\n var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n var define = function (that, key, value) {\n var state = getInternalState(that);\n var data = getWeakData(anObject(key), true);\n if (data === true) uncaughtFrozenStore(state).set(key, value);\n else data[state.id] = value;\n return that;\n };\n\n redefineAll(C.prototype, {\n // 23.3.3.2 WeakMap.prototype.delete(key)\n // 23.4.3.3 WeakSet.prototype.delete(value)\n 'delete': function (key) {\n var state = getInternalState(this);\n if (!isObject(key)) return false;\n var data = getWeakData(key);\n if (data === true) return uncaughtFrozenStore(state)['delete'](key);\n return data && $has(data, state.id) && delete data[state.id];\n },\n // 23.3.3.4 WeakMap.prototype.has(key)\n // 23.4.3.4 WeakSet.prototype.has(value)\n has: function has(key) {\n var state = getInternalState(this);\n if (!isObject(key)) return false;\n var data = getWeakData(key);\n if (data === true) return uncaughtFrozenStore(state).has(key);\n return data && $has(data, state.id);\n }\n });\n\n redefineAll(C.prototype, IS_MAP ? {\n // 23.3.3.3 WeakMap.prototype.get(key)\n get: function get(key) {\n var state = getInternalState(this);\n if (isObject(key)) {\n var data = getWeakData(key);\n if (data === true) return uncaughtFrozenStore(state).get(key);\n return data ? data[state.id] : undefined;\n }\n },\n // 23.3.3.5 WeakMap.prototype.set(key, value)\n set: function set(key, value) {\n return define(this, key, value);\n }\n } : {\n // 23.4.3.1 WeakSet.prototype.add(value)\n add: function add(value) {\n return define(this, value, true);\n }\n });\n\n return C;\n }\n};\n","// `SameValue` abstract operation\n// https://tc39.es/ecma262/#sec-samevalue\n// eslint-disable-next-line es/no-object-is -- safe\nmodule.exports = Object.is || function is(x, y) {\n // eslint-disable-next-line no-self-compare -- NaN check\n return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;\n};\n","'use strict';\nvar aFunction = require('../internals/a-function');\nvar isObject = require('../internals/is-object');\n\nvar slice = [].slice;\nvar factories = {};\n\nvar construct = function (C, argsLength, args) {\n if (!(argsLength in factories)) {\n for (var list = [], i = 0; i < argsLength; i++) list[i] = 'a[' + i + ']';\n // eslint-disable-next-line no-new-func -- we have no proper alternatives, IE8- only\n factories[argsLength] = Function('C,a', 'return new C(' + list.join(',') + ')');\n } return factories[argsLength](C, args);\n};\n\n// `Function.prototype.bind` method implementation\n// https://tc39.es/ecma262/#sec-function.prototype.bind\nmodule.exports = Function.bind || function bind(that /* , ...args */) {\n var fn = aFunction(this);\n var partArgs = slice.call(arguments, 1);\n var boundFunction = function bound(/* args... */) {\n var args = partArgs.concat(slice.call(arguments));\n return this instanceof boundFunction ? construct(fn, args.length, args) : fn.apply(that, args);\n };\n if (isObject(fn.prototype)) boundFunction.prototype = fn.prototype;\n return boundFunction;\n};\n","'use strict';\nvar collection = require('../internals/collection');\nvar collectionStrong = require('../internals/collection-strong');\n\n// `Map` constructor\n// https://tc39.es/ecma262/#sec-map-objects\nmodule.exports = collection('Map', function (init) {\n return function Map() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionStrong);\n","export const MESSAGE_EDITOR_MENU_OPTIONS = [\n 'strong',\n 'em',\n 'link',\n 'undo',\n 'redo',\n 'bulletList',\n 'orderedList',\n 'code',\n];\n\nexport const MESSAGE_SIGNATURE_EDITOR_MENU_OPTIONS = [\n 'strong',\n 'em',\n 'link',\n 'undo',\n 'redo',\n 'imageUpload',\n];\n\nexport const ARTICLE_EDITOR_MENU_OPTIONS = [\n 'strong',\n 'em',\n 'link',\n 'undo',\n 'redo',\n 'bulletList',\n 'orderedList',\n 'h1',\n 'h2',\n 'h3',\n 'imageUpload',\n 'code',\n];\n\nexport const MESSAGE_EDITOR_IMAGE_RESIZES = [\n {\n name: 'Small',\n height: '24px',\n },\n {\n name: 'Medium',\n height: '48px',\n },\n {\n name: 'Large',\n height: '72px',\n },\n {\n name: 'Original Size',\n height: 'auto',\n },\n];\n","\"use strict\";\n\nvar __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar obj_case_1 = __importDefault(require(\"obj-case\"));\n\nfunction trait(a, b) {\n return function () {\n var traits = this.traits();\n var props = this.properties ? this.properties() : {};\n return obj_case_1.default(traits, \"address.\" + a) || obj_case_1.default(traits, a) || (b ? obj_case_1.default(traits, \"address.\" + b) : null) || (b ? obj_case_1.default(traits, b) : null) || obj_case_1.default(props, \"address.\" + a) || obj_case_1.default(props, a) || (b ? obj_case_1.default(props, \"address.\" + b) : null) || (b ? obj_case_1.default(props, b) : null);\n };\n}\n\nfunction default_1(proto) {\n proto.zip = trait(\"postalCode\", \"zip\");\n proto.country = trait(\"country\");\n proto.street = trait(\"street\");\n proto.state = trait(\"state\");\n proto.city = trait(\"city\");\n proto.region = trait(\"region\");\n}\n\nexports.default = default_1;","\"use strict\";\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.clone = void 0;\n\nfunction clone(properties) {\n if (_typeof(properties) !== 'object') return properties;\n\n if (Object.prototype.toString.call(properties) === '[object Object]') {\n var temp = {};\n\n for (var key in properties) {\n if (Object.prototype.hasOwnProperty.call(properties, key)) {\n temp[key] = clone(properties[key]);\n }\n }\n\n return temp;\n } else if (Array.isArray(properties)) {\n return properties.map(clone);\n } else {\n return properties;\n }\n}\n\nexports.clone = clone;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar disabled = {\n Salesforce: true\n};\n\nfunction default_1(integration) {\n return !disabled[integration];\n}\n\nexports.default = default_1;","\"use strict\";\n/**\n * Matcher.\n */\n\nvar matcher = /\\d{13}/;\n/**\n * Check whether a string is a millisecond date string.\n *\n * @param {string} string\n * @return {boolean}\n */\n\nexports.is = function (string) {\n return matcher.test(string);\n};\n/**\n * Convert a millisecond string to a date.\n *\n * @param {string} millis\n * @return {Date}\n */\n\n\nexports.parse = function (millis) {\n millis = parseInt(millis, 10);\n return new Date(millis);\n};","\"use strict\";\n/**\n * Matcher.\n */\n\nvar matcher = /\\d{10}/;\n/**\n * Check whether a string is a second date string.\n *\n * @param {string} string\n * @return {Boolean}\n */\n\nexports.is = function (string) {\n return matcher.test(string);\n};\n/**\n * Convert a second string to a date.\n *\n * @param {string} seconds\n * @return {Date}\n */\n\n\nexports.parse = function (seconds) {\n var millis = parseInt(seconds, 10) * 1000;\n return new Date(millis);\n};","'use strict';\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nvar isodate = require('@segment/isodate');\n/**\n * Expose `traverse`.\n */\n\n\nmodule.exports = traverse;\n/**\n * Recursively traverse an object or array, and convert\n * all ISO date strings parse into Date objects.\n *\n * @param {Object} input - object, array, or string to convert\n * @param {Boolean} strict - only convert strings with year, month, and date\n * @return {Object}\n */\n\nfunction traverse(input, strict) {\n if (strict === undefined) strict = true;\n\n if (input && _typeof(input) === 'object') {\n return traverseObject(input, strict);\n } else if (Array.isArray(input)) {\n return traverseArray(input, strict);\n } else if (isodate.is(input, strict)) {\n return isodate.parse(input);\n }\n\n return input;\n}\n/**\n * Object traverser helper function.\n *\n * @param {Object} obj - object to traverse\n * @param {Boolean} strict - only convert strings with year, month, and date\n * @return {Object}\n */\n\n\nfunction traverseObject(obj, strict) {\n Object.keys(obj).forEach(function (key) {\n obj[key] = traverse(obj[key], strict);\n });\n return obj;\n}\n/**\n * Array traverser helper function\n *\n * @param {Array} arr - array to traverse\n * @param {Boolean} strict - only convert strings with year, month, and date\n * @return {Array}\n */\n\n\nfunction traverseArray(arr, strict) {\n arr.forEach(function (value, index) {\n arr[index] = traverse(value, strict);\n });\n return arr;\n}","\"use strict\";\n\nvar __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Alias = void 0;\n\nvar inherits_1 = __importDefault(require(\"inherits\"));\n\nvar facade_1 = require(\"./facade\");\n\nfunction Alias(dictionary, opts) {\n facade_1.Facade.call(this, dictionary, opts);\n}\n\nexports.Alias = Alias;\ninherits_1.default(Alias, facade_1.Facade);\n\nAlias.prototype.action = function () {\n return \"alias\";\n};\n\nAlias.prototype.type = Alias.prototype.action;\n\nAlias.prototype.previousId = function () {\n return this.field(\"previousId\") || this.field(\"from\");\n};\n\nAlias.prototype.from = Alias.prototype.previousId;\n\nAlias.prototype.userId = function () {\n return this.field(\"userId\") || this.field(\"to\");\n};\n\nAlias.prototype.to = Alias.prototype.userId;","\"use strict\";\n\nvar __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Group = void 0;\n\nvar inherits_1 = __importDefault(require(\"inherits\"));\n\nvar is_email_1 = __importDefault(require(\"./is-email\"));\n\nvar new_date_1 = __importDefault(require(\"new-date\"));\n\nvar facade_1 = require(\"./facade\");\n\nfunction Group(dictionary, opts) {\n facade_1.Facade.call(this, dictionary, opts);\n}\n\nexports.Group = Group;\ninherits_1.default(Group, facade_1.Facade);\nvar g = Group.prototype;\n\ng.action = function () {\n return \"group\";\n};\n\ng.type = g.action;\ng.groupId = facade_1.Facade.field(\"groupId\");\n\ng.created = function () {\n var created = this.proxy(\"traits.createdAt\") || this.proxy(\"traits.created\") || this.proxy(\"properties.createdAt\") || this.proxy(\"properties.created\");\n if (created) return new_date_1.default(created);\n};\n\ng.email = function () {\n var email = this.proxy(\"traits.email\");\n if (email) return email;\n var groupId = this.groupId();\n if (is_email_1.default(groupId)) return groupId;\n};\n\ng.traits = function (aliases) {\n var ret = this.properties();\n var id = this.groupId();\n aliases = aliases || {};\n if (id) ret.id = id;\n\n for (var alias in aliases) {\n if (Object.prototype.hasOwnProperty.call(aliases, alias)) {\n var value = this[alias] == null ? this.proxy(\"traits.\" + alias) : this[alias]();\n if (value == null) continue;\n ret[aliases[alias]] = value;\n delete ret[alias];\n }\n }\n\n return ret;\n};\n\ng.name = facade_1.Facade.proxy(\"traits.name\");\ng.industry = facade_1.Facade.proxy(\"traits.industry\");\ng.employees = facade_1.Facade.proxy(\"traits.employees\");\n\ng.properties = function () {\n return this.field(\"traits\") || this.field(\"properties\") || {};\n};","\"use strict\";\n\nvar __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Screen = void 0;\n\nvar inherits_1 = __importDefault(require(\"inherits\"));\n\nvar page_1 = require(\"./page\");\n\nvar track_1 = require(\"./track\");\n\nfunction Screen(dictionary, opts) {\n page_1.Page.call(this, dictionary, opts);\n}\n\nexports.Screen = Screen;\ninherits_1.default(Screen, page_1.Page);\n\nScreen.prototype.action = function () {\n return \"screen\";\n};\n\nScreen.prototype.type = Screen.prototype.action;\n\nScreen.prototype.event = function (name) {\n return name ? \"Viewed \" + name + \" Screen\" : \"Loaded a Screen\";\n};\n\nScreen.prototype.track = function (name) {\n var json = this.json();\n json.event = this.event(name);\n json.timestamp = this.timestamp();\n json.properties = this.properties();\n return new track_1.Track(json, this.opts);\n};","\"use strict\";\n\nvar __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Delete = void 0;\n\nvar inherits_1 = __importDefault(require(\"inherits\"));\n\nvar facade_1 = require(\"./facade\");\n\nfunction Delete(dictionary, opts) {\n facade_1.Facade.call(this, dictionary, opts);\n}\n\nexports.Delete = Delete;\ninherits_1.default(Delete, facade_1.Facade);\n\nDelete.prototype.type = function () {\n return \"delete\";\n};","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n// parse out just the options we care about\nvar looseOption = Object.freeze({\n loose: true\n});\nvar emptyOpts = Object.freeze({});\n\nvar parseOptions = function parseOptions(options) {\n if (!options) {\n return emptyOpts;\n }\n\n if (_typeof(options) !== 'object') {\n return looseOption;\n }\n\n return options;\n};\n\nmodule.exports = parseOptions;","var SemVer = require('../classes/semver');\n\nvar compareBuild = function compareBuild(a, b, loose) {\n var versionA = new SemVer(a, loose);\n var versionB = new SemVer(b, loose);\n return versionA.compare(versionB) || versionA.compareBuild(versionB);\n};\n\nmodule.exports = compareBuild;","var compare = require('./compare');\n\nvar lt = function lt(a, b, loose) {\n return compare(a, b, loose) < 0;\n};\n\nmodule.exports = lt;","var compare = require('./compare');\n\nvar gte = function gte(a, b, loose) {\n return compare(a, b, loose) >= 0;\n};\n\nmodule.exports = gte;","var compare = require('./compare');\n\nvar lte = function lte(a, b, loose) {\n return compare(a, b, loose) <= 0;\n};\n\nmodule.exports = lte;","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nvar SemVer = require('../classes/semver');\n\nvar Comparator = require('../classes/comparator');\n\nvar ANY = Comparator.ANY;\n\nvar Range = require('../classes/range');\n\nvar satisfies = require('../functions/satisfies');\n\nvar gt = require('../functions/gt');\n\nvar lt = require('../functions/lt');\n\nvar lte = require('../functions/lte');\n\nvar gte = require('../functions/gte');\n\nvar outside = function outside(version, range, hilo, options) {\n version = new SemVer(version, options);\n range = new Range(range, options);\n var gtfn, ltefn, ltfn, comp, ecomp;\n\n switch (hilo) {\n case '>':\n gtfn = gt;\n ltefn = lte;\n ltfn = lt;\n comp = '>';\n ecomp = '>=';\n break;\n\n case '<':\n gtfn = lt;\n ltefn = gte;\n ltfn = gt;\n comp = '<';\n ecomp = '<=';\n break;\n\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"');\n } // If it satisfies the range it is not outside\n\n\n if (satisfies(version, range, options)) {\n return false;\n } // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n\n\n var _loop = function _loop(i) {\n var comparators = range.set[i];\n var high = null;\n var low = null;\n comparators.forEach(function (comparator) {\n if (comparator.semver === ANY) {\n comparator = new Comparator('>=0.0.0');\n }\n\n high = high || comparator;\n low = low || comparator;\n\n if (gtfn(comparator.semver, high.semver, options)) {\n high = comparator;\n } else if (ltfn(comparator.semver, low.semver, options)) {\n low = comparator;\n }\n }); // If the edge version comparator has a operator then our version\n // isn't outside it\n\n if (high.operator === comp || high.operator === ecomp) {\n return {\n v: false\n };\n } // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n\n\n if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) {\n return {\n v: false\n };\n } else if (low.operator === ecomp && ltfn(version, low.semver)) {\n return {\n v: false\n };\n }\n };\n\n for (var i = 0; i < range.set.length; ++i) {\n var _ret = _loop(i);\n\n if (_typeof(_ret) === \"object\") return _ret.v;\n }\n\n return true;\n};\n\nmodule.exports = outside;","/* global axios */\nimport ApiClient from './ApiClient';\n\nclass InboxMembers extends ApiClient {\n constructor() {\n super('inbox_members', { accountScoped: true });\n }\n\n update({ inboxId, agentList }) {\n return axios.patch(this.url, {\n inbox_id: inboxId,\n user_ids: agentList,\n });\n }\n}\n\nexport default new InboxMembers();\n","// just pre-load all the stuff that index.js lazily exports\nvar internalRe = require('./internal/re');\n\nvar constants = require('./internal/constants');\n\nvar SemVer = require('./classes/semver');\n\nvar identifiers = require('./internal/identifiers');\n\nvar parse = require('./functions/parse');\n\nvar valid = require('./functions/valid');\n\nvar clean = require('./functions/clean');\n\nvar inc = require('./functions/inc');\n\nvar diff = require('./functions/diff');\n\nvar major = require('./functions/major');\n\nvar minor = require('./functions/minor');\n\nvar patch = require('./functions/patch');\n\nvar prerelease = require('./functions/prerelease');\n\nvar compare = require('./functions/compare');\n\nvar rcompare = require('./functions/rcompare');\n\nvar compareLoose = require('./functions/compare-loose');\n\nvar compareBuild = require('./functions/compare-build');\n\nvar sort = require('./functions/sort');\n\nvar rsort = require('./functions/rsort');\n\nvar gt = require('./functions/gt');\n\nvar lt = require('./functions/lt');\n\nvar eq = require('./functions/eq');\n\nvar neq = require('./functions/neq');\n\nvar gte = require('./functions/gte');\n\nvar lte = require('./functions/lte');\n\nvar cmp = require('./functions/cmp');\n\nvar coerce = require('./functions/coerce');\n\nvar Comparator = require('./classes/comparator');\n\nvar Range = require('./classes/range');\n\nvar satisfies = require('./functions/satisfies');\n\nvar toComparators = require('./ranges/to-comparators');\n\nvar maxSatisfying = require('./ranges/max-satisfying');\n\nvar minSatisfying = require('./ranges/min-satisfying');\n\nvar minVersion = require('./ranges/min-version');\n\nvar validRange = require('./ranges/valid');\n\nvar outside = require('./ranges/outside');\n\nvar gtr = require('./ranges/gtr');\n\nvar ltr = require('./ranges/ltr');\n\nvar intersects = require('./ranges/intersects');\n\nvar simplifyRange = require('./ranges/simplify');\n\nvar subset = require('./ranges/subset');\n\nmodule.exports = {\n parse: parse,\n valid: valid,\n clean: clean,\n inc: inc,\n diff: diff,\n major: major,\n minor: minor,\n patch: patch,\n prerelease: prerelease,\n compare: compare,\n rcompare: rcompare,\n compareLoose: compareLoose,\n compareBuild: compareBuild,\n sort: sort,\n rsort: rsort,\n gt: gt,\n lt: lt,\n eq: eq,\n neq: neq,\n gte: gte,\n lte: lte,\n cmp: cmp,\n coerce: coerce,\n Comparator: Comparator,\n Range: Range,\n satisfies: satisfies,\n toComparators: toComparators,\n maxSatisfying: maxSatisfying,\n minSatisfying: minSatisfying,\n minVersion: minVersion,\n validRange: validRange,\n outside: outside,\n gtr: gtr,\n ltr: ltr,\n intersects: intersects,\n simplifyRange: simplifyRange,\n subset: subset,\n SemVer: SemVer,\n re: internalRe.re,\n src: internalRe.src,\n tokens: internalRe.t,\n SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,\n RELEASE_TYPES: constants.RELEASE_TYPES,\n compareIdentifiers: identifiers.compareIdentifiers,\n rcompareIdentifiers: identifiers.rcompareIdentifiers\n};","import { LocalStorage } from 'shared/helpers/localStorage';\nimport { LOCAL_STORAGE_KEYS } from 'dashboard/constants/localStorage';\n\nexport const setColorTheme = isOSOnDarkMode => {\n const selectedColorScheme =\n LocalStorage.get(LOCAL_STORAGE_KEYS.COLOR_SCHEME) || 'auto';\n if (\n (selectedColorScheme === 'auto' && isOSOnDarkMode) ||\n selectedColorScheme === 'dark'\n ) {\n document.body.classList.add('dark');\n document.documentElement.setAttribute('style', 'color-scheme: dark;');\n } else {\n document.body.classList.remove('dark');\n document.documentElement.setAttribute('style', 'color-scheme: light;');\n }\n};\n","import ApiClient from './ApiClient';\n\nclass NotificationSubscriptions extends ApiClient {\n constructor() {\n super('notification_subscriptions');\n }\n}\n\nexport default new NotificationSubscriptions();\n","/* eslint-disable no-console */\nimport NotificationSubscriptions from '../api/notificationSubscription';\nimport auth from '../api/auth';\nimport { useAlert } from 'dashboard/composables';\n\nexport const verifyServiceWorkerExistence = (callback = () => {}) => {\n if (!('serviceWorker' in navigator)) {\n // Service Worker isn't supported on this browser, disable or hide UI.\n return;\n }\n\n if (!('PushManager' in window)) {\n // Push isn't supported on this browser, disable or hide UI.\n return;\n }\n\n navigator.serviceWorker\n .register('/sw.js')\n .then(registration => callback(registration))\n .catch(registrationError => {\n // eslint-disable-next-line\n console.log('SW registration failed: ', registrationError);\n });\n};\n\nexport const hasPushPermissions = () => {\n if ('Notification' in window) {\n return Notification.permission === 'granted';\n }\n return false;\n};\n\nconst generateKeys = str =>\n btoa(String.fromCharCode.apply(null, new Uint8Array(str)))\n .replace(/\\+/g, '-')\n .replace(/\\//g, '_');\n\nexport const getPushSubscriptionPayload = subscription => ({\n subscription_type: 'browser_push',\n subscription_attributes: {\n endpoint: subscription.endpoint,\n p256dh: generateKeys(subscription.getKey('p256dh')),\n auth: generateKeys(subscription.getKey('auth')),\n },\n});\n\nexport const sendRegistrationToServer = subscription => {\n if (auth.hasAuthCookie()) {\n return NotificationSubscriptions.create(\n getPushSubscriptionPayload(subscription)\n );\n }\n return null;\n};\n\nexport const registerSubscription = (onSuccess = () => {}) => {\n if (!window.chatwootConfig.vapidPublicKey) {\n return;\n }\n navigator.serviceWorker.ready\n .then(serviceWorkerRegistration =>\n serviceWorkerRegistration.pushManager.subscribe({\n userVisibleOnly: true,\n applicationServerKey: window.chatwootConfig.vapidPublicKey,\n })\n )\n .then(sendRegistrationToServer)\n .then(() => {\n onSuccess();\n })\n .catch(() => {\n useAlert('This browser does not support desktop notification');\n });\n};\n\nexport const requestPushPermissions = ({ onSuccess }) => {\n if (!('Notification' in window)) {\n useAlert('This browser does not support desktop notification');\n } else if (Notification.permission === 'granted') {\n registerSubscription(onSuccess);\n } else if (Notification.permission !== 'denied') {\n Notification.requestPermission(permission => {\n if (permission === 'granted') {\n registerSubscription(onSuccess);\n }\n });\n }\n};\n","/**!\n * @fileOverview Kickass library to create and place poppers near their reference elements.\n * @version 1.16.1\n * @license\n * Copyright (c) 2016 Federico Zivolo and contributors\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nvar isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof navigator !== 'undefined';\n\nvar timeoutDuration = function () {\n var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox'];\n\n for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) {\n if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) {\n return 1;\n }\n }\n\n return 0;\n}();\n\nfunction microtaskDebounce(fn) {\n var called = false;\n return function () {\n if (called) {\n return;\n }\n\n called = true;\n window.Promise.resolve().then(function () {\n called = false;\n fn();\n });\n };\n}\n\nfunction taskDebounce(fn) {\n var scheduled = false;\n return function () {\n if (!scheduled) {\n scheduled = true;\n setTimeout(function () {\n scheduled = false;\n fn();\n }, timeoutDuration);\n }\n };\n}\n\nvar supportsMicroTasks = isBrowser && window.Promise;\n/**\n* Create a debounced version of a method, that's asynchronously deferred\n* but called in the minimum time possible.\n*\n* @method\n* @memberof Popper.Utils\n* @argument {Function} fn\n* @returns {Function}\n*/\n\nvar debounce = supportsMicroTasks ? microtaskDebounce : taskDebounce;\n/**\n * Check if the given variable is a function\n * @method\n * @memberof Popper.Utils\n * @argument {Any} functionToCheck - variable to check\n * @returns {Boolean} answer to: is a function?\n */\n\nfunction isFunction(functionToCheck) {\n var getType = {};\n return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';\n}\n/**\n * Get CSS computed property of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Eement} element\n * @argument {String} property\n */\n\n\nfunction getStyleComputedProperty(element, property) {\n if (element.nodeType !== 1) {\n return [];\n } // NOTE: 1 DOM access here\n\n\n var window = element.ownerDocument.defaultView;\n var css = window.getComputedStyle(element, null);\n return property ? css[property] : css;\n}\n/**\n * Returns the parentNode or the host of the element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} parent\n */\n\n\nfunction getParentNode(element) {\n if (element.nodeName === 'HTML') {\n return element;\n }\n\n return element.parentNode || element.host;\n}\n/**\n * Returns the scrolling parent of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} scroll parent\n */\n\n\nfunction getScrollParent(element) {\n // Return body, `getScroll` will take care to get the correct `scrollTop` from it\n if (!element) {\n return document.body;\n }\n\n switch (element.nodeName) {\n case 'HTML':\n case 'BODY':\n return element.ownerDocument.body;\n\n case '#document':\n return element.body;\n } // Firefox want us to check `-x` and `-y` variations as well\n\n\n var _getStyleComputedProp = getStyleComputedProperty(element),\n overflow = _getStyleComputedProp.overflow,\n overflowX = _getStyleComputedProp.overflowX,\n overflowY = _getStyleComputedProp.overflowY;\n\n if (/(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)) {\n return element;\n }\n\n return getScrollParent(getParentNode(element));\n}\n/**\n * Returns the reference node of the reference object, or the reference object itself.\n * @method\n * @memberof Popper.Utils\n * @param {Element|Object} reference - the reference element (the popper will be relative to this)\n * @returns {Element} parent\n */\n\n\nfunction getReferenceNode(reference) {\n return reference && reference.referenceNode ? reference.referenceNode : reference;\n}\n\nvar isIE11 = isBrowser && !!(window.MSInputMethodContext && document.documentMode);\nvar isIE10 = isBrowser && /MSIE 10/.test(navigator.userAgent);\n/**\n * Determines if the browser is Internet Explorer\n * @method\n * @memberof Popper.Utils\n * @param {Number} version to check\n * @returns {Boolean} isIE\n */\n\nfunction isIE(version) {\n if (version === 11) {\n return isIE11;\n }\n\n if (version === 10) {\n return isIE10;\n }\n\n return isIE11 || isIE10;\n}\n/**\n * Returns the offset parent of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} offset parent\n */\n\n\nfunction getOffsetParent(element) {\n if (!element) {\n return document.documentElement;\n }\n\n var noOffsetParent = isIE(10) ? document.body : null; // NOTE: 1 DOM access here\n\n var offsetParent = element.offsetParent || null; // Skip hidden elements which don't have an offsetParent\n\n while (offsetParent === noOffsetParent && element.nextElementSibling) {\n offsetParent = (element = element.nextElementSibling).offsetParent;\n }\n\n var nodeName = offsetParent && offsetParent.nodeName;\n\n if (!nodeName || nodeName === 'BODY' || nodeName === 'HTML') {\n return element ? element.ownerDocument.documentElement : document.documentElement;\n } // .offsetParent will return the closest TH, TD or TABLE in case\n // no offsetParent is present, I hate this job...\n\n\n if (['TH', 'TD', 'TABLE'].indexOf(offsetParent.nodeName) !== -1 && getStyleComputedProperty(offsetParent, 'position') === 'static') {\n return getOffsetParent(offsetParent);\n }\n\n return offsetParent;\n}\n\nfunction isOffsetContainer(element) {\n var nodeName = element.nodeName;\n\n if (nodeName === 'BODY') {\n return false;\n }\n\n return nodeName === 'HTML' || getOffsetParent(element.firstElementChild) === element;\n}\n/**\n * Finds the root node (document, shadowDOM root) of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} node\n * @returns {Element} root node\n */\n\n\nfunction getRoot(node) {\n if (node.parentNode !== null) {\n return getRoot(node.parentNode);\n }\n\n return node;\n}\n/**\n * Finds the offset parent common to the two provided nodes\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element1\n * @argument {Element} element2\n * @returns {Element} common offset parent\n */\n\n\nfunction findCommonOffsetParent(element1, element2) {\n // This check is needed to avoid errors in case one of the elements isn't defined for any reason\n if (!element1 || !element1.nodeType || !element2 || !element2.nodeType) {\n return document.documentElement;\n } // Here we make sure to give as \"start\" the element that comes first in the DOM\n\n\n var order = element1.compareDocumentPosition(element2) & Node.DOCUMENT_POSITION_FOLLOWING;\n var start = order ? element1 : element2;\n var end = order ? element2 : element1; // Get common ancestor container\n\n var range = document.createRange();\n range.setStart(start, 0);\n range.setEnd(end, 0);\n var commonAncestorContainer = range.commonAncestorContainer; // Both nodes are inside #document\n\n if (element1 !== commonAncestorContainer && element2 !== commonAncestorContainer || start.contains(end)) {\n if (isOffsetContainer(commonAncestorContainer)) {\n return commonAncestorContainer;\n }\n\n return getOffsetParent(commonAncestorContainer);\n } // one of the nodes is inside shadowDOM, find which one\n\n\n var element1root = getRoot(element1);\n\n if (element1root.host) {\n return findCommonOffsetParent(element1root.host, element2);\n } else {\n return findCommonOffsetParent(element1, getRoot(element2).host);\n }\n}\n/**\n * Gets the scroll value of the given element in the given side (top and left)\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @argument {String} side `top` or `left`\n * @returns {number} amount of scrolled pixels\n */\n\n\nfunction getScroll(element) {\n var side = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'top';\n var upperSide = side === 'top' ? 'scrollTop' : 'scrollLeft';\n var nodeName = element.nodeName;\n\n if (nodeName === 'BODY' || nodeName === 'HTML') {\n var html = element.ownerDocument.documentElement;\n var scrollingElement = element.ownerDocument.scrollingElement || html;\n return scrollingElement[upperSide];\n }\n\n return element[upperSide];\n}\n/*\n * Sum or subtract the element scroll values (left and top) from a given rect object\n * @method\n * @memberof Popper.Utils\n * @param {Object} rect - Rect object you want to change\n * @param {HTMLElement} element - The element from the function reads the scroll values\n * @param {Boolean} subtract - set to true if you want to subtract the scroll values\n * @return {Object} rect - The modifier rect object\n */\n\n\nfunction includeScroll(rect, element) {\n var subtract = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var scrollTop = getScroll(element, 'top');\n var scrollLeft = getScroll(element, 'left');\n var modifier = subtract ? -1 : 1;\n rect.top += scrollTop * modifier;\n rect.bottom += scrollTop * modifier;\n rect.left += scrollLeft * modifier;\n rect.right += scrollLeft * modifier;\n return rect;\n}\n/*\n * Helper to detect borders of a given element\n * @method\n * @memberof Popper.Utils\n * @param {CSSStyleDeclaration} styles\n * Result of `getStyleComputedProperty` on the given element\n * @param {String} axis - `x` or `y`\n * @return {number} borders - The borders size of the given axis\n */\n\n\nfunction getBordersSize(styles, axis) {\n var sideA = axis === 'x' ? 'Left' : 'Top';\n var sideB = sideA === 'Left' ? 'Right' : 'Bottom';\n return parseFloat(styles['border' + sideA + 'Width']) + parseFloat(styles['border' + sideB + 'Width']);\n}\n\nfunction getSize(axis, body, html, computedStyle) {\n return Math.max(body['offset' + axis], body['scroll' + axis], html['client' + axis], html['offset' + axis], html['scroll' + axis], isIE(10) ? parseInt(html['offset' + axis]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Top' : 'Left')]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Bottom' : 'Right')]) : 0);\n}\n\nfunction getWindowSizes(document) {\n var body = document.body;\n var html = document.documentElement;\n var computedStyle = isIE(10) && getComputedStyle(html);\n return {\n height: getSize('Height', body, html, computedStyle),\n width: getSize('Width', body, html, computedStyle)\n };\n}\n\nvar classCallCheck = function classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\nvar createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar defineProperty = function defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n};\n\nvar _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n/**\n * Given element offsets, generate an output similar to getBoundingClientRect\n * @method\n * @memberof Popper.Utils\n * @argument {Object} offsets\n * @returns {Object} ClientRect like output\n */\n\n\nfunction getClientRect(offsets) {\n return _extends({}, offsets, {\n right: offsets.left + offsets.width,\n bottom: offsets.top + offsets.height\n });\n}\n/**\n * Get bounding client rect of given element\n * @method\n * @memberof Popper.Utils\n * @param {HTMLElement} element\n * @return {Object} client rect\n */\n\n\nfunction getBoundingClientRect(element) {\n var rect = {}; // IE10 10 FIX: Please, don't ask, the element isn't\n // considered in DOM in some circumstances...\n // This isn't reproducible in IE10 compatibility mode of IE11\n\n try {\n if (isIE(10)) {\n rect = element.getBoundingClientRect();\n var scrollTop = getScroll(element, 'top');\n var scrollLeft = getScroll(element, 'left');\n rect.top += scrollTop;\n rect.left += scrollLeft;\n rect.bottom += scrollTop;\n rect.right += scrollLeft;\n } else {\n rect = element.getBoundingClientRect();\n }\n } catch (e) {}\n\n var result = {\n left: rect.left,\n top: rect.top,\n width: rect.right - rect.left,\n height: rect.bottom - rect.top\n }; // subtract scrollbar size from sizes\n\n var sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : {};\n var width = sizes.width || element.clientWidth || result.width;\n var height = sizes.height || element.clientHeight || result.height;\n var horizScrollbar = element.offsetWidth - width;\n var vertScrollbar = element.offsetHeight - height; // if an hypothetical scrollbar is detected, we must be sure it's not a `border`\n // we make this check conditional for performance reasons\n\n if (horizScrollbar || vertScrollbar) {\n var styles = getStyleComputedProperty(element);\n horizScrollbar -= getBordersSize(styles, 'x');\n vertScrollbar -= getBordersSize(styles, 'y');\n result.width -= horizScrollbar;\n result.height -= vertScrollbar;\n }\n\n return getClientRect(result);\n}\n\nfunction getOffsetRectRelativeToArbitraryNode(children, parent) {\n var fixedPosition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var isIE10 = isIE(10);\n var isHTML = parent.nodeName === 'HTML';\n var childrenRect = getBoundingClientRect(children);\n var parentRect = getBoundingClientRect(parent);\n var scrollParent = getScrollParent(children);\n var styles = getStyleComputedProperty(parent);\n var borderTopWidth = parseFloat(styles.borderTopWidth);\n var borderLeftWidth = parseFloat(styles.borderLeftWidth); // In cases where the parent is fixed, we must ignore negative scroll in offset calc\n\n if (fixedPosition && isHTML) {\n parentRect.top = Math.max(parentRect.top, 0);\n parentRect.left = Math.max(parentRect.left, 0);\n }\n\n var offsets = getClientRect({\n top: childrenRect.top - parentRect.top - borderTopWidth,\n left: childrenRect.left - parentRect.left - borderLeftWidth,\n width: childrenRect.width,\n height: childrenRect.height\n });\n offsets.marginTop = 0;\n offsets.marginLeft = 0; // Subtract margins of documentElement in case it's being used as parent\n // we do this only on HTML because it's the only element that behaves\n // differently when margins are applied to it. The margins are included in\n // the box of the documentElement, in the other cases not.\n\n if (!isIE10 && isHTML) {\n var marginTop = parseFloat(styles.marginTop);\n var marginLeft = parseFloat(styles.marginLeft);\n offsets.top -= borderTopWidth - marginTop;\n offsets.bottom -= borderTopWidth - marginTop;\n offsets.left -= borderLeftWidth - marginLeft;\n offsets.right -= borderLeftWidth - marginLeft; // Attach marginTop and marginLeft because in some circumstances we may need them\n\n offsets.marginTop = marginTop;\n offsets.marginLeft = marginLeft;\n }\n\n if (isIE10 && !fixedPosition ? parent.contains(scrollParent) : parent === scrollParent && scrollParent.nodeName !== 'BODY') {\n offsets = includeScroll(offsets, parent);\n }\n\n return offsets;\n}\n\nfunction getViewportOffsetRectRelativeToArtbitraryNode(element) {\n var excludeScroll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var html = element.ownerDocument.documentElement;\n var relativeOffset = getOffsetRectRelativeToArbitraryNode(element, html);\n var width = Math.max(html.clientWidth, window.innerWidth || 0);\n var height = Math.max(html.clientHeight, window.innerHeight || 0);\n var scrollTop = !excludeScroll ? getScroll(html) : 0;\n var scrollLeft = !excludeScroll ? getScroll(html, 'left') : 0;\n var offset = {\n top: scrollTop - relativeOffset.top + relativeOffset.marginTop,\n left: scrollLeft - relativeOffset.left + relativeOffset.marginLeft,\n width: width,\n height: height\n };\n return getClientRect(offset);\n}\n/**\n * Check if the given element is fixed or is inside a fixed parent\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @argument {Element} customContainer\n * @returns {Boolean} answer to \"isFixed?\"\n */\n\n\nfunction isFixed(element) {\n var nodeName = element.nodeName;\n\n if (nodeName === 'BODY' || nodeName === 'HTML') {\n return false;\n }\n\n if (getStyleComputedProperty(element, 'position') === 'fixed') {\n return true;\n }\n\n var parentNode = getParentNode(element);\n\n if (!parentNode) {\n return false;\n }\n\n return isFixed(parentNode);\n}\n/**\n * Finds the first parent of an element that has a transformed property defined\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} first transformed parent or documentElement\n */\n\n\nfunction getFixedPositionOffsetParent(element) {\n // This check is needed to avoid errors in case one of the elements isn't defined for any reason\n if (!element || !element.parentElement || isIE()) {\n return document.documentElement;\n }\n\n var el = element.parentElement;\n\n while (el && getStyleComputedProperty(el, 'transform') === 'none') {\n el = el.parentElement;\n }\n\n return el || document.documentElement;\n}\n/**\n * Computed the boundaries limits and return them\n * @method\n * @memberof Popper.Utils\n * @param {HTMLElement} popper\n * @param {HTMLElement} reference\n * @param {number} padding\n * @param {HTMLElement} boundariesElement - Element used to define the boundaries\n * @param {Boolean} fixedPosition - Is in fixed position mode\n * @returns {Object} Coordinates of the boundaries\n */\n\n\nfunction getBoundaries(popper, reference, padding, boundariesElement) {\n var fixedPosition = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false; // NOTE: 1 DOM access here\n\n var boundaries = {\n top: 0,\n left: 0\n };\n var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference)); // Handle viewport case\n\n if (boundariesElement === 'viewport') {\n boundaries = getViewportOffsetRectRelativeToArtbitraryNode(offsetParent, fixedPosition);\n } else {\n // Handle other cases based on DOM element used as boundaries\n var boundariesNode = void 0;\n\n if (boundariesElement === 'scrollParent') {\n boundariesNode = getScrollParent(getParentNode(reference));\n\n if (boundariesNode.nodeName === 'BODY') {\n boundariesNode = popper.ownerDocument.documentElement;\n }\n } else if (boundariesElement === 'window') {\n boundariesNode = popper.ownerDocument.documentElement;\n } else {\n boundariesNode = boundariesElement;\n }\n\n var offsets = getOffsetRectRelativeToArbitraryNode(boundariesNode, offsetParent, fixedPosition); // In case of HTML, we need a different computation\n\n if (boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) {\n var _getWindowSizes = getWindowSizes(popper.ownerDocument),\n height = _getWindowSizes.height,\n width = _getWindowSizes.width;\n\n boundaries.top += offsets.top - offsets.marginTop;\n boundaries.bottom = height + offsets.top;\n boundaries.left += offsets.left - offsets.marginLeft;\n boundaries.right = width + offsets.left;\n } else {\n // for all the other DOM elements, this one is good\n boundaries = offsets;\n }\n } // Add paddings\n\n\n padding = padding || 0;\n var isPaddingNumber = typeof padding === 'number';\n boundaries.left += isPaddingNumber ? padding : padding.left || 0;\n boundaries.top += isPaddingNumber ? padding : padding.top || 0;\n boundaries.right -= isPaddingNumber ? padding : padding.right || 0;\n boundaries.bottom -= isPaddingNumber ? padding : padding.bottom || 0;\n return boundaries;\n}\n\nfunction getArea(_ref) {\n var width = _ref.width,\n height = _ref.height;\n return width * height;\n}\n/**\n * Utility used to transform the `auto` placement to the placement with more\n * available space.\n * @method\n * @memberof Popper.Utils\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction computeAutoPlacement(placement, refRect, popper, reference, boundariesElement) {\n var padding = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0;\n\n if (placement.indexOf('auto') === -1) {\n return placement;\n }\n\n var boundaries = getBoundaries(popper, reference, padding, boundariesElement);\n var rects = {\n top: {\n width: boundaries.width,\n height: refRect.top - boundaries.top\n },\n right: {\n width: boundaries.right - refRect.right,\n height: boundaries.height\n },\n bottom: {\n width: boundaries.width,\n height: boundaries.bottom - refRect.bottom\n },\n left: {\n width: refRect.left - boundaries.left,\n height: boundaries.height\n }\n };\n var sortedAreas = Object.keys(rects).map(function (key) {\n return _extends({\n key: key\n }, rects[key], {\n area: getArea(rects[key])\n });\n }).sort(function (a, b) {\n return b.area - a.area;\n });\n var filteredAreas = sortedAreas.filter(function (_ref2) {\n var width = _ref2.width,\n height = _ref2.height;\n return width >= popper.clientWidth && height >= popper.clientHeight;\n });\n var computedPlacement = filteredAreas.length > 0 ? filteredAreas[0].key : sortedAreas[0].key;\n var variation = placement.split('-')[1];\n return computedPlacement + (variation ? '-' + variation : '');\n}\n/**\n * Get offsets to the reference element\n * @method\n * @memberof Popper.Utils\n * @param {Object} state\n * @param {Element} popper - the popper element\n * @param {Element} reference - the reference element (the popper will be relative to this)\n * @param {Element} fixedPosition - is in fixed position mode\n * @returns {Object} An object containing the offsets which will be applied to the popper\n */\n\n\nfunction getReferenceOffsets(state, popper, reference) {\n var fixedPosition = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;\n var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));\n return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent, fixedPosition);\n}\n/**\n * Get the outer sizes of the given element (offset size + margins)\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Object} object containing width and height properties\n */\n\n\nfunction getOuterSizes(element) {\n var window = element.ownerDocument.defaultView;\n var styles = window.getComputedStyle(element);\n var x = parseFloat(styles.marginTop || 0) + parseFloat(styles.marginBottom || 0);\n var y = parseFloat(styles.marginLeft || 0) + parseFloat(styles.marginRight || 0);\n var result = {\n width: element.offsetWidth + y,\n height: element.offsetHeight + x\n };\n return result;\n}\n/**\n * Get the opposite placement of the given one\n * @method\n * @memberof Popper.Utils\n * @argument {String} placement\n * @returns {String} flipped placement\n */\n\n\nfunction getOppositePlacement(placement) {\n var hash = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n };\n return placement.replace(/left|right|bottom|top/g, function (matched) {\n return hash[matched];\n });\n}\n/**\n * Get offsets to the popper\n * @method\n * @memberof Popper.Utils\n * @param {Object} position - CSS position the Popper will get applied\n * @param {HTMLElement} popper - the popper element\n * @param {Object} referenceOffsets - the reference offsets (the popper will be relative to this)\n * @param {String} placement - one of the valid placement options\n * @returns {Object} popperOffsets - An object containing the offsets which will be applied to the popper\n */\n\n\nfunction getPopperOffsets(popper, referenceOffsets, placement) {\n placement = placement.split('-')[0]; // Get popper node sizes\n\n var popperRect = getOuterSizes(popper); // Add position, width and height to our offsets object\n\n var popperOffsets = {\n width: popperRect.width,\n height: popperRect.height\n }; // depending by the popper placement we have to compute its offsets slightly differently\n\n var isHoriz = ['right', 'left'].indexOf(placement) !== -1;\n var mainSide = isHoriz ? 'top' : 'left';\n var secondarySide = isHoriz ? 'left' : 'top';\n var measurement = isHoriz ? 'height' : 'width';\n var secondaryMeasurement = !isHoriz ? 'height' : 'width';\n popperOffsets[mainSide] = referenceOffsets[mainSide] + referenceOffsets[measurement] / 2 - popperRect[measurement] / 2;\n\n if (placement === secondarySide) {\n popperOffsets[secondarySide] = referenceOffsets[secondarySide] - popperRect[secondaryMeasurement];\n } else {\n popperOffsets[secondarySide] = referenceOffsets[getOppositePlacement(secondarySide)];\n }\n\n return popperOffsets;\n}\n/**\n * Mimics the `find` method of Array\n * @method\n * @memberof Popper.Utils\n * @argument {Array} arr\n * @argument prop\n * @argument value\n * @returns index or -1\n */\n\n\nfunction find(arr, check) {\n // use native find if supported\n if (Array.prototype.find) {\n return arr.find(check);\n } // use `filter` to obtain the same behavior of `find`\n\n\n return arr.filter(check)[0];\n}\n/**\n * Return the index of the matching object\n * @method\n * @memberof Popper.Utils\n * @argument {Array} arr\n * @argument prop\n * @argument value\n * @returns index or -1\n */\n\n\nfunction findIndex(arr, prop, value) {\n // use native findIndex if supported\n if (Array.prototype.findIndex) {\n return arr.findIndex(function (cur) {\n return cur[prop] === value;\n });\n } // use `find` + `indexOf` if `findIndex` isn't supported\n\n\n var match = find(arr, function (obj) {\n return obj[prop] === value;\n });\n return arr.indexOf(match);\n}\n/**\n * Loop trough the list of modifiers and run them in order,\n * each of them will then edit the data object.\n * @method\n * @memberof Popper.Utils\n * @param {dataObject} data\n * @param {Array} modifiers\n * @param {String} ends - Optional modifier name used as stopper\n * @returns {dataObject}\n */\n\n\nfunction runModifiers(modifiers, data, ends) {\n var modifiersToRun = ends === undefined ? modifiers : modifiers.slice(0, findIndex(modifiers, 'name', ends));\n modifiersToRun.forEach(function (modifier) {\n if (modifier['function']) {\n // eslint-disable-line dot-notation\n console.warn('`modifier.function` is deprecated, use `modifier.fn`!');\n }\n\n var fn = modifier['function'] || modifier.fn; // eslint-disable-line dot-notation\n\n if (modifier.enabled && isFunction(fn)) {\n // Add properties to offsets to make them a complete clientRect object\n // we do this before each modifier to make sure the previous one doesn't\n // mess with these values\n data.offsets.popper = getClientRect(data.offsets.popper);\n data.offsets.reference = getClientRect(data.offsets.reference);\n data = fn(data, modifier);\n }\n });\n return data;\n}\n/**\n * Updates the position of the popper, computing the new offsets and applying\n * the new style.
\n * Prefer `scheduleUpdate` over `update` because of performance reasons.\n * @method\n * @memberof Popper\n */\n\n\nfunction update() {\n // if popper is destroyed, don't perform any further update\n if (this.state.isDestroyed) {\n return;\n }\n\n var data = {\n instance: this,\n styles: {},\n arrowStyles: {},\n attributes: {},\n flipped: false,\n offsets: {}\n }; // compute reference element offsets\n\n data.offsets.reference = getReferenceOffsets(this.state, this.popper, this.reference, this.options.positionFixed); // compute auto placement, store placement inside the data object,\n // modifiers will be able to edit `placement` if needed\n // and refer to originalPlacement to know the original value\n\n data.placement = computeAutoPlacement(this.options.placement, data.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding); // store the computed placement inside `originalPlacement`\n\n data.originalPlacement = data.placement;\n data.positionFixed = this.options.positionFixed; // compute the popper offsets\n\n data.offsets.popper = getPopperOffsets(this.popper, data.offsets.reference, data.placement);\n data.offsets.popper.position = this.options.positionFixed ? 'fixed' : 'absolute'; // run the modifiers\n\n data = runModifiers(this.modifiers, data); // the first `update` will call `onCreate` callback\n // the other ones will call `onUpdate` callback\n\n if (!this.state.isCreated) {\n this.state.isCreated = true;\n this.options.onCreate(data);\n } else {\n this.options.onUpdate(data);\n }\n}\n/**\n * Helper used to know if the given modifier is enabled.\n * @method\n * @memberof Popper.Utils\n * @returns {Boolean}\n */\n\n\nfunction isModifierEnabled(modifiers, modifierName) {\n return modifiers.some(function (_ref) {\n var name = _ref.name,\n enabled = _ref.enabled;\n return enabled && name === modifierName;\n });\n}\n/**\n * Get the prefixed supported property name\n * @method\n * @memberof Popper.Utils\n * @argument {String} property (camelCase)\n * @returns {String} prefixed property (camelCase or PascalCase, depending on the vendor prefix)\n */\n\n\nfunction getSupportedPropertyName(property) {\n var prefixes = [false, 'ms', 'Webkit', 'Moz', 'O'];\n var upperProp = property.charAt(0).toUpperCase() + property.slice(1);\n\n for (var i = 0; i < prefixes.length; i++) {\n var prefix = prefixes[i];\n var toCheck = prefix ? '' + prefix + upperProp : property;\n\n if (typeof document.body.style[toCheck] !== 'undefined') {\n return toCheck;\n }\n }\n\n return null;\n}\n/**\n * Destroys the popper.\n * @method\n * @memberof Popper\n */\n\n\nfunction destroy() {\n this.state.isDestroyed = true; // touch DOM only if `applyStyle` modifier is enabled\n\n if (isModifierEnabled(this.modifiers, 'applyStyle')) {\n this.popper.removeAttribute('x-placement');\n this.popper.style.position = '';\n this.popper.style.top = '';\n this.popper.style.left = '';\n this.popper.style.right = '';\n this.popper.style.bottom = '';\n this.popper.style.willChange = '';\n this.popper.style[getSupportedPropertyName('transform')] = '';\n }\n\n this.disableEventListeners(); // remove the popper if user explicitly asked for the deletion on destroy\n // do not use `remove` because IE11 doesn't support it\n\n if (this.options.removeOnDestroy) {\n this.popper.parentNode.removeChild(this.popper);\n }\n\n return this;\n}\n/**\n * Get the window associated with the element\n * @argument {Element} element\n * @returns {Window}\n */\n\n\nfunction getWindow(element) {\n var ownerDocument = element.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView : window;\n}\n\nfunction attachToScrollParents(scrollParent, event, callback, scrollParents) {\n var isBody = scrollParent.nodeName === 'BODY';\n var target = isBody ? scrollParent.ownerDocument.defaultView : scrollParent;\n target.addEventListener(event, callback, {\n passive: true\n });\n\n if (!isBody) {\n attachToScrollParents(getScrollParent(target.parentNode), event, callback, scrollParents);\n }\n\n scrollParents.push(target);\n}\n/**\n * Setup needed event listeners used to update the popper position\n * @method\n * @memberof Popper.Utils\n * @private\n */\n\n\nfunction setupEventListeners(reference, options, state, updateBound) {\n // Resize event listener on window\n state.updateBound = updateBound;\n getWindow(reference).addEventListener('resize', state.updateBound, {\n passive: true\n }); // Scroll event listener on scroll parents\n\n var scrollElement = getScrollParent(reference);\n attachToScrollParents(scrollElement, 'scroll', state.updateBound, state.scrollParents);\n state.scrollElement = scrollElement;\n state.eventsEnabled = true;\n return state;\n}\n/**\n * It will add resize/scroll events and start recalculating\n * position of the popper element when they are triggered.\n * @method\n * @memberof Popper\n */\n\n\nfunction enableEventListeners() {\n if (!this.state.eventsEnabled) {\n this.state = setupEventListeners(this.reference, this.options, this.state, this.scheduleUpdate);\n }\n}\n/**\n * Remove event listeners used to update the popper position\n * @method\n * @memberof Popper.Utils\n * @private\n */\n\n\nfunction removeEventListeners(reference, state) {\n // Remove resize event listener on window\n getWindow(reference).removeEventListener('resize', state.updateBound); // Remove scroll event listener on scroll parents\n\n state.scrollParents.forEach(function (target) {\n target.removeEventListener('scroll', state.updateBound);\n }); // Reset state\n\n state.updateBound = null;\n state.scrollParents = [];\n state.scrollElement = null;\n state.eventsEnabled = false;\n return state;\n}\n/**\n * It will remove resize/scroll events and won't recalculate popper position\n * when they are triggered. It also won't trigger `onUpdate` callback anymore,\n * unless you call `update` method manually.\n * @method\n * @memberof Popper\n */\n\n\nfunction disableEventListeners() {\n if (this.state.eventsEnabled) {\n cancelAnimationFrame(this.scheduleUpdate);\n this.state = removeEventListeners(this.reference, this.state);\n }\n}\n/**\n * Tells if a given input is a number\n * @method\n * @memberof Popper.Utils\n * @param {*} input to check\n * @return {Boolean}\n */\n\n\nfunction isNumeric(n) {\n return n !== '' && !isNaN(parseFloat(n)) && isFinite(n);\n}\n/**\n * Set the style to the given popper\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element - Element to apply the style to\n * @argument {Object} styles\n * Object with a list of properties and values which will be applied to the element\n */\n\n\nfunction setStyles(element, styles) {\n Object.keys(styles).forEach(function (prop) {\n var unit = ''; // add unit if the value is numeric and is one of the following\n\n if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && isNumeric(styles[prop])) {\n unit = 'px';\n }\n\n element.style[prop] = styles[prop] + unit;\n });\n}\n/**\n * Set the attributes to the given popper\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element - Element to apply the attributes to\n * @argument {Object} styles\n * Object with a list of properties and values which will be applied to the element\n */\n\n\nfunction setAttributes(element, attributes) {\n Object.keys(attributes).forEach(function (prop) {\n var value = attributes[prop];\n\n if (value !== false) {\n element.setAttribute(prop, attributes[prop]);\n } else {\n element.removeAttribute(prop);\n }\n });\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} data.styles - List of style properties - values to apply to popper element\n * @argument {Object} data.attributes - List of attribute properties - values to apply to popper element\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The same data object\n */\n\n\nfunction applyStyle(data) {\n // any property present in `data.styles` will be applied to the popper,\n // in this way we can make the 3rd party modifiers add custom styles to it\n // Be aware, modifiers could override the properties defined in the previous\n // lines of this modifier!\n setStyles(data.instance.popper, data.styles); // any property present in `data.attributes` will be applied to the popper,\n // they will be set as HTML attributes of the element\n\n setAttributes(data.instance.popper, data.attributes); // if arrowElement is defined and arrowStyles has some properties\n\n if (data.arrowElement && Object.keys(data.arrowStyles).length) {\n setStyles(data.arrowElement, data.arrowStyles);\n }\n\n return data;\n}\n/**\n * Set the x-placement attribute before everything else because it could be used\n * to add margins to the popper margins needs to be calculated to get the\n * correct popper offsets.\n * @method\n * @memberof Popper.modifiers\n * @param {HTMLElement} reference - The reference element used to position the popper\n * @param {HTMLElement} popper - The HTML element used as popper\n * @param {Object} options - Popper.js options\n */\n\n\nfunction applyStyleOnLoad(reference, popper, options, modifierOptions, state) {\n // compute reference element offsets\n var referenceOffsets = getReferenceOffsets(state, popper, reference, options.positionFixed); // compute auto placement, store placement inside the data object,\n // modifiers will be able to edit `placement` if needed\n // and refer to originalPlacement to know the original value\n\n var placement = computeAutoPlacement(options.placement, referenceOffsets, popper, reference, options.modifiers.flip.boundariesElement, options.modifiers.flip.padding);\n popper.setAttribute('x-placement', placement); // Apply `position` to popper before anything else because\n // without the position applied we can't guarantee correct computations\n\n setStyles(popper, {\n position: options.positionFixed ? 'fixed' : 'absolute'\n });\n return options;\n}\n/**\n * @function\n * @memberof Popper.Utils\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Boolean} shouldRound - If the offsets should be rounded at all\n * @returns {Object} The popper's position offsets rounded\n *\n * The tale of pixel-perfect positioning. It's still not 100% perfect, but as\n * good as it can be within reason.\n * Discussion here: https://github.com/FezVrasta/popper.js/pull/715\n *\n * Low DPI screens cause a popper to be blurry if not using full pixels (Safari\n * as well on High DPI screens).\n *\n * Firefox prefers no rounding for positioning and does not have blurriness on\n * high DPI screens.\n *\n * Only horizontal placement and left/right values need to be considered.\n */\n\n\nfunction getRoundedOffsets(data, shouldRound) {\n var _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n var round = Math.round,\n floor = Math.floor;\n\n var noRound = function noRound(v) {\n return v;\n };\n\n var referenceWidth = round(reference.width);\n var popperWidth = round(popper.width);\n var isVertical = ['left', 'right'].indexOf(data.placement) !== -1;\n var isVariation = data.placement.indexOf('-') !== -1;\n var sameWidthParity = referenceWidth % 2 === popperWidth % 2;\n var bothOddWidth = referenceWidth % 2 === 1 && popperWidth % 2 === 1;\n var horizontalToInteger = !shouldRound ? noRound : isVertical || isVariation || sameWidthParity ? round : floor;\n var verticalToInteger = !shouldRound ? noRound : round;\n return {\n left: horizontalToInteger(bothOddWidth && !isVariation && shouldRound ? popper.left - 1 : popper.left),\n top: verticalToInteger(popper.top),\n bottom: verticalToInteger(popper.bottom),\n right: horizontalToInteger(popper.right)\n };\n}\n\nvar isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent);\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\nfunction computeStyle(data, options) {\n var x = options.x,\n y = options.y;\n var popper = data.offsets.popper; // Remove this legacy support in Popper.js v2\n\n var legacyGpuAccelerationOption = find(data.instance.modifiers, function (modifier) {\n return modifier.name === 'applyStyle';\n }).gpuAcceleration;\n\n if (legacyGpuAccelerationOption !== undefined) {\n console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');\n }\n\n var gpuAcceleration = legacyGpuAccelerationOption !== undefined ? legacyGpuAccelerationOption : options.gpuAcceleration;\n var offsetParent = getOffsetParent(data.instance.popper);\n var offsetParentRect = getBoundingClientRect(offsetParent); // Styles\n\n var styles = {\n position: popper.position\n };\n var offsets = getRoundedOffsets(data, window.devicePixelRatio < 2 || !isFirefox);\n var sideA = x === 'bottom' ? 'top' : 'bottom';\n var sideB = y === 'right' ? 'left' : 'right'; // if gpuAcceleration is set to `true` and transform is supported,\n // we use `translate3d` to apply the position to the popper we\n // automatically use the supported prefixed version if needed\n\n var prefixedProperty = getSupportedPropertyName('transform'); // now, let's make a step back and look at this code closely (wtf?)\n // If the content of the popper grows once it's been positioned, it\n // may happen that the popper gets misplaced because of the new content\n // overflowing its reference element\n // To avoid this problem, we provide two options (x and y), which allow\n // the consumer to define the offset origin.\n // If we position a popper on top of a reference element, we can set\n // `x` to `top` to make the popper grow towards its top instead of\n // its bottom.\n\n var left = void 0,\n top = void 0;\n\n if (sideA === 'bottom') {\n // when offsetParent is the positioning is relative to the bottom of the screen (excluding the scrollbar)\n // and not the bottom of the html element\n if (offsetParent.nodeName === 'HTML') {\n top = -offsetParent.clientHeight + offsets.bottom;\n } else {\n top = -offsetParentRect.height + offsets.bottom;\n }\n } else {\n top = offsets.top;\n }\n\n if (sideB === 'right') {\n if (offsetParent.nodeName === 'HTML') {\n left = -offsetParent.clientWidth + offsets.right;\n } else {\n left = -offsetParentRect.width + offsets.right;\n }\n } else {\n left = offsets.left;\n }\n\n if (gpuAcceleration && prefixedProperty) {\n styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)';\n styles[sideA] = 0;\n styles[sideB] = 0;\n styles.willChange = 'transform';\n } else {\n // othwerise, we use the standard `top`, `left`, `bottom` and `right` properties\n var invertTop = sideA === 'bottom' ? -1 : 1;\n var invertLeft = sideB === 'right' ? -1 : 1;\n styles[sideA] = top * invertTop;\n styles[sideB] = left * invertLeft;\n styles.willChange = sideA + ', ' + sideB;\n } // Attributes\n\n\n var attributes = {\n 'x-placement': data.placement\n }; // Update `data` attributes, styles and arrowStyles\n\n data.attributes = _extends({}, attributes, data.attributes);\n data.styles = _extends({}, styles, data.styles);\n data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles);\n return data;\n}\n/**\n * Helper used to know if the given modifier depends from another one.
\n * It checks if the needed modifier is listed and enabled.\n * @method\n * @memberof Popper.Utils\n * @param {Array} modifiers - list of modifiers\n * @param {String} requestingName - name of requesting modifier\n * @param {String} requestedName - name of requested modifier\n * @returns {Boolean}\n */\n\n\nfunction isModifierRequired(modifiers, requestingName, requestedName) {\n var requesting = find(modifiers, function (_ref) {\n var name = _ref.name;\n return name === requestingName;\n });\n var isRequired = !!requesting && modifiers.some(function (modifier) {\n return modifier.name === requestedName && modifier.enabled && modifier.order < requesting.order;\n });\n\n if (!isRequired) {\n var _requesting = '`' + requestingName + '`';\n\n var requested = '`' + requestedName + '`';\n console.warn(requested + ' modifier is required by ' + _requesting + ' modifier in order to work, be sure to include it before ' + _requesting + '!');\n }\n\n return isRequired;\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction arrow(data, options) {\n var _data$offsets$arrow; // arrow depends on keepTogether in order to work\n\n\n if (!isModifierRequired(data.instance.modifiers, 'arrow', 'keepTogether')) {\n return data;\n }\n\n var arrowElement = options.element; // if arrowElement is a string, suppose it's a CSS selector\n\n if (typeof arrowElement === 'string') {\n arrowElement = data.instance.popper.querySelector(arrowElement); // if arrowElement is not found, don't run the modifier\n\n if (!arrowElement) {\n return data;\n }\n } else {\n // if the arrowElement isn't a query selector we must check that the\n // provided DOM node is child of its popper node\n if (!data.instance.popper.contains(arrowElement)) {\n console.warn('WARNING: `arrow.element` must be child of its popper element!');\n return data;\n }\n }\n\n var placement = data.placement.split('-')[0];\n var _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n var isVertical = ['left', 'right'].indexOf(placement) !== -1;\n var len = isVertical ? 'height' : 'width';\n var sideCapitalized = isVertical ? 'Top' : 'Left';\n var side = sideCapitalized.toLowerCase();\n var altSide = isVertical ? 'left' : 'top';\n var opSide = isVertical ? 'bottom' : 'right';\n var arrowElementSize = getOuterSizes(arrowElement)[len]; //\n // extends keepTogether behavior making sure the popper and its\n // reference have enough pixels in conjunction\n //\n // top/left side\n\n if (reference[opSide] - arrowElementSize < popper[side]) {\n data.offsets.popper[side] -= popper[side] - (reference[opSide] - arrowElementSize);\n } // bottom/right side\n\n\n if (reference[side] + arrowElementSize > popper[opSide]) {\n data.offsets.popper[side] += reference[side] + arrowElementSize - popper[opSide];\n }\n\n data.offsets.popper = getClientRect(data.offsets.popper); // compute center of the popper\n\n var center = reference[side] + reference[len] / 2 - arrowElementSize / 2; // Compute the sideValue using the updated popper offsets\n // take popper margin in account because we don't have this info available\n\n var css = getStyleComputedProperty(data.instance.popper);\n var popperMarginSide = parseFloat(css['margin' + sideCapitalized]);\n var popperBorderSide = parseFloat(css['border' + sideCapitalized + 'Width']);\n var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide; // prevent arrowElement from being placed not contiguously to its popper\n\n sideValue = Math.max(Math.min(popper[len] - arrowElementSize, sideValue), 0);\n data.arrowElement = arrowElement;\n data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty(_data$offsets$arrow, altSide, ''), _data$offsets$arrow);\n return data;\n}\n/**\n * Get the opposite placement variation of the given one\n * @method\n * @memberof Popper.Utils\n * @argument {String} placement variation\n * @returns {String} flipped placement variation\n */\n\n\nfunction getOppositeVariation(variation) {\n if (variation === 'end') {\n return 'start';\n } else if (variation === 'start') {\n return 'end';\n }\n\n return variation;\n}\n/**\n * List of accepted placements to use as values of the `placement` option.
\n * Valid placements are:\n * - `auto`\n * - `top`\n * - `right`\n * - `bottom`\n * - `left`\n *\n * Each placement can have a variation from this list:\n * - `-start`\n * - `-end`\n *\n * Variations are interpreted easily if you think of them as the left to right\n * written languages. Horizontally (`top` and `bottom`), `start` is left and `end`\n * is right.
\n * Vertically (`left` and `right`), `start` is top and `end` is bottom.\n *\n * Some valid examples are:\n * - `top-end` (on top of reference, right aligned)\n * - `right-start` (on right of reference, top aligned)\n * - `bottom` (on bottom, centered)\n * - `auto-end` (on the side with more space available, alignment depends by placement)\n *\n * @static\n * @type {Array}\n * @enum {String}\n * @readonly\n * @method placements\n * @memberof Popper\n */\n\n\nvar placements = ['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start']; // Get rid of `auto` `auto-start` and `auto-end`\n\nvar validPlacements = placements.slice(3);\n/**\n * Given an initial placement, returns all the subsequent placements\n * clockwise (or counter-clockwise).\n *\n * @method\n * @memberof Popper.Utils\n * @argument {String} placement - A valid placement (it accepts variations)\n * @argument {Boolean} counter - Set to true to walk the placements counterclockwise\n * @returns {Array} placements including their variations\n */\n\nfunction clockwise(placement) {\n var counter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var index = validPlacements.indexOf(placement);\n var arr = validPlacements.slice(index + 1).concat(validPlacements.slice(0, index));\n return counter ? arr.reverse() : arr;\n}\n\nvar BEHAVIORS = {\n FLIP: 'flip',\n CLOCKWISE: 'clockwise',\n COUNTERCLOCKWISE: 'counterclockwise'\n};\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\nfunction flip(data, options) {\n // if `inner` modifier is enabled, we can't use the `flip` modifier\n if (isModifierEnabled(data.instance.modifiers, 'inner')) {\n return data;\n }\n\n if (data.flipped && data.placement === data.originalPlacement) {\n // seems like flip is trying to loop, probably there's not enough space on any of the flippable sides\n return data;\n }\n\n var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, options.boundariesElement, data.positionFixed);\n var placement = data.placement.split('-')[0];\n var placementOpposite = getOppositePlacement(placement);\n var variation = data.placement.split('-')[1] || '';\n var flipOrder = [];\n\n switch (options.behavior) {\n case BEHAVIORS.FLIP:\n flipOrder = [placement, placementOpposite];\n break;\n\n case BEHAVIORS.CLOCKWISE:\n flipOrder = clockwise(placement);\n break;\n\n case BEHAVIORS.COUNTERCLOCKWISE:\n flipOrder = clockwise(placement, true);\n break;\n\n default:\n flipOrder = options.behavior;\n }\n\n flipOrder.forEach(function (step, index) {\n if (placement !== step || flipOrder.length === index + 1) {\n return data;\n }\n\n placement = data.placement.split('-')[0];\n placementOpposite = getOppositePlacement(placement);\n var popperOffsets = data.offsets.popper;\n var refOffsets = data.offsets.reference; // using floor because the reference offsets may contain decimals we are not going to consider here\n\n var floor = Math.floor;\n var overlapsRef = placement === 'left' && floor(popperOffsets.right) > floor(refOffsets.left) || placement === 'right' && floor(popperOffsets.left) < floor(refOffsets.right) || placement === 'top' && floor(popperOffsets.bottom) > floor(refOffsets.top) || placement === 'bottom' && floor(popperOffsets.top) < floor(refOffsets.bottom);\n var overflowsLeft = floor(popperOffsets.left) < floor(boundaries.left);\n var overflowsRight = floor(popperOffsets.right) > floor(boundaries.right);\n var overflowsTop = floor(popperOffsets.top) < floor(boundaries.top);\n var overflowsBottom = floor(popperOffsets.bottom) > floor(boundaries.bottom);\n var overflowsBoundaries = placement === 'left' && overflowsLeft || placement === 'right' && overflowsRight || placement === 'top' && overflowsTop || placement === 'bottom' && overflowsBottom; // flip the variation if required\n\n var isVertical = ['top', 'bottom'].indexOf(placement) !== -1; // flips variation if reference element overflows boundaries\n\n var flippedVariationByRef = !!options.flipVariations && (isVertical && variation === 'start' && overflowsLeft || isVertical && variation === 'end' && overflowsRight || !isVertical && variation === 'start' && overflowsTop || !isVertical && variation === 'end' && overflowsBottom); // flips variation if popper content overflows boundaries\n\n var flippedVariationByContent = !!options.flipVariationsByContent && (isVertical && variation === 'start' && overflowsRight || isVertical && variation === 'end' && overflowsLeft || !isVertical && variation === 'start' && overflowsBottom || !isVertical && variation === 'end' && overflowsTop);\n var flippedVariation = flippedVariationByRef || flippedVariationByContent;\n\n if (overlapsRef || overflowsBoundaries || flippedVariation) {\n // this boolean to detect any flip loop\n data.flipped = true;\n\n if (overlapsRef || overflowsBoundaries) {\n placement = flipOrder[index + 1];\n }\n\n if (flippedVariation) {\n variation = getOppositeVariation(variation);\n }\n\n data.placement = placement + (variation ? '-' + variation : ''); // this object contains `position`, we want to preserve it along with\n // any additional property we may add in the future\n\n data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));\n data = runModifiers(data.instance.modifiers, data, 'flip');\n }\n });\n return data;\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction keepTogether(data) {\n var _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n var placement = data.placement.split('-')[0];\n var floor = Math.floor;\n var isVertical = ['top', 'bottom'].indexOf(placement) !== -1;\n var side = isVertical ? 'right' : 'bottom';\n var opSide = isVertical ? 'left' : 'top';\n var measurement = isVertical ? 'width' : 'height';\n\n if (popper[side] < floor(reference[opSide])) {\n data.offsets.popper[opSide] = floor(reference[opSide]) - popper[measurement];\n }\n\n if (popper[opSide] > floor(reference[side])) {\n data.offsets.popper[opSide] = floor(reference[side]);\n }\n\n return data;\n}\n/**\n * Converts a string containing value + unit into a px value number\n * @function\n * @memberof {modifiers~offset}\n * @private\n * @argument {String} str - Value + unit string\n * @argument {String} measurement - `height` or `width`\n * @argument {Object} popperOffsets\n * @argument {Object} referenceOffsets\n * @returns {Number|String}\n * Value in pixels, or original string if no values were extracted\n */\n\n\nfunction toValue(str, measurement, popperOffsets, referenceOffsets) {\n // separate value from unit\n var split = str.match(/((?:\\-|\\+)?\\d*\\.?\\d*)(.*)/);\n var value = +split[1];\n var unit = split[2]; // If it's not a number it's an operator, I guess\n\n if (!value) {\n return str;\n }\n\n if (unit.indexOf('%') === 0) {\n var element = void 0;\n\n switch (unit) {\n case '%p':\n element = popperOffsets;\n break;\n\n case '%':\n case '%r':\n default:\n element = referenceOffsets;\n }\n\n var rect = getClientRect(element);\n return rect[measurement] / 100 * value;\n } else if (unit === 'vh' || unit === 'vw') {\n // if is a vh or vw, we calculate the size based on the viewport\n var size = void 0;\n\n if (unit === 'vh') {\n size = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);\n } else {\n size = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);\n }\n\n return size / 100 * value;\n } else {\n // if is an explicit pixel unit, we get rid of the unit and keep the value\n // if is an implicit unit, it's px, and we return just the value\n return value;\n }\n}\n/**\n * Parse an `offset` string to extrapolate `x` and `y` numeric offsets.\n * @function\n * @memberof {modifiers~offset}\n * @private\n * @argument {String} offset\n * @argument {Object} popperOffsets\n * @argument {Object} referenceOffsets\n * @argument {String} basePlacement\n * @returns {Array} a two cells array with x and y offsets in numbers\n */\n\n\nfunction parseOffset(offset, popperOffsets, referenceOffsets, basePlacement) {\n var offsets = [0, 0]; // Use height if placement is left or right and index is 0 otherwise use width\n // in this way the first offset will use an axis and the second one\n // will use the other one\n\n var useHeight = ['right', 'left'].indexOf(basePlacement) !== -1; // Split the offset string to obtain a list of values and operands\n // The regex addresses values with the plus or minus sign in front (+10, -20, etc)\n\n var fragments = offset.split(/(\\+|\\-)/).map(function (frag) {\n return frag.trim();\n }); // Detect if the offset string contains a pair of values or a single one\n // they could be separated by comma or space\n\n var divider = fragments.indexOf(find(fragments, function (frag) {\n return frag.search(/,|\\s/) !== -1;\n }));\n\n if (fragments[divider] && fragments[divider].indexOf(',') === -1) {\n console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');\n } // If divider is found, we divide the list of values and operands to divide\n // them by ofset X and Y.\n\n\n var splitRegex = /\\s*,\\s*|\\s+/;\n var ops = divider !== -1 ? [fragments.slice(0, divider).concat([fragments[divider].split(splitRegex)[0]]), [fragments[divider].split(splitRegex)[1]].concat(fragments.slice(divider + 1))] : [fragments]; // Convert the values with units to absolute pixels to allow our computations\n\n ops = ops.map(function (op, index) {\n // Most of the units rely on the orientation of the popper\n var measurement = (index === 1 ? !useHeight : useHeight) ? 'height' : 'width';\n var mergeWithPrevious = false;\n return op // This aggregates any `+` or `-` sign that aren't considered operators\n // e.g.: 10 + +5 => [10, +, +5]\n .reduce(function (a, b) {\n if (a[a.length - 1] === '' && ['+', '-'].indexOf(b) !== -1) {\n a[a.length - 1] = b;\n mergeWithPrevious = true;\n return a;\n } else if (mergeWithPrevious) {\n a[a.length - 1] += b;\n mergeWithPrevious = false;\n return a;\n } else {\n return a.concat(b);\n }\n }, []) // Here we convert the string values into number values (in px)\n .map(function (str) {\n return toValue(str, measurement, popperOffsets, referenceOffsets);\n });\n }); // Loop trough the offsets arrays and execute the operations\n\n ops.forEach(function (op, index) {\n op.forEach(function (frag, index2) {\n if (isNumeric(frag)) {\n offsets[index] += frag * (op[index2 - 1] === '-' ? -1 : 1);\n }\n });\n });\n return offsets;\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @argument {Number|String} options.offset=0\n * The offset value as described in the modifier description\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction offset(data, _ref) {\n var offset = _ref.offset;\n var placement = data.placement,\n _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n var basePlacement = placement.split('-')[0];\n var offsets = void 0;\n\n if (isNumeric(+offset)) {\n offsets = [+offset, 0];\n } else {\n offsets = parseOffset(offset, popper, reference, basePlacement);\n }\n\n if (basePlacement === 'left') {\n popper.top += offsets[0];\n popper.left -= offsets[1];\n } else if (basePlacement === 'right') {\n popper.top += offsets[0];\n popper.left += offsets[1];\n } else if (basePlacement === 'top') {\n popper.left += offsets[0];\n popper.top -= offsets[1];\n } else if (basePlacement === 'bottom') {\n popper.left += offsets[0];\n popper.top += offsets[1];\n }\n\n data.popper = popper;\n return data;\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction preventOverflow(data, options) {\n var boundariesElement = options.boundariesElement || getOffsetParent(data.instance.popper); // If offsetParent is the reference element, we really want to\n // go one step up and use the next offsetParent as reference to\n // avoid to make this modifier completely useless and look like broken\n\n if (data.instance.reference === boundariesElement) {\n boundariesElement = getOffsetParent(boundariesElement);\n } // NOTE: DOM access here\n // resets the popper's position so that the document size can be calculated excluding\n // the size of the popper element itself\n\n\n var transformProp = getSupportedPropertyName('transform');\n var popperStyles = data.instance.popper.style; // assignment to help minification\n\n var top = popperStyles.top,\n left = popperStyles.left,\n transform = popperStyles[transformProp];\n popperStyles.top = '';\n popperStyles.left = '';\n popperStyles[transformProp] = '';\n var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, boundariesElement, data.positionFixed); // NOTE: DOM access here\n // restores the original style properties after the offsets have been computed\n\n popperStyles.top = top;\n popperStyles.left = left;\n popperStyles[transformProp] = transform;\n options.boundaries = boundaries;\n var order = options.priority;\n var popper = data.offsets.popper;\n var check = {\n primary: function primary(placement) {\n var value = popper[placement];\n\n if (popper[placement] < boundaries[placement] && !options.escapeWithReference) {\n value = Math.max(popper[placement], boundaries[placement]);\n }\n\n return defineProperty({}, placement, value);\n },\n secondary: function secondary(placement) {\n var mainSide = placement === 'right' ? 'left' : 'top';\n var value = popper[mainSide];\n\n if (popper[placement] > boundaries[placement] && !options.escapeWithReference) {\n value = Math.min(popper[mainSide], boundaries[placement] - (placement === 'right' ? popper.width : popper.height));\n }\n\n return defineProperty({}, mainSide, value);\n }\n };\n order.forEach(function (placement) {\n var side = ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary';\n popper = _extends({}, popper, check[side](placement));\n });\n data.offsets.popper = popper;\n return data;\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction shift(data) {\n var placement = data.placement;\n var basePlacement = placement.split('-')[0];\n var shiftvariation = placement.split('-')[1]; // if shift shiftvariation is specified, run the modifier\n\n if (shiftvariation) {\n var _data$offsets = data.offsets,\n reference = _data$offsets.reference,\n popper = _data$offsets.popper;\n var isVertical = ['bottom', 'top'].indexOf(basePlacement) !== -1;\n var side = isVertical ? 'left' : 'top';\n var measurement = isVertical ? 'width' : 'height';\n var shiftOffsets = {\n start: defineProperty({}, side, reference[side]),\n end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement])\n };\n data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]);\n }\n\n return data;\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction hide(data) {\n if (!isModifierRequired(data.instance.modifiers, 'hide', 'preventOverflow')) {\n return data;\n }\n\n var refRect = data.offsets.reference;\n var bound = find(data.instance.modifiers, function (modifier) {\n return modifier.name === 'preventOverflow';\n }).boundaries;\n\n if (refRect.bottom < bound.top || refRect.left > bound.right || refRect.top > bound.bottom || refRect.right < bound.left) {\n // Avoid unnecessary DOM access if visibility hasn't changed\n if (data.hide === true) {\n return data;\n }\n\n data.hide = true;\n data.attributes['x-out-of-boundaries'] = '';\n } else {\n // Avoid unnecessary DOM access if visibility hasn't changed\n if (data.hide === false) {\n return data;\n }\n\n data.hide = false;\n data.attributes['x-out-of-boundaries'] = false;\n }\n\n return data;\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction inner(data) {\n var placement = data.placement;\n var basePlacement = placement.split('-')[0];\n var _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n var isHoriz = ['left', 'right'].indexOf(basePlacement) !== -1;\n var subtractLength = ['top', 'left'].indexOf(basePlacement) === -1;\n popper[isHoriz ? 'left' : 'top'] = reference[basePlacement] - (subtractLength ? popper[isHoriz ? 'width' : 'height'] : 0);\n data.placement = getOppositePlacement(placement);\n data.offsets.popper = getClientRect(popper);\n return data;\n}\n/**\n * Modifier function, each modifier can have a function of this type assigned\n * to its `fn` property.
\n * These functions will be called on each update, this means that you must\n * make sure they are performant enough to avoid performance bottlenecks.\n *\n * @function ModifierFn\n * @argument {dataObject} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {dataObject} The data object, properly modified\n */\n\n/**\n * Modifiers are plugins used to alter the behavior of your poppers.
\n * Popper.js uses a set of 9 modifiers to provide all the basic functionalities\n * needed by the library.\n *\n * Usually you don't want to override the `order`, `fn` and `onLoad` props.\n * All the other properties are configurations that could be tweaked.\n * @namespace modifiers\n */\n\n\nvar modifiers = {\n /**\n * Modifier used to shift the popper on the start or end of its reference\n * element.
\n * It will read the variation of the `placement` property.
\n * It can be one either `-end` or `-start`.\n * @memberof modifiers\n * @inner\n */\n shift: {\n /** @prop {number} order=100 - Index used to define the order of execution */\n order: 100,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: shift\n },\n\n /**\n * The `offset` modifier can shift your popper on both its axis.\n *\n * It accepts the following units:\n * - `px` or unit-less, interpreted as pixels\n * - `%` or `%r`, percentage relative to the length of the reference element\n * - `%p`, percentage relative to the length of the popper element\n * - `vw`, CSS viewport width unit\n * - `vh`, CSS viewport height unit\n *\n * For length is intended the main axis relative to the placement of the popper.
\n * This means that if the placement is `top` or `bottom`, the length will be the\n * `width`. In case of `left` or `right`, it will be the `height`.\n *\n * You can provide a single value (as `Number` or `String`), or a pair of values\n * as `String` divided by a comma or one (or more) white spaces.
\n * The latter is a deprecated method because it leads to confusion and will be\n * removed in v2.
\n * Additionally, it accepts additions and subtractions between different units.\n * Note that multiplications and divisions aren't supported.\n *\n * Valid examples are:\n * ```\n * 10\n * '10%'\n * '10, 10'\n * '10%, 10'\n * '10 + 10%'\n * '10 - 5vh + 3%'\n * '-10px + 5vh, 5px - 6%'\n * ```\n * > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap\n * > with their reference element, unfortunately, you will have to disable the `flip` modifier.\n * > You can read more on this at this [issue](https://github.com/FezVrasta/popper.js/issues/373).\n *\n * @memberof modifiers\n * @inner\n */\n offset: {\n /** @prop {number} order=200 - Index used to define the order of execution */\n order: 200,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: offset,\n\n /** @prop {Number|String} offset=0\n * The offset value as described in the modifier description\n */\n offset: 0\n },\n\n /**\n * Modifier used to prevent the popper from being positioned outside the boundary.\n *\n * A scenario exists where the reference itself is not within the boundaries.
\n * We can say it has \"escaped the boundaries\" — or just \"escaped\".
\n * In this case we need to decide whether the popper should either:\n *\n * - detach from the reference and remain \"trapped\" in the boundaries, or\n * - if it should ignore the boundary and \"escape with its reference\"\n *\n * When `escapeWithReference` is set to`true` and reference is completely\n * outside its boundaries, the popper will overflow (or completely leave)\n * the boundaries in order to remain attached to the edge of the reference.\n *\n * @memberof modifiers\n * @inner\n */\n preventOverflow: {\n /** @prop {number} order=300 - Index used to define the order of execution */\n order: 300,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: preventOverflow,\n\n /**\n * @prop {Array} [priority=['left','right','top','bottom']]\n * Popper will try to prevent overflow following these priorities by default,\n * then, it could overflow on the left and on top of the `boundariesElement`\n */\n priority: ['left', 'right', 'top', 'bottom'],\n\n /**\n * @prop {number} padding=5\n * Amount of pixel used to define a minimum distance between the boundaries\n * and the popper. This makes sure the popper always has a little padding\n * between the edges of its container\n */\n padding: 5,\n\n /**\n * @prop {String|HTMLElement} boundariesElement='scrollParent'\n * Boundaries used by the modifier. Can be `scrollParent`, `window`,\n * `viewport` or any DOM element.\n */\n boundariesElement: 'scrollParent'\n },\n\n /**\n * Modifier used to make sure the reference and its popper stay near each other\n * without leaving any gap between the two. Especially useful when the arrow is\n * enabled and you want to ensure that it points to its reference element.\n * It cares only about the first axis. You can still have poppers with margin\n * between the popper and its reference element.\n * @memberof modifiers\n * @inner\n */\n keepTogether: {\n /** @prop {number} order=400 - Index used to define the order of execution */\n order: 400,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: keepTogether\n },\n\n /**\n * This modifier is used to move the `arrowElement` of the popper to make\n * sure it is positioned between the reference element and its popper element.\n * It will read the outer size of the `arrowElement` node to detect how many\n * pixels of conjunction are needed.\n *\n * It has no effect if no `arrowElement` is provided.\n * @memberof modifiers\n * @inner\n */\n arrow: {\n /** @prop {number} order=500 - Index used to define the order of execution */\n order: 500,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: arrow,\n\n /** @prop {String|HTMLElement} element='[x-arrow]' - Selector or node used as arrow */\n element: '[x-arrow]'\n },\n\n /**\n * Modifier used to flip the popper's placement when it starts to overlap its\n * reference element.\n *\n * Requires the `preventOverflow` modifier before it in order to work.\n *\n * **NOTE:** this modifier will interrupt the current update cycle and will\n * restart it if it detects the need to flip the placement.\n * @memberof modifiers\n * @inner\n */\n flip: {\n /** @prop {number} order=600 - Index used to define the order of execution */\n order: 600,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: flip,\n\n /**\n * @prop {String|Array} behavior='flip'\n * The behavior used to change the popper's placement. It can be one of\n * `flip`, `clockwise`, `counterclockwise` or an array with a list of valid\n * placements (with optional variations)\n */\n behavior: 'flip',\n\n /**\n * @prop {number} padding=5\n * The popper will flip if it hits the edges of the `boundariesElement`\n */\n padding: 5,\n\n /**\n * @prop {String|HTMLElement} boundariesElement='viewport'\n * The element which will define the boundaries of the popper position.\n * The popper will never be placed outside of the defined boundaries\n * (except if `keepTogether` is enabled)\n */\n boundariesElement: 'viewport',\n\n /**\n * @prop {Boolean} flipVariations=false\n * The popper will switch placement variation between `-start` and `-end` when\n * the reference element overlaps its boundaries.\n *\n * The original placement should have a set variation.\n */\n flipVariations: false,\n\n /**\n * @prop {Boolean} flipVariationsByContent=false\n * The popper will switch placement variation between `-start` and `-end` when\n * the popper element overlaps its reference boundaries.\n *\n * The original placement should have a set variation.\n */\n flipVariationsByContent: false\n },\n\n /**\n * Modifier used to make the popper flow toward the inner of the reference element.\n * By default, when this modifier is disabled, the popper will be placed outside\n * the reference element.\n * @memberof modifiers\n * @inner\n */\n inner: {\n /** @prop {number} order=700 - Index used to define the order of execution */\n order: 700,\n\n /** @prop {Boolean} enabled=false - Whether the modifier is enabled or not */\n enabled: false,\n\n /** @prop {ModifierFn} */\n fn: inner\n },\n\n /**\n * Modifier used to hide the popper when its reference element is outside of the\n * popper boundaries. It will set a `x-out-of-boundaries` attribute which can\n * be used to hide with a CSS selector the popper when its reference is\n * out of boundaries.\n *\n * Requires the `preventOverflow` modifier before it in order to work.\n * @memberof modifiers\n * @inner\n */\n hide: {\n /** @prop {number} order=800 - Index used to define the order of execution */\n order: 800,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: hide\n },\n\n /**\n * Computes the style that will be applied to the popper element to gets\n * properly positioned.\n *\n * Note that this modifier will not touch the DOM, it just prepares the styles\n * so that `applyStyle` modifier can apply it. This separation is useful\n * in case you need to replace `applyStyle` with a custom implementation.\n *\n * This modifier has `850` as `order` value to maintain backward compatibility\n * with previous versions of Popper.js. Expect the modifiers ordering method\n * to change in future major versions of the library.\n *\n * @memberof modifiers\n * @inner\n */\n computeStyle: {\n /** @prop {number} order=850 - Index used to define the order of execution */\n order: 850,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: computeStyle,\n\n /**\n * @prop {Boolean} gpuAcceleration=true\n * If true, it uses the CSS 3D transformation to position the popper.\n * Otherwise, it will use the `top` and `left` properties\n */\n gpuAcceleration: true,\n\n /**\n * @prop {string} [x='bottom']\n * Where to anchor the X axis (`bottom` or `top`). AKA X offset origin.\n * Change this if your popper should grow in a direction different from `bottom`\n */\n x: 'bottom',\n\n /**\n * @prop {string} [x='left']\n * Where to anchor the Y axis (`left` or `right`). AKA Y offset origin.\n * Change this if your popper should grow in a direction different from `right`\n */\n y: 'right'\n },\n\n /**\n * Applies the computed styles to the popper element.\n *\n * All the DOM manipulations are limited to this modifier. This is useful in case\n * you want to integrate Popper.js inside a framework or view library and you\n * want to delegate all the DOM manipulations to it.\n *\n * Note that if you disable this modifier, you must make sure the popper element\n * has its position set to `absolute` before Popper.js can do its work!\n *\n * Just disable this modifier and define your own to achieve the desired effect.\n *\n * @memberof modifiers\n * @inner\n */\n applyStyle: {\n /** @prop {number} order=900 - Index used to define the order of execution */\n order: 900,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: applyStyle,\n\n /** @prop {Function} */\n onLoad: applyStyleOnLoad,\n\n /**\n * @deprecated since version 1.10.0, the property moved to `computeStyle` modifier\n * @prop {Boolean} gpuAcceleration=true\n * If true, it uses the CSS 3D transformation to position the popper.\n * Otherwise, it will use the `top` and `left` properties\n */\n gpuAcceleration: undefined\n }\n};\n/**\n * The `dataObject` is an object containing all the information used by Popper.js.\n * This object is passed to modifiers and to the `onCreate` and `onUpdate` callbacks.\n * @name dataObject\n * @property {Object} data.instance The Popper.js instance\n * @property {String} data.placement Placement applied to popper\n * @property {String} data.originalPlacement Placement originally defined on init\n * @property {Boolean} data.flipped True if popper has been flipped by flip modifier\n * @property {Boolean} data.hide True if the reference element is out of boundaries, useful to know when to hide the popper\n * @property {HTMLElement} data.arrowElement Node used as arrow by arrow modifier\n * @property {Object} data.styles Any CSS property defined here will be applied to the popper. It expects the JavaScript nomenclature (eg. `marginBottom`)\n * @property {Object} data.arrowStyles Any CSS property defined here will be applied to the popper arrow. It expects the JavaScript nomenclature (eg. `marginBottom`)\n * @property {Object} data.boundaries Offsets of the popper boundaries\n * @property {Object} data.offsets The measurements of popper, reference and arrow elements\n * @property {Object} data.offsets.popper `top`, `left`, `width`, `height` values\n * @property {Object} data.offsets.reference `top`, `left`, `width`, `height` values\n * @property {Object} data.offsets.arrow] `top` and `left` offsets, only one of them will be different from 0\n */\n\n/**\n * Default options provided to Popper.js constructor.
\n * These can be overridden using the `options` argument of Popper.js.
\n * To override an option, simply pass an object with the same\n * structure of the `options` object, as the 3rd argument. For example:\n * ```\n * new Popper(ref, pop, {\n * modifiers: {\n * preventOverflow: { enabled: false }\n * }\n * })\n * ```\n * @type {Object}\n * @static\n * @memberof Popper\n */\n\nvar Defaults = {\n /**\n * Popper's placement.\n * @prop {Popper.placements} placement='bottom'\n */\n placement: 'bottom',\n\n /**\n * Set this to true if you want popper to position it self in 'fixed' mode\n * @prop {Boolean} positionFixed=false\n */\n positionFixed: false,\n\n /**\n * Whether events (resize, scroll) are initially enabled.\n * @prop {Boolean} eventsEnabled=true\n */\n eventsEnabled: true,\n\n /**\n * Set to true if you want to automatically remove the popper when\n * you call the `destroy` method.\n * @prop {Boolean} removeOnDestroy=false\n */\n removeOnDestroy: false,\n\n /**\n * Callback called when the popper is created.
\n * By default, it is set to no-op.
\n * Access Popper.js instance with `data.instance`.\n * @prop {onCreate}\n */\n onCreate: function onCreate() {},\n\n /**\n * Callback called when the popper is updated. This callback is not called\n * on the initialization/creation of the popper, but only on subsequent\n * updates.
\n * By default, it is set to no-op.
\n * Access Popper.js instance with `data.instance`.\n * @prop {onUpdate}\n */\n onUpdate: function onUpdate() {},\n\n /**\n * List of modifiers used to modify the offsets before they are applied to the popper.\n * They provide most of the functionalities of Popper.js.\n * @prop {modifiers}\n */\n modifiers: modifiers\n};\n/**\n * @callback onCreate\n * @param {dataObject} data\n */\n\n/**\n * @callback onUpdate\n * @param {dataObject} data\n */\n// Utils\n// Methods\n\nvar Popper = function () {\n /**\n * Creates a new Popper.js instance.\n * @class Popper\n * @param {Element|referenceObject} reference - The reference element used to position the popper\n * @param {Element} popper - The HTML / XML element used as the popper\n * @param {Object} options - Your custom options to override the ones defined in [Defaults](#defaults)\n * @return {Object} instance - The generated Popper.js instance\n */\n function Popper(reference, popper) {\n var _this = this;\n\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n classCallCheck(this, Popper);\n\n this.scheduleUpdate = function () {\n return requestAnimationFrame(_this.update);\n }; // make update() debounced, so that it only runs at most once-per-tick\n\n\n this.update = debounce(this.update.bind(this)); // with {} we create a new object with the options inside it\n\n this.options = _extends({}, Popper.Defaults, options); // init state\n\n this.state = {\n isDestroyed: false,\n isCreated: false,\n scrollParents: []\n }; // get reference and popper elements (allow jQuery wrappers)\n\n this.reference = reference && reference.jquery ? reference[0] : reference;\n this.popper = popper && popper.jquery ? popper[0] : popper; // Deep merge modifiers options\n\n this.options.modifiers = {};\n Object.keys(_extends({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) {\n _this.options.modifiers[name] = _extends({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});\n }); // Refactoring modifiers' list (Object => Array)\n\n this.modifiers = Object.keys(this.options.modifiers).map(function (name) {\n return _extends({\n name: name\n }, _this.options.modifiers[name]);\n }) // sort the modifiers by order\n .sort(function (a, b) {\n return a.order - b.order;\n }); // modifiers have the ability to execute arbitrary code when Popper.js get inited\n // such code is executed in the same order of its modifier\n // they could add new properties to their options configuration\n // BE AWARE: don't add options to `options.modifiers.name` but to `modifierOptions`!\n\n this.modifiers.forEach(function (modifierOptions) {\n if (modifierOptions.enabled && isFunction(modifierOptions.onLoad)) {\n modifierOptions.onLoad(_this.reference, _this.popper, _this.options, modifierOptions, _this.state);\n }\n }); // fire the first update to position the popper in the right place\n\n this.update();\n var eventsEnabled = this.options.eventsEnabled;\n\n if (eventsEnabled) {\n // setup event listeners, they will take care of update the position in specific situations\n this.enableEventListeners();\n }\n\n this.state.eventsEnabled = eventsEnabled;\n } // We can't use class properties because they don't get listed in the\n // class prototype and break stuff like Sinon stubs\n\n\n createClass(Popper, [{\n key: 'update',\n value: function update$$1() {\n return update.call(this);\n }\n }, {\n key: 'destroy',\n value: function destroy$$1() {\n return destroy.call(this);\n }\n }, {\n key: 'enableEventListeners',\n value: function enableEventListeners$$1() {\n return enableEventListeners.call(this);\n }\n }, {\n key: 'disableEventListeners',\n value: function disableEventListeners$$1() {\n return disableEventListeners.call(this);\n }\n /**\n * Schedules an update. It will run on the next UI update available.\n * @method scheduleUpdate\n * @memberof Popper\n */\n\n /**\n * Collection of utilities useful when writing custom modifiers.\n * Starting from version 1.7, this method is available only if you\n * include `popper-utils.js` before `popper.js`.\n *\n * **DEPRECATION**: This way to access PopperUtils is deprecated\n * and will be removed in v2! Use the PopperUtils module directly instead.\n * Due to the high instability of the methods contained in Utils, we can't\n * guarantee them to follow semver. Use them at your own risk!\n * @static\n * @private\n * @type {Object}\n * @deprecated since version 1.8\n * @member Utils\n * @memberof Popper\n */\n\n }]);\n return Popper;\n}();\n/**\n * The `referenceObject` is an object that provides an interface compatible with Popper.js\n * and lets you use it as replacement of a real DOM node.
\n * You can use this method to position a popper relatively to a set of coordinates\n * in case you don't have a DOM node to use as reference.\n *\n * ```\n * new Popper(referenceObject, popperNode);\n * ```\n *\n * NB: This feature isn't supported in Internet Explorer 10.\n * @name referenceObject\n * @property {Function} data.getBoundingClientRect\n * A function that returns a set of coordinates compatible with the native `getBoundingClientRect` method.\n * @property {number} data.clientWidth\n * An ES6 getter that will return the width of the virtual reference element.\n * @property {number} data.clientHeight\n * An ES6 getter that will return the height of the virtual reference element.\n */\n\n\nPopper.Utils = (typeof window !== 'undefined' ? window : global).PopperUtils;\nPopper.placements = placements;\nPopper.Defaults = Defaults;\nexport default Popper;","import { getOriginalFunction } from '@sentry/utils';\nvar originalFunctionToString;\n/** Patch toString calls to return proper name for wrapped functions */\n\nvar FunctionToString =\n/** @class */\nfunction () {\n function FunctionToString() {\n /**\n * @inheritDoc\n */\n this.name = FunctionToString.id;\n }\n /**\n * @inheritDoc\n */\n\n\n FunctionToString.prototype.setupOnce = function () {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n originalFunctionToString = Function.prototype.toString; // eslint-disable-next-line @typescript-eslint/no-explicit-any\n\n Function.prototype.toString = function () {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n var context = getOriginalFunction(this) || this;\n return originalFunctionToString.apply(context, args);\n };\n };\n /**\n * @inheritDoc\n */\n\n\n FunctionToString.id = 'FunctionToString';\n return FunctionToString;\n}();\n\nexport { FunctionToString };","export var SDK_VERSION = '6.19.7';","/*\n * This file defines flags and constants that can be modified during compile time in order to facilitate tree shaking\n * for users.\n *\n * Debug flags need to be declared in each package individually and must not be imported across package boundaries,\n * because some build tools have trouble tree-shaking imported guards.\n *\n * As a convention, we define debug flags in a `flags.ts` file in the root of a package's `src` folder.\n *\n * Debug flag files will contain \"magic strings\" like `__SENTRY_DEBUG__` that may get replaced with actual values during\n * our, or the user's build process. Take care when introducing new flags - they must not throw if they are not\n * replaced.\n */\n\n/** Flag that is true for debug builds, false otherwise. */\nexport var IS_DEBUG_BUILD = typeof __SENTRY_DEBUG__ === 'undefined' ? true : __SENTRY_DEBUG__;","import { __read, __spread } from \"tslib\";\nimport { getEventDescription, isMatchingPattern, logger } from '@sentry/utils';\nimport { IS_DEBUG_BUILD } from '../flags'; // \"Script error.\" is hard coded into browsers for errors that it can't read.\n// this is the result of a script being pulled in from an external domain and CORS.\n\nvar DEFAULT_IGNORE_ERRORS = [/^Script error\\.?$/, /^Javascript error: Script error\\.? on line 0$/];\n/** Inbound filters configurable by the user */\n\nvar InboundFilters =\n/** @class */\nfunction () {\n function InboundFilters(_options) {\n if (_options === void 0) {\n _options = {};\n }\n\n this._options = _options;\n /**\n * @inheritDoc\n */\n\n this.name = InboundFilters.id;\n }\n /**\n * @inheritDoc\n */\n\n\n InboundFilters.prototype.setupOnce = function (addGlobalEventProcessor, getCurrentHub) {\n addGlobalEventProcessor(function (event) {\n var hub = getCurrentHub();\n\n if (hub) {\n var self_1 = hub.getIntegration(InboundFilters);\n\n if (self_1) {\n var client = hub.getClient();\n var clientOptions = client ? client.getOptions() : {};\n\n var options = _mergeOptions(self_1._options, clientOptions);\n\n return _shouldDropEvent(event, options) ? null : event;\n }\n }\n\n return event;\n });\n };\n /**\n * @inheritDoc\n */\n\n\n InboundFilters.id = 'InboundFilters';\n return InboundFilters;\n}();\n\nexport { InboundFilters };\n/** JSDoc */\n\nexport function _mergeOptions(internalOptions, clientOptions) {\n if (internalOptions === void 0) {\n internalOptions = {};\n }\n\n if (clientOptions === void 0) {\n clientOptions = {};\n }\n\n return {\n allowUrls: __spread(internalOptions.whitelistUrls || [], internalOptions.allowUrls || [], clientOptions.whitelistUrls || [], clientOptions.allowUrls || []),\n denyUrls: __spread(internalOptions.blacklistUrls || [], internalOptions.denyUrls || [], clientOptions.blacklistUrls || [], clientOptions.denyUrls || []),\n ignoreErrors: __spread(internalOptions.ignoreErrors || [], clientOptions.ignoreErrors || [], DEFAULT_IGNORE_ERRORS),\n ignoreInternal: internalOptions.ignoreInternal !== undefined ? internalOptions.ignoreInternal : true\n };\n}\n/** JSDoc */\n\nexport function _shouldDropEvent(event, options) {\n if (options.ignoreInternal && _isSentryError(event)) {\n IS_DEBUG_BUILD && logger.warn(\"Event dropped due to being internal Sentry Error.\\nEvent: \" + getEventDescription(event));\n return true;\n }\n\n if (_isIgnoredError(event, options.ignoreErrors)) {\n IS_DEBUG_BUILD && logger.warn(\"Event dropped due to being matched by `ignoreErrors` option.\\nEvent: \" + getEventDescription(event));\n return true;\n }\n\n if (_isDeniedUrl(event, options.denyUrls)) {\n IS_DEBUG_BUILD && logger.warn(\"Event dropped due to being matched by `denyUrls` option.\\nEvent: \" + getEventDescription(event) + \".\\nUrl: \" + _getEventFilterUrl(event));\n return true;\n }\n\n if (!_isAllowedUrl(event, options.allowUrls)) {\n IS_DEBUG_BUILD && logger.warn(\"Event dropped due to not being matched by `allowUrls` option.\\nEvent: \" + getEventDescription(event) + \".\\nUrl: \" + _getEventFilterUrl(event));\n return true;\n }\n\n return false;\n}\n\nfunction _isIgnoredError(event, ignoreErrors) {\n if (!ignoreErrors || !ignoreErrors.length) {\n return false;\n }\n\n return _getPossibleEventMessages(event).some(function (message) {\n return ignoreErrors.some(function (pattern) {\n return isMatchingPattern(message, pattern);\n });\n });\n}\n\nfunction _isDeniedUrl(event, denyUrls) {\n // TODO: Use Glob instead?\n if (!denyUrls || !denyUrls.length) {\n return false;\n }\n\n var url = _getEventFilterUrl(event);\n\n return !url ? false : denyUrls.some(function (pattern) {\n return isMatchingPattern(url, pattern);\n });\n}\n\nfunction _isAllowedUrl(event, allowUrls) {\n // TODO: Use Glob instead?\n if (!allowUrls || !allowUrls.length) {\n return true;\n }\n\n var url = _getEventFilterUrl(event);\n\n return !url ? true : allowUrls.some(function (pattern) {\n return isMatchingPattern(url, pattern);\n });\n}\n\nfunction _getPossibleEventMessages(event) {\n if (event.message) {\n return [event.message];\n }\n\n if (event.exception) {\n try {\n var _a = event.exception.values && event.exception.values[0] || {},\n _b = _a.type,\n type = _b === void 0 ? '' : _b,\n _c = _a.value,\n value = _c === void 0 ? '' : _c;\n\n return [\"\" + value, type + \": \" + value];\n } catch (oO) {\n IS_DEBUG_BUILD && logger.error(\"Cannot extract message for event \" + getEventDescription(event));\n return [];\n }\n }\n\n return [];\n}\n\nfunction _isSentryError(event) {\n try {\n // @ts-ignore can't be a sentry error if undefined\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return event.exception.values[0].type === 'SentryError';\n } catch (e) {// ignore\n }\n\n return false;\n}\n\nfunction _getLastValidUrl(frames) {\n if (frames === void 0) {\n frames = [];\n }\n\n for (var i = frames.length - 1; i >= 0; i--) {\n var frame = frames[i];\n\n if (frame && frame.filename !== '' && frame.filename !== '[native code]') {\n return frame.filename || null;\n }\n }\n\n return null;\n}\n\nfunction _getEventFilterUrl(event) {\n try {\n if (event.stacktrace) {\n return _getLastValidUrl(event.stacktrace.frames);\n }\n\n var frames_1;\n\n try {\n // @ts-ignore we only care about frames if the whole thing here is defined\n frames_1 = event.exception.values[0].stacktrace.frames;\n } catch (e) {// ignore\n }\n\n return frames_1 ? _getLastValidUrl(frames_1) : null;\n } catch (oO) {\n IS_DEBUG_BUILD && logger.error(\"Cannot extract url for event \" + getEventDescription(event));\n return null;\n }\n}","export var setPrototypeOf = Object.setPrototypeOf || ({\n __proto__: []\n} instanceof Array ? setProtoOf : mixinProperties);\n/**\n * setPrototypeOf polyfill using __proto__\n */\n// eslint-disable-next-line @typescript-eslint/ban-types\n\nfunction setProtoOf(obj, proto) {\n // @ts-ignore __proto__ does not exist on obj\n obj.__proto__ = proto;\n return obj;\n}\n/**\n * setPrototypeOf polyfill using mixin\n */\n// eslint-disable-next-line @typescript-eslint/ban-types\n\n\nfunction mixinProperties(obj, proto) {\n for (var prop in proto) {\n if (!Object.prototype.hasOwnProperty.call(obj, prop)) {\n // @ts-ignore typescript complains about indexing so we remove\n obj[prop] = proto[prop];\n }\n }\n\n return obj;\n}","import { __extends } from \"tslib\";\nimport { setPrototypeOf } from './polyfill';\n/** An error emitted by Sentry SDKs and related utilities. */\n\nvar SentryError =\n/** @class */\nfunction (_super) {\n __extends(SentryError, _super);\n\n function SentryError(message) {\n var _newTarget = this.constructor;\n\n var _this = _super.call(this, message) || this;\n\n _this.message = message;\n _this.name = _newTarget.prototype.constructor.name;\n setPrototypeOf(_this, _newTarget.prototype);\n return _this;\n }\n\n return SentryError;\n}(Error);\n\nexport { SentryError };","import { __read } from \"tslib\";\nimport { SentryError } from './error';\nimport { IS_DEBUG_BUILD } from './flags';\n/** Regular expression used to parse a Dsn. */\n\nvar DSN_REGEX = /^(?:(\\w+):)\\/\\/(?:(\\w+)(?::(\\w+))?@)([\\w.-]+)(?::(\\d+))?\\/(.+)/;\n\nfunction isValidProtocol(protocol) {\n return protocol === 'http' || protocol === 'https';\n}\n/**\n * Renders the string representation of this Dsn.\n *\n * By default, this will render the public representation without the password\n * component. To get the deprecated private representation, set `withPassword`\n * to true.\n *\n * @param withPassword When set to true, the password will be included.\n */\n\n\nexport function dsnToString(dsn, withPassword) {\n if (withPassword === void 0) {\n withPassword = false;\n }\n\n var host = dsn.host,\n path = dsn.path,\n pass = dsn.pass,\n port = dsn.port,\n projectId = dsn.projectId,\n protocol = dsn.protocol,\n publicKey = dsn.publicKey;\n return protocol + \"://\" + publicKey + (withPassword && pass ? \":\" + pass : '') + (\"@\" + host + (port ? \":\" + port : '') + \"/\" + (path ? path + \"/\" : path) + projectId);\n}\n\nfunction dsnFromString(str) {\n var match = DSN_REGEX.exec(str);\n\n if (!match) {\n throw new SentryError(\"Invalid Sentry Dsn: \" + str);\n }\n\n var _a = __read(match.slice(1), 6),\n protocol = _a[0],\n publicKey = _a[1],\n _b = _a[2],\n pass = _b === void 0 ? '' : _b,\n host = _a[3],\n _c = _a[4],\n port = _c === void 0 ? '' : _c,\n lastPath = _a[5];\n\n var path = '';\n var projectId = lastPath;\n var split = projectId.split('/');\n\n if (split.length > 1) {\n path = split.slice(0, -1).join('/');\n projectId = split.pop();\n }\n\n if (projectId) {\n var projectMatch = projectId.match(/^\\d+/);\n\n if (projectMatch) {\n projectId = projectMatch[0];\n }\n }\n\n return dsnFromComponents({\n host: host,\n pass: pass,\n path: path,\n projectId: projectId,\n port: port,\n protocol: protocol,\n publicKey: publicKey\n });\n}\n\nfunction dsnFromComponents(components) {\n // TODO this is for backwards compatibility, and can be removed in a future version\n if ('user' in components && !('publicKey' in components)) {\n components.publicKey = components.user;\n }\n\n return {\n user: components.publicKey || '',\n protocol: components.protocol,\n publicKey: components.publicKey || '',\n pass: components.pass || '',\n host: components.host,\n port: components.port || '',\n path: components.path || '',\n projectId: components.projectId\n };\n}\n\nfunction validateDsn(dsn) {\n if (!IS_DEBUG_BUILD) {\n return;\n }\n\n var port = dsn.port,\n projectId = dsn.projectId,\n protocol = dsn.protocol;\n var requiredComponents = ['protocol', 'publicKey', 'host', 'projectId'];\n requiredComponents.forEach(function (component) {\n if (!dsn[component]) {\n throw new SentryError(\"Invalid Sentry Dsn: \" + component + \" missing\");\n }\n });\n\n if (!projectId.match(/^\\d+$/)) {\n throw new SentryError(\"Invalid Sentry Dsn: Invalid projectId \" + projectId);\n }\n\n if (!isValidProtocol(protocol)) {\n throw new SentryError(\"Invalid Sentry Dsn: Invalid protocol \" + protocol);\n }\n\n if (port && isNaN(parseInt(port, 10))) {\n throw new SentryError(\"Invalid Sentry Dsn: Invalid port \" + port);\n }\n\n return true;\n}\n/** The Sentry Dsn, identifying a Sentry instance and project. */\n\n\nexport function makeDsn(from) {\n var components = typeof from === 'string' ? dsnFromString(from) : dsnFromComponents(from);\n validateDsn(components);\n return components;\n}","import { __read, __spread } from \"tslib\";\nimport { addGlobalEventProcessor, getCurrentHub } from '@sentry/hub';\nimport { addNonEnumerableProperty, logger } from '@sentry/utils';\nimport { IS_DEBUG_BUILD } from './flags';\nexport var installedIntegrations = [];\n/**\n * @private\n */\n\nfunction filterDuplicates(integrations) {\n return integrations.reduce(function (acc, integrations) {\n if (acc.every(function (accIntegration) {\n return integrations.name !== accIntegration.name;\n })) {\n acc.push(integrations);\n }\n\n return acc;\n }, []);\n}\n/** Gets integration to install */\n\n\nexport function getIntegrationsToSetup(options) {\n var defaultIntegrations = options.defaultIntegrations && __spread(options.defaultIntegrations) || [];\n var userIntegrations = options.integrations;\n\n var integrations = __spread(filterDuplicates(defaultIntegrations));\n\n if (Array.isArray(userIntegrations)) {\n // Filter out integrations that are also included in user options\n integrations = __spread(integrations.filter(function (integrations) {\n return userIntegrations.every(function (userIntegration) {\n return userIntegration.name !== integrations.name;\n });\n }), filterDuplicates(userIntegrations));\n } else if (typeof userIntegrations === 'function') {\n integrations = userIntegrations(integrations);\n integrations = Array.isArray(integrations) ? integrations : [integrations];\n } // Make sure that if present, `Debug` integration will always run last\n\n\n var integrationsNames = integrations.map(function (i) {\n return i.name;\n });\n var alwaysLastToRun = 'Debug';\n\n if (integrationsNames.indexOf(alwaysLastToRun) !== -1) {\n integrations.push.apply(integrations, __spread(integrations.splice(integrationsNames.indexOf(alwaysLastToRun), 1)));\n }\n\n return integrations;\n}\n/** Setup given integration */\n\nexport function setupIntegration(integration) {\n if (installedIntegrations.indexOf(integration.name) !== -1) {\n return;\n }\n\n integration.setupOnce(addGlobalEventProcessor, getCurrentHub);\n installedIntegrations.push(integration.name);\n IS_DEBUG_BUILD && logger.log(\"Integration installed: \" + integration.name);\n}\n/**\n * Given a list of integration instances this installs them all. When `withDefaults` is set to `true` then all default\n * integrations are added unless they were already provided before.\n * @param integrations array of integration instances\n * @param withDefault should enable default integrations\n */\n\nexport function setupIntegrations(options) {\n var integrations = {};\n getIntegrationsToSetup(options).forEach(function (integration) {\n integrations[integration.name] = integration;\n setupIntegration(integration);\n }); // set the `initialized` flag so we don't run through the process again unecessarily; use `Object.defineProperty`\n // because by default it creates a property which is nonenumerable, which we want since `initialized` shouldn't be\n // considered a member of the index the way the actual integrations are\n\n addNonEnumerableProperty(integrations, 'initialized', true);\n return integrations;\n}","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nimport { __assign, __read, __spread, __values } from \"tslib\";\n/* eslint-disable max-lines */\n\nimport { Scope } from '@sentry/hub';\nimport { checkOrSetAlreadyCaught, dateTimestampInSeconds, isPlainObject, isPrimitive, isThenable, logger, makeDsn, normalize, rejectedSyncPromise, resolvedSyncPromise, SentryError, SyncPromise, truncate, uuid4 } from '@sentry/utils';\nimport { IS_DEBUG_BUILD } from './flags';\nimport { setupIntegrations } from './integration';\nvar ALREADY_SEEN_ERROR = \"Not capturing exception because it's already been captured.\";\n/**\n * Base implementation for all JavaScript SDK clients.\n *\n * Call the constructor with the corresponding backend constructor and options\n * specific to the client subclass. To access these options later, use\n * {@link Client.getOptions}. Also, the Backend instance is available via\n * {@link Client.getBackend}.\n *\n * If a Dsn is specified in the options, it will be parsed and stored. Use\n * {@link Client.getDsn} to retrieve the Dsn at any moment. In case the Dsn is\n * invalid, the constructor will throw a {@link SentryException}. Note that\n * without a valid Dsn, the SDK will not send any events to Sentry.\n *\n * Before sending an event via the backend, it is passed through\n * {@link BaseClient._prepareEvent} to add SDK information and scope data\n * (breadcrumbs and context). To add more custom information, override this\n * method and extend the resulting prepared event.\n *\n * To issue automatically created events (e.g. via instrumentation), use\n * {@link Client.captureEvent}. It will prepare the event and pass it through\n * the callback lifecycle. To issue auto-breadcrumbs, use\n * {@link Client.addBreadcrumb}.\n *\n * @example\n * class NodeClient extends BaseClient {\n * public constructor(options: NodeOptions) {\n * super(NodeBackend, options);\n * }\n *\n * // ...\n * }\n */\n\nvar BaseClient =\n/** @class */\nfunction () {\n /**\n * Initializes this client instance.\n *\n * @param backendClass A constructor function to create the backend.\n * @param options Options for the client.\n */\n function BaseClient(backendClass, options) {\n /** Array of used integrations. */\n this._integrations = {};\n /** Number of calls being processed */\n\n this._numProcessing = 0;\n this._backend = new backendClass(options);\n this._options = options;\n\n if (options.dsn) {\n this._dsn = makeDsn(options.dsn);\n }\n }\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\n\n\n BaseClient.prototype.captureException = function (exception, hint, scope) {\n var _this = this; // ensure we haven't captured this very object before\n\n\n if (checkOrSetAlreadyCaught(exception)) {\n IS_DEBUG_BUILD && logger.log(ALREADY_SEEN_ERROR);\n return;\n }\n\n var eventId = hint && hint.event_id;\n\n this._process(this._getBackend().eventFromException(exception, hint).then(function (event) {\n return _this._captureEvent(event, hint, scope);\n }).then(function (result) {\n eventId = result;\n }));\n\n return eventId;\n };\n /**\n * @inheritDoc\n */\n\n\n BaseClient.prototype.captureMessage = function (message, level, hint, scope) {\n var _this = this;\n\n var eventId = hint && hint.event_id;\n var promisedEvent = isPrimitive(message) ? this._getBackend().eventFromMessage(String(message), level, hint) : this._getBackend().eventFromException(message, hint);\n\n this._process(promisedEvent.then(function (event) {\n return _this._captureEvent(event, hint, scope);\n }).then(function (result) {\n eventId = result;\n }));\n\n return eventId;\n };\n /**\n * @inheritDoc\n */\n\n\n BaseClient.prototype.captureEvent = function (event, hint, scope) {\n // ensure we haven't captured this very object before\n if (hint && hint.originalException && checkOrSetAlreadyCaught(hint.originalException)) {\n IS_DEBUG_BUILD && logger.log(ALREADY_SEEN_ERROR);\n return;\n }\n\n var eventId = hint && hint.event_id;\n\n this._process(this._captureEvent(event, hint, scope).then(function (result) {\n eventId = result;\n }));\n\n return eventId;\n };\n /**\n * @inheritDoc\n */\n\n\n BaseClient.prototype.captureSession = function (session) {\n if (!this._isEnabled()) {\n IS_DEBUG_BUILD && logger.warn('SDK not enabled, will not capture session.');\n return;\n }\n\n if (!(typeof session.release === 'string')) {\n IS_DEBUG_BUILD && logger.warn('Discarded session because of missing or non-string release');\n } else {\n this._sendSession(session); // After sending, we set init false to indicate it's not the first occurrence\n\n\n session.update({\n init: false\n });\n }\n };\n /**\n * @inheritDoc\n */\n\n\n BaseClient.prototype.getDsn = function () {\n return this._dsn;\n };\n /**\n * @inheritDoc\n */\n\n\n BaseClient.prototype.getOptions = function () {\n return this._options;\n };\n /**\n * @inheritDoc\n */\n\n\n BaseClient.prototype.getTransport = function () {\n return this._getBackend().getTransport();\n };\n /**\n * @inheritDoc\n */\n\n\n BaseClient.prototype.flush = function (timeout) {\n var _this = this;\n\n return this._isClientDoneProcessing(timeout).then(function (clientFinished) {\n return _this.getTransport().close(timeout).then(function (transportFlushed) {\n return clientFinished && transportFlushed;\n });\n });\n };\n /**\n * @inheritDoc\n */\n\n\n BaseClient.prototype.close = function (timeout) {\n var _this = this;\n\n return this.flush(timeout).then(function (result) {\n _this.getOptions().enabled = false;\n return result;\n });\n };\n /**\n * Sets up the integrations\n */\n\n\n BaseClient.prototype.setupIntegrations = function () {\n if (this._isEnabled() && !this._integrations.initialized) {\n this._integrations = setupIntegrations(this._options);\n }\n };\n /**\n * @inheritDoc\n */\n\n\n BaseClient.prototype.getIntegration = function (integration) {\n try {\n return this._integrations[integration.id] || null;\n } catch (_oO) {\n IS_DEBUG_BUILD && logger.warn(\"Cannot retrieve integration \" + integration.id + \" from the current Client\");\n return null;\n }\n };\n /** Updates existing session based on the provided event */\n\n\n BaseClient.prototype._updateSessionFromEvent = function (session, event) {\n var e_1, _a;\n\n var crashed = false;\n var errored = false;\n var exceptions = event.exception && event.exception.values;\n\n if (exceptions) {\n errored = true;\n\n try {\n for (var exceptions_1 = __values(exceptions), exceptions_1_1 = exceptions_1.next(); !exceptions_1_1.done; exceptions_1_1 = exceptions_1.next()) {\n var ex = exceptions_1_1.value;\n var mechanism = ex.mechanism;\n\n if (mechanism && mechanism.handled === false) {\n crashed = true;\n break;\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (exceptions_1_1 && !exceptions_1_1.done && (_a = exceptions_1.return)) _a.call(exceptions_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n } // A session is updated and that session update is sent in only one of the two following scenarios:\n // 1. Session with non terminal status and 0 errors + an error occurred -> Will set error count to 1 and send update\n // 2. Session with non terminal status and 1 error + a crash occurred -> Will set status crashed and send update\n\n\n var sessionNonTerminal = session.status === 'ok';\n var shouldUpdateAndSend = sessionNonTerminal && session.errors === 0 || sessionNonTerminal && crashed;\n\n if (shouldUpdateAndSend) {\n session.update(__assign(__assign({}, crashed && {\n status: 'crashed'\n }), {\n errors: session.errors || Number(errored || crashed)\n }));\n this.captureSession(session);\n }\n };\n /** Deliver captured session to Sentry */\n\n\n BaseClient.prototype._sendSession = function (session) {\n this._getBackend().sendSession(session);\n };\n /**\n * Determine if the client is finished processing. Returns a promise because it will wait `timeout` ms before saying\n * \"no\" (resolving to `false`) in order to give the client a chance to potentially finish first.\n *\n * @param timeout The time, in ms, after which to resolve to `false` if the client is still busy. Passing `0` (or not\n * passing anything) will make the promise wait as long as it takes for processing to finish before resolving to\n * `true`.\n * @returns A promise which will resolve to `true` if processing is already done or finishes before the timeout, and\n * `false` otherwise\n */\n\n\n BaseClient.prototype._isClientDoneProcessing = function (timeout) {\n var _this = this;\n\n return new SyncPromise(function (resolve) {\n var ticked = 0;\n var tick = 1;\n var interval = setInterval(function () {\n if (_this._numProcessing == 0) {\n clearInterval(interval);\n resolve(true);\n } else {\n ticked += tick;\n\n if (timeout && ticked >= timeout) {\n clearInterval(interval);\n resolve(false);\n }\n }\n }, tick);\n });\n };\n /** Returns the current backend. */\n\n\n BaseClient.prototype._getBackend = function () {\n return this._backend;\n };\n /** Determines whether this SDK is enabled and a valid Dsn is present. */\n\n\n BaseClient.prototype._isEnabled = function () {\n return this.getOptions().enabled !== false && this._dsn !== undefined;\n };\n /**\n * Adds common information to events.\n *\n * The information includes release and environment from `options`,\n * breadcrumbs and context (extra, tags and user) from the scope.\n *\n * Information that is already present in the event is never overwritten. For\n * nested objects, such as the context, keys are merged.\n *\n * @param event The original event.\n * @param hint May contain additional information about the original exception.\n * @param scope A scope containing event metadata.\n * @returns A new event with more information.\n */\n\n\n BaseClient.prototype._prepareEvent = function (event, scope, hint) {\n var _this = this;\n\n var _a = this.getOptions(),\n _b = _a.normalizeDepth,\n normalizeDepth = _b === void 0 ? 3 : _b,\n _c = _a.normalizeMaxBreadth,\n normalizeMaxBreadth = _c === void 0 ? 1000 : _c;\n\n var prepared = __assign(__assign({}, event), {\n event_id: event.event_id || (hint && hint.event_id ? hint.event_id : uuid4()),\n timestamp: event.timestamp || dateTimestampInSeconds()\n });\n\n this._applyClientOptions(prepared);\n\n this._applyIntegrationsMetadata(prepared); // If we have scope given to us, use it as the base for further modifications.\n // This allows us to prevent unnecessary copying of data if `captureContext` is not provided.\n\n\n var finalScope = scope;\n\n if (hint && hint.captureContext) {\n finalScope = Scope.clone(finalScope).update(hint.captureContext);\n } // We prepare the result here with a resolved Event.\n\n\n var result = resolvedSyncPromise(prepared); // This should be the last thing called, since we want that\n // {@link Hub.addEventProcessor} gets the finished prepared event.\n\n if (finalScope) {\n // In case we have a hub we reassign it.\n result = finalScope.applyToEvent(prepared, hint);\n }\n\n return result.then(function (evt) {\n if (evt) {\n // TODO this is more of the hack trying to solve https://github.com/getsentry/sentry-javascript/issues/2809\n // it is only attached as extra data to the event if the event somehow skips being normalized\n evt.sdkProcessingMetadata = __assign(__assign({}, evt.sdkProcessingMetadata), {\n normalizeDepth: normalize(normalizeDepth) + \" (\" + _typeof(normalizeDepth) + \")\"\n });\n }\n\n if (typeof normalizeDepth === 'number' && normalizeDepth > 0) {\n return _this._normalizeEvent(evt, normalizeDepth, normalizeMaxBreadth);\n }\n\n return evt;\n });\n };\n /**\n * Applies `normalize` function on necessary `Event` attributes to make them safe for serialization.\n * Normalized keys:\n * - `breadcrumbs.data`\n * - `user`\n * - `contexts`\n * - `extra`\n * @param event Event\n * @returns Normalized event\n */\n\n\n BaseClient.prototype._normalizeEvent = function (event, depth, maxBreadth) {\n if (!event) {\n return null;\n }\n\n var normalized = __assign(__assign(__assign(__assign(__assign({}, event), event.breadcrumbs && {\n breadcrumbs: event.breadcrumbs.map(function (b) {\n return __assign(__assign({}, b), b.data && {\n data: normalize(b.data, depth, maxBreadth)\n });\n })\n }), event.user && {\n user: normalize(event.user, depth, maxBreadth)\n }), event.contexts && {\n contexts: normalize(event.contexts, depth, maxBreadth)\n }), event.extra && {\n extra: normalize(event.extra, depth, maxBreadth)\n }); // event.contexts.trace stores information about a Transaction. Similarly,\n // event.spans[] stores information about child Spans. Given that a\n // Transaction is conceptually a Span, normalization should apply to both\n // Transactions and Spans consistently.\n // For now the decision is to skip normalization of Transactions and Spans,\n // so this block overwrites the normalized event to add back the original\n // Transaction information prior to normalization.\n\n\n if (event.contexts && event.contexts.trace) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n normalized.contexts.trace = event.contexts.trace;\n }\n\n normalized.sdkProcessingMetadata = __assign(__assign({}, normalized.sdkProcessingMetadata), {\n baseClientNormalized: true\n });\n return normalized;\n };\n /**\n * Enhances event using the client configuration.\n * It takes care of all \"static\" values like environment, release and `dist`,\n * as well as truncating overly long values.\n * @param event event instance to be enhanced\n */\n\n\n BaseClient.prototype._applyClientOptions = function (event) {\n var options = this.getOptions();\n var environment = options.environment,\n release = options.release,\n dist = options.dist,\n _a = options.maxValueLength,\n maxValueLength = _a === void 0 ? 250 : _a;\n\n if (!('environment' in event)) {\n event.environment = 'environment' in options ? environment : 'production';\n }\n\n if (event.release === undefined && release !== undefined) {\n event.release = release;\n }\n\n if (event.dist === undefined && dist !== undefined) {\n event.dist = dist;\n }\n\n if (event.message) {\n event.message = truncate(event.message, maxValueLength);\n }\n\n var exception = event.exception && event.exception.values && event.exception.values[0];\n\n if (exception && exception.value) {\n exception.value = truncate(exception.value, maxValueLength);\n }\n\n var request = event.request;\n\n if (request && request.url) {\n request.url = truncate(request.url, maxValueLength);\n }\n };\n /**\n * This function adds all used integrations to the SDK info in the event.\n * @param event The event that will be filled with all integrations.\n */\n\n\n BaseClient.prototype._applyIntegrationsMetadata = function (event) {\n var integrationsArray = Object.keys(this._integrations);\n\n if (integrationsArray.length > 0) {\n event.sdk = event.sdk || {};\n event.sdk.integrations = __spread(event.sdk.integrations || [], integrationsArray);\n }\n };\n /**\n * Tells the backend to send this event\n * @param event The Sentry event to send\n */\n\n\n BaseClient.prototype._sendEvent = function (event) {\n this._getBackend().sendEvent(event);\n };\n /**\n * Processes the event and logs an error in case of rejection\n * @param event\n * @param hint\n * @param scope\n */\n\n\n BaseClient.prototype._captureEvent = function (event, hint, scope) {\n return this._processEvent(event, hint, scope).then(function (finalEvent) {\n return finalEvent.event_id;\n }, function (reason) {\n IS_DEBUG_BUILD && logger.error(reason);\n return undefined;\n });\n };\n /**\n * Processes an event (either error or message) and sends it to Sentry.\n *\n * This also adds breadcrumbs and context information to the event. However,\n * platform specific meta data (such as the User's IP address) must be added\n * by the SDK implementor.\n *\n *\n * @param event The event to send to Sentry.\n * @param hint May contain additional information about the original exception.\n * @param scope A scope containing event metadata.\n * @returns A SyncPromise that resolves with the event or rejects in case event was/will not be send.\n */\n\n\n BaseClient.prototype._processEvent = function (event, hint, scope) {\n var _this = this; // eslint-disable-next-line @typescript-eslint/unbound-method\n\n\n var _a = this.getOptions(),\n beforeSend = _a.beforeSend,\n sampleRate = _a.sampleRate;\n\n var transport = this.getTransport();\n\n function recordLostEvent(outcome, category) {\n if (transport.recordLostEvent) {\n transport.recordLostEvent(outcome, category);\n }\n }\n\n if (!this._isEnabled()) {\n return rejectedSyncPromise(new SentryError('SDK not enabled, will not capture event.'));\n }\n\n var isTransaction = event.type === 'transaction'; // 1.0 === 100% events are sent\n // 0.0 === 0% events are sent\n // Sampling for transaction happens somewhere else\n\n if (!isTransaction && typeof sampleRate === 'number' && Math.random() > sampleRate) {\n recordLostEvent('sample_rate', 'event');\n return rejectedSyncPromise(new SentryError(\"Discarding event because it's not included in the random sample (sampling rate = \" + sampleRate + \")\"));\n }\n\n return this._prepareEvent(event, scope, hint).then(function (prepared) {\n if (prepared === null) {\n recordLostEvent('event_processor', event.type || 'event');\n throw new SentryError('An event processor returned null, will not send event.');\n }\n\n var isInternalException = hint && hint.data && hint.data.__sentry__ === true;\n\n if (isInternalException || isTransaction || !beforeSend) {\n return prepared;\n }\n\n var beforeSendResult = beforeSend(prepared, hint);\n return _ensureBeforeSendRv(beforeSendResult);\n }).then(function (processedEvent) {\n if (processedEvent === null) {\n recordLostEvent('before_send', event.type || 'event');\n throw new SentryError('`beforeSend` returned `null`, will not send event.');\n }\n\n var session = scope && scope.getSession && scope.getSession();\n\n if (!isTransaction && session) {\n _this._updateSessionFromEvent(session, processedEvent);\n }\n\n _this._sendEvent(processedEvent);\n\n return processedEvent;\n }).then(null, function (reason) {\n if (reason instanceof SentryError) {\n throw reason;\n }\n\n _this.captureException(reason, {\n data: {\n __sentry__: true\n },\n originalException: reason\n });\n\n throw new SentryError(\"Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\\nReason: \" + reason);\n });\n };\n /**\n * Occupies the client with processing and event\n */\n\n\n BaseClient.prototype._process = function (promise) {\n var _this = this;\n\n this._numProcessing += 1;\n void promise.then(function (value) {\n _this._numProcessing -= 1;\n return value;\n }, function (reason) {\n _this._numProcessing -= 1;\n return reason;\n });\n };\n\n return BaseClient;\n}();\n\nexport { BaseClient };\n/**\n * Verifies that return value of configured `beforeSend` is of expected type.\n */\n\nfunction _ensureBeforeSendRv(rv) {\n var nullErr = '`beforeSend` method has to return `null` or a valid event.';\n\n if (isThenable(rv)) {\n return rv.then(function (event) {\n if (!(isPlainObject(event) || event === null)) {\n throw new SentryError(nullErr);\n }\n\n return event;\n }, function (e) {\n throw new SentryError(\"beforeSend rejected with \" + e);\n });\n } else if (!(isPlainObject(rv) || rv === null)) {\n throw new SentryError(nullErr);\n }\n\n return rv;\n}","import { dsnToString, makeDsn, urlEncode } from '@sentry/utils';\nvar SENTRY_API_VERSION = '7';\n/**\n * Helper class to provide urls, headers and metadata that can be used to form\n * different types of requests to Sentry endpoints.\n * Supports both envelopes and regular event requests.\n *\n * @deprecated Please use APIDetails\n **/\n\nvar API =\n/** @class */\nfunction () {\n /** Create a new instance of API */\n function API(dsn, metadata, tunnel) {\n if (metadata === void 0) {\n metadata = {};\n }\n\n this.dsn = dsn;\n this._dsnObject = makeDsn(dsn);\n this.metadata = metadata;\n this._tunnel = tunnel;\n }\n /** Returns the Dsn object. */\n\n\n API.prototype.getDsn = function () {\n return this._dsnObject;\n };\n /** Does this transport force envelopes? */\n\n\n API.prototype.forceEnvelope = function () {\n return !!this._tunnel;\n };\n /** Returns the prefix to construct Sentry ingestion API endpoints. */\n\n\n API.prototype.getBaseApiEndpoint = function () {\n return getBaseApiEndpoint(this._dsnObject);\n };\n /** Returns the store endpoint URL. */\n\n\n API.prototype.getStoreEndpoint = function () {\n return getStoreEndpoint(this._dsnObject);\n };\n /**\n * Returns the store endpoint URL with auth in the query string.\n *\n * Sending auth as part of the query string and not as custom HTTP headers avoids CORS preflight requests.\n */\n\n\n API.prototype.getStoreEndpointWithUrlEncodedAuth = function () {\n return getStoreEndpointWithUrlEncodedAuth(this._dsnObject);\n };\n /**\n * Returns the envelope endpoint URL with auth in the query string.\n *\n * Sending auth as part of the query string and not as custom HTTP headers avoids CORS preflight requests.\n */\n\n\n API.prototype.getEnvelopeEndpointWithUrlEncodedAuth = function () {\n return getEnvelopeEndpointWithUrlEncodedAuth(this._dsnObject, this._tunnel);\n };\n\n return API;\n}();\n\nexport { API };\n/** Initializes API Details */\n\nexport function initAPIDetails(dsn, metadata, tunnel) {\n return {\n initDsn: dsn,\n metadata: metadata || {},\n dsn: makeDsn(dsn),\n tunnel: tunnel\n };\n}\n/** Returns the prefix to construct Sentry ingestion API endpoints. */\n\nfunction getBaseApiEndpoint(dsn) {\n var protocol = dsn.protocol ? dsn.protocol + \":\" : '';\n var port = dsn.port ? \":\" + dsn.port : '';\n return protocol + \"//\" + dsn.host + port + (dsn.path ? \"/\" + dsn.path : '') + \"/api/\";\n}\n/** Returns the ingest API endpoint for target. */\n\n\nfunction _getIngestEndpoint(dsn, target) {\n return \"\" + getBaseApiEndpoint(dsn) + dsn.projectId + \"/\" + target + \"/\";\n}\n/** Returns a URL-encoded string with auth config suitable for a query string. */\n\n\nfunction _encodedAuth(dsn) {\n return urlEncode({\n // We send only the minimum set of required information. See\n // https://github.com/getsentry/sentry-javascript/issues/2572.\n sentry_key: dsn.publicKey,\n sentry_version: SENTRY_API_VERSION\n });\n}\n/** Returns the store endpoint URL. */\n\n\nfunction getStoreEndpoint(dsn) {\n return _getIngestEndpoint(dsn, 'store');\n}\n/**\n * Returns the store endpoint URL with auth in the query string.\n *\n * Sending auth as part of the query string and not as custom HTTP headers avoids CORS preflight requests.\n */\n\n\nexport function getStoreEndpointWithUrlEncodedAuth(dsn) {\n return getStoreEndpoint(dsn) + \"?\" + _encodedAuth(dsn);\n}\n/** Returns the envelope endpoint URL. */\n\nfunction _getEnvelopeEndpoint(dsn) {\n return _getIngestEndpoint(dsn, 'envelope');\n}\n/**\n * Returns the envelope endpoint URL with auth in the query string.\n *\n * Sending auth as part of the query string and not as custom HTTP headers avoids CORS preflight requests.\n */\n\n\nexport function getEnvelopeEndpointWithUrlEncodedAuth(dsn, tunnel) {\n return tunnel ? tunnel : _getEnvelopeEndpoint(dsn) + \"?\" + _encodedAuth(dsn);\n}\n/**\n * Returns an object that can be used in request headers.\n * This is needed for node and the old /store endpoint in sentry\n */\n\nexport function getRequestHeaders(dsn, clientName, clientVersion) {\n // CHANGE THIS to use metadata but keep clientName and clientVersion compatible\n var header = [\"Sentry sentry_version=\" + SENTRY_API_VERSION];\n header.push(\"sentry_client=\" + clientName + \"/\" + clientVersion);\n header.push(\"sentry_key=\" + dsn.publicKey);\n\n if (dsn.pass) {\n header.push(\"sentry_secret=\" + dsn.pass);\n }\n\n return {\n 'Content-Type': 'application/json',\n 'X-Sentry-Auth': header.join(', ')\n };\n}\n/** Returns the url to the report dialog endpoint. */\n\nexport function getReportDialogEndpoint(dsnLike, dialogOptions) {\n var dsn = makeDsn(dsnLike);\n var endpoint = getBaseApiEndpoint(dsn) + \"embed/error-page/\";\n var encodedOptions = \"dsn=\" + dsnToString(dsn);\n\n for (var key in dialogOptions) {\n if (key === 'dsn') {\n continue;\n }\n\n if (key === 'user') {\n if (!dialogOptions.user) {\n continue;\n }\n\n if (dialogOptions.user.name) {\n encodedOptions += \"&name=\" + encodeURIComponent(dialogOptions.user.name);\n }\n\n if (dialogOptions.user.email) {\n encodedOptions += \"&email=\" + encodeURIComponent(dialogOptions.user.email);\n }\n } else {\n encodedOptions += \"&\" + encodeURIComponent(key) + \"=\" + encodeURIComponent(dialogOptions[key]);\n }\n }\n\n return endpoint + \"?\" + encodedOptions;\n}","import { __read, __spread } from \"tslib\";\nimport { isPrimitive } from './is';\n/**\n * Creates an envelope.\n * Make sure to always explicitly provide the generic to this function\n * so that the envelope types resolve correctly.\n */\n\nexport function createEnvelope(headers, items) {\n if (items === void 0) {\n items = [];\n }\n\n return [headers, items];\n}\n/**\n * Add an item to an envelope.\n * Make sure to always explicitly provide the generic to this function\n * so that the envelope types resolve correctly.\n */\n\nexport function addItemToEnvelope(envelope, newItem) {\n var _a = __read(envelope, 2),\n headers = _a[0],\n items = _a[1];\n\n return [headers, __spread(items, [newItem])];\n}\n/**\n * Get the type of the envelope. Grabs the type from the first envelope item.\n */\n\nexport function getEnvelopeType(envelope) {\n var _a = __read(envelope, 2),\n _b = __read(_a[1], 1),\n _c = __read(_b[0], 1),\n firstItemHeader = _c[0];\n\n return firstItemHeader.type;\n}\n/**\n * Serializes an envelope into a string.\n */\n\nexport function serializeEnvelope(envelope) {\n var _a = __read(envelope, 2),\n headers = _a[0],\n items = _a[1];\n\n var serializedHeaders = JSON.stringify(headers); // Have to cast items to any here since Envelope is a union type\n // Fixed in Typescript 4.2\n // TODO: Remove any[] cast when we upgrade to TS 4.2\n // https://github.com/microsoft/TypeScript/issues/36390\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n\n return items.reduce(function (acc, item) {\n var _a = __read(item, 2),\n itemHeaders = _a[0],\n payload = _a[1]; // We do not serialize payloads that are primitives\n\n\n var serializedPayload = isPrimitive(payload) ? String(payload) : JSON.stringify(payload);\n return acc + \"\\n\" + JSON.stringify(itemHeaders) + \"\\n\" + serializedPayload;\n }, serializedHeaders);\n}","import { __assign, __read, __spread } from \"tslib\";\nimport { createEnvelope, dsnToString, normalize, serializeEnvelope } from '@sentry/utils';\nimport { getEnvelopeEndpointWithUrlEncodedAuth, getStoreEndpointWithUrlEncodedAuth } from './api';\n/** Extract sdk info from from the API metadata */\n\nfunction getSdkMetadataForEnvelopeHeader(api) {\n if (!api.metadata || !api.metadata.sdk) {\n return;\n }\n\n var _a = api.metadata.sdk,\n name = _a.name,\n version = _a.version;\n return {\n name: name,\n version: version\n };\n}\n/**\n * Apply SdkInfo (name, version, packages, integrations) to the corresponding event key.\n * Merge with existing data if any.\n **/\n\n\nfunction enhanceEventWithSdkInfo(event, sdkInfo) {\n if (!sdkInfo) {\n return event;\n }\n\n event.sdk = event.sdk || {};\n event.sdk.name = event.sdk.name || sdkInfo.name;\n event.sdk.version = event.sdk.version || sdkInfo.version;\n event.sdk.integrations = __spread(event.sdk.integrations || [], sdkInfo.integrations || []);\n event.sdk.packages = __spread(event.sdk.packages || [], sdkInfo.packages || []);\n return event;\n}\n/** Creates an envelope from a Session */\n\n\nexport function createSessionEnvelope(session, api) {\n var sdkInfo = getSdkMetadataForEnvelopeHeader(api);\n\n var envelopeHeaders = __assign(__assign({\n sent_at: new Date().toISOString()\n }, sdkInfo && {\n sdk: sdkInfo\n }), !!api.tunnel && {\n dsn: dsnToString(api.dsn)\n }); // I know this is hacky but we don't want to add `sessions` to request type since it's never rate limited\n\n\n var type = 'aggregates' in session ? 'sessions' : 'session'; // TODO (v7) Have to cast type because envelope items do not accept a `SentryRequestType`\n\n var envelopeItem = [{\n type: type\n }, session];\n var envelope = createEnvelope(envelopeHeaders, [envelopeItem]);\n return [envelope, type];\n}\n/** Creates a SentryRequest from a Session. */\n\nexport function sessionToSentryRequest(session, api) {\n var _a = __read(createSessionEnvelope(session, api), 2),\n envelope = _a[0],\n type = _a[1];\n\n return {\n body: serializeEnvelope(envelope),\n type: type,\n url: getEnvelopeEndpointWithUrlEncodedAuth(api.dsn, api.tunnel)\n };\n}\n/**\n * Create an Envelope from an event. Note that this is duplicated from below,\n * but on purpose as this will be refactored in v7.\n */\n\nexport function createEventEnvelope(event, api) {\n var sdkInfo = getSdkMetadataForEnvelopeHeader(api);\n var eventType = event.type || 'event';\n var transactionSampling = (event.sdkProcessingMetadata || {}).transactionSampling;\n\n var _a = transactionSampling || {},\n samplingMethod = _a.method,\n sampleRate = _a.rate; // TODO: Below is a temporary hack in order to debug a serialization error - see\n // https://github.com/getsentry/sentry-javascript/issues/2809,\n // https://github.com/getsentry/sentry-javascript/pull/4425, and\n // https://github.com/getsentry/sentry-javascript/pull/4574.\n //\n // TL; DR: even though we normalize all events (which should prevent this), something is causing `JSON.stringify` to\n // throw a circular reference error.\n //\n // When it's time to remove it:\n // 1. Delete everything between here and where the request object `req` is created, EXCEPT the line deleting\n // `sdkProcessingMetadata`\n // 2. Restore the original version of the request body, which is commented out\n // 3. Search for either of the PR URLs above and pull out the companion hacks in the browser playwright tests and the\n // baseClient tests in this package\n\n\n enhanceEventWithSdkInfo(event, api.metadata.sdk);\n event.tags = event.tags || {};\n event.extra = event.extra || {}; // In theory, all events should be marked as having gone through normalization and so\n // we should never set this tag/extra data\n\n if (!(event.sdkProcessingMetadata && event.sdkProcessingMetadata.baseClientNormalized)) {\n event.tags.skippedNormalization = true;\n event.extra.normalizeDepth = event.sdkProcessingMetadata ? event.sdkProcessingMetadata.normalizeDepth : 'unset';\n } // prevent this data from being sent to sentry\n // TODO: This is NOT part of the hack - DO NOT DELETE\n\n\n delete event.sdkProcessingMetadata;\n\n var envelopeHeaders = __assign(__assign({\n event_id: event.event_id,\n sent_at: new Date().toISOString()\n }, sdkInfo && {\n sdk: sdkInfo\n }), !!api.tunnel && {\n dsn: dsnToString(api.dsn)\n });\n\n var eventItem = [{\n type: eventType,\n sample_rates: [{\n id: samplingMethod,\n rate: sampleRate\n }]\n }, event];\n return createEnvelope(envelopeHeaders, [eventItem]);\n}\n/** Creates a SentryRequest from an event. */\n\nexport function eventToSentryRequest(event, api) {\n var sdkInfo = getSdkMetadataForEnvelopeHeader(api);\n var eventType = event.type || 'event';\n var useEnvelope = eventType === 'transaction' || !!api.tunnel;\n var transactionSampling = (event.sdkProcessingMetadata || {}).transactionSampling;\n\n var _a = transactionSampling || {},\n samplingMethod = _a.method,\n sampleRate = _a.rate; // TODO: Below is a temporary hack in order to debug a serialization error - see\n // https://github.com/getsentry/sentry-javascript/issues/2809,\n // https://github.com/getsentry/sentry-javascript/pull/4425, and\n // https://github.com/getsentry/sentry-javascript/pull/4574.\n //\n // TL; DR: even though we normalize all events (which should prevent this), something is causing `JSON.stringify` to\n // throw a circular reference error.\n //\n // When it's time to remove it:\n // 1. Delete everything between here and where the request object `req` is created, EXCEPT the line deleting\n // `sdkProcessingMetadata`\n // 2. Restore the original version of the request body, which is commented out\n // 3. Search for either of the PR URLs above and pull out the companion hacks in the browser playwright tests and the\n // baseClient tests in this package\n\n\n enhanceEventWithSdkInfo(event, api.metadata.sdk);\n event.tags = event.tags || {};\n event.extra = event.extra || {}; // In theory, all events should be marked as having gone through normalization and so\n // we should never set this tag/extra data\n\n if (!(event.sdkProcessingMetadata && event.sdkProcessingMetadata.baseClientNormalized)) {\n event.tags.skippedNormalization = true;\n event.extra.normalizeDepth = event.sdkProcessingMetadata ? event.sdkProcessingMetadata.normalizeDepth : 'unset';\n } // prevent this data from being sent to sentry\n // TODO: This is NOT part of the hack - DO NOT DELETE\n\n\n delete event.sdkProcessingMetadata;\n var body;\n\n try {\n // 99.9% of events should get through just fine - no change in behavior for them\n body = JSON.stringify(event);\n } catch (err) {\n // Record data about the error without replacing original event data, then force renormalization\n event.tags.JSONStringifyError = true;\n event.extra.JSONStringifyError = err;\n\n try {\n body = JSON.stringify(normalize(event));\n } catch (newErr) {\n // At this point even renormalization hasn't worked, meaning something about the event data has gone very wrong.\n // Time to cut our losses and record only the new error. With luck, even in the problematic cases we're trying to\n // debug with this hack, we won't ever land here.\n var innerErr = newErr;\n body = JSON.stringify({\n message: 'JSON.stringify error after renormalization',\n // setting `extra: { innerErr }` here for some reason results in an empty object, so unpack manually\n extra: {\n message: innerErr.message,\n stack: innerErr.stack\n }\n });\n }\n }\n\n var req = {\n // this is the relevant line of code before the hack was added, to make it easy to undo said hack once we've solved\n // the mystery\n // body: JSON.stringify(sdkInfo ? enhanceEventWithSdkInfo(event, api.metadata.sdk) : event),\n body: body,\n type: eventType,\n url: useEnvelope ? getEnvelopeEndpointWithUrlEncodedAuth(api.dsn, api.tunnel) : getStoreEndpointWithUrlEncodedAuth(api.dsn)\n }; // https://develop.sentry.dev/sdk/envelopes/\n // Since we don't need to manipulate envelopes nor store them, there is no\n // exported concept of an Envelope with operations including serialization and\n // deserialization. Instead, we only implement a minimal subset of the spec to\n // serialize events inline here.\n\n if (useEnvelope) {\n var envelopeHeaders = __assign(__assign({\n event_id: event.event_id,\n sent_at: new Date().toISOString()\n }, sdkInfo && {\n sdk: sdkInfo\n }), !!api.tunnel && {\n dsn: dsnToString(api.dsn)\n });\n\n var eventItem = [{\n type: eventType,\n sample_rates: [{\n id: samplingMethod,\n rate: sampleRate\n }]\n }, req.body];\n var envelope = createEnvelope(envelopeHeaders, [eventItem]);\n req.body = serializeEnvelope(envelope);\n }\n\n return req;\n}","import { resolvedSyncPromise } from '@sentry/utils';\n/** Noop transport */\n\nvar NoopTransport =\n/** @class */\nfunction () {\n function NoopTransport() {}\n /**\n * @inheritDoc\n */\n\n\n NoopTransport.prototype.sendEvent = function (_) {\n return resolvedSyncPromise({\n reason: 'NoopTransport: Event has been skipped because no Dsn is configured.',\n status: 'skipped'\n });\n };\n /**\n * @inheritDoc\n */\n\n\n NoopTransport.prototype.close = function (_) {\n return resolvedSyncPromise(true);\n };\n\n return NoopTransport;\n}();\n\nexport { NoopTransport };","/**\n * TODO(v7): Remove this enum and replace with SeverityLevel\n */\nexport var Severity;\n\n(function (Severity) {\n /** JSDoc */\n Severity[\"Fatal\"] = \"fatal\";\n /** JSDoc */\n\n Severity[\"Error\"] = \"error\";\n /** JSDoc */\n\n Severity[\"Warning\"] = \"warning\";\n /** JSDoc */\n\n Severity[\"Log\"] = \"log\";\n /** JSDoc */\n\n Severity[\"Info\"] = \"info\";\n /** JSDoc */\n\n Severity[\"Debug\"] = \"debug\";\n /** JSDoc */\n\n Severity[\"Critical\"] = \"critical\";\n})(Severity || (Severity = {})); // TODO: in v7, these can disappear, because they now also exist in `@sentry/utils`. (Having them there rather than here\n// is nice because then it enforces the idea that only types are exported from `@sentry/types`.)\n\n\nexport var SeverityLevels = ['fatal', 'error', 'warning', 'log', 'info', 'debug', 'critical'];","import { __read } from \"tslib\";\nimport { logger, SentryError } from '@sentry/utils';\nimport { initAPIDetails } from './api';\nimport { IS_DEBUG_BUILD } from './flags';\nimport { createEventEnvelope, createSessionEnvelope } from './request';\nimport { NoopTransport } from './transports/noop';\n/**\n * This is the base implemention of a Backend.\n * @hidden\n */\n\nvar BaseBackend =\n/** @class */\nfunction () {\n /** Creates a new backend instance. */\n function BaseBackend(options) {\n this._options = options;\n\n if (!this._options.dsn) {\n IS_DEBUG_BUILD && logger.warn('No DSN provided, backend will not do anything.');\n }\n\n this._transport = this._setupTransport();\n }\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\n\n\n BaseBackend.prototype.eventFromException = function (_exception, _hint) {\n throw new SentryError('Backend has to implement `eventFromException` method');\n };\n /**\n * @inheritDoc\n */\n\n\n BaseBackend.prototype.eventFromMessage = function (_message, _level, _hint) {\n throw new SentryError('Backend has to implement `eventFromMessage` method');\n };\n /**\n * @inheritDoc\n */\n\n\n BaseBackend.prototype.sendEvent = function (event) {\n // TODO(v7): Remove the if-else\n if (this._newTransport && this._options.dsn && this._options._experiments && this._options._experiments.newTransport) {\n var api = initAPIDetails(this._options.dsn, this._options._metadata, this._options.tunnel);\n var env = createEventEnvelope(event, api);\n void this._newTransport.send(env).then(null, function (reason) {\n IS_DEBUG_BUILD && logger.error('Error while sending event:', reason);\n });\n } else {\n void this._transport.sendEvent(event).then(null, function (reason) {\n IS_DEBUG_BUILD && logger.error('Error while sending event:', reason);\n });\n }\n };\n /**\n * @inheritDoc\n */\n\n\n BaseBackend.prototype.sendSession = function (session) {\n if (!this._transport.sendSession) {\n IS_DEBUG_BUILD && logger.warn(\"Dropping session because custom transport doesn't implement sendSession\");\n return;\n } // TODO(v7): Remove the if-else\n\n\n if (this._newTransport && this._options.dsn && this._options._experiments && this._options._experiments.newTransport) {\n var api = initAPIDetails(this._options.dsn, this._options._metadata, this._options.tunnel);\n\n var _a = __read(createSessionEnvelope(session, api), 1),\n env = _a[0];\n\n void this._newTransport.send(env).then(null, function (reason) {\n IS_DEBUG_BUILD && logger.error('Error while sending session:', reason);\n });\n } else {\n void this._transport.sendSession(session).then(null, function (reason) {\n IS_DEBUG_BUILD && logger.error('Error while sending session:', reason);\n });\n }\n };\n /**\n * @inheritDoc\n */\n\n\n BaseBackend.prototype.getTransport = function () {\n return this._transport;\n };\n /**\n * Sets up the transport so it can be used later to send requests.\n */\n\n\n BaseBackend.prototype._setupTransport = function () {\n return new NoopTransport();\n };\n\n return BaseBackend;\n}();\n\nexport { BaseBackend };","import { __read } from \"tslib\"; // global reference to slice\n\nvar UNKNOWN_FUNCTION = '?';\nvar OPERA10_PRIORITY = 10;\nvar OPERA11_PRIORITY = 20;\nvar CHROME_PRIORITY = 30;\nvar WINJS_PRIORITY = 40;\nvar GECKO_PRIORITY = 50;\n\nfunction createFrame(filename, func, lineno, colno) {\n var frame = {\n filename: filename,\n function: func,\n // All browser frames are considered in_app\n in_app: true\n };\n\n if (lineno !== undefined) {\n frame.lineno = lineno;\n }\n\n if (colno !== undefined) {\n frame.colno = colno;\n }\n\n return frame;\n} // Chromium based browsers: Chrome, Brave, new Opera, new Edge\n\n\nvar chromeRegex = /^\\s*at (?:(.*?) ?\\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\\/).*?)(?::(\\d+))?(?::(\\d+))?\\)?\\s*$/i;\nvar chromeEvalRegex = /\\((\\S*)(?::(\\d+))(?::(\\d+))\\)/;\n\nvar chrome = function chrome(line) {\n var parts = chromeRegex.exec(line);\n\n if (parts) {\n var isEval = parts[2] && parts[2].indexOf('eval') === 0; // start of line\n\n if (isEval) {\n var subMatch = chromeEvalRegex.exec(parts[2]);\n\n if (subMatch) {\n // throw out eval line/column and use top-most line/column number\n parts[2] = subMatch[1]; // url\n\n parts[3] = subMatch[2]; // line\n\n parts[4] = subMatch[3]; // column\n }\n } // Kamil: One more hack won't hurt us right? Understanding and adding more rules on top of these regexps right now\n // would be way too time consuming. (TODO: Rewrite whole RegExp to be more readable)\n\n\n var _a = __read(extractSafariExtensionDetails(parts[1] || UNKNOWN_FUNCTION, parts[2]), 2),\n func = _a[0],\n filename = _a[1];\n\n return createFrame(filename, func, parts[3] ? +parts[3] : undefined, parts[4] ? +parts[4] : undefined);\n }\n\n return;\n};\n\nexport var chromeStackParser = [CHROME_PRIORITY, chrome]; // gecko regex: `(?:bundle|\\d+\\.js)`: `bundle` is for react native, `\\d+\\.js` also but specifically for ram bundles because it\n// generates filenames without a prefix like `file://` the filenames in the stacktrace are just 42.js\n// We need this specific case for now because we want no other regex to match.\n\nvar geckoREgex = /^\\s*(.*?)(?:\\((.*?)\\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\\/.*?|\\[native code\\]|[^@]*(?:bundle|\\d+\\.js)|\\/[\\w\\-. /=]+)(?::(\\d+))?(?::(\\d+))?\\s*$/i;\nvar geckoEvalRegex = /(\\S+) line (\\d+)(?: > eval line \\d+)* > eval/i;\n\nvar gecko = function gecko(line) {\n var _a;\n\n var parts = geckoREgex.exec(line);\n\n if (parts) {\n var isEval = parts[3] && parts[3].indexOf(' > eval') > -1;\n\n if (isEval) {\n var subMatch = geckoEvalRegex.exec(parts[3]);\n\n if (subMatch) {\n // throw out eval line/column and use top-most line number\n parts[1] = parts[1] || 'eval';\n parts[3] = subMatch[1];\n parts[4] = subMatch[2];\n parts[5] = ''; // no column when eval\n }\n }\n\n var filename = parts[3];\n var func = parts[1] || UNKNOWN_FUNCTION;\n _a = __read(extractSafariExtensionDetails(func, filename), 2), func = _a[0], filename = _a[1];\n return createFrame(filename, func, parts[4] ? +parts[4] : undefined, parts[5] ? +parts[5] : undefined);\n }\n\n return;\n};\n\nexport var geckoStackParser = [GECKO_PRIORITY, gecko];\nvar winjsRegex = /^\\s*at (?:((?:\\[object object\\])?.+) )?\\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\\d+)(?::(\\d+))?\\)?\\s*$/i;\n\nvar winjs = function winjs(line) {\n var parts = winjsRegex.exec(line);\n return parts ? createFrame(parts[2], parts[1] || UNKNOWN_FUNCTION, +parts[3], parts[4] ? +parts[4] : undefined) : undefined;\n};\n\nexport var winjsStackParser = [WINJS_PRIORITY, winjs];\nvar opera10Regex = / line (\\d+).*script (?:in )?(\\S+)(?:: in function (\\S+))?$/i;\n\nvar opera10 = function opera10(line) {\n var parts = opera10Regex.exec(line);\n return parts ? createFrame(parts[2], parts[3] || UNKNOWN_FUNCTION, +parts[1]) : undefined;\n};\n\nexport var opera10StackParser = [OPERA10_PRIORITY, opera10];\nvar opera11Regex = / line (\\d+), column (\\d+)\\s*(?:in (?:]+)>|([^)]+))\\(.*\\))? in (.*):\\s*$/i;\n\nvar opera11 = function opera11(line) {\n var parts = opera11Regex.exec(line);\n return parts ? createFrame(parts[5], parts[3] || parts[4] || UNKNOWN_FUNCTION, +parts[1], +parts[2]) : undefined;\n};\n\nexport var opera11StackParser = [OPERA11_PRIORITY, opera11];\n/**\n * Safari web extensions, starting version unknown, can produce \"frames-only\" stacktraces.\n * What it means, is that instead of format like:\n *\n * Error: wat\n * at function@url:row:col\n * at function@url:row:col\n * at function@url:row:col\n *\n * it produces something like:\n *\n * function@url:row:col\n * function@url:row:col\n * function@url:row:col\n *\n * Because of that, it won't be captured by `chrome` RegExp and will fall into `Gecko` branch.\n * This function is extracted so that we can use it in both places without duplicating the logic.\n * Unfortunately \"just\" changing RegExp is too complicated now and making it pass all tests\n * and fix this case seems like an impossible, or at least way too time-consuming task.\n */\n\nvar extractSafariExtensionDetails = function extractSafariExtensionDetails(func, filename) {\n var isSafariExtension = func.indexOf('safari-extension') !== -1;\n var isSafariWebExtension = func.indexOf('safari-web-extension') !== -1;\n return isSafariExtension || isSafariWebExtension ? [func.indexOf('@') !== -1 ? func.split('@')[0] : UNKNOWN_FUNCTION, isSafariExtension ? \"safari-extension:\" + filename : \"safari-web-extension:\" + filename] : [func, filename];\n};","import { __assign } from \"tslib\";\nimport { Severity } from '@sentry/types';\nimport { addExceptionMechanism, addExceptionTypeValue, createStackParser, extractExceptionKeysForMessage, isDOMError, isDOMException, isError, isErrorEvent, isEvent, isPlainObject, normalizeToSize, resolvedSyncPromise } from '@sentry/utils';\nimport { chromeStackParser, geckoStackParser, opera10StackParser, opera11StackParser, winjsStackParser } from './stack-parsers';\n/**\n * This function creates an exception from an TraceKitStackTrace\n * @param stacktrace TraceKitStackTrace that will be converted to an exception\n * @hidden\n */\n\nexport function exceptionFromError(ex) {\n // Get the frames first since Opera can lose the stack if we touch anything else first\n var frames = parseStackFrames(ex);\n var exception = {\n type: ex && ex.name,\n value: extractMessage(ex)\n };\n\n if (frames.length) {\n exception.stacktrace = {\n frames: frames\n };\n }\n\n if (exception.type === undefined && exception.value === '') {\n exception.value = 'Unrecoverable error caught';\n }\n\n return exception;\n}\n/**\n * @hidden\n */\n\nexport function eventFromPlainObject(exception, syntheticException, isUnhandledRejection) {\n var event = {\n exception: {\n values: [{\n type: isEvent(exception) ? exception.constructor.name : isUnhandledRejection ? 'UnhandledRejection' : 'Error',\n value: \"Non-Error \" + (isUnhandledRejection ? 'promise rejection' : 'exception') + \" captured with keys: \" + extractExceptionKeysForMessage(exception)\n }]\n },\n extra: {\n __serialized__: normalizeToSize(exception)\n }\n };\n\n if (syntheticException) {\n var frames_1 = parseStackFrames(syntheticException);\n\n if (frames_1.length) {\n event.stacktrace = {\n frames: frames_1\n };\n }\n }\n\n return event;\n}\n/**\n * @hidden\n */\n\nexport function eventFromError(ex) {\n return {\n exception: {\n values: [exceptionFromError(ex)]\n }\n };\n}\n/** Parses stack frames from an error */\n\nexport function parseStackFrames(ex) {\n // Access and store the stacktrace property before doing ANYTHING\n // else to it because Opera is not very good at providing it\n // reliably in other circumstances.\n var stacktrace = ex.stacktrace || ex.stack || '';\n var popSize = getPopSize(ex);\n\n try {\n return createStackParser(opera10StackParser, opera11StackParser, chromeStackParser, winjsStackParser, geckoStackParser)(stacktrace, popSize);\n } catch (e) {// no-empty\n }\n\n return [];\n} // Based on our own mapping pattern - https://github.com/getsentry/sentry/blob/9f08305e09866c8bd6d0c24f5b0aabdd7dd6c59c/src/sentry/lang/javascript/errormapping.py#L83-L108\n\nvar reactMinifiedRegexp = /Minified React error #\\d+;/i;\n\nfunction getPopSize(ex) {\n if (ex) {\n if (typeof ex.framesToPop === 'number') {\n return ex.framesToPop;\n }\n\n if (reactMinifiedRegexp.test(ex.message)) {\n return 1;\n }\n }\n\n return 0;\n}\n/**\n * There are cases where stacktrace.message is an Event object\n * https://github.com/getsentry/sentry-javascript/issues/1949\n * In this specific case we try to extract stacktrace.message.error.message\n */\n\n\nfunction extractMessage(ex) {\n var message = ex && ex.message;\n\n if (!message) {\n return 'No error message';\n }\n\n if (message.error && typeof message.error.message === 'string') {\n return message.error.message;\n }\n\n return message;\n}\n/**\n * Creates an {@link Event} from all inputs to `captureException` and non-primitive inputs to `captureMessage`.\n * @hidden\n */\n\n\nexport function eventFromException(exception, hint, attachStacktrace) {\n var syntheticException = hint && hint.syntheticException || undefined;\n var event = eventFromUnknownInput(exception, syntheticException, attachStacktrace);\n addExceptionMechanism(event); // defaults to { type: 'generic', handled: true }\n\n event.level = Severity.Error;\n\n if (hint && hint.event_id) {\n event.event_id = hint.event_id;\n }\n\n return resolvedSyncPromise(event);\n}\n/**\n * Builds and Event from a Message\n * @hidden\n */\n\nexport function eventFromMessage(message, level, hint, attachStacktrace) {\n if (level === void 0) {\n level = Severity.Info;\n }\n\n var syntheticException = hint && hint.syntheticException || undefined;\n var event = eventFromString(message, syntheticException, attachStacktrace);\n event.level = level;\n\n if (hint && hint.event_id) {\n event.event_id = hint.event_id;\n }\n\n return resolvedSyncPromise(event);\n}\n/**\n * @hidden\n */\n\nexport function eventFromUnknownInput(exception, syntheticException, attachStacktrace, isUnhandledRejection) {\n var event;\n\n if (isErrorEvent(exception) && exception.error) {\n // If it is an ErrorEvent with `error` property, extract it to get actual Error\n var errorEvent = exception;\n return eventFromError(errorEvent.error);\n } // If it is a `DOMError` (which is a legacy API, but still supported in some browsers) then we just extract the name\n // and message, as it doesn't provide anything else. According to the spec, all `DOMExceptions` should also be\n // `Error`s, but that's not the case in IE11, so in that case we treat it the same as we do a `DOMError`.\n //\n // https://developer.mozilla.org/en-US/docs/Web/API/DOMError\n // https://developer.mozilla.org/en-US/docs/Web/API/DOMException\n // https://webidl.spec.whatwg.org/#es-DOMException-specialness\n\n\n if (isDOMError(exception) || isDOMException(exception)) {\n var domException = exception;\n\n if ('stack' in exception) {\n event = eventFromError(exception);\n } else {\n var name_1 = domException.name || (isDOMError(domException) ? 'DOMError' : 'DOMException');\n var message = domException.message ? name_1 + \": \" + domException.message : name_1;\n event = eventFromString(message, syntheticException, attachStacktrace);\n addExceptionTypeValue(event, message);\n }\n\n if ('code' in domException) {\n event.tags = __assign(__assign({}, event.tags), {\n 'DOMException.code': \"\" + domException.code\n });\n }\n\n return event;\n }\n\n if (isError(exception)) {\n // we have a real Error object, do nothing\n return eventFromError(exception);\n }\n\n if (isPlainObject(exception) || isEvent(exception)) {\n // If it's a plain object or an instance of `Event` (the built-in JS kind, not this SDK's `Event` type), serialize\n // it manually. This will allow us to group events based on top-level keys which is much better than creating a new\n // group on any key/value change.\n var objectException = exception;\n event = eventFromPlainObject(objectException, syntheticException, isUnhandledRejection);\n addExceptionMechanism(event, {\n synthetic: true\n });\n return event;\n } // If none of previous checks were valid, then it means that it's not:\n // - an instance of DOMError\n // - an instance of DOMException\n // - an instance of Event\n // - an instance of Error\n // - a valid ErrorEvent (one with an error property)\n // - a plain Object\n //\n // So bail out and capture it as a simple message:\n\n\n event = eventFromString(exception, syntheticException, attachStacktrace);\n addExceptionTypeValue(event, \"\" + exception, undefined);\n addExceptionMechanism(event, {\n synthetic: true\n });\n return event;\n}\n/**\n * @hidden\n */\n\nexport function eventFromString(input, syntheticException, attachStacktrace) {\n var event = {\n message: input\n };\n\n if (attachStacktrace && syntheticException) {\n var frames_2 = parseStackFrames(syntheticException);\n\n if (frames_2.length) {\n event.stacktrace = {\n frames: frames_2\n };\n }\n }\n\n return event;\n}","import { SentryError } from './error';\nimport { rejectedSyncPromise, resolvedSyncPromise, SyncPromise } from './syncpromise';\n/**\n * Creates an new PromiseBuffer object with the specified limit\n * @param limit max number of promises that can be stored in the buffer\n */\n\nexport function makePromiseBuffer(limit) {\n var buffer = [];\n\n function isReady() {\n return limit === undefined || buffer.length < limit;\n }\n /**\n * Remove a promise from the queue.\n *\n * @param task Can be any PromiseLike\n * @returns Removed promise.\n */\n\n\n function remove(task) {\n return buffer.splice(buffer.indexOf(task), 1)[0];\n }\n /**\n * Add a promise (representing an in-flight action) to the queue, and set it to remove itself on fulfillment.\n *\n * @param taskProducer A function producing any PromiseLike; In previous versions this used to be `task:\n * PromiseLike`, but under that model, Promises were instantly created on the call-site and their executor\n * functions therefore ran immediately. Thus, even if the buffer was full, the action still happened. By\n * requiring the promise to be wrapped in a function, we can defer promise creation until after the buffer\n * limit check.\n * @returns The original promise.\n */\n\n\n function add(taskProducer) {\n if (!isReady()) {\n return rejectedSyncPromise(new SentryError('Not adding Promise due to buffer limit reached.'));\n } // start the task and add its promise to the queue\n\n\n var task = taskProducer();\n\n if (buffer.indexOf(task) === -1) {\n buffer.push(task);\n }\n\n void task.then(function () {\n return remove(task);\n }) // Use `then(null, rejectionHandler)` rather than `catch(rejectionHandler)` so that we can use `PromiseLike`\n // rather than `Promise`. `PromiseLike` doesn't have a `.catch` method, making its polyfill smaller. (ES5 didn't\n // have promises, so TS has to polyfill when down-compiling.)\n .then(null, function () {\n return remove(task).then(null, function () {// We have to add another catch here because `remove()` starts a new promise chain.\n });\n });\n return task;\n }\n /**\n * Wait for all promises in the queue to resolve or for timeout to expire, whichever comes first.\n *\n * @param timeout The time, in ms, after which to resolve to `false` if the queue is still non-empty. Passing `0` (or\n * not passing anything) will make the promise wait as long as it takes for the queue to drain before resolving to\n * `true`.\n * @returns A promise which will resolve to `true` if the queue is already empty or drains before the timeout, and\n * `false` otherwise\n */\n\n\n function drain(timeout) {\n return new SyncPromise(function (resolve, reject) {\n var counter = buffer.length;\n\n if (!counter) {\n return resolve(true);\n } // wait for `timeout` ms and then resolve to `false` (if not cancelled first)\n\n\n var capturedSetTimeout = setTimeout(function () {\n if (timeout && timeout > 0) {\n resolve(false);\n }\n }, timeout); // if all promises resolve in time, cancel the timer and resolve to `true`\n\n buffer.forEach(function (item) {\n void resolvedSyncPromise(item).then(function () {\n // eslint-disable-next-line no-plusplus\n if (! --counter) {\n clearTimeout(capturedSetTimeout);\n resolve(true);\n }\n }, reject);\n });\n });\n }\n\n return {\n $: buffer,\n add: add,\n drain: drain\n };\n}","import { __assign, __values } from \"tslib\";\nexport var DEFAULT_RETRY_AFTER = 60 * 1000; // 60 seconds\n\n/**\n * Extracts Retry-After value from the request header or returns default value\n * @param header string representation of 'Retry-After' header\n * @param now current unix timestamp\n *\n */\n\nexport function parseRetryAfterHeader(header, now) {\n if (now === void 0) {\n now = Date.now();\n }\n\n var headerDelay = parseInt(\"\" + header, 10);\n\n if (!isNaN(headerDelay)) {\n return headerDelay * 1000;\n }\n\n var headerDate = Date.parse(\"\" + header);\n\n if (!isNaN(headerDate)) {\n return headerDate - now;\n }\n\n return DEFAULT_RETRY_AFTER;\n}\n/**\n * Gets the time that given category is disabled until for rate limiting\n */\n\nexport function disabledUntil(limits, category) {\n return limits[category] || limits.all || 0;\n}\n/**\n * Checks if a category is rate limited\n */\n\nexport function isRateLimited(limits, category, now) {\n if (now === void 0) {\n now = Date.now();\n }\n\n return disabledUntil(limits, category) > now;\n}\n/**\n * Update ratelimits from incoming headers.\n * Returns true if headers contains a non-empty rate limiting header.\n */\n\nexport function updateRateLimits(limits, headers, now) {\n var e_1, _a, e_2, _b;\n\n if (now === void 0) {\n now = Date.now();\n }\n\n var updatedRateLimits = __assign({}, limits); // \"The name is case-insensitive.\"\n // https://developer.mozilla.org/en-US/docs/Web/API/Headers/get\n\n\n var rateLimitHeader = headers['x-sentry-rate-limits'];\n var retryAfterHeader = headers['retry-after'];\n\n if (rateLimitHeader) {\n try {\n /**\n * rate limit headers are of the form\n * ,,..\n * where each is of the form\n * : : : \n * where\n * is a delay in seconds\n * is the event type(s) (error, transaction, etc) being rate limited and is of the form\n * ;;...\n * is what's being limited (org, project, or key) - ignored by SDK\n * is an arbitrary string like \"org_quota\" - ignored by SDK\n */\n for (var _c = __values(rateLimitHeader.trim().split(',')), _d = _c.next(); !_d.done; _d = _c.next()) {\n var limit = _d.value;\n var parameters = limit.split(':', 2);\n var headerDelay = parseInt(parameters[0], 10);\n var delay = (!isNaN(headerDelay) ? headerDelay : 60) * 1000; // 60sec default\n\n if (!parameters[1]) {\n updatedRateLimits.all = now + delay;\n } else {\n try {\n for (var _e = (e_2 = void 0, __values(parameters[1].split(';'))), _f = _e.next(); !_f.done; _f = _e.next()) {\n var category = _f.value;\n updatedRateLimits[category] = now + delay;\n }\n } catch (e_2_1) {\n e_2 = {\n error: e_2_1\n };\n } finally {\n try {\n if (_f && !_f.done && (_b = _e.return)) _b.call(_e);\n } finally {\n if (e_2) throw e_2.error;\n }\n }\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (_d && !_d.done && (_a = _c.return)) _a.call(_c);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n } else if (retryAfterHeader) {\n updatedRateLimits.all = now + parseRetryAfterHeader(retryAfterHeader, now);\n }\n\n return updatedRateLimits;\n}","/**\n * Converts an HTTP status code to sentry status {@link EventStatus}.\n *\n * @param code number HTTP status code\n * @returns EventStatus\n */\nexport function eventStatusFromHttpCode(code) {\n if (code >= 200 && code < 300) {\n return 'success';\n }\n\n if (code === 429) {\n return 'rate_limit';\n }\n\n if (code >= 400 && code < 500) {\n return 'invalid';\n }\n\n if (code >= 500) {\n return 'failed';\n }\n\n return 'unknown';\n}","import { disabledUntil, eventStatusFromHttpCode, getEnvelopeType, isRateLimited, makePromiseBuffer, rejectedSyncPromise, resolvedSyncPromise, serializeEnvelope, updateRateLimits } from '@sentry/utils';\nexport var ERROR_TRANSPORT_CATEGORY = 'error';\nexport var TRANSACTION_TRANSPORT_CATEGORY = 'transaction';\nexport var ATTACHMENT_TRANSPORT_CATEGORY = 'attachment';\nexport var SESSION_TRANSPORT_CATEGORY = 'session';\nexport var DEFAULT_TRANSPORT_BUFFER_SIZE = 30;\n/**\n * Creates a `NewTransport`\n *\n * @param options\n * @param makeRequest\n */\n\nexport function createTransport(options, makeRequest, buffer) {\n if (buffer === void 0) {\n buffer = makePromiseBuffer(options.bufferSize || DEFAULT_TRANSPORT_BUFFER_SIZE);\n }\n\n var rateLimits = {};\n\n var flush = function flush(timeout) {\n return buffer.drain(timeout);\n };\n\n function send(envelope) {\n var envCategory = getEnvelopeType(envelope);\n var category = envCategory === 'event' ? 'error' : envCategory;\n var request = {\n category: category,\n body: serializeEnvelope(envelope)\n }; // Don't add to buffer if transport is already rate-limited\n\n if (isRateLimited(rateLimits, category)) {\n return rejectedSyncPromise({\n status: 'rate_limit',\n reason: getRateLimitReason(rateLimits, category)\n });\n }\n\n var requestTask = function requestTask() {\n return makeRequest(request).then(function (_a) {\n var body = _a.body,\n headers = _a.headers,\n reason = _a.reason,\n statusCode = _a.statusCode;\n var status = eventStatusFromHttpCode(statusCode);\n\n if (headers) {\n rateLimits = updateRateLimits(rateLimits, headers);\n }\n\n if (status === 'success') {\n return resolvedSyncPromise({\n status: status,\n reason: reason\n });\n }\n\n return rejectedSyncPromise({\n status: status,\n reason: reason || body || (status === 'rate_limit' ? getRateLimitReason(rateLimits, category) : 'Unknown transport error')\n });\n });\n };\n\n return buffer.add(requestTask);\n }\n\n return {\n send: send,\n flush: flush\n };\n}\n\nfunction getRateLimitReason(rateLimits, category) {\n return \"Too many \" + category + \" requests, backing off until: \" + new Date(disabledUntil(rateLimits, category)).toISOString();\n}","/*\n * This file defines flags and constants that can be modified during compile time in order to facilitate tree shaking\n * for users.\n *\n * Debug flags need to be declared in each package individually and must not be imported across package boundaries,\n * because some build tools have trouble tree-shaking imported guards.\n *\n * As a convention, we define debug flags in a `flags.ts` file in the root of a package's `src` folder.\n *\n * Debug flag files will contain \"magic strings\" like `__SENTRY_DEBUG__` that may get replaced with actual values during\n * our, or the user's build process. Take care when introducing new flags - they must not throw if they are not\n * replaced.\n */\n\n/** Flag that is true for debug builds, false otherwise. */\nexport var IS_DEBUG_BUILD = typeof __SENTRY_DEBUG__ === 'undefined' ? true : __SENTRY_DEBUG__;","import { forget, getGlobalObject, isNativeFetch, logger, supportsFetch } from '@sentry/utils';\nimport { IS_DEBUG_BUILD } from '../flags';\nvar global = getGlobalObject();\nvar cachedFetchImpl;\n/**\n * A special usecase for incorrectly wrapped Fetch APIs in conjunction with ad-blockers.\n * Whenever someone wraps the Fetch API and returns the wrong promise chain,\n * this chain becomes orphaned and there is no possible way to capture it's rejections\n * other than allowing it bubble up to this very handler. eg.\n *\n * const f = window.fetch;\n * window.fetch = function () {\n * const p = f.apply(this, arguments);\n *\n * p.then(function() {\n * console.log('hi.');\n * });\n *\n * return p;\n * }\n *\n * `p.then(function () { ... })` is producing a completely separate promise chain,\n * however, what's returned is `p` - the result of original `fetch` call.\n *\n * This mean, that whenever we use the Fetch API to send our own requests, _and_\n * some ad-blocker blocks it, this orphaned chain will _always_ reject,\n * effectively causing another event to be captured.\n * This makes a whole process become an infinite loop, which we need to somehow\n * deal with, and break it in one way or another.\n *\n * To deal with this issue, we are making sure that we _always_ use the real\n * browser Fetch API, instead of relying on what `window.fetch` exposes.\n * The only downside to this would be missing our own requests as breadcrumbs,\n * but because we are already not doing this, it should be just fine.\n *\n * Possible failed fetch error messages per-browser:\n *\n * Chrome: Failed to fetch\n * Edge: Failed to Fetch\n * Firefox: NetworkError when attempting to fetch resource\n * Safari: resource blocked by content blocker\n */\n\nexport function getNativeFetchImplementation() {\n if (cachedFetchImpl) {\n return cachedFetchImpl;\n }\n /* eslint-disable @typescript-eslint/unbound-method */\n // Fast path to avoid DOM I/O\n\n\n if (isNativeFetch(global.fetch)) {\n return cachedFetchImpl = global.fetch.bind(global);\n }\n\n var document = global.document;\n var fetchImpl = global.fetch; // eslint-disable-next-line deprecation/deprecation\n\n if (document && typeof document.createElement === 'function') {\n try {\n var sandbox = document.createElement('iframe');\n sandbox.hidden = true;\n document.head.appendChild(sandbox);\n var contentWindow = sandbox.contentWindow;\n\n if (contentWindow && contentWindow.fetch) {\n fetchImpl = contentWindow.fetch;\n }\n\n document.head.removeChild(sandbox);\n } catch (e) {\n IS_DEBUG_BUILD && logger.warn('Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ', e);\n }\n }\n\n return cachedFetchImpl = fetchImpl.bind(global);\n /* eslint-enable @typescript-eslint/unbound-method */\n}\n/**\n * Sends sdk client report using sendBeacon or fetch as a fallback if available\n *\n * @param url report endpoint\n * @param body report payload\n */\n\nexport function sendReport(url, body) {\n var isRealNavigator = Object.prototype.toString.call(global && global.navigator) === '[object Navigator]';\n var hasSendBeacon = isRealNavigator && typeof global.navigator.sendBeacon === 'function';\n\n if (hasSendBeacon) {\n // Prevent illegal invocations - https://xgwang.me/posts/you-may-not-know-beacon/#it-may-throw-error%2C-be-sure-to-catch\n var sendBeacon = global.navigator.sendBeacon.bind(global.navigator);\n return sendBeacon(url, body);\n }\n\n if (supportsFetch()) {\n var fetch_1 = getNativeFetchImplementation();\n return forget(fetch_1(url, {\n body: body,\n method: 'POST',\n credentials: 'omit',\n keepalive: true\n }));\n }\n}","/**\n * Consumes the promise and logs the error when it rejects.\n * @param promise A promise to forget.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function forget(promise) {\n void promise.then(null, function (e) {\n // TODO: Use a better logging mechanism\n // eslint-disable-next-line no-console\n console.error(e);\n });\n}","import { __read } from \"tslib\";\nimport { eventToSentryRequest, getEnvelopeEndpointWithUrlEncodedAuth, getStoreEndpointWithUrlEncodedAuth, initAPIDetails, sessionToSentryRequest } from '@sentry/core';\nimport { createClientReportEnvelope, disabledUntil, dsnToString, eventStatusFromHttpCode, getGlobalObject, isRateLimited, logger, makePromiseBuffer, serializeEnvelope, updateRateLimits } from '@sentry/utils';\nimport { IS_DEBUG_BUILD } from '../flags';\nimport { sendReport } from './utils';\n\nfunction requestTypeToCategory(ty) {\n var tyStr = ty;\n return tyStr === 'event' ? 'error' : tyStr;\n}\n\nvar global = getGlobalObject();\n/** Base Transport class implementation */\n\nvar BaseTransport =\n/** @class */\nfunction () {\n function BaseTransport(options) {\n var _this = this;\n\n this.options = options;\n /** A simple buffer holding all requests. */\n\n this._buffer = makePromiseBuffer(30);\n /** Locks transport after receiving rate limits in a response */\n\n this._rateLimits = {};\n this._outcomes = {};\n this._api = initAPIDetails(options.dsn, options._metadata, options.tunnel); // eslint-disable-next-line deprecation/deprecation\n\n this.url = getStoreEndpointWithUrlEncodedAuth(this._api.dsn);\n\n if (this.options.sendClientReports && global.document) {\n global.document.addEventListener('visibilitychange', function () {\n if (global.document.visibilityState === 'hidden') {\n _this._flushOutcomes();\n }\n });\n }\n }\n /**\n * @inheritDoc\n */\n\n\n BaseTransport.prototype.sendEvent = function (event) {\n return this._sendRequest(eventToSentryRequest(event, this._api), event);\n };\n /**\n * @inheritDoc\n */\n\n\n BaseTransport.prototype.sendSession = function (session) {\n return this._sendRequest(sessionToSentryRequest(session, this._api), session);\n };\n /**\n * @inheritDoc\n */\n\n\n BaseTransport.prototype.close = function (timeout) {\n return this._buffer.drain(timeout);\n };\n /**\n * @inheritDoc\n */\n\n\n BaseTransport.prototype.recordLostEvent = function (reason, category) {\n var _a;\n\n if (!this.options.sendClientReports) {\n return;\n } // We want to track each category (event, transaction, session) separately\n // but still keep the distinction between different type of outcomes.\n // We could use nested maps, but it's much easier to read and type this way.\n // A correct type for map-based implementation if we want to go that route\n // would be `Partial>>>`\n\n\n var key = requestTypeToCategory(category) + \":\" + reason;\n IS_DEBUG_BUILD && logger.log(\"Adding outcome: \" + key);\n this._outcomes[key] = (_a = this._outcomes[key], _a !== null && _a !== void 0 ? _a : 0) + 1;\n };\n /**\n * Send outcomes as an envelope\n */\n\n\n BaseTransport.prototype._flushOutcomes = function () {\n if (!this.options.sendClientReports) {\n return;\n }\n\n var outcomes = this._outcomes;\n this._outcomes = {}; // Nothing to send\n\n if (!Object.keys(outcomes).length) {\n IS_DEBUG_BUILD && logger.log('No outcomes to flush');\n return;\n }\n\n IS_DEBUG_BUILD && logger.log(\"Flushing outcomes:\\n\" + JSON.stringify(outcomes, null, 2));\n var url = getEnvelopeEndpointWithUrlEncodedAuth(this._api.dsn, this._api.tunnel);\n var discardedEvents = Object.keys(outcomes).map(function (key) {\n var _a = __read(key.split(':'), 2),\n category = _a[0],\n reason = _a[1];\n\n return {\n reason: reason,\n category: category,\n quantity: outcomes[key]\n }; // TODO: Improve types on discarded_events to get rid of cast\n });\n var envelope = createClientReportEnvelope(discardedEvents, this._api.tunnel && dsnToString(this._api.dsn));\n\n try {\n sendReport(url, serializeEnvelope(envelope));\n } catch (e) {\n IS_DEBUG_BUILD && logger.error(e);\n }\n };\n /**\n * Handle Sentry repsonse for promise-based transports.\n */\n\n\n BaseTransport.prototype._handleResponse = function (_a) {\n var requestType = _a.requestType,\n response = _a.response,\n headers = _a.headers,\n resolve = _a.resolve,\n reject = _a.reject;\n var status = eventStatusFromHttpCode(response.status);\n this._rateLimits = updateRateLimits(this._rateLimits, headers); // eslint-disable-next-line deprecation/deprecation\n\n if (this._isRateLimited(requestType)) {\n IS_DEBUG_BUILD && // eslint-disable-next-line deprecation/deprecation\n logger.warn(\"Too many \" + requestType + \" requests, backing off until: \" + this._disabledUntil(requestType));\n }\n\n if (status === 'success') {\n resolve({\n status: status\n });\n return;\n }\n\n reject(response);\n };\n /**\n * Gets the time that given category is disabled until for rate limiting\n *\n * @deprecated Please use `disabledUntil` from @sentry/utils\n */\n\n\n BaseTransport.prototype._disabledUntil = function (requestType) {\n var category = requestTypeToCategory(requestType);\n return new Date(disabledUntil(this._rateLimits, category));\n };\n /**\n * Checks if a category is rate limited\n *\n * @deprecated Please use `isRateLimited` from @sentry/utils\n */\n\n\n BaseTransport.prototype._isRateLimited = function (requestType) {\n var category = requestTypeToCategory(requestType);\n return isRateLimited(this._rateLimits, category);\n };\n\n return BaseTransport;\n}();\n\nexport { BaseTransport };","import { createEnvelope } from './envelope';\nimport { dateTimestampInSeconds } from './time';\n/**\n * Creates client report envelope\n * @param discarded_events An array of discard events\n * @param dsn A DSN that can be set on the header. Optional.\n */\n\nexport function createClientReportEnvelope(discarded_events, dsn, timestamp) {\n var clientReportItem = [{\n type: 'client_report'\n }, {\n timestamp: timestamp || dateTimestampInSeconds(),\n discarded_events: discarded_events\n }];\n return createEnvelope(dsn ? {\n dsn: dsn\n } : {}, [clientReportItem]);\n}","import { __extends } from \"tslib\";\nimport { SentryError, supportsReferrerPolicy, SyncPromise } from '@sentry/utils';\nimport { BaseTransport } from './base';\nimport { getNativeFetchImplementation } from './utils';\n/** `fetch` based transport */\n\nvar FetchTransport =\n/** @class */\nfunction (_super) {\n __extends(FetchTransport, _super);\n\n function FetchTransport(options, fetchImpl) {\n if (fetchImpl === void 0) {\n fetchImpl = getNativeFetchImplementation();\n }\n\n var _this = _super.call(this, options) || this;\n\n _this._fetch = fetchImpl;\n return _this;\n }\n /**\n * @param sentryRequest Prepared SentryRequest to be delivered\n * @param originalPayload Original payload used to create SentryRequest\n */\n\n\n FetchTransport.prototype._sendRequest = function (sentryRequest, originalPayload) {\n var _this = this; // eslint-disable-next-line deprecation/deprecation\n\n\n if (this._isRateLimited(sentryRequest.type)) {\n this.recordLostEvent('ratelimit_backoff', sentryRequest.type);\n return Promise.reject({\n event: originalPayload,\n type: sentryRequest.type,\n // eslint-disable-next-line deprecation/deprecation\n reason: \"Transport for \" + sentryRequest.type + \" requests locked till \" + this._disabledUntil(sentryRequest.type) + \" due to too many requests.\",\n status: 429\n });\n }\n\n var options = {\n body: sentryRequest.body,\n method: 'POST',\n // Despite all stars in the sky saying that Edge supports old draft syntax, aka 'never', 'always', 'origin' and 'default'\n // (see https://caniuse.com/#feat=referrer-policy),\n // it doesn't. And it throws an exception instead of ignoring this parameter...\n // REF: https://github.com/getsentry/raven-js/issues/1233\n referrerPolicy: supportsReferrerPolicy() ? 'origin' : ''\n };\n\n if (this.options.fetchParameters !== undefined) {\n Object.assign(options, this.options.fetchParameters);\n }\n\n if (this.options.headers !== undefined) {\n options.headers = this.options.headers;\n }\n\n return this._buffer.add(function () {\n return new SyncPromise(function (resolve, reject) {\n void _this._fetch(sentryRequest.url, options).then(function (response) {\n var headers = {\n 'x-sentry-rate-limits': response.headers.get('X-Sentry-Rate-Limits'),\n 'retry-after': response.headers.get('Retry-After')\n };\n\n _this._handleResponse({\n requestType: sentryRequest.type,\n response: response,\n headers: headers,\n resolve: resolve,\n reject: reject\n });\n }).catch(reject);\n });\n }).then(undefined, function (reason) {\n // It's either buffer rejection or any other xhr/fetch error, which are treated as NetworkError.\n if (reason instanceof SentryError) {\n _this.recordLostEvent('queue_overflow', sentryRequest.type);\n } else {\n _this.recordLostEvent('network_error', sentryRequest.type);\n }\n\n throw reason;\n });\n };\n\n return FetchTransport;\n}(BaseTransport);\n\nexport { FetchTransport };","import { __extends } from \"tslib\";\nimport { SentryError, SyncPromise } from '@sentry/utils';\nimport { BaseTransport } from './base';\n/** `XHR` based transport */\n\nvar XHRTransport =\n/** @class */\nfunction (_super) {\n __extends(XHRTransport, _super);\n\n function XHRTransport() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n /**\n * @param sentryRequest Prepared SentryRequest to be delivered\n * @param originalPayload Original payload used to create SentryRequest\n */\n\n\n XHRTransport.prototype._sendRequest = function (sentryRequest, originalPayload) {\n var _this = this; // eslint-disable-next-line deprecation/deprecation\n\n\n if (this._isRateLimited(sentryRequest.type)) {\n this.recordLostEvent('ratelimit_backoff', sentryRequest.type);\n return Promise.reject({\n event: originalPayload,\n type: sentryRequest.type,\n // eslint-disable-next-line deprecation/deprecation\n reason: \"Transport for \" + sentryRequest.type + \" requests locked till \" + this._disabledUntil(sentryRequest.type) + \" due to too many requests.\",\n status: 429\n });\n }\n\n return this._buffer.add(function () {\n return new SyncPromise(function (resolve, reject) {\n var request = new XMLHttpRequest();\n\n request.onreadystatechange = function () {\n if (request.readyState === 4) {\n var headers = {\n 'x-sentry-rate-limits': request.getResponseHeader('X-Sentry-Rate-Limits'),\n 'retry-after': request.getResponseHeader('Retry-After')\n };\n\n _this._handleResponse({\n requestType: sentryRequest.type,\n response: request,\n headers: headers,\n resolve: resolve,\n reject: reject\n });\n }\n };\n\n request.open('POST', sentryRequest.url);\n\n for (var header in _this.options.headers) {\n if (Object.prototype.hasOwnProperty.call(_this.options.headers, header)) {\n request.setRequestHeader(header, _this.options.headers[header]);\n }\n }\n\n request.send(sentryRequest.body);\n });\n }).then(undefined, function (reason) {\n // It's either buffer rejection or any other xhr/fetch error, which are treated as NetworkError.\n if (reason instanceof SentryError) {\n _this.recordLostEvent('queue_overflow', sentryRequest.type);\n } else {\n _this.recordLostEvent('network_error', sentryRequest.type);\n }\n\n throw reason;\n });\n };\n\n return XHRTransport;\n}(BaseTransport);\n\nexport { XHRTransport };","import { __assign, __extends } from \"tslib\";\nimport { BaseBackend, getEnvelopeEndpointWithUrlEncodedAuth, initAPIDetails } from '@sentry/core';\nimport { Severity } from '@sentry/types';\nimport { supportsFetch } from '@sentry/utils';\nimport { eventFromException, eventFromMessage } from './eventbuilder';\nimport { FetchTransport, makeNewFetchTransport, makeNewXHRTransport, XHRTransport } from './transports';\n/**\n * The Sentry Browser SDK Backend.\n * @hidden\n */\n\nvar BrowserBackend =\n/** @class */\nfunction (_super) {\n __extends(BrowserBackend, _super);\n\n function BrowserBackend() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n /**\n * @inheritDoc\n */\n\n\n BrowserBackend.prototype.eventFromException = function (exception, hint) {\n return eventFromException(exception, hint, this._options.attachStacktrace);\n };\n /**\n * @inheritDoc\n */\n\n\n BrowserBackend.prototype.eventFromMessage = function (message, level, hint) {\n if (level === void 0) {\n level = Severity.Info;\n }\n\n return eventFromMessage(message, level, hint, this._options.attachStacktrace);\n };\n /**\n * @inheritDoc\n */\n\n\n BrowserBackend.prototype._setupTransport = function () {\n if (!this._options.dsn) {\n // We return the noop transport here in case there is no Dsn.\n return _super.prototype._setupTransport.call(this);\n }\n\n var transportOptions = __assign(__assign({}, this._options.transportOptions), {\n dsn: this._options.dsn,\n tunnel: this._options.tunnel,\n sendClientReports: this._options.sendClientReports,\n _metadata: this._options._metadata\n });\n\n var api = initAPIDetails(transportOptions.dsn, transportOptions._metadata, transportOptions.tunnel);\n var url = getEnvelopeEndpointWithUrlEncodedAuth(api.dsn, api.tunnel);\n\n if (this._options.transport) {\n return new this._options.transport(transportOptions);\n }\n\n if (supportsFetch()) {\n var requestOptions = __assign({}, transportOptions.fetchParameters);\n\n this._newTransport = makeNewFetchTransport({\n requestOptions: requestOptions,\n url: url\n });\n return new FetchTransport(transportOptions);\n }\n\n this._newTransport = makeNewXHRTransport({\n url: url,\n headers: transportOptions.headers\n });\n return new XHRTransport(transportOptions);\n };\n\n return BrowserBackend;\n}(BaseBackend);\n\nexport { BrowserBackend };","import { __assign } from \"tslib\";\nimport { createTransport } from '@sentry/core';\nimport { getNativeFetchImplementation } from './utils';\n/**\n * Creates a Transport that uses the Fetch API to send events to Sentry.\n */\n\nexport function makeNewFetchTransport(options, nativeFetch) {\n if (nativeFetch === void 0) {\n nativeFetch = getNativeFetchImplementation();\n }\n\n function makeRequest(request) {\n var requestOptions = __assign({\n body: request.body,\n method: 'POST',\n referrerPolicy: 'origin'\n }, options.requestOptions);\n\n return nativeFetch(options.url, requestOptions).then(function (response) {\n return response.text().then(function (body) {\n return {\n body: body,\n headers: {\n 'x-sentry-rate-limits': response.headers.get('X-Sentry-Rate-Limits'),\n 'retry-after': response.headers.get('Retry-After')\n },\n reason: response.statusText,\n statusCode: response.status\n };\n });\n });\n }\n\n return createTransport({\n bufferSize: options.bufferSize\n }, makeRequest);\n}","import { createTransport } from '@sentry/core';\nimport { SyncPromise } from '@sentry/utils';\n/**\n * The DONE ready state for XmlHttpRequest\n *\n * Defining it here as a constant b/c XMLHttpRequest.DONE is not always defined\n * (e.g. during testing, it is `undefined`)\n *\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/readyState}\n */\n\nvar XHR_READYSTATE_DONE = 4;\n/**\n * Creates a Transport that uses the XMLHttpRequest API to send events to Sentry.\n */\n\nexport function makeNewXHRTransport(options) {\n function makeRequest(request) {\n return new SyncPromise(function (resolve, _reject) {\n var xhr = new XMLHttpRequest();\n\n xhr.onreadystatechange = function () {\n if (xhr.readyState === XHR_READYSTATE_DONE) {\n var response = {\n body: xhr.response,\n headers: {\n 'x-sentry-rate-limits': xhr.getResponseHeader('X-Sentry-Rate-Limits'),\n 'retry-after': xhr.getResponseHeader('Retry-After')\n },\n reason: xhr.statusText,\n statusCode: xhr.status\n };\n resolve(response);\n }\n };\n\n xhr.open('POST', options.url);\n\n for (var header in options.headers) {\n if (Object.prototype.hasOwnProperty.call(options.headers, header)) {\n xhr.setRequestHeader(header, options.headers[header]);\n }\n }\n\n xhr.send(request.body);\n });\n }\n\n return createTransport({\n bufferSize: options.bufferSize\n }, makeRequest);\n}","import { __assign } from \"tslib\";\nimport { captureException, getReportDialogEndpoint, withScope } from '@sentry/core';\nimport { addExceptionMechanism, addExceptionTypeValue, addNonEnumerableProperty, getGlobalObject, getOriginalFunction, logger, markFunctionWrapped } from '@sentry/utils';\nimport { IS_DEBUG_BUILD } from './flags';\nvar global = getGlobalObject();\nvar ignoreOnError = 0;\n/**\n * @hidden\n */\n\nexport function shouldIgnoreOnError() {\n return ignoreOnError > 0;\n}\n/**\n * @hidden\n */\n\nexport function ignoreNextOnError() {\n // onerror should trigger before setTimeout\n ignoreOnError += 1;\n setTimeout(function () {\n ignoreOnError -= 1;\n });\n}\n/**\n * Instruments the given function and sends an event to Sentry every time the\n * function throws an exception.\n *\n * @param fn A function to wrap.\n * @returns The wrapped function.\n * @hidden\n */\n\nexport function wrap(fn, options, before) {\n // for future readers what this does is wrap a function and then create\n // a bi-directional wrapping between them.\n //\n // example: wrapped = wrap(original);\n // original.__sentry_wrapped__ -> wrapped\n // wrapped.__sentry_original__ -> original\n if (options === void 0) {\n options = {};\n }\n\n if (typeof fn !== 'function') {\n return fn;\n }\n\n try {\n // if we're dealing with a function that was previously wrapped, return\n // the original wrapper.\n var wrapper = fn.__sentry_wrapped__;\n\n if (wrapper) {\n return wrapper;\n } // We don't wanna wrap it twice\n\n\n if (getOriginalFunction(fn)) {\n return fn;\n }\n } catch (e) {\n // Just accessing custom props in some Selenium environments\n // can cause a \"Permission denied\" exception (see raven-js#495).\n // Bail on wrapping and return the function as-is (defers to window.onerror).\n return fn;\n }\n /* eslint-disable prefer-rest-params */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n\n\n var sentryWrapped = function sentryWrapped() {\n var args = Array.prototype.slice.call(arguments);\n\n try {\n if (before && typeof before === 'function') {\n before.apply(this, arguments);\n } // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access\n\n\n var wrappedArguments = args.map(function (arg) {\n return wrap(arg, options);\n }); // Attempt to invoke user-land function\n // NOTE: If you are a Sentry user, and you are seeing this stack frame, it\n // means the sentry.javascript SDK caught an error invoking your application code. This\n // is expected behavior and NOT indicative of a bug with sentry.javascript.\n\n return fn.apply(this, wrappedArguments);\n } catch (ex) {\n ignoreNextOnError();\n withScope(function (scope) {\n scope.addEventProcessor(function (event) {\n if (options.mechanism) {\n addExceptionTypeValue(event, undefined, undefined);\n addExceptionMechanism(event, options.mechanism);\n }\n\n event.extra = __assign(__assign({}, event.extra), {\n arguments: args\n });\n return event;\n });\n captureException(ex);\n });\n throw ex;\n }\n };\n /* eslint-enable prefer-rest-params */\n // Accessing some objects may throw\n // ref: https://github.com/getsentry/sentry-javascript/issues/1168\n\n\n try {\n for (var property in fn) {\n if (Object.prototype.hasOwnProperty.call(fn, property)) {\n sentryWrapped[property] = fn[property];\n }\n }\n } catch (_oO) {} // eslint-disable-line no-empty\n // Signal that this function has been wrapped/filled already\n // for both debugging and to prevent it to being wrapped/filled twice\n\n\n markFunctionWrapped(sentryWrapped, fn);\n addNonEnumerableProperty(fn, '__sentry_wrapped__', sentryWrapped); // Restore original function name (not all browsers allow that)\n\n try {\n var descriptor = Object.getOwnPropertyDescriptor(sentryWrapped, 'name');\n\n if (descriptor.configurable) {\n Object.defineProperty(sentryWrapped, 'name', {\n get: function get() {\n return fn.name;\n }\n });\n } // eslint-disable-next-line no-empty\n\n } catch (_oO) {}\n\n return sentryWrapped;\n}\n/**\n * Injects the Report Dialog script\n * @hidden\n */\n\nexport function injectReportDialog(options) {\n if (options === void 0) {\n options = {};\n }\n\n if (!global.document) {\n return;\n }\n\n if (!options.eventId) {\n IS_DEBUG_BUILD && logger.error('Missing eventId option in showReportDialog call');\n return;\n }\n\n if (!options.dsn) {\n IS_DEBUG_BUILD && logger.error('Missing dsn option in showReportDialog call');\n return;\n }\n\n var script = global.document.createElement('script');\n script.async = true;\n script.src = getReportDialogEndpoint(options.dsn, options);\n\n if (options.onLoad) {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n script.onload = options.onLoad;\n }\n\n var injectionPoint = global.document.head || global.document.body;\n\n if (injectionPoint) {\n injectionPoint.appendChild(script);\n }\n}","export var SeverityLevels = ['fatal', 'error', 'warning', 'log', 'info', 'debug', 'critical'];","import { Severity } from '@sentry/types';\nimport { SeverityLevels } from './enums';\n\nfunction isSupportedSeverity(level) {\n return SeverityLevels.indexOf(level) !== -1;\n}\n/**\n * Converts a string-based level into a {@link Severity}.\n *\n * @param level string representation of Severity\n * @returns Severity\n */\n\n\nexport function severityFromString(level) {\n if (level === 'warn') return Severity.Warning;\n\n if (isSupportedSeverity(level)) {\n return level;\n }\n\n return Severity.Log;\n}","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nimport { __assign } from \"tslib\";\n/* eslint-disable @typescript-eslint/no-unsafe-member-access */\n\n/* eslint-disable max-lines */\n\nimport { getCurrentHub } from '@sentry/core';\nimport { Severity } from '@sentry/types';\nimport { addInstrumentationHandler, getEventDescription, getGlobalObject, htmlTreeAsString, parseUrl, safeJoin, severityFromString } from '@sentry/utils';\n/**\n * Default Breadcrumbs instrumentations\n * TODO: Deprecated - with v6, this will be renamed to `Instrument`\n */\n\nvar Breadcrumbs =\n/** @class */\nfunction () {\n /**\n * @inheritDoc\n */\n function Breadcrumbs(options) {\n /**\n * @inheritDoc\n */\n this.name = Breadcrumbs.id;\n this._options = __assign({\n console: true,\n dom: true,\n fetch: true,\n history: true,\n sentry: true,\n xhr: true\n }, options);\n }\n /**\n * Create a breadcrumb of `sentry` from the events themselves\n */\n\n\n Breadcrumbs.prototype.addSentryBreadcrumb = function (event) {\n if (!this._options.sentry) {\n return;\n }\n\n getCurrentHub().addBreadcrumb({\n category: \"sentry.\" + (event.type === 'transaction' ? 'transaction' : 'event'),\n event_id: event.event_id,\n level: event.level,\n message: getEventDescription(event)\n }, {\n event: event\n });\n };\n /**\n * Instrument browser built-ins w/ breadcrumb capturing\n * - Console API\n * - DOM API (click/typing)\n * - XMLHttpRequest API\n * - Fetch API\n * - History API\n */\n\n\n Breadcrumbs.prototype.setupOnce = function () {\n if (this._options.console) {\n addInstrumentationHandler('console', _consoleBreadcrumb);\n }\n\n if (this._options.dom) {\n addInstrumentationHandler('dom', _domBreadcrumb(this._options.dom));\n }\n\n if (this._options.xhr) {\n addInstrumentationHandler('xhr', _xhrBreadcrumb);\n }\n\n if (this._options.fetch) {\n addInstrumentationHandler('fetch', _fetchBreadcrumb);\n }\n\n if (this._options.history) {\n addInstrumentationHandler('history', _historyBreadcrumb);\n }\n };\n /**\n * @inheritDoc\n */\n\n\n Breadcrumbs.id = 'Breadcrumbs';\n return Breadcrumbs;\n}();\n\nexport { Breadcrumbs };\n/**\n * A HOC that creaes a function that creates breadcrumbs from DOM API calls.\n * This is a HOC so that we get access to dom options in the closure.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\nfunction _domBreadcrumb(dom) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n function _innerDomBreadcrumb(handlerData) {\n var target;\n var keyAttrs = _typeof(dom) === 'object' ? dom.serializeAttribute : undefined;\n\n if (typeof keyAttrs === 'string') {\n keyAttrs = [keyAttrs];\n } // Accessing event.target can throw (see getsentry/raven-js#838, #768)\n\n\n try {\n target = handlerData.event.target ? htmlTreeAsString(handlerData.event.target, keyAttrs) : htmlTreeAsString(handlerData.event, keyAttrs);\n } catch (e) {\n target = '';\n }\n\n if (target.length === 0) {\n return;\n }\n\n getCurrentHub().addBreadcrumb({\n category: \"ui.\" + handlerData.name,\n message: target\n }, {\n event: handlerData.event,\n name: handlerData.name,\n global: handlerData.global\n });\n }\n\n return _innerDomBreadcrumb;\n}\n/**\n * Creates breadcrumbs from console API calls\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\n\nfunction _consoleBreadcrumb(handlerData) {\n var breadcrumb = {\n category: 'console',\n data: {\n arguments: handlerData.args,\n logger: 'console'\n },\n level: severityFromString(handlerData.level),\n message: safeJoin(handlerData.args, ' ')\n };\n\n if (handlerData.level === 'assert') {\n if (handlerData.args[0] === false) {\n breadcrumb.message = \"Assertion failed: \" + (safeJoin(handlerData.args.slice(1), ' ') || 'console.assert');\n breadcrumb.data.arguments = handlerData.args.slice(1);\n } else {\n // Don't capture a breadcrumb for passed assertions\n return;\n }\n }\n\n getCurrentHub().addBreadcrumb(breadcrumb, {\n input: handlerData.args,\n level: handlerData.level\n });\n}\n/**\n * Creates breadcrumbs from XHR API calls\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\n\nfunction _xhrBreadcrumb(handlerData) {\n if (handlerData.endTimestamp) {\n // We only capture complete, non-sentry requests\n if (handlerData.xhr.__sentry_own_request__) {\n return;\n }\n\n var _a = handlerData.xhr.__sentry_xhr__ || {},\n method = _a.method,\n url = _a.url,\n status_code = _a.status_code,\n body = _a.body;\n\n getCurrentHub().addBreadcrumb({\n category: 'xhr',\n data: {\n method: method,\n url: url,\n status_code: status_code\n },\n type: 'http'\n }, {\n xhr: handlerData.xhr,\n input: body\n });\n return;\n }\n}\n/**\n * Creates breadcrumbs from fetch API calls\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\n\nfunction _fetchBreadcrumb(handlerData) {\n // We only capture complete fetch requests\n if (!handlerData.endTimestamp) {\n return;\n }\n\n if (handlerData.fetchData.url.match(/sentry_key/) && handlerData.fetchData.method === 'POST') {\n // We will not create breadcrumbs for fetch requests that contain `sentry_key` (internal sentry requests)\n return;\n }\n\n if (handlerData.error) {\n getCurrentHub().addBreadcrumb({\n category: 'fetch',\n data: handlerData.fetchData,\n level: Severity.Error,\n type: 'http'\n }, {\n data: handlerData.error,\n input: handlerData.args\n });\n } else {\n getCurrentHub().addBreadcrumb({\n category: 'fetch',\n data: __assign(__assign({}, handlerData.fetchData), {\n status_code: handlerData.response.status\n }),\n type: 'http'\n }, {\n input: handlerData.args,\n response: handlerData.response\n });\n }\n}\n/**\n * Creates breadcrumbs from history API calls\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\n\nfunction _historyBreadcrumb(handlerData) {\n var global = getGlobalObject();\n var from = handlerData.from;\n var to = handlerData.to;\n var parsedLoc = parseUrl(global.location.href);\n var parsedFrom = parseUrl(from);\n var parsedTo = parseUrl(to); // Initial pushState doesn't provide `from` information\n\n if (!parsedFrom.path) {\n parsedFrom = parsedLoc;\n } // Use only the path component of the URL if the URL matches the current\n // document (almost all the time when using pushState)\n\n\n if (parsedLoc.protocol === parsedTo.protocol && parsedLoc.host === parsedTo.host) {\n to = parsedTo.relative;\n }\n\n if (parsedLoc.protocol === parsedFrom.protocol && parsedLoc.host === parsedFrom.host) {\n from = parsedFrom.relative;\n }\n\n getCurrentHub().addBreadcrumb({\n category: 'navigation',\n data: {\n from: from,\n to: to\n }\n });\n}","import { __assign, __extends } from \"tslib\";\nimport { BaseClient, SDK_VERSION } from '@sentry/core';\nimport { getGlobalObject, logger } from '@sentry/utils';\nimport { BrowserBackend } from './backend';\nimport { IS_DEBUG_BUILD } from './flags';\nimport { injectReportDialog } from './helpers';\nimport { Breadcrumbs } from './integrations';\n/**\n * The Sentry Browser SDK Client.\n *\n * @see BrowserOptions for documentation on configuration options.\n * @see SentryClient for usage documentation.\n */\n\nvar BrowserClient =\n/** @class */\nfunction (_super) {\n __extends(BrowserClient, _super);\n /**\n * Creates a new Browser SDK instance.\n *\n * @param options Configuration options for this SDK.\n */\n\n\n function BrowserClient(options) {\n if (options === void 0) {\n options = {};\n }\n\n var _this = this;\n\n options._metadata = options._metadata || {};\n options._metadata.sdk = options._metadata.sdk || {\n name: 'sentry.javascript.browser',\n packages: [{\n name: 'npm:@sentry/browser',\n version: SDK_VERSION\n }],\n version: SDK_VERSION\n };\n _this = _super.call(this, BrowserBackend, options) || this;\n return _this;\n }\n /**\n * Show a report dialog to the user to send feedback to a specific event.\n *\n * @param options Set individual options for the dialog\n */\n\n\n BrowserClient.prototype.showReportDialog = function (options) {\n if (options === void 0) {\n options = {};\n } // doesn't work without a document (React Native)\n\n\n var document = getGlobalObject().document;\n\n if (!document) {\n return;\n }\n\n if (!this._isEnabled()) {\n IS_DEBUG_BUILD && logger.error('Trying to call showReportDialog with Sentry Client disabled');\n return;\n }\n\n injectReportDialog(__assign(__assign({}, options), {\n dsn: options.dsn || this.getDsn()\n }));\n };\n /**\n * @inheritDoc\n */\n\n\n BrowserClient.prototype._prepareEvent = function (event, scope, hint) {\n event.platform = event.platform || 'javascript';\n return _super.prototype._prepareEvent.call(this, event, scope, hint);\n };\n /**\n * @inheritDoc\n */\n\n\n BrowserClient.prototype._sendEvent = function (event) {\n var integration = this.getIntegration(Breadcrumbs);\n\n if (integration) {\n integration.addSentryBreadcrumb(event);\n }\n\n _super.prototype._sendEvent.call(this, event);\n };\n\n return BrowserClient;\n}(BaseClient);\n\nexport { BrowserClient };","import { __assign } from \"tslib\";\nimport { fill, getFunctionName, getGlobalObject, getOriginalFunction } from '@sentry/utils';\nimport { wrap } from '../helpers';\nvar DEFAULT_EVENT_TARGET = ['EventTarget', 'Window', 'Node', 'ApplicationCache', 'AudioTrackList', 'ChannelMergerNode', 'CryptoOperation', 'EventSource', 'FileReader', 'HTMLUnknownElement', 'IDBDatabase', 'IDBRequest', 'IDBTransaction', 'KeyOperation', 'MediaController', 'MessagePort', 'ModalWindow', 'Notification', 'SVGElementInstance', 'Screen', 'TextTrack', 'TextTrackCue', 'TextTrackList', 'WebSocket', 'WebSocketWorker', 'Worker', 'XMLHttpRequest', 'XMLHttpRequestEventTarget', 'XMLHttpRequestUpload'];\n/** Wrap timer functions and event targets to catch errors and provide better meta data */\n\nvar TryCatch =\n/** @class */\nfunction () {\n /**\n * @inheritDoc\n */\n function TryCatch(options) {\n /**\n * @inheritDoc\n */\n this.name = TryCatch.id;\n this._options = __assign({\n XMLHttpRequest: true,\n eventTarget: true,\n requestAnimationFrame: true,\n setInterval: true,\n setTimeout: true\n }, options);\n }\n /**\n * Wrap timer functions and event targets to catch errors\n * and provide better metadata.\n */\n\n\n TryCatch.prototype.setupOnce = function () {\n var global = getGlobalObject();\n\n if (this._options.setTimeout) {\n fill(global, 'setTimeout', _wrapTimeFunction);\n }\n\n if (this._options.setInterval) {\n fill(global, 'setInterval', _wrapTimeFunction);\n }\n\n if (this._options.requestAnimationFrame) {\n fill(global, 'requestAnimationFrame', _wrapRAF);\n }\n\n if (this._options.XMLHttpRequest && 'XMLHttpRequest' in global) {\n fill(XMLHttpRequest.prototype, 'send', _wrapXHR);\n }\n\n var eventTargetOption = this._options.eventTarget;\n\n if (eventTargetOption) {\n var eventTarget = Array.isArray(eventTargetOption) ? eventTargetOption : DEFAULT_EVENT_TARGET;\n eventTarget.forEach(_wrapEventTarget);\n }\n };\n /**\n * @inheritDoc\n */\n\n\n TryCatch.id = 'TryCatch';\n return TryCatch;\n}();\n\nexport { TryCatch };\n/** JSDoc */\n\nfunction _wrapTimeFunction(original) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return function () {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n var originalCallback = args[0];\n args[0] = wrap(originalCallback, {\n mechanism: {\n data: {\n function: getFunctionName(original)\n },\n handled: true,\n type: 'instrument'\n }\n });\n return original.apply(this, args);\n };\n}\n/** JSDoc */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\n\nfunction _wrapRAF(original) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return function (callback) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return original.apply(this, [wrap(callback, {\n mechanism: {\n data: {\n function: 'requestAnimationFrame',\n handler: getFunctionName(original)\n },\n handled: true,\n type: 'instrument'\n }\n })]);\n };\n}\n/** JSDoc */\n\n\nfunction _wrapXHR(originalSend) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return function () {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n } // eslint-disable-next-line @typescript-eslint/no-this-alias\n\n\n var xhr = this;\n var xmlHttpRequestProps = ['onload', 'onerror', 'onprogress', 'onreadystatechange'];\n xmlHttpRequestProps.forEach(function (prop) {\n if (prop in xhr && typeof xhr[prop] === 'function') {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n fill(xhr, prop, function (original) {\n var wrapOptions = {\n mechanism: {\n data: {\n function: prop,\n handler: getFunctionName(original)\n },\n handled: true,\n type: 'instrument'\n }\n }; // If Instrument integration has been called before TryCatch, get the name of original function\n\n var originalFunction = getOriginalFunction(original);\n\n if (originalFunction) {\n wrapOptions.mechanism.data.handler = getFunctionName(originalFunction);\n } // Otherwise wrap directly\n\n\n return wrap(original, wrapOptions);\n });\n }\n });\n return originalSend.apply(this, args);\n };\n}\n/** JSDoc */\n\n\nfunction _wrapEventTarget(target) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n var global = getGlobalObject(); // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n\n var proto = global[target] && global[target].prototype; // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, no-prototype-builtins\n\n if (!proto || !proto.hasOwnProperty || !proto.hasOwnProperty('addEventListener')) {\n return;\n }\n\n fill(proto, 'addEventListener', function (original) {\n return function (eventName, fn, options) {\n try {\n if (typeof fn.handleEvent === 'function') {\n fn.handleEvent = wrap(fn.handleEvent.bind(fn), {\n mechanism: {\n data: {\n function: 'handleEvent',\n handler: getFunctionName(fn),\n target: target\n },\n handled: true,\n type: 'instrument'\n }\n });\n }\n } catch (err) {// can sometimes get 'Permission denied to access property \"handle Event'\n }\n\n return original.apply(this, [eventName, // eslint-disable-next-line @typescript-eslint/no-explicit-any\n wrap(fn, {\n mechanism: {\n data: {\n function: 'addEventListener',\n handler: getFunctionName(fn),\n target: target\n },\n handled: true,\n type: 'instrument'\n }\n }), options]);\n };\n });\n fill(proto, 'removeEventListener', function (originalRemoveEventListener) {\n return function (eventName, fn, options) {\n /**\n * There are 2 possible scenarios here:\n *\n * 1. Someone passes a callback, which was attached prior to Sentry initialization, or by using unmodified\n * method, eg. `document.addEventListener.call(el, name, handler). In this case, we treat this function\n * as a pass-through, and call original `removeEventListener` with it.\n *\n * 2. Someone passes a callback, which was attached after Sentry was initialized, which means that it was using\n * our wrapped version of `addEventListener`, which internally calls `wrap` helper.\n * This helper \"wraps\" whole callback inside a try/catch statement, and attached appropriate metadata to it,\n * in order for us to make a distinction between wrapped/non-wrapped functions possible.\n * If a function was wrapped, it has additional property of `__sentry_wrapped__`, holding the handler.\n *\n * When someone adds a handler prior to initialization, and then do it again, but after,\n * then we have to detach both of them. Otherwise, if we'd detach only wrapped one, it'd be impossible\n * to get rid of the initial handler and it'd stick there forever.\n */\n var wrappedEventHandler = fn;\n\n try {\n var originalEventHandler = wrappedEventHandler && wrappedEventHandler.__sentry_wrapped__;\n\n if (originalEventHandler) {\n originalRemoveEventListener.call(this, eventName, originalEventHandler, options);\n }\n } catch (e) {// ignore, accessing __sentry_wrapped__ will throw in some Selenium environments\n }\n\n return originalRemoveEventListener.call(this, eventName, wrappedEventHandler, options);\n };\n });\n}","import { __assign, __read } from \"tslib\";\n/* eslint-disable @typescript-eslint/no-unsafe-member-access */\n\nimport { getCurrentHub } from '@sentry/core';\nimport { Severity } from '@sentry/types';\nimport { addExceptionMechanism, addInstrumentationHandler, getLocationHref, isErrorEvent, isPrimitive, isString, logger } from '@sentry/utils';\nimport { eventFromUnknownInput } from '../eventbuilder';\nimport { IS_DEBUG_BUILD } from '../flags';\nimport { shouldIgnoreOnError } from '../helpers';\n/** Global handlers */\n\nvar GlobalHandlers =\n/** @class */\nfunction () {\n /** JSDoc */\n function GlobalHandlers(options) {\n /**\n * @inheritDoc\n */\n this.name = GlobalHandlers.id;\n /**\n * Stores references functions to installing handlers. Will set to undefined\n * after they have been run so that they are not used twice.\n */\n\n this._installFunc = {\n onerror: _installGlobalOnErrorHandler,\n onunhandledrejection: _installGlobalOnUnhandledRejectionHandler\n };\n this._options = __assign({\n onerror: true,\n onunhandledrejection: true\n }, options);\n }\n /**\n * @inheritDoc\n */\n\n\n GlobalHandlers.prototype.setupOnce = function () {\n Error.stackTraceLimit = 50;\n var options = this._options; // We can disable guard-for-in as we construct the options object above + do checks against\n // `this._installFunc` for the property.\n // eslint-disable-next-line guard-for-in\n\n for (var key in options) {\n var installFunc = this._installFunc[key];\n\n if (installFunc && options[key]) {\n globalHandlerLog(key);\n installFunc();\n this._installFunc[key] = undefined;\n }\n }\n };\n /**\n * @inheritDoc\n */\n\n\n GlobalHandlers.id = 'GlobalHandlers';\n return GlobalHandlers;\n}();\n\nexport { GlobalHandlers };\n/** JSDoc */\n\nfunction _installGlobalOnErrorHandler() {\n addInstrumentationHandler('error', // eslint-disable-next-line @typescript-eslint/no-explicit-any\n function (data) {\n var _a = __read(getHubAndAttachStacktrace(), 2),\n hub = _a[0],\n attachStacktrace = _a[1];\n\n if (!hub.getIntegration(GlobalHandlers)) {\n return;\n }\n\n var msg = data.msg,\n url = data.url,\n line = data.line,\n column = data.column,\n error = data.error;\n\n if (shouldIgnoreOnError() || error && error.__sentry_own_request__) {\n return;\n }\n\n var event = error === undefined && isString(msg) ? _eventFromIncompleteOnError(msg, url, line, column) : _enhanceEventWithInitialFrame(eventFromUnknownInput(error || msg, undefined, attachStacktrace, false), url, line, column);\n event.level = Severity.Error;\n addMechanismAndCapture(hub, error, event, 'onerror');\n });\n}\n/** JSDoc */\n\n\nfunction _installGlobalOnUnhandledRejectionHandler() {\n addInstrumentationHandler('unhandledrejection', // eslint-disable-next-line @typescript-eslint/no-explicit-any\n function (e) {\n var _a = __read(getHubAndAttachStacktrace(), 2),\n hub = _a[0],\n attachStacktrace = _a[1];\n\n if (!hub.getIntegration(GlobalHandlers)) {\n return;\n }\n\n var error = e; // dig the object of the rejection out of known event types\n\n try {\n // PromiseRejectionEvents store the object of the rejection under 'reason'\n // see https://developer.mozilla.org/en-US/docs/Web/API/PromiseRejectionEvent\n if ('reason' in e) {\n error = e.reason;\n } // something, somewhere, (likely a browser extension) effectively casts PromiseRejectionEvents\n // to CustomEvents, moving the `promise` and `reason` attributes of the PRE into\n // the CustomEvent's `detail` attribute, since they're not part of CustomEvent's spec\n // see https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent and\n // https://github.com/getsentry/sentry-javascript/issues/2380\n else if ('detail' in e && 'reason' in e.detail) {\n error = e.detail.reason;\n }\n } catch (_oO) {// no-empty\n }\n\n if (shouldIgnoreOnError() || error && error.__sentry_own_request__) {\n return true;\n }\n\n var event = isPrimitive(error) ? _eventFromRejectionWithPrimitive(error) : eventFromUnknownInput(error, undefined, attachStacktrace, true);\n event.level = Severity.Error;\n addMechanismAndCapture(hub, error, event, 'onunhandledrejection');\n return;\n });\n}\n/**\n * Create an event from a promise rejection where the `reason` is a primitive.\n *\n * @param reason: The `reason` property of the promise rejection\n * @returns An Event object with an appropriate `exception` value\n */\n\n\nfunction _eventFromRejectionWithPrimitive(reason) {\n return {\n exception: {\n values: [{\n type: 'UnhandledRejection',\n // String() is needed because the Primitive type includes symbols (which can't be automatically stringified)\n value: \"Non-Error promise rejection captured with value: \" + String(reason)\n }]\n }\n };\n}\n/**\n * This function creates a stack from an old, error-less onerror handler.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\n\nfunction _eventFromIncompleteOnError(msg, url, line, column) {\n var ERROR_TYPES_RE = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i; // If 'message' is ErrorEvent, get real message from inside\n\n var message = isErrorEvent(msg) ? msg.message : msg;\n var name = 'Error';\n var groups = message.match(ERROR_TYPES_RE);\n\n if (groups) {\n name = groups[1];\n message = groups[2];\n }\n\n var event = {\n exception: {\n values: [{\n type: name,\n value: message\n }]\n }\n };\n return _enhanceEventWithInitialFrame(event, url, line, column);\n}\n/** JSDoc */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\n\nfunction _enhanceEventWithInitialFrame(event, url, line, column) {\n // event.exception\n var e = event.exception = event.exception || {}; // event.exception.values\n\n var ev = e.values = e.values || []; // event.exception.values[0]\n\n var ev0 = ev[0] = ev[0] || {}; // event.exception.values[0].stacktrace\n\n var ev0s = ev0.stacktrace = ev0.stacktrace || {}; // event.exception.values[0].stacktrace.frames\n\n var ev0sf = ev0s.frames = ev0s.frames || [];\n var colno = isNaN(parseInt(column, 10)) ? undefined : column;\n var lineno = isNaN(parseInt(line, 10)) ? undefined : line;\n var filename = isString(url) && url.length > 0 ? url : getLocationHref(); // event.exception.values[0].stacktrace.frames\n\n if (ev0sf.length === 0) {\n ev0sf.push({\n colno: colno,\n filename: filename,\n function: '?',\n in_app: true,\n lineno: lineno\n });\n }\n\n return event;\n}\n\nfunction globalHandlerLog(type) {\n IS_DEBUG_BUILD && logger.log(\"Global Handler attached: \" + type);\n}\n\nfunction addMechanismAndCapture(hub, error, event, type) {\n addExceptionMechanism(event, {\n handled: false,\n type: type\n });\n hub.captureEvent(event, {\n originalException: error\n });\n}\n\nfunction getHubAndAttachStacktrace() {\n var hub = getCurrentHub();\n var client = hub.getClient();\n var attachStacktrace = client && client.getOptions().attachStacktrace;\n return [hub, attachStacktrace];\n}","import { __read, __spread } from \"tslib\";\nimport { addGlobalEventProcessor, getCurrentHub } from '@sentry/core';\nimport { isInstanceOf } from '@sentry/utils';\nimport { exceptionFromError } from '../eventbuilder';\nvar DEFAULT_KEY = 'cause';\nvar DEFAULT_LIMIT = 5;\n/** Adds SDK info to an event. */\n\nvar LinkedErrors =\n/** @class */\nfunction () {\n /**\n * @inheritDoc\n */\n function LinkedErrors(options) {\n if (options === void 0) {\n options = {};\n }\n /**\n * @inheritDoc\n */\n\n\n this.name = LinkedErrors.id;\n this._key = options.key || DEFAULT_KEY;\n this._limit = options.limit || DEFAULT_LIMIT;\n }\n /**\n * @inheritDoc\n */\n\n\n LinkedErrors.prototype.setupOnce = function () {\n addGlobalEventProcessor(function (event, hint) {\n var self = getCurrentHub().getIntegration(LinkedErrors);\n return self ? _handler(self._key, self._limit, event, hint) : event;\n });\n };\n /**\n * @inheritDoc\n */\n\n\n LinkedErrors.id = 'LinkedErrors';\n return LinkedErrors;\n}();\n\nexport { LinkedErrors };\n/**\n * @inheritDoc\n */\n\nexport function _handler(key, limit, event, hint) {\n if (!event.exception || !event.exception.values || !hint || !isInstanceOf(hint.originalException, Error)) {\n return event;\n }\n\n var linkedErrors = _walkErrorTree(limit, hint.originalException, key);\n\n event.exception.values = __spread(linkedErrors, event.exception.values);\n return event;\n}\n/**\n * JSDOC\n */\n\nexport function _walkErrorTree(limit, error, key, stack) {\n if (stack === void 0) {\n stack = [];\n }\n\n if (!isInstanceOf(error[key], Error) || stack.length + 1 >= limit) {\n return stack;\n }\n\n var exception = exceptionFromError(error[key]);\n return _walkErrorTree(limit, error[key], key, __spread([exception], stack));\n}","import { logger } from '@sentry/utils';\nimport { IS_DEBUG_BUILD } from '../flags';\n/** Deduplication filter */\n\nvar Dedupe =\n/** @class */\nfunction () {\n function Dedupe() {\n /**\n * @inheritDoc\n */\n this.name = Dedupe.id;\n }\n /**\n * @inheritDoc\n */\n\n\n Dedupe.prototype.setupOnce = function (addGlobalEventProcessor, getCurrentHub) {\n addGlobalEventProcessor(function (currentEvent) {\n var self = getCurrentHub().getIntegration(Dedupe);\n\n if (self) {\n // Juuust in case something goes wrong\n try {\n if (_shouldDropEvent(currentEvent, self._previousEvent)) {\n IS_DEBUG_BUILD && logger.warn('Event dropped due to being a duplicate of previously captured event.');\n return null;\n }\n } catch (_oO) {\n return self._previousEvent = currentEvent;\n }\n\n return self._previousEvent = currentEvent;\n }\n\n return currentEvent;\n });\n };\n /**\n * @inheritDoc\n */\n\n\n Dedupe.id = 'Dedupe';\n return Dedupe;\n}();\n\nexport { Dedupe };\n/** JSDoc */\n\nfunction _shouldDropEvent(currentEvent, previousEvent) {\n if (!previousEvent) {\n return false;\n }\n\n if (_isSameMessageEvent(currentEvent, previousEvent)) {\n return true;\n }\n\n if (_isSameExceptionEvent(currentEvent, previousEvent)) {\n return true;\n }\n\n return false;\n}\n/** JSDoc */\n\n\nfunction _isSameMessageEvent(currentEvent, previousEvent) {\n var currentMessage = currentEvent.message;\n var previousMessage = previousEvent.message; // If neither event has a message property, they were both exceptions, so bail out\n\n if (!currentMessage && !previousMessage) {\n return false;\n } // If only one event has a stacktrace, but not the other one, they are not the same\n\n\n if (currentMessage && !previousMessage || !currentMessage && previousMessage) {\n return false;\n }\n\n if (currentMessage !== previousMessage) {\n return false;\n }\n\n if (!_isSameFingerprint(currentEvent, previousEvent)) {\n return false;\n }\n\n if (!_isSameStacktrace(currentEvent, previousEvent)) {\n return false;\n }\n\n return true;\n}\n/** JSDoc */\n\n\nfunction _isSameExceptionEvent(currentEvent, previousEvent) {\n var previousException = _getExceptionFromEvent(previousEvent);\n\n var currentException = _getExceptionFromEvent(currentEvent);\n\n if (!previousException || !currentException) {\n return false;\n }\n\n if (previousException.type !== currentException.type || previousException.value !== currentException.value) {\n return false;\n }\n\n if (!_isSameFingerprint(currentEvent, previousEvent)) {\n return false;\n }\n\n if (!_isSameStacktrace(currentEvent, previousEvent)) {\n return false;\n }\n\n return true;\n}\n/** JSDoc */\n\n\nfunction _isSameStacktrace(currentEvent, previousEvent) {\n var currentFrames = _getFramesFromEvent(currentEvent);\n\n var previousFrames = _getFramesFromEvent(previousEvent); // If neither event has a stacktrace, they are assumed to be the same\n\n\n if (!currentFrames && !previousFrames) {\n return true;\n } // If only one event has a stacktrace, but not the other one, they are not the same\n\n\n if (currentFrames && !previousFrames || !currentFrames && previousFrames) {\n return false;\n }\n\n currentFrames = currentFrames;\n previousFrames = previousFrames; // If number of frames differ, they are not the same\n\n if (previousFrames.length !== currentFrames.length) {\n return false;\n } // Otherwise, compare the two\n\n\n for (var i = 0; i < previousFrames.length; i++) {\n var frameA = previousFrames[i];\n var frameB = currentFrames[i];\n\n if (frameA.filename !== frameB.filename || frameA.lineno !== frameB.lineno || frameA.colno !== frameB.colno || frameA.function !== frameB.function) {\n return false;\n }\n }\n\n return true;\n}\n/** JSDoc */\n\n\nfunction _isSameFingerprint(currentEvent, previousEvent) {\n var currentFingerprint = currentEvent.fingerprint;\n var previousFingerprint = previousEvent.fingerprint; // If neither event has a fingerprint, they are assumed to be the same\n\n if (!currentFingerprint && !previousFingerprint) {\n return true;\n } // If only one event has a fingerprint, but not the other one, they are not the same\n\n\n if (currentFingerprint && !previousFingerprint || !currentFingerprint && previousFingerprint) {\n return false;\n }\n\n currentFingerprint = currentFingerprint;\n previousFingerprint = previousFingerprint; // Otherwise, compare the two\n\n try {\n return !!(currentFingerprint.join('') === previousFingerprint.join(''));\n } catch (_oO) {\n return false;\n }\n}\n/** JSDoc */\n\n\nfunction _getExceptionFromEvent(event) {\n return event.exception && event.exception.values && event.exception.values[0];\n}\n/** JSDoc */\n\n\nfunction _getFramesFromEvent(event) {\n var exception = event.exception;\n\n if (exception) {\n try {\n // @ts-ignore Object could be undefined\n return exception.values[0].stacktrace.frames;\n } catch (_oO) {\n return undefined;\n }\n } else if (event.stacktrace) {\n return event.stacktrace.frames;\n }\n\n return undefined;\n}","import { __assign } from \"tslib\";\nimport { addGlobalEventProcessor, getCurrentHub } from '@sentry/core';\nimport { getGlobalObject } from '@sentry/utils';\nvar global = getGlobalObject();\n/** UserAgent */\n\nvar UserAgent =\n/** @class */\nfunction () {\n function UserAgent() {\n /**\n * @inheritDoc\n */\n this.name = UserAgent.id;\n }\n /**\n * @inheritDoc\n */\n\n\n UserAgent.prototype.setupOnce = function () {\n addGlobalEventProcessor(function (event) {\n if (getCurrentHub().getIntegration(UserAgent)) {\n // if none of the information we want exists, don't bother\n if (!global.navigator && !global.location && !global.document) {\n return event;\n } // grab as much info as exists and add it to the event\n\n\n var url = event.request && event.request.url || global.location && global.location.href;\n var referrer = (global.document || {}).referrer;\n var userAgent = (global.navigator || {}).userAgent;\n\n var headers = __assign(__assign(__assign({}, event.request && event.request.headers), referrer && {\n Referer: referrer\n }), userAgent && {\n 'User-Agent': userAgent\n });\n\n var request = __assign(__assign({}, url && {\n url: url\n }), {\n headers: headers\n });\n\n return __assign(__assign({}, event), {\n request: request\n });\n }\n\n return event;\n });\n };\n /**\n * @inheritDoc\n */\n\n\n UserAgent.id = 'UserAgent';\n return UserAgent;\n}();\n\nexport { UserAgent };","import { __assign } from \"tslib\";\nimport { getCurrentHub, initAndBind, Integrations as CoreIntegrations } from '@sentry/core';\nimport { addInstrumentationHandler, getGlobalObject, logger, resolvedSyncPromise } from '@sentry/utils';\nimport { BrowserClient } from './client';\nimport { IS_DEBUG_BUILD } from './flags';\nimport { wrap as internalWrap } from './helpers';\nimport { Breadcrumbs, Dedupe, GlobalHandlers, LinkedErrors, TryCatch, UserAgent } from './integrations';\nexport var defaultIntegrations = [new CoreIntegrations.InboundFilters(), new CoreIntegrations.FunctionToString(), new TryCatch(), new Breadcrumbs(), new GlobalHandlers(), new LinkedErrors(), new Dedupe(), new UserAgent()];\n/**\n * The Sentry Browser SDK Client.\n *\n * To use this SDK, call the {@link init} function as early as possible when\n * loading the web page. To set context information or send manual events, use\n * the provided methods.\n *\n * @example\n *\n * ```\n *\n * import { init } from '@sentry/browser';\n *\n * init({\n * dsn: '__DSN__',\n * // ...\n * });\n * ```\n *\n * @example\n * ```\n *\n * import { configureScope } from '@sentry/browser';\n * configureScope((scope: Scope) => {\n * scope.setExtra({ battery: 0.7 });\n * scope.setTag({ user_mode: 'admin' });\n * scope.setUser({ id: '4711' });\n * });\n * ```\n *\n * @example\n * ```\n *\n * import { addBreadcrumb } from '@sentry/browser';\n * addBreadcrumb({\n * message: 'My Breadcrumb',\n * // ...\n * });\n * ```\n *\n * @example\n *\n * ```\n *\n * import * as Sentry from '@sentry/browser';\n * Sentry.captureMessage('Hello, world!');\n * Sentry.captureException(new Error('Good bye'));\n * Sentry.captureEvent({\n * message: 'Manual',\n * stacktrace: [\n * // ...\n * ],\n * });\n * ```\n *\n * @see {@link BrowserOptions} for documentation on configuration options.\n */\n\nexport function init(options) {\n if (options === void 0) {\n options = {};\n }\n\n if (options.defaultIntegrations === undefined) {\n options.defaultIntegrations = defaultIntegrations;\n }\n\n if (options.release === undefined) {\n var window_1 = getGlobalObject(); // This supports the variable that sentry-webpack-plugin injects\n\n if (window_1.SENTRY_RELEASE && window_1.SENTRY_RELEASE.id) {\n options.release = window_1.SENTRY_RELEASE.id;\n }\n }\n\n if (options.autoSessionTracking === undefined) {\n options.autoSessionTracking = true;\n }\n\n if (options.sendClientReports === undefined) {\n options.sendClientReports = true;\n }\n\n initAndBind(BrowserClient, options);\n\n if (options.autoSessionTracking) {\n startSessionTracking();\n }\n}\n/**\n * Present the user with a report dialog.\n *\n * @param options Everything is optional, we try to fetch all info need from the global scope.\n */\n\nexport function showReportDialog(options) {\n if (options === void 0) {\n options = {};\n }\n\n var hub = getCurrentHub();\n var scope = hub.getScope();\n\n if (scope) {\n options.user = __assign(__assign({}, scope.getUser()), options.user);\n }\n\n if (!options.eventId) {\n options.eventId = hub.lastEventId();\n }\n\n var client = hub.getClient();\n\n if (client) {\n client.showReportDialog(options);\n }\n}\n/**\n * This is the getter for lastEventId.\n *\n * @returns The last event id of a captured event.\n */\n\nexport function lastEventId() {\n return getCurrentHub().lastEventId();\n}\n/**\n * This function is here to be API compatible with the loader.\n * @hidden\n */\n\nexport function forceLoad() {// Noop\n}\n/**\n * This function is here to be API compatible with the loader.\n * @hidden\n */\n\nexport function onLoad(callback) {\n callback();\n}\n/**\n * Call `flush()` on the current client, if there is one. See {@link Client.flush}.\n *\n * @param timeout Maximum time in ms the client should wait to flush its event queue. Omitting this parameter will cause\n * the client to wait until all events are sent before resolving the promise.\n * @returns A promise which resolves to `true` if the queue successfully drains before the timeout, or `false` if it\n * doesn't (or if there's no client defined).\n */\n\nexport function flush(timeout) {\n var client = getCurrentHub().getClient();\n\n if (client) {\n return client.flush(timeout);\n }\n\n IS_DEBUG_BUILD && logger.warn('Cannot flush events. No client defined.');\n return resolvedSyncPromise(false);\n}\n/**\n * Call `close()` on the current client, if there is one. See {@link Client.close}.\n *\n * @param timeout Maximum time in ms the client should wait to flush its event queue before shutting down. Omitting this\n * parameter will cause the client to wait until all events are sent before disabling itself.\n * @returns A promise which resolves to `true` if the queue successfully drains before the timeout, or `false` if it\n * doesn't (or if there's no client defined).\n */\n\nexport function close(timeout) {\n var client = getCurrentHub().getClient();\n\n if (client) {\n return client.close(timeout);\n }\n\n IS_DEBUG_BUILD && logger.warn('Cannot flush events and disable SDK. No client defined.');\n return resolvedSyncPromise(false);\n}\n/**\n * Wrap code within a try/catch block so the SDK is able to capture errors.\n *\n * @param fn A function to wrap.\n *\n * @returns The result of wrapped function call.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\nexport function wrap(fn) {\n return internalWrap(fn)();\n}\n\nfunction startSessionOnHub(hub) {\n hub.startSession({\n ignoreDuration: true\n });\n hub.captureSession();\n}\n/**\n * Enable automatic Session Tracking for the initial page load.\n */\n\n\nfunction startSessionTracking() {\n var window = getGlobalObject();\n var document = window.document;\n\n if (typeof document === 'undefined') {\n IS_DEBUG_BUILD && logger.warn('Session tracking in non-browser environment with @sentry/browser is not supported.');\n return;\n }\n\n var hub = getCurrentHub(); // The only way for this to be false is for there to be a version mismatch between @sentry/browser (>= 6.0.0) and\n // @sentry/hub (< 5.27.0). In the simple case, there won't ever be such a mismatch, because the two packages are\n // pinned at the same version in package.json, but there are edge cases where it's possible. See\n // https://github.com/getsentry/sentry-javascript/issues/3207 and\n // https://github.com/getsentry/sentry-javascript/issues/3234 and\n // https://github.com/getsentry/sentry-javascript/issues/3278.\n\n if (!hub.captureSession) {\n return;\n } // The session duration for browser sessions does not track a meaningful\n // concept that can be used as a metric.\n // Automatically captured sessions are akin to page views, and thus we\n // discard their duration.\n\n\n startSessionOnHub(hub); // We want to create a session for every navigation as well\n\n addInstrumentationHandler('history', function (_a) {\n var from = _a.from,\n to = _a.to; // Don't create an additional session for the initial route or if the location did not change\n\n if (!(from === undefined || from === to)) {\n startSessionOnHub(getCurrentHub());\n }\n });\n}","import { getCurrentHub } from '@sentry/hub';\nimport { logger } from '@sentry/utils';\nimport { IS_DEBUG_BUILD } from './flags';\n/**\n * Internal function to create a new SDK client instance. The client is\n * installed and then bound to the current scope.\n *\n * @param clientClass The client class to instantiate.\n * @param options Options to pass to the client.\n */\n\nexport function initAndBind(clientClass, options) {\n if (options.debug === true) {\n if (IS_DEBUG_BUILD) {\n logger.enable();\n } else {\n // use `console.warn` rather than `logger.warn` since by non-debug bundles have all `logger.x` statements stripped\n // eslint-disable-next-line no-console\n console.warn('[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.');\n }\n }\n\n var hub = getCurrentHub();\n var scope = hub.getScope();\n\n if (scope) {\n scope.update(options.initialScope);\n }\n\n var client = new clientClass(options);\n hub.bindClient(client);\n}","export var DEFAULT_HOOKS = ['activate', 'mount', 'update'];","// Vendored directly from https://github.com/vuejs/vue/blob/master/src/core/util/debug.js with types only changes.\nvar classifyRE = /(?:^|[-_])(\\w)/g;\n\nvar classify = function classify(str) {\n return str.replace(classifyRE, function (c) {\n return c.toUpperCase();\n }).replace(/[-_]/g, '');\n};\n\nvar ROOT_COMPONENT_NAME = '';\nvar ANONYMOUS_COMPONENT_NAME = '';\n\nvar repeat = function repeat(str, n) {\n var res = '';\n\n while (n) {\n if (n % 2 === 1) {\n res += str;\n }\n\n if (n > 1) {\n str += str; // eslint-disable-line no-param-reassign\n }\n\n n >>= 1; // eslint-disable-line no-bitwise, no-param-reassign\n }\n\n return res;\n};\n\nexport var formatComponentName = function formatComponentName(vm, includeFile) {\n if (!vm) {\n return ANONYMOUS_COMPONENT_NAME;\n }\n\n if (vm.$root === vm) {\n return ROOT_COMPONENT_NAME;\n }\n\n var options = vm.$options;\n var name = options.name || options._componentTag;\n var file = options.__file;\n\n if (!name && file) {\n var match = file.match(/([^/\\\\]+)\\.vue$/);\n\n if (match) {\n name = match[1];\n }\n }\n\n return (name ? \"<\" + classify(name) + \">\" : ANONYMOUS_COMPONENT_NAME) + (file && includeFile !== false ? \" at \" + file : '');\n};\nexport var generateComponentTrace = function generateComponentTrace(vm) {\n var _a, _b, _c;\n\n if ((((_a = vm) === null || _a === void 0 ? void 0 : _a._isVue) || ((_b = vm) === null || _b === void 0 ? void 0 : _b.__isVue)) && ((_c = vm) === null || _c === void 0 ? void 0 : _c.$parent)) {\n var tree = [];\n var currentRecursiveSequence = 0;\n\n while (vm) {\n if (tree.length > 0) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n var last = tree[tree.length - 1]; // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n\n if (last.constructor === vm.constructor) {\n currentRecursiveSequence += 1;\n vm = vm.$parent; // eslint-disable-line no-param-reassign\n\n continue;\n } else if (currentRecursiveSequence > 0) {\n tree[tree.length - 1] = [last, currentRecursiveSequence];\n currentRecursiveSequence = 0;\n }\n }\n\n tree.push(vm);\n vm = vm.$parent; // eslint-disable-line no-param-reassign\n }\n\n var formattedTree = tree.map(function (vm, i) {\n return \"\" + ((i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm) ? formatComponentName(vm[0]) + \"... (\" + vm[1] + \" recursive calls)\" : formatComponentName(vm)));\n }).join('\\n');\n return \"\\n\\nfound in\\n\\n\" + formattedTree;\n }\n\n return \"\\n\\n(found in \" + formatComponentName(vm) + \")\";\n};","import { getCurrentHub } from '@sentry/browser';\nimport { formatComponentName, generateComponentTrace } from './components';\nexport var attachErrorHandler = function attachErrorHandler(app, options) {\n var _a = app.config,\n errorHandler = _a.errorHandler,\n warnHandler = _a.warnHandler,\n silent = _a.silent;\n\n app.config.errorHandler = function (error, vm, lifecycleHook) {\n var componentName = formatComponentName(vm, false);\n var trace = vm ? generateComponentTrace(vm) : '';\n var metadata = {\n componentName: componentName,\n lifecycleHook: lifecycleHook,\n trace: trace\n };\n\n if (vm && options.attachProps) {\n // Vue2 - $options.propsData\n // Vue3 - $props\n metadata.propsData = vm.$options.propsData || vm.$props;\n } // Capture exception in the next event loop, to make sure that all breadcrumbs are recorded in time.\n\n\n setTimeout(function () {\n getCurrentHub().withScope(function (scope) {\n scope.setContext('vue', metadata);\n getCurrentHub().captureException(error);\n });\n });\n\n if (typeof errorHandler === 'function') {\n errorHandler.call(app, error, vm, lifecycleHook);\n }\n\n if (options.logErrors) {\n var hasConsole = typeof console !== 'undefined';\n var message = \"Error in \" + lifecycleHook + \": \\\"\" + (error && error.toString()) + \"\\\"\";\n\n if (warnHandler) {\n warnHandler.call(null, message, vm, trace);\n } else if (hasConsole && !silent) {\n // eslint-disable-next-line no-console\n console.error(\"[Vue warn]: \" + message + trace);\n }\n }\n };\n};","/*\n * This file defines flags and constants that can be modified during compile time in order to facilitate tree shaking\n * for users.\n *\n * Debug flags need to be declared in each package individually and must not be imported across package boundaries,\n * because some build tools have trouble tree-shaking imported guards.\n *\n * As a convention, we define debug flags in a `flags.ts` file in the root of a package's `src` folder.\n *\n * Debug flag files will contain \"magic strings\" like `__SENTRY_DEBUG__` that may get replaced with actual values during\n * our, or the user's build process. Take care when introducing new flags - they must not throw if they are not\n * replaced.\n */\n\n/** Flag that is true for debug builds, false otherwise. */\nexport var IS_DEBUG_BUILD = typeof __SENTRY_DEBUG__ === 'undefined' ? true : __SENTRY_DEBUG__;","import { __values } from \"tslib\";\nimport { getCurrentHub } from '@sentry/browser';\nimport { logger, timestampInSeconds } from '@sentry/utils';\nimport { formatComponentName } from './components';\nimport { DEFAULT_HOOKS } from './constants';\nimport { IS_DEBUG_BUILD } from './flags';\nvar VUE_OP = 'ui.vue'; // Mappings from operation to corresponding lifecycle hook.\n\nvar HOOKS = {\n activate: ['activated', 'deactivated'],\n create: ['beforeCreate', 'created'],\n destroy: ['beforeDestroy', 'destroyed'],\n mount: ['beforeMount', 'mounted'],\n update: ['beforeUpdate', 'updated']\n};\n/** Grabs active transaction off scope, if any */\n\nfunction getActiveTransaction() {\n var _a;\n\n return (_a = getCurrentHub().getScope()) === null || _a === void 0 ? void 0 : _a.getTransaction();\n}\n/** Finish top-level span and activity with a debounce configured using `timeout` option */\n\n\nfunction finishRootSpan(vm, timestamp, timeout) {\n if (vm.$_sentryRootSpanTimer) {\n clearTimeout(vm.$_sentryRootSpanTimer);\n }\n\n vm.$_sentryRootSpanTimer = setTimeout(function () {\n var _a;\n\n if ((_a = vm.$root) === null || _a === void 0 ? void 0 : _a.$_sentryRootSpan) {\n vm.$root.$_sentryRootSpan.finish(timestamp);\n vm.$root.$_sentryRootSpan = undefined;\n }\n }, timeout);\n}\n\nexport var createTracingMixins = function createTracingMixins(options) {\n var e_1, _a;\n\n var hooks = (options.hooks || []).concat(DEFAULT_HOOKS) // Removing potential duplicates\n .filter(function (value, index, self) {\n return self.indexOf(value) === index;\n });\n var mixins = {};\n\n var _loop_1 = function _loop_1(operation) {\n var e_2, _a; // Retrieve corresponding hooks from Vue lifecycle.\n // eg. mount => ['beforeMount', 'mounted']\n\n\n var internalHooks = HOOKS[operation];\n\n if (!internalHooks) {\n IS_DEBUG_BUILD && logger.warn(\"Unknown hook: \" + operation);\n return \"continue\";\n }\n\n var _loop_2 = function _loop_2(internalHook) {\n mixins[internalHook] = function () {\n var _a;\n\n var isRoot = this.$root === this;\n\n if (isRoot) {\n var activeTransaction = getActiveTransaction();\n\n if (activeTransaction) {\n this.$_sentryRootSpan = this.$_sentryRootSpan || activeTransaction.startChild({\n description: 'Application Render',\n op: VUE_OP\n });\n }\n } // Skip components that we don't want to track to minimize the noise and give a more granular control to the user\n\n\n var name = formatComponentName(this, false);\n var shouldTrack = Array.isArray(options.trackComponents) ? options.trackComponents.includes(name) : options.trackComponents; // We always want to track root component\n\n if (!isRoot && !shouldTrack) {\n return;\n }\n\n this.$_sentrySpans = this.$_sentrySpans || {}; // Start a new span if current hook is a 'before' hook.\n // Otherwise, retrieve the current span and finish it.\n\n if (internalHook == internalHooks[0]) {\n var activeTransaction = ((_a = this.$root) === null || _a === void 0 ? void 0 : _a.$_sentryRootSpan) || getActiveTransaction();\n\n if (activeTransaction) {\n this.$_sentrySpans[operation] = activeTransaction.startChild({\n description: \"Vue <\" + name + \">\",\n op: VUE_OP + \".\" + operation\n });\n }\n } else {\n // The span should already be added via the first handler call (in the 'before' hook)\n var span = this.$_sentrySpans[operation]; // The before hook did not start the tracking span, so the span was not added.\n // This is probably because it happened before there is an active transaction\n\n if (!span) return;\n span.finish();\n finishRootSpan(this, timestampInSeconds(), options.timeout);\n }\n };\n };\n\n try {\n for (var internalHooks_1 = (e_2 = void 0, __values(internalHooks)), internalHooks_1_1 = internalHooks_1.next(); !internalHooks_1_1.done; internalHooks_1_1 = internalHooks_1.next()) {\n var internalHook = internalHooks_1_1.value;\n\n _loop_2(internalHook);\n }\n } catch (e_2_1) {\n e_2 = {\n error: e_2_1\n };\n } finally {\n try {\n if (internalHooks_1_1 && !internalHooks_1_1.done && (_a = internalHooks_1.return)) _a.call(internalHooks_1);\n } finally {\n if (e_2) throw e_2.error;\n }\n }\n };\n\n try {\n for (var hooks_1 = __values(hooks), hooks_1_1 = hooks_1.next(); !hooks_1_1.done; hooks_1_1 = hooks_1.next()) {\n var operation = hooks_1_1.value;\n\n _loop_1(operation);\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (hooks_1_1 && !hooks_1_1.done && (_a = hooks_1.return)) _a.call(hooks_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n return mixins;\n};","import { __assign } from \"tslib\";\nimport { init as browserInit, SDK_VERSION } from '@sentry/browser';\nimport { getGlobalObject, logger } from '@sentry/utils';\nimport { DEFAULT_HOOKS } from './constants';\nimport { attachErrorHandler } from './errorhandler';\nimport { IS_DEBUG_BUILD } from './flags';\nimport { createTracingMixins } from './tracing';\nvar DEFAULT_CONFIG = {\n Vue: getGlobalObject().Vue,\n attachProps: true,\n logErrors: false,\n hooks: DEFAULT_HOOKS,\n timeout: 2000,\n trackComponents: false,\n _metadata: {\n sdk: {\n name: 'sentry.javascript.vue',\n packages: [{\n name: 'npm:@sentry/vue',\n version: SDK_VERSION\n }],\n version: SDK_VERSION\n }\n }\n};\n/**\n * Inits the Vue SDK\n */\n\nexport function init(config) {\n if (config === void 0) {\n config = {};\n }\n\n var options = __assign(__assign({}, DEFAULT_CONFIG), config);\n\n browserInit(options);\n\n if (!options.Vue && !options.app) {\n IS_DEBUG_BUILD && logger.warn('Misconfigured SDK. Vue specific errors will not be captured.\\n' + 'Update your `Sentry.init` call with an appropriate config option:\\n' + '`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).');\n return;\n }\n\n if (options.app) {\n var apps = Array.isArray(options.app) ? options.app : [options.app];\n apps.forEach(function (app) {\n return vueInit(app, options);\n });\n } else if (options.Vue) {\n vueInit(options.Vue, options);\n }\n}\n\nvar vueInit = function vueInit(app, options) {\n attachErrorHandler(app, options);\n\n if ('tracesSampleRate' in options || 'tracesSampler' in options) {\n app.mixin(createTracingMixins(__assign(__assign({}, options), options.tracingOptions)));\n }\n};","import {\n format,\n isSameYear,\n fromUnixTime,\n formatDistanceToNow,\n} from 'date-fns';\n\n/**\n * Formats a Unix timestamp into a human-readable time format.\n * @param {number} time - Unix timestamp.\n * @param {string} [dateFormat='h:mm a'] - Desired format of the time.\n * @returns {string} Formatted time string.\n */\nexport const messageStamp = (time, dateFormat = 'h:mm a') => {\n const unixTime = fromUnixTime(time);\n return format(unixTime, dateFormat);\n};\n\n/**\n * Provides a formatted timestamp, adjusting the format based on the current year.\n * @param {number} time - Unix timestamp.\n * @param {string} [dateFormat='MMM d, yyyy'] - Desired date format.\n * @returns {string} Formatted date string.\n */\nexport const messageTimestamp = (time, dateFormat = 'MMM d, yyyy') => {\n const messageTime = fromUnixTime(time);\n const now = new Date();\n const messageDate = format(messageTime, dateFormat);\n if (!isSameYear(messageTime, now)) {\n return format(messageTime, 'LLL d y, h:mm a');\n }\n return messageDate;\n};\n\n/**\n * Converts a Unix timestamp to a relative time string (e.g., 3 hours ago).\n * @param {number} time - Unix timestamp.\n * @returns {string} Relative time string.\n */\nexport const dynamicTime = time => {\n const unixTime = fromUnixTime(time);\n return formatDistanceToNow(unixTime, { addSuffix: true });\n};\n\n/**\n * Formats a Unix timestamp into a specified date format.\n * @param {number} time - Unix timestamp.\n * @param {string} [dateFormat='MMM d, yyyy'] - Desired date format.\n * @returns {string} Formatted date string.\n */\nexport const dateFormat = (time, df = 'MMM d, yyyy') => {\n const unixTime = fromUnixTime(time);\n return format(unixTime, df);\n};\n\n/**\n * Converts a detailed time description into a shorter format, optionally appending 'ago'.\n * @param {string} time - Detailed time description (e.g., 'a minute ago').\n * @param {boolean} [withAgo=false] - Whether to append 'ago' to the result.\n * @returns {string} Shortened time description.\n */\nexport const shortTimestamp = (time, withAgo = false) => {\n // This function takes a time string and converts it to a short time string\n // with the following format: 1m, 1h, 1d, 1mo, 1y\n // The function also takes an optional boolean parameter withAgo\n // which will add the word \"ago\" to the end of the time string\n const suffix = withAgo ? ' ago' : '';\n const timeMappings = {\n 'less than a minute ago': 'now',\n 'a minute ago': `1m${suffix}`,\n 'an hour ago': `1h${suffix}`,\n 'a day ago': `1d${suffix}`,\n 'a month ago': `1mo${suffix}`,\n 'a year ago': `1y${suffix}`,\n };\n // Check if the time string is one of the specific cases\n if (timeMappings[time]) {\n return timeMappings[time];\n }\n const convertToShortTime = time\n .replace(/about|over|almost|/g, '')\n .replace(' minute ago', `m${suffix}`)\n .replace(' minutes ago', `m${suffix}`)\n .replace(' hour ago', `h${suffix}`)\n .replace(' hours ago', `h${suffix}`)\n .replace(' day ago', `d${suffix}`)\n .replace(' days ago', `d${suffix}`)\n .replace(' month ago', `mo${suffix}`)\n .replace(' months ago', `mo${suffix}`)\n .replace(' year ago', `y${suffix}`)\n .replace(' years ago', `y${suffix}`);\n return convertToShortTime;\n};\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref:\"editorRoot\",staticClass:\"relative editor-root\"},[(_vm.showUserMentions && _vm.isPrivate)?_c('TagAgents',{attrs:{\"search-key\":_vm.mentionSearchKey},on:{\"click\":_vm.insertMentionNode}}):_vm._e(),_vm._v(\" \"),(_vm.shouldShowCannedResponses)?_c('CannedResponse',{attrs:{\"search-key\":_vm.cannedSearchTerm},on:{\"click\":_vm.insertCannedResponse}}):_vm._e(),_vm._v(\" \"),(_vm.shouldShowVariables)?_c('VariableList',{attrs:{\"search-key\":_vm.variableSearchTerm},on:{\"click\":_vm.insertVariable}}):_vm._e(),_vm._v(\" \"),_c('input',{ref:\"imageUpload\",attrs:{\"type\":\"file\",\"accept\":\"image/png, image/jpeg, image/jpg, image/gif, image/webp\",\"hidden\":\"\"},on:{\"change\":_vm.onFileChange}}),_vm._v(\" \"),_c('div',{ref:\"editor\"}),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isImageNodeSelected && _vm.showImageResizeToolbar),expression:\"isImageNodeSelected && showImageResizeToolbar\"}],staticClass:\"absolute shadow-md rounded-[4px] flex gap-1 py-1 px-1 bg-slate-50 dark:bg-slate-700 text-slate-800 dark:text-slate-50\",style:({\n top: _vm.toolbarPosition.top,\n left: _vm.toolbarPosition.left,\n })},_vm._l((_vm.sizes),function(size){return _c('button',{key:size.name,staticClass:\"text-xs font-medium rounded-[4px] border border-solid border-slate-200 dark:border-slate-600 px-1.5 py-0.5 hover:bg-slate-100 dark:hover:bg-slate-800\",on:{\"click\":function($event){return _vm.setURLWithQueryAndImageSize(size)}}},[_vm._v(\"\\n \"+_vm._s(size.name)+\"\\n \")])}),0),_vm._v(\" \"),_vm._t(\"footer\")],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n/**\n * This file is a modified version of prosemirror-suggestions\n * https://github.com/quartzy/prosemirror-suggestions/blob/master/src/suggestions.js\n */\nimport { Plugin, PluginKey } from 'prosemirror-state';\nimport { Decoration, DecorationSet } from 'prosemirror-view';\nexport var triggerCharacters = function triggerCharacters(char) {\n return function ($position) {\n var regexp = new RegExp(\"(?:^)?\".concat(char, \"[^\\\\s\").concat(char, \"]*\"), 'g');\n var textFrom = $position.before();\n var textTo = $position.end();\n var text = $position.doc.textBetween(textFrom, textTo, '\\0', '\\0');\n var match; // eslint-disable-next-line\n\n while (match = regexp.exec(text)) {\n var prefix = match.input.slice(Math.max(0, match.index - 1), match.index);\n\n if (!/^[\\s\\0]?$/.test(prefix)) {\n // eslint-disable-next-line\n continue;\n }\n\n var from = match.index + $position.start();\n var to = from + match[0].length;\n\n if (from < $position.pos && to >= $position.pos) {\n return {\n range: {\n from: from,\n to: to\n },\n text: match[0]\n };\n }\n }\n\n return null;\n };\n};\nexport var suggestionsPlugin = function suggestionsPlugin(_ref) {\n var matcher = _ref.matcher,\n _ref$suggestionClass = _ref.suggestionClass,\n suggestionClass = _ref$suggestionClass === void 0 ? 'prosemirror-mention-node' : _ref$suggestionClass,\n _ref$onEnter = _ref.onEnter,\n onEnter = _ref$onEnter === void 0 ? function () {\n return false;\n } : _ref$onEnter,\n _ref$onChange = _ref.onChange,\n onChange = _ref$onChange === void 0 ? function () {\n return false;\n } : _ref$onChange,\n _ref$onExit = _ref.onExit,\n onExit = _ref$onExit === void 0 ? function () {\n return false;\n } : _ref$onExit,\n _ref$onKeyDown = _ref.onKeyDown,\n onKeyDown = _ref$onKeyDown === void 0 ? function () {\n return false;\n } : _ref$onKeyDown;\n return new Plugin({\n key: new PluginKey('mentions'),\n view: function view() {\n var _this = this;\n\n return {\n update: function update(view, prevState) {\n var prev = _this.key.getState(prevState);\n\n var next = _this.key.getState(view.state);\n\n var moved = prev.active && next.active && prev.range.from !== next.range.from;\n var started = !prev.active && next.active;\n var stopped = prev.active && !next.active;\n var changed = !started && !stopped && prev.text !== next.text;\n if (stopped || moved) onExit({\n view: view,\n range: prev.range,\n text: prev.text\n });\n if (changed && !moved) onChange({\n view: view,\n range: next.range,\n text: next.text\n });\n if (started || moved) onEnter({\n view: view,\n range: next.range,\n text: next.text\n });\n }\n };\n },\n state: {\n init: function init() {\n return {\n active: false,\n range: {},\n text: null\n };\n },\n apply: function apply(tr, prev) {\n var selection = tr.selection;\n\n var next = _objectSpread({}, prev);\n\n if (selection.from === selection.to) {\n if (selection.from < prev.range.from || selection.from > prev.range.to) {\n next.active = false;\n }\n\n var $position = selection.$from;\n var match = matcher($position);\n\n if (match) {\n next.active = true;\n next.range = match.range;\n next.text = match.text;\n } else {\n next.active = false;\n }\n } else {\n next.active = false;\n }\n\n if (!next.active) {\n next.range = {};\n next.text = null;\n }\n\n return next;\n }\n },\n props: {\n handleKeyDown: function handleKeyDown(view, event) {\n var _this$getState = this.getState(view.state),\n active = _this$getState.active;\n\n if (!active) return false;\n return onKeyDown({\n view: view,\n event: event\n });\n },\n decorations: function decorations(editorState) {\n var _this$getState2 = this.getState(editorState),\n active = _this$getState2.active,\n range = _this$getState2.range;\n\n if (!active) return null;\n return DecorationSet.create(editorState.doc, [Decoration.inline(range.from, range.to, {\n nodeName: 'span',\n class: suggestionClass\n })]);\n }\n }\n });\n};","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TagAgents.vue?vue&type=script&setup=true&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TagAgents.vue?vue&type=script&setup=true&lang=js&\"","\n\n\n \n
\n - \n
\n \n
\n \n
\n {{ agent.name }}\n
\n
\n {{ agent.email }}\n
\n
\n \n
\n
\n\n","import { render, staticRenderFns } from \"./TagAgents.vue?vue&type=template&id=8d4b0dca&\"\nimport script from \"./TagAgents.vue?vue&type=script&setup=true&lang=js&\"\nexport * from \"./TagAgents.vue?vue&type=script&setup=true&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',[(_setup.items.length)?_c('ul',{ref:\"tagAgentsRef\",staticClass:\"vertical dropdown menu mention--box bg-white text-sm dark:bg-slate-700 rounded-md overflow-auto absolute w-full z-20 pt-2 px-2 pb-0 shadow-md left-0 leading-[1.2] bottom-full max-h-[12.5rem] border-t border-solid border-slate-75 dark:border-slate-800\",class:{\n 'border-b-[0.5rem] border-solid border-white dark:!border-slate-700':\n _setup.items.length <= 4,\n }},_vm._l((_setup.items),function(agent,index){return _c('li',{key:agent.id,staticClass:\"flex items-center p-2 rounded-md last:mb-2\",class:{\n 'bg-slate-50 dark:bg-slate-800': index === _setup.selectedIndex,\n 'last:mb-0': _setup.items.length <= 4,\n },attrs:{\"id\":`mention-item-${index}`},on:{\"click\":function($event){return _setup.onAgentSelect(index)},\"mouseover\":function($event){return _setup.onHover(index)}}},[_c('div',{staticClass:\"mr-2\"},[_c('woot-thumbnail',{attrs:{\"src\":agent.thumbnail,\"username\":agent.name,\"size\":\"32px\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"flex-1 max-w-full overflow-hidden whitespace-nowrap text-ellipsis\"},[_c('h5',{staticClass:\"mb-0 overflow-hidden text-sm text-slate-800 dark:text-slate-100 whitespace-nowrap text-ellipsis\",class:{\n 'text-slate-900 dark:text-slate-100': index === _setup.selectedIndex,\n }},[_vm._v(\"\\n \"+_vm._s(agent.name)+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"overflow-hidden text-xs whitespace-nowrap text-ellipsis text-slate-700 dark:text-slate-300\",class:{\n 'text-slate-800 dark:text-slate-200': index === _setup.selectedIndex,\n }},[_vm._v(\"\\n \"+_vm._s(agent.email)+\"\\n \")])])])}),0):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n \n \n \n {{ item.description }}\n \n ({{ item.label }})\n \n \n\n\n\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VariableList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VariableList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./VariableList.vue?vue&type=template&id=8dd67294&scoped=true&\"\nimport script from \"./VariableList.vue?vue&type=script&lang=js&\"\nexport * from \"./VariableList.vue?vue&type=script&lang=js&\"\nimport style0 from \"./VariableList.vue?vue&type=style&index=0&id=8dd67294&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"8dd67294\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.items.length)?_c('MentionBox',{attrs:{\"type\":\"variable\",\"items\":_vm.items},on:{\"mentionSelect\":_vm.handleVariableClick},scopedSlots:_vm._u([{key:\"default\",fn:function({ item }){return [_c('span',{staticClass:\"text-capitalize variable--list-label\"},[_vm._v(\"\\n \"+_vm._s(item.description)+\"\\n \")]),_vm._v(\"\\n (\"+_vm._s(item.label)+\")\\n \")]}}],null,false,2990095034)}):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n \n
\n
\n
\n
\n
\n
\n \n
\n
\n
\n\n\n\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Editor.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Editor.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Editor.vue?vue&type=template&id=605e26a0&\"\nimport script from \"./Editor.vue?vue&type=script&lang=js&\"\nexport * from \"./Editor.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Editor.vue?vue&type=style&index=0&id=605e26a0&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","/**\n * Writes a text string to the system clipboard.\n *\n * @async\n * @param {string} text text to be written to the clipboard\n * @throws {Error} unable to copy text to clipboard\n */\nexport const copyTextToClipboard = async text => {\n try {\n await navigator.clipboard.writeText(text);\n } catch (error) {\n throw new Error(`Unable to copy text to clipboard: ${error.message}`);\n }\n};\n","export const formatBytes = (bytes, decimals = 2) => {\n if (bytes === 0) return '0 Bytes';\n\n const k = 1024;\n const dm = decimals < 0 ? 0 : decimals;\n const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];\n\n const i = Math.floor(Math.log(bytes) / Math.log(k));\n\n return parseFloat((bytes / k ** i).toFixed(dm)) + ' ' + sizes[i];\n};\n\nexport const fileSizeInMegaBytes = bytes => {\n return bytes / (1024 * 1024);\n};\n\nexport const checkFileSizeLimit = (file, maximumUploadLimit) => {\n const fileSize = file?.file?.size || file?.size;\n const fileSizeInMB = fileSizeInMegaBytes(fileSize);\n return fileSizeInMB <= maximumUploadLimit;\n};\n","var fails = require('../internals/fails');\nvar whitespaces = require('../internals/whitespaces');\n\nvar non = '\\u200B\\u0085\\u180E';\n\n// check that a method works with the correct list\n// of whitespaces and has a correct name\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() != non || whitespaces[METHOD_NAME].name !== METHOD_NAME;\n });\n};\n","const countries = [\n {\n name: 'Afghanistan',\n dial_code: '+93',\n emoji: '🇦🇫',\n id: 'AF',\n },\n {\n name: 'Aland Islands',\n dial_code: '+358',\n emoji: '🇦🇽',\n id: 'AX',\n },\n {\n name: 'Albania',\n dial_code: '+355',\n emoji: '🇦🇱',\n id: 'AL',\n },\n {\n name: 'Algeria',\n dial_code: '+213',\n emoji: '🇩🇿',\n id: 'DZ',\n },\n {\n name: 'AmericanSamoa',\n dial_code: '+1684',\n emoji: '🇦🇸',\n id: 'AS',\n },\n {\n name: 'Andorra',\n dial_code: '+376',\n emoji: '🇦🇩',\n id: 'AD',\n },\n {\n name: 'Angola',\n dial_code: '+244',\n emoji: '🇦🇴',\n id: 'AO',\n },\n {\n name: 'Anguilla',\n dial_code: '+1264',\n emoji: '🇦🇮',\n id: 'AI',\n },\n {\n name: 'Antarctica',\n dial_code: '+672',\n emoji: '🇦🇶',\n id: 'AQ',\n },\n {\n name: 'Antigua and Barbuda',\n dial_code: '+1268',\n emoji: '🇦🇬',\n id: 'AG',\n },\n {\n name: 'Argentina',\n dial_code: '+54',\n emoji: '🇦🇷',\n id: 'AR',\n },\n {\n name: 'Armenia',\n dial_code: '+374',\n emoji: '🇦🇲',\n id: 'AM',\n },\n {\n name: 'Aruba',\n dial_code: '+297',\n emoji: '🇦🇼',\n id: 'AW',\n },\n {\n name: 'Australia',\n dial_code: '+61',\n emoji: '🇦🇺',\n id: 'AU',\n },\n {\n name: 'Austria',\n dial_code: '+43',\n emoji: '🇦🇹',\n id: 'AT',\n },\n {\n name: 'Azerbaijan',\n dial_code: '+994',\n emoji: '🇦🇿',\n id: 'AZ',\n },\n {\n name: 'Bahamas',\n dial_code: '+1242',\n emoji: '🇧🇸',\n id: 'BS',\n },\n {\n name: 'Bahrain',\n dial_code: '+973',\n emoji: '🇧🇭',\n id: 'BH',\n },\n {\n name: 'Bangladesh',\n dial_code: '+880',\n emoji: '🇧🇩',\n id: 'BD',\n },\n {\n name: 'Barbados',\n dial_code: '+1246',\n emoji: '🇧🇧',\n id: 'BB',\n },\n {\n name: 'Belarus',\n dial_code: '+375',\n emoji: '🇧🇾',\n id: 'BY',\n },\n {\n name: 'Belgium',\n dial_code: '+32',\n emoji: '🇧🇪',\n id: 'BE',\n },\n {\n name: 'Belize',\n dial_code: '+501',\n emoji: '🇧🇿',\n id: 'BZ',\n },\n {\n name: 'Benin',\n dial_code: '+229',\n emoji: '🇧🇯',\n id: 'BJ',\n },\n {\n name: 'Bermuda',\n dial_code: '+1441',\n emoji: '🇧🇲',\n id: 'BM',\n },\n {\n name: 'Bhutan',\n dial_code: '+975',\n emoji: '🇧🇹',\n id: 'BT',\n },\n {\n name: 'Bolivia, Plurinational State of',\n dial_code: '+591',\n emoji: '🇧🇴',\n id: 'BO',\n },\n {\n name: 'Bosnia and Herzegovina',\n dial_code: '+387',\n emoji: '🇧🇦',\n id: 'BA',\n },\n {\n name: 'Botswana',\n dial_code: '+267',\n emoji: '🇧🇼',\n id: 'BW',\n },\n {\n name: 'Brazil',\n dial_code: '+55',\n emoji: '🇧🇷',\n id: 'BR',\n },\n {\n name: 'British Indian Ocean Territory',\n dial_code: '+246',\n emoji: '🇮🇴',\n id: 'IO',\n },\n {\n name: 'Brunei Darussalam',\n dial_code: '+673',\n emoji: '🇧🇳',\n id: 'BN',\n },\n {\n name: 'Bulgaria',\n dial_code: '+359',\n emoji: '🇧🇬',\n id: 'BG',\n },\n {\n name: 'Burkina Faso',\n dial_code: '+226',\n emoji: '🇧🇫',\n id: 'BF',\n },\n {\n name: 'Burundi',\n dial_code: '+257',\n emoji: '🇧🇮',\n id: 'BI',\n },\n {\n name: 'Cambodia',\n dial_code: '+855',\n emoji: '🇰🇭',\n id: 'KH',\n },\n {\n name: 'Cameroon',\n dial_code: '+237',\n emoji: '🇨🇲',\n id: 'CM',\n },\n {\n name: 'Canada',\n dial_code: '+1',\n emoji: '🇨🇦',\n id: 'CA',\n },\n {\n name: 'Cape Verde',\n dial_code: '+238',\n emoji: '🇨🇻',\n id: 'CV',\n },\n {\n name: 'Cayman Islands',\n dial_code: '+345',\n emoji: '🇰🇾',\n id: 'KY',\n },\n {\n name: 'Central African Republic',\n dial_code: '+236',\n emoji: '🇨🇫',\n id: 'CF',\n },\n {\n name: 'Chad',\n dial_code: '+235',\n emoji: '🇹🇩',\n id: 'TD',\n },\n {\n name: 'Chile',\n dial_code: '+56',\n emoji: '🇨🇱',\n id: 'CL',\n },\n {\n name: 'China',\n dial_code: '+86',\n emoji: '🇨🇳',\n id: 'CN',\n },\n {\n name: 'Christmas Island',\n dial_code: '+61',\n emoji: '🇨🇽',\n id: 'CX',\n },\n {\n name: 'Cocos (Keeling) Islands',\n dial_code: '+61',\n emoji: '🇨🇨',\n id: 'CC',\n },\n {\n name: 'Colombia',\n dial_code: '+57',\n emoji: '🇨🇴',\n id: 'CO',\n },\n {\n name: 'Comoros',\n dial_code: '+269',\n emoji: '🇰🇲',\n id: 'KM',\n },\n {\n name: 'Congo',\n dial_code: '+242',\n emoji: '🇨🇬',\n id: 'CG',\n },\n {\n name: 'Congo, The Democratic Republic of the Congo',\n dial_code: '+243',\n emoji: '🇨🇩',\n id: 'CD',\n },\n {\n name: 'Cook Islands',\n dial_code: '+682',\n emoji: '🇨🇰',\n id: 'CK',\n },\n {\n name: 'Costa Rica',\n dial_code: '+506',\n emoji: '🇨🇷',\n id: 'CR',\n },\n {\n name: \"Cote d'Ivoire\",\n dial_code: '+225',\n emoji: '🇨🇮',\n id: 'CI',\n },\n {\n name: 'Croatia',\n dial_code: '+385',\n emoji: '🇭🇷',\n id: 'HR',\n },\n {\n name: 'Cuba',\n dial_code: '+53',\n emoji: '🇨🇺',\n id: 'CU',\n },\n {\n name: 'Cyprus',\n dial_code: '+357',\n emoji: '🇨🇾',\n id: 'CY',\n },\n {\n name: 'Czech Republic',\n dial_code: '+420',\n emoji: '🇨🇿',\n id: 'CZ',\n },\n {\n name: 'Denmark',\n dial_code: '+45',\n emoji: '🇩🇰',\n id: 'DK',\n },\n {\n name: 'Djibouti',\n dial_code: '+253',\n emoji: '🇩🇯',\n id: 'DJ',\n },\n {\n name: 'Dominica',\n dial_code: '+1767',\n emoji: '🇩🇲',\n id: 'DM',\n },\n {\n name: 'Dominican Republic',\n dial_code: '+1849',\n emoji: '🇩🇴',\n id: 'DO',\n },\n {\n name: 'Ecuador',\n dial_code: '+593',\n emoji: '🇪🇨',\n id: 'EC',\n },\n {\n name: 'Egypt',\n dial_code: '+20',\n emoji: '🇪🇬',\n id: 'EG',\n },\n {\n name: 'El Salvador',\n dial_code: '+503',\n emoji: '🇸🇻',\n id: 'SV',\n },\n {\n name: 'Equatorial Guinea',\n dial_code: '+240',\n emoji: '🇬🇶',\n id: 'GQ',\n },\n {\n name: 'Eritrea',\n dial_code: '+291',\n emoji: '🇪🇷',\n id: 'ER',\n },\n {\n name: 'Estonia',\n dial_code: '+372',\n emoji: '🇪🇪',\n id: 'EE',\n },\n {\n name: 'Ethiopia',\n dial_code: '+251',\n emoji: '🇪🇹',\n id: 'ET',\n },\n {\n name: 'Falkland Islands (Malvinas)',\n dial_code: '+500',\n emoji: '🇫🇰',\n id: 'FK',\n },\n {\n name: 'Faroe Islands',\n dial_code: '+298',\n emoji: '🇫🇴',\n id: 'FO',\n },\n {\n name: 'Fiji',\n dial_code: '+679',\n emoji: '🇫🇯',\n id: 'FJ',\n },\n {\n name: 'Finland',\n dial_code: '+358',\n emoji: '🇫🇮',\n id: 'FI',\n },\n {\n name: 'France',\n dial_code: '+33',\n emoji: '🇫🇷',\n id: 'FR',\n },\n {\n name: 'French Guiana',\n dial_code: '+594',\n emoji: '🇬🇫',\n id: 'GF',\n },\n {\n name: 'French Polynesia',\n dial_code: '+689',\n emoji: '🇵🇫',\n id: 'PF',\n },\n {\n name: 'Gabon',\n dial_code: '+241',\n emoji: '🇬🇦',\n id: 'GA',\n },\n {\n name: 'Gambia',\n dial_code: '+220',\n emoji: '🇬🇲',\n id: 'GM',\n },\n {\n name: 'Georgia',\n dial_code: '+995',\n emoji: '🇬🇪',\n id: 'GE',\n },\n {\n name: 'Germany',\n dial_code: '+49',\n emoji: '🇩🇪',\n id: 'DE',\n },\n {\n name: 'Ghana',\n dial_code: '+233',\n emoji: '🇬🇭',\n id: 'GH',\n },\n {\n name: 'Gibraltar',\n dial_code: '+350',\n emoji: '🇬🇮',\n id: 'GI',\n },\n {\n name: 'Greece',\n dial_code: '+30',\n emoji: '🇬🇷',\n id: 'GR',\n },\n {\n name: 'Greenland',\n dial_code: '+299',\n emoji: '🇬🇱',\n id: 'GL',\n },\n {\n name: 'Grenada',\n dial_code: '+1473',\n emoji: '🇬🇩',\n id: 'GD',\n },\n {\n name: 'Guadeloupe',\n dial_code: '+590',\n emoji: '🇬🇵',\n id: 'GP',\n },\n {\n name: 'Guam',\n dial_code: '+1671',\n emoji: '🇬🇺',\n id: 'GU',\n },\n {\n name: 'Guatemala',\n dial_code: '+502',\n emoji: '🇬🇹',\n id: 'GT',\n },\n {\n name: 'Guernsey',\n dial_code: '+44',\n emoji: '🇬🇬',\n id: 'GG',\n },\n {\n name: 'Guinea',\n dial_code: '+224',\n emoji: '🇬🇳',\n id: 'GN',\n },\n {\n name: 'Guinea-Bissau',\n dial_code: '+245',\n emoji: '🇬🇼',\n id: 'GW',\n },\n {\n name: 'Guyana',\n dial_code: '+595',\n emoji: '🇬🇾',\n id: 'GY',\n },\n {\n name: 'Haiti',\n dial_code: '+509',\n emoji: '🇭🇹',\n id: 'HT',\n },\n {\n name: 'Holy See (Vatican City State)',\n dial_code: '+379',\n emoji: '🇻🇦',\n id: 'VA',\n },\n {\n name: 'Honduras',\n dial_code: '+504',\n emoji: '🇭🇳',\n id: 'HN',\n },\n {\n name: 'Hong Kong',\n dial_code: '+852',\n emoji: '🇭🇰',\n id: 'HK',\n },\n {\n name: 'Hungary',\n dial_code: '+36',\n emoji: '🇭🇺',\n id: 'HU',\n },\n {\n name: 'Iceland',\n dial_code: '+354',\n emoji: '🇮🇸',\n id: 'IS',\n },\n {\n name: 'India',\n dial_code: '+91',\n emoji: '🇮🇳',\n id: 'IN',\n },\n {\n name: 'Indonesia',\n dial_code: '+62',\n emoji: '🇮🇩',\n id: 'ID',\n },\n {\n name: 'Iran, Islamic Republic of Persian Gulf',\n dial_code: '+98',\n emoji: '🇮🇷',\n id: 'IR',\n },\n {\n name: 'Iraq',\n dial_code: '+964',\n emoji: '🇮🇷',\n id: 'IQ',\n },\n {\n name: 'Ireland',\n dial_code: '+353',\n emoji: '🇮🇪',\n id: 'IE',\n },\n {\n name: 'Isle of Man',\n dial_code: '+44',\n emoji: '🇮🇲',\n id: 'IM',\n },\n {\n name: 'Israel',\n dial_code: '+972',\n emoji: '🇮🇱',\n id: 'IL',\n },\n {\n name: 'Italy',\n dial_code: '+39',\n emoji: '🇮🇹',\n id: 'IT',\n },\n {\n name: 'Jamaica',\n dial_code: '+1876',\n emoji: '🇯🇲',\n id: 'JM',\n },\n {\n name: 'Japan',\n dial_code: '+81',\n emoji: '🇯🇵',\n id: 'JP',\n },\n {\n name: 'Jersey',\n dial_code: '+44',\n emoji: '🇯🇪',\n id: 'JE',\n },\n {\n name: 'Jordan',\n dial_code: '+962',\n emoji: '🇯🇴',\n id: 'JO',\n },\n {\n name: 'Kazakhstan',\n dial_code: '+77',\n emoji: '🇰🇿',\n id: 'KZ',\n },\n {\n name: 'Kenya',\n dial_code: '+254',\n emoji: '🇰🇪',\n id: 'KE',\n },\n {\n name: 'Kiribati',\n dial_code: '+686',\n emoji: '🇰🇮',\n id: 'KI',\n },\n {\n name: \"Korea, Democratic People's Republic of Korea\",\n dial_code: '+850',\n emoji: '🇰🇵',\n id: 'KP',\n },\n {\n name: 'Korea, Republic of South Korea',\n dial_code: '+82',\n emoji: '🇰🇷',\n id: 'KR',\n },\n {\n name: 'Kuwait',\n dial_code: '+965',\n emoji: '🇰🇼',\n id: 'KW',\n },\n {\n name: 'Kyrgyzstan',\n dial_code: '+996',\n emoji: '🇰🇬',\n id: 'KG',\n },\n {\n name: 'Laos',\n dial_code: '+856',\n emoji: '🇱🇦',\n id: 'LA',\n },\n {\n name: 'Latvia',\n dial_code: '+371',\n emoji: '🇱🇻',\n id: 'LV',\n },\n {\n name: 'Lebanon',\n dial_code: '+961',\n emoji: '🇱🇧',\n id: 'LB',\n },\n {\n name: 'Lesotho',\n dial_code: '+266',\n emoji: '🇱🇸',\n id: 'LS',\n },\n {\n name: 'Liberia',\n dial_code: '+231',\n emoji: '🇱🇷',\n id: 'LR',\n },\n {\n name: 'Libyan Arab Jamahiriya',\n dial_code: '+218',\n emoji: '🇱🇾',\n id: 'LY',\n },\n {\n name: 'Liechtenstein',\n dial_code: '+423',\n emoji: '🇱🇮',\n id: 'LI',\n },\n {\n name: 'Lithuania',\n dial_code: '+370',\n emoji: '🇱🇹',\n id: 'LT',\n },\n {\n name: 'Luxembourg',\n dial_code: '+352',\n emoji: '🇱🇺',\n id: 'LU',\n },\n {\n name: 'Macao',\n dial_code: '+853',\n emoji: '🇲🇴',\n id: 'MO',\n },\n {\n name: 'Macedonia',\n dial_code: '+389',\n emoji: '🇲🇰',\n id: 'MK',\n },\n {\n name: 'Madagascar',\n dial_code: '+261',\n emoji: '🇲🇬',\n id: 'MG',\n },\n {\n name: 'Malawi',\n dial_code: '+265',\n emoji: '🇲🇼',\n id: 'MW',\n },\n {\n name: 'Malaysia',\n dial_code: '+60',\n emoji: '🇲🇾',\n id: 'MY',\n },\n {\n name: 'Maldives',\n dial_code: '+960',\n emoji: '🇲🇻',\n id: 'MV',\n },\n {\n name: 'Mali',\n dial_code: '+223',\n emoji: '🇲🇱',\n id: 'ML',\n },\n {\n name: 'Malta',\n dial_code: '+356',\n emoji: '🇲🇹',\n id: 'MT',\n },\n {\n name: 'Marshall Islands',\n dial_code: '+692',\n emoji: '🇲🇭',\n id: 'MH',\n },\n {\n name: 'Martinique',\n dial_code: '+596',\n emoji: '🇲🇶',\n id: 'MQ',\n },\n {\n name: 'Mauritania',\n dial_code: '+222',\n emoji: '🇲🇷',\n id: 'MR',\n },\n {\n name: 'Mauritius',\n dial_code: '+230',\n emoji: '🇲🇺',\n id: 'MU',\n },\n {\n name: 'Mayotte',\n dial_code: '+262',\n emoji: '🇾🇹',\n id: 'YT',\n },\n {\n name: 'Mexico',\n dial_code: '+52',\n emoji: '🇲🇽',\n id: 'MX',\n },\n {\n name: 'Micronesia, Federated States of Micronesia',\n dial_code: '+691',\n emoji: '🇫🇲',\n id: 'FM',\n },\n {\n name: 'Moldova',\n dial_code: '+373',\n emoji: '🇲🇩',\n id: 'MD',\n },\n {\n name: 'Monaco',\n dial_code: '+377',\n emoji: '🇲🇨',\n id: 'MC',\n },\n {\n name: 'Mongolia',\n dial_code: '+976',\n emoji: '🇲🇳',\n id: 'MN',\n },\n {\n name: 'Montenegro',\n dial_code: '+382',\n emoji: '🇲🇪',\n id: 'ME',\n },\n {\n name: 'Montserrat',\n dial_code: '+1664',\n emoji: '🇲🇸',\n id: 'MS',\n },\n {\n name: 'Morocco',\n dial_code: '+212',\n emoji: '🇲🇦',\n id: 'MA',\n },\n {\n name: 'Mozambique',\n dial_code: '+258',\n emoji: '🇲🇿',\n id: 'MZ',\n },\n {\n name: 'Myanmar',\n dial_code: '+95',\n emoji: '🇲🇲',\n id: 'MM',\n },\n {\n name: 'Namibia',\n emoji: '🇳🇦',\n dial_code: '+264',\n id: 'NA',\n },\n {\n name: 'Nauru',\n dial_code: '+674',\n emoji: '🇳🇷',\n id: 'NR',\n },\n {\n name: 'Nepal',\n dial_code: '+977',\n emoji: '🇳🇵',\n id: 'NP',\n },\n {\n name: 'Netherlands',\n dial_code: '+31',\n emoji: '🇳🇱',\n id: 'NL',\n },\n {\n name: 'Netherlands Antilles',\n dial_code: '+599',\n emoji: '🇧🇶',\n id: 'AN',\n },\n {\n name: 'New Caledonia',\n dial_code: '+687',\n emoji: '🇳🇨',\n id: 'NC',\n },\n {\n name: 'New Zealand',\n dial_code: '+64',\n emoji: '🇳🇿',\n id: 'NZ',\n },\n {\n name: 'Nicaragua',\n dial_code: '+505',\n emoji: '🇳🇮',\n id: 'NI',\n },\n {\n name: 'Niger',\n dial_code: '+227',\n emoji: '🇳🇪',\n id: 'NE',\n },\n {\n name: 'Nigeria',\n dial_code: '+234',\n emoji: '🇳🇬',\n id: 'NG',\n },\n {\n name: 'Niue',\n dial_code: '+683',\n emoji: '🇳🇺',\n id: 'NU',\n },\n {\n name: 'Norfolk Island',\n dial_code: '+672',\n emoji: '🇳🇫',\n id: 'NF',\n },\n {\n name: 'Northern Mariana Islands',\n dial_code: '+1670',\n emoji: '🇲🇵',\n id: 'MP',\n },\n {\n name: 'Norway',\n dial_code: '+47',\n emoji: '🇳🇴',\n id: 'NO',\n },\n {\n name: 'Oman',\n dial_code: '+968',\n emoji: '🇴🇲',\n id: 'OM',\n },\n {\n name: 'Pakistan',\n dial_code: '+92',\n emoji: '🇵🇰',\n id: 'PK',\n },\n {\n name: 'Palau',\n dial_code: '+680',\n emoji: '🇵🇼',\n id: 'PW',\n },\n {\n name: 'Palestinian Territory, Occupied',\n dial_code: '+970',\n emoji: '🇵🇸',\n id: 'PS',\n },\n {\n name: 'Panama',\n dial_code: '+507',\n emoji: '🇵🇦',\n id: 'PA',\n },\n {\n name: 'Papua New Guinea',\n dial_code: '+675',\n emoji: '🇵🇬',\n id: 'PG',\n },\n {\n name: 'Paraguay',\n dial_code: '+595',\n emoji: '🇵🇾',\n id: 'PY',\n },\n {\n name: 'Peru',\n dial_code: '+51',\n emoji: '🇵🇪',\n id: 'PE',\n },\n {\n name: 'Philippines',\n dial_code: '+63',\n emoji: '🇵🇭',\n id: 'PH',\n },\n {\n name: 'Pitcairn',\n dial_code: '+872',\n emoji: '🇵🇳',\n id: 'PN',\n },\n {\n name: 'Poland',\n dial_code: '+48',\n emoji: '🇵🇱',\n id: 'PL',\n },\n {\n name: 'Portugal',\n dial_code: '+351',\n emoji: '🇵🇹',\n id: 'PT',\n },\n {\n name: 'Puerto Rico',\n dial_code: '+1939',\n emoji: '🇵🇷',\n id: 'PR',\n },\n {\n name: 'Qatar',\n dial_code: '+974',\n emoji: '🇶🇦',\n id: 'QA',\n },\n {\n name: 'Romania',\n dial_code: '+40',\n emoji: '🇷🇴',\n id: 'RO',\n },\n {\n name: 'Russia',\n dial_code: '+7',\n emoji: '🇷🇺',\n id: 'RU',\n },\n {\n name: 'Rwanda',\n dial_code: '+250',\n emoji: '🇷🇼',\n id: 'RW',\n },\n {\n name: 'Reunion',\n dial_code: '+262',\n emoji: '🇷🇪',\n id: 'RE',\n },\n {\n name: 'Saint Barthelemy',\n dial_code: '+590',\n emoji: '🇧🇱',\n id: 'BL',\n },\n {\n name: 'Saint Helena, Ascension and Tristan Da Cunha',\n dial_code: '+290',\n emoji: '🇸🇭',\n id: 'SH',\n },\n {\n name: 'Saint Kitts and Nevis',\n dial_code: '+1869',\n emoji: '🇰🇳',\n id: 'KN',\n },\n {\n name: 'Saint Lucia',\n dial_code: '+1758',\n emoji: '🇱🇨',\n id: 'LC',\n },\n {\n name: 'Saint Martin',\n dial_code: '+590',\n emoji: '🇲🇫',\n id: 'MF',\n },\n {\n name: 'Saint Pierre and Miquelon',\n dial_code: '+508',\n emoji: '🇵🇲',\n id: 'PM',\n },\n {\n name: 'Saint Vincent and the Grenadines',\n dial_code: '+1784',\n emoji: '🇻🇨',\n id: 'VC',\n },\n {\n name: 'Samoa',\n dial_code: '+685',\n emoji: '🇼🇸',\n id: 'WS',\n },\n {\n name: 'San Marino',\n dial_code: '+378',\n emoji: '🇸🇲',\n id: 'SM',\n },\n {\n name: 'Sao Tome and Principe',\n dial_code: '+239',\n emoji: '🇸🇹',\n id: 'ST',\n },\n {\n name: 'Saudi Arabia',\n dial_code: '+966',\n emoji: '🇸🇦',\n id: 'SA',\n },\n {\n name: 'Senegal',\n dial_code: '+221',\n emoji: '🇸🇳',\n id: 'SN',\n },\n {\n name: 'Serbia',\n dial_code: '+381',\n emoji: '🇷🇸',\n id: 'RS',\n },\n {\n name: 'Seychelles',\n dial_code: '+248',\n emoji: '🇸🇨',\n id: 'SC',\n },\n {\n name: 'Sierra Leone',\n dial_code: '+232',\n emoji: '🇸🇱',\n id: 'SL',\n },\n {\n name: 'Singapore',\n dial_code: '+65',\n emoji: '🇸🇬',\n id: 'SG',\n },\n {\n name: 'Slovakia',\n dial_code: '+421',\n emoji: '🇸🇰',\n id: 'SK',\n },\n {\n name: 'Slovenia',\n dial_code: '+386',\n emoji: '🇸🇮',\n id: 'SI',\n },\n {\n name: 'Solomon Islands',\n dial_code: '+677',\n emoji: '🇸🇧',\n id: 'SB',\n },\n {\n name: 'Somalia',\n dial_code: '+252',\n emoji: '🇸🇴',\n id: 'SO',\n },\n {\n name: 'South Africa',\n dial_code: '+27',\n emoji: '🇿🇦',\n id: 'ZA',\n },\n {\n name: 'South Sudan',\n dial_code: '+211',\n emoji: '🇸🇸',\n id: 'SS',\n },\n {\n name: 'South Georgia and the South Sandwich Islands',\n dial_code: '+500',\n emoji: '🇬🇸',\n id: 'GS',\n },\n {\n name: 'Spain',\n dial_code: '+34',\n emoji: '🇪🇸',\n id: 'ES',\n },\n {\n name: 'Sri Lanka',\n dial_code: '+94',\n emoji: '🇱🇰',\n id: 'LK',\n },\n {\n name: 'Sudan',\n dial_code: '+249',\n emoji: '🇸🇩',\n id: 'SD',\n },\n {\n name: 'Suriname',\n dial_code: '+597',\n emoji: '🇸🇷',\n id: 'SR',\n },\n {\n name: 'Svalbard and Jan Mayen',\n dial_code: '+47',\n emoji: '🇸🇯',\n id: 'SJ',\n },\n {\n name: 'Swaziland',\n dial_code: '+268',\n emoji: '🇸🇿',\n id: 'SZ',\n },\n {\n name: 'Sweden',\n dial_code: '+46',\n emoji: '🇸🇪',\n id: 'SE',\n },\n {\n name: 'Switzerland',\n dial_code: '+41',\n emoji: '🇨🇭',\n id: 'CH',\n },\n {\n name: 'Syrian Arab Republic',\n dial_code: '+963',\n emoji: '🇸🇾',\n id: 'SY',\n },\n {\n name: 'Taiwan',\n dial_code: '+886',\n emoji: '🇹🇼',\n id: 'TW',\n },\n {\n name: 'Tajikistan',\n dial_code: '+992',\n emoji: '🇹🇯',\n id: 'TJ',\n },\n {\n name: 'Tanzania, United Republic of Tanzania',\n dial_code: '+255',\n emoji: '🇹🇿',\n id: 'TZ',\n },\n {\n name: 'Thailand',\n dial_code: '+66',\n emoji: '🇹🇭',\n id: 'TH',\n },\n {\n name: 'Timor-Leste',\n dial_code: '+670',\n emoji: '🇹🇱',\n id: 'TL',\n },\n {\n name: 'Togo',\n dial_code: '+228',\n emoji: '🇹🇬',\n id: 'TG',\n },\n {\n name: 'Tokelau',\n dial_code: '+690',\n emoji: '🇹🇰',\n id: 'TK',\n },\n {\n name: 'Tonga',\n dial_code: '+676',\n emoji: '🇹🇴',\n id: 'TO',\n },\n {\n name: 'Trinidad and Tobago',\n dial_code: '+1868',\n emoji: '🇹🇹',\n id: 'TT',\n },\n {\n name: 'Tunisia',\n dial_code: '+216',\n emoji: '🇹🇳',\n id: 'TN',\n },\n {\n name: 'Turkey',\n dial_code: '+90',\n emoji: '🇹🇷',\n id: 'TR',\n },\n {\n name: 'Turkmenistan',\n dial_code: '+993',\n emoji: '🇹🇲',\n id: 'TM',\n },\n {\n name: 'Turks and Caicos Islands',\n dial_code: '+1649',\n emoji: '🇹🇨',\n id: 'TC',\n },\n {\n name: 'Tuvalu',\n dial_code: '+688',\n emoji: '🇹🇻',\n id: 'TV',\n },\n {\n name: 'Uganda',\n dial_code: '+256',\n emoji: '🇺🇬',\n id: 'UG',\n },\n {\n name: 'Ukraine',\n dial_code: '+380',\n emoji: '🇺🇦',\n id: 'UA',\n },\n {\n name: 'United Arab Emirates',\n dial_code: '+971',\n emoji: '🇦🇪',\n id: 'AE',\n },\n {\n name: 'United Kingdom',\n dial_code: '+44',\n emoji: '🇬🇧',\n id: 'GB',\n },\n {\n name: 'United States',\n dial_code: '+1',\n emoji: '🇺🇸',\n id: 'US',\n },\n {\n name: 'Uruguay',\n dial_code: '+598',\n emoji: '🇺🇾',\n id: 'UY',\n },\n {\n name: 'Uzbekistan',\n dial_code: '+998',\n emoji: '🇺🇿',\n id: 'UZ',\n },\n {\n name: 'Vanuatu',\n dial_code: '+678',\n emoji: '🇻🇺',\n id: 'VU',\n },\n {\n name: 'Venezuela, Bolivarian Republic of Venezuela',\n dial_code: '+58',\n emoji: '🇻🇪',\n id: 'VE',\n },\n {\n name: 'Vietnam',\n dial_code: '+84',\n emoji: '🇻🇳',\n id: 'VN',\n },\n {\n name: 'Virgin Islands, British',\n dial_code: '+1284',\n emoji: '🇻🇬',\n id: 'VG',\n },\n {\n name: 'Virgin Islands, U.S.',\n dial_code: '+1340',\n emoji: '🇻🇮',\n id: 'VI',\n },\n {\n name: 'Wallis and Futuna',\n dial_code: '+681',\n emoji: '🇼🇫',\n id: 'WF',\n },\n {\n name: 'Yemen',\n dial_code: '+967',\n emoji: '🇾🇪',\n id: 'YE',\n },\n {\n name: 'Zambia',\n dial_code: '+260',\n emoji: '🇿🇲',\n id: 'ZM',\n },\n {\n name: 'Zimbabwe',\n dial_code: '+263',\n emoji: '🇿🇼',\n id: 'ZW',\n },\n];\n\nexport default countries;\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"empty-state py-16 px-1 ml-0 mr-0\"},[(_vm.title)?_c('h3',{staticClass:\"text-slate-700 dark:text-slate-200 block text-center w-full text-xl font-thin\"},[_vm._v(\"\\n \"+_vm._s(_vm.title)+\"\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.message)?_c('p',{staticClass:\"block text-center text-slate-500 dark:text-slate-400 my-4 mx-auto w-[90%]\"},[_vm._v(\"\\n \"+_vm._s(_vm.message)+\"\\n \")]):_vm._e(),_vm._v(\" \"),_vm._t(\"default\")],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EmptyState.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EmptyState.vue?vue&type=script&lang=js&\"","\n\n\n \n
\n {{ title }}\n
\n
\n {{ message }}\n
\n
\n
\n\n","import { render, staticRenderFns } from \"./EmptyState.vue?vue&type=template&id=e03fb0b4&\"\nimport script from \"./EmptyState.vue?vue&type=script&lang=js&\"\nexport * from \"./EmptyState.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export const REPLY_EDITOR_MODES = {\n REPLY: 'REPLY',\n NOTE: 'NOTE',\n};\n\nexport const CHAR_LENGTH_WARNING = {\n UNDER_50: 'characters remaining',\n NEGATIVE: 'characters over',\n};\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('button',{class:_vm.computedClass,attrs:{\"type\":_vm.type,\"data-testid\":\"submit_button\",\"disabled\":_vm.disabled},on:{\"click\":_vm.onClick}},[(!!_vm.iconClass)?_c('fluent-icon',{staticClass:\"icon\",attrs:{\"icon\":_vm.iconClass}}):_vm._e(),_vm._v(\" \"),_c('span',[_vm._v(_vm._s(_vm.buttonText))]),_vm._v(\" \"),(_vm.loading)?_c('Spinner',{staticClass:\"ml-2\",attrs:{\"color-scheme\":_vm.spinnerClass}}):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormSubmitButton.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormSubmitButton.vue?vue&type=script&lang=js&\"","\n\n\n \n\n\n\n","import { render, staticRenderFns } from \"./FormSubmitButton.vue?vue&type=template&id=369a91ac&scoped=true&\"\nimport script from \"./FormSubmitButton.vue?vue&type=script&lang=js&\"\nexport * from \"./FormSubmitButton.vue?vue&type=script&lang=js&\"\nimport style0 from \"./FormSubmitButton.vue?vue&type=style&index=0&id=369a91ac&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"369a91ac\",\n null\n \n)\n\nexport default component.exports","const languages = [\n {\n name: 'Abkhazian',\n id: 'ab',\n },\n {\n name: 'Afar',\n id: 'aa',\n },\n {\n name: 'Afrikaans',\n id: 'af',\n },\n {\n name: 'Akan',\n id: 'ak',\n },\n {\n name: 'Albanian',\n id: 'sq',\n },\n {\n name: 'Amharic',\n id: 'am',\n },\n {\n name: 'Arabic',\n id: 'ar',\n },\n {\n name: 'Aragonese',\n id: 'an',\n },\n {\n name: 'Armenian',\n id: 'hy',\n },\n {\n name: 'Assamese',\n id: 'as',\n },\n {\n name: 'Avaric',\n id: 'av',\n },\n {\n name: 'Avestan',\n id: 'ae',\n },\n {\n name: 'Aymara',\n id: 'ay',\n },\n {\n name: 'Azerbaijani',\n id: 'az',\n },\n {\n name: 'Bambara',\n id: 'bm',\n },\n {\n name: 'Bashkir',\n id: 'ba',\n },\n {\n name: 'Basque',\n id: 'eu',\n },\n {\n name: 'Belarusian',\n id: 'be',\n },\n {\n name: 'Bengali',\n id: 'bn',\n },\n {\n name: 'Bislama',\n id: 'bi',\n },\n {\n name: 'Bosnian',\n id: 'bs',\n },\n {\n name: 'Breton',\n id: 'br',\n },\n {\n name: 'Bulgarian',\n id: 'bg',\n },\n {\n name: 'Burmese',\n id: 'my',\n },\n {\n name: 'Catalan',\n id: 'ca',\n },\n {\n name: 'Chamorro',\n id: 'ch',\n },\n {\n name: 'Chechen',\n id: 'ce',\n },\n {\n name: 'Chichewa',\n id: 'ny',\n },\n {\n name: 'Chinese',\n id: 'zh',\n },\n {\n name: 'Church Slavonic',\n id: 'cu',\n },\n {\n name: 'Chuvash',\n id: 'cv',\n },\n {\n name: 'Cornish',\n id: 'kw',\n },\n {\n name: 'Corsican',\n id: 'co',\n },\n {\n name: 'Cree',\n id: 'cr',\n },\n {\n name: 'Croatian',\n id: 'hr',\n },\n {\n name: 'Czech',\n id: 'cs',\n },\n {\n name: 'Danish',\n id: 'da',\n },\n {\n name: 'Divehi',\n id: 'dv',\n },\n {\n name: 'Dutch',\n id: 'nl',\n },\n {\n name: 'Dzongkha',\n id: 'dz',\n },\n {\n name: 'English',\n id: 'en',\n },\n {\n name: 'Esperanto',\n id: 'eo',\n },\n {\n name: 'Estonian',\n id: 'et',\n },\n {\n name: 'Ewe',\n id: 'ee',\n },\n {\n name: 'Faroese',\n id: 'fo',\n },\n {\n name: 'Fijian',\n id: 'fj',\n },\n {\n name: 'Finnish',\n id: 'fi',\n },\n {\n name: 'French',\n id: 'fr',\n },\n {\n name: 'Western Frisian',\n id: 'fy',\n },\n {\n name: 'Fulah',\n id: 'ff',\n },\n {\n name: 'Gaelic',\n id: 'gd',\n },\n {\n name: 'Galician',\n id: 'gl',\n },\n {\n name: 'Ganda',\n id: 'lg',\n },\n {\n name: 'Georgian',\n id: 'ka',\n },\n {\n name: 'German',\n id: 'de',\n },\n {\n name: 'Greek',\n id: 'el',\n },\n {\n name: 'Kalaallisut',\n id: 'kl',\n },\n {\n name: 'Guarani',\n id: 'gn',\n },\n {\n name: 'Gujarati',\n id: 'gu',\n },\n {\n name: 'Haitian',\n id: 'ht',\n },\n {\n name: 'Hausa',\n id: 'ha',\n },\n {\n name: 'Hebrew',\n id: 'he',\n },\n {\n name: 'Herero',\n id: 'hz',\n },\n {\n name: 'Hindi',\n id: 'hi',\n },\n {\n name: 'Hiri Motu',\n id: 'ho',\n },\n {\n name: 'Hungarian',\n id: 'hu',\n },\n {\n name: 'Icelandic',\n id: 'is',\n },\n {\n name: 'Ido',\n id: 'io',\n },\n {\n name: 'Igbo',\n id: 'ig',\n },\n {\n name: 'Indonesian',\n id: 'id',\n },\n {\n name: 'Interlingua',\n id: 'ia',\n },\n {\n name: 'Interlingue',\n id: 'ie',\n },\n {\n name: 'Inuktitut',\n id: 'iu',\n },\n {\n name: 'Inupiaq',\n id: 'ik',\n },\n {\n name: 'Irish',\n id: 'ga',\n },\n {\n name: 'Italian',\n id: 'it',\n },\n {\n name: 'Japanese',\n id: 'ja',\n },\n {\n name: 'Javanese',\n id: 'jv',\n },\n {\n name: 'Kannada',\n id: 'kn',\n },\n {\n name: 'Kanuri',\n id: 'kr',\n },\n {\n name: 'Kashmiri',\n id: 'ks',\n },\n {\n name: 'Kazakh',\n id: 'kk',\n },\n {\n name: 'Central Khmer',\n id: 'km',\n },\n {\n name: 'Kikuyu',\n id: 'ki',\n },\n {\n name: 'Kinyarwanda',\n id: 'rw',\n },\n {\n name: 'Kirghiz',\n id: 'ky',\n },\n {\n name: 'Komi',\n id: 'kv',\n },\n {\n name: 'Kongo',\n id: 'kg',\n },\n {\n name: 'Korean',\n id: 'ko',\n },\n {\n name: 'Kuanyama',\n id: 'kj',\n },\n {\n name: 'Kurdish',\n id: 'ku',\n },\n {\n name: 'Lao',\n id: 'lo',\n },\n {\n name: 'Latin',\n id: 'la',\n },\n {\n name: 'Latvian',\n id: 'lv',\n },\n {\n name: 'Limburgan',\n id: 'li',\n },\n {\n name: 'Lingala',\n id: 'ln',\n },\n {\n name: 'Lithuanian',\n id: 'lt',\n },\n {\n name: 'Luba-Katanga',\n id: 'lu',\n },\n {\n name: 'Luxembourgish',\n id: 'lb',\n },\n {\n name: 'Macedonian',\n id: 'mk',\n },\n {\n name: 'Malagasy',\n id: 'mg',\n },\n {\n name: 'Malay',\n id: 'ms',\n },\n {\n name: 'Malayalam',\n id: 'ml',\n },\n {\n name: 'Maltese',\n id: 'mt',\n },\n {\n name: 'Manx',\n id: 'gv',\n },\n {\n name: 'Maori',\n id: 'mi',\n },\n {\n name: 'Marathi',\n id: 'mr',\n },\n {\n name: 'Marshallese',\n id: 'mh',\n },\n {\n name: 'Mongolian',\n id: 'mn',\n },\n {\n name: 'Nauru',\n id: 'na',\n },\n {\n name: 'Navajo',\n id: 'nv',\n },\n {\n name: 'North Ndebele',\n id: 'nd',\n },\n {\n name: 'South Ndebele',\n id: 'nr',\n },\n {\n name: 'Ndonga',\n id: 'ng',\n },\n {\n name: 'Nepali',\n id: 'ne',\n },\n {\n name: 'Norwegian',\n id: 'no',\n },\n {\n name: 'Norwegian Bokmål',\n id: 'nb',\n },\n {\n name: 'Norwegian Nynorsk',\n id: 'nn',\n },\n {\n name: 'Sichuan Yi',\n id: 'ii',\n },\n {\n name: 'Occitan',\n id: 'oc',\n },\n {\n name: 'Ojibwa',\n id: 'oj',\n },\n {\n name: 'Oriya',\n id: 'or',\n },\n {\n name: 'Oromo',\n id: 'om',\n },\n {\n name: 'Ossetian',\n id: 'os',\n },\n {\n name: 'Pali',\n id: 'pi',\n },\n {\n name: 'Pashto, Pushto',\n id: 'ps',\n },\n {\n name: 'Persian',\n id: 'fa',\n },\n {\n name: 'Polish',\n id: 'pl',\n },\n {\n name: 'Portuguese',\n id: 'pt',\n },\n {\n name: 'Punjabi',\n id: 'pa',\n },\n {\n name: 'Quechua',\n id: 'qu',\n },\n {\n name: 'Romanian',\n id: 'ro',\n },\n {\n name: 'Romansh',\n id: 'rm',\n },\n {\n name: 'Rundi',\n id: 'rn',\n },\n {\n name: 'Russian',\n id: 'ru',\n },\n {\n name: 'Northern Sami',\n id: 'se',\n },\n {\n name: 'Samoan',\n id: 'sm',\n },\n {\n name: 'Sango',\n id: 'sg',\n },\n {\n name: 'Sanskrit',\n id: 'sa',\n },\n {\n name: 'Sardinian',\n id: 'sc',\n },\n {\n name: 'Serbian',\n id: 'sr',\n },\n {\n name: 'Shona',\n id: 'sn',\n },\n {\n name: 'Sindhi',\n id: 'sd',\n },\n {\n name: 'Sinhala',\n id: 'si',\n },\n {\n name: 'Slovak',\n id: 'sk',\n },\n {\n name: 'Slovenian',\n id: 'sl',\n },\n {\n name: 'Somali',\n id: 'so',\n },\n {\n name: 'Southern Sotho',\n id: 'st',\n },\n {\n name: 'Spanish',\n id: 'es',\n },\n {\n name: 'Sundanese',\n id: 'su',\n },\n {\n name: 'Swahili',\n id: 'sw',\n },\n {\n name: 'Swati',\n id: 'ss',\n },\n {\n name: 'Swedish',\n id: 'sv',\n },\n {\n name: 'Tagalog',\n id: 'tl',\n },\n {\n name: 'Tahitian',\n id: 'ty',\n },\n {\n name: 'Tajik',\n id: 'tg',\n },\n {\n name: 'Tamil',\n id: 'ta',\n },\n {\n name: 'Tatar',\n id: 'tt',\n },\n {\n name: 'Telugu',\n id: 'te',\n },\n {\n name: 'Thai',\n id: 'th',\n },\n {\n name: 'Tibetan',\n id: 'bo',\n },\n {\n name: 'Tigrinya',\n id: 'ti',\n },\n {\n name: 'Tonga',\n id: 'to',\n },\n {\n name: 'Tsonga',\n id: 'ts',\n },\n {\n name: 'Tswana',\n id: 'tn',\n },\n {\n name: 'Turkish',\n id: 'tr',\n },\n {\n name: 'Turkmen',\n id: 'tk',\n },\n {\n name: 'Twi',\n id: 'tw',\n },\n {\n name: 'Uighur',\n id: 'ug',\n },\n {\n name: 'Ukrainian',\n id: 'uk',\n },\n {\n name: 'Urdu',\n id: 'ur',\n },\n {\n name: 'Uzbek',\n id: 'uz',\n },\n {\n name: 'Venda',\n id: 've',\n },\n {\n name: 'Vietnamese',\n id: 'vi',\n },\n {\n name: 'Volapük',\n id: 'vo',\n },\n {\n name: 'Walloon',\n id: 'wa',\n },\n {\n name: 'Welsh',\n id: 'cy',\n },\n {\n name: 'Wolof',\n id: 'wo',\n },\n {\n name: 'Xhosa',\n id: 'xh',\n },\n {\n name: 'Yiddish',\n id: 'yi',\n },\n {\n name: 'Yoruba',\n id: 'yo',\n },\n {\n name: 'Zhuang, Chuang',\n id: 'za',\n },\n {\n name: 'Zulu',\n id: 'zu',\n },\n];\n\nexport const getLanguageName = (languageCode = '') => {\n const languageObj =\n languages.find(language => language.id === languageCode) || {};\n return languageObj.name || '';\n};\n\nexport const getLanguageDirection = (languageCode = '') => {\n const rtlLanguageIds = ['ar', 'as', 'fa', 'he', 'ku', 'ur'];\n return rtlLanguageIds.includes(languageCode);\n};\n\nexport default languages;\n","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.showEmoji)?_c('i',{class:_vm.className},[_vm._v(_vm._s(_vm.iconContent))]):(_vm.showIcon)?_c('fluent-icon',{staticClass:\"flex-shrink-0\",class:_vm.className,attrs:{\"size\":_vm.iconSize,\"icon\":_vm.icon}}):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n {{ iconContent }}\n \n\n\n\n","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EmojiOrIcon.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EmojiOrIcon.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./EmojiOrIcon.vue?vue&type=template&id=032621ae&scoped=true&\"\nimport script from \"./EmojiOrIcon.vue?vue&type=script&lang=js&\"\nexport * from \"./EmojiOrIcon.vue?vue&type=script&lang=js&\"\nimport style0 from \"./EmojiOrIcon.vue?vue&type=style&index=0&id=032621ae&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"032621ae\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"avatar-container\",style:(_vm.style),attrs:{\"aria-hidden\":\"true\"}},[_vm._t(\"default\",function(){return [_vm._v(_vm._s(_vm.userInitial))]})],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Avatar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Avatar.vue?vue&type=script&lang=js&\"","\n\n\n \n {{ userInitial }}\n
\n\n\n\n","import { render, staticRenderFns } from \"./Avatar.vue?vue&type=template&id=59e049c0&scoped=true&\"\nimport script from \"./Avatar.vue?vue&type=script&lang=js&\"\nexport * from \"./Avatar.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Avatar.vue?vue&type=style&index=0&id=59e049c0&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"59e049c0\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('textarea',{ref:\"textarea\",attrs:{\"placeholder\":_vm.placeholder,\"rows\":_vm.rows},domProps:{\"value\":_vm.value},on:{\"input\":_vm.onInput,\"focus\":_vm.onFocus,\"keyup\":_vm.onKeyup,\"blur\":_vm.onBlur}})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ResizableTextArea.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ResizableTextArea.vue?vue&type=script&lang=js&\"","\n\n\n \n\n","import { render, staticRenderFns } from \"./ResizableTextArea.vue?vue&type=template&id=2ea38212&\"\nimport script from \"./ResizableTextArea.vue?vue&type=script&lang=js&\"\nexport * from \"./ResizableTextArea.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('kbd',{staticClass:\"hotkey p-0.5 min-w-[1rem] uppercase\",class:_vm.customClass},[_vm._t(\"default\")],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Hotkey.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Hotkey.vue?vue&type=script&lang=js&\"","\n\n\n \n \n \n\n\n\n","import { render, staticRenderFns } from \"./Hotkey.vue?vue&type=template&id=3264e160&\"\nimport script from \"./Hotkey.vue?vue&type=script&lang=js&\"\nexport * from \"./Hotkey.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Hotkey.vue?vue&type=style&index=0&id=3264e160&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.items.length)?_c('MentionBox',{attrs:{\"items\":_vm.items},on:{\"mentionSelect\":_vm.handleMentionClick},scopedSlots:_vm._u([{key:\"default\",fn:function({ item }){return [_c('strong',[_vm._v(_vm._s(item.label))]),_vm._v(\" - \"+_vm._s(item.description)+\"\\n \")]}}],null,false,2772235510)}):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n \n \n {{ item.label }} - {{ item.description }}\n \n \n\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CannedResponse.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CannedResponse.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CannedResponse.vue?vue&type=template&id=1eb7941d&\"\nimport script from \"./CannedResponse.vue?vue&type=script&lang=js&\"\nexport * from \"./CannedResponse.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","// HTML5 entities map: { name -> utf16string }\n//\n'use strict';\n/*eslint quotes:0*/\n\nmodule.exports = require('entities/lib/maps/entities.json');","// Regexps to match html elements\n'use strict';\n\nvar attr_name = '[a-zA-Z_:][a-zA-Z0-9:._-]*';\nvar unquoted = '[^\"\\'=<>`\\\\x00-\\\\x20]+';\nvar single_quoted = \"'[^']*'\";\nvar double_quoted = '\"[^\"]*\"';\nvar attr_value = '(?:' + unquoted + '|' + single_quoted + '|' + double_quoted + ')';\nvar attribute = '(?:\\\\s+' + attr_name + '(?:\\\\s*=\\\\s*' + attr_value + ')?)';\nvar open_tag = '<[A-Za-z][A-Za-z0-9\\\\-]*' + attribute + '*\\\\s*\\\\/?>';\nvar close_tag = '<\\\\/[A-Za-z][A-Za-z0-9\\\\-]*\\\\s*>';\nvar comment = '|';\nvar processing = '<[?].*?[?]>';\nvar declaration = ']*>';\nvar cdata = '';\nvar HTML_TAG_RE = new RegExp('^(?:' + open_tag + '|' + close_tag + '|' + comment + '|' + processing + '|' + declaration + '|' + cdata + ')');\nvar HTML_OPEN_CLOSE_TAG_RE = new RegExp('^(?:' + open_tag + '|' + close_tag + ')');\nmodule.exports.HTML_TAG_RE = HTML_TAG_RE;\nmodule.exports.HTML_OPEN_CLOSE_TAG_RE = HTML_OPEN_CLOSE_TAG_RE;","// ~~strike through~~\n//\n'use strict'; // Insert each marker as a separate text token, and add it to delimiter list\n//\n\nmodule.exports.tokenize = function strikethrough(state, silent) {\n var i,\n scanned,\n token,\n len,\n ch,\n start = state.pos,\n marker = state.src.charCodeAt(start);\n\n if (silent) {\n return false;\n }\n\n if (marker !== 0x7E\n /* ~ */\n ) {\n return false;\n }\n\n scanned = state.scanDelims(state.pos, true);\n len = scanned.length;\n ch = String.fromCharCode(marker);\n\n if (len < 2) {\n return false;\n }\n\n if (len % 2) {\n token = state.push('text', '', 0);\n token.content = ch;\n len--;\n }\n\n for (i = 0; i < len; i += 2) {\n token = state.push('text', '', 0);\n token.content = ch + ch;\n state.delimiters.push({\n marker: marker,\n length: 0,\n // disable \"rule of 3\" length checks meant for emphasis\n jump: i,\n token: state.tokens.length - 1,\n end: -1,\n open: scanned.can_open,\n close: scanned.can_close\n });\n }\n\n state.pos += scanned.length;\n return true;\n};\n\nfunction postProcess(state, delimiters) {\n var i,\n j,\n startDelim,\n endDelim,\n token,\n loneMarkers = [],\n max = delimiters.length;\n\n for (i = 0; i < max; i++) {\n startDelim = delimiters[i];\n\n if (startDelim.marker !== 0x7E\n /* ~ */\n ) {\n continue;\n }\n\n if (startDelim.end === -1) {\n continue;\n }\n\n endDelim = delimiters[startDelim.end];\n token = state.tokens[startDelim.token];\n token.type = 's_open';\n token.tag = 's';\n token.nesting = 1;\n token.markup = '~~';\n token.content = '';\n token = state.tokens[endDelim.token];\n token.type = 's_close';\n token.tag = 's';\n token.nesting = -1;\n token.markup = '~~';\n token.content = '';\n\n if (state.tokens[endDelim.token - 1].type === 'text' && state.tokens[endDelim.token - 1].content === '~') {\n loneMarkers.push(endDelim.token - 1);\n }\n } // If a marker sequence has an odd number of characters, it's splitted\n // like this: `~~~~~` -> `~` + `~~` + `~~`, leaving one marker at the\n // start of the sequence.\n //\n // So, we have to move all those markers after subsequent s_close tags.\n //\n\n\n while (loneMarkers.length) {\n i = loneMarkers.pop();\n j = i + 1;\n\n while (j < state.tokens.length && state.tokens[j].type === 's_close') {\n j++;\n }\n\n j--;\n\n if (i !== j) {\n token = state.tokens[j];\n state.tokens[j] = state.tokens[i];\n state.tokens[i] = token;\n }\n }\n} // Walk through delimiter list and replace text tokens with tags\n//\n\n\nmodule.exports.postProcess = function strikethrough(state) {\n var curr,\n tokens_meta = state.tokens_meta,\n max = state.tokens_meta.length;\n postProcess(state, state.delimiters);\n\n for (curr = 0; curr < max; curr++) {\n if (tokens_meta[curr] && tokens_meta[curr].delimiters) {\n postProcess(state, tokens_meta[curr].delimiters);\n }\n }\n};","// Process *this* and _that_\n//\n'use strict'; // Insert each marker as a separate text token, and add it to delimiter list\n//\n\nmodule.exports.tokenize = function emphasis(state, silent) {\n var i,\n scanned,\n token,\n start = state.pos,\n marker = state.src.charCodeAt(start);\n\n if (silent) {\n return false;\n }\n\n if (marker !== 0x5F\n /* _ */\n && marker !== 0x2A\n /* * */\n ) {\n return false;\n }\n\n scanned = state.scanDelims(state.pos, marker === 0x2A);\n\n for (i = 0; i < scanned.length; i++) {\n token = state.push('text', '', 0);\n token.content = String.fromCharCode(marker);\n state.delimiters.push({\n // Char code of the starting marker (number).\n //\n marker: marker,\n // Total length of these series of delimiters.\n //\n length: scanned.length,\n // An amount of characters before this one that's equivalent to\n // current one. In plain English: if this delimiter does not open\n // an emphasis, neither do previous `jump` characters.\n //\n // Used to skip sequences like \"*****\" in one step, for 1st asterisk\n // value will be 0, for 2nd it's 1 and so on.\n //\n jump: i,\n // A position of the token this delimiter corresponds to.\n //\n token: state.tokens.length - 1,\n // If this delimiter is matched as a valid opener, `end` will be\n // equal to its position, otherwise it's `-1`.\n //\n end: -1,\n // Boolean flags that determine if this delimiter could open or close\n // an emphasis.\n //\n open: scanned.can_open,\n close: scanned.can_close\n });\n }\n\n state.pos += scanned.length;\n return true;\n};\n\nfunction postProcess(state, delimiters) {\n var i,\n startDelim,\n endDelim,\n token,\n ch,\n isStrong,\n max = delimiters.length;\n\n for (i = max - 1; i >= 0; i--) {\n startDelim = delimiters[i];\n\n if (startDelim.marker !== 0x5F\n /* _ */\n && startDelim.marker !== 0x2A\n /* * */\n ) {\n continue;\n } // Process only opening markers\n\n\n if (startDelim.end === -1) {\n continue;\n }\n\n endDelim = delimiters[startDelim.end]; // If the previous delimiter has the same marker and is adjacent to this one,\n // merge those into one strong delimiter.\n //\n // `whatever` -> `whatever`\n //\n\n isStrong = i > 0 && delimiters[i - 1].end === startDelim.end + 1 && delimiters[i - 1].token === startDelim.token - 1 && delimiters[startDelim.end + 1].token === endDelim.token + 1 && delimiters[i - 1].marker === startDelim.marker;\n ch = String.fromCharCode(startDelim.marker);\n token = state.tokens[startDelim.token];\n token.type = isStrong ? 'strong_open' : 'em_open';\n token.tag = isStrong ? 'strong' : 'em';\n token.nesting = 1;\n token.markup = isStrong ? ch + ch : ch;\n token.content = '';\n token = state.tokens[endDelim.token];\n token.type = isStrong ? 'strong_close' : 'em_close';\n token.tag = isStrong ? 'strong' : 'em';\n token.nesting = -1;\n token.markup = isStrong ? ch + ch : ch;\n token.content = '';\n\n if (isStrong) {\n state.tokens[delimiters[i - 1].token].content = '';\n state.tokens[delimiters[startDelim.end + 1].token].content = '';\n i--;\n }\n }\n} // Walk through delimiter list and replace text tokens with tags\n//\n\n\nmodule.exports.postProcess = function emphasis(state) {\n var curr,\n tokens_meta = state.tokens_meta,\n max = state.tokens_meta.length;\n postProcess(state, state.delimiters);\n\n for (curr = 0; curr < max; curr++) {\n if (tokens_meta[curr] && tokens_meta[curr].delimiters) {\n postProcess(state, tokens_meta[curr].delimiters);\n }\n }\n};","'use strict';\nvar $ = require('../internals/export');\nvar $trimEnd = require('../internals/string-trim').end;\nvar forcedStringTrimMethod = require('../internals/string-trim-forced');\n\nvar FORCED = forcedStringTrimMethod('trimEnd');\n\nvar trimEnd = FORCED ? function trimEnd() {\n return $trimEnd(this);\n// eslint-disable-next-line es/no-string-prototype-trimstart-trimend -- safe\n} : ''.trimEnd;\n\n// `String.prototype.{ trimEnd, trimRight }` methods\n// https://tc39.es/ecma262/#sec-string.prototype.trimend\n// https://tc39.es/ecma262/#String.prototype.trimright\n$({ target: 'String', proto: true, forced: FORCED }, {\n trimEnd: trimEnd,\n trimRight: trimEnd\n});\n","/**\n * A function that provides access to various configuration values.\n * @returns {Object} An object containing configuration values.\n */\nexport function useConfig() {\n const config = window.chatwootConfig || {};\n\n /**\n * The host URL of the Chatwoot instance.\n * @type {string|undefined}\n */\n const hostURL = config.hostURL;\n\n /**\n * The VAPID public key for web push notifications.\n * @type {string|undefined}\n */\n const vapidPublicKey = config.vapidPublicKey;\n\n /**\n * An array of enabled languages in the Chatwoot instance.\n * @type {string[]|undefined}\n */\n const enabledLanguages = config.enabledLanguages;\n\n /**\n * Indicates whether the current instance is an enterprise version.\n * @type {boolean}\n */\n const isEnterprise = config.isEnterprise === 'true';\n\n /**\n * The name of the enterprise plan, if applicable.\n * Returns \"community\" or \"enterprise\"\n * @type {string|undefined}\n */\n const enterprisePlanName = config.enterprisePlanName;\n\n return {\n hostURL,\n vapidPublicKey,\n enabledLanguages,\n isEnterprise,\n enterprisePlanName,\n };\n}\n","import { isActiveElementTypeable, isEscape } from '../helpers/KeyboardHelpers';\n\nimport { createKeybindingsHandler } from 'tinykeys';\n\n// this is a store that stores the handler globally, and only gets reset on reload\nconst taggedHandlers = [];\n\nexport default {\n mounted() {\n const events = this.getKeyboardEvents();\n if (events) {\n const wrappedEvents = this.wrapEventsInKeybindingsHandler(events);\n const keydownHandler = createKeybindingsHandler(wrappedEvents);\n this.addEventHandler(keydownHandler);\n }\n },\n beforeDestroy() {\n if (this.$el && this.$el.dataset?.keydownHandlerIndex) {\n const handlerToRemove =\n taggedHandlers[this.$el.dataset.keydownHandlerIndex];\n document.removeEventListener('keydown', handlerToRemove);\n }\n },\n methods: {\n addEventHandler(keydownHandler) {\n const indexToAppend = taggedHandlers.push(keydownHandler) - 1;\n const root = this.$el;\n if (root && root.dataset) {\n // For the components with a top level v-if Vue renders it as an empty comment in the DOM\n // so we need to check if the root element has a dataset property to ensure it is a valid element\n document.addEventListener('keydown', keydownHandler);\n root.dataset.keydownHandlerIndex = indexToAppend;\n }\n },\n getKeyboardEvents() {\n return null;\n },\n wrapEventsInKeybindingsHandler(events) {\n const wrappedEvents = {};\n Object.keys(events).forEach(eventName => {\n wrappedEvents[eventName] = this.keydownWrapper(events[eventName]);\n });\n\n return wrappedEvents;\n },\n keydownWrapper(handler) {\n return e => {\n const actionToPerform =\n typeof handler === 'function' ? handler : handler.action;\n const allowOnFocusedInput =\n typeof handler === 'function' ? false : handler.allowOnFocusedInput;\n\n const isTypeable = isActiveElementTypeable(e);\n\n if (isTypeable) {\n if (isEscape(e)) {\n e.target.blur();\n }\n\n if (!allowOnFocusedInput) return;\n }\n\n actionToPerform(e);\n };\n },\n },\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar toInteger = require('../internals/to-integer');\nvar thisNumberValue = require('../internals/this-number-value');\nvar repeat = require('../internals/string-repeat');\nvar fails = require('../internals/fails');\n\nvar nativeToFixed = 1.0.toFixed;\nvar floor = Math.floor;\n\nvar pow = function (x, n, acc) {\n return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc);\n};\n\nvar log = function (x) {\n var n = 0;\n var x2 = x;\n while (x2 >= 4096) {\n n += 12;\n x2 /= 4096;\n }\n while (x2 >= 2) {\n n += 1;\n x2 /= 2;\n } return n;\n};\n\nvar multiply = function (data, n, c) {\n var index = -1;\n var c2 = c;\n while (++index < 6) {\n c2 += n * data[index];\n data[index] = c2 % 1e7;\n c2 = floor(c2 / 1e7);\n }\n};\n\nvar divide = function (data, n) {\n var index = 6;\n var c = 0;\n while (--index >= 0) {\n c += data[index];\n data[index] = floor(c / n);\n c = (c % n) * 1e7;\n }\n};\n\nvar dataToString = function (data) {\n var index = 6;\n var s = '';\n while (--index >= 0) {\n if (s !== '' || index === 0 || data[index] !== 0) {\n var t = String(data[index]);\n s = s === '' ? t : s + repeat.call('0', 7 - t.length) + t;\n }\n } return s;\n};\n\nvar FORCED = nativeToFixed && (\n 0.00008.toFixed(3) !== '0.000' ||\n 0.9.toFixed(0) !== '1' ||\n 1.255.toFixed(2) !== '1.25' ||\n 1000000000000000128.0.toFixed(0) !== '1000000000000000128'\n) || !fails(function () {\n // V8 ~ Android 4.3-\n nativeToFixed.call({});\n});\n\n// `Number.prototype.toFixed` method\n// https://tc39.es/ecma262/#sec-number.prototype.tofixed\n$({ target: 'Number', proto: true, forced: FORCED }, {\n toFixed: function toFixed(fractionDigits) {\n var number = thisNumberValue(this);\n var fractDigits = toInteger(fractionDigits);\n var data = [0, 0, 0, 0, 0, 0];\n var sign = '';\n var result = '0';\n var e, z, j, k;\n\n if (fractDigits < 0 || fractDigits > 20) throw RangeError('Incorrect fraction digits');\n // eslint-disable-next-line no-self-compare -- NaN check\n if (number != number) return 'NaN';\n if (number <= -1e21 || number >= 1e21) return String(number);\n if (number < 0) {\n sign = '-';\n number = -number;\n }\n if (number > 1e-21) {\n e = log(number * pow(2, 69, 1)) - 69;\n z = e < 0 ? number * pow(2, -e, 1) : number / pow(2, e, 1);\n z *= 0x10000000000000;\n e = 52 - e;\n if (e > 0) {\n multiply(data, 0, z);\n j = fractDigits;\n while (j >= 7) {\n multiply(data, 1e7, 0);\n j -= 7;\n }\n multiply(data, pow(10, j, 1), 0);\n j = e - 1;\n while (j >= 23) {\n divide(data, 1 << 23);\n j -= 23;\n }\n divide(data, 1 << j);\n multiply(data, 1, 1);\n divide(data, 2);\n result = dataToString(data);\n } else {\n multiply(data, 0, z);\n multiply(data, 1 << -e, 0);\n result = dataToString(data) + repeat.call('0', fractDigits);\n }\n }\n if (fractDigits > 0) {\n k = result.length;\n result = sign + (k <= fractDigits\n ? '0.' + repeat.call('0', fractDigits - k) + result\n : result.slice(0, k - fractDigits) + '.' + result.slice(k - fractDigits));\n } else {\n result = sign + result;\n } return result;\n }\n});\n","const setArrayValues = item => {\n return item.values[0]?.id ? item.values.map(val => val.id) : item.values;\n};\n\nconst generateValues = item => {\n if (item.attribute_key === 'content') {\n const values = item.values || '';\n return values.split(',');\n }\n if (Array.isArray(item.values)) {\n return setArrayValues(item);\n }\n if (typeof item.values === 'object') {\n return [item.values.id];\n }\n if (!item.values) {\n return [];\n }\n return [item.values];\n};\n\nconst generatePayload = data => {\n // Make a copy of data to avoid vue data reactivity issues\n const filters = JSON.parse(JSON.stringify(data));\n let payload = filters.map(item => {\n // If item key is content, we will split it using comma and return as array\n // FIX ME: Make this generic option instead of using the key directly here\n item.values = generateValues(item);\n return item;\n });\n\n // For every query added, the query_operator is set default to and so the\n // last query will have an extra query_operator, this would break the api.\n // Setting this to null for all query payload\n payload[payload.length - 1].query_operator = undefined;\n return { payload };\n};\n\nexport default generatePayload;\n","const locales = {\n af: 'Afrikaans',\n af_NA: 'Afrikaans (Namibia)',\n af_ZA: 'Afrikaans (South Africa)',\n ak: 'Akan',\n ak_GH: 'Akan (Ghana)',\n sq: 'Albanian',\n sq_AL: 'Albanian (Albania)',\n sq_XK: 'Albanian (Kosovo)',\n sq_MK: 'Albanian (Macedonia)',\n am: 'Amharic',\n am_ET: 'Amharic (Ethiopia)',\n ar: 'Arabic',\n ar_DZ: 'Arabic (Algeria)',\n ar_BH: 'Arabic (Bahrain)',\n ar_TD: 'Arabic (Chad)',\n ar_KM: 'Arabic (Comoros)',\n ar_DJ: 'Arabic (Djibouti)',\n ar_EG: 'Arabic (Egypt)',\n ar_ER: 'Arabic (Eritrea)',\n ar_IQ: 'Arabic (Iraq)',\n ar_IL: 'Arabic (Israel)',\n ar_JO: 'Arabic (Jordan)',\n ar_KW: 'Arabic (Kuwait)',\n ar_LB: 'Arabic (Lebanon)',\n ar_LY: 'Arabic (Libya)',\n ar_MR: 'Arabic (Mauritania)',\n ar_MA: 'Arabic (Morocco)',\n ar_OM: 'Arabic (Oman)',\n ar_PS: 'Arabic (Palestinian Territories)',\n ar_QA: 'Arabic (Qatar)',\n ar_SA: 'Arabic (Saudi Arabia)',\n ar_SO: 'Arabic (Somalia)',\n ar_SS: 'Arabic (South Sudan)',\n ar_SD: 'Arabic (Sudan)',\n ar_SY: 'Arabic (Syria)',\n ar_TN: 'Arabic (Tunisia)',\n ar_AE: 'Arabic (United Arab Emirates)',\n ar_EH: 'Arabic (Western Sahara)',\n ar_YE: 'Arabic (Yemen)',\n hy: 'Armenian',\n hy_AM: 'Armenian (Armenia)',\n as: 'Assamese',\n as_IN: 'Assamese (India)',\n az: 'Azerbaijani',\n az_AZ: 'Azerbaijani (Azerbaijan)',\n az_Cyrl_AZ: 'Azerbaijani (Cyrillic, Azerbaijan)',\n az_Cyrl: 'Azerbaijani (Cyrillic)',\n az_Latn_AZ: 'Azerbaijani (Latin, Azerbaijan)',\n az_Latn: 'Azerbaijani (Latin)',\n bm: 'Bambara',\n bm_Latn_ML: 'Bambara (Latin, Mali)',\n bm_Latn: 'Bambara (Latin)',\n eu: 'Basque',\n eu_ES: 'Basque (Spain)',\n be: 'Belarusian',\n be_BY: 'Belarusian (Belarus)',\n bn: 'Bengali',\n bn_BD: 'Bengali (Bangladesh)',\n bn_IN: 'Bengali (India)',\n bs: 'Bosnian',\n bs_BA: 'Bosnian (Bosnia & Herzegovina)',\n bs_Cyrl_BA: 'Bosnian (Cyrillic, Bosnia & Herzegovina)',\n bs_Cyrl: 'Bosnian (Cyrillic)',\n bs_Latn_BA: 'Bosnian (Latin, Bosnia & Herzegovina)',\n bs_Latn: 'Bosnian (Latin)',\n br: 'Breton',\n br_FR: 'Breton (France)',\n bg: 'Bulgarian',\n bg_BG: 'Bulgarian (Bulgaria)',\n my: 'Burmese',\n my_MM: 'Burmese (Myanmar (Burma))',\n ca: 'Catalan',\n ca_AD: 'Catalan (Andorra)',\n ca_FR: 'Catalan (France)',\n ca_IT: 'Catalan (Italy)',\n ca_ES: 'Catalan (Spain)',\n zh: 'Chinese',\n zh_CN: 'Chinese (China)',\n zh_HK: 'Chinese (Hong Kong SAR China)',\n zh_MO: 'Chinese (Macau SAR China)',\n zh_Hans_CN: 'Chinese (Simplified, China)',\n zh_Hans_HK: 'Chinese (Simplified, Hong Kong SAR China)',\n zh_Hans_MO: 'Chinese (Simplified, Macau SAR China)',\n zh_Hans_SG: 'Chinese (Simplified, Singapore)',\n zh_Hans: 'Chinese (Simplified)',\n zh_SG: 'Chinese (Singapore)',\n zh_TW: 'Chinese (Taiwan)',\n zh_Hant_HK: 'Chinese (Traditional, Hong Kong SAR China)',\n zh_Hant_MO: 'Chinese (Traditional, Macau SAR China)',\n zh_Hant_TW: 'Chinese (Traditional, Taiwan)',\n zh_Hant: 'Chinese (Traditional)',\n kw: 'Cornish',\n kw_GB: 'Cornish (United Kingdom)',\n hr: 'Croatian',\n hr_BA: 'Croatian (Bosnia & Herzegovina)',\n hr_HR: 'Croatian (Croatia)',\n cs: 'Czech',\n cs_CZ: 'Czech (Czech Republic)',\n da: 'Danish',\n da_DK: 'Danish (Denmark)',\n da_GL: 'Danish (Greenland)',\n nl: 'Dutch',\n nl_AW: 'Dutch (Aruba)',\n nl_BE: 'Dutch (Belgium)',\n nl_BQ: 'Dutch (Caribbean Netherlands)',\n nl_CW: 'Dutch (Curaçao)',\n nl_NL: 'Dutch (Netherlands)',\n nl_SX: 'Dutch (Sint Maarten)',\n nl_SR: 'Dutch (Suriname)',\n dz: 'Dzongkha',\n dz_BT: 'Dzongkha (Bhutan)',\n en: 'English',\n en_AS: 'English (American Samoa)',\n en_AI: 'English (Anguilla)',\n en_AG: 'English (Antigua & Barbuda)',\n en_AU: 'English (Australia)',\n en_BS: 'English (Bahamas)',\n en_BB: 'English (Barbados)',\n en_BE: 'English (Belgium)',\n en_BZ: 'English (Belize)',\n en_BM: 'English (Bermuda)',\n en_BW: 'English (Botswana)',\n en_IO: 'English (British Indian Ocean Territory)',\n en_VG: 'English (British Virgin Islands)',\n en_CM: 'English (Cameroon)',\n en_CA: 'English (Canada)',\n en_KY: 'English (Cayman Islands)',\n en_CX: 'English (Christmas Island)',\n en_CC: 'English (Cocos (Keeling) Islands)',\n en_CK: 'English (Cook Islands)',\n en_DG: 'English (Diego Garcia)',\n en_DM: 'English (Dominica)',\n en_ER: 'English (Eritrea)',\n en_FK: 'English (Falkland Islands)',\n en_FJ: 'English (Fiji)',\n en_GM: 'English (Gambia)',\n en_GH: 'English (Ghana)',\n en_GI: 'English (Gibraltar)',\n en_GD: 'English (Grenada)',\n en_GU: 'English (Guam)',\n en_GG: 'English (Guernsey)',\n en_GY: 'English (Guyana)',\n en_HK: 'English (Hong Kong SAR China)',\n en_IN: 'English (India)',\n en_IE: 'English (Ireland)',\n en_IM: 'English (Isle of Man)',\n en_JM: 'English (Jamaica)',\n en_JE: 'English (Jersey)',\n en_KE: 'English (Kenya)',\n en_KI: 'English (Kiribati)',\n en_LS: 'English (Lesotho)',\n en_LR: 'English (Liberia)',\n en_MO: 'English (Macau SAR China)',\n en_MG: 'English (Madagascar)',\n en_MW: 'English (Malawi)',\n en_MY: 'English (Malaysia)',\n en_MT: 'English (Malta)',\n en_MH: 'English (Marshall Islands)',\n en_MU: 'English (Mauritius)',\n en_FM: 'English (Micronesia)',\n en_MS: 'English (Montserrat)',\n en_NA: 'English (Namibia)',\n en_NR: 'English (Nauru)',\n en_NZ: 'English (New Zealand)',\n en_NG: 'English (Nigeria)',\n en_NU: 'English (Niue)',\n en_NF: 'English (Norfolk Island)',\n en_MP: 'English (Northern Mariana Islands)',\n en_PK: 'English (Pakistan)',\n en_PW: 'English (Palau)',\n en_PG: 'English (Papua New Guinea)',\n en_PH: 'English (Philippines)',\n en_PN: 'English (Pitcairn Islands)',\n en_PR: 'English (Puerto Rico)',\n en_RW: 'English (Rwanda)',\n en_WS: 'English (Samoa)',\n en_SC: 'English (Seychelles)',\n en_SL: 'English (Sierra Leone)',\n en_SG: 'English (Singapore)',\n en_SX: 'English (Sint Maarten)',\n en_SB: 'English (Solomon Islands)',\n en_ZA: 'English (South Africa)',\n en_SS: 'English (South Sudan)',\n en_SH: 'English (St. Helena)',\n en_KN: 'English (St. Kitts & Nevis)',\n en_LC: 'English (St. Lucia)',\n en_VC: 'English (St. Vincent & Grenadines)',\n en_SD: 'English (Sudan)',\n en_SZ: 'English (Swaziland)',\n en_TZ: 'English (Tanzania)',\n en_TK: 'English (Tokelau)',\n en_TO: 'English (Tonga)',\n en_TT: 'English (Trinidad & Tobago)',\n en_TC: 'English (Turks & Caicos Islands)',\n en_TV: 'English (Tuvalu)',\n en_UM: 'English (U.S. Outlying Islands)',\n en_VI: 'English (U.S. Virgin Islands)',\n en_UG: 'English (Uganda)',\n en_GB: 'English (United Kingdom)',\n en_US: 'English (United States)',\n en_VU: 'English (Vanuatu)',\n en_ZM: 'English (Zambia)',\n en_ZW: 'English (Zimbabwe)',\n eo: 'Esperanto',\n et: 'Estonian',\n et_EE: 'Estonian (Estonia)',\n ee: 'Ewe',\n ee_GH: 'Ewe (Ghana)',\n ee_TG: 'Ewe (Togo)',\n fo: 'Faroese',\n fo_FO: 'Faroese (Faroe Islands)',\n fi: 'Finnish',\n fi_FI: 'Finnish (Finland)',\n fr: 'French',\n fr_DZ: 'French (Algeria)',\n fr_BE: 'French (Belgium)',\n fr_BJ: 'French (Benin)',\n fr_BF: 'French (Burkina Faso)',\n fr_BI: 'French (Burundi)',\n fr_CM: 'French (Cameroon)',\n fr_CA: 'French (Canada)',\n fr_CF: 'French (Central African Republic)',\n fr_TD: 'French (Chad)',\n fr_KM: 'French (Comoros)',\n fr_CG: 'French (Congo - Brazzaville)',\n fr_CD: 'French (Congo - Kinshasa)',\n fr_CI: 'French (Côte d’Ivoire)',\n fr_DJ: 'French (Djibouti)',\n fr_GQ: 'French (Equatorial Guinea)',\n fr_FR: 'French (France)',\n fr_GF: 'French (French Guiana)',\n fr_PF: 'French (French Polynesia)',\n fr_GA: 'French (Gabon)',\n fr_GP: 'French (Guadeloupe)',\n fr_GN: 'French (Guinea)',\n fr_HT: 'French (Haiti)',\n fr_LU: 'French (Luxembourg)',\n fr_MG: 'French (Madagascar)',\n fr_ML: 'French (Mali)',\n fr_MQ: 'French (Martinique)',\n fr_MR: 'French (Mauritania)',\n fr_MU: 'French (Mauritius)',\n fr_YT: 'French (Mayotte)',\n fr_MC: 'French (Monaco)',\n fr_MA: 'French (Morocco)',\n fr_NC: 'French (New Caledonia)',\n fr_NE: 'French (Niger)',\n fr_RE: 'French (Réunion)',\n fr_RW: 'French (Rwanda)',\n fr_SN: 'French (Senegal)',\n fr_SC: 'French (Seychelles)',\n fr_BL: 'French (St. Barthélemy)',\n fr_MF: 'French (St. Martin)',\n fr_PM: 'French (St. Pierre & Miquelon)',\n fr_CH: 'French (Switzerland)',\n fr_SY: 'French (Syria)',\n fr_TG: 'French (Togo)',\n fr_TN: 'French (Tunisia)',\n fr_VU: 'French (Vanuatu)',\n fr_WF: 'French (Wallis & Futuna)',\n ff: 'Fulah',\n ff_CM: 'Fulah (Cameroon)',\n ff_GN: 'Fulah (Guinea)',\n ff_MR: 'Fulah (Mauritania)',\n ff_SN: 'Fulah (Senegal)',\n gl: 'Galician',\n gl_ES: 'Galician (Spain)',\n lg: 'Ganda',\n lg_UG: 'Ganda (Uganda)',\n ka: 'Georgian',\n ka_GE: 'Georgian (Georgia)',\n de: 'German',\n de_AT: 'German (Austria)',\n de_BE: 'German (Belgium)',\n de_DE: 'German (Germany)',\n de_LI: 'German (Liechtenstein)',\n de_LU: 'German (Luxembourg)',\n de_CH: 'German (Switzerland)',\n el: 'Greek',\n el_CY: 'Greek (Cyprus)',\n el_GR: 'Greek (Greece)',\n gu: 'Gujarati',\n gu_IN: 'Gujarati (India)',\n ha: 'Hausa',\n ha_GH: 'Hausa (Ghana)',\n ha_Latn_GH: 'Hausa (Latin, Ghana)',\n ha_Latn_NE: 'Hausa (Latin, Niger)',\n ha_Latn_NG: 'Hausa (Latin, Nigeria)',\n ha_Latn: 'Hausa (Latin)',\n ha_NE: 'Hausa (Niger)',\n ha_NG: 'Hausa (Nigeria)',\n he: 'Hebrew',\n he_IL: 'Hebrew (Israel)',\n hi: 'Hindi',\n hi_IN: 'Hindi (India)',\n hu: 'Hungarian',\n hu_HU: 'Hungarian (Hungary)',\n is: 'Icelandic',\n is_IS: 'Icelandic (Iceland)',\n ig: 'Igbo',\n ig_NG: 'Igbo (Nigeria)',\n id: 'Indonesian',\n id_ID: 'Indonesian (Indonesia)',\n ga: 'Irish',\n ga_IE: 'Irish (Ireland)',\n it: 'Italian',\n it_IT: 'Italian (Italy)',\n it_SM: 'Italian (San Marino)',\n it_CH: 'Italian (Switzerland)',\n ja: 'Japanese',\n ja_JP: 'Japanese (Japan)',\n kl: 'Kalaallisut',\n kl_GL: 'Kalaallisut (Greenland)',\n kn: 'Kannada',\n kn_IN: 'Kannada (India)',\n ks: 'Kashmiri',\n ks_Arab_IN: 'Kashmiri (Arabic, India)',\n ks_Arab: 'Kashmiri (Arabic)',\n ks_IN: 'Kashmiri (India)',\n kk: 'Kazakh',\n kk_Cyrl_KZ: 'Kazakh (Cyrillic, Kazakhstan)',\n kk_Cyrl: 'Kazakh (Cyrillic)',\n kk_KZ: 'Kazakh (Kazakhstan)',\n km: 'Khmer',\n km_KH: 'Khmer (Cambodia)',\n ki: 'Kikuyu',\n ki_KE: 'Kikuyu (Kenya)',\n rw: 'Kinyarwanda',\n rw_RW: 'Kinyarwanda (Rwanda)',\n ko: 'Korean',\n ko_KP: 'Korean (North Korea)',\n ko_KR: 'Korean (South Korea)',\n ky: 'Kyrgyz',\n ky_Cyrl_KG: 'Kyrgyz (Cyrillic, Kyrgyzstan)',\n ky_Cyrl: 'Kyrgyz (Cyrillic)',\n ky_KG: 'Kyrgyz (Kyrgyzstan)',\n lo: 'Lao',\n lo_LA: 'Lao (Laos)',\n lv: 'Latvian',\n lv_LV: 'Latvian (Latvia)',\n ln: 'Lingala',\n ln_AO: 'Lingala (Angola)',\n ln_CF: 'Lingala (Central African Republic)',\n ln_CG: 'Lingala (Congo - Brazzaville)',\n ln_CD: 'Lingala (Congo - Kinshasa)',\n lt: 'Lithuanian',\n lt_LT: 'Lithuanian (Lithuania)',\n lu: 'Luba-Katanga',\n lu_CD: 'Luba-Katanga (Congo - Kinshasa)',\n lb: 'Luxembourgish',\n lb_LU: 'Luxembourgish (Luxembourg)',\n mk: 'Macedonian',\n mk_MK: 'Macedonian (Macedonia)',\n mg: 'Malagasy',\n mg_MG: 'Malagasy (Madagascar)',\n ms: 'Malay',\n ms_BN: 'Malay (Brunei)',\n ms_Latn_BN: 'Malay (Latin, Brunei)',\n ms_Latn_MY: 'Malay (Latin, Malaysia)',\n ms_Latn_SG: 'Malay (Latin, Singapore)',\n ms_Latn: 'Malay (Latin)',\n ms_MY: 'Malay (Malaysia)',\n ms_SG: 'Malay (Singapore)',\n ml: 'Malayalam',\n ml_IN: 'Malayalam (India)',\n mt: 'Maltese',\n mt_MT: 'Maltese (Malta)',\n gv: 'Manx',\n gv_IM: 'Manx (Isle of Man)',\n mr: 'Marathi',\n mr_IN: 'Marathi (India)',\n mn: 'Mongolian',\n mn_Cyrl_MN: 'Mongolian (Cyrillic, Mongolia)',\n mn_Cyrl: 'Mongolian (Cyrillic)',\n mn_MN: 'Mongolian (Mongolia)',\n ne: 'Nepali',\n ne_IN: 'Nepali (India)',\n ne_NP: 'Nepali (Nepal)',\n nd: 'North Ndebele',\n nd_ZW: 'North Ndebele (Zimbabwe)',\n se: 'Northern Sami',\n se_FI: 'Northern Sami (Finland)',\n se_NO: 'Northern Sami (Norway)',\n se_SE: 'Northern Sami (Sweden)',\n no: 'Norwegian',\n no_NO: 'Norwegian (Norway)',\n nb: 'Norwegian Bokmål',\n nb_NO: 'Norwegian Bokmål (Norway)',\n nb_SJ: 'Norwegian Bokmål (Svalbard & Jan Mayen)',\n nn: 'Norwegian Nynorsk',\n nn_NO: 'Norwegian Nynorsk (Norway)',\n or: 'Oriya',\n or_IN: 'Oriya (India)',\n om: 'Oromo',\n om_ET: 'Oromo (Ethiopia)',\n om_KE: 'Oromo (Kenya)',\n os: 'Ossetic',\n os_GE: 'Ossetic (Georgia)',\n os_RU: 'Ossetic (Russia)',\n ps: 'Pashto',\n ps_AF: 'Pashto (Afghanistan)',\n fa: 'Persian',\n fa_AF: 'Persian (Afghanistan)',\n fa_IR: 'Persian (Iran)',\n pl: 'Polish',\n pl_PL: 'Polish (Poland)',\n pt: 'Portuguese',\n pt_AO: 'Portuguese (Angola)',\n pt_BR: 'Portuguese (Brazil)',\n pt_CV: 'Portuguese (Cape Verde)',\n pt_GW: 'Portuguese (Guinea-Bissau)',\n pt_MO: 'Portuguese (Macau SAR China)',\n pt_MZ: 'Portuguese (Mozambique)',\n pt_PT: 'Portuguese (Portugal)',\n pt_ST: 'Portuguese (São Tomé & Príncipe)',\n pt_TL: 'Portuguese (Timor-Leste)',\n pa: 'Punjabi',\n pa_Arab_PK: 'Punjabi (Arabic, Pakistan)',\n pa_Arab: 'Punjabi (Arabic)',\n pa_Guru_IN: 'Punjabi (Gurmukhi, India)',\n pa_Guru: 'Punjabi (Gurmukhi)',\n pa_IN: 'Punjabi (India)',\n pa_PK: 'Punjabi (Pakistan)',\n qu: 'Quechua',\n qu_BO: 'Quechua (Bolivia)',\n qu_EC: 'Quechua (Ecuador)',\n qu_PE: 'Quechua (Peru)',\n ro: 'Romanian',\n ro_MD: 'Romanian (Moldova)',\n ro_RO: 'Romanian (Romania)',\n rm: 'Romansh',\n rm_CH: 'Romansh (Switzerland)',\n rn: 'Rundi',\n rn_BI: 'Rundi (Burundi)',\n ru: 'Russian',\n ru_BY: 'Russian (Belarus)',\n ru_KZ: 'Russian (Kazakhstan)',\n ru_KG: 'Russian (Kyrgyzstan)',\n ru_MD: 'Russian (Moldova)',\n ru_RU: 'Russian (Russia)',\n ru_UA: 'Russian (Ukraine)',\n sg: 'Sango',\n sg_CF: 'Sango (Central African Republic)',\n gd: 'Scottish Gaelic',\n gd_GB: 'Scottish Gaelic (United Kingdom)',\n sr: 'Serbian',\n sr_BA: 'Serbian (Bosnia & Herzegovina)',\n sr_Cyrl_BA: 'Serbian (Cyrillic, Bosnia & Herzegovina)',\n sr_Cyrl_XK: 'Serbian (Cyrillic, Kosovo)',\n sr_Cyrl_ME: 'Serbian (Cyrillic, Montenegro)',\n sr_Cyrl_RS: 'Serbian (Cyrillic, Serbia)',\n sr_Cyrl: 'Serbian (Cyrillic)',\n sr_XK: 'Serbian (Kosovo)',\n sr_Latn_BA: 'Serbian (Latin, Bosnia & Herzegovina)',\n sr_Latn_XK: 'Serbian (Latin, Kosovo)',\n sr_Latn_ME: 'Serbian (Latin, Montenegro)',\n sr_Latn_RS: 'Serbian (Latin, Serbia)',\n sr_Latn: 'Serbian (Latin)',\n sr_ME: 'Serbian (Montenegro)',\n sr_RS: 'Serbian (Serbia)',\n sh: 'Serbo-Croatian',\n sh_BA: 'Serbo-Croatian (Bosnia & Herzegovina)',\n sn: 'Shona',\n sn_ZW: 'Shona (Zimbabwe)',\n ii: 'Sichuan Yi',\n ii_CN: 'Sichuan Yi (China)',\n si: 'Sinhala',\n si_LK: 'Sinhala (Sri Lanka)',\n sk: 'Slovak',\n sk_SK: 'Slovak (Slovakia)',\n sl: 'Slovenian',\n sl_SI: 'Slovenian (Slovenia)',\n so: 'Somali',\n so_DJ: 'Somali (Djibouti)',\n so_ET: 'Somali (Ethiopia)',\n so_KE: 'Somali (Kenya)',\n so_SO: 'Somali (Somalia)',\n es: 'Spanish',\n es_AR: 'Spanish (Argentina)',\n es_BO: 'Spanish (Bolivia)',\n es_IC: 'Spanish (Canary Islands)',\n es_EA: 'Spanish (Ceuta & Melilla)',\n es_CL: 'Spanish (Chile)',\n es_CO: 'Spanish (Colombia)',\n es_CR: 'Spanish (Costa Rica)',\n es_CU: 'Spanish (Cuba)',\n es_DO: 'Spanish (Dominican Republic)',\n es_EC: 'Spanish (Ecuador)',\n es_SV: 'Spanish (El Salvador)',\n es_GQ: 'Spanish (Equatorial Guinea)',\n es_GT: 'Spanish (Guatemala)',\n es_HN: 'Spanish (Honduras)',\n es_MX: 'Spanish (Mexico)',\n es_NI: 'Spanish (Nicaragua)',\n es_PA: 'Spanish (Panama)',\n es_PY: 'Spanish (Paraguay)',\n es_PE: 'Spanish (Peru)',\n es_PH: 'Spanish (Philippines)',\n es_PR: 'Spanish (Puerto Rico)',\n es_ES: 'Spanish (Spain)',\n es_US: 'Spanish (United States)',\n es_UY: 'Spanish (Uruguay)',\n es_VE: 'Spanish (Venezuela)',\n sw: 'Swahili',\n sw_KE: 'Swahili (Kenya)',\n sw_TZ: 'Swahili (Tanzania)',\n sw_UG: 'Swahili (Uganda)',\n sv: 'Swedish',\n sv_AX: 'Swedish (Åland Islands)',\n sv_FI: 'Swedish (Finland)',\n sv_SE: 'Swedish (Sweden)',\n tl: 'Tagalog',\n tl_PH: 'Tagalog (Philippines)',\n ta: 'Tamil',\n ta_IN: 'Tamil (India)',\n ta_MY: 'Tamil (Malaysia)',\n ta_SG: 'Tamil (Singapore)',\n ta_LK: 'Tamil (Sri Lanka)',\n te: 'Telugu',\n te_IN: 'Telugu (India)',\n th: 'Thai',\n th_TH: 'Thai (Thailand)',\n bo: 'Tibetan',\n bo_CN: 'Tibetan (China)',\n bo_IN: 'Tibetan (India)',\n ti: 'Tigrinya',\n ti_ER: 'Tigrinya (Eritrea)',\n ti_ET: 'Tigrinya (Ethiopia)',\n to: 'Tongan',\n to_TO: 'Tongan (Tonga)',\n tr: 'Turkish',\n tr_CY: 'Turkish (Cyprus)',\n tr_TR: 'Turkish (Turkey)',\n uk: 'Ukrainian',\n uk_UA: 'Ukrainian (Ukraine)',\n ur: 'Urdu',\n ur_IN: 'Urdu (India)',\n ur_PK: 'Urdu (Pakistan)',\n ug: 'Uyghur',\n ug_Arab_CN: 'Uyghur (Arabic, China)',\n ug_Arab: 'Uyghur (Arabic)',\n ug_CN: 'Uyghur (China)',\n uz: 'Uzbek',\n uz_AF: 'Uzbek (Afghanistan)',\n uz_Arab_AF: 'Uzbek (Arabic, Afghanistan)',\n uz_Arab: 'Uzbek (Arabic)',\n uz_Cyrl_UZ: 'Uzbek (Cyrillic, Uzbekistan)',\n uz_Cyrl: 'Uzbek (Cyrillic)',\n uz_Latn_UZ: 'Uzbek (Latin, Uzbekistan)',\n uz_Latn: 'Uzbek (Latin)',\n uz_UZ: 'Uzbek (Uzbekistan)',\n vi: 'Vietnamese',\n vi_VN: 'Vietnamese (Vietnam)',\n cy: 'Welsh',\n cy_GB: 'Welsh (United Kingdom)',\n fy: 'Western Frisian',\n fy_NL: 'Western Frisian (Netherlands)',\n yi: 'Yiddish',\n yo: 'Yoruba',\n yo_BJ: 'Yoruba (Benin)',\n yo_NG: 'Yoruba (Nigeria)',\n zu: 'Zulu',\n zu_ZA: 'Zulu (South Africa)',\n};\nexport default locales;\n","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name differenceInMilliseconds\n * @category Millisecond Helpers\n * @summary Get the number of milliseconds between the given dates.\n *\n * @description\n * Get the number of milliseconds between the given dates.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of milliseconds\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many milliseconds are between\n * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700?\n * var result = differenceInMilliseconds(\n * new Date(2014, 6, 2, 12, 30, 21, 700),\n * new Date(2014, 6, 2, 12, 30, 20, 600)\n * )\n * //=> 1100\n */\n\nexport default function differenceInMilliseconds(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeft = toDate(dirtyDateLeft);\n var dateRight = toDate(dirtyDateRight);\n return dateLeft.getTime() - dateRight.getTime();\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name endOfMonth\n * @category Month Helpers\n * @summary Return the end of a month for the given date.\n *\n * @description\n * Return the end of a month for the given date.\n * The result will be in the local timezone.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the end of a month\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The end of a month for 2 September 2014 11:55:00:\n * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 30 2014 23:59:59.999\n */\n\nexport default function endOfMonth(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var month = date.getMonth();\n date.setFullYear(date.getFullYear(), month + 1, 0);\n date.setHours(23, 59, 59, 999);\n return date;\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name differenceInCalendarMonths\n * @category Month Helpers\n * @summary Get the number of calendar months between the given dates.\n *\n * @description\n * Get the number of calendar months between the given dates.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of calendar months\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many calendar months are between 31 January 2014 and 1 September 2014?\n * var result = differenceInCalendarMonths(\n * new Date(2014, 8, 1),\n * new Date(2014, 0, 31)\n * )\n * //=> 8\n */\n\nexport default function differenceInCalendarMonths(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeft = toDate(dirtyDateLeft);\n var dateRight = toDate(dirtyDateRight);\n var yearDiff = dateLeft.getFullYear() - dateRight.getFullYear();\n var monthDiff = dateLeft.getMonth() - dateRight.getMonth();\n return yearDiff * 12 + monthDiff;\n}","'use strict';\n\nmodule.exports = require('./lib/');","import differenceInMilliseconds from \"../differenceInMilliseconds/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name differenceInSeconds\n * @category Second Helpers\n * @summary Get the number of seconds between the given dates.\n *\n * @description\n * Get the number of seconds between the given dates.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of seconds\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many seconds are between\n * // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000?\n * var result = differenceInSeconds(\n * new Date(2014, 6, 2, 12, 30, 20, 0),\n * new Date(2014, 6, 2, 12, 30, 7, 999)\n * )\n * //=> 12\n */\n\nexport default function differenceInSeconds(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var diff = differenceInMilliseconds(dirtyDateLeft, dirtyDateRight) / 1000;\n return diff > 0 ? Math.floor(diff) : Math.ceil(diff);\n}","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('button',{staticClass:\"button\",class:_vm.buttonClasses,attrs:{\"type\":_vm.type,\"disabled\":_vm.isDisabled || _vm.isLoading},on:{\"click\":_vm.handleClick}},[(_vm.isLoading)?_c('Spinner',{attrs:{\"size\":\"small\",\"color-scheme\":_vm.showDarkSpinner ? 'dark' : ''}}):(_vm.icon || _vm.emoji)?_c('EmojiOrIcon',{staticClass:\"icon\",attrs:{\"emoji\":_vm.emoji,\"icon\":_vm.icon,\"icon-size\":_vm.iconSize}}):_vm._e(),_vm._v(\" \"),(_vm.$slots.default)?_c('span',{staticClass:\"button__content\",class:{ 'text-left rtl:text-right': _vm.size !== 'expanded' }},[_vm._t(\"default\")],2):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WootButton.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WootButton.vue?vue&type=script&lang=js&\"","\n\n\n \n\n","import { render, staticRenderFns } from \"./WootButton.vue?vue&type=template&id=5285f6f0&\"\nimport script from \"./WootButton.vue?vue&type=script&lang=js&\"\nexport * from \"./WootButton.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"relative flex items-center\"},[_c('woot-button',{staticClass:\"absolute [&>span]:flex [&>span]:items-center [&>span]:justify-center z-10 top-[28px] h-[2.5rem] w-[2.45rem] !text-slate-400 dark:!text-slate-600 dark:!bg-slate-900 !p-0\",attrs:{\"variant\":\"hollow\",\"color-scheme\":\"secondary\"},on:{\"click\":_vm.toggleEmojiPicker}},[(_vm.icon)?_c('span',{directives:[{name:\"dompurify-html\",rawName:\"v-dompurify-html\",value:(_vm.icon),expression:\"icon\"}],staticClass:\"text-lg\"}):_c('fluent-icon',{staticClass:\"text-slate-400 dark:text-slate-600\",attrs:{\"size\":\"18\",\"icon\":\"emoji-add\",\"type\":\"outline\"}})],1),_vm._v(\" \"),_c('woot-input',{staticClass:\"!mt-0 !mb-4 !mx-0 [&>input]:!mb-0 ltr:[&>input]:ml-12 rtl:[&>input]:mr-12 relative w-[calc(100%-3rem)] [&>p]:w-max\",class:{ error: _vm.hasError },attrs:{\"error\":_vm.nameErrorMessage,\"label\":_vm.label,\"placeholder\":_vm.placeholder,\"help-text\":_vm.helpText},on:{\"input\":_vm.onNameChange},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:\"name\"}}),_vm._v(\" \"),(_vm.showEmojiPicker)?_c('EmojiInput',{directives:[{name:\"on-clickaway\",rawName:\"v-on-clickaway\",value:(_vm.hideEmojiPicker),expression:\"hideEmojiPicker\"}],staticClass:\"left-0 top-16\",attrs:{\"show-remove-button\":\"\",\"on-click\":_vm.onClickInsertEmoji}}):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n \n span]:flex [&>span]:items-center [&>span]:justify-center z-10 top-[28px] h-[2.5rem] w-[2.45rem] !text-slate-400 dark:!text-slate-600 dark:!bg-slate-900 !p-0\"\n color-scheme=\"secondary\"\n @click=\"toggleEmojiPicker\"\n >\n \n \n \n input]:!mb-0 ltr:[&>input]:ml-12 rtl:[&>input]:mr-12 relative w-[calc(100%-3rem)] [&>p]:w-max\"\n :error=\"nameErrorMessage\"\n :label=\"label\"\n :placeholder=\"placeholder\"\n :help-text=\"helpText\"\n @input=\"onNameChange\"\n />\n \n
\n\n\n\n","import mod from \"-!../../../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NameEmojiInput.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NameEmojiInput.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./NameEmojiInput.vue?vue&type=template&id=1c5e90fc&scoped=true&\"\nimport script from \"./NameEmojiInput.vue?vue&type=script&lang=js&\"\nexport * from \"./NameEmojiInput.vue?vue&type=script&lang=js&\"\nimport style0 from \"./NameEmojiInput.vue?vue&type=style&index=0&id=1c5e90fc&prod&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"1c5e90fc\",\n null\n \n)\n\nexport default component.exports","var ListCache = require('./_ListCache'),\n stackClear = require('./_stackClear'),\n stackDelete = require('./_stackDelete'),\n stackGet = require('./_stackGet'),\n stackHas = require('./_stackHas'),\n stackSet = require('./_stackSet');\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n\n\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n} // Add methods to `Stack`.\n\n\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\nmodule.exports = Stack;","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = (typeof global === \"undefined\" ? \"undefined\" : _typeof(global)) == 'object' && global && global.Object === Object && global;\nmodule.exports = freeGlobal;","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n/** Used to resolve the decompiled source of functions. */\n\nvar funcToString = funcProto.toString;\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\n\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n\n try {\n return func + '';\n } catch (e) {}\n }\n\n return '';\n}\n\nmodule.exports = toSource;","var mapCacheClear = require('./_mapCacheClear'),\n mapCacheDelete = require('./_mapCacheDelete'),\n mapCacheGet = require('./_mapCacheGet'),\n mapCacheHas = require('./_mapCacheHas'),\n mapCacheSet = require('./_mapCacheSet');\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n\n\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n this.clear();\n\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n} // Add methods to `MapCache`.\n\n\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\nmodule.exports = MapCache;","var SetCache = require('./_SetCache'),\n arraySome = require('./_arraySome'),\n cacheHas = require('./_cacheHas');\n/** Used to compose bitmasks for value comparisons. */\n\n\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\n\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n } // Check that cyclic values are equal.\n\n\n var arrStacked = stack.get(array);\n var othStacked = stack.get(other);\n\n if (arrStacked && othStacked) {\n return arrStacked == other && othStacked == array;\n }\n\n var index = -1,\n result = true,\n seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined;\n stack.set(array, other);\n stack.set(other, array); // Ignore non-index properties.\n\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);\n }\n\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n\n result = false;\n break;\n } // Recursively compare arrays (susceptible to call stack limits).\n\n\n if (seen) {\n if (!arraySome(other, function (othValue, othIndex) {\n if (!cacheHas(seen, othIndex) && (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n result = false;\n break;\n }\n }\n\n stack['delete'](array);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalArrays;","var root = require('./_root');\n/** Built-in value references. */\n\n\nvar Uint8Array = root.Uint8Array;\nmodule.exports = Uint8Array;","var baseTimes = require('./_baseTimes'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isIndex = require('./_isIndex'),\n isTypedArray = require('./isTypedArray');\n/** Used for built-in method references. */\n\n\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\n\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && ( // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' || // Node.js 0.10 has enumerable non-index properties on buffers.\n isBuff && (key == 'offset' || key == 'parent') || // PhantomJS 2 has enumerable non-index properties on typed arrays.\n isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset') || // Skip index properties.\n isIndex(key, length)))) {\n result.push(key);\n }\n }\n\n return result;\n}\n\nmodule.exports = arrayLikeKeys;","var baseIsArguments = require('./_baseIsArguments'),\n isObjectLike = require('./isObjectLike');\n/** Used for built-in method references. */\n\n\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/** Built-in value references. */\n\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\n\nvar isArguments = baseIsArguments(function () {\n return arguments;\n}()) ? baseIsArguments : function (value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee');\n};\nmodule.exports = isArguments;","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n/** Used to detect unsigned integer values. */\n\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\n\nfunction isIndex(value, length) {\n var type = _typeof(value);\n\n length = length == null ? MAX_SAFE_INTEGER : length;\n return !!length && (type == 'number' || type != 'symbol' && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;\n}\n\nmodule.exports = isIndex;","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\n\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function (arg) {\n return func(transform(arg));\n };\n}\n\nmodule.exports = overArg;","var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n/**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n\n\nfunction assignMergeValue(object, key, value) {\n if (value !== undefined && !eq(object[key], value) || value === undefined && !(key in object)) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignMergeValue;","var getNative = require('./_getNative');\n\nvar defineProperty = function () {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}();\n\nmodule.exports = defineProperty;","var overArg = require('./_overArg');\n/** Built-in value references. */\n\n\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\nmodule.exports = getPrototype;","/**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n}\n\nmodule.exports = safeGet;","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeysIn = require('./_baseKeysIn'),\n isArrayLike = require('./isArrayLike');\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\n\n\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\nmodule.exports = keysIn;","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;","const SCRIPT_TYPE = 'text/javascript';\nconst DATA_LOADED_ATTR = 'data-loaded';\nconst SCRIPT_PROPERTIES = [\n 'defer',\n 'crossOrigin',\n 'noModule',\n 'referrerPolicy',\n 'id',\n];\n\n/**\n * Custom error class for script loading failures.\n * @extends Error\n */\nclass ScriptLoaderError extends Error {\n /**\n * Creates a new ScriptLoaderError.\n * @param {string} src - The source URL of the script that failed to load.\n * @param {string} message - The error message.\n */\n constructor(src, message = 'Failed to load script') {\n super(message);\n this.name = 'ScriptLoaderError';\n this.src = src;\n }\n\n /**\n * Gets detailed error information.\n * @returns {string} A string containing the error details.\n */\n getErrorDetails() {\n return `Failed to load script from source: ${this.src}`;\n }\n}\n\n/**\n * Creates a new script element with the specified attributes.\n * @param {string} src - The source URL of the script.\n * @param {Object} options - Options for configuring the script element.\n * @param {string} [options.type='text/javascript'] - The type of the script.\n * @param {boolean} [options.async=true] - Whether the script should load asynchronously.\n * @param {boolean} [options.defer] - Whether the script execution should be deferred.\n * @param {string} [options.crossOrigin] - The CORS setting for the script.\n * @param {boolean} [options.noModule] - Whether the script should not be treated as a JavaScript module.\n * @param {string} [options.referrerPolicy] - The referrer policy for the script.\n * @param {string} [options.id] - The id attribute for the script element.\n * @param {Object} [options.attrs] - Additional attributes to set on the script element.\n * @returns {HTMLScriptElement} The created script element.\n */\nconst createScriptElement = (src, options) => {\n const el = document.createElement('script');\n el.type = options.type || SCRIPT_TYPE;\n el.async = options.async !== false;\n el.src = src;\n\n SCRIPT_PROPERTIES.forEach(property => {\n if (property in options) {\n el[property] = options[property];\n }\n });\n\n Object.entries(options.attrs || {}).forEach(([name, value]) =>\n el.setAttribute(name, value)\n );\n\n return el;\n};\n\n/**\n * Finds an existing script element with the specified source URL.\n * @param {string} src - The source URL to search for.\n * @returns {HTMLScriptElement|null} The found script element, or null if not found.\n */\nconst findExistingScript = src => {\n return document.querySelector(`script[src=\"${src}\"]`);\n};\n\n/**\n * Loads a script asynchronously and returns a promise.\n * @param {string} src - The source URL of the script to load.\n * @param {Object} options - Options for configuring the script element.\n * @param {string} [options.type='text/javascript'] - The type of the script.\n * @param {boolean} [options.async=true] - Whether the script should load asynchronously.\n * @param {boolean} [options.defer] - Whether the script execution should be deferred.\n * @param {string} [options.crossOrigin] - The CORS setting for the script.\n * @param {boolean} [options.noModule] - Whether the script should not be treated as a JavaScript module.\n * @param {string} [options.referrerPolicy] - The referrer policy for the script.\n * @param {string} [options.id] - The id attribute for the script element.\n * @param {Object} [options.attrs] - Additional attributes to set on the script element.\n * @returns {Promise} A promise that resolves with the loaded script element,\n * or false if the script couldn't be loaded.\n * @throws {ScriptLoaderError} If the script fails to load.\n */\nexport async function loadScript(src, options) {\n if (typeof window === 'undefined' || !window.document) {\n return Promise.resolve(false);\n }\n\n return new Promise((resolve, reject) => {\n if (typeof src !== 'string' || src.trim() === '') {\n reject(new Error('Invalid source URL provided'));\n return;\n }\n\n let el = findExistingScript(src);\n\n if (!el) {\n el = createScriptElement(src, options);\n document.head.appendChild(el);\n } else if (el.hasAttribute(DATA_LOADED_ATTR)) {\n resolve(el);\n return;\n }\n\n const handleError = () => reject(new ScriptLoaderError(src));\n\n el.addEventListener('error', handleError);\n el.addEventListener('abort', handleError);\n el.addEventListener('load', () => {\n el.setAttribute(DATA_LOADED_ATTR, 'true');\n resolve(el);\n });\n });\n}\n","var $ = require('../internals/export');\nvar FREEZING = require('../internals/freezing');\nvar fails = require('../internals/fails');\nvar isObject = require('../internals/is-object');\nvar onFreeze = require('../internals/internal-metadata').onFreeze;\n\n// eslint-disable-next-line es/no-object-freeze -- safe\nvar $freeze = Object.freeze;\nvar FAILS_ON_PRIMITIVES = fails(function () { $freeze(1); });\n\n// `Object.freeze` method\n// https://tc39.es/ecma262/#sec-object.freeze\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {\n freeze: function freeze(it) {\n return $freeze && isObject(it) ? $freeze(onFreeze(it)) : it;\n }\n});\n","/* global axios */\nimport ApiClient from '../ApiClient';\n\nclass MicrosoftClient extends ApiClient {\n constructor() {\n super('microsoft', { accountScoped: true });\n }\n\n generateAuthorization(payload) {\n return axios.post(`${this.url}/authorization`, payload);\n }\n}\n\nexport default new MicrosoftClient();\n","var numeric = /^[0-9]+$/;\n\nvar compareIdentifiers = function compareIdentifiers(a, b) {\n var anum = numeric.test(a);\n var bnum = numeric.test(b);\n\n if (anum && bnum) {\n a = +a;\n b = +b;\n }\n\n return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;\n};\n\nvar rcompareIdentifiers = function rcompareIdentifiers(a, b) {\n return compareIdentifiers(b, a);\n};\n\nmodule.exports = {\n compareIdentifiers: compareIdentifiers,\n rcompareIdentifiers: rcompareIdentifiers\n};","var compare = require('./compare');\n\nvar eq = function eq(a, b, loose) {\n return compare(a, b, loose) === 0;\n};\n\nmodule.exports = eq;","var compare = require('./compare');\n\nvar neq = function neq(a, b, loose) {\n return compare(a, b, loose) !== 0;\n};\n\nmodule.exports = neq;","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nvar eq = require('./eq');\n\nvar neq = require('./neq');\n\nvar gt = require('./gt');\n\nvar gte = require('./gte');\n\nvar lt = require('./lt');\n\nvar lte = require('./lte');\n\nvar cmp = function cmp(a, op, b, loose) {\n switch (op) {\n case '===':\n if (_typeof(a) === 'object') {\n a = a.version;\n }\n\n if (_typeof(b) === 'object') {\n b = b.version;\n }\n\n return a === b;\n\n case '!==':\n if (_typeof(a) === 'object') {\n a = a.version;\n }\n\n if (_typeof(b) === 'object') {\n b = b.version;\n }\n\n return a !== b;\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose);\n\n case '!=':\n return neq(a, b, loose);\n\n case '>':\n return gt(a, b, loose);\n\n case '>=':\n return gte(a, b, loose);\n\n case '<':\n return lt(a, b, loose);\n\n case '<=':\n return lte(a, b, loose);\n\n default:\n throw new TypeError(\"Invalid operator: \".concat(op));\n }\n};\n\nmodule.exports = cmp;","// eslint-disable-next-line es/no-typed-arrays -- safe\nmodule.exports = typeof ArrayBuffer !== 'undefined' && typeof DataView !== 'undefined';\n","var toInteger = require('../internals/to-integer');\nvar toLength = require('../internals/to-length');\n\n// `ToIndex` abstract operation\n// https://tc39.es/ecma262/#sec-toindex\nmodule.exports = function (it) {\n if (it === undefined) return 0;\n var number = toInteger(it);\n var length = toLength(number);\n if (number !== length) throw RangeError('Wrong length or index');\n return length;\n};\n","'use strict';\nvar toObject = require('../internals/to-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar toLength = require('../internals/to-length');\n\n// `Array.prototype.fill` method implementation\n// https://tc39.es/ecma262/#sec-array.prototype.fill\nmodule.exports = function fill(value /* , start = 0, end = @length */) {\n var O = toObject(this);\n var length = toLength(O.length);\n var argumentsLength = arguments.length;\n var index = toAbsoluteIndex(argumentsLength > 1 ? arguments[1] : undefined, length);\n var end = argumentsLength > 2 ? arguments[2] : undefined;\n var endPos = end === undefined ? length : toAbsoluteIndex(end, length);\n while (endPos > index) O[index++] = value;\n return O;\n};\n","var toPositiveInteger = require('../internals/to-positive-integer');\n\nmodule.exports = function (it, BYTES) {\n var offset = toPositiveInteger(it);\n if (offset % BYTES) throw RangeError('Wrong offset');\n return offset;\n};\n","var aFunction = require('../internals/a-function');\nvar toObject = require('../internals/to-object');\nvar IndexedObject = require('../internals/indexed-object');\nvar toLength = require('../internals/to-length');\n\n// `Array.prototype.{ reduce, reduceRight }` methods implementation\nvar createMethod = function (IS_RIGHT) {\n return function (that, callbackfn, argumentsLength, memo) {\n aFunction(callbackfn);\n var O = toObject(that);\n var self = IndexedObject(O);\n var length = toLength(O.length);\n var index = IS_RIGHT ? length - 1 : 0;\n var i = IS_RIGHT ? -1 : 1;\n if (argumentsLength < 2) while (true) {\n if (index in self) {\n memo = self[index];\n index += i;\n break;\n }\n index += i;\n if (IS_RIGHT ? index < 0 : length <= index) {\n throw TypeError('Reduce of empty array with no initial value');\n }\n }\n for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {\n memo = callbackfn(memo, self[index], index, O);\n }\n return memo;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.reduce` method\n // https://tc39.es/ecma262/#sec-array.prototype.reduce\n left: createMethod(false),\n // `Array.prototype.reduceRight` method\n // https://tc39.es/ecma262/#sec-array.prototype.reduceright\n right: createMethod(true)\n};\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('aside',{ref:\"sidebarRef\",staticClass:\"flex h-full\"},[_c('PrimarySidebar',{attrs:{\"logo-source\":_vm.globalConfig.logoThumbnail,\"installation-name\":_vm.globalConfig.installationName,\"is-a-custom-branded-instance\":_vm.isACustomBrandedInstance,\"account-id\":_vm.accountId,\"menu-items\":_vm.primaryMenuItems,\"active-menu-item\":_vm.activePrimaryMenu.key},on:{\"toggleAccounts\":_vm.toggleAccountModal,\"openKeyShortcutModal\":_vm.toggleKeyShortcutModal,\"openNotificationPanel\":_vm.openNotificationPanel}}),_vm._v(\" \"),(_vm.showSecondarySidebar)?_c('SecondarySidebar',{class:_vm.sidebarClassName,attrs:{\"account-id\":_vm.accountId,\"inboxes\":_vm.inboxes,\"labels\":_vm.labels,\"teams\":_vm.teams,\"custom-views\":_vm.customViews,\"menu-config\":_vm.activeSecondaryMenu,\"current-user\":_vm.currentUser,\"is-on-chatwoot-cloud\":_vm.isOnChatwootCloud},on:{\"addLabel\":_vm.showAddLabelPopup,\"toggleAccounts\":_vm.toggleAccountModal}}):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { frontendURL } from '../../../../helper/URLHelper';\n\nconst conversations = accountId => ({\n parentNav: 'conversations',\n routes: [\n 'home',\n 'inbox_dashboard',\n 'inbox_conversation',\n 'conversation_through_inbox',\n 'notifications_dashboard',\n 'label_conversations',\n 'conversations_through_label',\n 'team_conversations',\n 'conversations_through_team',\n 'conversation_mentions',\n 'conversation_through_mentions',\n 'conversation_participating',\n 'conversation_through_participating',\n 'folder_conversations',\n 'conversations_through_folders',\n 'conversation_unattended',\n 'conversation_through_unattended',\n ],\n menuItems: [\n {\n icon: 'chat',\n label: 'ALL_CONVERSATIONS',\n key: 'conversations',\n toState: frontendURL(`accounts/${accountId}/dashboard`),\n toolTip: 'Conversation from all subscribed inboxes',\n toStateName: 'home',\n },\n {\n icon: 'mention',\n label: 'MENTIONED_CONVERSATIONS',\n key: 'conversation_mentions',\n toState: frontendURL(`accounts/${accountId}/mentions/conversations`),\n toStateName: 'conversation_mentions',\n },\n {\n icon: 'mail-unread',\n label: 'UNATTENDED_CONVERSATIONS',\n key: 'conversation_unattended',\n toState: frontendURL(`accounts/${accountId}/unattended/conversations`),\n toStateName: 'conversation_unattended',\n },\n ],\n});\n\nexport default conversations;\n","import { frontendURL } from '../../../../helper/URLHelper';\n\nconst contacts = accountId => ({\n parentNav: 'contacts',\n routes: [\n 'contacts_dashboard',\n 'contact_profile_dashboard',\n 'contacts_segments_dashboard',\n 'contacts_labels_dashboard',\n ],\n menuItems: [\n {\n icon: 'contact-card-group',\n label: 'ALL_CONTACTS',\n hasSubMenu: false,\n toState: frontendURL(`accounts/${accountId}/contacts`),\n toStateName: 'contacts_dashboard',\n },\n ],\n});\n\nexport default contacts;\n","import { FEATURE_FLAGS } from '../../../../featureFlags';\nimport { frontendURL } from '../../../../helper/URLHelper';\n\nconst reports = accountId => ({\n parentNav: 'reports',\n routes: [\n 'account_overview_reports',\n 'conversation_reports',\n 'csat_reports',\n 'bot_reports',\n 'agent_reports',\n 'label_reports',\n 'inbox_reports',\n 'team_reports',\n 'sla_reports',\n ],\n menuItems: [\n {\n icon: 'arrow-trending-lines',\n label: 'REPORTS_OVERVIEW',\n hasSubMenu: false,\n toState: frontendURL(`accounts/${accountId}/reports/overview`),\n toStateName: 'account_overview_reports',\n },\n {\n icon: 'chat',\n label: 'REPORTS_CONVERSATION',\n hasSubMenu: false,\n toState: frontendURL(`accounts/${accountId}/reports/conversation`),\n toStateName: 'conversation_reports',\n },\n {\n icon: 'emoji',\n label: 'CSAT',\n hasSubMenu: false,\n toState: frontendURL(`accounts/${accountId}/reports/csat`),\n toStateName: 'csat_reports',\n },\n {\n icon: 'bot',\n label: 'REPORTS_BOT',\n hasSubMenu: false,\n featureFlag: FEATURE_FLAGS.RESPONSE_BOT,\n toState: frontendURL(`accounts/${accountId}/reports/bot`),\n toStateName: 'bot_reports',\n },\n {\n icon: 'people',\n label: 'REPORTS_AGENT',\n hasSubMenu: false,\n toState: frontendURL(`accounts/${accountId}/reports/agent`),\n toStateName: 'agent_reports',\n },\n {\n icon: 'tag',\n label: 'REPORTS_LABEL',\n hasSubMenu: false,\n toState: frontendURL(`accounts/${accountId}/reports/label`),\n toStateName: 'label_reports',\n },\n {\n icon: 'mail-inbox-all',\n label: 'REPORTS_INBOX',\n hasSubMenu: false,\n toState: frontendURL(`accounts/${accountId}/reports/inboxes`),\n toStateName: 'inbox_reports',\n },\n {\n icon: 'people-team',\n label: 'REPORTS_TEAM',\n hasSubMenu: false,\n toState: frontendURL(`accounts/${accountId}/reports/teams`),\n toStateName: 'team_reports',\n },\n {\n icon: 'document-list-clock',\n label: 'REPORTS_SLA',\n hasSubMenu: false,\n featureFlag: FEATURE_FLAGS.SLA,\n toState: frontendURL(`accounts/${accountId}/reports/sla`),\n toStateName: 'sla_reports',\n },\n ],\n});\n\nexport default reports;\n","import { frontendURL } from '../../../../helper/URLHelper';\n\nconst campaigns = accountId => ({\n parentNav: 'campaigns',\n routes: ['ongoing_campaigns', 'one_off'],\n menuItems: [\n {\n icon: 'arrow-swap',\n label: 'ONGOING',\n key: 'ongoingCampaigns',\n hasSubMenu: false,\n toState: frontendURL(`accounts/${accountId}/campaigns/ongoing`),\n toStateName: 'ongoing_campaigns',\n },\n {\n key: 'oneOffCampaigns',\n icon: 'sound-source',\n label: 'ONE_OFF',\n hasSubMenu: false,\n toState: frontendURL(`accounts/${accountId}/campaigns/one_off`),\n toStateName: 'one_off',\n },\n ],\n});\n\nexport default campaigns;\n","import { FEATURE_FLAGS } from '../../../../featureFlags';\nimport { frontendURL } from '../../../../helper/URLHelper';\n\nconst settings = accountId => ({\n parentNav: 'settings',\n routes: [\n 'agent_bots',\n 'agent_list',\n 'attributes_list',\n 'automation_list',\n 'auditlogs_list',\n 'billing_settings_index',\n 'canned_list',\n 'general_settings_index',\n 'general_settings',\n 'labels_list',\n 'macros_edit',\n 'macros_new',\n 'macros_wrapper',\n 'settings_applications_integration',\n 'settings_applications_webhook',\n 'settings_applications',\n 'settings_inbox_finish',\n 'settings_inbox_list',\n 'settings_inbox_new',\n 'settings_inbox_show',\n 'settings_inboxes_add_agents',\n 'settings_inboxes_page_channel',\n 'settings_integrations_dashboard_apps',\n 'settings_integrations_integration',\n 'settings_integrations_slack',\n 'settings_integrations_webhook',\n 'settings_integrations',\n 'settings_teams_add_agents',\n 'settings_teams_edit_finish',\n 'settings_teams_edit_members',\n 'settings_teams_edit',\n 'settings_teams_finish',\n 'settings_teams_list',\n 'settings_teams_new',\n 'sla_list',\n ],\n menuItems: [\n {\n icon: 'briefcase',\n label: 'ACCOUNT_SETTINGS',\n hasSubMenu: false,\n meta: {\n permissions: ['administrator'],\n },\n toState: frontendURL(`accounts/${accountId}/settings/general`),\n toStateName: 'general_settings_index',\n },\n {\n icon: 'people',\n label: 'AGENTS',\n hasSubMenu: false,\n meta: {\n permissions: ['administrator'],\n },\n toState: frontendURL(`accounts/${accountId}/settings/agents/list`),\n toStateName: 'agent_list',\n featureFlag: FEATURE_FLAGS.AGENT_MANAGEMENT,\n },\n {\n icon: 'people-team',\n label: 'TEAMS',\n hasSubMenu: false,\n meta: {\n permissions: ['administrator'],\n },\n toState: frontendURL(`accounts/${accountId}/settings/teams/list`),\n toStateName: 'settings_teams_list',\n featureFlag: FEATURE_FLAGS.TEAM_MANAGEMENT,\n },\n {\n icon: 'mail-inbox-all',\n label: 'INBOXES',\n hasSubMenu: false,\n meta: {\n permissions: ['administrator'],\n },\n toState: frontendURL(`accounts/${accountId}/settings/inboxes/list`),\n toStateName: 'settings_inbox_list',\n featureFlag: FEATURE_FLAGS.INBOX_MANAGEMENT,\n },\n {\n icon: 'tag',\n label: 'LABELS',\n hasSubMenu: false,\n meta: {\n permissions: ['administrator'],\n },\n toState: frontendURL(`accounts/${accountId}/settings/labels/list`),\n toStateName: 'labels_list',\n featureFlag: FEATURE_FLAGS.LABELS,\n },\n {\n icon: 'code',\n label: 'CUSTOM_ATTRIBUTES',\n hasSubMenu: false,\n meta: {\n permissions: ['administrator'],\n },\n toState: frontendURL(\n `accounts/${accountId}/settings/custom-attributes/list`\n ),\n toStateName: 'attributes_list',\n featureFlag: FEATURE_FLAGS.CUSTOM_ATTRIBUTES,\n },\n {\n icon: 'automation',\n label: 'AUTOMATION',\n hasSubMenu: false,\n meta: {\n permissions: ['administrator'],\n },\n toState: frontendURL(`accounts/${accountId}/settings/automation/list`),\n toStateName: 'automation_list',\n featureFlag: FEATURE_FLAGS.AUTOMATIONS,\n },\n {\n icon: 'bot',\n label: 'AGENT_BOTS',\n hasSubMenu: false,\n meta: {\n permissions: ['administrator'],\n },\n globalConfigFlag: 'csmlEditorHost',\n toState: frontendURL(`accounts/${accountId}/settings/agent-bots`),\n toStateName: 'agent_bots',\n featureFlag: FEATURE_FLAGS.AGENT_BOTS,\n },\n {\n icon: 'flash-settings',\n label: 'MACROS',\n hasSubMenu: false,\n meta: {\n permissions: ['administrator', 'agent'],\n },\n toState: frontendURL(`accounts/${accountId}/settings/macros`),\n toStateName: 'macros_wrapper',\n featureFlag: FEATURE_FLAGS.MACROS,\n },\n {\n icon: 'chat-multiple',\n label: 'CANNED_RESPONSES',\n hasSubMenu: false,\n meta: {\n permissions: ['administrator', 'agent'],\n },\n toState: frontendURL(\n `accounts/${accountId}/settings/canned-response/list`\n ),\n toStateName: 'canned_list',\n featureFlag: FEATURE_FLAGS.CANNED_RESPONSES,\n },\n {\n icon: 'flash-on',\n label: 'INTEGRATIONS',\n hasSubMenu: false,\n meta: {\n permissions: ['administrator'],\n },\n toState: frontendURL(`accounts/${accountId}/settings/integrations`),\n toStateName: 'settings_applications',\n featureFlag: FEATURE_FLAGS.INTEGRATIONS,\n },\n {\n icon: 'key',\n label: 'AUDIT_LOGS',\n hasSubMenu: false,\n meta: {\n permissions: ['administrator'],\n },\n toState: frontendURL(`accounts/${accountId}/settings/audit-logs/list`),\n toStateName: 'auditlogs_list',\n isEnterpriseOnly: true,\n featureFlag: FEATURE_FLAGS.AUDIT_LOGS,\n },\n {\n icon: 'document-list-clock',\n label: 'SLA',\n hasSubMenu: false,\n meta: {\n permissions: ['administrator'],\n },\n toState: frontendURL(`accounts/${accountId}/settings/sla/list`),\n toStateName: 'sla_list',\n isEnterpriseOnly: true,\n featureFlag: FEATURE_FLAGS.SLA,\n beta: true,\n },\n {\n icon: 'credit-card-person',\n label: 'BILLING',\n hasSubMenu: false,\n meta: {\n permissions: ['administrator'],\n },\n toState: frontendURL(`accounts/${accountId}/settings/billing`),\n toStateName: 'billing_settings_index',\n showOnlyOnCloud: true,\n },\n ],\n});\n\nexport default settings;\n","const notifications = () => ({\n parentNav: 'notifications',\n routes: ['notifications_index'],\n menuItems: [],\n});\n\nexport default notifications;\n","import { FEATURE_FLAGS } from '../../../../featureFlags';\nimport { frontendURL } from '../../../../helper/URLHelper';\n\nconst primaryMenuItems = accountId => [\n {\n icon: 'mail-inbox',\n key: 'inboxView',\n label: 'INBOX_VIEW',\n featureFlag: FEATURE_FLAGS.INBOX_VIEW,\n toState: frontendURL(`accounts/${accountId}/inbox-view`),\n toStateName: 'inbox_view',\n },\n {\n icon: 'chat',\n key: 'conversations',\n label: 'CONVERSATIONS',\n toState: frontendURL(`accounts/${accountId}/dashboard`),\n toStateName: 'home',\n },\n {\n icon: 'captain',\n key: 'captain',\n label: 'CAPTAIN',\n featureFlag: FEATURE_FLAGS.CAPTAIN,\n toState: frontendURL(`accounts/${accountId}/captain`),\n toStateName: 'captain',\n },\n {\n icon: 'book-contacts',\n key: 'contacts',\n label: 'CONTACTS',\n featureFlag: FEATURE_FLAGS.CRM,\n toState: frontendURL(`accounts/${accountId}/contacts`),\n toStateName: 'contacts_dashboard',\n },\n {\n icon: 'arrow-trending-lines',\n key: 'reports',\n label: 'REPORTS',\n featureFlag: FEATURE_FLAGS.REPORTS,\n toState: frontendURL(`accounts/${accountId}/reports`),\n toStateName: 'account_overview_reports',\n },\n {\n icon: 'megaphone',\n key: 'campaigns',\n label: 'CAMPAIGNS',\n featureFlag: FEATURE_FLAGS.CAMPAIGNS,\n toState: frontendURL(`accounts/${accountId}/campaigns`),\n toStateName: 'ongoing_campaigns',\n },\n {\n icon: 'library',\n key: 'helpcenter',\n label: 'HELP_CENTER.TITLE',\n featureFlag: FEATURE_FLAGS.HELP_CENTER,\n alwaysVisibleOnChatwootInstances: true,\n toState: frontendURL(`accounts/${accountId}/portals`),\n toStateName: 'default_portal_articles',\n },\n {\n icon: 'settings',\n key: 'settings',\n label: 'SETTINGS',\n toState: frontendURL(`accounts/${accountId}/settings`),\n toStateName: 'settings_home',\n },\n];\n\nexport default primaryMenuItems;\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Logo.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Logo.vue?vue&type=script&lang=js&\"","\n\n\n \n
\n
\n \n
\n\n","import { render, staticRenderFns } from \"./Logo.vue?vue&type=template&id=70aabcf7&\"\nimport script from \"./Logo.vue?vue&type=script&lang=js&\"\nexport * from \"./Logo.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"w-8 h-8\"},[_c('router-link',{attrs:{\"to\":_vm.dashboardPath,\"replace\":\"\"}},[_c('img',{attrs:{\"src\":_vm.source,\"alt\":_vm.name}})])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PrimaryNavItem.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PrimaryNavItem.vue?vue&type=script&lang=js&\"","\n\n\n \n \n \n {{ name }}\n \n {{ count }}\n \n \n \n\n","import { render, staticRenderFns } from \"./PrimaryNavItem.vue?vue&type=template&id=45e94fc9&\"\nimport script from \"./PrimaryNavItem.vue?vue&type=script&lang=js&\"\nexport * from \"./PrimaryNavItem.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('router-link',{attrs:{\"to\":_vm.to,\"custom\":\"\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ href, isActive, navigate }){return [_c('a',{directives:[{name:\"tooltip\",rawName:\"v-tooltip.right\",value:(_vm.$t(`SIDEBAR.${_vm.name}`)),expression:\"$t(`SIDEBAR.${name}`)\",modifiers:{\"right\":true}}],staticClass:\"text-slate-700 dark:text-slate-100 w-10 h-10 my-2 flex items-center justify-center rounded-lg hover:bg-slate-25 dark:hover:bg-slate-700 dark:hover:text-slate-100 hover:text-slate-600 relative\",class:{\n 'bg-woot-50 dark:bg-slate-800 text-woot-500 hover:bg-woot-50':\n isActive || _vm.isChildMenuActive,\n },attrs:{\"href\":href,\"rel\":_vm.openInNewPage ? 'noopener noreferrer nofollow' : undefined,\"target\":_vm.openInNewPage ? '_blank' : undefined},on:{\"click\":navigate}},[_c('fluent-icon',{class:{\n 'text-woot-500': isActive || _vm.isChildMenuActive,\n },attrs:{\"icon\":_vm.icon}}),_vm._v(\" \"),_c('span',{staticClass:\"sr-only\"},[_vm._v(_vm._s(_vm.name))]),_vm._v(\" \"),(_vm.count)?_c('span',{staticClass:\"text-black-900 bg-yellow-500 absolute -top-1 -right-1\"},[_vm._v(\"\\n \"+_vm._s(_vm.count)+\"\\n \")]):_vm._e()],1)]}}])})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DropdownHeader.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DropdownHeader.vue?vue&type=script&lang=js&\"","\n\n\n \n \n {{ title }}\n \n \n \n\n","import { render, staticRenderFns } from \"./DropdownHeader.vue?vue&type=template&id=44089987&\"\nimport script from \"./DropdownHeader.vue?vue&type=script&lang=js&\"\nexport * from \"./DropdownHeader.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('li',{staticClass:\"inline-flex list-none\",attrs:{\"tabindex\":null,\"aria-disabled\":true}},[_c('span',{staticClass:\"text-xs text-slate-600 dark:text-slate-100 mt-1 font-medium w-full block text-left rtl:text-right whitespace-nowrap p-2\"},[_vm._v(\"\\n \"+_vm._s(_vm.title)+\"\\n \")]),_vm._v(\" \"),_vm._t(\"default\")],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DropdownDivider.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DropdownDivider.vue?vue&type=script&lang=js&\"","\n\n\n \n\n","import { render, staticRenderFns } from \"./DropdownDivider.vue?vue&type=template&id=4aa2e689&\"\nimport script from \"./DropdownDivider.vue?vue&type=script&lang=js&\"\nexport * from \"./DropdownDivider.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('li',{staticClass:\"list-none my-1 mx-0 border-b border-slate-50 dark:border-slate-700\",attrs:{\"tabindex\":null,\"aria-disabled\":true}})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AvailabilityStatusBadge.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AvailabilityStatusBadge.vue?vue&type=script&lang=js&\"","\n\n\n \n\n\n\n","import { render, staticRenderFns } from \"./AvailabilityStatusBadge.vue?vue&type=template&id=7e71a783&scoped=true&\"\nimport script from \"./AvailabilityStatusBadge.vue?vue&type=script&lang=js&\"\nexport * from \"./AvailabilityStatusBadge.vue?vue&type=script&lang=js&\"\nimport style0 from \"./AvailabilityStatusBadge.vue?vue&type=style&index=0&id=7e71a783&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7e71a783\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{class:`status-badge status-badge__${_vm.status} rounded-full w-2.5 h-2.5 mr-0.5 rtl:mr-0 rtl:ml-0.5 inline-flex`})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n \n \n \n \n \n {{ status.label }}\n \n \n \n \n \n \n\n \n {{ $t('SIDEBAR.SET_AUTO_OFFLINE.TEXT') }}\n \n
\n\n \n \n \n \n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AvailabilityStatus.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AvailabilityStatus.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AvailabilityStatus.vue?vue&type=template&id=30965e19&\"\nimport script from \"./AvailabilityStatus.vue?vue&type=script&lang=js&\"\nexport * from \"./AvailabilityStatus.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('WootDropdownMenu',[_c('WootDropdownHeader',{attrs:{\"title\":_vm.$t('SIDEBAR.SET_AVAILABILITY_TITLE')}}),_vm._v(\" \"),_vm._l((_vm.availabilityStatuses),function(status){return _c('WootDropdownItem',{key:status.value,staticClass:\"flex items-baseline\"},[_c('woot-button',{attrs:{\"size\":\"small\",\"color-scheme\":status.disabled ? '' : 'secondary',\"variant\":status.disabled ? 'smooth' : 'clear',\"class-names\":\"status-change--dropdown-button\"},on:{\"click\":function($event){return _vm.changeAvailabilityStatus(status.value)}}},[_c('AvailabilityStatusBadge',{attrs:{\"status\":status.value}}),_vm._v(\"\\n \"+_vm._s(status.label)+\"\\n \")],1)],1)}),_vm._v(\" \"),_c('WootDropdownDivider'),_vm._v(\" \"),_c('WootDropdownItem',{staticClass:\"flex items-center justify-between p-2 m-0\"},[_c('div',{staticClass:\"flex items-center\"},[_c('fluent-icon',{directives:[{name:\"tooltip\",rawName:\"v-tooltip.right-start\",value:(_vm.$t('SIDEBAR.SET_AUTO_OFFLINE.INFO_TEXT')),expression:\"$t('SIDEBAR.SET_AUTO_OFFLINE.INFO_TEXT')\",modifiers:{\"right-start\":true}}],staticClass:\"mt-px\",attrs:{\"icon\":\"info\",\"size\":\"14\"}}),_vm._v(\" \"),_c('span',{staticClass:\"mx-1 my-0 text-xs font-medium text-slate-600 dark:text-slate-100\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('SIDEBAR.SET_AUTO_OFFLINE.TEXT'))+\"\\n \")])],1),_vm._v(\" \"),_c('woot-switch',{staticClass:\"mx-1 mt-px mb-0\",attrs:{\"size\":\"small\",\"value\":_vm.currentUserAutoOffline},on:{\"input\":_vm.updateAutoOffline}})],1),_vm._v(\" \"),_c('WootDropdownDivider')],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n \n \n \n\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OptionsMenu.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OptionsMenu.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./OptionsMenu.vue?vue&type=template&id=1f7d45f7&\"\nimport script from \"./OptionsMenu.vue?vue&type=script&lang=js&\"\nexport * from \"./OptionsMenu.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('transition',{attrs:{\"name\":\"menu-slide\"}},[(_vm.show)?_c('div',{directives:[{name:\"on-clickaway\",rawName:\"v-on-clickaway\",value:(_vm.onClickAway),expression:\"onClickAway\"}],staticClass:\"absolute z-30 w-64 px-2 py-2 bg-white border rounded-md shadow-xl left-3 rtl:left-auto rtl:right-3 bottom-16 dark:bg-slate-800 border-slate-25 dark:border-slate-700\",class:{ 'block visible': _vm.show }},[_c('AvailabilityStatus'),_vm._v(\" \"),_c('WootDropdownMenu',[(_vm.showChangeAccountOption)?_c('WootDropdownItem',[_c('woot-button',{attrs:{\"variant\":\"clear\",\"color-scheme\":\"secondary\",\"size\":\"small\",\"icon\":\"arrow-swap\"},on:{\"click\":function($event){return _vm.$emit('toggleAccounts')}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('SIDEBAR_ITEMS.CHANGE_ACCOUNTS'))+\"\\n \")])],1):_vm._e(),_vm._v(\" \"),(_vm.globalConfig.chatwootInboxToken)?_c('WootDropdownItem',[_c('woot-button',{attrs:{\"variant\":\"clear\",\"color-scheme\":\"secondary\",\"size\":\"small\",\"icon\":\"chat-help\"},on:{\"click\":function($event){return _vm.$emit('showSupportChatWindow')}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('SIDEBAR_ITEMS.CONTACT_SUPPORT'))+\"\\n \")])],1):_vm._e(),_vm._v(\" \"),_c('WootDropdownItem',[_c('woot-button',{attrs:{\"variant\":\"clear\",\"color-scheme\":\"secondary\",\"size\":\"small\",\"icon\":\"keyboard\"},on:{\"click\":_vm.handleKeyboardHelpClick}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('SIDEBAR_ITEMS.KEYBOARD_SHORTCUTS'))+\"\\n \")])],1),_vm._v(\" \"),_c('WootDropdownItem',[_c('router-link',{attrs:{\"to\":`/app/accounts/${_vm.accountId}/profile/settings`,\"custom\":\"\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ href, isActive, navigate }){return [_c('a',{staticClass:\"h-8 bg-white button small clear secondary dark:bg-slate-800\",class:{ 'is-active': isActive },attrs:{\"href\":href},on:{\"click\":e => _vm.handleProfileSettingClick(e, navigate)}},[_c('fluent-icon',{staticClass:\"icon icon--font\",attrs:{\"icon\":\"person\",\"size\":\"14\"}}),_vm._v(\" \"),_c('span',{staticClass:\"button__content\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('SIDEBAR_ITEMS.PROFILE_SETTINGS'))+\"\\n \")])],1)]}}],null,false,2470074645)})],1),_vm._v(\" \"),_c('WootDropdownItem',[_c('woot-button',{attrs:{\"variant\":\"clear\",\"color-scheme\":\"secondary\",\"size\":\"small\",\"icon\":\"appearance\"},on:{\"click\":_vm.openAppearanceOptions}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('SIDEBAR_ITEMS.APPEARANCE'))+\"\\n \")])],1),_vm._v(\" \"),(_vm.currentUser.type === 'SuperAdmin')?_c('WootDropdownItem',[_c('a',{staticClass:\"h-8 bg-white button small clear secondary dark:bg-slate-800\",attrs:{\"href\":\"/super_admin\",\"target\":\"_blank\",\"rel\":\"noopener nofollow noreferrer\"},on:{\"click\":function($event){return _vm.$emit('close')}}},[_c('fluent-icon',{staticClass:\"icon icon--font\",attrs:{\"icon\":\"content-settings\",\"size\":\"14\"}}),_vm._v(\" \"),_c('span',{staticClass:\"button__content\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('SIDEBAR_ITEMS.SUPER_ADMIN_CONSOLE'))+\"\\n \")])],1)]):_vm._e(),_vm._v(\" \"),_c('WootDropdownItem',[_c('woot-button',{attrs:{\"variant\":\"clear\",\"color-scheme\":\"secondary\",\"size\":\"small\",\"icon\":\"power\"},on:{\"click\":_vm.logout}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('SIDEBAR_ITEMS.LOGOUT'))+\"\\n \")])],1)],1)],1):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n \n \n \n\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AgentDetails.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AgentDetails.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AgentDetails.vue?vue&type=template&id=759b26a7&\"\nimport script from \"./AgentDetails.vue?vue&type=script&lang=js&\"\nexport * from \"./AgentDetails.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('woot-button',{directives:[{name:\"tooltip\",rawName:\"v-tooltip.right\",value:(_vm.$t(`SIDEBAR.PROFILE_SETTINGS`)),expression:\"$t(`SIDEBAR.PROFILE_SETTINGS`)\",modifiers:{\"right\":true}}],staticClass:\"flex items-center rounded-full\",attrs:{\"variant\":\"link\"},on:{\"click\":_vm.handleClick}},[_c('Thumbnail',{attrs:{\"src\":_vm.currentUser.avatar_url,\"username\":_vm.currentUser.name,\"status\":_vm.statusOfAgent,\"should-show-status-always\":\"\",\"size\":\"32px\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n \n \n
\n\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NotificationBell.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NotificationBell.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./NotificationBell.vue?vue&type=template&id=3140b224&\"\nimport script from \"./NotificationBell.vue?vue&type=script&lang=js&\"\nexport * from \"./NotificationBell.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"mb-4\"},[_c('button',{staticClass:\"relative flex items-center justify-center w-10 h-10 p-0 my-2 rounded-lg text-slate-600 dark:text-slate-100 hover:bg-slate-25 dark:hover:bg-slate-700 dark:hover:text-slate-100 hover:text-slate-600\",class:{\n 'bg-woot-50 dark:bg-slate-800 text-woot-500 hover:bg-woot-50':\n _vm.isNotificationPanelActive,\n },on:{\"click\":_vm.openNotificationPanel}},[_c('fluent-icon',{class:{\n 'text-woot-500': _vm.isNotificationPanelActive,\n },attrs:{\"icon\":\"alert\"}}),_vm._v(\" \"),(_vm.unreadCount)?_c('span',{staticClass:\"text-black-900 bg-yellow-300 absolute -top-0.5 -right-1 text-xxs min-w-[1rem] rounded-full\"},[_vm._v(\"\\n \"+_vm._s(_vm.unreadCount)+\"\\n \")]):_vm._e()],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Primary.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Primary.vue?vue&type=script&lang=js&\"","\n\n\n \n\n","import { render, staticRenderFns } from \"./Primary.vue?vue&type=template&id=293893ba&\"\nimport script from \"./Primary.vue?vue&type=script&lang=js&\"\nexport * from \"./Primary.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"flex flex-col justify-between w-16 h-full bg-white border-r dark:bg-slate-900 border-slate-50 dark:border-slate-800/50 rtl:border-l rtl:border-r-0\"},[_c('div',{staticClass:\"flex flex-col items-center\"},[_c('Logo',{staticClass:\"m-4 mb-10\",attrs:{\"source\":_vm.logoSource,\"name\":_vm.installationName,\"account-id\":_vm.accountId}}),_vm._v(\" \"),_vm._l((_vm.menuItems),function(menuItem){return _c('PrimaryNavItem',{key:menuItem.toState,attrs:{\"icon\":menuItem.icon,\"name\":menuItem.label,\"to\":menuItem.toState,\"is-child-menu-active\":menuItem.key === _vm.activeMenuItem}})})],2),_vm._v(\" \"),_c('div',{staticClass:\"flex flex-col items-center justify-end pb-6\"},[(!_vm.isACustomBrandedInstance)?_c('PrimaryNavItem',{attrs:{\"icon\":\"book-open-globe\",\"name\":\"DOCS\",\"open-in-new-page\":\"\",\"to\":_vm.helpDocsURL}}):_vm._e(),_vm._v(\" \"),_c('NotificationBell',{on:{\"openNotificationPanel\":_vm.openNotificationPanel}}),_vm._v(\" \"),_c('AgentDetails',{on:{\"toggleMenu\":_vm.toggleOptions}}),_vm._v(\" \"),_c('OptionsMenu',{attrs:{\"show\":_vm.showOptionsMenu},on:{\"toggleAccounts\":_vm.toggleAccountModal,\"showSupportChatWindow\":_vm.toggleSupportChatWindow,\"openKeyShortcutModal\":function($event){return _vm.$emit('openKeyShortcutModal')},\"close\":_vm.toggleOptions}})],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n \n {{ $t('SIDEBAR.CURRENTLY_VIEWING_ACCOUNT') }}\n
\n {{ account.name }}\n
\n
\n \n
\n \n {{ $t('SIDEBAR.SWITCH') }}\n \n
\n
\n \n
\n\n\n\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AccountContext.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AccountContext.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AccountContext.vue?vue&type=template&id=f93e3b30&scoped=true&\"\nimport script from \"./AccountContext.vue?vue&type=script&lang=js&\"\nexport * from \"./AccountContext.vue?vue&type=script&lang=js&\"\nimport style0 from \"./AccountContext.vue?vue&type=style&index=0&id=f93e3b30&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"f93e3b30\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.showShowCurrentAccountContext)?_c('div',{staticClass:\"relative px-2 py-2 mt-2 text-xs border rounded-md cursor-pointer text-slate-700 dark:text-slate-200 border-slate-50 dark:border-slate-800/50 hover:bg-slate-50 dark:hover:bg-slate-800\",on:{\"mouseover\":_vm.setShowSwitch,\"mouseleave\":_vm.resetShowSwitch}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('SIDEBAR.CURRENTLY_VIEWING_ACCOUNT'))+\"\\n \"),_c('p',{staticClass:\"mb-0 overflow-hidden font-medium text-ellipsis whitespace-nowrap text-slate-800 dark:text-slate-100\"},[_vm._v(\"\\n \"+_vm._s(_vm.account.name)+\"\\n \")]),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.showSwitchButton)?_c('div',{staticClass:\"absolute top-0 right-0 flex items-center justify-end w-full h-full rounded-md ltr:overlay-shadow ltr:dark:overlay-shadow-dark rtl:rtl-overlay-shadow rtl:dark:rtl-overlay-shadow-dark\"},[_c('div',{staticClass:\"mx-2 my-0\"},[_c('woot-button',{attrs:{\"variant\":\"clear\",\"size\":\"tiny\",\"icon\":\"arrow-swap\"},on:{\"click\":function($event){return _vm.$emit('toggleAccounts')}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('SIDEBAR.SWITCH'))+\"\\n \")])],1)]):_vm._e()])],1):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n \n\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Secondary.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Secondary.vue?vue&type=script&lang=js&\"","\n\n\n \n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Sidebar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Sidebar.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Secondary.vue?vue&type=template&id=c67b861a&\"\nimport script from \"./Secondary.vue?vue&type=script&lang=js&\"\nexport * from \"./Secondary.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.hasSecondaryMenu)?_c('div',{staticClass:\"flex flex-col w-48 h-full px-2 pb-8 overflow-auto text-sm bg-white border-r dark:bg-slate-900 dark:border-slate-800/50 rtl:border-r-0 rtl:border-l border-slate-50\"},[_c('AccountContext',{on:{\"toggleAccounts\":_vm.toggleAccountModal}}),_vm._v(\" \"),_c('transition-group',{staticClass:\"pt-2 mb-0 ml-0 list-none\",attrs:{\"name\":\"menu-list\",\"tag\":\"ul\"}},[_vm._l((_vm.accessibleMenuItems),function(menuItem){return _c('SecondaryNavItem',{key:menuItem.toState,attrs:{\"menu-item\":menuItem}})}),_vm._v(\" \"),_vm._l((_vm.additionalSecondaryMenuItems[_vm.menuConfig.parentNav]),function(menuItem){return _c('SecondaryNavItem',{key:menuItem.key,attrs:{\"menu-item\":menuItem},on:{\"addLabel\":_vm.showAddLabelPopup}})})],2)],1):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import conversations from './sidebarItems/conversations';\nimport contacts from './sidebarItems/contacts';\nimport reports from './sidebarItems/reports';\nimport campaigns from './sidebarItems/campaigns';\nimport settings from './sidebarItems/settings';\nimport notifications from './sidebarItems/notifications';\nimport primaryMenu from './sidebarItems/primaryMenu';\n\nexport const getSidebarItems = accountId => ({\n primaryMenu: primaryMenu(accountId),\n secondaryMenu: [\n conversations(accountId),\n contacts(accountId),\n reports(accountId),\n campaigns(accountId),\n settings(accountId),\n notifications(accountId),\n ],\n});\n","import { render, staticRenderFns } from \"./Sidebar.vue?vue&type=template&id=b73462d8&\"\nimport script from \"./Sidebar.vue?vue&type=script&lang=js&\"\nexport * from \"./Sidebar.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"modal-mask\"},[_c('div',{directives:[{name:\"on-clickaway\",rawName:\"v-on-clickaway\",value:(_vm.closeNotificationPanel),expression:\"closeNotificationPanel\"}],staticClass:\"flex-col h-[90vh] w-[32.5rem] flex justify-between z-10 rounded-md shadow-md absolute bg-white dark:bg-slate-800 left-14 rtl:left-auto rtl:right-14 m-4\"},[_c('div',{staticClass:\"flex flex-row items-center justify-between w-full px-6 pt-5 pb-3 border-b border-solid border-slate-50 dark:border-slate-700\"},[_c('div',{staticClass:\"flex items-center\"},[_c('span',{staticClass:\"text-xl font-bold text-slate-800 dark:text-slate-100\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('NOTIFICATIONS_PAGE.UNREAD_NOTIFICATION.TITLE'))+\"\\n \")]),_vm._v(\" \"),(_vm.totalUnreadNotifications)?_c('span',{staticClass:\"px-2 py-1 ml-2 mr-2 font-semibold rounded-md text-slate-700 dark:text-slate-200 text-xxs bg-slate-50 dark:bg-slate-700\"},[_vm._v(\"\\n \"+_vm._s(_vm.totalUnreadNotifications)+\"\\n \")]):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"flex gap-2\"},[(!_vm.noUnreadNotificationAvailable)?_c('woot-button',{attrs:{\"color-scheme\":\"primary\",\"variant\":\"smooth\",\"size\":\"tiny\",\"is-loading\":_vm.uiFlags.isUpdating},on:{\"click\":_vm.onMarkAllDoneClick}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('NOTIFICATIONS_PAGE.MARK_ALL_DONE'))+\"\\n \")]):_vm._e(),_vm._v(\" \"),_c('woot-button',{attrs:{\"color-scheme\":\"secondary\",\"variant\":\"smooth\",\"size\":\"tiny\",\"icon\":\"settings\"},on:{\"click\":_vm.openAudioNotificationSettings}}),_vm._v(\" \"),_c('woot-button',{attrs:{\"color-scheme\":\"secondary\",\"variant\":\"link\",\"size\":\"tiny\",\"icon\":\"dismiss\"},on:{\"click\":_vm.closeNotificationPanel}})],1)]),_vm._v(\" \"),_c('NotificationPanelList',{attrs:{\"notifications\":_vm.getUnreadNotifications,\"is-loading\":_vm.uiFlags.isFetching,\"on-click-notification\":_vm.openConversation,\"in-last-page\":_vm.inLastPage},on:{\"close\":_vm.closeNotificationPanel}}),_vm._v(\" \"),(_vm.records.length !== 0)?_c('div',{staticClass:\"flex items-center justify-between px-5 py-1\"},[_c('div',{staticClass:\"flex\"},[_c('woot-button',{attrs:{\"size\":\"medium\",\"variant\":\"clear\",\"color-scheme\":\"secondary\",\"is-disabled\":_vm.inFirstPage},on:{\"click\":_vm.onClickFirstPage}},[_c('fluent-icon',{attrs:{\"icon\":\"chevron-left\",\"size\":\"16\"}}),_vm._v(\" \"),_c('fluent-icon',{staticClass:\"rtl:-mr-3 ltr:-ml-3\",attrs:{\"icon\":\"chevron-left\",\"size\":\"16\"}})],1),_vm._v(\" \"),_c('woot-button',{attrs:{\"color-scheme\":\"secondary\",\"variant\":\"clear\",\"size\":\"medium\",\"icon\":\"chevron-left\",\"disabled\":_vm.inFirstPage},on:{\"click\":_vm.onClickPreviousPage}})],1),_vm._v(\" \"),_c('span',{staticClass:\"font-semibold text-xxs text-slate-500 dark:text-slate-400\"},[_vm._v(\"\\n \"+_vm._s(_vm.currentPage)+\" - \"+_vm._s(_vm.lastPage)+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"flex\"},[_c('woot-button',{attrs:{\"color-scheme\":\"secondary\",\"variant\":\"clear\",\"size\":\"medium\",\"icon\":\"chevron-right\",\"disabled\":_vm.inLastPage},on:{\"click\":_vm.onClickNextPage}}),_vm._v(\" \"),_c('woot-button',{attrs:{\"size\":\"medium\",\"variant\":\"clear\",\"color-scheme\":\"secondary\",\"disabled\":_vm.inLastPage},on:{\"click\":_vm.onClickLastPage}},[_c('fluent-icon',{attrs:{\"icon\":\"chevron-right\",\"size\":\"16\"}}),_vm._v(\" \"),_c('fluent-icon',{staticClass:\"rtl:-mr-3 ltr:-ml-3\",attrs:{\"icon\":\"chevron-right\",\"size\":\"16\"}})],1)],1)]):_c('div')],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NotificationPanelItem.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NotificationPanelItem.vue?vue&type=script&lang=js&\"","\n\n\n \n
\n \n
\n
\n
\n
\n
\n \n {{\n `#${\n notificationItem.primary_actor\n ? notificationItem.primary_actor.id\n : $t(`NOTIFICATIONS_PAGE.DELETE_TITLE`)\n }`\n }}\n \n \n {{\n $t(\n `NOTIFICATIONS_PAGE.TYPE_LABEL.${notificationItem.notification_type}`\n )\n }}\n \n
\n
\n \n
\n
\n
\n \n {{ notificationItem.push_message_title }}\n \n
\n
\n {{ dynamicTime(notificationItem.last_activity_at) }}\n \n
\n
\n \n
\n\n","import mod from \"-!../../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NotificationPanelList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NotificationPanelList.vue?vue&type=script&lang=js&\"","\n\n\n \n
\n
\n
\n {{ $t('NOTIFICATIONS_PAGE.UNREAD_NOTIFICATION.ALL_NOTIFICATIONS') }}\n \n
\n \n {{\n $t('NOTIFICATIONS_PAGE.UNREAD_NOTIFICATION.LOADING_UNREAD_MESSAGE')\n }}\n
\n
\n\n","import { render, staticRenderFns } from \"./NotificationPanelItem.vue?vue&type=template&id=5e84d4f5&\"\nimport script from \"./NotificationPanelItem.vue?vue&type=script&lang=js&\"\nexport * from \"./NotificationPanelItem.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"w-full\"},[_c('woot-button',{staticClass:\"w-full\",attrs:{\"size\":\"expanded\",\"color-scheme\":\"secondary\",\"variant\":\"link\"},on:{\"click\":function($event){return _vm.onClickOpenNotification()}}},[_c('div',{staticClass:\"flex-row items-center p-2.5 leading-[1.4] border-b border-solid border-slate-50 dark:border-slate-700 flex w-full hover:bg-slate-75 dark:hover:bg-slate-900 hover:rounded-md\"},[(!_vm.notificationItem.read_at)?_c('div',{staticClass:\"w-2 h-2 rounded-full bg-woot-500\"}):_c('div',{staticClass:\"flex w-2\"}),_vm._v(\" \"),_c('div',{staticClass:\"flex-col ml-2.5 overflow-hidden w-full flex justify-between\"},[_c('div',{staticClass:\"flex justify-between\"},[_c('div',{staticClass:\"flex items-center\"},[_c('span',{staticClass:\"font-bold text-slate-800 dark:text-slate-100\"},[_vm._v(\"\\n \"+_vm._s(`#${\n _vm.notificationItem.primary_actor\n ? _vm.notificationItem.primary_actor.id\n : _vm.$t(`NOTIFICATIONS_PAGE.DELETE_TITLE`)\n }`)+\"\\n \")]),_vm._v(\" \"),_c('span',{staticClass:\"text-xxs p-0.5 px-1 my-0 mx-2 bg-slate-50 dark:bg-slate-700 rounded-md\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t(\n `NOTIFICATIONS_PAGE.TYPE_LABEL.${_vm.notificationItem.notification_type}`\n ))+\"\\n \")])]),_vm._v(\" \"),(_vm.hasNotificationAssignee)?_c('div',[_c('Thumbnail',{attrs:{\"src\":_vm.notificationAssigneeThumbnail,\"size\":\"16px\",\"username\":_vm.notificationAssigneeName}})],1):_vm._e()]),_vm._v(\" \"),_c('div',{staticClass:\"flex w-full\"},[_c('span',{staticClass:\"overflow-hidden font-normal text-slate-700 dark:text-slate-200 whitespace-nowrap text-ellipsis\"},[_vm._v(\"\\n \"+_vm._s(_vm.notificationItem.push_message_title)+\"\\n \")])]),_vm._v(\" \"),_c('span',{staticClass:\"flex mt-1 font-semibold text-slate-500 dark:text-slate-400 text-xxs\"},[_vm._v(\"\\n \"+_vm._s(_vm.dynamicTime(_vm.notificationItem.last_activity_at))+\"\\n \")])])])])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./NotificationPanelList.vue?vue&type=template&id=7b4f70e5&\"\nimport script from \"./NotificationPanelList.vue?vue&type=script&lang=js&\"\nexport * from \"./NotificationPanelList.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"flex-col py-2 px-2.5 overflow-auto h-full flex\"},[_vm._l((_vm.notifications),function(notificationItem){return _c('NotificationPanelItem',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.isLoading),expression:\"!isLoading\"}],key:notificationItem.id,attrs:{\"notification-item\":notificationItem},on:{\"openNotification\":_vm.onClickNotification}})}),_vm._v(\" \"),(_vm.showEmptyResult)?_c('EmptyState',{attrs:{\"title\":_vm.$t('NOTIFICATIONS_PAGE.UNREAD_NOTIFICATION.EMPTY_MESSAGE')}}):_vm._e(),_vm._v(\" \"),(!_vm.isLoading && _vm.inLastPage)?_c('woot-button',{attrs:{\"size\":\"expanded\",\"variant\":\"clear\",\"color-scheme\":\"primary\",\"class-names\":\"mt-3\"},on:{\"click\":_vm.openNotificationPage}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('NOTIFICATIONS_PAGE.UNREAD_NOTIFICATION.ALL_NOTIFICATIONS'))+\"\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.isLoading)?_c('div',{staticClass:\"flex items-center justify-center mx-2 my-12 text-sm font-medium\"},[_c('Spinner'),_vm._v(\" \"),_c('span',[_vm._v(_vm._s(_vm.$t('NOTIFICATIONS_PAGE.UNREAD_NOTIFICATION.LOADING_UNREAD_MESSAGE')))])],1):_vm._e()],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n \n
\n
\n
\n \n {{ $t('NOTIFICATIONS_PAGE.UNREAD_NOTIFICATION.TITLE') }}\n \n \n {{ totalUnreadNotifications }}\n \n
\n
\n \n {{ $t('NOTIFICATIONS_PAGE.MARK_ALL_DONE') }}\n \n \n \n
\n
\n
\n
\n
\n \n \n \n \n \n
\n
\n {{ currentPage }} - {{ lastPage }}\n \n
\n \n \n \n \n \n
\n
\n
\n
\n
\n\n","import mod from \"-!../../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NotificationPanel.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NotificationPanel.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./NotificationPanel.vue?vue&type=template&id=12d9b22c&\"\nimport script from \"./NotificationPanel.vue?vue&type=script&lang=js&\"\nexport * from \"./NotificationPanel.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('woot-modal',{attrs:{\"show\":_vm.show,\"size\":\"medium\",\"on-close\":() => _vm.$emit('close')}},[_c('div',{staticClass:\"flex flex-col h-auto overflow-auto\"},[_c('woot-modal-header',{attrs:{\"header-title\":_vm.$t('SIDEBAR_ITEMS.KEYBOARD_SHORTCUTS')}}),_vm._v(\" \"),_c('div',{staticClass:\"grid grid-cols-2 px-8 pt-0 pb-4 mt-6 gap-x-5 gap-y-3\"},[_c('div',{staticClass:\"flex justify-between items-center min-w-[25rem]\"},[_c('h5',{staticClass:\"text-sm text-slate-800 dark:text-slate-100\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('KEYBOARD_SHORTCUTS.TOGGLE_MODAL'))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"flex items-center gap-2 mb-1 ml-2\"},[_c(_setup.Hotkey,{attrs:{\"custom-class\":\"min-h-[28px] min-w-[60px] normal-case key\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('KEYBOARD_SHORTCUTS.KEYS.WINDOWS_KEY_AND_COMMAND_KEY'))+\"\\n \")]),_vm._v(\" \"),_c(_setup.Hotkey,{attrs:{\"custom-class\":\"min-h-[28px] min-w-[36px] key\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('KEYBOARD_SHORTCUTS.KEYS.FORWARD_SLASH_KEY'))+\"\\n \")])],1)])]),_vm._v(\" \"),_c('div',{staticClass:\"grid grid-cols-2 px-8 pt-0 pb-8 gap-x-5 gap-y-3\"},[_c('div',{staticClass:\"flex justify-between items-center min-w-[25rem]\"},[_c('h5',{staticClass:\"text-sm text-slate-800 dark:text-slate-100\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('KEYBOARD_SHORTCUTS.TITLE.OPEN_CONVERSATION'))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"flex items-center gap-2 mb-1 ml-2\"},[_c('div',{staticClass:\"flex gap-2\"},[_c(_setup.Hotkey,{attrs:{\"custom-class\":\"min-h-[28px] min-w-[60px] normal-case key\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('KEYBOARD_SHORTCUTS.KEYS.ALT_OR_OPTION_KEY'))+\"\\n \")]),_vm._v(\" \"),_c(_setup.Hotkey,{attrs:{\"custom-class\":\"min-h-[28px] w-9 key\"}},[_vm._v(\" \"+_vm._s('J')+\" \")]),_vm._v(\" \"),_c('span',{staticClass:\"flex items-center text-sm font-semibold text-slate-800 dark:text-slate-100\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('KEYBOARD_SHORTCUTS.KEYS.FORWARD_SLASH_KEY'))+\"\\n \")])],1),_vm._v(\" \"),_c(_setup.Hotkey,{attrs:{\"custom-class\":\"min-h-[28px] min-w-[60px] normal-case key\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('KEYBOARD_SHORTCUTS.KEYS.ALT_OR_OPTION_KEY'))+\"\\n \")]),_vm._v(\" \"),_c(_setup.Hotkey,{attrs:{\"custom-class\":\"w-9 key\"}},[_vm._v(\" \"+_vm._s('K')+\" \")])],1)]),_vm._v(\" \"),_c('div',{staticClass:\"flex justify-between items-center min-w-[25rem]\"},[_c('h5',{staticClass:\"text-sm text-slate-800 dark:text-slate-100\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('KEYBOARD_SHORTCUTS.TITLE.RESOLVE_AND_NEXT'))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"flex items-center gap-2 mb-1 ml-2\"},[_c(_setup.Hotkey,{attrs:{\"custom-class\":\"min-h-[28px] min-w-[60px] normal-case key\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('KEYBOARD_SHORTCUTS.KEYS.WINDOWS_KEY_AND_COMMAND_KEY'))+\"\\n \")]),_vm._v(\" \"),_c(_setup.Hotkey,{attrs:{\"custom-class\":\"min-h-[28px] min-w-[60px] normal-case key\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('KEYBOARD_SHORTCUTS.KEYS.ALT_OR_OPTION_KEY'))+\"\\n \")]),_vm._v(\" \"),_c(_setup.Hotkey,{attrs:{\"custom-class\":\"w-9 key\"}},[_vm._v(\" \"+_vm._s('E')+\" \")])],1)]),_vm._v(\" \"),_vm._l((_setup.shortcutKeys),function(shortcutKey){return _c('div',{key:shortcutKey.id,staticClass:\"flex justify-between items-center min-w-[25rem]\"},[_c('h5',{staticClass:\"text-sm text-slate-800 min-w-[36px] dark:text-slate-100\"},[_vm._v(\"\\n \"+_vm._s(_setup.title(shortcutKey))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"flex items-center gap-2 mb-1 ml-2\"},[(_setup.needsShiftKey(shortcutKey.keySet))?_c(_setup.Hotkey,{attrs:{\"custom-class\":\"min-h-[28px] min-w-[36px] key\"}},[_vm._v(\"\\n \"+_vm._s('Shift')+\"\\n \")]):_vm._e(),_vm._v(\" \"),_c(_setup.Hotkey,{class:{ 'min-w-[60px]': shortcutKey.firstKey !== 'Up' },attrs:{\"custom-class\":\"min-h-[28px] normal-case key\"}},[_vm._v(\"\\n \"+_vm._s(shortcutKey.firstKey)+\"\\n \")]),_vm._v(\" \"),_c(_setup.Hotkey,{class:{ 'normal-case': shortcutKey.secondKey === 'Down' },attrs:{\"custom-class\":\"min-h-[28px] min-w-[36px] key\"}},[_vm._v(\"\\n \"+_vm._s(shortcutKey.secondKey)+\"\\n \")])],1)])})],2)],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export const SHORTCUT_KEYS = [\n {\n id: 1,\n label: 'NAVIGATE_DROPDOWN',\n firstKey: 'Up',\n secondKey: 'Down',\n keySet: ['ArrowUp', 'ArrowDown'],\n },\n {\n id: 2,\n label: 'RESOLVE_CONVERSATION',\n firstKey: 'Alt / ⌥',\n secondKey: 'E',\n keySet: ['Alt+KeyE'],\n },\n {\n id: 3,\n label: 'GO_TO_CONVERSATION_DASHBOARD',\n firstKey: 'Alt / ⌥',\n secondKey: 'C',\n keySet: ['Alt+KeyC'],\n },\n {\n id: 4,\n label: 'ADD_ATTACHMENT',\n firstKey: 'Alt / ⌥',\n secondKey: 'A',\n keySet: ['Alt+KeyA'],\n },\n {\n id: 5,\n label: 'GO_TO_CONTACTS_DASHBOARD',\n firstKey: 'Alt / ⌥',\n secondKey: 'V',\n keySet: ['Alt+KeyV'],\n },\n {\n id: 6,\n label: 'TOGGLE_SIDEBAR',\n firstKey: 'Alt / ⌥',\n secondKey: 'O',\n keySet: ['Alt+KeyO'],\n },\n {\n id: 7,\n label: 'GO_TO_REPORTS_SIDEBAR',\n firstKey: 'Alt / ⌥',\n secondKey: 'R',\n keySet: ['Alt+KeyR'],\n },\n {\n id: 8,\n label: 'MOVE_TO_NEXT_TAB',\n firstKey: 'Alt / ⌥',\n secondKey: 'N',\n keySet: ['Alt+KeyN'],\n },\n {\n id: 9,\n label: 'GO_TO_SETTINGS',\n firstKey: 'Alt / ⌥',\n secondKey: 'S',\n keySet: ['Alt+KeyS'],\n },\n {\n id: 11,\n label: 'SWITCH_TO_PRIVATE_NOTE',\n firstKey: 'Alt / ⌥',\n secondKey: 'P',\n keySet: ['Alt+KeyP'],\n },\n {\n id: 12,\n label: 'SWITCH_TO_REPLY',\n firstKey: 'Alt / ⌥',\n secondKey: 'L',\n keySet: ['Alt+KeyL'],\n },\n {\n id: 13,\n label: 'TOGGLE_SNOOZE_DROPDOWN',\n firstKey: 'Alt / ⌥',\n secondKey: 'M',\n keySet: ['Alt+KeyM'],\n },\n];\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WootKeyShortcutModal.vue?vue&type=script&setup=true&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WootKeyShortcutModal.vue?vue&type=script&setup=true&lang=js&\"","\n\n\n $emit('close')\">\n \n
\n
\n
\n
\n {{ $t('KEYBOARD_SHORTCUTS.TOGGLE_MODAL') }}\n
\n
\n \n {{ $t('KEYBOARD_SHORTCUTS.KEYS.WINDOWS_KEY_AND_COMMAND_KEY') }}\n \n \n {{ $t('KEYBOARD_SHORTCUTS.KEYS.FORWARD_SLASH_KEY') }}\n \n
\n
\n
\n\n
\n
\n
\n {{ $t('KEYBOARD_SHORTCUTS.TITLE.OPEN_CONVERSATION') }}\n
\n
\n
\n \n {{ $t('KEYBOARD_SHORTCUTS.KEYS.ALT_OR_OPTION_KEY') }}\n \n {{ 'J' }} \n \n {{ $t('KEYBOARD_SHORTCUTS.KEYS.FORWARD_SLASH_KEY') }}\n \n
\n
\n {{ $t('KEYBOARD_SHORTCUTS.KEYS.ALT_OR_OPTION_KEY') }}\n \n
{{ 'K' }} \n
\n
\n\n
\n
\n {{ $t('KEYBOARD_SHORTCUTS.TITLE.RESOLVE_AND_NEXT') }}\n
\n
\n \n {{ $t('KEYBOARD_SHORTCUTS.KEYS.WINDOWS_KEY_AND_COMMAND_KEY') }}\n \n \n {{ $t('KEYBOARD_SHORTCUTS.KEYS.ALT_OR_OPTION_KEY') }}\n \n {{ 'E' }} \n
\n
\n
\n
\n {{ title(shortcutKey) }}\n
\n
\n \n {{ 'Shift' }}\n \n \n {{ shortcutKey.firstKey }}\n \n \n {{ shortcutKey.secondKey }}\n \n
\n
\n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./WootKeyShortcutModal.vue?vue&type=template&id=fddaa52c&scoped=true&\"\nimport script from \"./WootKeyShortcutModal.vue?vue&type=script&setup=true&lang=js&\"\nexport * from \"./WootKeyShortcutModal.vue?vue&type=script&setup=true&lang=js&\"\nimport style0 from \"./WootKeyShortcutModal.vue?vue&type=style&index=0&id=fddaa52c&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"fddaa52c\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('woot-modal',{attrs:{\"show\":_vm.show,\"on-close\":() => _vm.$emit('closeAccountCreateModal')}},[_c('div',{staticClass:\"flex flex-col h-auto overflow-auto\"},[_c('woot-modal-header',{attrs:{\"header-title\":_vm.$t('CREATE_ACCOUNT.NEW_ACCOUNT'),\"header-content\":_vm.$t('CREATE_ACCOUNT.SELECTOR_SUBTITLE')}}),_vm._v(\" \"),(!_vm.hasAccounts)?_c('div',{staticClass:\"mx-8 mt-6 mb-0 text-sm\"},[_c('div',{staticClass:\"flex items-center rounded-md alert\"},[_c('div',{staticClass:\"ml-1 mr-3\"},[_c('fluent-icon',{attrs:{\"icon\":\"warning\"}})],1),_vm._v(\"\\n \"+_vm._s(_vm.$t('CREATE_ACCOUNT.NO_ACCOUNT_WARNING'))+\"\\n \")])]):_vm._e(),_vm._v(\" \"),_c('form',{staticClass:\"flex flex-col w-full\",on:{\"submit\":function($event){$event.preventDefault();return _vm.addAccount.apply(null, arguments)}}},[_c('div',{staticClass:\"w-full\"},[_c('label',{class:{ error: _vm.v$.accountName.$error }},[_vm._v(\"\\n \"+_vm._s(_vm.$t('CREATE_ACCOUNT.FORM.NAME.LABEL'))+\"\\n \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model.trim\",value:(_vm.accountName),expression:\"accountName\",modifiers:{\"trim\":true}}],attrs:{\"type\":\"text\",\"placeholder\":_vm.$t('CREATE_ACCOUNT.FORM.NAME.PLACEHOLDER')},domProps:{\"value\":(_vm.accountName)},on:{\"input\":[function($event){if($event.target.composing)return;_vm.accountName=$event.target.value.trim()},_vm.v$.accountName.$touch],\"blur\":function($event){return _vm.$forceUpdate()}}})])]),_vm._v(\" \"),_c('div',{staticClass:\"w-full\"},[_c('div',{staticClass:\"w-full\"},[_c('woot-submit-button',{attrs:{\"disabled\":_vm.v$.accountName.$invalid ||\n _vm.v$.accountName.$invalid ||\n _vm.uiFlags.isCreating,\"button-text\":_vm.$t('CREATE_ACCOUNT.FORM.SUBMIT'),\"loading\":_vm.uiFlags.isCreating,\"button-class\":\"large expanded\"}})],1)])])],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n $emit('closeAccountCreateModal')\">\n \n
\n
\n
\n
\n \n
\n {{ $t('CREATE_ACCOUNT.NO_ACCOUNT_WARNING') }}\n
\n
\n\n
\n
\n \n\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddAccountModal.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddAccountModal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AddAccountModal.vue?vue&type=template&id=1ad65dde&\"\nimport script from \"./AddAccountModal.vue?vue&type=script&lang=js&\"\nexport * from \"./AddAccountModal.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('woot-modal',{attrs:{\"show\":_vm.showAccountModal,\"on-close\":() => _vm.$emit('closeAccountModal')}},[_c('woot-modal-header',{attrs:{\"header-title\":_vm.$t('SIDEBAR_ITEMS.CHANGE_ACCOUNTS'),\"header-content\":_vm.$t('SIDEBAR_ITEMS.SELECTOR_SUBTITLE')}}),_vm._v(\" \"),_c('div',{staticClass:\"px-8 py-4\"},_vm._l((_vm.currentUser.accounts),function(account){return _c('div',{key:account.id,staticClass:\"pt-0 pb-0\",attrs:{\"id\":`account-${account.id}`}},[_c('button',{staticClass:\"flex items-center justify-between w-full px-4 py-3 rounded-lg cursor-pointer expanded clear link hover:underline hover:bg-slate-25 dark:hover:bg-slate-900\",on:{\"click\":function($event){return _vm.onChangeAccount(account.id)}}},[_c('span',{staticClass:\"w-full\"},[_c('label',{staticClass:\"text-left rtl:text-right\",attrs:{\"for\":account.name}},[_c('div',{staticClass:\"text-lg font-medium leading-5 text-slate-700 dark:text-slate-100 hover:underline-offset-4\"},[_vm._v(\"\\n \"+_vm._s(account.name)+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"text-xs font-medium text-slate-500 dark:text-slate-500 hover:underline-offset-4\"},[_vm._v(\"\\n \"+_vm._s(account.role)+\"\\n \")])])]),_vm._v(\" \"),_c('fluent-icon',{directives:[{name:\"show\",rawName:\"v-show\",value:(account.id === _vm.accountId),expression:\"account.id === accountId\"}],staticClass:\"text-slate-800 dark:text-slate-100\",attrs:{\"icon\":\"checkmark-circle\",\"type\":\"solid\",\"size\":\"24\"}})],1)])}),0),_vm._v(\" \"),(_vm.globalConfig.createNewAccountFromDashboard)?_c('div',{staticClass:\"flex items-center justify-end gap-2 px-8 pt-4 pb-8\"},[_c('button',{staticClass:\"w-full button success large expanded nice\",on:{\"click\":function($event){return _vm.$emit('showCreateAccountModal')}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('CREATE_ACCOUNT.NEW_ACCOUNT'))+\"\\n \")])]):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n $emit('closeAccountModal')\"\n >\n \n \n
\n
\n
\n
\n\n \n \n
\n \n\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AccountSelector.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AccountSelector.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AccountSelector.vue?vue&type=template&id=11746bae&\"\nimport script from \"./AccountSelector.vue?vue&type=script&lang=js&\"\nexport * from \"./AccountSelector.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('woot-modal',{attrs:{\"show\":_vm.show,\"on-close\":_vm.onClose},on:{\"update:show\":function($event){_vm.show=$event}}},[_c('woot-modal-header',{attrs:{\"header-title\":_vm.$t('HELP_CENTER.CATEGORY.ADD.TITLE'),\"header-content\":_vm.$t('HELP_CENTER.CATEGORY.ADD.SUB_TITLE')}}),_vm._v(\" \"),_c('form',{staticClass:\"w-full\",on:{\"submit\":function($event){$event.preventDefault();return _vm.onCreate.apply(null, arguments)}}},[_c('div',{staticClass:\"w-full\"},[_c('div',{staticClass:\"flex flex-row w-full mx-0 mt-0 mb-4\"},[_c('div',{staticClass:\"w-[50%]\"},[_c('label',[_c('span',[_vm._v(_vm._s(_vm.$t('HELP_CENTER.CATEGORY.ADD.PORTAL')))]),_vm._v(\" \"),_c('p',{staticClass:\"text-slate-600 dark:text-slate-400\"},[_vm._v(_vm._s(_vm.portalName))])])]),_vm._v(\" \"),_c('div',{staticClass:\"w-[50%]\"},[_c('label',[_c('span',[_vm._v(_vm._s(_vm.$t('HELP_CENTER.CATEGORY.ADD.LOCALE')))]),_vm._v(\" \"),_c('p',{staticClass:\"text-slate-600 dark:text-slate-400\"},[_vm._v(_vm._s(_vm.locale))])])])]),_vm._v(\" \"),_c('CategoryNameIconInput',{attrs:{\"label\":_vm.$t('HELP_CENTER.CATEGORY.ADD.NAME.LABEL'),\"placeholder\":_vm.$t('HELP_CENTER.CATEGORY.ADD.NAME.PLACEHOLDER'),\"help-text\":_vm.$t('HELP_CENTER.CATEGORY.ADD.NAME.HELP_TEXT'),\"has-error\":_vm.v$.name.$error,\"error-message\":_vm.$t('HELP_CENTER.CATEGORY.ADD.NAME.ERROR')},on:{\"nameChange\":_vm.onNameChange,\"iconChange\":_vm.onClickInsertEmoji}}),_vm._v(\" \"),_c('woot-input',{staticClass:\"w-full\",class:{ error: _vm.v$.slug.$error },attrs:{\"error\":_vm.slugError,\"label\":_vm.$t('HELP_CENTER.CATEGORY.ADD.SLUG.LABEL'),\"placeholder\":_vm.$t('HELP_CENTER.CATEGORY.ADD.SLUG.PLACEHOLDER'),\"help-text\":_vm.$t('HELP_CENTER.CATEGORY.ADD.SLUG.HELP_TEXT')},on:{\"input\":_vm.v$.slug.$touch},model:{value:(_vm.slug),callback:function ($$v) {_vm.slug=(typeof $$v === 'string'? $$v.trim(): $$v)},expression:\"slug\"}}),_vm._v(\" \"),_c('label',[_vm._v(\"\\n \"+_vm._s(_vm.$t('HELP_CENTER.CATEGORY.ADD.DESCRIPTION.LABEL'))+\"\\n \"),_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.description),expression:\"description\"}],attrs:{\"rows\":\"3\",\"type\":\"text\",\"placeholder\":_vm.$t('HELP_CENTER.CATEGORY.ADD.DESCRIPTION.PLACEHOLDER')},domProps:{\"value\":(_vm.description)},on:{\"input\":function($event){if($event.target.composing)return;_vm.description=$event.target.value}}})]),_vm._v(\" \"),_c('div',{staticClass:\"w-full\"},[_c('div',{staticClass:\"flex flex-row justify-end w-full gap-2 px-0 py-2\"},[_c('woot-button',{staticClass:\"button clear\",on:{\"click\":function($event){$event.preventDefault();return _vm.onClose.apply(null, arguments)}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('HELP_CENTER.CATEGORY.ADD.BUTTONS.CANCEL'))+\"\\n \")]),_vm._v(\" \"),_c('woot-button',{on:{\"click\":_vm.addCategory}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('HELP_CENTER.CATEGORY.ADD.BUTTONS.CREATE'))+\"\\n \")])],1)])],1)])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n \n \n \n \n\n\n\n","import mod from \"-!../../../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddCategory.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AddCategory.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AddCategory.vue?vue&type=template&id=16309d22&scoped=true&\"\nimport script from \"./AddCategory.vue?vue&type=script&lang=js&\"\nexport * from \"./AddCategory.vue?vue&type=script&lang=js&\"\nimport style0 from \"./AddCategory.vue?vue&type=style&index=0&id=16309d22&prod&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"16309d22\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('section',{staticClass:\"w-3/4\"},[(_vm.richtext)?_c('div',{staticClass:\"px-4 py-0 mx-0 mt-0 mb-4 bg-white border border-solid rounded-md border-slate-200 dark:border-slate-600 dark:bg-slate-900\"},[_c('WootMessageEditor',{staticClass:\"bg-white input dark:bg-slate-900\",attrs:{\"is-format-mode\":\"\",\"enable-variables\":\"\",\"placeholder\":_vm.placeholder,\"min-height\":4},on:{\"input\":_vm.handleInput},model:{value:(_vm.greetingsMessage),callback:function ($$v) {_vm.greetingsMessage=$$v},expression:\"greetingsMessage\"}})],1):_c('ResizableTextArea',{staticClass:\"greetings--textarea\",attrs:{\"rows\":4,\"type\":\"text\",\"label\":_vm.label,\"placeholder\":_vm.placeholder},on:{\"input\":_vm.handleInput},model:{value:(_vm.greetingsMessage),callback:function ($$v) {_vm.greetingsMessage=$$v},expression:\"greetingsMessage\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GreetingsEditor.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GreetingsEditor.vue?vue&type=script&lang=js&\"","\n\n\n \n\n","import { render, staticRenderFns } from \"./GreetingsEditor.vue?vue&type=template&id=a7b3b6c2&\"\nimport script from \"./GreetingsEditor.vue?vue&type=script&lang=js&\"\nexport * from \"./GreetingsEditor.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('button',{staticClass:\"bg-white dark:bg-slate-900 cursor-pointer flex flex-col justify-end transition-all duration-200 ease-in -m-px py-4 px-0 items-center border border-solid border-slate-25 dark:border-slate-800 hover:border-woot-500 dark:hover:border-woot-500 hover:shadow-md hover:z-50 disabled:opacity-60\",on:{\"click\":function($event){return _vm.$emit('click')}}},[_c('img',{staticClass:\"w-1/2 my-4 mx-auto\",attrs:{\"src\":_vm.src,\"alt\":_vm.title}}),_vm._v(\" \"),_c('h3',{staticClass:\"text-slate-800 dark:text-slate-100 text-base text-center capitalize\"},[_vm._v(\"\\n \"+_vm._s(_vm.title)+\"\\n \")])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ChannelSelector.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ChannelSelector.vue?vue&type=script&lang=js&\"","\n\n\n \n\n\n\n","import { render, staticRenderFns } from \"./ChannelSelector.vue?vue&type=template&id=adac684e&scoped=true&\"\nimport script from \"./ChannelSelector.vue?vue&type=script&lang=js&\"\nexport * from \"./ChannelSelector.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ChannelSelector.vue?vue&type=style&index=0&id=adac684e&prod&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"adac684e\",\n null\n \n)\n\nexport default component.exports","var hljs = require('./core');\n\nhljs.registerLanguage('1c', require('./languages/1c'));\nhljs.registerLanguage('abnf', require('./languages/abnf'));\nhljs.registerLanguage('accesslog', require('./languages/accesslog'));\nhljs.registerLanguage('actionscript', require('./languages/actionscript'));\nhljs.registerLanguage('ada', require('./languages/ada'));\nhljs.registerLanguage('angelscript', require('./languages/angelscript'));\nhljs.registerLanguage('apache', require('./languages/apache'));\nhljs.registerLanguage('applescript', require('./languages/applescript'));\nhljs.registerLanguage('arcade', require('./languages/arcade'));\nhljs.registerLanguage('arduino', require('./languages/arduino'));\nhljs.registerLanguage('armasm', require('./languages/armasm'));\nhljs.registerLanguage('xml', require('./languages/xml'));\nhljs.registerLanguage('asciidoc', require('./languages/asciidoc'));\nhljs.registerLanguage('aspectj', require('./languages/aspectj'));\nhljs.registerLanguage('autohotkey', require('./languages/autohotkey'));\nhljs.registerLanguage('autoit', require('./languages/autoit'));\nhljs.registerLanguage('avrasm', require('./languages/avrasm'));\nhljs.registerLanguage('awk', require('./languages/awk'));\nhljs.registerLanguage('axapta', require('./languages/axapta'));\nhljs.registerLanguage('bash', require('./languages/bash'));\nhljs.registerLanguage('basic', require('./languages/basic'));\nhljs.registerLanguage('bnf', require('./languages/bnf'));\nhljs.registerLanguage('brainfuck', require('./languages/brainfuck'));\nhljs.registerLanguage('c-like', require('./languages/c-like'));\nhljs.registerLanguage('c', require('./languages/c'));\nhljs.registerLanguage('cal', require('./languages/cal'));\nhljs.registerLanguage('capnproto', require('./languages/capnproto'));\nhljs.registerLanguage('ceylon', require('./languages/ceylon'));\nhljs.registerLanguage('clean', require('./languages/clean'));\nhljs.registerLanguage('clojure', require('./languages/clojure'));\nhljs.registerLanguage('clojure-repl', require('./languages/clojure-repl'));\nhljs.registerLanguage('cmake', require('./languages/cmake'));\nhljs.registerLanguage('coffeescript', require('./languages/coffeescript'));\nhljs.registerLanguage('coq', require('./languages/coq'));\nhljs.registerLanguage('cos', require('./languages/cos'));\nhljs.registerLanguage('cpp', require('./languages/cpp'));\nhljs.registerLanguage('crmsh', require('./languages/crmsh'));\nhljs.registerLanguage('crystal', require('./languages/crystal'));\nhljs.registerLanguage('csharp', require('./languages/csharp'));\nhljs.registerLanguage('csp', require('./languages/csp'));\nhljs.registerLanguage('css', require('./languages/css'));\nhljs.registerLanguage('d', require('./languages/d'));\nhljs.registerLanguage('markdown', require('./languages/markdown'));\nhljs.registerLanguage('dart', require('./languages/dart'));\nhljs.registerLanguage('delphi', require('./languages/delphi'));\nhljs.registerLanguage('diff', require('./languages/diff'));\nhljs.registerLanguage('django', require('./languages/django'));\nhljs.registerLanguage('dns', require('./languages/dns'));\nhljs.registerLanguage('dockerfile', require('./languages/dockerfile'));\nhljs.registerLanguage('dos', require('./languages/dos'));\nhljs.registerLanguage('dsconfig', require('./languages/dsconfig'));\nhljs.registerLanguage('dts', require('./languages/dts'));\nhljs.registerLanguage('dust', require('./languages/dust'));\nhljs.registerLanguage('ebnf', require('./languages/ebnf'));\nhljs.registerLanguage('elixir', require('./languages/elixir'));\nhljs.registerLanguage('elm', require('./languages/elm'));\nhljs.registerLanguage('ruby', require('./languages/ruby'));\nhljs.registerLanguage('erb', require('./languages/erb'));\nhljs.registerLanguage('erlang-repl', require('./languages/erlang-repl'));\nhljs.registerLanguage('erlang', require('./languages/erlang'));\nhljs.registerLanguage('excel', require('./languages/excel'));\nhljs.registerLanguage('fix', require('./languages/fix'));\nhljs.registerLanguage('flix', require('./languages/flix'));\nhljs.registerLanguage('fortran', require('./languages/fortran'));\nhljs.registerLanguage('fsharp', require('./languages/fsharp'));\nhljs.registerLanguage('gams', require('./languages/gams'));\nhljs.registerLanguage('gauss', require('./languages/gauss'));\nhljs.registerLanguage('gcode', require('./languages/gcode'));\nhljs.registerLanguage('gherkin', require('./languages/gherkin'));\nhljs.registerLanguage('glsl', require('./languages/glsl'));\nhljs.registerLanguage('gml', require('./languages/gml'));\nhljs.registerLanguage('go', require('./languages/go'));\nhljs.registerLanguage('golo', require('./languages/golo'));\nhljs.registerLanguage('gradle', require('./languages/gradle'));\nhljs.registerLanguage('groovy', require('./languages/groovy'));\nhljs.registerLanguage('haml', require('./languages/haml'));\nhljs.registerLanguage('handlebars', require('./languages/handlebars'));\nhljs.registerLanguage('haskell', require('./languages/haskell'));\nhljs.registerLanguage('haxe', require('./languages/haxe'));\nhljs.registerLanguage('hsp', require('./languages/hsp'));\nhljs.registerLanguage('htmlbars', require('./languages/htmlbars'));\nhljs.registerLanguage('http', require('./languages/http'));\nhljs.registerLanguage('hy', require('./languages/hy'));\nhljs.registerLanguage('inform7', require('./languages/inform7'));\nhljs.registerLanguage('ini', require('./languages/ini'));\nhljs.registerLanguage('irpf90', require('./languages/irpf90'));\nhljs.registerLanguage('isbl', require('./languages/isbl'));\nhljs.registerLanguage('java', require('./languages/java'));\nhljs.registerLanguage('javascript', require('./languages/javascript'));\nhljs.registerLanguage('jboss-cli', require('./languages/jboss-cli'));\nhljs.registerLanguage('json', require('./languages/json'));\nhljs.registerLanguage('julia', require('./languages/julia'));\nhljs.registerLanguage('julia-repl', require('./languages/julia-repl'));\nhljs.registerLanguage('kotlin', require('./languages/kotlin'));\nhljs.registerLanguage('lasso', require('./languages/lasso'));\nhljs.registerLanguage('latex', require('./languages/latex'));\nhljs.registerLanguage('ldif', require('./languages/ldif'));\nhljs.registerLanguage('leaf', require('./languages/leaf'));\nhljs.registerLanguage('less', require('./languages/less'));\nhljs.registerLanguage('lisp', require('./languages/lisp'));\nhljs.registerLanguage('livecodeserver', require('./languages/livecodeserver'));\nhljs.registerLanguage('livescript', require('./languages/livescript'));\nhljs.registerLanguage('llvm', require('./languages/llvm'));\nhljs.registerLanguage('lsl', require('./languages/lsl'));\nhljs.registerLanguage('lua', require('./languages/lua'));\nhljs.registerLanguage('makefile', require('./languages/makefile'));\nhljs.registerLanguage('mathematica', require('./languages/mathematica'));\nhljs.registerLanguage('matlab', require('./languages/matlab'));\nhljs.registerLanguage('maxima', require('./languages/maxima'));\nhljs.registerLanguage('mel', require('./languages/mel'));\nhljs.registerLanguage('mercury', require('./languages/mercury'));\nhljs.registerLanguage('mipsasm', require('./languages/mipsasm'));\nhljs.registerLanguage('mizar', require('./languages/mizar'));\nhljs.registerLanguage('perl', require('./languages/perl'));\nhljs.registerLanguage('mojolicious', require('./languages/mojolicious'));\nhljs.registerLanguage('monkey', require('./languages/monkey'));\nhljs.registerLanguage('moonscript', require('./languages/moonscript'));\nhljs.registerLanguage('n1ql', require('./languages/n1ql'));\nhljs.registerLanguage('nginx', require('./languages/nginx'));\nhljs.registerLanguage('nim', require('./languages/nim'));\nhljs.registerLanguage('nix', require('./languages/nix'));\nhljs.registerLanguage('node-repl', require('./languages/node-repl'));\nhljs.registerLanguage('nsis', require('./languages/nsis'));\nhljs.registerLanguage('objectivec', require('./languages/objectivec'));\nhljs.registerLanguage('ocaml', require('./languages/ocaml'));\nhljs.registerLanguage('openscad', require('./languages/openscad'));\nhljs.registerLanguage('oxygene', require('./languages/oxygene'));\nhljs.registerLanguage('parser3', require('./languages/parser3'));\nhljs.registerLanguage('pf', require('./languages/pf'));\nhljs.registerLanguage('pgsql', require('./languages/pgsql'));\nhljs.registerLanguage('php', require('./languages/php'));\nhljs.registerLanguage('php-template', require('./languages/php-template'));\nhljs.registerLanguage('plaintext', require('./languages/plaintext'));\nhljs.registerLanguage('pony', require('./languages/pony'));\nhljs.registerLanguage('powershell', require('./languages/powershell'));\nhljs.registerLanguage('processing', require('./languages/processing'));\nhljs.registerLanguage('profile', require('./languages/profile'));\nhljs.registerLanguage('prolog', require('./languages/prolog'));\nhljs.registerLanguage('properties', require('./languages/properties'));\nhljs.registerLanguage('protobuf', require('./languages/protobuf'));\nhljs.registerLanguage('puppet', require('./languages/puppet'));\nhljs.registerLanguage('purebasic', require('./languages/purebasic'));\nhljs.registerLanguage('python', require('./languages/python'));\nhljs.registerLanguage('python-repl', require('./languages/python-repl'));\nhljs.registerLanguage('q', require('./languages/q'));\nhljs.registerLanguage('qml', require('./languages/qml'));\nhljs.registerLanguage('r', require('./languages/r'));\nhljs.registerLanguage('reasonml', require('./languages/reasonml'));\nhljs.registerLanguage('rib', require('./languages/rib'));\nhljs.registerLanguage('roboconf', require('./languages/roboconf'));\nhljs.registerLanguage('routeros', require('./languages/routeros'));\nhljs.registerLanguage('rsl', require('./languages/rsl'));\nhljs.registerLanguage('ruleslanguage', require('./languages/ruleslanguage'));\nhljs.registerLanguage('rust', require('./languages/rust'));\nhljs.registerLanguage('sas', require('./languages/sas'));\nhljs.registerLanguage('scala', require('./languages/scala'));\nhljs.registerLanguage('scheme', require('./languages/scheme'));\nhljs.registerLanguage('scilab', require('./languages/scilab'));\nhljs.registerLanguage('scss', require('./languages/scss'));\nhljs.registerLanguage('shell', require('./languages/shell'));\nhljs.registerLanguage('smali', require('./languages/smali'));\nhljs.registerLanguage('smalltalk', require('./languages/smalltalk'));\nhljs.registerLanguage('sml', require('./languages/sml'));\nhljs.registerLanguage('sqf', require('./languages/sqf'));\nhljs.registerLanguage('sql', require('./languages/sql'));\nhljs.registerLanguage('stan', require('./languages/stan'));\nhljs.registerLanguage('stata', require('./languages/stata'));\nhljs.registerLanguage('step21', require('./languages/step21'));\nhljs.registerLanguage('stylus', require('./languages/stylus'));\nhljs.registerLanguage('subunit', require('./languages/subunit'));\nhljs.registerLanguage('swift', require('./languages/swift'));\nhljs.registerLanguage('taggerscript', require('./languages/taggerscript'));\nhljs.registerLanguage('yaml', require('./languages/yaml'));\nhljs.registerLanguage('tap', require('./languages/tap'));\nhljs.registerLanguage('tcl', require('./languages/tcl'));\nhljs.registerLanguage('thrift', require('./languages/thrift'));\nhljs.registerLanguage('tp', require('./languages/tp'));\nhljs.registerLanguage('twig', require('./languages/twig'));\nhljs.registerLanguage('typescript', require('./languages/typescript'));\nhljs.registerLanguage('vala', require('./languages/vala'));\nhljs.registerLanguage('vbnet', require('./languages/vbnet'));\nhljs.registerLanguage('vbscript', require('./languages/vbscript'));\nhljs.registerLanguage('vbscript-html', require('./languages/vbscript-html'));\nhljs.registerLanguage('verilog', require('./languages/verilog'));\nhljs.registerLanguage('vhdl', require('./languages/vhdl'));\nhljs.registerLanguage('vim', require('./languages/vim'));\nhljs.registerLanguage('x86asm', require('./languages/x86asm'));\nhljs.registerLanguage('xl', require('./languages/xl'));\nhljs.registerLanguage('xquery', require('./languages/xquery'));\nhljs.registerLanguage('zephir', require('./languages/zephir'));\nmodule.exports = hljs;","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n!function (t, e) {\n \"object\" == (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) && \"object\" == (typeof module === \"undefined\" ? \"undefined\" : _typeof(module)) ? module.exports = e() : \"function\" == typeof define && define.amd ? define([], e) : \"object\" == (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) ? exports.VueMultiselect = e() : t.VueMultiselect = e();\n}(this, function () {\n return function (t) {\n function e(r) {\n if (n[r]) return n[r].exports;\n var i = n[r] = {\n i: r,\n l: !1,\n exports: {}\n };\n return t[r].call(i.exports, i, i.exports, e), i.l = !0, i.exports;\n }\n\n var n = {};\n return e.m = t, e.c = n, e.i = function (t) {\n return t;\n }, e.d = function (t, n, r) {\n e.o(t, n) || Object.defineProperty(t, n, {\n configurable: !1,\n enumerable: !0,\n get: r\n });\n }, e.n = function (t) {\n var n = t && t.__esModule ? function () {\n return t.default;\n } : function () {\n return t;\n };\n return e.d(n, \"a\", n), n;\n }, e.o = function (t, e) {\n return Object.prototype.hasOwnProperty.call(t, e);\n }, e.p = \"/\", e(e.s = 89);\n }([function (t, e) {\n t.exports = function (t) {\n try {\n return !!t();\n } catch (t) {\n return !0;\n }\n };\n }, function (t, e, n) {\n var r = n(35),\n i = Function.prototype,\n o = i.call,\n s = r && i.bind.bind(o, o);\n t.exports = r ? s : function (t) {\n return function () {\n return o.apply(t, arguments);\n };\n };\n }, function (t, e, n) {\n var r = n(59),\n i = r.all;\n t.exports = r.IS_HTMLDDA ? function (t) {\n return \"function\" == typeof t || t === i;\n } : function (t) {\n return \"function\" == typeof t;\n };\n }, function (t, e, n) {\n var r = n(4),\n i = n(43).f,\n o = n(30),\n s = n(11),\n u = n(33),\n a = n(95),\n l = n(66);\n\n t.exports = function (t, e) {\n var n,\n c,\n f,\n p,\n h,\n d = t.target,\n v = t.global,\n g = t.stat;\n if (n = v ? r : g ? r[d] || u(d, {}) : (r[d] || {}).prototype) for (c in e) {\n if (p = e[c], t.dontCallGetSet ? (h = i(n, c), f = h && h.value) : f = n[c], !l(v ? c : d + (g ? \".\" : \"#\") + c, t.forced) && void 0 !== f) {\n if (_typeof(p) == _typeof(f)) continue;\n a(p, f);\n }\n\n (t.sham || f && f.sham) && o(p, \"sham\", !0), s(n, c, p, t);\n }\n };\n }, function (t, e, n) {\n (function (e) {\n var n = function n(t) {\n return t && t.Math == Math && t;\n };\n\n t.exports = n(\"object\" == (typeof globalThis === \"undefined\" ? \"undefined\" : _typeof(globalThis)) && globalThis) || n(\"object\" == (typeof window === \"undefined\" ? \"undefined\" : _typeof(window)) && window) || n(\"object\" == (typeof self === \"undefined\" ? \"undefined\" : _typeof(self)) && self) || n(\"object\" == _typeof(e) && e) || function () {\n return this;\n }() || Function(\"return this\")();\n }).call(e, n(139));\n }, function (t, e, n) {\n var r = n(0);\n t.exports = !r(function () {\n return 7 != Object.defineProperty({}, 1, {\n get: function get() {\n return 7;\n }\n })[1];\n });\n }, function (t, e, n) {\n var r = n(8),\n i = String,\n o = TypeError;\n\n t.exports = function (t) {\n if (r(t)) return t;\n throw o(i(t) + \" is not an object\");\n };\n }, function (t, e, n) {\n var r = n(1),\n i = n(14),\n o = r({}.hasOwnProperty);\n\n t.exports = Object.hasOwn || function (t, e) {\n return o(i(t), e);\n };\n }, function (t, e, n) {\n var r = n(2),\n i = n(59),\n o = i.all;\n t.exports = i.IS_HTMLDDA ? function (t) {\n return \"object\" == _typeof(t) ? null !== t : r(t) || t === o;\n } : function (t) {\n return \"object\" == _typeof(t) ? null !== t : r(t);\n };\n }, function (t, e, n) {\n var r = n(4),\n i = n(47),\n o = n(7),\n s = n(75),\n u = n(72),\n a = n(76),\n l = i(\"wks\"),\n c = r.Symbol,\n f = c && c.for,\n p = a ? c : c && c.withoutSetter || s;\n\n t.exports = function (t) {\n if (!o(l, t) || !u && \"string\" != typeof l[t]) {\n var e = \"Symbol.\" + t;\n u && o(c, t) ? l[t] = c[t] : l[t] = a && f ? f(e) : p(e);\n }\n\n return l[t];\n };\n }, function (t, e, n) {\n var r = n(123);\n\n t.exports = function (t) {\n return r(t.length);\n };\n }, function (t, e, n) {\n var r = n(2),\n i = n(13),\n o = n(104),\n s = n(33);\n\n t.exports = function (t, e, n, u) {\n u || (u = {});\n var a = u.enumerable,\n l = void 0 !== u.name ? u.name : e;\n if (r(n) && o(n, l, u), u.global) a ? t[e] = n : s(e, n);else {\n try {\n u.unsafe ? t[e] && (a = !0) : delete t[e];\n } catch (t) {}\n\n a ? t[e] = n : i.f(t, e, {\n value: n,\n enumerable: !1,\n configurable: !u.nonConfigurable,\n writable: !u.nonWritable\n });\n }\n return t;\n };\n }, function (t, e, n) {\n var r = n(35),\n i = Function.prototype.call;\n t.exports = r ? i.bind(i) : function () {\n return i.apply(i, arguments);\n };\n }, function (t, e, n) {\n var r = n(5),\n i = n(62),\n o = n(77),\n s = n(6),\n u = n(50),\n a = TypeError,\n l = Object.defineProperty,\n c = Object.getOwnPropertyDescriptor;\n e.f = r ? o ? function (t, e, n) {\n if (s(t), e = u(e), s(n), \"function\" == typeof t && \"prototype\" === e && \"value\" in n && \"writable\" in n && !n.writable) {\n var r = c(t, e);\n r && r.writable && (t[e] = n.value, n = {\n configurable: \"configurable\" in n ? n.configurable : r.configurable,\n enumerable: \"enumerable\" in n ? n.enumerable : r.enumerable,\n writable: !1\n });\n }\n\n return l(t, e, n);\n } : l : function (t, e, n) {\n if (s(t), e = u(e), s(n), i) try {\n return l(t, e, n);\n } catch (t) {}\n if (\"get\" in n || \"set\" in n) throw a(\"Accessors not supported\");\n return \"value\" in n && (t[e] = n.value), t;\n };\n }, function (t, e, n) {\n var r = n(24),\n i = Object;\n\n t.exports = function (t) {\n return i(r(t));\n };\n }, function (t, e, n) {\n var r = n(1),\n i = r({}.toString),\n o = r(\"\".slice);\n\n t.exports = function (t) {\n return o(i(t), 8, -1);\n };\n }, function (t, e, n) {\n var r = n(0),\n i = n(9),\n o = n(23),\n s = i(\"species\");\n\n t.exports = function (t) {\n return o >= 51 || !r(function () {\n var e = [],\n n = e.constructor = {};\n return n[s] = function () {\n return {\n foo: 1\n };\n }, 1 !== e[t](Boolean).foo;\n });\n };\n }, function (t, e, n) {\n var r = n(4),\n i = n(2),\n o = function o(t) {\n return i(t) ? t : void 0;\n };\n\n t.exports = function (t, e) {\n return arguments.length < 2 ? o(r[t]) : r[t] && r[t][e];\n };\n }, function (t, e, n) {\n var r = n(15);\n\n t.exports = Array.isArray || function (t) {\n return \"Array\" == r(t);\n };\n }, function (t, e, n) {\n var r = n(39),\n i = n(24);\n\n t.exports = function (t) {\n return r(i(t));\n };\n }, function (t, e, n) {\n var r = n(29),\n i = String;\n\n t.exports = function (t) {\n if (\"Symbol\" === r(t)) throw TypeError(\"Cannot convert a Symbol value to a string\");\n return i(t);\n };\n }, function (t, e, n) {\n var r = n(100),\n i = n(1),\n o = n(39),\n s = n(14),\n u = n(10),\n a = n(28),\n l = i([].push),\n c = function c(t) {\n var e = 1 == t,\n n = 2 == t,\n i = 3 == t,\n c = 4 == t,\n f = 6 == t,\n p = 7 == t,\n h = 5 == t || f;\n return function (d, v, g, y) {\n for (var b, m, x = s(d), _ = o(x), O = r(v, g), w = u(_), S = 0, E = y || a, k = e ? E(d, w) : n || p ? E(d, 0) : void 0; w > S; S++) {\n if ((h || S in _) && (b = _[S], m = O(b, S, x), t)) if (e) k[S] = m;else if (m) switch (t) {\n case 3:\n return !0;\n\n case 5:\n return b;\n\n case 6:\n return S;\n\n case 2:\n l(k, b);\n } else switch (t) {\n case 4:\n return !1;\n\n case 7:\n l(k, b);\n }\n }\n\n return f ? -1 : i || c ? c : k;\n };\n };\n\n t.exports = {\n forEach: c(0),\n map: c(1),\n filter: c(2),\n some: c(3),\n every: c(4),\n find: c(5),\n findIndex: c(6),\n filterReject: c(7)\n };\n }, function (t, e) {\n var n = TypeError;\n\n t.exports = function (t) {\n if (t > 9007199254740991) throw n(\"Maximum allowed index exceeded\");\n return t;\n };\n }, function (t, e, n) {\n var r,\n i,\n o = n(4),\n s = n(97),\n u = o.process,\n a = o.Deno,\n l = u && u.versions || a && a.version,\n c = l && l.v8;\n c && (r = c.split(\".\"), i = r[0] > 0 && r[0] < 4 ? 1 : +(r[0] + r[1])), !i && s && (!(r = s.match(/Edge\\/(\\d+)/)) || r[1] >= 74) && (r = s.match(/Chrome\\/(\\d+)/)) && (i = +r[1]), t.exports = i;\n }, function (t, e, n) {\n var r = n(40),\n i = TypeError;\n\n t.exports = function (t) {\n if (r(t)) throw i(\"Can't call method on \" + t);\n return t;\n };\n }, function (t, e, n) {\n var r = n(2),\n i = n(74),\n o = TypeError;\n\n t.exports = function (t) {\n if (r(t)) return t;\n throw o(i(t) + \" is not a function\");\n };\n }, function (t, e, n) {\n \"use strict\";\n\n var r = n(0);\n\n t.exports = function (t, e) {\n var n = [][t];\n return !!n && r(function () {\n n.call(null, e || function () {\n return 1;\n }, 1);\n });\n };\n }, function (t, e, n) {\n \"use strict\";\n\n var r = n(5),\n i = n(18),\n o = TypeError,\n s = Object.getOwnPropertyDescriptor,\n u = r && !function () {\n if (void 0 !== this) return !0;\n\n try {\n Object.defineProperty([], \"length\", {\n writable: !1\n }).length = 1;\n } catch (t) {\n return t instanceof TypeError;\n }\n }();\n t.exports = u ? function (t, e) {\n if (i(t) && !s(t, \"length\").writable) throw o(\"Cannot set read only .length\");\n return t.length = e;\n } : function (t, e) {\n return t.length = e;\n };\n }, function (t, e, n) {\n var r = n(94);\n\n t.exports = function (t, e) {\n return new (r(t))(0 === e ? 0 : e);\n };\n }, function (t, e, n) {\n var r = n(51),\n i = n(2),\n o = n(15),\n s = n(9),\n u = s(\"toStringTag\"),\n a = Object,\n l = \"Arguments\" == o(function () {\n return arguments;\n }()),\n c = function c(t, e) {\n try {\n return t[e];\n } catch (t) {}\n };\n\n t.exports = r ? o : function (t) {\n var e, n, r;\n return void 0 === t ? \"Undefined\" : null === t ? \"Null\" : \"string\" == typeof (n = c(e = a(t), u)) ? n : l ? o(e) : \"Object\" == (r = o(e)) && i(e.callee) ? \"Arguments\" : r;\n };\n }, function (t, e, n) {\n var r = n(5),\n i = n(13),\n o = n(31);\n t.exports = r ? function (t, e, n) {\n return i.f(t, e, o(1, n));\n } : function (t, e, n) {\n return t[e] = n, t;\n };\n }, function (t, e) {\n t.exports = function (t, e) {\n return {\n enumerable: !(1 & t),\n configurable: !(2 & t),\n writable: !(4 & t),\n value: e\n };\n };\n }, function (t, e, n) {\n \"use strict\";\n\n var r = n(50),\n i = n(13),\n o = n(31);\n\n t.exports = function (t, e, n) {\n var s = r(e);\n s in t ? i.f(t, s, o(0, n)) : t[s] = n;\n };\n }, function (t, e, n) {\n var r = n(4),\n i = Object.defineProperty;\n\n t.exports = function (t, e) {\n try {\n i(r, t, {\n value: e,\n configurable: !0,\n writable: !0\n });\n } catch (n) {\n r[t] = e;\n }\n\n return e;\n };\n }, function (t, e) {\n t.exports = [\"constructor\", \"hasOwnProperty\", \"isPrototypeOf\", \"propertyIsEnumerable\", \"toLocaleString\", \"toString\", \"valueOf\"];\n }, function (t, e, n) {\n var r = n(0);\n t.exports = !r(function () {\n var t = function () {}.bind();\n\n return \"function\" != typeof t || t.hasOwnProperty(\"prototype\");\n });\n }, function (t, e, n) {\n var r = n(5),\n i = n(7),\n o = Function.prototype,\n s = r && Object.getOwnPropertyDescriptor,\n u = i(o, \"name\"),\n a = u && \"something\" === function () {}.name,\n l = u && (!r || r && s(o, \"name\").configurable);\n\n t.exports = {\n EXISTS: u,\n PROPER: a,\n CONFIGURABLE: l\n };\n }, function (t, e, n) {\n var r = n(15),\n i = n(1);\n\n t.exports = function (t) {\n if (\"Function\" === r(t)) return i(t);\n };\n }, function (t, e) {\n t.exports = {};\n }, function (t, e, n) {\n var r = n(1),\n i = n(0),\n o = n(15),\n s = Object,\n u = r(\"\".split);\n t.exports = i(function () {\n return !s(\"z\").propertyIsEnumerable(0);\n }) ? function (t) {\n return \"String\" == o(t) ? u(t, \"\") : s(t);\n } : s;\n }, function (t, e) {\n t.exports = function (t) {\n return null === t || void 0 === t;\n };\n }, function (t, e, n) {\n var r = n(17),\n i = n(2),\n o = n(44),\n s = n(76),\n u = Object;\n t.exports = s ? function (t) {\n return \"symbol\" == _typeof(t);\n } : function (t) {\n var e = r(\"Symbol\");\n return i(e) && o(e.prototype, u(t));\n };\n }, function (t, e, n) {\n var r,\n i = n(6),\n o = n(107),\n s = n(34),\n u = n(38),\n a = n(101),\n l = n(60),\n c = n(70),\n f = c(\"IE_PROTO\"),\n p = function p() {},\n h = function h(t) {\n return \"\n\n\n \n
\n
\n
\n \n {{ $t('INBOX_MGMT.DELETE.AVATAR_DELETE_BUTTON_TEXT') }}\n \n
\n
\n
\n\n\n\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AvatarUploader.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AvatarUploader.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AvatarUploader.vue?vue&type=template&id=34051874&scoped=true&\"\nimport script from \"./AvatarUploader.vue?vue&type=script&lang=js&\"\nexport * from \"./AvatarUploader.vue?vue&type=script&lang=js&\"\nimport style0 from \"./AvatarUploader.vue?vue&type=style&index=0&id=34051874&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"34051874\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('label',[(_vm.label)?_c('span',[_vm._v(_vm._s(_vm.label))]):_vm._e()]),_vm._v(\" \"),(_vm.src)?_c('woot-thumbnail',{attrs:{\"size\":\"80px\",\"src\":_vm.src,\"username\":_vm.usernameAvatar}}):_vm._e(),_vm._v(\" \"),(_vm.src && _vm.deleteAvatar)?_c('div',{staticClass:\"avatar-delete-btn\"},[_c('woot-button',{attrs:{\"color-scheme\":\"alert\",\"variant\":\"hollow\",\"size\":\"tiny\",\"type\":\"button\"},on:{\"click\":_vm.onAvatarDelete}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('INBOX_MGMT.DELETE.AVATAR_DELETE_BUTTON_TEXT'))+\"\\n \")])],1):_vm._e(),_vm._v(\" \"),_c('label',[_c('input',{ref:\"file\",attrs:{\"id\":\"file\",\"type\":\"file\",\"accept\":\"image/png, image/jpeg, image/jpg, image/gif, image/webp\"},on:{\"change\":_vm.handleImageUpload}}),_vm._v(\" \"),_vm._t(\"default\")],2)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","function dataHandler(newData, oldData) {\n if (oldData) {\n var chart = this.$data._chart;\n var newDatasetLabels = newData.datasets.map(function (dataset) {\n return dataset.label;\n });\n var oldDatasetLabels = oldData.datasets.map(function (dataset) {\n return dataset.label;\n });\n var oldLabels = JSON.stringify(oldDatasetLabels);\n var newLabels = JSON.stringify(newDatasetLabels);\n\n if (newLabels === oldLabels && oldData.datasets.length === newData.datasets.length) {\n newData.datasets.forEach(function (dataset, i) {\n var oldDatasetKeys = Object.keys(oldData.datasets[i]);\n var newDatasetKeys = Object.keys(dataset);\n var deletionKeys = oldDatasetKeys.filter(function (key) {\n return key !== '_meta' && newDatasetKeys.indexOf(key) === -1;\n });\n deletionKeys.forEach(function (deletionKey) {\n delete chart.data.datasets[i][deletionKey];\n });\n\n for (var attribute in dataset) {\n if (dataset.hasOwnProperty(attribute)) {\n chart.data.datasets[i][attribute] = dataset[attribute];\n }\n }\n });\n\n if (newData.hasOwnProperty('labels')) {\n chart.data.labels = newData.labels;\n this.$emit('labels:update');\n }\n\n if (newData.hasOwnProperty('xLabels')) {\n chart.data.xLabels = newData.xLabels;\n this.$emit('xlabels:update');\n }\n\n if (newData.hasOwnProperty('yLabels')) {\n chart.data.yLabels = newData.yLabels;\n this.$emit('ylabels:update');\n }\n\n chart.update();\n this.$emit('chart:update');\n } else {\n if (chart) {\n chart.destroy();\n this.$emit('chart:destroy');\n }\n\n this.renderChart(this.chartData, this.options);\n this.$emit('chart:render');\n }\n } else {\n if (this.$data._chart) {\n this.$data._chart.destroy();\n\n this.$emit('chart:destroy');\n }\n\n this.renderChart(this.chartData, this.options);\n this.$emit('chart:render');\n }\n}\n\nexport var reactiveData = {\n data: function data() {\n return {\n chartData: null\n };\n },\n watch: {\n 'chartData': dataHandler\n }\n};\nexport var reactiveProp = {\n props: {\n chartData: {\n type: Object,\n required: true,\n default: function _default() {}\n }\n },\n watch: {\n 'chartData': dataHandler\n }\n};\nexport default {\n reactiveData: reactiveData,\n reactiveProp: reactiveProp\n};","import Chart from 'chart.js';\nexport function generateChart(chartId, chartType) {\n return {\n render: function render(createElement) {\n return createElement('div', {\n style: this.styles,\n class: this.cssClasses\n }, [createElement('canvas', {\n attrs: {\n id: this.chartId,\n width: this.width,\n height: this.height\n },\n ref: 'canvas'\n })]);\n },\n props: {\n chartId: {\n default: chartId,\n type: String\n },\n width: {\n default: 400,\n type: Number\n },\n height: {\n default: 400,\n type: Number\n },\n cssClasses: {\n type: String,\n default: ''\n },\n styles: {\n type: Object\n },\n plugins: {\n type: Array,\n default: function _default() {\n return [];\n }\n }\n },\n data: function data() {\n return {\n _chart: null,\n _plugins: this.plugins\n };\n },\n methods: {\n addPlugin: function addPlugin(plugin) {\n this.$data._plugins.push(plugin);\n },\n generateLegend: function generateLegend() {\n if (this.$data._chart) {\n return this.$data._chart.generateLegend();\n }\n },\n renderChart: function renderChart(data, options) {\n if (this.$data._chart) this.$data._chart.destroy();\n if (!this.$refs.canvas) throw new Error('Please remove the tags from your chart component. See https://vue-chartjs.org/guide/#vue-single-file-components');\n this.$data._chart = new Chart(this.$refs.canvas.getContext('2d'), {\n type: chartType,\n data: data,\n options: options,\n plugins: this.$data._plugins\n });\n }\n },\n beforeDestroy: function beforeDestroy() {\n if (this.$data._chart) {\n this.$data._chart.destroy();\n }\n }\n };\n}\nexport var Bar = generateChart('bar-chart', 'bar');\nexport var HorizontalBar = generateChart('horizontalbar-chart', 'horizontalBar');\nexport var Doughnut = generateChart('doughnut-chart', 'doughnut');\nexport var Line = generateChart('line-chart', 'line');\nexport var Pie = generateChart('pie-chart', 'pie');\nexport var PolarArea = generateChart('polar-chart', 'polarArea');\nexport var Radar = generateChart('radar-chart', 'radar');\nexport var Bubble = generateChart('bubble-chart', 'bubble');\nexport var Scatter = generateChart('scatter-chart', 'scatter');\nexport default {\n Bar: Bar,\n HorizontalBar: HorizontalBar,\n Doughnut: Doughnut,\n Line: Line,\n Pie: Pie,\n PolarArea: PolarArea,\n Radar: Radar,\n Bubble: Bubble,\n Scatter: Scatter\n};","import { Bar } from 'vue-chartjs';\n\nconst fontFamily =\n 'PlusJakarta,-apple-system,system-ui,BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,sans-serif';\n\nconst defaultChartOptions = {\n responsive: true,\n maintainAspectRatio: false,\n legend: {\n display: false,\n labels: {\n fontFamily,\n },\n },\n animation: {\n duration: 0,\n },\n datasets: {\n bar: {\n barPercentage: 1.0,\n },\n },\n scales: {\n xAxes: [\n {\n ticks: {\n fontFamily,\n },\n gridLines: {\n drawOnChartArea: false,\n },\n },\n ],\n yAxes: [\n {\n ticks: {\n fontFamily,\n beginAtZero: true,\n },\n gridLines: {\n drawOnChartArea: false,\n },\n },\n ],\n },\n};\n\nexport default {\n extends: Bar,\n props: {\n collection: {\n type: Object,\n default: () => ({}),\n },\n chartOptions: {\n type: Object,\n default: () => ({}),\n },\n },\n mounted() {\n this.renderChart(this.collection, {\n ...defaultChartOptions,\n ...this.chartOptions,\n });\n },\n};\n","\n\n\n \n
\n
\n \n \n
\n
\n\n\n\n","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Code.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Code.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Code.vue?vue&type=template&id=4c35f0a8&scoped=true&\"\nimport script from \"./Code.vue?vue&type=script&lang=js&\"\nexport * from \"./Code.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Code.vue?vue&type=style&index=0&id=4c35f0a8&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4c35f0a8\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"code--container\"},[_c('div',{staticClass:\"code--action-area\"},[(_vm.enableCodePen)?_c('form',{staticClass:\"code--codeopen-form\",attrs:{\"action\":\"https://codepen.io/pen/define\",\"method\":\"POST\",\"target\":\"_blank\"}},[_c('input',{attrs:{\"type\":\"hidden\",\"name\":\"data\"},domProps:{\"value\":_vm.codepenScriptValue}}),_vm._v(\" \"),_c('button',{staticClass:\"button secondary tiny\",attrs:{\"type\":\"submit\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('COMPONENTS.CODE.CODEPEN'))+\"\\n \")])]):_vm._e(),_vm._v(\" \"),_c('button',{staticClass:\"button secondary tiny\",on:{\"click\":_vm.onCopy}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('COMPONENTS.CODE.BUTTON_TEXT'))+\"\\n \")])]),_vm._v(\" \"),(_vm.script)?_c('highlightjs',{attrs:{\"language\":_vm.lang,\"code\":_vm.script}}):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ColorPicker.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ColorPicker.vue?vue&type=script&lang=js&\"","\n\n\n \n\n\n\n","import { render, staticRenderFns } from \"./ColorPicker.vue?vue&type=template&id=591429e8&scoped=true&\"\nimport script from \"./ColorPicker.vue?vue&type=script&lang=js&\"\nexport * from \"./ColorPicker.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ColorPicker.vue?vue&type=style&index=0&id=591429e8&prod&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"591429e8\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"colorpicker\"},[_c('div',{staticClass:\"colorpicker--selected\",style:(`background-color: ${_vm.value}`),on:{\"click\":function($event){$event.preventDefault();return _vm.toggleColorPicker.apply(null, arguments)}}}),_vm._v(\" \"),(_vm.isPickerOpen)?_c('Chrome',{directives:[{name:\"on-clickaway\",rawName:\"v-on-clickaway\",value:(_vm.closeTogglePicker),expression:\"closeTogglePicker\"}],staticClass:\"colorpicker--chrome\",attrs:{\"disable-alpha\":\"\",\"value\":_vm.value},on:{\"input\":_vm.updateColor}}):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ConfirmDeleteModal.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ConfirmDeleteModal.vue?vue&type=script&lang=js&\"","\n\n\n\n \n \n \n \n\n","import { render, staticRenderFns } from \"./ConfirmDeleteModal.vue?vue&type=template&id=64ddc178&\"\nimport script from \"./ConfirmDeleteModal.vue?vue&type=script&lang=js&\"\nexport * from \"./ConfirmDeleteModal.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('Modal',{attrs:{\"show\":_vm.show,\"on-close\":_vm.closeModal},on:{\"update:show\":function($event){_vm.show=$event}}},[_c('woot-modal-header',{attrs:{\"header-title\":_vm.title,\"header-content\":_vm.message}}),_vm._v(\" \"),_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.onConfirm.apply(null, arguments)}}},[_c('woot-input',{class:{ error: _vm.v$.value.$error },attrs:{\"type\":\"text\",\"placeholder\":_vm.confirmPlaceHolderText},on:{\"blur\":_vm.v$.value.$touch},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:\"value\"}}),_vm._v(\" \"),_c('div',{staticClass:\"button-wrapper\"},[_c('woot-button',{attrs:{\"color-scheme\":\"alert\",\"is-disabled\":_vm.v$.value.$invalid}},[_vm._v(\"\\n \"+_vm._s(_vm.confirmText)+\"\\n \")]),_vm._v(\" \"),_c('woot-button',{staticClass:\"clear\",on:{\"click\":function($event){$event.preventDefault();return _vm.closeModal.apply(null, arguments)}}},[_vm._v(\"\\n \"+_vm._s(_vm.rejectText)+\"\\n \")])],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ConfirmationModal.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ConfirmationModal.vue?vue&type=script&lang=js&\"","\n\n\n \n \n
\n
\n \n {{ cancelLabel }}\n \n \n {{ confirmLabel }}\n \n
\n
\n \n\n","import { render, staticRenderFns } from \"./ConfirmationModal.vue?vue&type=template&id=04b6acad&\"\nimport script from \"./ConfirmationModal.vue?vue&type=script&lang=js&\"\nexport * from \"./ConfirmationModal.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('Modal',{attrs:{\"show\":_vm.show,\"on-close\":_vm.cancel},on:{\"update:show\":function($event){_vm.show=$event}}},[_c('div',{staticClass:\"h-auto overflow-auto flex flex-col\"},[_c('woot-modal-header',{attrs:{\"header-title\":_vm.title,\"header-content\":_vm.description}}),_vm._v(\" \"),_c('div',{staticClass:\"flex flex-row justify-end gap-2 py-4 px-6 w-full\"},[_c('woot-button',{attrs:{\"variant\":\"clear\"},on:{\"click\":_vm.cancel}},[_vm._v(\"\\n \"+_vm._s(_vm.cancelLabel)+\"\\n \")]),_vm._v(\" \"),_c('woot-button',{on:{\"click\":_vm.confirm}},[_vm._v(\"\\n \"+_vm._s(_vm.confirmLabel)+\"\\n \")])],1)],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ContextMenu.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ContextMenu.vue?vue&type=script&lang=js&\"","\n\n\n \n \n
\n\n","import { render, staticRenderFns } from \"./ContextMenu.vue?vue&type=template&id=a91f5f48&\"\nimport script from \"./ContextMenu.vue?vue&type=script&lang=js&\"\nexport * from \"./ContextMenu.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"fixed outline-none z-[9999] cursor-pointer\",style:(_vm.style),attrs:{\"tabindex\":\"0\"},on:{\"blur\":function($event){return _vm.$emit('close')}}},[_vm._t(\"default\")],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DeleteModal.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DeleteModal.vue?vue&type=script&lang=js&\"","\n\n\n\n \n \n \n \n {{ rejectText }}\n \n \n {{ confirmText }}\n \n
\n \n\n\n\n","import { render, staticRenderFns } from \"./DeleteModal.vue?vue&type=template&id=64432c4a&scoped=true&\"\nimport script from \"./DeleteModal.vue?vue&type=script&lang=js&\"\nexport * from \"./DeleteModal.vue?vue&type=script&lang=js&\"\nimport style0 from \"./DeleteModal.vue?vue&type=style&index=0&id=64432c4a&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"64432c4a\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('Modal',{attrs:{\"show\":_vm.show,\"on-close\":_vm.onClose},on:{\"update:show\":function($event){_vm.show=$event}}},[_c('woot-modal-header',{attrs:{\"header-title\":_vm.title,\"header-content\":_vm.message,\"header-content-value\":_vm.messageValue}}),_vm._v(\" \"),_c('div',{staticClass:\"flex items-center justify-end gap-2 p-8\"},[_c('woot-button',{staticClass:\"action-button\",attrs:{\"variant\":\"clear\"},on:{\"click\":_vm.onClose}},[_vm._v(\"\\n \"+_vm._s(_vm.rejectText)+\"\\n \")]),_vm._v(\" \"),_c('woot-button',{staticClass:\"action-button\",attrs:{\"color-scheme\":\"alert\",\"variant\":\"smooth\"},on:{\"click\":_vm.onConfirm}},[_vm._v(\"\\n \"+_vm._s(_vm.confirmText)+\"\\n \")])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n \n \n
\n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FeatureToggle.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FeatureToggle.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./FeatureToggle.vue?vue&type=template&id=bd117d56&\"\nimport script from \"./FeatureToggle.vue?vue&type=script&lang=js&\"\nexport * from \"./FeatureToggle.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.isFeatureEnabled)?_c('div',[_vm._t(\"default\")],2):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { HorizontalBar } from 'vue-chartjs';\n\nconst chartOptions = {\n responsive: true,\n legend: {\n display: false,\n },\n title: {\n display: false,\n },\n tooltips: {\n enabled: false,\n },\n scales: {\n xAxes: [\n {\n gridLines: {\n offsetGridLines: false,\n },\n display: false,\n stacked: true,\n },\n ],\n yAxes: [\n {\n gridLines: {\n offsetGridLines: false,\n },\n display: false,\n stacked: true,\n },\n ],\n },\n};\n\nexport default {\n extends: HorizontalBar,\n props: {\n collection: {\n type: Object,\n default: () => {},\n },\n chartOptions: {\n type: Object,\n default: () => {},\n },\n },\n watch: {\n collection() {\n this.renderChart(this.collection, {\n ...chartOptions,\n ...this.chartOptions,\n });\n },\n },\n mounted() {\n this.renderChart(this.collection, {\n ...chartOptions,\n ...this.chartOptions,\n });\n },\n};\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Input.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Input.vue?vue&type=script&lang=js&\"","\n\n\n \n\n\n\n","import { render, staticRenderFns } from \"./Input.vue?vue&type=template&id=5fab647e&scoped=true&\"\nimport script from \"./Input.vue?vue&type=script&lang=js&\"\nexport * from \"./Input.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Input.vue?vue&type=style&index=0&id=5fab647e&prod&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5fab647e\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('label',{staticClass:\"input-container\"},[(_vm.label)?_c('span',[_vm._v(_vm._s(_vm.label))]):_vm._e(),_vm._v(\" \"),_c('input',{staticClass:\"bg-white dark:bg-slate-900 text-slate-900 dark:text-slate-100 border-slate-200 dark:border-slate-600\",style:(_vm.styles),attrs:{\"type\":_vm.type,\"placeholder\":_vm.placeholder,\"readonly\":_vm.readonly},domProps:{\"value\":_vm.value},on:{\"input\":_vm.onChange,\"blur\":_vm.onBlur}}),_vm._v(\" \"),(_vm.helpText)?_c('p',{staticClass:\"help-text\"},[_vm._v(_vm._s(_vm.helpText))]):_vm._e(),_vm._v(\" \"),(_vm.error)?_c('span',{staticClass:\"message\"},[_vm._v(\"\\n \"+_vm._s(_vm.error)+\"\\n \")]):_vm._e(),_vm._v(\" \"),_vm._t(\"masked\")],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n \n
\n
\n
\n {{ activeCountry.emoji }}\n
\n \n \n \n
\n {{ activeDialCode }}\n \n
\n
\n
\n
\n \n
\n
\n {{ country.emoji }}\n\n \n {{ country.name }}\n \n {{\n country.dial_code\n }}\n
\n
\n \n {{ $t('GENERAL.PHONE_INPUT.EMPTY_STATE') }}\n \n
\n
\n
\n\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PhoneInput.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PhoneInput.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PhoneInput.vue?vue&type=template&id=2feeb848&\"\nimport script from \"./PhoneInput.vue?vue&type=script&lang=js&\"\nexport * from \"./PhoneInput.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"relative phone-input--wrap\"},[_c('div',{staticClass:\"flex items-center justify-start border border-solid rounded-md dark:bg-slate-900\",class:_vm.error\n ? 'border border-solid border-red-400 dark:border-red-400 mb-1'\n : 'mb-4 border-slate-200 dark:border-slate-600'},[_c('div',{staticClass:\"cursor-pointer py-2 pr-1.5 pl-2 rounded-tl-md rounded-bl-md flex items-center justify-center gap-1.5 bg-slate-25 dark:bg-slate-700 h-10 w-14\",on:{\"click\":function($event){$event.preventDefault();return _vm.toggleCountryDropdown.apply(null, arguments)}}},[(_vm.activeCountry)?_c('h5',{staticClass:\"mb-0\"},[_vm._v(\"\\n \"+_vm._s(_vm.activeCountry.emoji)+\"\\n \")]):_c('fluent-icon',{staticClass:\"fluent-icon\",attrs:{\"icon\":\"globe\",\"size\":\"16\"}}),_vm._v(\" \"),_c('fluent-icon',{staticClass:\"fluent-icon\",attrs:{\"icon\":\"chevron-down\",\"size\":\"12\"}})],1),_vm._v(\" \"),(_vm.activeDialCode)?_c('span',{staticClass:\"flex py-2 pl-2 pr-0 text-base font-normal leading-normal bg-white dark:bg-slate-900 text-slate-800 dark:text-slate-100\"},[_vm._v(\"\\n \"+_vm._s(_vm.activeDialCode)+\"\\n \")]):_vm._e(),_vm._v(\" \"),_c('input',{ref:\"phoneNumberInput\",staticClass:\"!mb-0 !rounded-tl-none !rounded-bl-none !border-0 font-normal !w-full dark:!bg-slate-900 text-base !px-1.5 placeholder:font-normal\",style:(_vm.styles),attrs:{\"type\":\"tel\",\"placeholder\":_vm.placeholder,\"readonly\":_vm.readonly},domProps:{\"value\":_vm.phoneNumber},on:{\"input\":_vm.onChange,\"blur\":_vm.onBlur}})]),_vm._v(\" \"),(_vm.showDropdown)?_c('div',{directives:[{name:\"on-clickaway\",rawName:\"v-on-clickaway\",value:(_vm.onOutsideClick),expression:\"onOutsideClick\"}],ref:\"dropdown\",staticClass:\"z-10 absolute h-60 w-[12.5rem] shadow-md overflow-y-auto top-10 rounded px-0 pt-0 pb-1 bg-white dark:bg-slate-900\",attrs:{\"tabindex\":\"0\"},on:{\"keydown\":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"up\",38,$event.key,[\"Up\",\"ArrowUp\"]))return null;$event.preventDefault();return _vm.moveUp.apply(null, arguments)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"down\",40,$event.key,[\"Down\",\"ArrowDown\"]))return null;$event.preventDefault();return _vm.moveDown.apply(null, arguments)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;$event.preventDefault();return _vm.onSelectCountry(_vm.filteredCountriesBySearch[_vm.selectedIndex])}]}},[_c('div',{staticClass:\"sticky top-0 p-1 bg-white dark:bg-slate-900\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.searchCountry),expression:\"searchCountry\"}],ref:\"searchbar\",staticClass:\"!h-8 !mb-0 !text-sm !border !border-solid !border-slate-2000 dark:!border-slate-6000\",attrs:{\"type\":\"text\",\"placeholder\":_vm.$t('GENERAL.PHONE_INPUT.PLACEHOLDER')},domProps:{\"value\":(_vm.searchCountry)},on:{\"input\":[function($event){if($event.target.composing)return;_vm.searchCountry=$event.target.value},_vm.onSearchCountry]}})]),_vm._v(\" \"),_vm._l((_vm.filteredCountriesBySearch),function(country,index){return _c('div',{key:index,ref:\"dropdownItem\",refInFor:true,staticClass:\"flex items-center px-1 py-0 cursor-pointer h-7 hover:bg-slate-50 dark:hover:bg-slate-700\",class:{\n 'bg-slate-50 dark:bg-slate-700': country.id === _vm.activeCountryCode,\n 'bg-slate-25 dark:bg-slate-800': index === _vm.selectedIndex,\n },on:{\"click\":function($event){return _vm.onSelectCountry(country)}}},[_c('span',{staticClass:\"mr-1 text-base\"},[_vm._v(_vm._s(country.emoji))]),_vm._v(\" \"),_c('span',{staticClass:\"max-w-[7.5rem] overflow-hidden text-ellipsis whitespace-nowrap\"},[_vm._v(\"\\n \"+_vm._s(country.name)+\"\\n \")]),_vm._v(\" \"),_c('span',{staticClass:\"ml-1 text-xs text-slate-300 dark:text-slate-300\"},[_vm._v(_vm._s(country.dial_code))])])}),_vm._v(\" \"),(_vm.filteredCountriesBySearch.length === 0)?_c('div',[_c('span',{staticClass:\"flex items-center justify-center mt-4 text-sm text-slate-500 dark:text-slate-300\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('GENERAL.PHONE_INPUT.EMPTY_STATE'))+\"\\n \")])]):_vm._e()],2):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Label.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Label.vue?vue&type=script&lang=js&\"","\n\n\n \n
\n \n \n
\n
\n {{ title }}\n \n
{{ title }}\n
\n
\n\n\n\n","import { render, staticRenderFns } from \"./Label.vue?vue&type=template&id=dd7658cc&scoped=true&\"\nimport script from \"./Label.vue?vue&type=script&lang=js&\"\nexport * from \"./Label.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Label.vue?vue&type=style&index=0&id=dd7658cc&prod&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"dd7658cc\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"inline-flex ltr:mr-1 rtl:ml-1 mb-1\",class:_vm.labelClass,style:(_vm.labelStyle),attrs:{\"title\":_vm.description}},[(_vm.icon)?_c('span',{staticClass:\"label-action--button\"},[_c('fluent-icon',{staticClass:\"label--icon cursor-pointer\",attrs:{\"icon\":_vm.icon,\"size\":\"12\"}})],1):_vm._e(),_vm._v(\" \"),(['smooth', 'dashed'].includes(_vm.variant) && _vm.title && !_vm.icon)?_c('span',{staticClass:\"label-color-dot flex-shrink-0\",style:({ background: _vm.color })}):_vm._e(),_vm._v(\" \"),(!_vm.href)?_c('span',{staticClass:\"whitespace-nowrap text-ellipsis overflow-hidden\"},[_vm._v(\"\\n \"+_vm._s(_vm.title)+\"\\n \")]):_c('a',{style:(_vm.anchorStyle),attrs:{\"href\":_vm.href}},[_vm._v(_vm._s(_vm.title))]),_vm._v(\" \"),(_vm.showClose)?_c('button',{staticClass:\"label-close--button p-0\",style:({ color: _vm.textColor }),on:{\"click\":_vm.onClick}},[_c('fluent-icon',{staticClass:\"close--icon\",attrs:{\"icon\":\"dismiss\",\"size\":\"12\"}})],1):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ModalHeader.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ModalHeader.vue?vue&type=script&lang=js&\"","\n\n\n\n\n \n
![\"No]()
\n
\n {{ headerTitle }}\n
\n
\n {{ headerContent }}\n \n {{ headerContentValue }}\n \n
\n
\n
\n\n","import { render, staticRenderFns } from \"./ModalHeader.vue?vue&type=template&id=563a8db9&\"\nimport script from \"./ModalHeader.vue?vue&type=script&lang=js&\"\nexport * from \"./ModalHeader.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"flex flex-col items-start px-8 pt-8 pb-0\"},[(_vm.headerImage)?_c('img',{attrs:{\"src\":_vm.headerImage,\"alt\":\"No image\"}}):_vm._e(),_vm._v(\" \"),_c('h2',{ref:\"modalHeaderTitle\",staticClass:\"text-base font-semibold leading-6 text-slate-800 dark:text-slate-50\"},[_vm._v(\"\\n \"+_vm._s(_vm.headerTitle)+\"\\n \")]),_vm._v(\" \"),(_vm.headerContent)?_c('p',{ref:\"modalHeaderContent\",staticClass:\"w-full mt-2 text-sm leading-5 break-words text-slate-600 dark:text-slate-300\"},[_vm._v(\"\\n \"+_vm._s(_vm.headerContent)+\"\\n \"),(_vm.headerContentValue)?_c('span',{staticClass:\"text-sm font-semibold text-slate-600 dark:text-slate-300\"},[_vm._v(\"\\n \"+_vm._s(_vm.headerContentValue)+\"\\n \")]):_vm._e()]):_vm._e(),_vm._v(\" \"),_vm._t(\"default\")],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SidemenuIcon.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SidemenuIcon.vue?vue&type=script&lang=js&\"","\n\n\n \n\n","import { render, staticRenderFns } from \"./SidemenuIcon.vue?vue&type=template&id=6f517fa0&\"\nimport script from \"./SidemenuIcon.vue?vue&type=script&lang=js&\"\nexport * from \"./SidemenuIcon.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('woot-button',{staticClass:\"-ml-3 text-black-900 dark:text-slate-300\",attrs:{\"size\":_vm.size,\"variant\":\"clear\",\"color-scheme\":\"secondary\",\"icon\":\"list\"},on:{\"click\":_vm.onMenuItemClick}})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default {\n name: 'WootTabs',\n props: {\n index: {\n type: Number,\n default: 0,\n },\n border: {\n type: Boolean,\n default: true,\n },\n },\n data() {\n return { hasScroll: false };\n },\n created() {\n window.addEventListener('resize', this.computeScrollWidth);\n },\n beforeDestroy() {\n window.removeEventListener('resize', this.computeScrollWidth);\n },\n mounted() {\n this.computeScrollWidth();\n },\n methods: {\n computeScrollWidth() {\n const tabElement = this.$el.getElementsByClassName('tabs')[0];\n this.hasScroll = tabElement.scrollWidth > tabElement.clientWidth;\n },\n onScrollClick(direction) {\n const tabElement = this.$el.getElementsByClassName('tabs')[0];\n let scrollPosition = tabElement.scrollLeft;\n if (direction === 'left') {\n scrollPosition -= 100;\n } else {\n scrollPosition += 100;\n }\n tabElement.scrollTo({\n top: 0,\n left: scrollPosition,\n behavior: 'smooth',\n });\n },\n createScrollButton(createElement, direction) {\n if (!this.hasScroll) {\n return false;\n }\n return createElement(\n 'button',\n {\n class: 'tabs--scroll-button button clear secondary button--only-icon',\n on: { click: () => this.onScrollClick(direction) },\n },\n [\n createElement('fluent-icon', {\n props: { icon: `chevron-${direction}`, size: 16 },\n }),\n ]\n );\n },\n },\n render(createElement) {\n const Tabs = this.$slots.default\n .filter(\n node =>\n node.componentOptions &&\n node.componentOptions.tag === 'woot-tabs-item'\n )\n .map((node, index) => {\n const data = node.componentOptions.propsData;\n data.index = index;\n return node;\n });\n const leftButton = this.createScrollButton(createElement, 'left');\n const rightButton = this.createScrollButton(createElement, 'right');\n return (\n \n {leftButton}\n
\n {rightButton}\n
\n );\n },\n};\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TabsItem.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TabsItem.vue?vue&type=script&lang=js&\"","\n\n\n \n \n {{ name }}\n \n \n {{ getItemCount }}\n \n
\n \n \n\n","import { render, staticRenderFns } from \"./TabsItem.vue?vue&type=template&id=384b5454&\"\nimport script from \"./TabsItem.vue?vue&type=script&lang=js&\"\nexport * from \"./TabsItem.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('li',{staticClass:\"tabs-title\",class:{\n 'is-active': _vm.active,\n }},[_c('a',{on:{\"click\":_vm.onTabClick}},[_vm._v(\"\\n \"+_vm._s(_vm.name)+\"\\n \"),(_vm.showBadge)?_c('div',{staticClass:\"badge min-w-[20px]\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.getItemCount)+\"\\n \")])]):_vm._e()])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name eachDayOfInterval\n * @category Interval Helpers\n * @summary Return the array of dates within the specified time interval.\n *\n * @description\n * Return the array of dates within the specified time interval.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * - The function was renamed from `eachDay` to `eachDayOfInterval`.\n * This change was made to mirror the use of the word \"interval\" in standard ISO 8601:2004 terminology:\n *\n * ```\n * 2.1.3\n * time interval\n * part of the time axis limited by two instants\n * ```\n *\n * Also, this function now accepts an object with `start` and `end` properties\n * instead of two arguments as an interval.\n * This function now throws `RangeError` if the start of the interval is after its end\n * or if any date in the interval is `Invalid Date`.\n *\n * ```javascript\n * // Before v2.0.0\n *\n * eachDay(new Date(2014, 0, 10), new Date(2014, 0, 20))\n *\n * // v2.0.0 onward\n *\n * eachDayOfInterval(\n * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }\n * )\n * ```\n *\n * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval}\n * @param {Object} [options] - an object with options.\n * @param {Number} [options.step=1] - the step to increment by. The value should be more than 1.\n * @returns {Date[]} the array with starts of days from the day of the interval start to the day of the interval end\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `options.step` must be a number greater than 1\n * @throws {RangeError} The start of an interval cannot be after its end\n * @throws {RangeError} Date in interval cannot be `Invalid Date`\n *\n * @example\n * // Each day between 6 October 2014 and 10 October 2014:\n * const result = eachDayOfInterval({\n * start: new Date(2014, 9, 6),\n * end: new Date(2014, 9, 10)\n * })\n * //=> [\n * // Mon Oct 06 2014 00:00:00,\n * // Tue Oct 07 2014 00:00:00,\n * // Wed Oct 08 2014 00:00:00,\n * // Thu Oct 09 2014 00:00:00,\n * // Fri Oct 10 2014 00:00:00\n * // ]\n */\n\nexport default function eachDayOfInterval(dirtyInterval, options) {\n requiredArgs(1, arguments);\n var interval = dirtyInterval || {};\n var startDate = toDate(interval.start);\n var endDate = toDate(interval.end);\n var endTime = endDate.getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date`\n\n if (!(startDate.getTime() <= endTime)) {\n throw new RangeError('Invalid interval');\n }\n\n var dates = [];\n var currentDate = startDate;\n currentDate.setHours(0, 0, 0, 0);\n var step = options && 'step' in options ? Number(options.step) : 1;\n if (step < 1 || isNaN(step)) throw new RangeError('`options.step` must be a number greater than 1');\n\n while (currentDate.getTime() <= endTime) {\n dates.push(toDate(currentDate));\n currentDate.setDate(currentDate.getDate() + step);\n currentDate.setHours(0, 0, 0, 0);\n }\n\n return dates;\n}","import toInteger from \"../_lib/toInteger/index.js\";\nimport addMonths from \"../addMonths/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name subMonths\n * @category Month Helpers\n * @summary Subtract the specified number of months from the given date.\n *\n * @description\n * Subtract the specified number of months from the given date.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of months to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the months subtracted\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Subtract 5 months from 1 February 2015:\n * const result = subMonths(new Date(2015, 1, 1), 5)\n * //=> Mon Sep 01 2014 00:00:00\n */\n\nexport default function subMonths(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var amount = toInteger(dirtyAmount);\n return addMonths(dirtyDate, -amount);\n}","import toInteger from \"../_lib/toInteger/index.js\";\nimport addMonths from \"../addMonths/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name addYears\n * @category Year Helpers\n * @summary Add the specified number of years to the given date.\n *\n * @description\n * Add the specified number of years to the given date.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of years to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the years added\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Add 5 years to 1 September 2014:\n * const result = addYears(new Date(2014, 8, 1), 5)\n * //=> Sun Sep 01 2019 00:00:00\n */\n\nexport default function addYears(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var amount = toInteger(dirtyAmount);\n return addMonths(dirtyDate, amount * 12);\n}","import toInteger from \"../_lib/toInteger/index.js\";\nimport addYears from \"../addYears/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name subYears\n * @category Year Helpers\n * @summary Subtract the specified number of years from the given date.\n *\n * @description\n * Subtract the specified number of years from the given date.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of years to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the years subtracted\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Subtract 5 years from 1 September 2014:\n * const result = subYears(new Date(2014, 8, 1), 5)\n * //=> Tue Sep 01 2009 00:00:00\n */\n\nexport default function subYears(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var amount = toInteger(dirtyAmount);\n return addYears(dirtyDate, -amount);\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isSameMonth\n * @category Month Helpers\n * @summary Are the given dates in the same month?\n *\n * @description\n * Are the given dates in the same month?\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} dateLeft - the first date to check\n * @param {Date|Number} dateRight - the second date to check\n * @returns {Boolean} the dates are in the same month\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Are 2 September 2014 and 25 September 2014 in the same month?\n * var result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25))\n * //=> true\n */\n\nexport default function isSameMonth(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeft = toDate(dirtyDateLeft);\n var dateRight = toDate(dirtyDateRight);\n return dateLeft.getFullYear() === dateRight.getFullYear() && dateLeft.getMonth() === dateRight.getMonth();\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isWithinInterval\n * @category Interval Helpers\n * @summary Is the given date within the interval?\n *\n * @description\n * Is the given date within the interval? (Including start and end.)\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * - The function was renamed from `isWithinRange` to `isWithinInterval`.\n * This change was made to mirror the use of the word \"interval\" in standard ISO 8601:2004 terminology:\n *\n * ```\n * 2.1.3\n * time interval\n * part of the time axis limited by two instants\n * ```\n *\n * Also, this function now accepts an object with `start` and `end` properties\n * instead of two arguments as an interval.\n * This function now throws `RangeError` if the start of the interval is after its end\n * or if any date in the interval is `Invalid Date`.\n *\n * ```javascript\n * // Before v2.0.0\n *\n * isWithinRange(\n * new Date(2014, 0, 3),\n * new Date(2014, 0, 1), new Date(2014, 0, 7)\n * )\n *\n * // v2.0.0 onward\n *\n * isWithinInterval(\n * new Date(2014, 0, 3),\n * { start: new Date(2014, 0, 1), end: new Date(2014, 0, 7) }\n * )\n * ```\n *\n * @param {Date|Number} date - the date to check\n * @param {Interval} interval - the interval to check\n * @returns {Boolean} the date is within the interval\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} The start of an interval cannot be after its end\n * @throws {RangeError} Date in interval cannot be `Invalid Date`\n *\n * @example\n * // For the date within the interval:\n * isWithinInterval(new Date(2014, 0, 3), {\n * start: new Date(2014, 0, 1),\n * end: new Date(2014, 0, 7)\n * })\n * //=> true\n *\n * @example\n * // For the date outside of the interval:\n * isWithinInterval(new Date(2014, 0, 10), {\n * start: new Date(2014, 0, 1),\n * end: new Date(2014, 0, 7)\n * })\n * //=> false\n *\n * @example\n * // For date equal to interval start:\n * isWithinInterval(date, { start, end: date }) // => true\n *\n * @example\n * // For date equal to interval end:\n * isWithinInterval(date, { start: date, end }) // => true\n */\n\nexport default function isWithinInterval(dirtyDate, interval) {\n requiredArgs(2, arguments);\n var time = toDate(dirtyDate).getTime();\n var startTime = toDate(interval.start).getTime();\n var endTime = toDate(interval.end).getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date`\n\n if (!(startTime <= endTime)) {\n throw new RangeError('Invalid interval');\n }\n\n return time >= startTime && time <= endTime;\n}","import {\n startOfDay,\n subDays,\n endOfDay,\n subMonths,\n addMonths,\n subYears,\n addYears,\n startOfMonth,\n isSameMonth,\n format,\n startOfWeek,\n addDays,\n eachDayOfInterval,\n endOfMonth,\n isSameDay,\n isWithinInterval,\n} from 'date-fns';\n\n// Constants for calendar and date ranges\nexport const calendarWeeks = [\n { id: 1, label: 'M' },\n { id: 2, label: 'T' },\n { id: 3, label: 'W' },\n { id: 4, label: 'T' },\n { id: 5, label: 'F' },\n { id: 6, label: 'S' },\n { id: 7, label: 'S' },\n];\n\nexport const dateRanges = [\n { label: 'DATE_PICKER.DATE_RANGE_OPTIONS.LAST_7_DAYS', value: 'last7days' },\n { label: 'DATE_PICKER.DATE_RANGE_OPTIONS.LAST_30_DAYS', value: 'last30days' },\n {\n label: 'DATE_PICKER.DATE_RANGE_OPTIONS.LAST_3_MONTHS',\n value: 'last3months',\n },\n {\n label: 'DATE_PICKER.DATE_RANGE_OPTIONS.LAST_6_MONTHS',\n value: 'last6months',\n },\n { label: 'DATE_PICKER.DATE_RANGE_OPTIONS.LAST_YEAR', value: 'lastYear' },\n { label: 'DATE_PICKER.DATE_RANGE_OPTIONS.CUSTOM_RANGE', value: 'custom' },\n];\n\nexport const DATE_RANGE_TYPES = {\n LAST_7_DAYS: 'last7days',\n LAST_30_DAYS: 'last30days',\n LAST_3_MONTHS: 'last3months',\n LAST_6_MONTHS: 'last6months',\n LAST_YEAR: 'lastYear',\n CUSTOM_RANGE: 'custom',\n};\n\nexport const CALENDAR_TYPES = {\n START_CALENDAR: 'start',\n END_CALENDAR: 'end',\n};\n\nexport const CALENDAR_PERIODS = {\n WEEK: 'week',\n MONTH: 'month',\n YEAR: 'year',\n};\n\n// Utility functions for date operations\nexport const monthName = currentDate => format(currentDate, 'MMMM');\nexport const yearName = currentDate => format(currentDate, 'yyyy');\n\nexport const getIntlDateFormatForLocale = () => {\n const year = 2222;\n const month = 12;\n const day = 15;\n const date = new Date(year, month - 1, day);\n const formattedDate = new Intl.DateTimeFormat(navigator.language).format(\n date\n );\n return formattedDate\n .replace(`${year}`, 'yyyy')\n .replace(`${month}`, 'MM')\n .replace(`${day}`, 'dd');\n};\n\n// Utility functions for calendar operations\nexport const chunk = (array, size) =>\n Array.from({ length: Math.ceil(array.length / size) }, (_, index) =>\n array.slice(index * size, index * size + size)\n );\n\nexport const getWeeksForMonth = (date, weekStartsOn = 1) => {\n const startOfTheMonth = startOfMonth(date);\n const startOfTheFirstWeek = startOfWeek(startOfTheMonth, { weekStartsOn });\n const endOfTheLastWeek = addDays(startOfTheFirstWeek, 41); // Covering six weeks to fill the calendar\n return chunk(\n eachDayOfInterval({ start: startOfTheFirstWeek, end: endOfTheLastWeek }),\n 7\n );\n};\n\nexport const moveCalendarDate = (\n calendar,\n startCurrentDate,\n endCurrentDate,\n direction,\n period\n) => {\n const adjustFunctions = {\n month: { prev: subMonths, next: addMonths },\n year: { prev: subYears, next: addYears },\n };\n\n const adjust = adjustFunctions[period][direction];\n\n if (calendar === 'start') {\n const newStart = adjust(startCurrentDate, 1);\n return { start: newStart, end: endCurrentDate };\n }\n const newEnd = adjust(endCurrentDate, 1);\n return { start: startCurrentDate, end: newEnd };\n};\n\n// Date comparison functions\nexport const isToday = (currentDate, date) =>\n date.getDate() === currentDate.getDate() &&\n date.getMonth() === currentDate.getMonth() &&\n date.getFullYear() === currentDate.getFullYear();\n\nexport const isCurrentMonth = (day, referenceDate) =>\n isSameMonth(day, referenceDate);\n\nexport const isLastDayOfMonth = day => {\n const lastDay = endOfMonth(day);\n return day.getDate() === lastDay.getDate();\n};\n\nexport const dayIsInRange = (date, startDate, endDate) => {\n if (!startDate || !endDate) {\n return false;\n }\n // Normalize dates to ignore time differences\n let startOfDayStart = startOfDay(startDate);\n let startOfDayEnd = startOfDay(endDate);\n // Swap if start is greater than end\n if (startOfDayStart > startOfDayEnd) {\n [startOfDayStart, startOfDayEnd] = [startOfDayEnd, startOfDayStart];\n }\n // Check if the date is within the interval or is the same as the start date\n return (\n isSameDay(date, startOfDayStart) ||\n isWithinInterval(date, {\n start: startOfDayStart,\n end: startOfDayEnd,\n })\n );\n};\n\n// Handling hovering states in date range pickers\nexport const isHoveringDayInRange = (\n day,\n startDate,\n endDate,\n hoveredEndDate\n) => {\n if (endDate && hoveredEndDate && startDate <= hoveredEndDate) {\n // Ensure the start date is not after the hovered end date\n return isWithinInterval(day, { start: startDate, end: hoveredEndDate });\n }\n return false;\n};\n\nexport const isHoveringNextDayInRange = (\n day,\n startDate,\n endDate,\n hoveredEndDate\n) => {\n if (startDate && !endDate && hoveredEndDate) {\n // If a start date is selected, and we're hovering (but haven't clicked an end date yet)\n const nextDay = addDays(day, 1);\n return isWithinInterval(nextDay, { start: startDate, end: hoveredEndDate });\n }\n if (startDate && endDate) {\n // Normal range checking between selected start and end dates\n const nextDay = addDays(day, 1);\n return isWithinInterval(nextDay, { start: startDate, end: endDate });\n }\n return false;\n};\n\n// Helper func to determine active date ranges based on user selection\nexport const getActiveDateRange = (range, currentDate) => {\n const ranges = {\n last7days: () => ({\n start: startOfDay(subDays(currentDate, 6)),\n end: endOfDay(currentDate),\n }),\n last30days: () => ({\n start: startOfDay(subDays(currentDate, 29)),\n end: endOfDay(currentDate),\n }),\n last3months: () => ({\n start: startOfDay(subMonths(currentDate, 3)),\n end: endOfDay(currentDate),\n }),\n last6months: () => ({\n start: startOfDay(subMonths(currentDate, 6)),\n end: endOfDay(currentDate),\n }),\n lastYear: () => ({\n start: startOfDay(subMonths(currentDate, 12)),\n end: endOfDay(currentDate),\n }),\n custom: () => ({ start: currentDate, end: currentDate }),\n };\n\n return (\n ranges[range] || (() => ({ start: currentDate, end: currentDate }))\n )();\n};\n","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isAfter\n * @category Common Helpers\n * @summary Is the first date after the second one?\n *\n * @description\n * Is the first date after the second one?\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the date that should be after the other one to return true\n * @param {Date|Number} dateToCompare - the date to compare with\n * @returns {Boolean} the first date is after the second date\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Is 10 July 1989 after 11 February 1987?\n * var result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))\n * //=> true\n */\n\nexport default function isAfter(dirtyDate, dirtyDateToCompare) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var dateToCompare = toDate(dirtyDateToCompare);\n return date.getTime() > dateToCompare.getTime();\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isBefore\n * @category Common Helpers\n * @summary Is the first date before the second one?\n *\n * @description\n * Is the first date before the second one?\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the date that should be before the other one to return true\n * @param {Date|Number} dateToCompare - the date to compare with\n * @returns {Boolean} the first date is before the second date\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Is 10 July 1989 before 11 February 1987?\n * var result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))\n * //=> false\n */\n\nexport default function isBefore(dirtyDate, dirtyDateToCompare) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var dateToCompare = toDate(dirtyDateToCompare);\n return date.getTime() < dateToCompare.getTime();\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name getDaysInMonth\n * @category Month Helpers\n * @summary Get the number of days in a month of the given date.\n *\n * @description\n * Get the number of days in a month of the given date.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the given date\n * @returns {Number} the number of days in a month\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // How many days are in February 2000?\n * const result = getDaysInMonth(new Date(2000, 1))\n * //=> 29\n */\n\nexport default function getDaysInMonth(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var year = date.getFullYear();\n var monthIndex = date.getMonth();\n var lastDayOfMonth = new Date(0);\n lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);\n lastDayOfMonth.setHours(0, 0, 0, 0);\n return lastDayOfMonth.getDate();\n}","import toInteger from \"../_lib/toInteger/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport getDaysInMonth from \"../getDaysInMonth/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name setMonth\n * @category Month Helpers\n * @summary Set the month to the given date.\n *\n * @description\n * Set the month to the given date.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} month - the month of the new date\n * @returns {Date} the new date with the month set\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Set February to 1 September 2014:\n * const result = setMonth(new Date(2014, 8, 1), 1)\n * //=> Sat Feb 01 2014 00:00:00\n */\n\nexport default function setMonth(dirtyDate, dirtyMonth) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var month = toInteger(dirtyMonth);\n var year = date.getFullYear();\n var day = date.getDate();\n var dateWithDesiredMonth = new Date(0);\n dateWithDesiredMonth.setFullYear(year, month, 15);\n dateWithDesiredMonth.setHours(0, 0, 0, 0);\n var daysInMonth = getDaysInMonth(dateWithDesiredMonth); // Set the last day of the new month\n // if the original date was the last day of the longer month\n\n date.setMonth(month, Math.min(day, daysInMonth));\n return date;\n}","import toInteger from \"../_lib/toInteger/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name setYear\n * @category Year Helpers\n * @summary Set the year to the given date.\n *\n * @description\n * Set the year to the given date.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} year - the year of the new date\n * @returns {Date} the new date with the year set\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Set year 2013 to 1 September 2014:\n * const result = setYear(new Date(2014, 8, 1), 2013)\n * //=> Sun Sep 01 2013 00:00:00\n */\n\nexport default function setYear(dirtyDate, dirtyYear) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var year = toInteger(dirtyYear); // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date\n\n if (isNaN(date.getTime())) {\n return new Date(NaN);\n }\n\n date.setFullYear(year);\n return date;\n}","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('button',{staticClass:\"inline-flex relative items-center rounded-lg gap-2 py-1.5 px-3 h-8 bg-slate-50 dark:bg-slate-800 hover:bg-slate-50 dark:hover:bg-slate-800 active:bg-slate-75 dark:active:bg-slate-800\",on:{\"click\":_setup.openDatePicker}},[_c('fluent-icon',{staticClass:\"text-slate-800 dark:text-slate-50\",attrs:{\"icon\":\"calendar\",\"size\":\"16\"}}),_vm._v(\" \"),_c('span',{staticClass:\"text-sm font-medium text-slate-800 dark:text-slate-50\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t(_setup.activeDateRange))+\"\\n \")]),_vm._v(\" \"),_c('span',{staticClass:\"text-sm font-medium text-slate-600 dark:text-slate-200\"},[_vm._v(\"\\n \"+_vm._s(_setup.formatDateRange)+\"\\n \")]),_vm._v(\" \"),_c('fluent-icon',{staticClass:\"text-slate-800 dark:text-slate-50\",attrs:{\"icon\":\"chevron-down\",\"size\":\"14\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DatePickerButton.vue?vue&type=script&setup=true&lang=js&\"; export default mod; export * from \"-!../../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DatePickerButton.vue?vue&type=script&setup=true&lang=js&\"","\n\n\n \n\n","import { render, staticRenderFns } from \"./DatePickerButton.vue?vue&type=template&id=1e78beb2&\"\nimport script from \"./DatePickerButton.vue?vue&type=script&setup=true&lang=js&\"\nexport * from \"./DatePickerButton.vue?vue&type=script&setup=true&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CalendarDateInput.vue?vue&type=script&setup=true&lang=js&\"; export default mod; export * from \"-!../../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CalendarDateInput.vue?vue&type=script&setup=true&lang=js&\"","\n\n\n \n \n {{\n calendarType === START_CALENDAR\n ? $t('DATE_PICKER.DATE_RANGE_INPUT.START')\n : $t('DATE_PICKER.DATE_RANGE_INPUT.END')\n }}\n \n \n
\n\n","import { render, staticRenderFns } from \"./CalendarDateInput.vue?vue&type=template&id=595f7f60&\"\nimport script from \"./CalendarDateInput.vue?vue&type=script&setup=true&lang=js&\"\nexport * from \"./CalendarDateInput.vue?vue&type=script&setup=true&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"h-[82px] flex flex-col items-start px-5 gap-1.5 pt-4 w-full\"},[_c('span',{staticClass:\"text-sm font-medium text-slate-800 dark:text-slate-50\"},[_vm._v(\"\\n \"+_vm._s(_vm.calendarType === _setup.START_CALENDAR\n ? _vm.$t('DATE_PICKER.DATE_RANGE_INPUT.START')\n : _vm.$t('DATE_PICKER.DATE_RANGE_INPUT.END'))+\"\\n \")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_setup.localDateValue),expression:\"localDateValue\"}],staticClass:\"reset-base border bg-slate-25 dark:bg-slate-900 ring-offset-ash-900 border-slate-50 dark:border-slate-700/50 w-full disabled:text-slate-200 dark:disabled:text-slate-700 disabled:cursor-not-allowed text-slate-800 dark:text-slate-50 px-1.5 py-1 text-sm rounded-xl h-10\",attrs:{\"type\":\"text\",\"placeholder\":_setup.dateFormat,\"disabled\":_vm.isDisabled},domProps:{\"value\":(_setup.localDateValue)},on:{\"keypress\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _setup.validateDate.apply(null, arguments)},\"input\":function($event){if($event.target.composing)return;_setup.localDateValue=$event.target.value}}})])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CalendarDateRange.vue?vue&type=script&setup=true&lang=js&\"; export default mod; export * from \"-!../../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CalendarDateRange.vue?vue&type=script&setup=true&lang=js&\"","\n\n\n \n
\n {{ $t('DATE_PICKER.DATE_RANGE_OPTIONS.TITLE') }}\n
\n
\n \n
\n
\n\n","import { render, staticRenderFns } from \"./CalendarDateRange.vue?vue&type=template&id=24d6c1b3&\"\nimport script from \"./CalendarDateRange.vue?vue&type=script&setup=true&lang=js&\"\nexport * from \"./CalendarDateRange.vue?vue&type=script&setup=true&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"w-[200px] flex flex-col items-start\"},[_c('h4',{staticClass:\"w-full px-5 py-4 text-sm font-medium capitalize text-start text-slate-600 dark:text-slate-200\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('DATE_PICKER.DATE_RANGE_OPTIONS.TITLE'))+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"flex flex-col items-start w-full\"},_vm._l((_setup.dateRanges),function(range){return _c('button',{key:range.label,staticClass:\"w-full px-5 py-3 text-sm font-medium truncate border-none rounded-none text-start hover:bg-slate-50 dark:hover:bg-slate-700\",class:range.value === _vm.selectedRange\n ? 'text-slate-800 dark:text-slate-50 bg-slate-50 dark:bg-slate-700'\n : 'text-slate-600 dark:text-slate-200',on:{\"click\":function($event){return _setup.setDateRange(range)}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t(range.label))+\"\\n \")])}),0)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name getYear\n * @category Year Helpers\n * @summary Get the year of the given date.\n *\n * @description\n * Get the year of the given date.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the given date\n * @returns {Number} the year\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Which year is 2 July 2014?\n * const result = getYear(new Date(2014, 6, 2))\n * //=> 2014\n */\n\nexport default function getYear(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var year = date.getFullYear();\n return year;\n}","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"flex items-start justify-between w-full h-9\"},[_c('button',{staticClass:\"p-1 rounded-lg hover:bg-slate-75 dark:hover:bg-slate-700/50 rtl:rotate-180\",on:{\"click\":function($event){return _setup.onClickPrev(_vm.calendarType)}}},[_c('fluent-icon',{staticClass:\"text-slate-900 dark:text-slate-50\",attrs:{\"icon\":\"chevron-left\",\"size\":\"14\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"flex items-center gap-1\"},[(_vm.firstButtonLabel)?_c('button',{staticClass:\"p-0 text-sm font-medium text-center text-slate-800 dark:text-slate-50 hover:text-woot-600 dark:hover:text-woot-600\",on:{\"click\":function($event){return _setup.onClickSetView(_vm.calendarType, _vm.viewMode)}}},[_vm._v(\"\\n \"+_vm._s(_vm.firstButtonLabel)+\"\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.buttonLabel)?_c('button',{staticClass:\"p-0 text-sm font-medium text-center text-slate-800 dark:text-slate-50\",class:{ 'hover:text-woot-600 dark:hover:text-woot-600': _vm.viewMode },on:{\"click\":function($event){return _setup.onClickSetView(_vm.calendarType, _setup.YEAR)}}},[_vm._v(\"\\n \"+_vm._s(_vm.buttonLabel)+\"\\n \")]):_vm._e()]),_vm._v(\" \"),_c('button',{staticClass:\"p-1 rounded-lg hover:bg-slate-75 dark:hover:bg-slate-700/50 rtl:rotate-180\",on:{\"click\":function($event){return _setup.onClickNext(_vm.calendarType)}}},[_c('fluent-icon',{staticClass:\"text-slate-900 dark:text-slate-50\",attrs:{\"icon\":\"chevron-right\",\"size\":\"14\"}})],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CalendarAction.vue?vue&type=script&setup=true&lang=js&\"; export default mod; export * from \"-!../../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CalendarAction.vue?vue&type=script&setup=true&lang=js&\"","\n\n\n \n
\n
\n \n \n
\n
\n
\n\n","import { render, staticRenderFns } from \"./CalendarAction.vue?vue&type=template&id=748a1fb8&\"\nimport script from \"./CalendarAction.vue?vue&type=script&setup=true&lang=js&\"\nexport * from \"./CalendarAction.vue?vue&type=script&setup=true&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CalendarYear.vue?vue&type=script&setup=true&lang=js&\"; export default mod; export * from \"-!../../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CalendarYear.vue?vue&type=script&setup=true&lang=js&\"","\n\n\n \n
\n\n
\n \n
\n
\n\n","import { render, staticRenderFns } from \"./CalendarYear.vue?vue&type=template&id=5a76b8fe&\"\nimport script from \"./CalendarYear.vue?vue&type=script&setup=true&lang=js&\"\nexport * from \"./CalendarYear.vue?vue&type=script&setup=true&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"flex flex-col w-full gap-2 max-h-[312px]\"},[_c(_setup.CalendarAction,{attrs:{\"calendar-type\":_vm.calendarType,\"button-label\":`${_setup.firstYear} - ${_setup.lastYear}`},on:{\"prev\":_setup.onClickPrev,\"next\":_setup.onClickNext}}),_vm._v(\" \"),_c('div',{staticClass:\"grid grid-cols-2 gap-x-3 gap-y-2 w-full auto-rows-[47px]\"},_vm._l((_setup.years),function(year){return _c('button',{key:year,staticClass:\"p-2 text-sm font-medium text-center text-slate-800 dark:text-slate-50 w-[144px] h-10 rounded-lg py-2.5 px-2 hover:bg-slate-75 dark:hover:bg-slate-700\",class:{\n 'bg-woot-600 dark:bg-woot-600 text-white dark:text-white hover:bg-woot-500 dark:hover:bg-woot-700':\n year === _setup.activeYear,\n },on:{\"click\":function($event){return _setup.selectYear(year)}}},[_vm._v(\"\\n \"+_vm._s(year)+\"\\n \")])}),0)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n \n
\n\n
\n \n
\n
\n\n","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name getMonth\n * @category Month Helpers\n * @summary Get the month of the given date.\n *\n * @description\n * Get the month of the given date.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the given date\n * @returns {Number} the month\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Which month is 29 February 2012?\n * const result = getMonth(new Date(2012, 1, 29))\n * //=> 1\n */\n\nexport default function getMonth(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var month = date.getMonth();\n return month;\n}","import mod from \"-!../../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CalendarMonth.vue?vue&type=script&setup=true&lang=js&\"; export default mod; export * from \"-!../../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CalendarMonth.vue?vue&type=script&setup=true&lang=js&\"","import { render, staticRenderFns } from \"./CalendarMonth.vue?vue&type=template&id=b293bb4c&\"\nimport script from \"./CalendarMonth.vue?vue&type=script&setup=true&lang=js&\"\nexport * from \"./CalendarMonth.vue?vue&type=script&setup=true&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"flex flex-col w-full gap-2 max-h-[312px]\"},[_c(_setup.CalendarAction,{attrs:{\"view-mode\":_setup.YEAR,\"calendar-type\":_vm.calendarType,\"button-label\":_setup.yearName(\n _vm.calendarType === _setup.START_CALENDAR ? _vm.startCurrentDate : _vm.endCurrentDate,\n _setup.MONTH\n )},on:{\"setView\":_setup.setViewMode,\"prev\":_setup.onClickPrev,\"next\":_setup.onClickNext}}),_vm._v(\" \"),_c('div',{staticClass:\"grid w-full grid-cols-3 gap-x-3 gap-y-2 auto-rows-[61px]\"},_vm._l((_setup.months),function(month,index){return _c('button',{key:index,staticClass:\"p-2 text-sm font-medium text-center text-slate-800 dark:text-slate-50 w-[92px] h-10 rounded-lg py-2.5 px-2 hover:bg-slate-75 dark:hover:bg-slate-700\",class:{\n 'bg-woot-600 dark:bg-woot-600 text-white dark:text-white hover:bg-woot-500 dark:bg-woot-700':\n index === _setup.activeMonthIndex,\n },on:{\"click\":function($event){return _setup.selectMonth(index)}}},[_vm._v(\"\\n \"+_vm._s(month)+\"\\n \")])}),0)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CalendarWeekLabel.vue?vue&type=script&setup=true&lang=js&\"; export default mod; export * from \"-!../../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CalendarWeekLabel.vue?vue&type=script&setup=true&lang=js&\"","import { render, staticRenderFns } from \"./CalendarWeekLabel.vue?vue&type=template&id=3a9be3bc&\"\nimport script from \"./CalendarWeekLabel.vue?vue&type=script&setup=true&lang=js&\"\nexport * from \"./CalendarWeekLabel.vue?vue&type=script&setup=true&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"max-w-md mx-auto grid grid-cols-7 gap-2\"},_vm._l((_setup.calendarWeeks),function(day){return _c('div',{key:day.id,staticClass:\"flex items-center justify-center font-medium text-sm w-9 h-7 py-1.5 px-2\"},[_vm._v(\"\\n \"+_vm._s(day.label)+\"\\n \")])}),0)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n \n
\n
\n
\n
\n {{ day.getDate() }}\n \n
\n
\n
\n\n","import mod from \"-!../../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CalendarWeek.vue?vue&type=script&setup=true&lang=js&\"; export default mod; export * from \"-!../../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CalendarWeek.vue?vue&type=script&setup=true&lang=js&\"","import { render, staticRenderFns } from \"./CalendarWeek.vue?vue&type=template&id=dd9da312&\"\nimport script from \"./CalendarWeek.vue?vue&type=script&setup=true&lang=js&\"\nexport * from \"./CalendarWeek.vue?vue&type=script&setup=true&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"flex flex-col w-full gap-2 max-h-[312px]\"},[_c(_setup.CalendarAction,{attrs:{\"view-mode\":_setup.MONTH,\"calendar-type\":_vm.calendarType,\"first-button-label\":_setup.monthName(\n _vm.calendarType === _setup.START_CALENDAR ? _vm.startCurrentDate : _vm.endCurrentDate\n ),\"button-label\":_setup.yearName(\n _vm.calendarType === _setup.START_CALENDAR ? _vm.startCurrentDate : _vm.endCurrentDate\n )},on:{\"prev\":_setup.onClickPrev,\"next\":_setup.onClickNext,\"setView\":_setup.setViewMode}}),_vm._v(\" \"),_c(_setup.CalendarWeekLabel),_vm._v(\" \"),_vm._l((_setup.weeks(_vm.calendarType)),function(week){return _c('div',{key:week[0].getTime(),staticClass:\"grid max-w-md grid-cols-7 gap-2 mx-auto overflow-hidden rounded-lg\"},_vm._l((week),function(day){return _c('div',{key:day.getTime(),staticClass:\"flex relative items-center justify-center w-9 h-8 py-1.5 px-2 font-medium text-sm rounded-lg cursor-pointer\",class:_setup.dayClasses(day),on:{\"mouseenter\":function($event){return _setup.emitHoveredEndDate(day)},\"mouseleave\":function($event){return _setup.emitHoveredEndDate(null)},\"click\":function($event){return _setup.emitSelectDate(day)}}},[_vm._v(\"\\n \"+_vm._s(day.getDate())+\"\\n \"),(\n (_setup.isInRange(day) || _setup.isHoveringInRange(day)) &&\n _setup.isNextDayInRange(day) &&\n !_setup.isLastDayOfMonth(day) &&\n _setup.isInCurrentMonth(day)\n )?_c('span',{staticClass:\"absolute bottom-0 w-6 h-8 ltr:-right-4 rtl:-left-4 bg-woot-50 dark:bg-woot-800 -z-10\"}):_vm._e()])}),0)})],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CalendarFooter.vue?vue&type=script&setup=true&lang=js&\"; export default mod; export * from \"-!../../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CalendarFooter.vue?vue&type=script&setup=true&lang=js&\"","\n\n\n \n \n \n
\n\n","import { render, staticRenderFns } from \"./CalendarFooter.vue?vue&type=template&id=35ce188a&\"\nimport script from \"./CalendarFooter.vue?vue&type=script&setup=true&lang=js&\"\nexport * from \"./CalendarFooter.vue?vue&type=script&setup=true&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"h-[56px] flex justify-between px-5 py-3 items-center\"},[_c('button',{staticClass:\"p-1.5 rounded-lg w-fit text-sm font-medium text-slate-600 dark:text-slate-200 hover:text-slate-800 dark:hover:text-slate-100\",on:{\"click\":_setup.onClickClear}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('DATE_PICKER.CLEAR_BUTTON'))+\"\\n \")]),_vm._v(\" \"),_c('button',{staticClass:\"p-1.5 rounded-lg w-fit text-sm font-medium text-woot-500 dark:text-woot-300 hover:text-woot-700 dark:hover:text-woot-500\",on:{\"click\":_setup.onClickApply}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('DATE_PICKER.APPLY_BUTTON'))+\"\\n \")])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n \n\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DatePicker.vue?vue&type=script&setup=true&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DatePicker.vue?vue&type=script&setup=true&lang=js&\"","import { render, staticRenderFns } from \"./DatePicker.vue?vue&type=template&id=6b8b5d56&\"\nimport script from \"./DatePicker.vue?vue&type=script&setup=true&lang=js&\"\nexport * from \"./DatePicker.vue?vue&type=script&setup=true&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"relative font-inter\"},[_c(_setup.DatePickerButton,{attrs:{\"selected-start-date\":_setup.selectedStartDate,\"selected-end-date\":_setup.selectedEndDate,\"selected-range\":_setup.selectedRange},on:{\"open\":function($event){_setup.showDatePicker = !_setup.showDatePicker}}}),_vm._v(\" \"),(_setup.showDatePicker)?_c('div',{staticClass:\"flex absolute top-9 ltr:left-0 rtl:right-0 z-30 shadow-md select-none w-[880px] h-[490px] rounded-2xl border border-slate-50 dark:border-slate-800 bg-white dark:bg-slate-800\"},[_c(_setup.CalendarDateRange,{attrs:{\"selected-range\":_setup.selectedRange},on:{\"setRange\":_setup.setDateRange}}),_vm._v(\" \"),_c('div',{staticClass:\"flex flex-col w-[680px] ltr:border-l rtl:border-r border-slate-50 dark:border-slate-700/50\"},[_c('div',{staticClass:\"flex justify-around h-fit\"},_vm._l(([_setup.START_CALENDAR, _setup.END_CALENDAR]),function(calendar){return _c('div',{key:`${calendar}-calendar`,staticClass:\"flex flex-col items-center\"},[_c(_setup.CalendarDateInput,{attrs:{\"calendar-type\":calendar,\"date-value\":calendar === _setup.START_CALENDAR ? _setup.manualStartDate : _setup.manualEndDate,\"compare-date\":calendar === _setup.START_CALENDAR ? _setup.manualEndDate : _setup.manualStartDate,\"is-disabled\":_setup.selectedRange !== _setup.CUSTOM_RANGE},on:{\"update\":function($event){calendar === _setup.START_CALENDAR\n ? (_setup.manualStartDate = $event)\n : (_setup.manualEndDate = $event)},\"validate\":function($event){return _setup.updateManualInput($event, calendar)},\"error\":function($event){return _setup.handleManualInputError($event)}}}),_vm._v(\" \"),_c('div',{staticClass:\"py-5 border-b border-slate-50 dark:border-slate-700/50\"},[_c('div',{staticClass:\"flex flex-col items-center gap-2 px-5 min-w-[340px] max-h-[352px]\",class:calendar === _setup.START_CALENDAR &&\n 'ltr:border-r rtl:border-l border-slate-50 dark:border-slate-700/50'},[(_setup.calendarViews[calendar] === _setup.YEAR)?_c(_setup.CalendarYear,{attrs:{\"calendar-type\":calendar,\"start-current-date\":_setup.startCurrentDate,\"end-current-date\":_setup.endCurrentDate},on:{\"selectYear\":function($event){return _setup.openCalendar($event, calendar, _setup.YEAR)}}}):(_setup.calendarViews[calendar] === _setup.MONTH)?_c(_setup.CalendarMonth,{attrs:{\"calendar-type\":calendar,\"start-current-date\":_setup.startCurrentDate,\"end-current-date\":_setup.endCurrentDate},on:{\"selectMonth\":function($event){return _setup.openCalendar($event, calendar)},\"setView\":_setup.setViewMode,\"prev\":function($event){return _setup.moveCalendar(calendar, 'prev', _setup.YEAR)},\"next\":function($event){return _setup.moveCalendar(calendar, 'next', _setup.YEAR)}}}):(_setup.calendarViews[calendar] === _setup.WEEK)?_c(_setup.CalendarWeek,{attrs:{\"calendar-type\":calendar,\"current-date\":_setup.currentDate,\"start-current-date\":_setup.startCurrentDate,\"end-current-date\":_setup.endCurrentDate,\"selected-start-date\":_setup.selectedStartDate,\"selected-end-date\":_setup.selectedEndDate,\"selecting-end-date\":_setup.selectingEndDate,\"hovered-end-date\":_setup.hoveredEndDate},on:{\"updateHoveredEndDate\":function($event){_setup.hoveredEndDate = $event},\"selectDate\":_setup.selectDate,\"setView\":_setup.setViewMode,\"prev\":function($event){return _setup.moveCalendar(calendar, 'prev')},\"next\":function($event){return _setup.moveCalendar(calendar, 'next')}}}):_vm._e()],1)])],1)}),0),_vm._v(\" \"),_c(_setup.CalendarFooter,{on:{\"change\":_setup.emitDateRange,\"clear\":_setup.resetDatePicker}})],1)],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/* eslint no-plusplus: 0 */\nimport AvatarUploader from './widgets/forms/AvatarUploader.vue';\nimport Bar from './widgets/chart/BarChart';\nimport Button from './ui/WootButton';\nimport Code from './Code';\nimport ColorPicker from './widgets/ColorPicker';\nimport ConfirmDeleteModal from './widgets/modal/ConfirmDeleteModal.vue';\nimport ConfirmModal from './widgets/modal/ConfirmationModal.vue';\nimport ContextMenu from './ui/ContextMenu.vue';\nimport DeleteModal from './widgets/modal/DeleteModal.vue';\nimport DropdownItem from 'shared/components/ui/dropdown/DropdownItem';\nimport DropdownMenu from 'shared/components/ui/dropdown/DropdownMenu';\nimport FeatureToggle from './widgets/FeatureToggle';\nimport HorizontalBar from './widgets/chart/HorizontalBarChart';\nimport Input from './widgets/forms/Input.vue';\nimport PhoneInput from './widgets/forms/PhoneInput.vue';\nimport Label from './ui/Label';\nimport LoadingState from './widgets/LoadingState';\nimport Modal from './Modal';\nimport ModalHeader from './ModalHeader';\nimport SidemenuIcon from './SidemenuIcon';\nimport Spinner from 'shared/components/Spinner';\nimport SubmitButton from './buttons/FormSubmitButton';\nimport Tabs from './ui/Tabs/Tabs';\nimport TabsItem from './ui/Tabs/TabsItem';\nimport Thumbnail from './widgets/Thumbnail.vue';\nimport DatePicker from './ui/DatePicker/DatePicker.vue';\n\nconst WootUIKit = {\n AvatarUploader,\n Bar,\n Button,\n Code,\n ColorPicker,\n ConfirmDeleteModal,\n ConfirmModal,\n ContextMenu,\n DeleteModal,\n DropdownItem,\n DropdownMenu,\n FeatureToggle,\n HorizontalBar,\n Input,\n PhoneInput,\n Label,\n LoadingState,\n Modal,\n ModalHeader,\n SidemenuIcon,\n Spinner,\n SubmitButton,\n Tabs,\n TabsItem,\n Thumbnail,\n DatePicker,\n install(Vue) {\n const keys = Object.keys(this);\n keys.pop(); // remove 'install' from keys\n let i = keys.length;\n while (i--) {\n Vue.component(`woot${keys[i]}`, this[keys[i]]);\n }\n },\n};\n\nif (typeof window !== 'undefined' && window.Vue) {\n window.Vue.use(WootUIKit);\n}\n\nexport default WootUIKit;\n","var render = function render(){var _vm=this,_c=_vm._self._c;return (!_vm.authUIFlags.isFetching && !_vm.accountUIFlags.isFetchingItem)?_c('div',{staticClass:\"flex-grow-0 w-full h-full min-h-0 app-wrapper\",class:{ 'app-rtl--wrapper': _vm.isRTL },attrs:{\"id\":\"app\",\"dir\":_vm.isRTL ? 'rtl' : 'ltr'}},[_c('UpdateBanner',{attrs:{\"latest-chatwoot-version\":_vm.latestChatwootVersion}}),_vm._v(\" \"),(_vm.currentAccountId)?[(_vm.hideOnOnboardingView)?_c('PendingEmailVerificationBanner'):_vm._e(),_vm._v(\" \"),(_vm.hideOnOnboardingView)?_c('PaymentPendingBanner'):_vm._e(),_vm._v(\" \"),_c('UpgradeBanner')]:_vm._e(),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\"}},[_c('router-view')],1),_vm._v(\" \"),_c('AddAccountModal',{attrs:{\"show\":_vm.showAddAccountModal,\"has-accounts\":_vm.hasAccounts}}),_vm._v(\" \"),_c('WootSnackbarBox'),_vm._v(\" \"),_c('NetworkNotification')],2):_c('LoadingState')\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NetworkNotification.vue?vue&type=script&setup=true&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NetworkNotification.vue?vue&type=script&setup=true&lang=js&\"","\n\n\n \n \n
\n \n \n {{ bannerText }}\n \n \n \n
\n
\n \n\n","import { render, staticRenderFns } from \"./NetworkNotification.vue?vue&type=template&id=01e5f6bf&\"\nimport script from \"./NetworkNotification.vue?vue&type=script&setup=true&lang=js&\"\nexport * from \"./NetworkNotification.vue?vue&type=script&setup=true&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('transition',{attrs:{\"name\":\"network-notification-fade\",\"tag\":\"div\"}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_setup.showNotification),expression:\"showNotification\"}],staticClass:\"fixed z-50 top-4 left-2 group\"},[_c('div',{staticClass:\"relative flex items-center justify-between w-full px-2 py-1 bg-yellow-200 rounded-lg shadow-lg dark:bg-yellow-700\"},[_c('fluent-icon',{staticClass:\"text-yellow-700/50 dark:text-yellow-50\",attrs:{\"icon\":_setup.iconName,\"size\":\"18\"}}),_vm._v(\" \"),_c('span',{staticClass:\"px-2 text-xs font-medium tracking-wide text-yellow-700/70 dark:text-yellow-50\"},[_vm._v(\"\\n \"+_vm._s(_setup.bannerText)+\"\\n \")]),_vm._v(\" \"),(_setup.canRefresh)?_c('woot-button',{attrs:{\"title\":_vm.$t('NETWORK.BUTTON.REFRESH'),\"variant\":\"clear\",\"size\":\"small\",\"color-scheme\":\"warning\",\"icon\":\"arrow-clockwise\"},on:{\"click\":_setup.refreshPage}}):_vm._e(),_vm._v(\" \"),_c('woot-button',{attrs:{\"variant\":\"clear\",\"size\":\"small\",\"color-scheme\":\"warning\",\"icon\":\"dismiss\"},on:{\"click\":_setup.closeNotification}})],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n \n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UpdateBanner.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UpdateBanner.vue?vue&type=script&lang=js&\"","import semver from 'semver';\n\nexport const hasAnUpdateAvailable = (latestVersion, currentVersion) => {\n if (!semver.valid(latestVersion)) {\n return false;\n }\n return semver.lt(currentVersion, latestVersion);\n};\n","import { render, staticRenderFns } from \"./UpdateBanner.vue?vue&type=template&id=46827ecb&\"\nimport script from \"./UpdateBanner.vue?vue&type=script&lang=js&\"\nexport * from \"./UpdateBanner.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.shouldShowBanner)?_c('Banner',{attrs:{\"color-scheme\":\"primary\",\"banner-message\":_vm.bannerMessage,\"href-link\":\"https://github.com/chatwoot/chatwoot/releases\",\"href-link-text\":_vm.$t('GENERAL_SETTINGS.LEARN_MORE'),\"has-close-button\":\"\"},on:{\"close\":_vm.dismissUpdateBanner}}):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n \n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UpgradeBanner.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UpgradeBanner.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./UpgradeBanner.vue?vue&type=template&id=532353e0&\"\nimport script from \"./UpgradeBanner.vue?vue&type=script&lang=js&\"\nexport * from \"./UpgradeBanner.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.shouldShowBanner)?_c('Banner',{attrs:{\"color-scheme\":\"alert\",\"banner-message\":_vm.bannerMessage,\"action-button-label\":_vm.actionButtonMessage,\"has-action-button\":\"\"},on:{\"click\":_vm.routeToBilling}}):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n \n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PaymentPendingBanner.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PaymentPendingBanner.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PaymentPendingBanner.vue?vue&type=template&id=4ac69eda&\"\nimport script from \"./PaymentPendingBanner.vue?vue&type=script&lang=js&\"\nexport * from \"./PaymentPendingBanner.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.shouldShowBanner)?_c('Banner',{attrs:{\"color-scheme\":\"alert\",\"banner-message\":_vm.bannerMessage,\"action-button-label\":_vm.actionButtonMessage,\"has-action-button\":\"\"},on:{\"click\":_vm.routeToBilling}}):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n \n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PendingEmailVerificationBanner.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PendingEmailVerificationBanner.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PendingEmailVerificationBanner.vue?vue&type=template&id=f9dc0ee8&\"\nimport script from \"./PendingEmailVerificationBanner.vue?vue&type=script&lang=js&\"\nexport * from \"./PendingEmailVerificationBanner.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.shouldShowBanner)?_c('Banner',{attrs:{\"color-scheme\":\"alert\",\"banner-message\":_vm.bannerMessage,\"action-button-label\":_vm.actionButtonMessage,\"action-button-icon\":\"mail\",\"has-action-button\":\"\"},on:{\"click\":_vm.resendVerificationEmail}}):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import AuthAPI from '../api/auth';\nimport BaseActionCableConnector from '../../shared/helpers/BaseActionCableConnector';\nimport DashboardAudioNotificationHelper from './AudioAlerts/DashboardAudioNotificationHelper';\nimport { BUS_EVENTS } from 'shared/constants/busEvents';\nimport { emitter } from 'shared/helpers/mitt';\n\nclass ActionCableConnector extends BaseActionCableConnector {\n constructor(app, pubsubToken) {\n const { websocketURL = '' } = window.chatwootConfig || {};\n super(app, pubsubToken, websocketURL);\n this.CancelTyping = [];\n this.events = {\n 'message.created': this.onMessageCreated,\n 'message.updated': this.onMessageUpdated,\n 'conversation.created': this.onConversationCreated,\n 'conversation.status_changed': this.onStatusChange,\n 'user:logout': this.onLogout,\n 'page:reload': this.onReload,\n 'assignee.changed': this.onAssigneeChanged,\n 'conversation.typing_on': this.onTypingOn,\n 'conversation.typing_off': this.onTypingOff,\n 'conversation.contact_changed': this.onConversationContactChange,\n 'presence.update': this.onPresenceUpdate,\n 'contact.deleted': this.onContactDelete,\n 'contact.updated': this.onContactUpdate,\n 'conversation.mentioned': this.onConversationMentioned,\n 'notification.created': this.onNotificationCreated,\n 'notification.deleted': this.onNotificationDeleted,\n 'notification.updated': this.onNotificationUpdated,\n 'first.reply.created': this.onFirstReplyCreated,\n 'conversation.read': this.onConversationRead,\n 'conversation.updated': this.onConversationUpdated,\n 'account.cache_invalidated': this.onCacheInvalidate,\n };\n }\n\n // eslint-disable-next-line class-methods-use-this\n onReconnect = () => {\n emitter.emit(BUS_EVENTS.WEBSOCKET_RECONNECT);\n };\n\n // eslint-disable-next-line class-methods-use-this\n onDisconnected = () => {\n emitter.emit(BUS_EVENTS.WEBSOCKET_DISCONNECT);\n };\n\n isAValidEvent = data => {\n return this.app.$store.getters.getCurrentAccountId === data.account_id;\n };\n\n onMessageUpdated = data => {\n this.app.$store.dispatch('updateMessage', data);\n };\n\n onPresenceUpdate = data => {\n this.app.$store.dispatch('contacts/updatePresence', data.contacts);\n this.app.$store.dispatch('agents/updatePresence', data.users);\n this.app.$store.dispatch('setCurrentUserAvailability', data.users);\n };\n\n onConversationContactChange = payload => {\n const { meta = {}, id: conversationId } = payload;\n const { sender } = meta || {};\n if (conversationId) {\n this.app.$store.dispatch('updateConversationContact', {\n conversationId,\n ...sender,\n });\n }\n };\n\n onAssigneeChanged = payload => {\n const { id } = payload;\n if (id) {\n this.app.$store.dispatch('updateConversation', payload);\n }\n this.fetchConversationStats();\n };\n\n onConversationCreated = data => {\n this.app.$store.dispatch('addConversation', data);\n this.fetchConversationStats();\n };\n\n onConversationRead = data => {\n this.app.$store.dispatch('updateConversation', data);\n };\n\n // eslint-disable-next-line class-methods-use-this\n onLogout = () => AuthAPI.logout();\n\n onMessageCreated = data => {\n const {\n conversation: { last_activity_at: lastActivityAt },\n conversation_id: conversationId,\n } = data;\n DashboardAudioNotificationHelper.onNewMessage(data);\n this.app.$store.dispatch('addMessage', data);\n this.app.$store.dispatch('updateConversationLastActivity', {\n lastActivityAt,\n conversationId,\n });\n };\n\n // eslint-disable-next-line class-methods-use-this\n onReload = () => window.location.reload();\n\n onStatusChange = data => {\n this.app.$store.dispatch('updateConversation', data);\n this.fetchConversationStats();\n };\n\n onConversationUpdated = data => {\n this.app.$store.dispatch('updateConversation', data);\n this.fetchConversationStats();\n };\n\n onTypingOn = ({ conversation, user }) => {\n const conversationId = conversation.id;\n\n this.clearTimer(conversationId);\n this.app.$store.dispatch('conversationTypingStatus/create', {\n conversationId,\n user,\n });\n this.initTimer({ conversation, user });\n };\n\n onTypingOff = ({ conversation, user }) => {\n const conversationId = conversation.id;\n\n this.clearTimer(conversationId);\n this.app.$store.dispatch('conversationTypingStatus/destroy', {\n conversationId,\n user,\n });\n };\n\n onConversationMentioned = data => {\n this.app.$store.dispatch('addMentions', data);\n };\n\n clearTimer = conversationId => {\n const timerEvent = this.CancelTyping[conversationId];\n\n if (timerEvent) {\n clearTimeout(timerEvent);\n this.CancelTyping[conversationId] = null;\n }\n };\n\n initTimer = ({ conversation, user }) => {\n const conversationId = conversation.id;\n // Turn off typing automatically after 30 seconds\n this.CancelTyping[conversationId] = setTimeout(() => {\n this.onTypingOff({ conversation, user });\n }, 30000);\n };\n\n // eslint-disable-next-line class-methods-use-this\n fetchConversationStats = () => {\n emitter.emit('fetch_conversation_stats');\n emitter.emit('fetch_overview_reports');\n };\n\n onContactDelete = data => {\n this.app.$store.dispatch(\n 'contacts/deleteContactThroughConversations',\n data.id\n );\n this.fetchConversationStats();\n };\n\n onContactUpdate = data => {\n this.app.$store.dispatch('contacts/updateContact', data);\n };\n\n onNotificationCreated = data => {\n this.app.$store.dispatch('notifications/addNotification', data);\n };\n\n onNotificationDeleted = data => {\n this.app.$store.dispatch('notifications/deleteNotification', data);\n };\n\n onNotificationUpdated = data => {\n this.app.$store.dispatch('notifications/updateNotification', data);\n };\n\n // eslint-disable-next-line class-methods-use-this\n onFirstReplyCreated = () => {\n emitter.emit('fetch_overview_reports');\n };\n\n onCacheInvalidate = data => {\n const keys = data.cache_keys;\n this.app.$store.dispatch('labels/revalidate', { newKey: keys.label });\n this.app.$store.dispatch('inboxes/revalidate', { newKey: keys.inbox });\n this.app.$store.dispatch('teams/revalidate', { newKey: keys.team });\n };\n}\n\nexport default {\n init(pubsubToken) {\n return new ActionCableConnector(window.WOOT, pubsubToken);\n },\n};\n","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Snackbar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Snackbar.vue?vue&type=script&lang=js&\"","\n\n\n \n
\n
\n {{ message }}\n
\n
\n \n {{ action.message }}\n \n
\n
\n
\n\n","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SnackbarContainer.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SnackbarContainer.vue?vue&type=script&lang=js&\"","\n\n\n \n \n \n\n","import { render, staticRenderFns } from \"./Snackbar.vue?vue&type=template&id=3fa05403&\"\nimport script from \"./Snackbar.vue?vue&type=script&lang=js&\"\nexport * from \"./Snackbar.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{staticClass:\"shadow-sm bg-slate-800 dark:bg-slate-700 rounded-[4px] items-center gap-3 inline-flex mb-2 max-w-[25rem] min-h-[1.875rem] min-w-[15rem] px-6 py-3 text-left\"},[_c('div',{staticClass:\"text-sm font-medium text-white dark:text-white\"},[_vm._v(\"\\n \"+_vm._s(_vm.message)+\"\\n \")]),_vm._v(\" \"),(_vm.action)?_c('div',[(_vm.action.type == 'link')?_c('router-link',{staticClass:\"font-medium cursor-pointer select-none text-woot-500 dark:text-woot-500 hover:text-woot-600 dark:hover:text-woot-600\",attrs:{\"to\":_vm.action.to}},[_vm._v(\"\\n \"+_vm._s(_vm.action.message)+\"\\n \")]):_vm._e()],1):_vm._e()])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./SnackbarContainer.vue?vue&type=template&id=754814e3&\"\nimport script from \"./SnackbarContainer.vue?vue&type=script&lang=js&\"\nexport * from \"./SnackbarContainer.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('transition-group',{staticClass:\"left-0 my-0 mx-auto max-w-[25rem] overflow-hidden absolute right-0 text-center top-4 z-[9999]\",attrs:{\"name\":\"toast-fade\",\"tag\":\"div\"}},_vm._l((_vm.snackMessages),function(snackMessage){return _c('WootSnackbar',{key:snackMessage.key,attrs:{\"message\":snackMessage.message,\"action\":snackMessage.action}})}),1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { emitter } from 'shared/helpers/mitt';\nimport { BUS_EVENTS } from 'shared/constants/busEvents';\nimport { differenceInSeconds } from 'date-fns';\nimport {\n isAConversationRoute,\n isAInboxViewRoute,\n isNotificationRoute,\n} from 'dashboard/helper/routeHelpers';\n\nconst MAX_DISCONNECT_SECONDS = 10800;\n\n// The disconnect delay threshold is added to account for delays in identifying\n// disconnections (for example, the websocket disconnection takes up to 3 seconds)\n// while fetching the latest updated conversations or messages.\nconst DISCONNECT_DELAY_THRESHOLD = 15;\n\nclass ReconnectService {\n constructor(store, router) {\n this.store = store;\n this.router = router;\n this.disconnectTime = null;\n\n this.setupEventListeners();\n }\n\n disconnect = () => this.removeEventListeners();\n\n setupEventListeners = () => {\n window.addEventListener('online', this.handleOnlineEvent);\n emitter.on(BUS_EVENTS.WEBSOCKET_RECONNECT, this.onReconnect);\n emitter.on(BUS_EVENTS.WEBSOCKET_DISCONNECT, this.onDisconnect);\n };\n\n removeEventListeners = () => {\n window.removeEventListener('online', this.handleOnlineEvent);\n emitter.off(BUS_EVENTS.WEBSOCKET_RECONNECT, this.onReconnect);\n emitter.off(BUS_EVENTS.WEBSOCKET_DISCONNECT, this.onDisconnect);\n };\n\n getSecondsSinceDisconnect = () =>\n this.disconnectTime\n ? Math.max(differenceInSeconds(new Date(), this.disconnectTime), 0)\n : 0;\n\n // Force reload if the user is disconnected for more than 3 hours\n handleOnlineEvent = () => {\n if (this.getSecondsSinceDisconnect() >= MAX_DISCONNECT_SECONDS) {\n window.location.reload();\n }\n };\n\n fetchConversations = async () => {\n await this.store.dispatch('updateChatListFilters', {\n page: null,\n updatedWithin:\n this.getSecondsSinceDisconnect() + DISCONNECT_DELAY_THRESHOLD,\n });\n await this.store.dispatch('fetchAllConversations');\n // Reset the updatedWithin in the store chat list filter after fetching conversations when the user is reconnected\n await this.store.dispatch('updateChatListFilters', {\n updatedWithin: null,\n });\n };\n\n fetchFilteredOrSavedConversations = async queryData => {\n await this.store.dispatch('fetchFilteredConversations', {\n queryData,\n page: 1,\n });\n };\n\n fetchConversationsOnReconnect = async () => {\n const {\n getAppliedConversationFiltersQuery,\n 'customViews/getActiveConversationFolder': activeFolder,\n } = this.store.getters;\n const query = getAppliedConversationFiltersQuery?.payload?.length\n ? getAppliedConversationFiltersQuery\n : activeFolder?.query;\n if (query) {\n await this.fetchFilteredOrSavedConversations(query);\n } else {\n await this.fetchConversations();\n }\n };\n\n fetchConversationMessagesOnReconnect = async () => {\n const { conversation_id: conversationId } = this.router.currentRoute.params;\n if (conversationId) {\n await this.store.dispatch('syncActiveConversationMessages', {\n conversationId: Number(conversationId),\n });\n }\n };\n\n fetchNotificationsOnReconnect = async filter => {\n await this.store.dispatch('notifications/index', { ...filter, page: 1 });\n };\n\n revalidateCaches = async () => {\n const { label, inbox, team } = await this.store.dispatch(\n 'accounts/getCacheKeys'\n );\n await Promise.all([\n this.store.dispatch('labels/revalidate', { newKey: label }),\n this.store.dispatch('inboxes/revalidate', { newKey: inbox }),\n this.store.dispatch('teams/revalidate', { newKey: team }),\n ]);\n };\n\n handleRouteSpecificFetch = async () => {\n const currentRoute = this.router.currentRoute.name;\n if (isAConversationRoute(currentRoute, true)) {\n await this.fetchConversationsOnReconnect();\n await this.fetchConversationMessagesOnReconnect();\n } else if (isAInboxViewRoute(currentRoute, true)) {\n await this.fetchNotificationsOnReconnect(\n this.store.getters['notifications/getNotificationFilters']\n );\n } else if (isNotificationRoute(currentRoute)) {\n await this.fetchNotificationsOnReconnect();\n }\n };\n\n setConversationLastMessageId = async () => {\n const { conversation_id: conversationId } = this.router.currentRoute.params;\n if (conversationId) {\n await this.store.dispatch('setConversationLastMessageId', {\n conversationId: Number(conversationId),\n });\n }\n };\n\n onDisconnect = () => {\n this.disconnectTime = new Date();\n this.setConversationLastMessageId();\n };\n\n onReconnect = async () => {\n await this.handleRouteSpecificFetch();\n await this.revalidateCaches();\n emitter.emit(BUS_EVENTS.WEBSOCKET_RECONNECT_COMPLETED);\n };\n}\n\nexport default ReconnectService;\n","\n\n\n \n
\n
\n \n \n \n \n
\n \n \n
\n
\n
\n
\n \n\n\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=31cec2bd&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&id=31cec2bd&prod&lang=scss&\"\nimport style1 from \"vue-multiselect/dist/vue-multiselect.min.css?vue&type=style&index=1&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('button',{staticClass:\"toggle-button p-0\",class:{ active: _vm.value, small: _vm.size === 'small' },attrs:{\"type\":\"button\",\"role\":\"switch\",\"aria-checked\":_vm.value.toString()},on:{\"click\":_vm.onClick}},[_c('span',{class:{ active: _vm.value },attrs:{\"aria-hidden\":\"true\"}})])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Switch.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Switch.vue?vue&type=script&lang=js&\"","\n\n\n \n\n\n\n","import { render, staticRenderFns } from \"./Switch.vue?vue&type=template&id=2bb74ada&scoped=true&\"\nimport script from \"./Switch.vue?vue&type=script&lang=js&\"\nexport * from \"./Switch.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Switch.vue?vue&type=style&index=0&id=2bb74ada&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2bb74ada\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('transition-group',{staticClass:\"wizard-box\",class:_vm.classObject,attrs:{\"name\":\"wizard-items\",\"tag\":\"div\"}},_vm._l((_vm.items),function(item){return _c('div',{key:item.route,staticClass:\"item\",class:{ active: _vm.isActive(item), over: _vm.isOver(item) }},[_c('div',{staticClass:\"flex items-center\"},[_c('h3',{staticClass:\"text-slate-800 dark:text-slate-100 text-base font-medium pl-6 overflow-hidden whitespace-nowrap mb-1.5 text-ellipsis leading-tight\"},[_vm._v(\"\\n \"+_vm._s(item.title)+\"\\n \")]),_vm._v(\" \"),(_vm.isOver(item))?_c('span',{staticClass:\"ml-1 text-green-500 dark:text-green-500\"},[_c('fluent-icon',{attrs:{\"icon\":\"checkmark\"}})],1):_vm._e()]),_vm._v(\" \"),_c('span',{staticClass:\"step\"},[_vm._v(\"\\n \"+_vm._s(_vm.items.indexOf(item) + 1)+\"\\n \")]),_vm._v(\" \"),_c('p',{staticClass:\"pl-6 m-0 text-sm text-slate-600 dark:text-slate-300\"},[_vm._v(\"\\n \"+_vm._s(item.body)+\"\\n \")])])}),0)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Wizard.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Wizard.vue?vue&type=script&lang=js&\"","\n\n\n \n \n
\n
\n {{ item.title }}\n
\n \n \n \n \n
\n {{ items.indexOf(item) + 1 }}\n \n
\n {{ item.body }}\n
\n
\n \n\n\n\n","import { render, staticRenderFns } from \"./Wizard.vue?vue&type=template&id=38d8eb9f&scoped=true&\"\nimport script from \"./Wizard.vue?vue&type=script&lang=js&\"\nexport * from \"./Wizard.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Wizard.vue?vue&type=style&index=0&id=38d8eb9f&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"38d8eb9f\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js!../../../../../node_modules/css-loader/dist/cjs.js??ref--2-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/dist/cjs.js??ref--2-2!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Avatar.vue?vue&type=style&index=0&id=59e049c0&prod&scoped=true&lang=css&\"","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js!../../../../../node_modules/css-loader/dist/cjs.js??ref--3-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/dist/cjs.js??ref--3-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--3-3!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Thumbnail.vue?vue&type=style&index=0&id=70fe12bc&prod&lang=scss&scoped=true&\"","var requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar quot = /\"/g;\n\n// B.2.3.2.1 CreateHTML(string, tag, attribute, value)\n// https://tc39.es/ecma262/#sec-createhtml\nmodule.exports = function (string, tag, attribute, value) {\n var S = String(requireObjectCoercible(string));\n var p1 = '<' + tag;\n if (attribute !== '') p1 += ' ' + attribute + '=\"' + String(value).replace(quot, '"') + '\"';\n return p1 + '>' + S + '' + tag + '>';\n};\n","var fails = require('../internals/fails');\n\n// check the existence of a method, lowercase\n// of a tag and escaping quotes in arguments\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n var test = ''[METHOD_NAME]('\"');\n return test !== test.toLowerCase() || test.split('\"').length > 3;\n });\n};\n","import { Plugin } from 'prosemirror-state';\nimport { dropPoint } from 'prosemirror-transform'; // :: (options: ?Object) → Plugin\n// Create a plugin that, when added to a ProseMirror instance,\n// causes a decoration to show up at the drop position when something\n// is dragged over the editor.\n//\n// options::- These options are supported:\n//\n// color:: ?string\n// The color of the cursor. Defaults to `black`.\n//\n// width:: ?number\n// The precise width of the cursor in pixels. Defaults to 1.\n//\n// class:: ?string\n// A CSS class name to add to the cursor element.\n\nfunction dropCursor(options) {\n if (options === void 0) options = {};\n return new Plugin({\n view: function view(editorView) {\n return new DropCursorView(editorView, options);\n }\n });\n}\n\nvar DropCursorView = function DropCursorView(editorView, options) {\n var this$1 = this;\n this.editorView = editorView;\n this.width = options.width || 1;\n this.color = options.color || \"black\";\n this.class = options.class;\n this.cursorPos = null;\n this.element = null;\n this.timeout = null;\n this.handlers = [\"dragover\", \"dragend\", \"drop\", \"dragleave\"].map(function (name) {\n var handler = function handler(e) {\n return this$1[name](e);\n };\n\n editorView.dom.addEventListener(name, handler);\n return {\n name: name,\n handler: handler\n };\n });\n};\n\nDropCursorView.prototype.destroy = function destroy() {\n var this$1 = this;\n this.handlers.forEach(function (ref) {\n var name = ref.name;\n var handler = ref.handler;\n return this$1.editorView.dom.removeEventListener(name, handler);\n });\n};\n\nDropCursorView.prototype.update = function update(editorView, prevState) {\n if (this.cursorPos != null && prevState.doc != editorView.state.doc) {\n this.updateOverlay();\n }\n};\n\nDropCursorView.prototype.setCursor = function setCursor(pos) {\n if (pos == this.cursorPos) {\n return;\n }\n\n this.cursorPos = pos;\n\n if (pos == null) {\n this.element.parentNode.removeChild(this.element);\n this.element = null;\n } else {\n this.updateOverlay();\n }\n};\n\nDropCursorView.prototype.updateOverlay = function updateOverlay() {\n var $pos = this.editorView.state.doc.resolve(this.cursorPos),\n rect;\n\n if (!$pos.parent.inlineContent) {\n var before = $pos.nodeBefore,\n after = $pos.nodeAfter;\n\n if (before || after) {\n var nodeRect = this.editorView.nodeDOM(this.cursorPos - (before ? before.nodeSize : 0)).getBoundingClientRect();\n var top = before ? nodeRect.bottom : nodeRect.top;\n\n if (before && after) {\n top = (top + this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top) / 2;\n }\n\n rect = {\n left: nodeRect.left,\n right: nodeRect.right,\n top: top - this.width / 2,\n bottom: top + this.width / 2\n };\n }\n }\n\n if (!rect) {\n var coords = this.editorView.coordsAtPos(this.cursorPos);\n rect = {\n left: coords.left - this.width / 2,\n right: coords.left + this.width / 2,\n top: coords.top,\n bottom: coords.bottom\n };\n }\n\n var parent = this.editorView.dom.offsetParent;\n\n if (!this.element) {\n this.element = parent.appendChild(document.createElement(\"div\"));\n\n if (this.class) {\n this.element.className = this.class;\n }\n\n this.element.style.cssText = \"position: absolute; z-index: 50; pointer-events: none; background-color: \" + this.color;\n }\n\n var parentRect = !parent || parent == document.body && getComputedStyle(parent).position == \"static\" ? {\n left: -pageXOffset,\n top: -pageYOffset\n } : parent.getBoundingClientRect();\n this.element.style.left = rect.left - parentRect.left + \"px\";\n this.element.style.top = rect.top - parentRect.top + \"px\";\n this.element.style.width = rect.right - rect.left + \"px\";\n this.element.style.height = rect.bottom - rect.top + \"px\";\n};\n\nDropCursorView.prototype.scheduleRemoval = function scheduleRemoval(timeout) {\n var this$1 = this;\n clearTimeout(this.timeout);\n this.timeout = setTimeout(function () {\n return this$1.setCursor(null);\n }, timeout);\n};\n\nDropCursorView.prototype.dragover = function dragover(event) {\n if (!this.editorView.editable) {\n return;\n }\n\n var pos = this.editorView.posAtCoords({\n left: event.clientX,\n top: event.clientY\n });\n\n if (pos) {\n var target = pos.pos;\n\n if (this.editorView.dragging && this.editorView.dragging.slice) {\n target = dropPoint(this.editorView.state.doc, target, this.editorView.dragging.slice);\n\n if (target == null) {\n target = pos.pos;\n }\n }\n\n this.setCursor(target);\n this.scheduleRemoval(5000);\n }\n};\n\nDropCursorView.prototype.dragend = function dragend() {\n this.scheduleRemoval(20);\n};\n\nDropCursorView.prototype.drop = function drop() {\n this.scheduleRemoval(20);\n};\n\nDropCursorView.prototype.dragleave = function dragleave(event) {\n if (event.target == this.editorView.dom || !this.editorView.dom.contains(event.relatedTarget)) {\n this.setCursor(null);\n }\n};\n\nexport { dropCursor };","import { keydownHandler } from 'prosemirror-keymap';\nimport { NodeSelection, Selection, Plugin, TextSelection } from 'prosemirror-state';\nimport { DecorationSet, Decoration } from 'prosemirror-view';\nimport { Slice } from 'prosemirror-model'; // ::- Gap cursor selections are represented using this class. Its\n// `$anchor` and `$head` properties both point at the cursor position.\n\nvar GapCursor = /*@__PURE__*/function (Selection) {\n function GapCursor($pos) {\n Selection.call(this, $pos, $pos);\n }\n\n if (Selection) GapCursor.__proto__ = Selection;\n GapCursor.prototype = Object.create(Selection && Selection.prototype);\n GapCursor.prototype.constructor = GapCursor;\n\n GapCursor.prototype.map = function map(doc, mapping) {\n var $pos = doc.resolve(mapping.map(this.head));\n return GapCursor.valid($pos) ? new GapCursor($pos) : Selection.near($pos);\n };\n\n GapCursor.prototype.content = function content() {\n return Slice.empty;\n };\n\n GapCursor.prototype.eq = function eq(other) {\n return other instanceof GapCursor && other.head == this.head;\n };\n\n GapCursor.prototype.toJSON = function toJSON() {\n return {\n type: \"gapcursor\",\n pos: this.head\n };\n };\n\n GapCursor.fromJSON = function fromJSON(doc, json) {\n if (typeof json.pos != \"number\") {\n throw new RangeError(\"Invalid input for GapCursor.fromJSON\");\n }\n\n return new GapCursor(doc.resolve(json.pos));\n };\n\n GapCursor.prototype.getBookmark = function getBookmark() {\n return new GapBookmark(this.anchor);\n };\n\n GapCursor.valid = function valid($pos) {\n var parent = $pos.parent;\n\n if (parent.isTextblock || !closedBefore($pos) || !closedAfter($pos)) {\n return false;\n }\n\n var override = parent.type.spec.allowGapCursor;\n\n if (override != null) {\n return override;\n }\n\n var deflt = parent.contentMatchAt($pos.index()).defaultType;\n return deflt && deflt.isTextblock;\n };\n\n GapCursor.findFrom = function findFrom($pos, dir, mustMove) {\n search: for (;;) {\n if (!mustMove && GapCursor.valid($pos)) {\n return $pos;\n }\n\n var pos = $pos.pos,\n next = null; // Scan up from this position\n\n for (var d = $pos.depth;; d--) {\n var parent = $pos.node(d);\n\n if (dir > 0 ? $pos.indexAfter(d) < parent.childCount : $pos.index(d) > 0) {\n next = parent.child(dir > 0 ? $pos.indexAfter(d) : $pos.index(d) - 1);\n break;\n } else if (d == 0) {\n return null;\n }\n\n pos += dir;\n var $cur = $pos.doc.resolve(pos);\n\n if (GapCursor.valid($cur)) {\n return $cur;\n }\n } // And then down into the next node\n\n\n for (;;) {\n var inside = dir > 0 ? next.firstChild : next.lastChild;\n\n if (!inside) {\n if (next.isAtom && !next.isText && !NodeSelection.isSelectable(next)) {\n $pos = $pos.doc.resolve(pos + next.nodeSize * dir);\n mustMove = false;\n continue search;\n }\n\n break;\n }\n\n next = inside;\n pos += dir;\n var $cur$1 = $pos.doc.resolve(pos);\n\n if (GapCursor.valid($cur$1)) {\n return $cur$1;\n }\n }\n\n return null;\n }\n };\n\n return GapCursor;\n}(Selection);\n\nGapCursor.prototype.visible = false;\nSelection.jsonID(\"gapcursor\", GapCursor);\n\nvar GapBookmark = function GapBookmark(pos) {\n this.pos = pos;\n};\n\nGapBookmark.prototype.map = function map(mapping) {\n return new GapBookmark(mapping.map(this.pos));\n};\n\nGapBookmark.prototype.resolve = function resolve(doc) {\n var $pos = doc.resolve(this.pos);\n return GapCursor.valid($pos) ? new GapCursor($pos) : Selection.near($pos);\n};\n\nfunction closedBefore($pos) {\n for (var d = $pos.depth; d >= 0; d--) {\n var index = $pos.index(d); // At the start of this parent, look at next one\n\n if (index == 0) {\n continue;\n } // See if the node before (or its first ancestor) is closed\n\n\n for (var before = $pos.node(d).child(index - 1);; before = before.lastChild) {\n if (before.childCount == 0 && !before.inlineContent || before.isAtom || before.type.spec.isolating) {\n return true;\n }\n\n if (before.inlineContent) {\n return false;\n }\n }\n } // Hit start of document\n\n\n return true;\n}\n\nfunction closedAfter($pos) {\n for (var d = $pos.depth; d >= 0; d--) {\n var index = $pos.indexAfter(d),\n parent = $pos.node(d);\n\n if (index == parent.childCount) {\n continue;\n }\n\n for (var after = parent.child(index);; after = after.firstChild) {\n if (after.childCount == 0 && !after.inlineContent || after.isAtom || after.type.spec.isolating) {\n return true;\n }\n\n if (after.inlineContent) {\n return false;\n }\n }\n }\n\n return true;\n} // :: () → Plugin\n// Create a gap cursor plugin. When enabled, this will capture clicks\n// near and arrow-key-motion past places that don't have a normally\n// selectable position nearby, and create a gap cursor selection for\n// them. The cursor is drawn as an element with class\n// `ProseMirror-gapcursor`. You can either include\n// `style/gapcursor.css` from the package's directory or add your own\n// styles to make it visible.\n\n\nvar gapCursor = function gapCursor() {\n return new Plugin({\n props: {\n decorations: drawGapCursor,\n createSelectionBetween: function createSelectionBetween(_view, $anchor, $head) {\n if ($anchor.pos == $head.pos && GapCursor.valid($head)) {\n return new GapCursor($head);\n }\n },\n handleClick: handleClick,\n handleKeyDown: handleKeyDown\n }\n });\n};\n\nvar handleKeyDown = keydownHandler({\n \"ArrowLeft\": arrow(\"horiz\", -1),\n \"ArrowRight\": arrow(\"horiz\", 1),\n \"ArrowUp\": arrow(\"vert\", -1),\n \"ArrowDown\": arrow(\"vert\", 1)\n});\n\nfunction arrow(axis, dir) {\n var dirStr = axis == \"vert\" ? dir > 0 ? \"down\" : \"up\" : dir > 0 ? \"right\" : \"left\";\n return function (state, dispatch, view) {\n var sel = state.selection;\n var $start = dir > 0 ? sel.$to : sel.$from,\n mustMove = sel.empty;\n\n if (sel instanceof TextSelection) {\n if (!view.endOfTextblock(dirStr) || $start.depth == 0) {\n return false;\n }\n\n mustMove = false;\n $start = state.doc.resolve(dir > 0 ? $start.after() : $start.before());\n }\n\n var $found = GapCursor.findFrom($start, dir, mustMove);\n\n if (!$found) {\n return false;\n }\n\n if (dispatch) {\n dispatch(state.tr.setSelection(new GapCursor($found)));\n }\n\n return true;\n };\n}\n\nfunction handleClick(view, pos, event) {\n if (!view.editable) {\n return false;\n }\n\n var $pos = view.state.doc.resolve(pos);\n\n if (!GapCursor.valid($pos)) {\n return false;\n }\n\n var ref = view.posAtCoords({\n left: event.clientX,\n top: event.clientY\n });\n var inside = ref.inside;\n\n if (inside > -1 && NodeSelection.isSelectable(view.state.doc.nodeAt(inside))) {\n return false;\n }\n\n view.dispatch(view.state.tr.setSelection(new GapCursor($pos)));\n return true;\n}\n\nfunction drawGapCursor(state) {\n if (!(state.selection instanceof GapCursor)) {\n return null;\n }\n\n var node = document.createElement(\"div\");\n node.className = \"ProseMirror-gapcursor\";\n return DecorationSet.create(state.doc, [Decoration.widget(state.selection.head, node, {\n key: \"gapcursor\"\n })]);\n}\n\nexport { GapCursor, gapCursor };","import { Plugin } from 'prosemirror-state';\nimport { findWrapping, canJoin } from 'prosemirror-transform'; // ::- Input rules are regular expressions describing a piece of text\n// that, when typed, causes something to happen. This might be\n// changing two dashes into an emdash, wrapping a paragraph starting\n// with `\"> \"` into a blockquote, or something entirely different.\n\nvar InputRule = function InputRule(match, handler) {\n this.match = match;\n this.handler = typeof handler == \"string\" ? stringHandler(handler) : handler;\n};\n\nfunction stringHandler(string) {\n return function (state, match, start, end) {\n var insert = string;\n\n if (match[1]) {\n var offset = match[0].lastIndexOf(match[1]);\n insert += match[0].slice(offset + match[1].length);\n start += offset;\n var cutOff = start - end;\n\n if (cutOff > 0) {\n insert = match[0].slice(offset - cutOff, offset) + insert;\n start = end;\n }\n }\n\n return state.tr.insertText(insert, start, end);\n };\n}\n\nvar MAX_MATCH = 500; // :: (config: {rules: [InputRule]}) → Plugin\n// Create an input rules plugin. When enabled, it will cause text\n// input that matches any of the given rules to trigger the rule's\n// action.\n\nfunction inputRules(ref) {\n var rules = ref.rules;\n var plugin = new Plugin({\n state: {\n init: function init() {\n return null;\n },\n apply: function apply(tr, prev) {\n var stored = tr.getMeta(this);\n\n if (stored) {\n return stored;\n }\n\n return tr.selectionSet || tr.docChanged ? null : prev;\n }\n },\n props: {\n handleTextInput: function handleTextInput(view, from, to, text) {\n return run(view, from, to, text, rules, plugin);\n },\n handleDOMEvents: {\n compositionend: function compositionend(view) {\n setTimeout(function () {\n var ref = view.state.selection;\n var $cursor = ref.$cursor;\n\n if ($cursor) {\n run(view, $cursor.pos, $cursor.pos, \"\", rules, plugin);\n }\n });\n }\n }\n },\n isInputRules: true\n });\n return plugin;\n}\n\nfunction run(view, from, to, text, rules, plugin) {\n if (view.composing) {\n return false;\n }\n\n var state = view.state,\n $from = state.doc.resolve(from);\n\n if ($from.parent.type.spec.code) {\n return false;\n }\n\n var textBefore = $from.parent.textBetween(Math.max(0, $from.parentOffset - MAX_MATCH), $from.parentOffset, null, \"\\uFFFC\") + text;\n\n for (var i = 0; i < rules.length; i++) {\n var match = rules[i].match.exec(textBefore);\n var tr = match && rules[i].handler(state, match, from - (match[0].length - text.length), to);\n\n if (!tr) {\n continue;\n }\n\n view.dispatch(tr.setMeta(plugin, {\n transform: tr,\n from: from,\n to: to,\n text: text\n }));\n return true;\n }\n\n return false;\n} // :: (EditorState, ?(Transaction)) → bool\n// This is a command that will undo an input rule, if applying such a\n// rule was the last thing that the user did.\n\n\nfunction undoInputRule(state, dispatch) {\n var plugins = state.plugins;\n\n for (var i = 0; i < plugins.length; i++) {\n var plugin = plugins[i],\n undoable = void 0;\n\n if (plugin.spec.isInputRules && (undoable = plugin.getState(state))) {\n if (dispatch) {\n var tr = state.tr,\n toUndo = undoable.transform;\n\n for (var j = toUndo.steps.length - 1; j >= 0; j--) {\n tr.step(toUndo.steps[j].invert(toUndo.docs[j]));\n }\n\n if (undoable.text) {\n var marks = tr.doc.resolve(undoable.from).marks();\n tr.replaceWith(undoable.from, undoable.to, state.schema.text(undoable.text, marks));\n } else {\n tr.delete(undoable.from, undoable.to);\n }\n\n dispatch(tr);\n }\n\n return true;\n }\n }\n\n return false;\n} // :: InputRule Converts double dashes to an emdash.\n\n\nvar emDash = new InputRule(/--$/, \"—\"); // :: InputRule Converts three dots to an ellipsis character.\n\nvar ellipsis = new InputRule(/\\.\\.\\.$/, \"…\"); // :: InputRule “Smart” opening double quotes.\n\nvar openDoubleQuote = new InputRule(/(?:^|[\\s\\{\\[\\(\\<'\"\\u2018\\u201C])(\")$/, \"“\"); // :: InputRule “Smart” closing double quotes.\n\nvar closeDoubleQuote = new InputRule(/\"$/, \"”\"); // :: InputRule “Smart” opening single quotes.\n\nvar openSingleQuote = new InputRule(/(?:^|[\\s\\{\\[\\(\\<'\"\\u2018\\u201C])(')$/, \"‘\"); // :: InputRule “Smart” closing single quotes.\n\nvar closeSingleQuote = new InputRule(/'$/, \"’\"); // :: [InputRule] Smart-quote related input rules.\n\nvar smartQuotes = [openDoubleQuote, closeDoubleQuote, openSingleQuote, closeSingleQuote]; // :: (RegExp, NodeType, ?union