l2 ? (l1 + 0.05) / (l2 + 0.05) : (l2 + 0.05) / (l1 + 0.05);\n };\n\n var Color$2 = Color_1;\n var sqrt = Math.sqrt;\n var pow = Math.pow;\n var min = Math.min;\n var max = Math.max;\n var atan2 = Math.atan2;\n var abs = Math.abs;\n var cos = Math.cos;\n var sin = Math.sin;\n var exp = Math.exp;\n var PI = Math.PI;\n\n var deltaE = function(a, b, Kl, Kc, Kh) {\n if ( Kl === void 0 ) Kl=1;\n if ( Kc === void 0 ) Kc=1;\n if ( Kh === void 0 ) Kh=1;\n\n // Delta E (CIE 2000)\n // see http://www.brucelindbloom.com/index.html?Eqn_DeltaE_CIE2000.html\n var rad2deg = function(rad) {\n return 360 * rad / (2 * PI);\n };\n var deg2rad = function(deg) {\n return (2 * PI * deg) / 360;\n };\n a = new Color$2(a);\n b = new Color$2(b);\n var ref = Array.from(a.lab());\n var L1 = ref[0];\n var a1 = ref[1];\n var b1 = ref[2];\n var ref$1 = Array.from(b.lab());\n var L2 = ref$1[0];\n var a2 = ref$1[1];\n var b2 = ref$1[2];\n var avgL = (L1 + L2)/2;\n var C1 = sqrt(pow(a1, 2) + pow(b1, 2));\n var C2 = sqrt(pow(a2, 2) + pow(b2, 2));\n var avgC = (C1 + C2)/2;\n var G = 0.5*(1-sqrt(pow(avgC, 7)/(pow(avgC, 7) + pow(25, 7))));\n var a1p = a1*(1+G);\n var a2p = a2*(1+G);\n var C1p = sqrt(pow(a1p, 2) + pow(b1, 2));\n var C2p = sqrt(pow(a2p, 2) + pow(b2, 2));\n var avgCp = (C1p + C2p)/2;\n var arctan1 = rad2deg(atan2(b1, a1p));\n var arctan2 = rad2deg(atan2(b2, a2p));\n var h1p = arctan1 >= 0 ? arctan1 : arctan1 + 360;\n var h2p = arctan2 >= 0 ? arctan2 : arctan2 + 360;\n var avgHp = abs(h1p - h2p) > 180 ? (h1p + h2p + 360)/2 : (h1p + h2p)/2;\n var T = 1 - 0.17*cos(deg2rad(avgHp - 30)) + 0.24*cos(deg2rad(2*avgHp)) + 0.32*cos(deg2rad(3*avgHp + 6)) - 0.2*cos(deg2rad(4*avgHp - 63));\n var deltaHp = h2p - h1p;\n deltaHp = abs(deltaHp) <= 180 ? deltaHp : h2p <= h1p ? deltaHp + 360 : deltaHp - 360;\n deltaHp = 2*sqrt(C1p*C2p)*sin(deg2rad(deltaHp)/2);\n var deltaL = L2 - L1;\n var deltaCp = C2p - C1p; \n var sl = 1 + (0.015*pow(avgL - 50, 2))/sqrt(20 + pow(avgL - 50, 2));\n var sc = 1 + 0.045*avgCp;\n var sh = 1 + 0.015*avgCp*T;\n var deltaTheta = 30*exp(-pow((avgHp - 275)/25, 2));\n var Rc = 2*sqrt(pow(avgCp, 7)/(pow(avgCp, 7) + pow(25, 7)));\n var Rt = -Rc*sin(2*deg2rad(deltaTheta));\n var result = sqrt(pow(deltaL/(Kl*sl), 2) + pow(deltaCp/(Kc*sc), 2) + pow(deltaHp/(Kh*sh), 2) + Rt*(deltaCp/(Kc*sc))*(deltaHp/(Kh*sh)));\n return max(0, min(100, result));\n };\n\n var Color$1 = Color_1;\n\n // simple Euclidean distance\n var distance = function(a, b, mode) {\n if ( mode === void 0 ) mode='lab';\n\n // Delta E (CIE 1976)\n // see http://www.brucelindbloom.com/index.html?Equations.html\n a = new Color$1(a);\n b = new Color$1(b);\n var l1 = a.get(mode);\n var l2 = b.get(mode);\n var sum_sq = 0;\n for (var i in l1) {\n var d = (l1[i] || 0) - (l2[i] || 0);\n sum_sq += d*d;\n }\n return Math.sqrt(sum_sq);\n };\n\n var Color = Color_1;\n\n var valid = function () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n try {\n new (Function.prototype.bind.apply( Color, [ null ].concat( args) ));\n return true;\n } catch (e) {\n return false;\n }\n };\n\n // some pre-defined color scales:\n var chroma$1 = chroma_1;\n\n var scale = scale$2;\n\n var scales = {\n \tcool: function cool() { return scale([chroma$1.hsl(180,1,.9), chroma$1.hsl(250,.7,.4)]) },\n \thot: function hot() { return scale(['#000','#f00','#ff0','#fff']).mode('rgb') }\n };\n\n /**\n ColorBrewer colors for chroma.js\n\n Copyright (c) 2002 Cynthia Brewer, Mark Harrower, and The\n Pennsylvania State University.\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 http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software distributed\n under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR\n CONDITIONS OF ANY KIND, either express or implied. See the License for the\n specific language governing permissions and limitations under the License.\n */\n\n var colorbrewer = {\n // sequential\n OrRd: ['#fff7ec', '#fee8c8', '#fdd49e', '#fdbb84', '#fc8d59', '#ef6548', '#d7301f', '#b30000', '#7f0000'],\n PuBu: ['#fff7fb', '#ece7f2', '#d0d1e6', '#a6bddb', '#74a9cf', '#3690c0', '#0570b0', '#045a8d', '#023858'],\n BuPu: ['#f7fcfd', '#e0ecf4', '#bfd3e6', '#9ebcda', '#8c96c6', '#8c6bb1', '#88419d', '#810f7c', '#4d004b'],\n Oranges: ['#fff5eb', '#fee6ce', '#fdd0a2', '#fdae6b', '#fd8d3c', '#f16913', '#d94801', '#a63603', '#7f2704'],\n BuGn: ['#f7fcfd', '#e5f5f9', '#ccece6', '#99d8c9', '#66c2a4', '#41ae76', '#238b45', '#006d2c', '#00441b'],\n YlOrBr: ['#ffffe5', '#fff7bc', '#fee391', '#fec44f', '#fe9929', '#ec7014', '#cc4c02', '#993404', '#662506'],\n YlGn: ['#ffffe5', '#f7fcb9', '#d9f0a3', '#addd8e', '#78c679', '#41ab5d', '#238443', '#006837', '#004529'],\n Reds: ['#fff5f0', '#fee0d2', '#fcbba1', '#fc9272', '#fb6a4a', '#ef3b2c', '#cb181d', '#a50f15', '#67000d'],\n RdPu: ['#fff7f3', '#fde0dd', '#fcc5c0', '#fa9fb5', '#f768a1', '#dd3497', '#ae017e', '#7a0177', '#49006a'],\n Greens: ['#f7fcf5', '#e5f5e0', '#c7e9c0', '#a1d99b', '#74c476', '#41ab5d', '#238b45', '#006d2c', '#00441b'],\n YlGnBu: ['#ffffd9', '#edf8b1', '#c7e9b4', '#7fcdbb', '#41b6c4', '#1d91c0', '#225ea8', '#253494', '#081d58'],\n Purples: ['#fcfbfd', '#efedf5', '#dadaeb', '#bcbddc', '#9e9ac8', '#807dba', '#6a51a3', '#54278f', '#3f007d'],\n GnBu: ['#f7fcf0', '#e0f3db', '#ccebc5', '#a8ddb5', '#7bccc4', '#4eb3d3', '#2b8cbe', '#0868ac', '#084081'],\n Greys: ['#ffffff', '#f0f0f0', '#d9d9d9', '#bdbdbd', '#969696', '#737373', '#525252', '#252525', '#000000'],\n YlOrRd: ['#ffffcc', '#ffeda0', '#fed976', '#feb24c', '#fd8d3c', '#fc4e2a', '#e31a1c', '#bd0026', '#800026'],\n PuRd: ['#f7f4f9', '#e7e1ef', '#d4b9da', '#c994c7', '#df65b0', '#e7298a', '#ce1256', '#980043', '#67001f'],\n Blues: ['#f7fbff', '#deebf7', '#c6dbef', '#9ecae1', '#6baed6', '#4292c6', '#2171b5', '#08519c', '#08306b'],\n PuBuGn: ['#fff7fb', '#ece2f0', '#d0d1e6', '#a6bddb', '#67a9cf', '#3690c0', '#02818a', '#016c59', '#014636'],\n Viridis: ['#440154', '#482777', '#3f4a8a', '#31678e', '#26838f', '#1f9d8a', '#6cce5a', '#b6de2b', '#fee825'],\n\n // diverging\n\n Spectral: ['#9e0142', '#d53e4f', '#f46d43', '#fdae61', '#fee08b', '#ffffbf', '#e6f598', '#abdda4', '#66c2a5', '#3288bd', '#5e4fa2'],\n RdYlGn: ['#a50026', '#d73027', '#f46d43', '#fdae61', '#fee08b', '#ffffbf', '#d9ef8b', '#a6d96a', '#66bd63', '#1a9850', '#006837'],\n RdBu: ['#67001f', '#b2182b', '#d6604d', '#f4a582', '#fddbc7', '#f7f7f7', '#d1e5f0', '#92c5de', '#4393c3', '#2166ac', '#053061'],\n PiYG: ['#8e0152', '#c51b7d', '#de77ae', '#f1b6da', '#fde0ef', '#f7f7f7', '#e6f5d0', '#b8e186', '#7fbc41', '#4d9221', '#276419'],\n PRGn: ['#40004b', '#762a83', '#9970ab', '#c2a5cf', '#e7d4e8', '#f7f7f7', '#d9f0d3', '#a6dba0', '#5aae61', '#1b7837', '#00441b'],\n RdYlBu: ['#a50026', '#d73027', '#f46d43', '#fdae61', '#fee090', '#ffffbf', '#e0f3f8', '#abd9e9', '#74add1', '#4575b4', '#313695'],\n BrBG: ['#543005', '#8c510a', '#bf812d', '#dfc27d', '#f6e8c3', '#f5f5f5', '#c7eae5', '#80cdc1', '#35978f', '#01665e', '#003c30'],\n RdGy: ['#67001f', '#b2182b', '#d6604d', '#f4a582', '#fddbc7', '#ffffff', '#e0e0e0', '#bababa', '#878787', '#4d4d4d', '#1a1a1a'],\n PuOr: ['#7f3b08', '#b35806', '#e08214', '#fdb863', '#fee0b6', '#f7f7f7', '#d8daeb', '#b2abd2', '#8073ac', '#542788', '#2d004b'],\n\n // qualitative\n\n Set2: ['#66c2a5', '#fc8d62', '#8da0cb', '#e78ac3', '#a6d854', '#ffd92f', '#e5c494', '#b3b3b3'],\n Accent: ['#7fc97f', '#beaed4', '#fdc086', '#ffff99', '#386cb0', '#f0027f', '#bf5b17', '#666666'],\n Set1: ['#e41a1c', '#377eb8', '#4daf4a', '#984ea3', '#ff7f00', '#ffff33', '#a65628', '#f781bf', '#999999'],\n Set3: ['#8dd3c7', '#ffffb3', '#bebada', '#fb8072', '#80b1d3', '#fdb462', '#b3de69', '#fccde5', '#d9d9d9', '#bc80bd', '#ccebc5', '#ffed6f'],\n Dark2: ['#1b9e77', '#d95f02', '#7570b3', '#e7298a', '#66a61e', '#e6ab02', '#a6761d', '#666666'],\n Paired: ['#a6cee3', '#1f78b4', '#b2df8a', '#33a02c', '#fb9a99', '#e31a1c', '#fdbf6f', '#ff7f00', '#cab2d6', '#6a3d9a', '#ffff99', '#b15928'],\n Pastel2: ['#b3e2cd', '#fdcdac', '#cbd5e8', '#f4cae4', '#e6f5c9', '#fff2ae', '#f1e2cc', '#cccccc'],\n Pastel1: ['#fbb4ae', '#b3cde3', '#ccebc5', '#decbe4', '#fed9a6', '#ffffcc', '#e5d8bd', '#fddaec', '#f2f2f2'],\n };\n\n // add lowercase aliases for case-insensitive matches\n for (var i = 0, list = Object.keys(colorbrewer); i < list.length; i += 1) {\n var key = list[i];\n\n colorbrewer[key.toLowerCase()] = colorbrewer[key];\n }\n\n var colorbrewer_1 = colorbrewer;\n\n var chroma = chroma_1;\n\n // feel free to comment out anything to rollup\n // a smaller chroma.js built\n\n // io --> convert colors\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n // operators --> modify existing Colors\n\n\n\n\n\n\n\n\n\n\n // interpolators\n\n\n\n\n\n\n\n\n\n\n\n\n // generators -- > create new colors\n chroma.average = average;\n chroma.bezier = bezier_1;\n chroma.blend = blend_1;\n chroma.cubehelix = cubehelix;\n chroma.mix = chroma.interpolate = mix$1;\n chroma.random = random_1;\n chroma.scale = scale$2;\n\n // other utility methods\n chroma.analyze = analyze_1.analyze;\n chroma.contrast = contrast;\n chroma.deltaE = deltaE;\n chroma.distance = distance;\n chroma.limits = analyze_1.limits;\n chroma.valid = valid;\n\n // scale\n chroma.scales = scales;\n\n // colors\n chroma.colors = w3cx11_1;\n chroma.brewer = colorbrewer_1;\n\n var chroma_js = chroma;\n\n return chroma_js;\n\n}));\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"static/js/\" + chunkId + \".\" + \"28cb0dcd\" + \".chunk.js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"my-app:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"/EmnePlanleggern/\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t179: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n// no on chunks loaded\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkmy_app\"] = self[\"webpackChunkmy_app\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","export default function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}","export default function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}","import arrayWithoutHoles from \"./arrayWithoutHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableSpread from \"./nonIterableSpread.js\";\nexport default function _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}","export default function _nonIterableSpread() {\n 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}","export default function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}","export default function _nonIterableRest() {\n 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}","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nexport default function _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}","export default function _iterableToArrayLimit(r, l) {\n var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (null != t) {\n var e,\n n,\n i,\n u,\n a = [],\n f = !0,\n o = !1;\n try {\n if (i = (t = t.call(r)).next, 0 === l) {\n if (Object(t) !== t) return;\n f = !1;\n } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n } catch (r) {\n o = !0, n = r;\n } finally {\n try {\n if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return;\n } finally {\n if (o) throw n;\n }\n }\n return a;\n }\n}","export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\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 return obj;\n}","import defineProperty from \"./defineProperty.js\";\nfunction ownKeys(e, r) {\n var t = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n r && (o = o.filter(function (r) {\n return Object.getOwnPropertyDescriptor(e, r).enumerable;\n })), t.push.apply(t, o);\n }\n return t;\n}\nexport default function _objectSpread2(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = null != arguments[r] ? arguments[r] : {};\n r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n defineProperty(e, r, t[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n });\n }\n return e;\n}","import * as React from 'react';\nexport default function useEvent(callback) {\n var fnRef = React.useRef();\n fnRef.current = callback;\n var memoFn = React.useCallback(function () {\n var _fnRef$current;\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n return (_fnRef$current = fnRef.current) === null || _fnRef$current === void 0 ? void 0 : _fnRef$current.call.apply(_fnRef$current, [fnRef].concat(args));\n }, []);\n return memoFn;\n}","import * as React from 'react';\nimport canUseDom from \"../Dom/canUseDom\";\n\n/**\n * Wrap `React.useLayoutEffect` which will not throw warning message in test env\n */\nvar useInternalLayoutEffect = process.env.NODE_ENV !== 'test' && canUseDom() ? React.useLayoutEffect : React.useEffect;\nvar useLayoutEffect = function useLayoutEffect(callback, deps) {\n var firstMountRef = React.useRef(true);\n useInternalLayoutEffect(function () {\n return callback(firstMountRef.current);\n }, deps);\n\n // We tell react that first mount has passed\n useInternalLayoutEffect(function () {\n firstMountRef.current = false;\n return function () {\n firstMountRef.current = true;\n };\n }, []);\n};\nexport var useLayoutUpdateEffect = function useLayoutUpdateEffect(callback, deps) {\n useLayoutEffect(function (firstMount) {\n if (!firstMount) {\n return callback();\n }\n }, deps);\n};\nexport default useLayoutEffect;","export default function canUseDom() {\n return !!(typeof window !== 'undefined' && window.document && window.document.createElement);\n}","import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport * as React from 'react';\n/**\n * Same as React.useState but `setState` accept `ignoreDestroy` param to not to setState after destroyed.\n * We do not make this auto is to avoid real memory leak.\n * Developer should confirm it's safe to ignore themselves.\n */\nexport default function useSafeState(defaultValue) {\n var destroyRef = React.useRef(false);\n var _React$useState = React.useState(defaultValue),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n value = _React$useState2[0],\n setValue = _React$useState2[1];\n React.useEffect(function () {\n destroyRef.current = false;\n return function () {\n destroyRef.current = true;\n };\n }, []);\n function safeSetState(updater, ignoreDestroy) {\n if (ignoreDestroy && destroyRef.current) {\n return;\n }\n setValue(updater);\n }\n return [value, safeSetState];\n}","import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport useEvent from \"./useEvent\";\nimport { useLayoutUpdateEffect } from \"./useLayoutEffect\";\nimport useState from \"./useState\";\n/** We only think `undefined` is empty */\nfunction hasValue(value) {\n return value !== undefined;\n}\n\n/**\n * Similar to `useState` but will use props value if provided.\n * Note that internal use rc-util `useState` hook.\n */\nexport default function useMergedState(defaultStateValue, option) {\n var _ref = option || {},\n defaultValue = _ref.defaultValue,\n value = _ref.value,\n onChange = _ref.onChange,\n postState = _ref.postState;\n\n // ======================= Init =======================\n var _useState = useState(function () {\n if (hasValue(value)) {\n return value;\n } else if (hasValue(defaultValue)) {\n return typeof defaultValue === 'function' ? defaultValue() : defaultValue;\n } else {\n return typeof defaultStateValue === 'function' ? defaultStateValue() : defaultStateValue;\n }\n }),\n _useState2 = _slicedToArray(_useState, 2),\n innerValue = _useState2[0],\n setInnerValue = _useState2[1];\n var mergedValue = value !== undefined ? value : innerValue;\n var postMergedValue = postState ? postState(mergedValue) : mergedValue;\n\n // ====================== Change ======================\n var onChangeFn = useEvent(onChange);\n var _useState3 = useState([mergedValue]),\n _useState4 = _slicedToArray(_useState3, 2),\n prevValue = _useState4[0],\n setPrevValue = _useState4[1];\n useLayoutUpdateEffect(function () {\n var prev = prevValue[0];\n if (innerValue !== prev) {\n onChangeFn(innerValue, prev);\n }\n }, [prevValue]);\n\n // Sync value back to `undefined` when it from control to un-control\n useLayoutUpdateEffect(function () {\n if (!hasValue(value)) {\n setInnerValue(value);\n }\n }, [value]);\n\n // ====================== Update ======================\n var triggerChange = useEvent(function (updater, ignoreDestroy) {\n setInnerValue(updater, ignoreDestroy);\n setPrevValue([mergedValue], ignoreDestroy);\n });\n return [postMergedValue, triggerChange];\n}","/* eslint-disable no-console */\nvar warned = {};\nvar preWarningFns = [];\n\n/**\n * Pre warning enable you to parse content before console.error.\n * Modify to null will prevent warning.\n */\nexport var preMessage = function preMessage(fn) {\n preWarningFns.push(fn);\n};\nexport function warning(valid, message) {\n // Support uglify\n if (process.env.NODE_ENV !== 'production' && !valid && console !== undefined) {\n var finalMessage = preWarningFns.reduce(function (msg, preMessageFn) {\n return preMessageFn(msg !== null && msg !== void 0 ? msg : '', 'warning');\n }, message);\n if (finalMessage) {\n console.error(\"Warning: \".concat(finalMessage));\n }\n }\n}\nexport function note(valid, message) {\n // Support uglify\n if (process.env.NODE_ENV !== 'production' && !valid && console !== undefined) {\n var finalMessage = preWarningFns.reduce(function (msg, preMessageFn) {\n return preMessageFn(msg !== null && msg !== void 0 ? msg : '', 'note');\n }, message);\n if (finalMessage) {\n console.warn(\"Note: \".concat(finalMessage));\n }\n }\n}\nexport function resetWarned() {\n warned = {};\n}\nexport function call(method, valid, message) {\n if (!valid && !warned[message]) {\n method(false, message);\n warned[message] = true;\n }\n}\nexport function warningOnce(valid, message) {\n call(warning, valid, message);\n}\nexport function noteOnce(valid, message) {\n call(note, valid, message);\n}\nwarningOnce.preMessage = preMessage;\nwarningOnce.resetWarned = resetWarned;\nwarningOnce.noteOnce = noteOnce;\nexport default warningOnce;\n/* eslint-enable */","import _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport warning from \"./warning\";\n\n/**\n * Deeply compares two object literals.\n * @param obj1 object 1\n * @param obj2 object 2\n * @param shallow shallow compare\n * @returns\n */\nfunction isEqual(obj1, obj2) {\n var shallow = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n // https://github.com/mapbox/mapbox-gl-js/pull/5979/files#diff-fde7145050c47cc3a306856efd5f9c3016e86e859de9afbd02c879be5067e58f\n var refSet = new Set();\n function deepEqual(a, b) {\n var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n var circular = refSet.has(a);\n warning(!circular, 'Warning: There may be circular references');\n if (circular) {\n return false;\n }\n if (a === b) {\n return true;\n }\n if (shallow && level > 1) {\n return false;\n }\n refSet.add(a);\n var newLevel = level + 1;\n if (Array.isArray(a)) {\n if (!Array.isArray(b) || a.length !== b.length) {\n return false;\n }\n for (var i = 0; i < a.length; i++) {\n if (!deepEqual(a[i], b[i], newLevel)) {\n return false;\n }\n }\n return true;\n }\n if (a && b && _typeof(a) === 'object' && _typeof(b) === 'object') {\n var keys = Object.keys(a);\n if (keys.length !== Object.keys(b).length) {\n return false;\n }\n return keys.every(function (key) {\n return deepEqual(a[key], b[key], newLevel);\n });\n }\n // other\n return false;\n }\n return deepEqual(obj1, obj2);\n}\nexport default isEqual;","import * as React from 'react';\nvar SliderContext = /*#__PURE__*/React.createContext({\n min: 0,\n max: 0,\n direction: 'ltr',\n step: 1,\n includedStart: 0,\n includedEnd: 0,\n tabIndex: 0,\n keyboard: true,\n styles: {},\n classNames: {}\n});\nexport default SliderContext;","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}","/**\n * @ignore\n * some key-codes definition and utils from closure-library\n * @author yiminghe@gmail.com\n */\n\nvar KeyCode = {\n /**\n * MAC_ENTER\n */\n MAC_ENTER: 3,\n /**\n * BACKSPACE\n */\n BACKSPACE: 8,\n /**\n * TAB\n */\n TAB: 9,\n /**\n * NUMLOCK on FF/Safari Mac\n */\n NUM_CENTER: 12,\n // NUMLOCK on FF/Safari Mac\n /**\n * ENTER\n */\n ENTER: 13,\n /**\n * SHIFT\n */\n SHIFT: 16,\n /**\n * CTRL\n */\n CTRL: 17,\n /**\n * ALT\n */\n ALT: 18,\n /**\n * PAUSE\n */\n PAUSE: 19,\n /**\n * CAPS_LOCK\n */\n CAPS_LOCK: 20,\n /**\n * ESC\n */\n ESC: 27,\n /**\n * SPACE\n */\n SPACE: 32,\n /**\n * PAGE_UP\n */\n PAGE_UP: 33,\n // also NUM_NORTH_EAST\n /**\n * PAGE_DOWN\n */\n PAGE_DOWN: 34,\n // also NUM_SOUTH_EAST\n /**\n * END\n */\n END: 35,\n // also NUM_SOUTH_WEST\n /**\n * HOME\n */\n HOME: 36,\n // also NUM_NORTH_WEST\n /**\n * LEFT\n */\n LEFT: 37,\n // also NUM_WEST\n /**\n * UP\n */\n UP: 38,\n // also NUM_NORTH\n /**\n * RIGHT\n */\n RIGHT: 39,\n // also NUM_EAST\n /**\n * DOWN\n */\n DOWN: 40,\n // also NUM_SOUTH\n /**\n * PRINT_SCREEN\n */\n PRINT_SCREEN: 44,\n /**\n * INSERT\n */\n INSERT: 45,\n // also NUM_INSERT\n /**\n * DELETE\n */\n DELETE: 46,\n // also NUM_DELETE\n /**\n * ZERO\n */\n ZERO: 48,\n /**\n * ONE\n */\n ONE: 49,\n /**\n * TWO\n */\n TWO: 50,\n /**\n * THREE\n */\n THREE: 51,\n /**\n * FOUR\n */\n FOUR: 52,\n /**\n * FIVE\n */\n FIVE: 53,\n /**\n * SIX\n */\n SIX: 54,\n /**\n * SEVEN\n */\n SEVEN: 55,\n /**\n * EIGHT\n */\n EIGHT: 56,\n /**\n * NINE\n */\n NINE: 57,\n /**\n * QUESTION_MARK\n */\n QUESTION_MARK: 63,\n // needs localization\n /**\n * A\n */\n A: 65,\n /**\n * B\n */\n B: 66,\n /**\n * C\n */\n C: 67,\n /**\n * D\n */\n D: 68,\n /**\n * E\n */\n E: 69,\n /**\n * F\n */\n F: 70,\n /**\n * G\n */\n G: 71,\n /**\n * H\n */\n H: 72,\n /**\n * I\n */\n I: 73,\n /**\n * J\n */\n J: 74,\n /**\n * K\n */\n K: 75,\n /**\n * L\n */\n L: 76,\n /**\n * M\n */\n M: 77,\n /**\n * N\n */\n N: 78,\n /**\n * O\n */\n O: 79,\n /**\n * P\n */\n P: 80,\n /**\n * Q\n */\n Q: 81,\n /**\n * R\n */\n R: 82,\n /**\n * S\n */\n S: 83,\n /**\n * T\n */\n T: 84,\n /**\n * U\n */\n U: 85,\n /**\n * V\n */\n V: 86,\n /**\n * W\n */\n W: 87,\n /**\n * X\n */\n X: 88,\n /**\n * Y\n */\n Y: 89,\n /**\n * Z\n */\n Z: 90,\n /**\n * META\n */\n META: 91,\n // WIN_KEY_LEFT\n /**\n * WIN_KEY_RIGHT\n */\n WIN_KEY_RIGHT: 92,\n /**\n * CONTEXT_MENU\n */\n CONTEXT_MENU: 93,\n /**\n * NUM_ZERO\n */\n NUM_ZERO: 96,\n /**\n * NUM_ONE\n */\n NUM_ONE: 97,\n /**\n * NUM_TWO\n */\n NUM_TWO: 98,\n /**\n * NUM_THREE\n */\n NUM_THREE: 99,\n /**\n * NUM_FOUR\n */\n NUM_FOUR: 100,\n /**\n * NUM_FIVE\n */\n NUM_FIVE: 101,\n /**\n * NUM_SIX\n */\n NUM_SIX: 102,\n /**\n * NUM_SEVEN\n */\n NUM_SEVEN: 103,\n /**\n * NUM_EIGHT\n */\n NUM_EIGHT: 104,\n /**\n * NUM_NINE\n */\n NUM_NINE: 105,\n /**\n * NUM_MULTIPLY\n */\n NUM_MULTIPLY: 106,\n /**\n * NUM_PLUS\n */\n NUM_PLUS: 107,\n /**\n * NUM_MINUS\n */\n NUM_MINUS: 109,\n /**\n * NUM_PERIOD\n */\n NUM_PERIOD: 110,\n /**\n * NUM_DIVISION\n */\n NUM_DIVISION: 111,\n /**\n * F1\n */\n F1: 112,\n /**\n * F2\n */\n F2: 113,\n /**\n * F3\n */\n F3: 114,\n /**\n * F4\n */\n F4: 115,\n /**\n * F5\n */\n F5: 116,\n /**\n * F6\n */\n F6: 117,\n /**\n * F7\n */\n F7: 118,\n /**\n * F8\n */\n F8: 119,\n /**\n * F9\n */\n F9: 120,\n /**\n * F10\n */\n F10: 121,\n /**\n * F11\n */\n F11: 122,\n /**\n * F12\n */\n F12: 123,\n /**\n * NUMLOCK\n */\n NUMLOCK: 144,\n /**\n * SEMICOLON\n */\n SEMICOLON: 186,\n // needs localization\n /**\n * DASH\n */\n DASH: 189,\n // needs localization\n /**\n * EQUALS\n */\n EQUALS: 187,\n // needs localization\n /**\n * COMMA\n */\n COMMA: 188,\n // needs localization\n /**\n * PERIOD\n */\n PERIOD: 190,\n // needs localization\n /**\n * SLASH\n */\n SLASH: 191,\n // needs localization\n /**\n * APOSTROPHE\n */\n APOSTROPHE: 192,\n // needs localization\n /**\n * SINGLE_QUOTE\n */\n SINGLE_QUOTE: 222,\n // needs localization\n /**\n * OPEN_SQUARE_BRACKET\n */\n OPEN_SQUARE_BRACKET: 219,\n // needs localization\n /**\n * BACKSLASH\n */\n BACKSLASH: 220,\n // needs localization\n /**\n * CLOSE_SQUARE_BRACKET\n */\n CLOSE_SQUARE_BRACKET: 221,\n // needs localization\n /**\n * WIN_KEY\n */\n WIN_KEY: 224,\n /**\n * MAC_FF_META\n */\n MAC_FF_META: 224,\n // Firefox (Gecko) fires this for the meta key instead of 91\n /**\n * WIN_IME\n */\n WIN_IME: 229,\n // ======================== Function ========================\n /**\n * whether text and modified key is entered at the same time.\n */\n isTextModifyingKeyEvent: function isTextModifyingKeyEvent(e) {\n var keyCode = e.keyCode;\n if (e.altKey && !e.ctrlKey || e.metaKey ||\n // Function keys don't generate text\n keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) {\n return false;\n }\n\n // The following keys are quite harmless, even in combination with\n // CTRL, ALT or SHIFT.\n switch (keyCode) {\n case KeyCode.ALT:\n case KeyCode.CAPS_LOCK:\n case KeyCode.CONTEXT_MENU:\n case KeyCode.CTRL:\n case KeyCode.DOWN:\n case KeyCode.END:\n case KeyCode.ESC:\n case KeyCode.HOME:\n case KeyCode.INSERT:\n case KeyCode.LEFT:\n case KeyCode.MAC_FF_META:\n case KeyCode.META:\n case KeyCode.NUMLOCK:\n case KeyCode.NUM_CENTER:\n case KeyCode.PAGE_DOWN:\n case KeyCode.PAGE_UP:\n case KeyCode.PAUSE:\n case KeyCode.PRINT_SCREEN:\n case KeyCode.RIGHT:\n case KeyCode.SHIFT:\n case KeyCode.UP:\n case KeyCode.WIN_KEY:\n case KeyCode.WIN_KEY_RIGHT:\n return false;\n default:\n return true;\n }\n },\n /**\n * whether character is entered.\n */\n isCharacterKey: function isCharacterKey(keyCode) {\n if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) {\n return true;\n }\n if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) {\n return true;\n }\n if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) {\n return true;\n }\n\n // Safari sends zero key code for non-latin characters.\n if (window.navigator.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) {\n return true;\n }\n switch (keyCode) {\n case KeyCode.SPACE:\n case KeyCode.QUESTION_MARK:\n case KeyCode.NUM_PLUS:\n case KeyCode.NUM_MINUS:\n case KeyCode.NUM_PERIOD:\n case KeyCode.NUM_DIVISION:\n case KeyCode.SEMICOLON:\n case KeyCode.DASH:\n case KeyCode.EQUALS:\n case KeyCode.COMMA:\n case KeyCode.PERIOD:\n case KeyCode.SLASH:\n case KeyCode.APOSTROPHE:\n case KeyCode.SINGLE_QUOTE:\n case KeyCode.OPEN_SQUARE_BRACKET:\n case KeyCode.BACKSLASH:\n case KeyCode.CLOSE_SQUARE_BRACKET:\n return true;\n default:\n return false;\n }\n }\n};\nexport default KeyCode;","export function getOffset(value, min, max) {\n return (value - min) / (max - min);\n}\nexport function getDirectionStyle(direction, value, min, max) {\n var offset = getOffset(value, min, max);\n var positionStyle = {};\n switch (direction) {\n case 'rtl':\n positionStyle.right = \"\".concat(offset * 100, \"%\");\n positionStyle.transform = 'translateX(50%)';\n break;\n case 'btt':\n positionStyle.bottom = \"\".concat(offset * 100, \"%\");\n positionStyle.transform = 'translateY(50%)';\n break;\n case 'ttb':\n positionStyle.top = \"\".concat(offset * 100, \"%\");\n positionStyle.transform = 'translateY(-50%)';\n break;\n default:\n positionStyle.left = \"\".concat(offset * 100, \"%\");\n positionStyle.transform = 'translateX(-50%)';\n break;\n }\n return positionStyle;\n}\n\n/** Return index value if is list or return value directly */\nexport function getIndex(value, index) {\n return Array.isArray(value) ? value[index] : value;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"prefixCls\", \"value\", \"valueIndex\", \"onStartMove\", \"style\", \"render\", \"dragging\", \"onOffsetChange\"];\nimport cls from 'classnames';\nimport KeyCode from \"rc-util/es/KeyCode\";\nimport * as React from 'react';\nimport SliderContext from \"../context\";\nimport { getDirectionStyle, getIndex } from \"../util\";\nvar Handle = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var _cls, _getIndex;\n var prefixCls = props.prefixCls,\n value = props.value,\n valueIndex = props.valueIndex,\n onStartMove = props.onStartMove,\n style = props.style,\n render = props.render,\n dragging = props.dragging,\n onOffsetChange = props.onOffsetChange,\n restProps = _objectWithoutProperties(props, _excluded);\n var _React$useContext = React.useContext(SliderContext),\n min = _React$useContext.min,\n max = _React$useContext.max,\n direction = _React$useContext.direction,\n disabled = _React$useContext.disabled,\n keyboard = _React$useContext.keyboard,\n range = _React$useContext.range,\n tabIndex = _React$useContext.tabIndex,\n ariaLabelForHandle = _React$useContext.ariaLabelForHandle,\n ariaLabelledByForHandle = _React$useContext.ariaLabelledByForHandle,\n ariaValueTextFormatterForHandle = _React$useContext.ariaValueTextFormatterForHandle,\n styles = _React$useContext.styles,\n classNames = _React$useContext.classNames;\n var handlePrefixCls = \"\".concat(prefixCls, \"-handle\");\n\n // ============================ Events ============================\n var onInternalStartMove = function onInternalStartMove(e) {\n if (!disabled) {\n onStartMove(e, valueIndex);\n }\n };\n\n // =========================== Keyboard ===========================\n var onKeyDown = function onKeyDown(e) {\n if (!disabled && keyboard) {\n var offset = null;\n\n // Change the value\n switch (e.which || e.keyCode) {\n case KeyCode.LEFT:\n offset = direction === 'ltr' || direction === 'btt' ? -1 : 1;\n break;\n case KeyCode.RIGHT:\n offset = direction === 'ltr' || direction === 'btt' ? 1 : -1;\n break;\n\n // Up is plus\n case KeyCode.UP:\n offset = direction !== 'ttb' ? 1 : -1;\n break;\n\n // Down is minus\n case KeyCode.DOWN:\n offset = direction !== 'ttb' ? -1 : 1;\n break;\n case KeyCode.HOME:\n offset = 'min';\n break;\n case KeyCode.END:\n offset = 'max';\n break;\n case KeyCode.PAGE_UP:\n offset = 2;\n break;\n case KeyCode.PAGE_DOWN:\n offset = -2;\n break;\n }\n if (offset !== null) {\n e.preventDefault();\n onOffsetChange(offset, valueIndex);\n }\n }\n };\n\n // ============================ Offset ============================\n var positionStyle = getDirectionStyle(direction, value, min, max);\n\n // ============================ Render ============================\n var handleNode = /*#__PURE__*/React.createElement(\"div\", _extends({\n ref: ref,\n className: cls(handlePrefixCls, (_cls = {}, _defineProperty(_cls, \"\".concat(handlePrefixCls, \"-\").concat(valueIndex + 1), range), _defineProperty(_cls, \"\".concat(handlePrefixCls, \"-dragging\"), dragging), _cls), classNames.handle),\n style: _objectSpread(_objectSpread(_objectSpread({}, positionStyle), style), styles.handle),\n onMouseDown: onInternalStartMove,\n onTouchStart: onInternalStartMove,\n onKeyDown: onKeyDown,\n tabIndex: disabled ? null : getIndex(tabIndex, valueIndex),\n role: \"slider\",\n \"aria-valuemin\": min,\n \"aria-valuemax\": max,\n \"aria-valuenow\": value,\n \"aria-disabled\": disabled,\n \"aria-label\": getIndex(ariaLabelForHandle, valueIndex),\n \"aria-labelledby\": getIndex(ariaLabelledByForHandle, valueIndex),\n \"aria-valuetext\": (_getIndex = getIndex(ariaValueTextFormatterForHandle, valueIndex)) === null || _getIndex === void 0 ? void 0 : _getIndex(value),\n \"aria-orientation\": direction === 'ltr' || direction === 'rtl' ? 'horizontal' : 'vertical'\n }, restProps));\n\n // Customize\n if (render) {\n handleNode = render(handleNode, {\n index: valueIndex,\n prefixCls: prefixCls,\n value: value,\n dragging: dragging\n });\n }\n return handleNode;\n});\nif (process.env.NODE_ENV !== 'production') {\n Handle.displayName = 'Handle';\n}\nexport default Handle;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"prefixCls\", \"style\", \"onStartMove\", \"onOffsetChange\", \"values\", \"handleRender\", \"draggingIndex\"];\nimport * as React from 'react';\nimport Handle from \"./Handle\";\nimport { getIndex } from \"../util\";\nvar Handles = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var prefixCls = props.prefixCls,\n style = props.style,\n onStartMove = props.onStartMove,\n onOffsetChange = props.onOffsetChange,\n values = props.values,\n handleRender = props.handleRender,\n draggingIndex = props.draggingIndex,\n restProps = _objectWithoutProperties(props, _excluded);\n var handlesRef = React.useRef({});\n React.useImperativeHandle(ref, function () {\n return {\n focus: function focus(index) {\n var _handlesRef$current$i;\n (_handlesRef$current$i = handlesRef.current[index]) === null || _handlesRef$current$i === void 0 ? void 0 : _handlesRef$current$i.focus();\n }\n };\n });\n return /*#__PURE__*/React.createElement(React.Fragment, null, values.map(function (value, index) {\n return /*#__PURE__*/React.createElement(Handle, _extends({\n ref: function ref(node) {\n if (!node) {\n delete handlesRef.current[index];\n } else {\n handlesRef.current[index] = node;\n }\n },\n dragging: draggingIndex === index,\n prefixCls: prefixCls,\n style: getIndex(style, index),\n key: index,\n value: value,\n valueIndex: index,\n onStartMove: onStartMove,\n onOffsetChange: onOffsetChange,\n render: handleRender\n }, restProps));\n }));\n});\nif (process.env.NODE_ENV !== 'production') {\n Handles.displayName = 'Handles';\n}\nexport default Handles;","import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport * as React from 'react';\nfunction getPosition(e) {\n var obj = 'touches' in e ? e.touches[0] : e;\n return {\n pageX: obj.pageX,\n pageY: obj.pageY\n };\n}\nexport default function useDrag(containerRef, direction, rawValues, min, max, formatValue, triggerChange, finishChange, offsetValues) {\n var _React$useState = React.useState(null),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n draggingValue = _React$useState2[0],\n setDraggingValue = _React$useState2[1];\n var _React$useState3 = React.useState(-1),\n _React$useState4 = _slicedToArray(_React$useState3, 2),\n draggingIndex = _React$useState4[0],\n setDraggingIndex = _React$useState4[1];\n var _React$useState5 = React.useState(rawValues),\n _React$useState6 = _slicedToArray(_React$useState5, 2),\n cacheValues = _React$useState6[0],\n setCacheValues = _React$useState6[1];\n var _React$useState7 = React.useState(rawValues),\n _React$useState8 = _slicedToArray(_React$useState7, 2),\n originValues = _React$useState8[0],\n setOriginValues = _React$useState8[1];\n var mouseMoveEventRef = React.useRef(null);\n var mouseUpEventRef = React.useRef(null);\n React.useEffect(function () {\n if (draggingIndex === -1) {\n setCacheValues(rawValues);\n }\n }, [rawValues, draggingIndex]);\n\n // Clean up event\n React.useEffect(function () {\n return function () {\n document.removeEventListener('mousemove', mouseMoveEventRef.current);\n document.removeEventListener('mouseup', mouseUpEventRef.current);\n document.removeEventListener('touchmove', mouseMoveEventRef.current);\n document.removeEventListener('touchend', mouseUpEventRef.current);\n };\n }, []);\n var flushValues = function flushValues(nextValues, nextValue) {\n // Perf: Only update state when value changed\n if (cacheValues.some(function (val, i) {\n return val !== nextValues[i];\n })) {\n if (nextValue !== undefined) {\n setDraggingValue(nextValue);\n }\n setCacheValues(nextValues);\n triggerChange(nextValues);\n }\n };\n var updateCacheValue = function updateCacheValue(valueIndex, offsetPercent) {\n // Basic point offset\n\n if (valueIndex === -1) {\n // >>>> Dragging on the track\n var startValue = originValues[0];\n var endValue = originValues[originValues.length - 1];\n var maxStartOffset = min - startValue;\n var maxEndOffset = max - endValue;\n\n // Get valid offset\n var offset = offsetPercent * (max - min);\n offset = Math.max(offset, maxStartOffset);\n offset = Math.min(offset, maxEndOffset);\n\n // Use first value to revert back of valid offset (like steps marks)\n var formatStartValue = formatValue(startValue + offset);\n offset = formatStartValue - startValue;\n var cloneCacheValues = originValues.map(function (val) {\n return val + offset;\n });\n flushValues(cloneCacheValues);\n } else {\n // >>>> Dragging on the handle\n var offsetDist = (max - min) * offsetPercent;\n\n // Always start with the valueIndex origin value\n var cloneValues = _toConsumableArray(cacheValues);\n cloneValues[valueIndex] = originValues[valueIndex];\n var next = offsetValues(cloneValues, offsetDist, valueIndex, 'dist');\n flushValues(next.values, next.value);\n }\n };\n\n // Resolve closure\n var updateCacheValueRef = React.useRef(updateCacheValue);\n updateCacheValueRef.current = updateCacheValue;\n var onStartMove = function onStartMove(e, valueIndex) {\n e.stopPropagation();\n var originValue = rawValues[valueIndex];\n setDraggingIndex(valueIndex);\n setDraggingValue(originValue);\n setOriginValues(rawValues);\n var _getPosition = getPosition(e),\n startX = _getPosition.pageX,\n startY = _getPosition.pageY;\n\n // Moving\n var onMouseMove = function onMouseMove(event) {\n event.preventDefault();\n var _getPosition2 = getPosition(event),\n moveX = _getPosition2.pageX,\n moveY = _getPosition2.pageY;\n var offsetX = moveX - startX;\n var offsetY = moveY - startY;\n var _containerRef$current = containerRef.current.getBoundingClientRect(),\n width = _containerRef$current.width,\n height = _containerRef$current.height;\n var offSetPercent;\n switch (direction) {\n case 'btt':\n offSetPercent = -offsetY / height;\n break;\n case 'ttb':\n offSetPercent = offsetY / height;\n break;\n case 'rtl':\n offSetPercent = -offsetX / width;\n break;\n default:\n offSetPercent = offsetX / width;\n }\n updateCacheValueRef.current(valueIndex, offSetPercent);\n };\n\n // End\n var onMouseUp = function onMouseUp(event) {\n event.preventDefault();\n document.removeEventListener('mouseup', onMouseUp);\n document.removeEventListener('mousemove', onMouseMove);\n document.removeEventListener('touchend', onMouseUp);\n document.removeEventListener('touchmove', onMouseMove);\n mouseMoveEventRef.current = null;\n mouseUpEventRef.current = null;\n setDraggingIndex(-1);\n finishChange();\n };\n document.addEventListener('mouseup', onMouseUp);\n document.addEventListener('mousemove', onMouseMove);\n document.addEventListener('touchend', onMouseUp);\n document.addEventListener('touchmove', onMouseMove);\n mouseMoveEventRef.current = onMouseMove;\n mouseUpEventRef.current = onMouseUp;\n };\n\n // Only return cache value when it mapping with rawValues\n var returnValues = React.useMemo(function () {\n var sourceValues = _toConsumableArray(rawValues).sort(function (a, b) {\n return a - b;\n });\n var targetValues = _toConsumableArray(cacheValues).sort(function (a, b) {\n return a - b;\n });\n return sourceValues.every(function (val, index) {\n return val === targetValues[index];\n }) ? cacheValues : rawValues;\n }, [rawValues, cacheValues]);\n return [draggingIndex, draggingValue, returnValues, onStartMove];\n}","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { getDirectionStyle } from \"../util\";\nimport SliderContext from \"../context\";\nexport default function Mark(props) {\n var prefixCls = props.prefixCls,\n style = props.style,\n children = props.children,\n value = props.value,\n _onClick = props.onClick;\n var _React$useContext = React.useContext(SliderContext),\n min = _React$useContext.min,\n max = _React$useContext.max,\n direction = _React$useContext.direction,\n includedStart = _React$useContext.includedStart,\n includedEnd = _React$useContext.includedEnd,\n included = _React$useContext.included;\n var textCls = \"\".concat(prefixCls, \"-text\");\n\n // ============================ Offset ============================\n var positionStyle = getDirectionStyle(direction, value, min, max);\n return /*#__PURE__*/React.createElement(\"span\", {\n className: classNames(textCls, _defineProperty({}, \"\".concat(textCls, \"-active\"), included && includedStart <= value && value <= includedEnd)),\n style: _objectSpread(_objectSpread({}, positionStyle), style),\n onMouseDown: function onMouseDown(e) {\n e.stopPropagation();\n },\n onClick: function onClick() {\n _onClick(value);\n }\n }, children);\n}","import * as React from 'react';\nimport Mark from \"./Mark\";\nexport default function Marks(props) {\n var prefixCls = props.prefixCls,\n marks = props.marks,\n onClick = props.onClick;\n var markPrefixCls = \"\".concat(prefixCls, \"-mark\");\n\n // Not render mark if empty\n if (!marks.length) {\n return null;\n }\n return /*#__PURE__*/React.createElement(\"div\", {\n className: markPrefixCls\n }, marks.map(function (_ref) {\n var value = _ref.value,\n style = _ref.style,\n label = _ref.label;\n return /*#__PURE__*/React.createElement(Mark, {\n key: value,\n prefixCls: markPrefixCls,\n style: style,\n value: value,\n onClick: onClick\n }, label);\n }));\n}","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { getDirectionStyle } from \"../util\";\nimport SliderContext from \"../context\";\nexport default function Dot(props) {\n var prefixCls = props.prefixCls,\n value = props.value,\n style = props.style,\n activeStyle = props.activeStyle;\n var _React$useContext = React.useContext(SliderContext),\n min = _React$useContext.min,\n max = _React$useContext.max,\n direction = _React$useContext.direction,\n included = _React$useContext.included,\n includedStart = _React$useContext.includedStart,\n includedEnd = _React$useContext.includedEnd;\n var dotClassName = \"\".concat(prefixCls, \"-dot\");\n var active = included && includedStart <= value && value <= includedEnd;\n\n // ============================ Offset ============================\n var mergedStyle = _objectSpread(_objectSpread({}, getDirectionStyle(direction, value, min, max)), typeof style === 'function' ? style(value) : style);\n if (active) {\n mergedStyle = _objectSpread(_objectSpread({}, mergedStyle), typeof activeStyle === 'function' ? activeStyle(value) : activeStyle);\n }\n return /*#__PURE__*/React.createElement(\"span\", {\n className: classNames(dotClassName, _defineProperty({}, \"\".concat(dotClassName, \"-active\"), active)),\n style: mergedStyle\n });\n}","import * as React from 'react';\nimport SliderContext from \"../context\";\nimport Dot from \"./Dot\";\nexport default function Steps(props) {\n var prefixCls = props.prefixCls,\n marks = props.marks,\n dots = props.dots,\n style = props.style,\n activeStyle = props.activeStyle;\n var _React$useContext = React.useContext(SliderContext),\n min = _React$useContext.min,\n max = _React$useContext.max,\n step = _React$useContext.step;\n var stepDots = React.useMemo(function () {\n var dotSet = new Set();\n\n // Add marks\n marks.forEach(function (mark) {\n dotSet.add(mark.value);\n });\n\n // Fill dots\n if (dots && step !== null) {\n var current = min;\n while (current <= max) {\n dotSet.add(current);\n current += step;\n }\n }\n return Array.from(dotSet);\n }, [min, max, step, dots, marks]);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-step\")\n }, stepDots.map(function (dotValue) {\n return /*#__PURE__*/React.createElement(Dot, {\n prefixCls: prefixCls,\n key: dotValue,\n value: dotValue,\n style: style,\n activeStyle: activeStyle\n });\n }));\n}","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport cls from 'classnames';\nimport * as React from 'react';\nimport SliderContext from \"../context\";\nimport { getOffset } from \"../util\";\nexport default function Track(props) {\n var _cls;\n var prefixCls = props.prefixCls,\n style = props.style,\n start = props.start,\n end = props.end,\n index = props.index,\n onStartMove = props.onStartMove,\n replaceCls = props.replaceCls;\n var _React$useContext = React.useContext(SliderContext),\n direction = _React$useContext.direction,\n min = _React$useContext.min,\n max = _React$useContext.max,\n disabled = _React$useContext.disabled,\n range = _React$useContext.range,\n classNames = _React$useContext.classNames;\n var trackPrefixCls = \"\".concat(prefixCls, \"-track\");\n var offsetStart = getOffset(start, min, max);\n var offsetEnd = getOffset(end, min, max);\n\n // ============================ Events ============================\n var onInternalStartMove = function onInternalStartMove(e) {\n if (!disabled && onStartMove) {\n onStartMove(e, -1);\n }\n };\n\n // ============================ Render ============================\n var positionStyle = {};\n switch (direction) {\n case 'rtl':\n positionStyle.right = \"\".concat(offsetStart * 100, \"%\");\n positionStyle.width = \"\".concat(offsetEnd * 100 - offsetStart * 100, \"%\");\n break;\n case 'btt':\n positionStyle.bottom = \"\".concat(offsetStart * 100, \"%\");\n positionStyle.height = \"\".concat(offsetEnd * 100 - offsetStart * 100, \"%\");\n break;\n case 'ttb':\n positionStyle.top = \"\".concat(offsetStart * 100, \"%\");\n positionStyle.height = \"\".concat(offsetEnd * 100 - offsetStart * 100, \"%\");\n break;\n default:\n positionStyle.left = \"\".concat(offsetStart * 100, \"%\");\n positionStyle.width = \"\".concat(offsetEnd * 100 - offsetStart * 100, \"%\");\n }\n var className = replaceCls || cls(trackPrefixCls, (_cls = {}, _defineProperty(_cls, \"\".concat(trackPrefixCls, \"-\").concat(index + 1), index !== null && range), _defineProperty(_cls, \"\".concat(prefixCls, \"-track-draggable\"), onStartMove), _cls), classNames.track);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: className,\n style: _objectSpread(_objectSpread({}, positionStyle), style),\n onMouseDown: onInternalStartMove,\n onTouchStart: onInternalStartMove\n });\n}","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport cls from 'classnames';\nimport * as React from 'react';\nimport SliderContext from \"../context\";\nimport { getIndex } from \"../util\";\nimport Track from \"./Track\";\nexport default function Tracks(props) {\n var prefixCls = props.prefixCls,\n style = props.style,\n values = props.values,\n startPoint = props.startPoint,\n onStartMove = props.onStartMove;\n var _React$useContext = React.useContext(SliderContext),\n included = _React$useContext.included,\n range = _React$useContext.range,\n min = _React$useContext.min,\n styles = _React$useContext.styles,\n classNames = _React$useContext.classNames;\n\n // =========================== List ===========================\n var trackList = React.useMemo(function () {\n if (!range) {\n // null value do not have track\n if (values.length === 0) {\n return [];\n }\n var startValue = startPoint !== null && startPoint !== void 0 ? startPoint : min;\n var endValue = values[0];\n return [{\n start: Math.min(startValue, endValue),\n end: Math.max(startValue, endValue)\n }];\n }\n\n // Multiple\n var list = [];\n for (var i = 0; i < values.length - 1; i += 1) {\n list.push({\n start: values[i],\n end: values[i + 1]\n });\n }\n return list;\n }, [values, range, startPoint, min]);\n\n // ========================== Render ==========================\n var tracksNode = null;\n if (classNames.tracks || styles.tracks) {\n tracksNode = /*#__PURE__*/React.createElement(Track, {\n index: null,\n prefixCls: prefixCls,\n start: trackList[0].start,\n end: trackList[trackList.length - 1].end,\n replaceCls: cls(classNames.tracks, \"\".concat(prefixCls, \"-tracks\")),\n style: styles.tracks\n });\n }\n return included ? /*#__PURE__*/React.createElement(React.Fragment, null, tracksNode, trackList.map(function (_ref, index) {\n var start = _ref.start,\n end = _ref.end;\n return /*#__PURE__*/React.createElement(Track, {\n index: index,\n prefixCls: prefixCls,\n style: _objectSpread(_objectSpread({}, getIndex(style, index)), styles.track),\n start: start,\n end: end,\n key: index,\n onStartMove: onStartMove\n });\n })) : null;\n}","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport cls from 'classnames';\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport isEqual from \"rc-util/es/isEqual\";\nimport warning from \"rc-util/es/warning\";\nimport * as React from 'react';\nimport SliderContext from \"./context\";\nimport Handles from \"./Handles\";\nimport useDrag from \"./hooks/useDrag\";\nimport useOffset from \"./hooks/useOffset\";\nimport Marks from \"./Marks\";\nimport Steps from \"./Steps\";\nimport Tracks from \"./Tracks\";\n\n/**\n * New:\n * - click mark to update range value\n * - handleRender\n * - Fix handle with count not correct\n * - Fix pushable not work in some case\n * - No more FindDOMNode\n * - Move all position related style into inline style\n * - Key: up is plus, down is minus\n * - fix Key with step = null not align with marks\n * - Change range should not trigger onChange\n * - keyboard support pushable\n */\n\nvar Slider = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var _cls;\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'rc-slider' : _props$prefixCls,\n className = props.className,\n style = props.style,\n classNames = props.classNames,\n styles = props.styles,\n _props$disabled = props.disabled,\n disabled = _props$disabled === void 0 ? false : _props$disabled,\n _props$keyboard = props.keyboard,\n keyboard = _props$keyboard === void 0 ? true : _props$keyboard,\n autoFocus = props.autoFocus,\n onFocus = props.onFocus,\n onBlur = props.onBlur,\n _props$min = props.min,\n min = _props$min === void 0 ? 0 : _props$min,\n _props$max = props.max,\n max = _props$max === void 0 ? 100 : _props$max,\n _props$step = props.step,\n step = _props$step === void 0 ? 1 : _props$step,\n value = props.value,\n defaultValue = props.defaultValue,\n range = props.range,\n count = props.count,\n onChange = props.onChange,\n onBeforeChange = props.onBeforeChange,\n onAfterChange = props.onAfterChange,\n _props$allowCross = props.allowCross,\n allowCross = _props$allowCross === void 0 ? true : _props$allowCross,\n _props$pushable = props.pushable,\n pushable = _props$pushable === void 0 ? false : _props$pushable,\n draggableTrack = props.draggableTrack,\n reverse = props.reverse,\n vertical = props.vertical,\n _props$included = props.included,\n included = _props$included === void 0 ? true : _props$included,\n startPoint = props.startPoint,\n trackStyle = props.trackStyle,\n handleStyle = props.handleStyle,\n railStyle = props.railStyle,\n dotStyle = props.dotStyle,\n activeDotStyle = props.activeDotStyle,\n marks = props.marks,\n dots = props.dots,\n handleRender = props.handleRender,\n _props$tabIndex = props.tabIndex,\n tabIndex = _props$tabIndex === void 0 ? 0 : _props$tabIndex,\n ariaLabelForHandle = props.ariaLabelForHandle,\n ariaLabelledByForHandle = props.ariaLabelledByForHandle,\n ariaValueTextFormatterForHandle = props.ariaValueTextFormatterForHandle;\n var handlesRef = React.useRef();\n var containerRef = React.useRef();\n var direction = React.useMemo(function () {\n if (vertical) {\n return reverse ? 'ttb' : 'btt';\n }\n return reverse ? 'rtl' : 'ltr';\n }, [reverse, vertical]);\n\n // ============================ Range =============================\n var mergedMin = React.useMemo(function () {\n return isFinite(min) ? min : 0;\n }, [min]);\n var mergedMax = React.useMemo(function () {\n return isFinite(max) ? max : 100;\n }, [max]);\n\n // ============================= Step =============================\n var mergedStep = React.useMemo(function () {\n return step !== null && step <= 0 ? 1 : step;\n }, [step]);\n\n // ============================= Push =============================\n var mergedPush = React.useMemo(function () {\n if (typeof pushable === 'boolean') {\n return pushable ? mergedStep : false;\n }\n return pushable >= 0 ? pushable : false;\n }, [pushable, mergedStep]);\n\n // ============================ Marks =============================\n var markList = React.useMemo(function () {\n var keys = Object.keys(marks || {});\n return keys.map(function (key) {\n var mark = marks[key];\n var markObj = {\n value: Number(key)\n };\n if (mark && _typeof(mark) === 'object' && ! /*#__PURE__*/React.isValidElement(mark) && ('label' in mark || 'style' in mark)) {\n markObj.style = mark.style;\n markObj.label = mark.label;\n } else {\n markObj.label = mark;\n }\n return markObj;\n }).filter(function (_ref) {\n var label = _ref.label;\n return label || typeof label === 'number';\n }).sort(function (a, b) {\n return a.value - b.value;\n });\n }, [marks]);\n\n // ============================ Format ============================\n var _useOffset = useOffset(mergedMin, mergedMax, mergedStep, markList, allowCross, mergedPush),\n _useOffset2 = _slicedToArray(_useOffset, 2),\n formatValue = _useOffset2[0],\n offsetValues = _useOffset2[1];\n\n // ============================ Values ============================\n var _useMergedState = useMergedState(defaultValue, {\n value: value\n }),\n _useMergedState2 = _slicedToArray(_useMergedState, 2),\n mergedValue = _useMergedState2[0],\n setValue = _useMergedState2[1];\n var rawValues = React.useMemo(function () {\n var valueList = mergedValue === null || mergedValue === undefined ? [] : Array.isArray(mergedValue) ? mergedValue : [mergedValue];\n var _valueList = _slicedToArray(valueList, 1),\n _valueList$ = _valueList[0],\n val0 = _valueList$ === void 0 ? mergedMin : _valueList$;\n var returnValues = mergedValue === null ? [] : [val0];\n\n // Format as range\n if (range) {\n returnValues = _toConsumableArray(valueList);\n\n // When count provided or value is `undefined`, we fill values\n if (count || mergedValue === undefined) {\n var pointCount = count >= 0 ? count + 1 : 2;\n returnValues = returnValues.slice(0, pointCount);\n\n // Fill with count\n while (returnValues.length < pointCount) {\n var _returnValues;\n returnValues.push((_returnValues = returnValues[returnValues.length - 1]) !== null && _returnValues !== void 0 ? _returnValues : mergedMin);\n }\n }\n returnValues.sort(function (a, b) {\n return a - b;\n });\n }\n\n // Align in range\n returnValues.forEach(function (val, index) {\n returnValues[index] = formatValue(val);\n });\n return returnValues;\n }, [mergedValue, range, mergedMin, count, formatValue]);\n\n // =========================== onChange ===========================\n var rawValuesRef = React.useRef(rawValues);\n rawValuesRef.current = rawValues;\n var getTriggerValue = function getTriggerValue(triggerValues) {\n return range ? triggerValues : triggerValues[0];\n };\n var triggerChange = function triggerChange(nextValues) {\n // Order first\n var cloneNextValues = _toConsumableArray(nextValues).sort(function (a, b) {\n return a - b;\n });\n\n // Trigger event if needed\n if (onChange && !isEqual(cloneNextValues, rawValuesRef.current, true)) {\n onChange(getTriggerValue(cloneNextValues));\n }\n\n // We set this later since it will re-render component immediately\n setValue(cloneNextValues);\n };\n var changeToCloseValue = function changeToCloseValue(newValue) {\n if (!disabled) {\n var valueIndex = 0;\n var valueDist = mergedMax - mergedMin;\n rawValues.forEach(function (val, index) {\n var dist = Math.abs(newValue - val);\n if (dist <= valueDist) {\n valueDist = dist;\n valueIndex = index;\n }\n });\n\n // Create new values\n var cloneNextValues = _toConsumableArray(rawValues);\n cloneNextValues[valueIndex] = newValue;\n\n // Fill value to match default 2\n if (range && !rawValues.length && count === undefined) {\n cloneNextValues.push(newValue);\n }\n onBeforeChange === null || onBeforeChange === void 0 ? void 0 : onBeforeChange(getTriggerValue(cloneNextValues));\n triggerChange(cloneNextValues);\n onAfterChange === null || onAfterChange === void 0 ? void 0 : onAfterChange(getTriggerValue(cloneNextValues));\n }\n };\n\n // ============================ Click =============================\n var onSliderMouseDown = function onSliderMouseDown(e) {\n e.preventDefault();\n var _containerRef$current = containerRef.current.getBoundingClientRect(),\n width = _containerRef$current.width,\n height = _containerRef$current.height,\n left = _containerRef$current.left,\n top = _containerRef$current.top,\n bottom = _containerRef$current.bottom,\n right = _containerRef$current.right;\n var clientX = e.clientX,\n clientY = e.clientY;\n var percent;\n switch (direction) {\n case 'btt':\n percent = (bottom - clientY) / height;\n break;\n case 'ttb':\n percent = (clientY - top) / height;\n break;\n case 'rtl':\n percent = (right - clientX) / width;\n break;\n default:\n percent = (clientX - left) / width;\n }\n var nextValue = mergedMin + percent * (mergedMax - mergedMin);\n changeToCloseValue(formatValue(nextValue));\n };\n\n // =========================== Keyboard ===========================\n var _React$useState = React.useState(null),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n keyboardValue = _React$useState2[0],\n setKeyboardValue = _React$useState2[1];\n var onHandleOffsetChange = function onHandleOffsetChange(offset, valueIndex) {\n if (!disabled) {\n var next = offsetValues(rawValues, offset, valueIndex);\n onBeforeChange === null || onBeforeChange === void 0 ? void 0 : onBeforeChange(getTriggerValue(rawValues));\n triggerChange(next.values);\n onAfterChange === null || onAfterChange === void 0 ? void 0 : onAfterChange(getTriggerValue(next.values));\n setKeyboardValue(next.value);\n }\n };\n React.useEffect(function () {\n if (keyboardValue !== null) {\n var valueIndex = rawValues.indexOf(keyboardValue);\n if (valueIndex >= 0) {\n handlesRef.current.focus(valueIndex);\n }\n }\n setKeyboardValue(null);\n }, [keyboardValue]);\n\n // ============================= Drag =============================\n var mergedDraggableTrack = React.useMemo(function () {\n if (draggableTrack && mergedStep === null) {\n if (process.env.NODE_ENV !== 'production') {\n warning(false, '`draggableTrack` is not supported when `step` is `null`.');\n }\n return false;\n }\n return draggableTrack;\n }, [draggableTrack, mergedStep]);\n var finishChange = function finishChange() {\n onAfterChange === null || onAfterChange === void 0 ? void 0 : onAfterChange(getTriggerValue(rawValuesRef.current));\n };\n var _useDrag = useDrag(containerRef, direction, rawValues, mergedMin, mergedMax, formatValue, triggerChange, finishChange, offsetValues),\n _useDrag2 = _slicedToArray(_useDrag, 4),\n draggingIndex = _useDrag2[0],\n draggingValue = _useDrag2[1],\n cacheValues = _useDrag2[2],\n onStartDrag = _useDrag2[3];\n var onStartMove = function onStartMove(e, valueIndex) {\n onStartDrag(e, valueIndex);\n onBeforeChange === null || onBeforeChange === void 0 ? void 0 : onBeforeChange(getTriggerValue(rawValuesRef.current));\n };\n\n // Auto focus for updated handle\n var dragging = draggingIndex !== -1;\n React.useEffect(function () {\n if (!dragging) {\n var valueIndex = rawValues.lastIndexOf(draggingValue);\n handlesRef.current.focus(valueIndex);\n }\n }, [dragging]);\n\n // =========================== Included ===========================\n var sortedCacheValues = React.useMemo(function () {\n return _toConsumableArray(cacheValues).sort(function (a, b) {\n return a - b;\n });\n }, [cacheValues]);\n\n // Provide a range values with included [min, max]\n // Used for Track, Mark & Dot\n var _React$useMemo = React.useMemo(function () {\n if (!range) {\n return [mergedMin, sortedCacheValues[0]];\n }\n return [sortedCacheValues[0], sortedCacheValues[sortedCacheValues.length - 1]];\n }, [sortedCacheValues, range, mergedMin]),\n _React$useMemo2 = _slicedToArray(_React$useMemo, 2),\n includedStart = _React$useMemo2[0],\n includedEnd = _React$useMemo2[1];\n\n // ============================= Refs =============================\n React.useImperativeHandle(ref, function () {\n return {\n focus: function focus() {\n handlesRef.current.focus(0);\n },\n blur: function blur() {\n var _document = document,\n activeElement = _document.activeElement;\n if (containerRef.current.contains(activeElement)) {\n activeElement === null || activeElement === void 0 ? void 0 : activeElement.blur();\n }\n }\n };\n });\n\n // ========================== Auto Focus ==========================\n React.useEffect(function () {\n if (autoFocus) {\n handlesRef.current.focus(0);\n }\n }, []);\n\n // =========================== Context ============================\n var context = React.useMemo(function () {\n return {\n min: mergedMin,\n max: mergedMax,\n direction: direction,\n disabled: disabled,\n keyboard: keyboard,\n step: mergedStep,\n included: included,\n includedStart: includedStart,\n includedEnd: includedEnd,\n range: range,\n tabIndex: tabIndex,\n ariaLabelForHandle: ariaLabelForHandle,\n ariaLabelledByForHandle: ariaLabelledByForHandle,\n ariaValueTextFormatterForHandle: ariaValueTextFormatterForHandle,\n styles: styles || {},\n classNames: classNames || {}\n };\n }, [mergedMin, mergedMax, direction, disabled, keyboard, mergedStep, included, includedStart, includedEnd, range, tabIndex, ariaLabelForHandle, ariaLabelledByForHandle, ariaValueTextFormatterForHandle, styles, classNames]);\n\n // ============================ Render ============================\n return /*#__PURE__*/React.createElement(SliderContext.Provider, {\n value: context\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: containerRef,\n className: cls(prefixCls, className, (_cls = {}, _defineProperty(_cls, \"\".concat(prefixCls, \"-disabled\"), disabled), _defineProperty(_cls, \"\".concat(prefixCls, \"-vertical\"), vertical), _defineProperty(_cls, \"\".concat(prefixCls, \"-horizontal\"), !vertical), _defineProperty(_cls, \"\".concat(prefixCls, \"-with-marks\"), markList.length), _cls)),\n style: style,\n onMouseDown: onSliderMouseDown\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: cls(\"\".concat(prefixCls, \"-rail\"), classNames === null || classNames === void 0 ? void 0 : classNames.rail),\n style: _objectSpread(_objectSpread({}, railStyle), styles === null || styles === void 0 ? void 0 : styles.rail)\n }), /*#__PURE__*/React.createElement(Tracks, {\n prefixCls: prefixCls,\n style: trackStyle,\n values: sortedCacheValues,\n startPoint: startPoint,\n onStartMove: mergedDraggableTrack ? onStartMove : null\n }), /*#__PURE__*/React.createElement(Steps, {\n prefixCls: prefixCls,\n marks: markList,\n dots: dots,\n style: dotStyle,\n activeStyle: activeDotStyle\n }), /*#__PURE__*/React.createElement(Handles, {\n ref: handlesRef,\n prefixCls: prefixCls,\n style: handleStyle,\n values: cacheValues,\n draggingIndex: draggingIndex,\n onStartMove: onStartMove,\n onOffsetChange: onHandleOffsetChange,\n onFocus: onFocus,\n onBlur: onBlur,\n handleRender: handleRender\n }), /*#__PURE__*/React.createElement(Marks, {\n prefixCls: prefixCls,\n marks: markList,\n onClick: changeToCloseValue\n })));\n});\nif (process.env.NODE_ENV !== 'production') {\n Slider.displayName = 'Slider';\n}\nexport default Slider;","import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport * as React from 'react';\n\n/** Format the value in the range of [min, max] */\n\n/** Format value align with step */\n\n/** Format value align with step & marks */\n\nexport default function useOffset(min, max, step, markList, allowCross, pushable) {\n var formatRangeValue = React.useCallback(function (val) {\n var formatNextValue = isFinite(val) ? val : min;\n formatNextValue = Math.min(max, val);\n formatNextValue = Math.max(min, formatNextValue);\n return formatNextValue;\n }, [min, max]);\n var formatStepValue = React.useCallback(function (val) {\n if (step !== null) {\n var stepValue = min + Math.round((formatRangeValue(val) - min) / step) * step;\n\n // Cut number in case to be like 0.30000000000000004\n var getDecimal = function getDecimal(num) {\n return (String(num).split('.')[1] || '').length;\n };\n var maxDecimal = Math.max(getDecimal(step), getDecimal(max), getDecimal(min));\n var fixedValue = Number(stepValue.toFixed(maxDecimal));\n return min <= fixedValue && fixedValue <= max ? fixedValue : null;\n }\n return null;\n }, [step, min, max, formatRangeValue]);\n var formatValue = React.useCallback(function (val) {\n var formatNextValue = formatRangeValue(val);\n\n // List align values\n var alignValues = markList.map(function (mark) {\n return mark.value;\n });\n if (step !== null) {\n alignValues.push(formatStepValue(val));\n }\n\n // min & max\n alignValues.push(min, max);\n\n // Align with marks\n var closeValue = alignValues[0];\n var closeDist = max - min;\n alignValues.forEach(function (alignValue) {\n var dist = Math.abs(formatNextValue - alignValue);\n if (dist <= closeDist) {\n closeValue = alignValue;\n closeDist = dist;\n }\n });\n return closeValue;\n }, [min, max, markList, step, formatRangeValue, formatStepValue]);\n\n // ========================== Offset ==========================\n // Single Value\n var offsetValue = function offsetValue(values, offset, valueIndex) {\n var mode = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'unit';\n if (typeof offset === 'number') {\n var nextValue;\n var originValue = values[valueIndex];\n\n // Only used for `dist` mode\n var targetDistValue = originValue + offset;\n\n // Compare next step value & mark value which is best match\n var potentialValues = [];\n markList.forEach(function (mark) {\n potentialValues.push(mark.value);\n });\n\n // Min & Max\n potentialValues.push(min, max);\n\n // In case origin value is align with mark but not with step\n potentialValues.push(formatStepValue(originValue));\n\n // Put offset step value also\n var sign = offset > 0 ? 1 : -1;\n if (mode === 'unit') {\n potentialValues.push(formatStepValue(originValue + sign * step));\n } else {\n potentialValues.push(formatStepValue(targetDistValue));\n }\n\n // Find close one\n potentialValues = potentialValues.filter(function (val) {\n return val !== null;\n })\n // Remove reverse value\n .filter(function (val) {\n return offset < 0 ? val <= originValue : val >= originValue;\n });\n if (mode === 'unit') {\n // `unit` mode can not contain itself\n potentialValues = potentialValues.filter(function (val) {\n return val !== originValue;\n });\n }\n var compareValue = mode === 'unit' ? originValue : targetDistValue;\n nextValue = potentialValues[0];\n var valueDist = Math.abs(nextValue - compareValue);\n potentialValues.forEach(function (potentialValue) {\n var dist = Math.abs(potentialValue - compareValue);\n if (dist < valueDist) {\n nextValue = potentialValue;\n valueDist = dist;\n }\n });\n\n // Out of range will back to range\n if (nextValue === undefined) {\n return offset < 0 ? min : max;\n }\n\n // `dist` mode\n if (mode === 'dist') {\n return nextValue;\n }\n\n // `unit` mode may need another round\n if (Math.abs(offset) > 1) {\n var cloneValues = _toConsumableArray(values);\n cloneValues[valueIndex] = nextValue;\n return offsetValue(cloneValues, offset - sign, valueIndex, mode);\n }\n return nextValue;\n } else if (offset === 'min') {\n return min;\n } else if (offset === 'max') {\n return max;\n }\n };\n\n /** Same as `offsetValue` but return `changed` mark to tell value changed */\n var offsetChangedValue = function offsetChangedValue(values, offset, valueIndex) {\n var mode = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'unit';\n var originValue = values[valueIndex];\n var nextValue = offsetValue(values, offset, valueIndex, mode);\n return {\n value: nextValue,\n changed: nextValue !== originValue\n };\n };\n var needPush = function needPush(dist) {\n return pushable === null && dist === 0 || typeof pushable === 'number' && dist < pushable;\n };\n\n // Values\n var offsetValues = function offsetValues(values, offset, valueIndex) {\n var mode = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'unit';\n var nextValues = values.map(formatValue);\n var originValue = nextValues[valueIndex];\n var nextValue = offsetValue(nextValues, offset, valueIndex, mode);\n nextValues[valueIndex] = nextValue;\n if (allowCross === false) {\n // >>>>> Allow Cross\n var pushNum = pushable || 0;\n\n // ============ AllowCross ===============\n if (valueIndex > 0 && nextValues[valueIndex - 1] !== originValue) {\n nextValues[valueIndex] = Math.max(nextValues[valueIndex], nextValues[valueIndex - 1] + pushNum);\n }\n if (valueIndex < nextValues.length - 1 && nextValues[valueIndex + 1] !== originValue) {\n nextValues[valueIndex] = Math.min(nextValues[valueIndex], nextValues[valueIndex + 1] - pushNum);\n }\n } else if (typeof pushable === 'number' || pushable === null) {\n // >>>>> Pushable\n // =============== Push ==================\n\n // >>>>>> Basic push\n // End values\n for (var i = valueIndex + 1; i < nextValues.length; i += 1) {\n var changed = true;\n while (needPush(nextValues[i] - nextValues[i - 1]) && changed) {\n var _offsetChangedValue = offsetChangedValue(nextValues, 1, i);\n nextValues[i] = _offsetChangedValue.value;\n changed = _offsetChangedValue.changed;\n }\n }\n\n // Start values\n for (var _i = valueIndex; _i > 0; _i -= 1) {\n var _changed = true;\n while (needPush(nextValues[_i] - nextValues[_i - 1]) && _changed) {\n var _offsetChangedValue2 = offsetChangedValue(nextValues, -1, _i - 1);\n nextValues[_i - 1] = _offsetChangedValue2.value;\n _changed = _offsetChangedValue2.changed;\n }\n }\n\n // >>>>> Revert back to safe push range\n // End to Start\n for (var _i2 = nextValues.length - 1; _i2 > 0; _i2 -= 1) {\n var _changed2 = true;\n while (needPush(nextValues[_i2] - nextValues[_i2 - 1]) && _changed2) {\n var _offsetChangedValue3 = offsetChangedValue(nextValues, -1, _i2 - 1);\n nextValues[_i2 - 1] = _offsetChangedValue3.value;\n _changed2 = _offsetChangedValue3.changed;\n }\n }\n\n // Start to End\n for (var _i3 = 0; _i3 < nextValues.length - 1; _i3 += 1) {\n var _changed3 = true;\n while (needPush(nextValues[_i3 + 1] - nextValues[_i3]) && _changed3) {\n var _offsetChangedValue4 = offsetChangedValue(nextValues, 1, _i3 + 1);\n nextValues[_i3 + 1] = _offsetChangedValue4.value;\n _changed3 = _offsetChangedValue4.changed;\n }\n }\n }\n return {\n value: nextValues[valueIndex],\n values: nextValues\n };\n };\n return [formatValue, offsetValues];\n}","import Slider from \"./Slider\";\nexport default Slider;","export function SelectedCourses(props) {\n /* Displays a list of selected courses \n And the total number of credits*/\n \n const totalCredits = props.selected.reduce((accumulator, courseObj) => {\n return accumulator + courseObj.credits;\n }, 0);\n\n return Selected Courses
\n {props.selected.map((courseObj, i) =>\n
\n {courseObj.subjectCode} {courseObj.subjectName}\n \n
\n )\n }\n
Total credits: {totalCredits}
\n
\n}\n","import { useState, useEffect } from 'react';\nimport Slider from 'rc-slider';\nimport 'rc-slider/assets/index.css';\nimport { SelectedCourses } from './SelectedCourses';\n\nfunction search(element, searchWord) {\n /* Returns the elements that start with searchWord */\n return element.toLowerCase().startsWith(searchWord.toLowerCase());\n}\n\nfunction FilterButtons(props) {\n const [levelFilter,setLevelFilter] = useState('')\n const [passFail, setPassFail] = useState(false)\n const [languageFilter,setLanguageFilter] = useState('')\n const [searchInput, setSearchInput] = useState('');\n const [sliderInput, setSliderInput] = useState([0,60])\n const [selectedYears, setSelectedYears] = useState([])\n\n const start = 1\n const end = 9\n const years = Array.from({ length: end - start + 1 }, (_, index) => (start + index).toString());\n\n useEffect(() => {\n props.changeRetrieved(applyFilters(props.subjects));\n }, [levelFilter,passFail,languageFilter,searchInput,sliderInput,selectedYears,props.subjects]); \n\n const onSearchChange = (event) => {\n setSearchInput(event.target.value);\n }\n\n const onSliderInputChange = (value) => {\n setSliderInput(value)\n }\n\n const onPassFailChange = () => {\n setPassFail((prev) => !prev)\n }\n\n const onLevelChange = (event) => {\n setLevelFilter(event.target.value);\n }\n\n const onLanguageChange = (event) => {\n setLanguageFilter(event.target.value);\n }\n\n const onSelectedYears = (newYear) => {\n // Create a copy of the selectedYears array\n const updatedYears = [...selectedYears];\n\n // Check if newYear is already in the selectedYears array\n const yearIndex = updatedYears.indexOf(newYear);\n\n if (yearIndex !== -1) {\n // If newYear is already in the array, remove it\n updatedYears.splice(yearIndex, 1);\n } else {\n // If newYear is not in the array, add it\n updatedYears.push(newYear);\n }\n\n // Set the updatedYears array as the new selectedYears\n setSelectedYears(updatedYears);\n }\n\n\n const filterSearch = (subjects, query) => {\n return subjects.filter(x => search(x.subjectCode,query))\n }\n\n const filterCredits = (subjects,low,high) => {\n return subjects.filter(courseObj => courseObj.credits >= low && courseObj.credits <= high)\n }\n\n const filterLevel = (subjects, filter) => {\n if (filter === \"\") {\n return subjects\n }\n return subjects.filter(courseObj => courseObj.level.includes(filter))\n }\n\n const filterExam = (subjects) => {\n return subjects.filter(courseObj => courseObj.grading !== null && courseObj.grading === false )\n }\n\n const filterLanguage = (subjects, filter) => {\n if (filter === \"\") {\n return subjects\n }\n return subjects.filter(courseObj => courseObj.teachingLanguage !== undefined && courseObj.teachingLanguage.includes(filter) ) \n }\n \n const filterYears = (subjects, filter) => {\n if (filter.length == 0)\n return subjects\n return subjects.filter(courseObj => {\n const firstDigit = courseObj.subjectCode.match(/\\d/); // Get the first digit in the subject code\n return firstDigit && filter.includes(firstDigit[0]); // Check if it's in the filter array\n });\n };\n\n const applyFilters = (subjects) => {\n let filteredSubjects = [...subjects];\n \n // Apply search filter\n filteredSubjects = filterSearch(filteredSubjects,searchInput)\n \n // Apply credit range filter\n filteredSubjects = filterCredits(\n filteredSubjects,\n sliderInput[0],\n sliderInput[1]\n );\n\n // Apply level filter\n filteredSubjects = filterLevel(filteredSubjects, levelFilter);\n \n // Apply exam filter\n if (passFail) {\n filteredSubjects = filterExam(filteredSubjects);\n }\n\n // Apply language filter\n filteredSubjects = filterLanguage(filteredSubjects, languageFilter);\n\n // Apply year filter\n filteredSubjects = filterYears(filteredSubjects,selectedYears)\n \n return filteredSubjects;\n };\n\n const levels = \n (\n \n \n
)\n\n const slider = (\n \n \n \n
)\n \n const languages = (\n \n \n \n
\n )\n\n return (\n \n );\n \n}\n\nfunction Course(props) {\n /* Handles logic for one specific course\n Uses a state to keep track of it is pressed or not */\n\n const onCheckedStateChange = () => {\n if (props.selected.includes(props.courseObject) === false) {\n props.changeSelected(props.courseObject, true);\n }\n }\n\n /* Render one course */\n // Add style if preferable - to span elements: style=\"color: #ff5722\n return (\n \n
{props.courseObject.subjectCode}
\n
{props.courseObject.subjectName}
\n
\n Level: {props.courseObject.level} | \n Credits: {props.courseObject.credits} | \n Teaching: {props.courseObject.teaching} | \n Teaching language: {props.courseObject.teachingLanguage}\n
\n
{props.courseObject.description}
\n
\n
\n
\n
\n \n )\n}\n\nfunction Courses(props) {\n /* Display all the courses */\n const [retrievedSubjects, setRetrievedSubjects] = useState(props.subjects)\n\n const onSetSelectedSubjects = (subject,should_add) => {\n props.changeSelected(subject,should_add)\n }\n\n return (\n \n
Find courses!
\n \n \n {retrievedSubjects.map((courseObj, i) =>\n // The problem is with the key\n // The key should be unique and not dependent on searchedSubjects!\n )\n }\n \n )\n}\nexport default Courses;","export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _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, toPropertyKey(descriptor.key), descriptor);\n }\n}\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}","export default function _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}","export default function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}","import getPrototypeOf from \"./getPrototypeOf.js\";\nimport isNativeReflectConstruct from \"./isNativeReflectConstruct.js\";\nimport possibleConstructorReturn from \"./possibleConstructorReturn.js\";\nexport default function _createSuper(Derived) {\n var hasNativeReflectConstruct = isNativeReflectConstruct();\n return function _createSuperInternal() {\n var Super = getPrototypeOf(Derived),\n result;\n if (hasNativeReflectConstruct) {\n var NewTarget = getPrototypeOf(this).constructor;\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n return possibleConstructorReturn(this, result);\n };\n}","export default function _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}","import _typeof from \"./typeof.js\";\nimport assertThisInitialized from \"./assertThisInitialized.js\";\nexport default function _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n return assertThisInitialized(self);\n}","import invariant from 'invariant';\n\nvar noop = function noop() {};\n\nfunction readOnlyPropType(handler, name) {\n return function (props, propName) {\n if (props[propName] !== undefined) {\n if (!props[handler]) {\n return new Error(\"You have provided a `\" + propName + \"` prop to `\" + name + \"` \" + (\"without an `\" + handler + \"` handler prop. This will render a read-only field. \") + (\"If the field should be mutable use `\" + defaultKey(propName) + \"`. \") + (\"Otherwise, set `\" + handler + \"`.\"));\n }\n }\n };\n}\n\nexport function uncontrolledPropTypes(controlledValues, displayName) {\n var propTypes = {};\n Object.keys(controlledValues).forEach(function (prop) {\n // add default propTypes for folks that use runtime checks\n propTypes[defaultKey(prop)] = noop;\n\n if (process.env.NODE_ENV !== 'production') {\n var handler = controlledValues[prop];\n !(typeof handler === 'string' && handler.trim().length) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Uncontrollable - [%s]: the prop `%s` needs a valid handler key name in order to make it uncontrollable', displayName, prop) : invariant(false) : void 0;\n propTypes[prop] = readOnlyPropType(handler, displayName);\n }\n });\n return propTypes;\n}\nexport function isProp(props, prop) {\n return props[prop] !== undefined;\n}\nexport function defaultKey(key) {\n return 'default' + key.charAt(0).toUpperCase() + key.substr(1);\n}\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\nexport function canAcceptRef(component) {\n return !!component && (typeof component !== 'function' || component.prototype && component.prototype.isReactComponent);\n}","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nfunction componentWillMount() {\n // Call this.constructor.gDSFP to support sub-classes.\n var state = this.constructor.getDerivedStateFromProps(this.props, this.state);\n if (state !== null && state !== undefined) {\n this.setState(state);\n }\n}\n\nfunction componentWillReceiveProps(nextProps) {\n // Call this.constructor.gDSFP to support sub-classes.\n // Use the setState() updater to ensure state isn't stale in certain edge cases.\n function updater(prevState) {\n var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);\n return state !== null && state !== undefined ? state : null;\n }\n // Binding \"this\" is important for shallow renderer support.\n this.setState(updater.bind(this));\n}\n\nfunction componentWillUpdate(nextProps, nextState) {\n try {\n var prevProps = this.props;\n var prevState = this.state;\n this.props = nextProps;\n this.state = nextState;\n this.__reactInternalSnapshotFlag = true;\n this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(\n prevProps,\n prevState\n );\n } finally {\n this.props = prevProps;\n this.state = prevState;\n }\n}\n\n// React may warn about cWM/cWRP/cWU methods being deprecated.\n// Add a flag to suppress these warnings for this special case.\ncomponentWillMount.__suppressDeprecationWarning = true;\ncomponentWillReceiveProps.__suppressDeprecationWarning = true;\ncomponentWillUpdate.__suppressDeprecationWarning = true;\n\nfunction polyfill(Component) {\n var prototype = Component.prototype;\n\n if (!prototype || !prototype.isReactComponent) {\n throw new Error('Can only polyfill class components');\n }\n\n if (\n typeof Component.getDerivedStateFromProps !== 'function' &&\n typeof prototype.getSnapshotBeforeUpdate !== 'function'\n ) {\n return Component;\n }\n\n // If new component APIs are defined, \"unsafe\" lifecycles won't be called.\n // Error if any of these lifecycles are present,\n // Because they would work differently between older and newer (16.3+) versions of React.\n var foundWillMountName = null;\n var foundWillReceivePropsName = null;\n var foundWillUpdateName = null;\n if (typeof prototype.componentWillMount === 'function') {\n foundWillMountName = 'componentWillMount';\n } else if (typeof prototype.UNSAFE_componentWillMount === 'function') {\n foundWillMountName = 'UNSAFE_componentWillMount';\n }\n if (typeof prototype.componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'componentWillReceiveProps';\n } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';\n }\n if (typeof prototype.componentWillUpdate === 'function') {\n foundWillUpdateName = 'componentWillUpdate';\n } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') {\n foundWillUpdateName = 'UNSAFE_componentWillUpdate';\n }\n if (\n foundWillMountName !== null ||\n foundWillReceivePropsName !== null ||\n foundWillUpdateName !== null\n ) {\n var componentName = Component.displayName || Component.name;\n var newApiName =\n typeof Component.getDerivedStateFromProps === 'function'\n ? 'getDerivedStateFromProps()'\n : 'getSnapshotBeforeUpdate()';\n\n throw Error(\n 'Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n' +\n componentName +\n ' uses ' +\n newApiName +\n ' but also contains the following legacy lifecycles:' +\n (foundWillMountName !== null ? '\\n ' + foundWillMountName : '') +\n (foundWillReceivePropsName !== null\n ? '\\n ' + foundWillReceivePropsName\n : '') +\n (foundWillUpdateName !== null ? '\\n ' + foundWillUpdateName : '') +\n '\\n\\nThe above lifecycles should be removed. Learn more about this warning here:\\n' +\n 'https://fb.me/react-async-component-lifecycle-hooks'\n );\n }\n\n // React <= 16.2 does not support static getDerivedStateFromProps.\n // As a workaround, use cWM and cWRP to invoke the new static lifecycle.\n // Newer versions of React will ignore these lifecycles if gDSFP exists.\n if (typeof Component.getDerivedStateFromProps === 'function') {\n prototype.componentWillMount = componentWillMount;\n prototype.componentWillReceiveProps = componentWillReceiveProps;\n }\n\n // React <= 16.2 does not support getSnapshotBeforeUpdate.\n // As a workaround, use cWU to invoke the new lifecycle.\n // Newer versions of React will ignore that lifecycle if gSBU exists.\n if (typeof prototype.getSnapshotBeforeUpdate === 'function') {\n if (typeof prototype.componentDidUpdate !== 'function') {\n throw new Error(\n 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype'\n );\n }\n\n prototype.componentWillUpdate = componentWillUpdate;\n\n var componentDidUpdate = prototype.componentDidUpdate;\n\n prototype.componentDidUpdate = function componentDidUpdatePolyfill(\n prevProps,\n prevState,\n maybeSnapshot\n ) {\n // 16.3+ will not execute our will-update method;\n // It will pass a snapshot value to did-update though.\n // Older versions will require our polyfilled will-update value.\n // We need to handle both cases, but can't just check for the presence of \"maybeSnapshot\",\n // Because for <= 15.x versions this might be a \"prevContext\" object.\n // We also can't just check \"__reactInternalSnapshot\",\n // Because get-snapshot might return a falsy value.\n // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior.\n var snapshot = this.__reactInternalSnapshotFlag\n ? this.__reactInternalSnapshot\n : maybeSnapshot;\n\n componentDidUpdate.call(this, prevProps, prevState, snapshot);\n };\n }\n\n return Component;\n}\n\nexport { polyfill };\n","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e))for(t=0;t 28 or date > 29 (leap year)\n nextDate.setDate(1)\n\n nextDate.setMonth(nextMonth)\n nextDate.setDate(nextDay)\n\n return nextDate\n}\n\nfunction solveDST(currentDate, nextDate) {\n var currentOffset = currentDate.getTimezoneOffset()\n , nextOffset = nextDate.getTimezoneOffset()\n\n // if is DST, add the difference in minutes\n // else the difference is zero\n var diffMinutes = (nextOffset - currentOffset)\n\n return new Date(+(nextDate) + diffMinutes * multiplierMilli['minutes'])\n}\n\nexport function subtract(d, num, unit) {\n return add(d, -num, unit)\n}\n\nexport function startOf(d, unit, firstOfWeek) {\n d = new Date(d)\n\n switch (unit) {\n case CENTURY:\n case DECADE:\n case YEAR:\n d = month(d, 0);\n case MONTH:\n d = date(d, 1);\n case WEEK:\n case DAY:\n d = hours(d, 0);\n case HOURS:\n d = minutes(d, 0);\n case MINUTES:\n d = seconds(d, 0);\n case SECONDS:\n d = milliseconds(d, 0);\n }\n\n if (unit === DECADE)\n d = subtract(d, year(d) % 10, 'year')\n\n if (unit === CENTURY)\n d = subtract(d, year(d) % 100, 'year')\n\n if (unit === WEEK)\n d = weekday(d, 0, firstOfWeek);\n\n return d\n}\n\nexport function endOf(d, unit, firstOfWeek){\n d = new Date(d)\n d = startOf(d, unit, firstOfWeek)\n switch (unit) {\n case CENTURY:\n case DECADE:\n case YEAR:\n case MONTH:\n case WEEK:\n d = add(d, 1, unit)\n d = subtract(d, 1, DAY)\n d.setHours(23, 59, 59, 999)\n break;\n case DAY:\n d.setHours(23, 59, 59, 999)\n break;\n case HOURS:\n case MINUTES:\n case SECONDS:\n d = add(d, 1, unit)\n d = subtract(d, 1, MILI)\n }\n return d\n}\n\nexport var eq = createComparer(function(a, b){ return a === b })\nexport var neq = createComparer(function(a, b){ return a !== b })\nexport var gt = createComparer(function(a, b){ return a > b })\nexport var gte = createComparer(function(a, b){ return a >= b })\nexport var lt = createComparer(function(a, b){ return a < b })\nexport var lte = createComparer(function(a, b){ return a <= b })\n\nexport function min(){\n return new Date(Math.min.apply(Math, arguments))\n}\n\nexport function max(){\n return new Date(Math.max.apply(Math, arguments))\n}\n\nexport function inRange(day, min, max, unit){\n unit = unit || 'day'\n\n return (!min || gte(day, min, unit))\n && (!max || lte(day, max, unit))\n}\n\nexport var milliseconds = createAccessor('Milliseconds')\nexport var seconds = createAccessor('Seconds')\nexport var minutes = createAccessor('Minutes')\nexport var hours = createAccessor('Hours')\nexport var day = createAccessor('Day')\nexport var date = createAccessor('Date')\nexport var month = createAccessor('Month')\nexport var year = createAccessor('FullYear')\n\nexport function decade(d, val) {\n return val === undefined\n ? year(startOf(d, DECADE))\n : add(d, val + 10, YEAR);\n}\n\nexport function century(d, val) {\n return val === undefined\n ? year(startOf(d, CENTURY))\n : add(d, val + 100, YEAR);\n}\n\nexport function weekday(d, val, firstDay) {\n var w = (day(d) + 7 - (firstDay || 0) ) % 7;\n\n return val === undefined\n ? w\n : add(d, val - w, DAY);\n}\n\nexport function diff(date1, date2, unit, asFloat) {\n var dividend, divisor, result;\n\n switch (unit) {\n case MILI:\n case SECONDS:\n case MINUTES:\n case HOURS:\n case DAY:\n case WEEK:\n dividend = date2.getTime() - date1.getTime(); break;\n case MONTH:\n case YEAR:\n case DECADE:\n case CENTURY:\n dividend = (year(date2) - year(date1)) * 12 + month(date2) - month(date1); break;\n default:\n throw new TypeError('Invalid units: \"' + unit + '\"');\n }\n\n switch (unit) {\n case MILI:\n divisor = 1; break;\n case SECONDS:\n divisor = 1000; break;\n case MINUTES:\n divisor = 1000 * 60; break;\n case HOURS:\n divisor = 1000 * 60 * 60; break;\n case DAY:\n divisor = 1000 * 60 * 60 * 24; break;\n case WEEK:\n divisor = 1000 * 60 * 60 * 24 * 7; break;\n case MONTH:\n divisor = 1; break;\n case YEAR:\n divisor = 12; break;\n case DECADE:\n divisor = 120; break;\n case CENTURY:\n divisor = 1200; break;\n default:\n throw new TypeError('Invalid units: \"' + unit + '\"');\n }\n\n result = dividend / divisor;\n\n return asFloat ? result : Math.round(result);\n}\n\nfunction createAccessor(method){\n var hourLength = (function(method) { \n switch(method) {\n case 'Milliseconds':\n return 3600000;\n case 'Seconds':\n return 3600;\n case 'Minutes':\n return 60;\n case 'Hours':\n return 1;\n default:\n return null;\n }\n })(method);\n \n return function(d, val){\n if (val === undefined)\n return d['get' + method]()\n\n var dateOut = new Date(d)\n dateOut['set' + method](val)\n \n if(hourLength && dateOut['get'+method]() != val && (method === 'Hours' || val >=hourLength && (dateOut.getHours()-d.getHours() length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n}\n\nexport default baseSlice;\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\nexport default eq;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nexport default freeGlobal;\n","import freeGlobal from './_freeGlobal.js';\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nexport default root;\n","import root from './_root.js';\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nexport default Symbol;\n","import Symbol from './_Symbol.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nexport default getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nexport default objectToString;\n","import Symbol from './_Symbol.js';\nimport getRawTag from './_getRawTag.js';\nimport objectToString from './_objectToString.js';\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\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 */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nexport default baseGetTag;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\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 object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nexport default isObject;\n","import baseGetTag from './_baseGetTag.js';\nimport isObject from './isObject.js';\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\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 */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\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 var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nexport default isFunction;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\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 */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nexport default isLength;\n","import isFunction from './isFunction.js';\nimport isLength from './isLength.js';\n\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 */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nexport default isArrayLike;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\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 */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nexport default isIndex;\n","import eq from './eq.js';\nimport isArrayLike from './isArrayLike.js';\nimport isIndex from './_isIndex.js';\nimport isObject from './isObject.js';\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\nexport default isIterateeCall;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nexport default trimmedEndIndex;\n","import trimmedEndIndex from './_trimmedEndIndex.js';\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nexport default baseTrim;\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\nexport default isObjectLike;\n","import baseGetTag from './_baseGetTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or 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 a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nexport default isSymbol;\n","import baseTrim from './_baseTrim.js';\nimport isObject from './isObject.js';\nimport isSymbol from './isSymbol.js';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nexport default toNumber;\n","import toNumber from './toNumber.js';\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n MAX_INTEGER = 1.7976931348623157e+308;\n\n/**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\nfunction toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n}\n\nexport default toFinite;\n","import toFinite from './toFinite.js';\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nexport default toInteger;\n","import baseSlice from './_baseSlice.js';\nimport isIterateeCall from './_isIterateeCall.js';\nimport toInteger from './toInteger.js';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeCeil = Math.ceil,\n nativeMax = Math.max;\n\n/**\n * Creates an array of elements split into groups the length of `size`.\n * If `array` can't be split evenly, the final chunk will be the remaining\n * elements.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to process.\n * @param {number} [size=1] The length of each chunk\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the new array of chunks.\n * @example\n *\n * _.chunk(['a', 'b', 'c', 'd'], 2);\n * // => [['a', 'b'], ['c', 'd']]\n *\n * _.chunk(['a', 'b', 'c', 'd'], 3);\n * // => [['a', 'b', 'c'], ['d']]\n */\nfunction chunk(array, size, guard) {\n if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {\n size = 1;\n } else {\n size = nativeMax(toInteger(size), 0);\n }\n var length = array == null ? 0 : array.length;\n if (!length || size < 1) {\n return [];\n }\n var index = 0,\n resIndex = 0,\n result = Array(nativeCeil(length / size));\n\n while (index < length) {\n result[resIndex++] = baseSlice(array, index, (index += size));\n }\n return result;\n}\n\nexport default chunk;\n","/**\n * Returns the owner document of a given element.\n * \n * @param node the element\n */\nexport default function ownerDocument(node) {\n return node && node.ownerDocument || document;\n}","import ownerWindow from './ownerWindow';\n/**\n * Returns one or all computed style properties of an element.\n * \n * @param node the element\n * @param psuedoElement the style property\n */\n\nexport default function getComputedStyle(node, psuedoElement) {\n return ownerWindow(node).getComputedStyle(node, psuedoElement);\n}","import ownerDocument from './ownerDocument';\n/**\n * Returns the owner window of a given element.\n * \n * @param node the element\n */\n\nexport default function ownerWindow(node) {\n var doc = ownerDocument(node);\n return doc && doc.defaultView || window;\n}","var rUpper = /([A-Z])/g;\nexport default function hyphenate(string) {\n return string.replace(rUpper, '-$1').toLowerCase();\n}","/**\n * Copyright 2013-2014, Facebook, Inc.\n * All rights reserved.\n * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/hyphenateStyleName.js\n */\nimport hyphenate from './hyphenate';\nvar msPattern = /^ms-/;\nexport default function hyphenateStyleName(string) {\n return hyphenate(string).replace(msPattern, '-ms-');\n}","var supportedTransforms = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;\nexport default function isTransform(value) {\n return !!(value && supportedTransforms.test(value));\n}","import getComputedStyle from './getComputedStyle';\nimport hyphenate from './hyphenateStyle';\nimport isTransform from './isTransform';\n\nfunction style(node, property) {\n var css = '';\n var transforms = '';\n\n if (typeof property === 'string') {\n return node.style.getPropertyValue(hyphenate(property)) || getComputedStyle(node).getPropertyValue(hyphenate(property));\n }\n\n Object.keys(property).forEach(function (key) {\n var value = property[key];\n\n if (!value && value !== 0) {\n node.style.removeProperty(hyphenate(key));\n } else if (isTransform(key)) {\n transforms += key + \"(\" + value + \") \";\n } else {\n css += hyphenate(key) + \": \" + value + \";\";\n }\n });\n\n if (transforms) {\n css += \"transform: \" + transforms + \";\";\n }\n\n node.style.cssText += \";\" + css;\n}\n\nexport default style;","/* eslint-disable no-bitwise, no-cond-assign */\n\n/**\n * Checks if an element contains another given element.\n * \n * @param context the context element\n * @param node the element to check\n */\nexport default function contains(context, node) {\n // HTML DOM and SVG DOM may have different support levels,\n // so we need to check on context instead of a document root element.\n if (context.contains) return context.contains(node);\n if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);\n}","import isDocument from './isDocument';\nexport default function isWindow(node) {\n if ('window' in node && node.window === node) return node;\n if (isDocument(node)) return node.defaultView || false;\n return false;\n}","export default function isDocument(element) {\n return 'nodeType' in element && element.nodeType === document.DOCUMENT_NODE;\n}","import isWindow from './isWindow';\nexport default function getscrollAccessor(offset) {\n var prop = offset === 'pageXOffset' ? 'scrollLeft' : 'scrollTop';\n\n function scrollAccessor(node, val) {\n var win = isWindow(node);\n\n if (val === undefined) {\n return win ? win[offset] : node[prop];\n }\n\n if (win) {\n win.scrollTo(win[offset], val);\n } else {\n node[prop] = val;\n }\n }\n\n return scrollAccessor;\n}","import getScrollAccessor from './getScrollAccessor';\n/**\n * Gets or sets the scroll left position of a given element.\n * \n * @param node the element\n * @param val the position to set\n */\n\nexport default getScrollAccessor('pageXOffset');","import getScrollAccessor from './getScrollAccessor';\n/**\n * Gets or sets the scroll top position of a given element.\n * \n * @param node the element\n * @param val the position to set\n */\n\nexport default getScrollAccessor('pageYOffset');","import contains from './contains';\nimport ownerDocument from './ownerDocument';\nimport scrollLeft from './scrollLeft';\nimport scrollTop from './scrollTop';\n/**\n * Returns the offset of a given element, including top and left positions, width and height.\n * \n * @param node the element\n */\n\nexport default function offset(node) {\n var doc = ownerDocument(node);\n var box = {\n top: 0,\n left: 0,\n height: 0,\n width: 0\n };\n var docElem = doc && doc.documentElement; // Make sure it's not a disconnected DOM node\n\n if (!docElem || !contains(docElem, node)) return box;\n if (node.getBoundingClientRect !== undefined) box = node.getBoundingClientRect();\n box = {\n top: box.top + scrollTop(docElem) - (docElem.clientTop || 0),\n left: box.left + scrollLeft(docElem) - (docElem.clientLeft || 0),\n width: box.width,\n height: box.height\n };\n return box;\n}","import css from './css';\nimport ownerDocument from './ownerDocument';\n\nvar isHTMLElement = function isHTMLElement(e) {\n return !!e && 'offsetParent' in e;\n};\n\nexport default function offsetParent(node) {\n var doc = ownerDocument(node);\n var parent = node && node.offsetParent;\n\n while (isHTMLElement(parent) && parent.nodeName !== 'HTML' && css(parent, 'position') === 'static') {\n parent = parent.offsetParent;\n }\n\n return parent || doc.documentElement;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport css from './css';\nimport getOffset from './offset';\nimport getOffsetParent from './offsetParent';\nimport scrollLeft from './scrollLeft';\nimport scrollTop from './scrollTop';\n\nvar nodeName = function nodeName(node) {\n return node.nodeName && node.nodeName.toLowerCase();\n};\n/**\n * Returns the relative position of a given element.\n * \n * @param node the element\n * @param offsetParent the offset parent\n */\n\n\nexport default function position(node, offsetParent) {\n var parentOffset = {\n top: 0,\n left: 0\n };\n var offset; // Fixed elements are offset from window (parentOffset = {top:0, left: 0},\n // because it is its only offset parent\n\n if (css(node, 'position') === 'fixed') {\n offset = node.getBoundingClientRect();\n } else {\n var parent = offsetParent || getOffsetParent(node);\n offset = getOffset(node);\n if (nodeName(parent) !== 'html') parentOffset = getOffset(parent);\n var borderTop = String(css(parent, 'borderTopWidth') || 0);\n parentOffset.top += parseInt(borderTop, 10) - scrollTop(parent) || 0;\n var borderLeft = String(css(parent, 'borderLeftWidth') || 0);\n parentOffset.left += parseInt(borderLeft, 10) - scrollLeft(parent) || 0;\n }\n\n var marginTop = String(css(node, 'marginTop') || 0);\n var marginLeft = String(css(node, 'marginLeft') || 0); // Subtract parent offsets and node margins\n\n return _extends({}, offset, {\n top: offset.top - parentOffset.top - (parseInt(marginTop, 10) || 0),\n left: offset.left - parentOffset.left - (parseInt(marginLeft, 10) || 0)\n });\n}","export default !!(typeof window !== 'undefined' && window.document && window.document.createElement);","import canUseDOM from './canUseDOM';\n\n/* https://github.com/component/raf */\nvar prev = new Date().getTime();\n\nfunction fallback(fn) {\n var curr = new Date().getTime();\n var ms = Math.max(0, 16 - (curr - prev));\n var handle = setTimeout(fn, ms);\n prev = curr;\n return handle;\n}\n\nvar vendors = ['', 'webkit', 'moz', 'o', 'ms'];\nvar cancelMethod = 'clearTimeout';\nvar rafImpl = fallback; // eslint-disable-next-line import/no-mutable-exports\n\nvar getKey = function getKey(vendor, k) {\n return vendor + (!vendor ? k : k[0].toUpperCase() + k.substr(1)) + \"AnimationFrame\";\n};\n\nif (canUseDOM) {\n vendors.some(function (vendor) {\n var rafMethod = getKey(vendor, 'request');\n\n if (rafMethod in window) {\n cancelMethod = getKey(vendor, 'cancel'); // @ts-ignore\n\n rafImpl = function rafImpl(cb) {\n return window[rafMethod](cb);\n };\n }\n\n return !!rafImpl;\n });\n}\n\nexport var cancel = function cancel(id) {\n // @ts-ignore\n if (typeof window[cancelMethod] === 'function') window[cancelMethod](id);\n};\nexport var request = rafImpl;","import { useState } from 'react';\n\n/**\n * A convenience hook around `useState` designed to be paired with\n * the component [callback ref](https://reactjs.org/docs/refs-and-the-dom.html#callback-refs) api.\n * Callback refs are useful over `useRef()` when you need to respond to the ref being set\n * instead of lazily accessing it in an effect.\n *\n * ```ts\n * const [element, attachRef] = useCallbackRef()\n *\n * useEffect(() => {\n * if (!element) return\n *\n * const calendar = new FullCalendar.Calendar(element)\n *\n * return () => {\n * calendar.destroy()\n * }\n * }, [element])\n *\n * return \n * ```\n *\n * @category refs\n */\nexport default function useCallbackRef() {\n return useState(null);\n}","import { useMemo } from 'react';\nconst toFnRef = ref => !ref || typeof ref === 'function' ? ref : value => {\n ref.current = value;\n};\nexport function mergeRefs(refA, refB) {\n const a = toFnRef(refA);\n const b = toFnRef(refB);\n return value => {\n if (a) a(value);\n if (b) b(value);\n };\n}\n\n/**\n * Create and returns a single callback ref composed from two other Refs.\n *\n * ```tsx\n * const Button = React.forwardRef((props, ref) => {\n * const [element, attachRef] = useCallbackRef();\n * const mergedRef = useMergedRefs(ref, attachRef);\n *\n * return \n * })\n * ```\n *\n * @param refA A Callback or mutable Ref\n * @param refB A Callback or mutable Ref\n * @category refs\n */\nfunction useMergedRefs(refA, refB) {\n return useMemo(() => mergeRefs(refA, refB), [refA, refB]);\n}\nexport default useMergedRefs;","export var top = 'top';\nexport var bottom = 'bottom';\nexport var right = 'right';\nexport var left = 'left';\nexport var auto = 'auto';\nexport var basePlacements = [top, bottom, right, left];\nexport var start = 'start';\nexport var end = 'end';\nexport var clippingParents = 'clippingParents';\nexport var viewport = 'viewport';\nexport var popper = 'popper';\nexport var reference = 'reference';\nexport var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {\n return acc.concat([placement + \"-\" + start, placement + \"-\" + end]);\n}, []);\nexport var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {\n return acc.concat([placement, placement + \"-\" + start, placement + \"-\" + end]);\n}, []); // modifiers that need to read the DOM\n\nexport var beforeRead = 'beforeRead';\nexport var read = 'read';\nexport var afterRead = 'afterRead'; // pure-logic modifiers\n\nexport var beforeMain = 'beforeMain';\nexport var main = 'main';\nexport var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)\n\nexport var beforeWrite = 'beforeWrite';\nexport var write = 'write';\nexport var afterWrite = 'afterWrite';\nexport var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];","import { useCallback } from 'react';\nimport useMounted from './useMounted';\n\n/**\n * `useSafeState` takes the return value of a `useState` hook and wraps the\n * setter to prevent updates onces the component has unmounted. Can used\n * with `useMergeState` and `useStateAsync` as well\n *\n * @param state The return value of a useStateHook\n *\n * ```ts\n * const [show, setShow] = useSafeState(useState(true));\n * ```\n */\n\nfunction useSafeState(state) {\n const isMounted = useMounted();\n return [state[0], useCallback(nextState => {\n if (!isMounted()) return;\n return state[1](nextState);\n }, [isMounted, state[1]])];\n}\nexport default useSafeState;","import { useRef, useEffect } from 'react';\n\n/**\n * Track whether a component is current mounted. Generally less preferable than\n * properlly canceling effects so they don't run after a component is unmounted,\n * but helpful in cases where that isn't feasible, such as a `Promise` resolution.\n *\n * @returns a function that returns the current isMounted state of the component\n *\n * ```ts\n * const [data, setData] = useState(null)\n * const isMounted = useMounted()\n *\n * useEffect(() => {\n * fetchdata().then((newData) => {\n * if (isMounted()) {\n * setData(newData);\n * }\n * })\n * })\n * ```\n */\nexport default function useMounted() {\n const mounted = useRef(true);\n const isMounted = useRef(() => mounted.current);\n useEffect(() => {\n mounted.current = true;\n return () => {\n mounted.current = false;\n };\n }, []);\n return isMounted.current;\n}","import { auto } from \"../enums.js\";\nexport default function getBasePlacement(placement) {\n return placement.split('-')[0];\n}","export default function getWindow(node) {\n if (node == null) {\n return window;\n }\n\n if (node.toString() !== '[object Window]') {\n var ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n\n return node;\n}","import getWindow from \"./getWindow.js\";\n\nfunction isElement(node) {\n var OwnElement = getWindow(node).Element;\n return node instanceof OwnElement || node instanceof Element;\n}\n\nfunction isHTMLElement(node) {\n var OwnElement = getWindow(node).HTMLElement;\n return node instanceof OwnElement || node instanceof HTMLElement;\n}\n\nfunction isShadowRoot(node) {\n // IE 11 has no ShadowRoot\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n\n var OwnElement = getWindow(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\nexport { isElement, isHTMLElement, isShadowRoot };","export var max = Math.max;\nexport var min = Math.min;\nexport var round = Math.round;","export default function getUAString() {\n var uaData = navigator.userAgentData;\n\n if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {\n return uaData.brands.map(function (item) {\n return item.brand + \"/\" + item.version;\n }).join(' ');\n }\n\n return navigator.userAgent;\n}","import getUAString from \"../utils/userAgent.js\";\nexport default function isLayoutViewport() {\n return !/^((?!chrome|android).)*safari/i.test(getUAString());\n}","import { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport { round } from \"../utils/math.js\";\nimport getWindow from \"./getWindow.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getBoundingClientRect(element, includeScale, isFixedStrategy) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n\n var clientRect = element.getBoundingClientRect();\n var scaleX = 1;\n var scaleY = 1;\n\n if (includeScale && isHTMLElement(element)) {\n scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;\n scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;\n }\n\n var _ref = isElement(element) ? getWindow(element) : window,\n visualViewport = _ref.visualViewport;\n\n var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;\n var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;\n var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;\n var width = clientRect.width / scaleX;\n var height = clientRect.height / scaleY;\n return {\n width: width,\n height: height,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x,\n x: x,\n y: y\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\"; // Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\n\nexport default function getLayoutRect(element) {\n var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.\n // Fixes https://github.com/popperjs/popper-core/issues/1223\n\n var width = element.offsetWidth;\n var height = element.offsetHeight;\n\n if (Math.abs(clientRect.width - width) <= 1) {\n width = clientRect.width;\n }\n\n if (Math.abs(clientRect.height - height) <= 1) {\n height = clientRect.height;\n }\n\n return {\n x: element.offsetLeft,\n y: element.offsetTop,\n width: width,\n height: height\n };\n}","import { isShadowRoot } from \"./instanceOf.js\";\nexport default function contains(parent, child) {\n var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method\n\n if (parent.contains(child)) {\n return true;\n } // then fallback to custom implementation with Shadow DOM support\n else if (rootNode && isShadowRoot(rootNode)) {\n var next = child;\n\n do {\n if (next && parent.isSameNode(next)) {\n return true;\n } // $FlowFixMe[prop-missing]: need a better way to handle this...\n\n\n next = next.parentNode || next.host;\n } while (next);\n } // Give up, the result is false\n\n\n return false;\n}","export default function getNodeName(element) {\n return element ? (element.nodeName || '').toLowerCase() : null;\n}","import getWindow from \"./getWindow.js\";\nexport default function getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}","import getNodeName from \"./getNodeName.js\";\nexport default function isTableElement(element) {\n return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;\n}","import { isElement } from \"./instanceOf.js\";\nexport default function getDocumentElement(element) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]\n element.document) || window.document).documentElement;\n}","import getNodeName from \"./getNodeName.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport { isShadowRoot } from \"./instanceOf.js\";\nexport default function getParentNode(element) {\n if (getNodeName(element) === 'html') {\n return element;\n }\n\n return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n element.parentNode || ( // DOM Element detected\n isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n getDocumentElement(element) // fallback\n\n );\n}","import getWindow from \"./getWindow.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isHTMLElement, isShadowRoot } from \"./instanceOf.js\";\nimport isTableElement from \"./isTableElement.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getUAString from \"../utils/userAgent.js\";\n\nfunction getTrueOffsetParent(element) {\n if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837\n getComputedStyle(element).position === 'fixed') {\n return null;\n }\n\n return element.offsetParent;\n} // `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\n\n\nfunction getContainingBlock(element) {\n var isFirefox = /firefox/i.test(getUAString());\n var isIE = /Trident/i.test(getUAString());\n\n if (isIE && isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = getComputedStyle(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = getParentNode(element);\n\n if (isShadowRoot(currentNode)) {\n currentNode = currentNode.host;\n }\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n\n\nexport default function getOffsetParent(element) {\n var window = getWindow(element);\n var offsetParent = getTrueOffsetParent(element);\n\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent);\n }\n\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {\n return window;\n }\n\n return offsetParent || getContainingBlock(element) || window;\n}","export default function getMainAxisFromPlacement(placement) {\n return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';\n}","import { max as mathMax, min as mathMin } from \"./math.js\";\nexport function within(min, value, max) {\n return mathMax(min, mathMin(value, max));\n}\nexport function withinMaxClamp(min, value, max) {\n var v = within(min, value, max);\n return v > max ? max : v;\n}","import getFreshSideObject from \"./getFreshSideObject.js\";\nexport default function mergePaddingObject(paddingObject) {\n return Object.assign({}, getFreshSideObject(), paddingObject);\n}","export default function getFreshSideObject() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n}","export default function expandToHashMap(value, keys) {\n return keys.reduce(function (hashMap, key) {\n hashMap[key] = value;\n return hashMap;\n }, {});\n}","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport contains from \"../dom-utils/contains.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport { within } from \"../utils/within.js\";\nimport mergePaddingObject from \"../utils/mergePaddingObject.js\";\nimport expandToHashMap from \"../utils/expandToHashMap.js\";\nimport { left, right, basePlacements, top, bottom } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar toPaddingObject = function toPaddingObject(padding, state) {\n padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {\n placement: state.placement\n })) : padding;\n return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n};\n\nfunction arrow(_ref) {\n var _state$modifiersData$;\n\n var state = _ref.state,\n name = _ref.name,\n options = _ref.options;\n var arrowElement = state.elements.arrow;\n var popperOffsets = state.modifiersData.popperOffsets;\n var basePlacement = getBasePlacement(state.placement);\n var axis = getMainAxisFromPlacement(basePlacement);\n var isVertical = [left, right].indexOf(basePlacement) >= 0;\n var len = isVertical ? 'height' : 'width';\n\n if (!arrowElement || !popperOffsets) {\n return;\n }\n\n var paddingObject = toPaddingObject(options.padding, state);\n var arrowRect = getLayoutRect(arrowElement);\n var minProp = axis === 'y' ? top : left;\n var maxProp = axis === 'y' ? bottom : right;\n var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];\n var startDiff = popperOffsets[axis] - state.rects.reference[axis];\n var arrowOffsetParent = getOffsetParent(arrowElement);\n var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;\n var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is\n // outside of the popper bounds\n\n var min = paddingObject[minProp];\n var max = clientSize - arrowRect[len] - paddingObject[maxProp];\n var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;\n var offset = within(min, center, max); // Prevents breaking syntax highlighting...\n\n var axisProp = axis;\n state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state,\n options = _ref2.options;\n var _options$element = options.element,\n arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;\n\n if (arrowElement == null) {\n return;\n } // CSS selector\n\n\n if (typeof arrowElement === 'string') {\n arrowElement = state.elements.popper.querySelector(arrowElement);\n\n if (!arrowElement) {\n return;\n }\n }\n\n if (!contains(state.elements.popper, arrowElement)) {\n return;\n }\n\n state.elements.arrow = arrowElement;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'arrow',\n enabled: true,\n phase: 'main',\n fn: arrow,\n effect: effect,\n requires: ['popperOffsets'],\n requiresIfExists: ['preventOverflow']\n};","export default function getVariation(placement) {\n return placement.split('-')[1];\n}","import { top, left, right, bottom, end } from \"../enums.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getWindow from \"../dom-utils/getWindow.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getComputedStyle from \"../dom-utils/getComputedStyle.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport { round } from \"../utils/math.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar unsetSides = {\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n left: 'auto'\n}; // Round the offsets to the nearest suitable subpixel based on the DPR.\n// Zooming can change the DPR, but it seems to report a value that will\n// cleanly divide the values into the appropriate subpixels.\n\nfunction roundOffsetsByDPR(_ref, win) {\n var x = _ref.x,\n y = _ref.y;\n var dpr = win.devicePixelRatio || 1;\n return {\n x: round(x * dpr) / dpr || 0,\n y: round(y * dpr) / dpr || 0\n };\n}\n\nexport function mapToStyles(_ref2) {\n var _Object$assign2;\n\n var popper = _ref2.popper,\n popperRect = _ref2.popperRect,\n placement = _ref2.placement,\n variation = _ref2.variation,\n offsets = _ref2.offsets,\n position = _ref2.position,\n gpuAcceleration = _ref2.gpuAcceleration,\n adaptive = _ref2.adaptive,\n roundOffsets = _ref2.roundOffsets,\n isFixed = _ref2.isFixed;\n var _offsets$x = offsets.x,\n x = _offsets$x === void 0 ? 0 : _offsets$x,\n _offsets$y = offsets.y,\n y = _offsets$y === void 0 ? 0 : _offsets$y;\n\n var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({\n x: x,\n y: y\n }) : {\n x: x,\n y: y\n };\n\n x = _ref3.x;\n y = _ref3.y;\n var hasX = offsets.hasOwnProperty('x');\n var hasY = offsets.hasOwnProperty('y');\n var sideX = left;\n var sideY = top;\n var win = window;\n\n if (adaptive) {\n var offsetParent = getOffsetParent(popper);\n var heightProp = 'clientHeight';\n var widthProp = 'clientWidth';\n\n if (offsetParent === getWindow(popper)) {\n offsetParent = getDocumentElement(popper);\n\n if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {\n heightProp = 'scrollHeight';\n widthProp = 'scrollWidth';\n }\n } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\n\n\n offsetParent = offsetParent;\n\n if (placement === top || (placement === left || placement === right) && variation === end) {\n sideY = bottom;\n var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]\n offsetParent[heightProp];\n y -= offsetY - popperRect.height;\n y *= gpuAcceleration ? 1 : -1;\n }\n\n if (placement === left || (placement === top || placement === bottom) && variation === end) {\n sideX = right;\n var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]\n offsetParent[widthProp];\n x -= offsetX - popperRect.width;\n x *= gpuAcceleration ? 1 : -1;\n }\n }\n\n var commonStyles = Object.assign({\n position: position\n }, adaptive && unsetSides);\n\n var _ref4 = roundOffsets === true ? roundOffsetsByDPR({\n x: x,\n y: y\n }, getWindow(popper)) : {\n x: x,\n y: y\n };\n\n x = _ref4.x;\n y = _ref4.y;\n\n if (gpuAcceleration) {\n var _Object$assign;\n\n return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? \"translate(\" + x + \"px, \" + y + \"px)\" : \"translate3d(\" + x + \"px, \" + y + \"px, 0)\", _Object$assign));\n }\n\n return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + \"px\" : '', _Object$assign2[sideX] = hasX ? x + \"px\" : '', _Object$assign2.transform = '', _Object$assign2));\n}\n\nfunction computeStyles(_ref5) {\n var state = _ref5.state,\n options = _ref5.options;\n var _options$gpuAccelerat = options.gpuAcceleration,\n gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,\n _options$adaptive = options.adaptive,\n adaptive = _options$adaptive === void 0 ? true : _options$adaptive,\n _options$roundOffsets = options.roundOffsets,\n roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;\n var commonStyles = {\n placement: getBasePlacement(state.placement),\n variation: getVariation(state.placement),\n popper: state.elements.popper,\n popperRect: state.rects.popper,\n gpuAcceleration: gpuAcceleration,\n isFixed: state.options.strategy === 'fixed'\n };\n\n if (state.modifiersData.popperOffsets != null) {\n state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.popperOffsets,\n position: state.options.strategy,\n adaptive: adaptive,\n roundOffsets: roundOffsets\n })));\n }\n\n if (state.modifiersData.arrow != null) {\n state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.arrow,\n position: 'absolute',\n adaptive: false,\n roundOffsets: roundOffsets\n })));\n }\n\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-placement': state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'computeStyles',\n enabled: true,\n phase: 'beforeWrite',\n fn: computeStyles,\n data: {}\n};","import getWindow from \"../dom-utils/getWindow.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar passive = {\n passive: true\n};\n\nfunction effect(_ref) {\n var state = _ref.state,\n instance = _ref.instance,\n options = _ref.options;\n var _options$scroll = options.scroll,\n scroll = _options$scroll === void 0 ? true : _options$scroll,\n _options$resize = options.resize,\n resize = _options$resize === void 0 ? true : _options$resize;\n var window = getWindow(state.elements.popper);\n var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.addEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.addEventListener('resize', instance.update, passive);\n }\n\n return function () {\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.removeEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.removeEventListener('resize', instance.update, passive);\n }\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'eventListeners',\n enabled: true,\n phase: 'write',\n fn: function fn() {},\n effect: effect,\n data: {}\n};","var hash = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nexport default function getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, function (matched) {\n return hash[matched];\n });\n}","var hash = {\n start: 'end',\n end: 'start'\n};\nexport default function getOppositeVariationPlacement(placement) {\n return placement.replace(/start|end/g, function (matched) {\n return hash[matched];\n });\n}","import getWindow from \"./getWindow.js\";\nexport default function getWindowScroll(node) {\n var win = getWindow(node);\n var scrollLeft = win.pageXOffset;\n var scrollTop = win.pageYOffset;\n return {\n scrollLeft: scrollLeft,\n scrollTop: scrollTop\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nexport default function getWindowScrollBarX(element) {\n // If has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n // Popper 1 is broken in this case and never had a bug report so let's assume\n // it's not an issue. I don't think anyone ever specifies width on \n // anyway.\n // Browsers where the left scrollbar doesn't cause an issue report `0` for\n // this (e.g. Edge 2019, IE11, Safari)\n return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;\n}","import getComputedStyle from \"./getComputedStyle.js\";\nexport default function isScrollParent(element) {\n // Firefox wants us to check `-x` and `-y` variations as well\n var _getComputedStyle = getComputedStyle(element),\n overflow = _getComputedStyle.overflow,\n overflowX = _getComputedStyle.overflowX,\n overflowY = _getComputedStyle.overflowY;\n\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}","import getParentNode from \"./getParentNode.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nexport default function getScrollParent(node) {\n if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return node.ownerDocument.body;\n }\n\n if (isHTMLElement(node) && isScrollParent(node)) {\n return node;\n }\n\n return getScrollParent(getParentNode(node));\n}","import getScrollParent from \"./getScrollParent.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getWindow from \"./getWindow.js\";\nimport isScrollParent from \"./isScrollParent.js\";\n/*\ngiven a DOM element, return the list of all scroll parents, up the list of ancesors\nuntil we get to the top window object. This list is what we attach scroll listeners\nto, because if any of these parent elements scroll, we'll need to re-calculate the\nreference element's position.\n*/\n\nexport default function listScrollParents(element, list) {\n var _element$ownerDocumen;\n\n if (list === void 0) {\n list = [];\n }\n\n var scrollParent = getScrollParent(element);\n var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);\n var win = getWindow(scrollParent);\n var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;\n var updatedList = list.concat(target);\n return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\n updatedList.concat(listScrollParents(getParentNode(target)));\n}","export default function rectToClientRect(rect) {\n return Object.assign({}, rect, {\n left: rect.x,\n top: rect.y,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n });\n}","import { viewport } from \"../enums.js\";\nimport getViewportRect from \"./getViewportRect.js\";\nimport getDocumentRect from \"./getDocumentRect.js\";\nimport listScrollParents from \"./listScrollParents.js\";\nimport getOffsetParent from \"./getOffsetParent.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport contains from \"./contains.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport rectToClientRect from \"../utils/rectToClientRect.js\";\nimport { max, min } from \"../utils/math.js\";\n\nfunction getInnerBoundingClientRect(element, strategy) {\n var rect = getBoundingClientRect(element, false, strategy === 'fixed');\n rect.top = rect.top + element.clientTop;\n rect.left = rect.left + element.clientLeft;\n rect.bottom = rect.top + element.clientHeight;\n rect.right = rect.left + element.clientWidth;\n rect.width = element.clientWidth;\n rect.height = element.clientHeight;\n rect.x = rect.left;\n rect.y = rect.top;\n return rect;\n}\n\nfunction getClientRectFromMixedType(element, clippingParent, strategy) {\n return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));\n} // A \"clipping parent\" is an overflowable container with the characteristic of\n// clipping (or hiding) overflowing elements with a position different from\n// `initial`\n\n\nfunction getClippingParents(element) {\n var clippingParents = listScrollParents(getParentNode(element));\n var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;\n var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;\n\n if (!isElement(clipperElement)) {\n return [];\n } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414\n\n\n return clippingParents.filter(function (clippingParent) {\n return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';\n });\n} // Gets the maximum area that the element is visible in due to any number of\n// clipping parents\n\n\nexport default function getClippingRect(element, boundary, rootBoundary, strategy) {\n var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);\n var clippingParents = [].concat(mainClippingParents, [rootBoundary]);\n var firstClippingParent = clippingParents[0];\n var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {\n var rect = getClientRectFromMixedType(element, clippingParent, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromMixedType(element, firstClippingParent, strategy));\n clippingRect.width = clippingRect.right - clippingRect.left;\n clippingRect.height = clippingRect.bottom - clippingRect.top;\n clippingRect.x = clippingRect.left;\n clippingRect.y = clippingRect.top;\n return clippingRect;\n}","import getWindow from \"./getWindow.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getViewportRect(element, strategy) {\n var win = getWindow(element);\n var html = getDocumentElement(element);\n var visualViewport = win.visualViewport;\n var width = html.clientWidth;\n var height = html.clientHeight;\n var x = 0;\n var y = 0;\n\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n var layoutViewport = isLayoutViewport();\n\n if (layoutViewport || !layoutViewport && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n\n return {\n width: width,\n height: height,\n x: x + getWindowScrollBarX(element),\n y: y\n };\n}","import getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nimport { max } from \"../utils/math.js\"; // Gets the entire size of the scrollable document area, even extending outside\n// of the `` and `` rect bounds if horizontally scrollable\n\nexport default function getDocumentRect(element) {\n var _element$ownerDocumen;\n\n var html = getDocumentElement(element);\n var winScroll = getWindowScroll(element);\n var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;\n var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);\n var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);\n var x = -winScroll.scrollLeft + getWindowScrollBarX(element);\n var y = -winScroll.scrollTop;\n\n if (getComputedStyle(body || html).direction === 'rtl') {\n x += max(html.clientWidth, body ? body.clientWidth : 0) - width;\n }\n\n return {\n width: width,\n height: height,\n x: x,\n y: y\n };\n}","import getBasePlacement from \"./getBasePlacement.js\";\nimport getVariation from \"./getVariation.js\";\nimport getMainAxisFromPlacement from \"./getMainAxisFromPlacement.js\";\nimport { top, right, bottom, left, start, end } from \"../enums.js\";\nexport default function computeOffsets(_ref) {\n var reference = _ref.reference,\n element = _ref.element,\n placement = _ref.placement;\n var basePlacement = placement ? getBasePlacement(placement) : null;\n var variation = placement ? getVariation(placement) : null;\n var commonX = reference.x + reference.width / 2 - element.width / 2;\n var commonY = reference.y + reference.height / 2 - element.height / 2;\n var offsets;\n\n switch (basePlacement) {\n case top:\n offsets = {\n x: commonX,\n y: reference.y - element.height\n };\n break;\n\n case bottom:\n offsets = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n\n case right:\n offsets = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n\n case left:\n offsets = {\n x: reference.x - element.width,\n y: commonY\n };\n break;\n\n default:\n offsets = {\n x: reference.x,\n y: reference.y\n };\n }\n\n var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;\n\n if (mainAxis != null) {\n var len = mainAxis === 'y' ? 'height' : 'width';\n\n switch (variation) {\n case start:\n offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);\n break;\n\n case end:\n offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);\n break;\n\n default:\n }\n }\n\n return offsets;\n}","import getClippingRect from \"../dom-utils/getClippingRect.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getBoundingClientRect from \"../dom-utils/getBoundingClientRect.js\";\nimport computeOffsets from \"./computeOffsets.js\";\nimport rectToClientRect from \"./rectToClientRect.js\";\nimport { clippingParents, reference, popper, bottom, top, right, basePlacements, viewport } from \"../enums.js\";\nimport { isElement } from \"../dom-utils/instanceOf.js\";\nimport mergePaddingObject from \"./mergePaddingObject.js\";\nimport expandToHashMap from \"./expandToHashMap.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport default function detectOverflow(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n _options$placement = _options.placement,\n placement = _options$placement === void 0 ? state.placement : _options$placement,\n _options$strategy = _options.strategy,\n strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,\n _options$boundary = _options.boundary,\n boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,\n _options$rootBoundary = _options.rootBoundary,\n rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,\n _options$elementConte = _options.elementContext,\n elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,\n _options$altBoundary = _options.altBoundary,\n altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,\n _options$padding = _options.padding,\n padding = _options$padding === void 0 ? 0 : _options$padding;\n var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n var altContext = elementContext === popper ? reference : popper;\n var popperRect = state.rects.popper;\n var element = state.elements[altBoundary ? altContext : elementContext];\n var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);\n var referenceClientRect = getBoundingClientRect(state.elements.reference);\n var popperOffsets = computeOffsets({\n reference: referenceClientRect,\n element: popperRect,\n strategy: 'absolute',\n placement: placement\n });\n var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));\n var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect\n // 0 or negative = within the clipping rect\n\n var overflowOffsets = {\n top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n };\n var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element\n\n if (elementContext === popper && offsetData) {\n var offset = offsetData[placement];\n Object.keys(overflowOffsets).forEach(function (key) {\n var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;\n var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';\n overflowOffsets[key] += offset[axis] * multiply;\n });\n }\n\n return overflowOffsets;\n}","import getOppositePlacement from \"../utils/getOppositePlacement.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getOppositeVariationPlacement from \"../utils/getOppositeVariationPlacement.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport computeAutoPlacement from \"../utils/computeAutoPlacement.js\";\nimport { bottom, top, start, right, left, auto } from \"../enums.js\";\nimport getVariation from \"../utils/getVariation.js\"; // eslint-disable-next-line import/no-unused-modules\n\nfunction getExpandedFallbackPlacements(placement) {\n if (getBasePlacement(placement) === auto) {\n return [];\n }\n\n var oppositePlacement = getOppositePlacement(placement);\n return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];\n}\n\nfunction flip(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n\n if (state.modifiersData[name]._skip) {\n return;\n }\n\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,\n specifiedFallbackPlacements = options.fallbackPlacements,\n padding = options.padding,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n _options$flipVariatio = options.flipVariations,\n flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,\n allowedAutoPlacements = options.allowedAutoPlacements;\n var preferredPlacement = state.options.placement;\n var basePlacement = getBasePlacement(preferredPlacement);\n var isBasePlacement = basePlacement === preferredPlacement;\n var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));\n var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {\n return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n flipVariations: flipVariations,\n allowedAutoPlacements: allowedAutoPlacements\n }) : placement);\n }, []);\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var checksMap = new Map();\n var makeFallbackChecks = true;\n var firstFittingPlacement = placements[0];\n\n for (var i = 0; i < placements.length; i++) {\n var placement = placements[i];\n\n var _basePlacement = getBasePlacement(placement);\n\n var isStartVariation = getVariation(placement) === start;\n var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;\n var len = isVertical ? 'width' : 'height';\n var overflow = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n altBoundary: altBoundary,\n padding: padding\n });\n var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;\n\n if (referenceRect[len] > popperRect[len]) {\n mainVariationSide = getOppositePlacement(mainVariationSide);\n }\n\n var altVariationSide = getOppositePlacement(mainVariationSide);\n var checks = [];\n\n if (checkMainAxis) {\n checks.push(overflow[_basePlacement] <= 0);\n }\n\n if (checkAltAxis) {\n checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);\n }\n\n if (checks.every(function (check) {\n return check;\n })) {\n firstFittingPlacement = placement;\n makeFallbackChecks = false;\n break;\n }\n\n checksMap.set(placement, checks);\n }\n\n if (makeFallbackChecks) {\n // `2` may be desired in some cases – research later\n var numberOfChecks = flipVariations ? 3 : 1;\n\n var _loop = function _loop(_i) {\n var fittingPlacement = placements.find(function (placement) {\n var checks = checksMap.get(placement);\n\n if (checks) {\n return checks.slice(0, _i).every(function (check) {\n return check;\n });\n }\n });\n\n if (fittingPlacement) {\n firstFittingPlacement = fittingPlacement;\n return \"break\";\n }\n };\n\n for (var _i = numberOfChecks; _i > 0; _i--) {\n var _ret = _loop(_i);\n\n if (_ret === \"break\") break;\n }\n }\n\n if (state.placement !== firstFittingPlacement) {\n state.modifiersData[name]._skip = true;\n state.placement = firstFittingPlacement;\n state.reset = true;\n }\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'flip',\n enabled: true,\n phase: 'main',\n fn: flip,\n requiresIfExists: ['offset'],\n data: {\n _skip: false\n }\n};","import getVariation from \"./getVariation.js\";\nimport { variationPlacements, basePlacements, placements as allPlacements } from \"../enums.js\";\nimport detectOverflow from \"./detectOverflow.js\";\nimport getBasePlacement from \"./getBasePlacement.js\";\nexport default function computeAutoPlacement(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n placement = _options.placement,\n boundary = _options.boundary,\n rootBoundary = _options.rootBoundary,\n padding = _options.padding,\n flipVariations = _options.flipVariations,\n _options$allowedAutoP = _options.allowedAutoPlacements,\n allowedAutoPlacements = _options$allowedAutoP === void 0 ? allPlacements : _options$allowedAutoP;\n var variation = getVariation(placement);\n var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {\n return getVariation(placement) === variation;\n }) : basePlacements;\n var allowedPlacements = placements.filter(function (placement) {\n return allowedAutoPlacements.indexOf(placement) >= 0;\n });\n\n if (allowedPlacements.length === 0) {\n allowedPlacements = placements;\n } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\n\n\n var overflows = allowedPlacements.reduce(function (acc, placement) {\n acc[placement] = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding\n })[getBasePlacement(placement)];\n return acc;\n }, {});\n return Object.keys(overflows).sort(function (a, b) {\n return overflows[a] - overflows[b];\n });\n}","import { top, bottom, left, right } from \"../enums.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\n\nfunction getSideOffsets(overflow, rect, preventedOffsets) {\n if (preventedOffsets === void 0) {\n preventedOffsets = {\n x: 0,\n y: 0\n };\n }\n\n return {\n top: overflow.top - rect.height - preventedOffsets.y,\n right: overflow.right - rect.width + preventedOffsets.x,\n bottom: overflow.bottom - rect.height + preventedOffsets.y,\n left: overflow.left - rect.width - preventedOffsets.x\n };\n}\n\nfunction isAnySideFullyClipped(overflow) {\n return [top, right, bottom, left].some(function (side) {\n return overflow[side] >= 0;\n });\n}\n\nfunction hide(_ref) {\n var state = _ref.state,\n name = _ref.name;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var preventedOffsets = state.modifiersData.preventOverflow;\n var referenceOverflow = detectOverflow(state, {\n elementContext: 'reference'\n });\n var popperAltOverflow = detectOverflow(state, {\n altBoundary: true\n });\n var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);\n var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);\n var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);\n var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\n state.modifiersData[name] = {\n referenceClippingOffsets: referenceClippingOffsets,\n popperEscapeOffsets: popperEscapeOffsets,\n isReferenceHidden: isReferenceHidden,\n hasPopperEscaped: hasPopperEscaped\n };\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-reference-hidden': isReferenceHidden,\n 'data-popper-escaped': hasPopperEscaped\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'hide',\n enabled: true,\n phase: 'main',\n requiresIfExists: ['preventOverflow'],\n fn: hide\n};","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport { top, left, right, placements } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport function distanceAndSkiddingToXY(placement, rects, offset) {\n var basePlacement = getBasePlacement(placement);\n var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;\n\n var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {\n placement: placement\n })) : offset,\n skidding = _ref[0],\n distance = _ref[1];\n\n skidding = skidding || 0;\n distance = (distance || 0) * invertDistance;\n return [left, right].indexOf(basePlacement) >= 0 ? {\n x: distance,\n y: skidding\n } : {\n x: skidding,\n y: distance\n };\n}\n\nfunction offset(_ref2) {\n var state = _ref2.state,\n options = _ref2.options,\n name = _ref2.name;\n var _options$offset = options.offset,\n offset = _options$offset === void 0 ? [0, 0] : _options$offset;\n var data = placements.reduce(function (acc, placement) {\n acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n return acc;\n }, {});\n var _data$state$placement = data[state.placement],\n x = _data$state$placement.x,\n y = _data$state$placement.y;\n\n if (state.modifiersData.popperOffsets != null) {\n state.modifiersData.popperOffsets.x += x;\n state.modifiersData.popperOffsets.y += y;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'offset',\n enabled: true,\n phase: 'main',\n requires: ['popperOffsets'],\n fn: offset\n};","import { top, left, right, bottom, start } from \"../enums.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport getAltAxis from \"../utils/getAltAxis.js\";\nimport { within, withinMaxClamp } from \"../utils/within.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport getFreshSideObject from \"../utils/getFreshSideObject.js\";\nimport { min as mathMin, max as mathMax } from \"../utils/math.js\";\n\nfunction preventOverflow(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n padding = options.padding,\n _options$tether = options.tether,\n tether = _options$tether === void 0 ? true : _options$tether,\n _options$tetherOffset = options.tetherOffset,\n tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;\n var overflow = detectOverflow(state, {\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n altBoundary: altBoundary\n });\n var basePlacement = getBasePlacement(state.placement);\n var variation = getVariation(state.placement);\n var isBasePlacement = !variation;\n var mainAxis = getMainAxisFromPlacement(basePlacement);\n var altAxis = getAltAxis(mainAxis);\n var popperOffsets = state.modifiersData.popperOffsets;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {\n placement: state.placement\n })) : tetherOffset;\n var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {\n mainAxis: tetherOffsetValue,\n altAxis: tetherOffsetValue\n } : Object.assign({\n mainAxis: 0,\n altAxis: 0\n }, tetherOffsetValue);\n var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;\n var data = {\n x: 0,\n y: 0\n };\n\n if (!popperOffsets) {\n return;\n }\n\n if (checkMainAxis) {\n var _offsetModifierState$;\n\n var mainSide = mainAxis === 'y' ? top : left;\n var altSide = mainAxis === 'y' ? bottom : right;\n var len = mainAxis === 'y' ? 'height' : 'width';\n var offset = popperOffsets[mainAxis];\n var min = offset + overflow[mainSide];\n var max = offset - overflow[altSide];\n var additive = tether ? -popperRect[len] / 2 : 0;\n var minLen = variation === start ? referenceRect[len] : popperRect[len];\n var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go\n // outside the reference bounds\n\n var arrowElement = state.elements.arrow;\n var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {\n width: 0,\n height: 0\n };\n var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();\n var arrowPaddingMin = arrowPaddingObject[mainSide];\n var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want\n // to include its full size in the calculation. If the reference is small\n // and near the edge of a boundary, the popper can overflow even if the\n // reference is not overflowing as well (e.g. virtual elements with no\n // width or height)\n\n var arrowLen = within(0, referenceRect[len], arrowRect[len]);\n var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;\n var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;\n var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);\n var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;\n var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;\n var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;\n var tetherMax = offset + maxOffset - offsetModifierValue;\n var preventedOffset = within(tether ? mathMin(min, tetherMin) : min, offset, tether ? mathMax(max, tetherMax) : max);\n popperOffsets[mainAxis] = preventedOffset;\n data[mainAxis] = preventedOffset - offset;\n }\n\n if (checkAltAxis) {\n var _offsetModifierState$2;\n\n var _mainSide = mainAxis === 'x' ? top : left;\n\n var _altSide = mainAxis === 'x' ? bottom : right;\n\n var _offset = popperOffsets[altAxis];\n\n var _len = altAxis === 'y' ? 'height' : 'width';\n\n var _min = _offset + overflow[_mainSide];\n\n var _max = _offset - overflow[_altSide];\n\n var isOriginSide = [top, left].indexOf(basePlacement) !== -1;\n\n var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;\n\n var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;\n\n var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;\n\n var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);\n\n popperOffsets[altAxis] = _preventedOffset;\n data[altAxis] = _preventedOffset - _offset;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'preventOverflow',\n enabled: true,\n phase: 'main',\n fn: preventOverflow,\n requiresIfExists: ['offset']\n};","export default function getAltAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getNodeScroll from \"./getNodeScroll.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport { round } from \"../utils/math.js\";\n\nfunction isElementScaled(element) {\n var rect = element.getBoundingClientRect();\n var scaleX = round(rect.width) / element.offsetWidth || 1;\n var scaleY = round(rect.height) / element.offsetHeight || 1;\n return scaleX !== 1 || scaleY !== 1;\n} // Returns the composite rect of an element relative to its offsetParent.\n// Composite means it takes into account transforms as well as layout.\n\n\nexport default function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n\n var isOffsetParentAnElement = isHTMLElement(offsetParent);\n var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);\n var documentElement = getDocumentElement(offsetParent);\n var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);\n var scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n var offsets = {\n x: 0,\n y: 0\n };\n\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078\n isScrollParent(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n\n if (isHTMLElement(offsetParent)) {\n offsets = getBoundingClientRect(offsetParent, true);\n offsets.x += offsetParent.clientLeft;\n offsets.y += offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}","import getWindowScroll from \"./getWindowScroll.js\";\nimport getWindow from \"./getWindow.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getHTMLElementScroll from \"./getHTMLElementScroll.js\";\nexport default function getNodeScroll(node) {\n if (node === getWindow(node) || !isHTMLElement(node)) {\n return getWindowScroll(node);\n } else {\n return getHTMLElementScroll(node);\n }\n}","export default function getHTMLElementScroll(element) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n}","import { modifierPhases } from \"../enums.js\"; // source: https://stackoverflow.com/questions/49875255\n\nfunction order(modifiers) {\n var map = new Map();\n var visited = new Set();\n var result = [];\n modifiers.forEach(function (modifier) {\n map.set(modifier.name, modifier);\n }); // On visiting object, check for its dependencies and visit them recursively\n\n function sort(modifier) {\n visited.add(modifier.name);\n var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);\n requires.forEach(function (dep) {\n if (!visited.has(dep)) {\n var depModifier = map.get(dep);\n\n if (depModifier) {\n sort(depModifier);\n }\n }\n });\n result.push(modifier);\n }\n\n modifiers.forEach(function (modifier) {\n if (!visited.has(modifier.name)) {\n // check for visited object\n sort(modifier);\n }\n });\n return result;\n}\n\nexport default function orderModifiers(modifiers) {\n // order based on dependencies\n var orderedModifiers = order(modifiers); // order based on phase\n\n return modifierPhases.reduce(function (acc, phase) {\n return acc.concat(orderedModifiers.filter(function (modifier) {\n return modifier.phase === phase;\n }));\n }, []);\n}","export default function debounce(fn) {\n var pending;\n return function () {\n if (!pending) {\n pending = new Promise(function (resolve) {\n Promise.resolve().then(function () {\n pending = undefined;\n resolve(fn());\n });\n });\n }\n\n return pending;\n };\n}","import getCompositeRect from \"./dom-utils/getCompositeRect.js\";\nimport getLayoutRect from \"./dom-utils/getLayoutRect.js\";\nimport listScrollParents from \"./dom-utils/listScrollParents.js\";\nimport getOffsetParent from \"./dom-utils/getOffsetParent.js\";\nimport orderModifiers from \"./utils/orderModifiers.js\";\nimport debounce from \"./utils/debounce.js\";\nimport mergeByName from \"./utils/mergeByName.js\";\nimport detectOverflow from \"./utils/detectOverflow.js\";\nimport { isElement } from \"./dom-utils/instanceOf.js\";\nvar DEFAULT_OPTIONS = {\n placement: 'bottom',\n modifiers: [],\n strategy: 'absolute'\n};\n\nfunction areValidElements() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return !args.some(function (element) {\n return !(element && typeof element.getBoundingClientRect === 'function');\n });\n}\n\nexport function popperGenerator(generatorOptions) {\n if (generatorOptions === void 0) {\n generatorOptions = {};\n }\n\n var _generatorOptions = generatorOptions,\n _generatorOptions$def = _generatorOptions.defaultModifiers,\n defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,\n _generatorOptions$def2 = _generatorOptions.defaultOptions,\n defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;\n return function createPopper(reference, popper, options) {\n if (options === void 0) {\n options = defaultOptions;\n }\n\n var state = {\n placement: 'bottom',\n orderedModifiers: [],\n options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),\n modifiersData: {},\n elements: {\n reference: reference,\n popper: popper\n },\n attributes: {},\n styles: {}\n };\n var effectCleanupFns = [];\n var isDestroyed = false;\n var instance = {\n state: state,\n setOptions: function setOptions(setOptionsAction) {\n var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;\n cleanupModifierEffects();\n state.options = Object.assign({}, defaultOptions, state.options, options);\n state.scrollParents = {\n reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],\n popper: listScrollParents(popper)\n }; // Orders the modifiers based on their dependencies and `phase`\n // properties\n\n var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers\n\n state.orderedModifiers = orderedModifiers.filter(function (m) {\n return m.enabled;\n });\n runModifierEffects();\n return instance.update();\n },\n // Sync update – it will always be executed, even if not necessary. This\n // is useful for low frequency updates where sync behavior simplifies the\n // logic.\n // For high frequency updates (e.g. `resize` and `scroll` events), always\n // prefer the async Popper#update method\n forceUpdate: function forceUpdate() {\n if (isDestroyed) {\n return;\n }\n\n var _state$elements = state.elements,\n reference = _state$elements.reference,\n popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements\n // anymore\n\n if (!areValidElements(reference, popper)) {\n return;\n } // Store the reference and popper rects to be read by modifiers\n\n\n state.rects = {\n reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),\n popper: getLayoutRect(popper)\n }; // Modifiers have the ability to reset the current update cycle. The\n // most common use case for this is the `flip` modifier changing the\n // placement, which then needs to re-run all the modifiers, because the\n // logic was previously ran for the previous placement and is therefore\n // stale/incorrect\n\n state.reset = false;\n state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier\n // is filled with the initial data specified by the modifier. This means\n // it doesn't persist and is fresh on each update.\n // To ensure persistent data, use `${name}#persistent`\n\n state.orderedModifiers.forEach(function (modifier) {\n return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);\n });\n\n for (var index = 0; index < state.orderedModifiers.length; index++) {\n if (state.reset === true) {\n state.reset = false;\n index = -1;\n continue;\n }\n\n var _state$orderedModifie = state.orderedModifiers[index],\n fn = _state$orderedModifie.fn,\n _state$orderedModifie2 = _state$orderedModifie.options,\n _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,\n name = _state$orderedModifie.name;\n\n if (typeof fn === 'function') {\n state = fn({\n state: state,\n options: _options,\n name: name,\n instance: instance\n }) || state;\n }\n }\n },\n // Async and optimistically optimized update – it will not be executed if\n // not necessary (debounced to run at most once-per-tick)\n update: debounce(function () {\n return new Promise(function (resolve) {\n instance.forceUpdate();\n resolve(state);\n });\n }),\n destroy: function destroy() {\n cleanupModifierEffects();\n isDestroyed = true;\n }\n };\n\n if (!areValidElements(reference, popper)) {\n return instance;\n }\n\n instance.setOptions(options).then(function (state) {\n if (!isDestroyed && options.onFirstUpdate) {\n options.onFirstUpdate(state);\n }\n }); // Modifiers have the ability to execute arbitrary code before the first\n // update cycle runs. They will be executed in the same order as the update\n // cycle. This is useful when a modifier adds some persistent data that\n // other modifiers need to use, but the modifier is run after the dependent\n // one.\n\n function runModifierEffects() {\n state.orderedModifiers.forEach(function (_ref) {\n var name = _ref.name,\n _ref$options = _ref.options,\n options = _ref$options === void 0 ? {} : _ref$options,\n effect = _ref.effect;\n\n if (typeof effect === 'function') {\n var cleanupFn = effect({\n state: state,\n name: name,\n instance: instance,\n options: options\n });\n\n var noopFn = function noopFn() {};\n\n effectCleanupFns.push(cleanupFn || noopFn);\n }\n });\n }\n\n function cleanupModifierEffects() {\n effectCleanupFns.forEach(function (fn) {\n return fn();\n });\n effectCleanupFns = [];\n }\n\n return instance;\n };\n}\nexport var createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules\n\nexport { detectOverflow };","export default function mergeByName(modifiers) {\n var merged = modifiers.reduce(function (merged, current) {\n var existing = merged[current.name];\n merged[current.name] = existing ? Object.assign({}, existing, current, {\n options: Object.assign({}, existing.options, current.options),\n data: Object.assign({}, existing.data, current.data)\n }) : current;\n return merged;\n }, {}); // IE11 does not support Object.values\n\n return Object.keys(merged).map(function (key) {\n return merged[key];\n });\n}","import arrow from '@popperjs/core/lib/modifiers/arrow';\nimport computeStyles from '@popperjs/core/lib/modifiers/computeStyles';\nimport eventListeners from '@popperjs/core/lib/modifiers/eventListeners';\nimport flip from '@popperjs/core/lib/modifiers/flip';\nimport hide from '@popperjs/core/lib/modifiers/hide';\nimport offset from '@popperjs/core/lib/modifiers/offset';\nimport popperOffsets from '@popperjs/core/lib/modifiers/popperOffsets';\nimport preventOverflow from '@popperjs/core/lib/modifiers/preventOverflow';\nimport { placements } from '@popperjs/core/lib/enums';\nimport { popperGenerator } from '@popperjs/core/lib/popper-base'; // For the common JS build we will turn this file into a bundle with no imports.\n// This is b/c the Popper lib is all esm files, and would break in a common js only environment\n\nexport var createPopper = popperGenerator({\n defaultModifiers: [hide, popperOffsets, computeStyles, eventListeners, offset, flip, preventOverflow, arrow]\n});\nexport { placements };","import computeOffsets from \"../utils/computeOffsets.js\";\n\nfunction popperOffsets(_ref) {\n var state = _ref.state,\n name = _ref.name;\n // Offsets are the actual position the popper needs to have to be\n // properly positioned near its reference element\n // This is the most basic placement, and will be adjusted by\n // the modifiers in the next step\n state.modifiersData[name] = computeOffsets({\n reference: state.rects.reference,\n element: state.rects.popper,\n strategy: 'absolute',\n placement: state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'popperOffsets',\n enabled: true,\n phase: 'read',\n fn: popperOffsets,\n data: {}\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport useSafeState from '@restart/hooks/useSafeState';\nimport { createPopper } from './popper';\n\nvar initialPopperStyles = function initialPopperStyles(position) {\n return {\n position: position,\n top: '0',\n left: '0',\n opacity: '0',\n pointerEvents: 'none'\n };\n};\n\nvar disabledApplyStylesModifier = {\n name: 'applyStyles',\n enabled: false\n}; // In order to satisfy the current usage of options, including undefined\n\nvar ariaDescribedByModifier = {\n name: 'ariaDescribedBy',\n enabled: true,\n phase: 'afterWrite',\n effect: function effect(_ref) {\n var state = _ref.state;\n return function () {\n var _state$elements = state.elements,\n reference = _state$elements.reference,\n popper = _state$elements.popper;\n\n if ('removeAttribute' in reference) {\n var ids = (reference.getAttribute('aria-describedby') || '').split(',').filter(function (id) {\n return id.trim() !== popper.id;\n });\n if (!ids.length) reference.removeAttribute('aria-describedby');else reference.setAttribute('aria-describedby', ids.join(','));\n }\n };\n },\n fn: function fn(_ref2) {\n var _popper$getAttribute;\n\n var state = _ref2.state;\n var _state$elements2 = state.elements,\n popper = _state$elements2.popper,\n reference = _state$elements2.reference;\n var role = (_popper$getAttribute = popper.getAttribute('role')) == null ? void 0 : _popper$getAttribute.toLowerCase();\n\n if (popper.id && role === 'tooltip' && 'setAttribute' in reference) {\n var ids = reference.getAttribute('aria-describedby');\n\n if (ids && ids.split(',').indexOf(popper.id) !== -1) {\n return;\n }\n\n reference.setAttribute('aria-describedby', ids ? ids + \",\" + popper.id : popper.id);\n }\n }\n};\nvar EMPTY_MODIFIERS = [];\n/**\n * Position an element relative some reference element using Popper.js\n *\n * @param referenceElement\n * @param popperElement\n * @param {object} options\n * @param {object=} options.modifiers Popper.js modifiers\n * @param {boolean=} options.enabled toggle the popper functionality on/off\n * @param {string=} options.placement The popper element placement relative to the reference element\n * @param {string=} options.strategy the positioning strategy\n * @param {boolean=} options.eventsEnabled have Popper listen on window resize events to reposition the element\n * @param {function=} options.onCreate called when the popper is created\n * @param {function=} options.onUpdate called when the popper is updated\n *\n * @returns {UsePopperState} The popper state\n */\n\nfunction usePopper(referenceElement, popperElement, _temp) {\n var _ref3 = _temp === void 0 ? {} : _temp,\n _ref3$enabled = _ref3.enabled,\n enabled = _ref3$enabled === void 0 ? true : _ref3$enabled,\n _ref3$placement = _ref3.placement,\n placement = _ref3$placement === void 0 ? 'bottom' : _ref3$placement,\n _ref3$strategy = _ref3.strategy,\n strategy = _ref3$strategy === void 0 ? 'absolute' : _ref3$strategy,\n _ref3$modifiers = _ref3.modifiers,\n modifiers = _ref3$modifiers === void 0 ? EMPTY_MODIFIERS : _ref3$modifiers,\n config = _objectWithoutPropertiesLoose(_ref3, [\"enabled\", \"placement\", \"strategy\", \"modifiers\"]);\n\n var popperInstanceRef = useRef();\n var update = useCallback(function () {\n var _popperInstanceRef$cu;\n\n (_popperInstanceRef$cu = popperInstanceRef.current) == null ? void 0 : _popperInstanceRef$cu.update();\n }, []);\n var forceUpdate = useCallback(function () {\n var _popperInstanceRef$cu2;\n\n (_popperInstanceRef$cu2 = popperInstanceRef.current) == null ? void 0 : _popperInstanceRef$cu2.forceUpdate();\n }, []);\n\n var _useSafeState = useSafeState(useState({\n placement: placement,\n update: update,\n forceUpdate: forceUpdate,\n attributes: {},\n styles: {\n popper: initialPopperStyles(strategy),\n arrow: {}\n }\n })),\n popperState = _useSafeState[0],\n setState = _useSafeState[1];\n\n var updateModifier = useMemo(function () {\n return {\n name: 'updateStateModifier',\n enabled: true,\n phase: 'write',\n requires: ['computeStyles'],\n fn: function fn(_ref4) {\n var state = _ref4.state;\n var styles = {};\n var attributes = {};\n Object.keys(state.elements).forEach(function (element) {\n styles[element] = state.styles[element];\n attributes[element] = state.attributes[element];\n });\n setState({\n state: state,\n styles: styles,\n attributes: attributes,\n update: update,\n forceUpdate: forceUpdate,\n placement: state.placement\n });\n }\n };\n }, [update, forceUpdate, setState]);\n useEffect(function () {\n if (!popperInstanceRef.current || !enabled) return;\n popperInstanceRef.current.setOptions({\n placement: placement,\n strategy: strategy,\n modifiers: [].concat(modifiers, [updateModifier, disabledApplyStylesModifier])\n }); // intentionally NOT re-running on new modifiers\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [strategy, placement, updateModifier, enabled]);\n useEffect(function () {\n if (!enabled || referenceElement == null || popperElement == null) {\n return undefined;\n }\n\n popperInstanceRef.current = createPopper(referenceElement, popperElement, _extends({}, config, {\n placement: placement,\n strategy: strategy,\n modifiers: [].concat(modifiers, [ariaDescribedByModifier, updateModifier])\n }));\n return function () {\n if (popperInstanceRef.current != null) {\n popperInstanceRef.current.destroy();\n popperInstanceRef.current = undefined;\n setState(function (s) {\n return _extends({}, s, {\n attributes: {},\n styles: {\n popper: initialPopperStyles(strategy)\n }\n });\n });\n }\n }; // This is only run once to _create_ the popper\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [enabled, referenceElement, popperElement]);\n return popperState;\n}\n\nexport default usePopper;","/* eslint-disable no-return-assign */\nimport canUseDOM from './canUseDOM';\nexport var optionsSupported = false;\nexport var onceSupported = false;\n\ntry {\n var options = {\n get passive() {\n return optionsSupported = true;\n },\n\n get once() {\n // eslint-disable-next-line no-multi-assign\n return onceSupported = optionsSupported = true;\n }\n\n };\n\n if (canUseDOM) {\n window.addEventListener('test', options, options);\n window.removeEventListener('test', options, true);\n }\n} catch (e) {\n /* */\n}\n\n/**\n * An `addEventListener` ponyfill, supports the `once` option\n * \n * @param node the element\n * @param eventName the event name\n * @param handle the handler\n * @param options event options\n */\nfunction addEventListener(node, eventName, handler, options) {\n if (options && typeof options !== 'boolean' && !onceSupported) {\n var once = options.once,\n capture = options.capture;\n var wrappedHandler = handler;\n\n if (!onceSupported && once) {\n wrappedHandler = handler.__once || function onceHandler(event) {\n this.removeEventListener(eventName, onceHandler, capture);\n handler.call(this, event);\n };\n\n handler.__once = wrappedHandler;\n }\n\n node.addEventListener(eventName, wrappedHandler, optionsSupported ? options : capture);\n }\n\n node.addEventListener(eventName, handler, options);\n}\n\nexport default addEventListener;","/**\n * A `removeEventListener` ponyfill\n * \n * @param node the element\n * @param eventName the event name\n * @param handle the handler\n * @param options event options\n */\nfunction removeEventListener(node, eventName, handler, options) {\n var capture = options && typeof options !== 'boolean' ? options.capture : options;\n node.removeEventListener(eventName, handler, capture);\n\n if (handler.__once) {\n node.removeEventListener(eventName, handler.__once, capture);\n }\n}\n\nexport default removeEventListener;","import addEventListener from './addEventListener';\nimport removeEventListener from './removeEventListener';\n\nfunction listen(node, eventName, handler, options) {\n addEventListener(node, eventName, handler, options);\n return function () {\n removeEventListener(node, eventName, handler, options);\n };\n}\n\nexport default listen;","import { useEffect, useRef } from 'react';\n\n/**\n * Creates a `Ref` whose value is updated in an effect, ensuring the most recent\n * value is the one rendered with. Generally only required for Concurrent mode usage\n * where previous work in `render()` may be discarded before being used.\n *\n * This is safe to access in an event handler.\n *\n * @param value The `Ref` value\n */\nfunction useCommittedRef(value) {\n const ref = useRef(value);\n useEffect(() => {\n ref.current = value;\n }, [value]);\n return ref;\n}\nexport default useCommittedRef;","import { useCallback } from 'react';\nimport useCommittedRef from './useCommittedRef';\nexport default function useEventCallback(fn) {\n const ref = useCommittedRef(fn);\n return useCallback(function (...args) {\n return ref.current && ref.current(...args);\n }, [ref]);\n}","import ownerDocument from 'dom-helpers/ownerDocument';\nimport safeFindDOMNode from './safeFindDOMNode';\nexport default (function (componentOrElement) {\n return ownerDocument(safeFindDOMNode(componentOrElement));\n});","import ReactDOM from 'react-dom';\nexport default function safeFindDOMNode(componentOrElement) {\n if (componentOrElement && 'setState' in componentOrElement) {\n return ReactDOM.findDOMNode(componentOrElement);\n }\n\n return componentOrElement != null ? componentOrElement : null;\n}","import contains from 'dom-helpers/contains';\nimport listen from 'dom-helpers/listen';\nimport { useCallback, useEffect, useRef } from 'react';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport warning from 'warning';\nimport ownerDocument from './ownerDocument';\nvar escapeKeyCode = 27;\n\nvar noop = function noop() {};\n\nfunction isLeftClickEvent(event) {\n return event.button === 0;\n}\n\nfunction isModifiedEvent(event) {\n return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);\n}\n\nvar getRefTarget = function getRefTarget(ref) {\n return ref && ('current' in ref ? ref.current : ref);\n};\n\n/**\n * The `useRootClose` hook registers your callback on the document\n * when rendered. Powers the `` component. This is used achieve modal\n * style behavior where your callback is triggered when the user tries to\n * interact with the rest of the document or hits the `esc` key.\n *\n * @param {Ref| HTMLElement} ref The element boundary\n * @param {function} onRootClose\n * @param {object=} options\n * @param {boolean=} options.disabled\n * @param {string=} options.clickTrigger The DOM event name (click, mousedown, etc) to attach listeners on\n */\nfunction useRootClose(ref, onRootClose, _temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n disabled = _ref.disabled,\n _ref$clickTrigger = _ref.clickTrigger,\n clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger;\n\n var preventMouseRootCloseRef = useRef(false);\n var onClose = onRootClose || noop;\n var handleMouseCapture = useCallback(function (e) {\n var _e$composedPath$;\n\n var currentTarget = getRefTarget(ref);\n warning(!!currentTarget, 'RootClose captured a close event but does not have a ref to compare it to. ' + 'useRootClose(), should be passed a ref that resolves to a DOM node');\n preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, (_e$composedPath$ = e.composedPath == null ? void 0 : e.composedPath()[0]) != null ? _e$composedPath$ : e.target);\n }, [ref]);\n var handleMouse = useEventCallback(function (e) {\n if (!preventMouseRootCloseRef.current) {\n onClose(e);\n }\n });\n var handleKeyUp = useEventCallback(function (e) {\n if (e.keyCode === escapeKeyCode) {\n onClose(e);\n }\n });\n useEffect(function () {\n if (disabled || ref == null) return undefined; // Store the current event to avoid triggering handlers immediately\n // https://github.com/facebook/react/issues/20074\n\n var currentEvent = window.event;\n var doc = ownerDocument(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to\n // avoid false positives in the contains() check below if the target DOM\n // element is removed in the React mouse callback.\n\n var removeMouseCaptureListener = listen(doc, clickTrigger, handleMouseCapture, true);\n var removeMouseListener = listen(doc, clickTrigger, function (e) {\n // skip if this event is the same as the one running when we added the handlers\n if (e === currentEvent) {\n currentEvent = undefined;\n return;\n }\n\n handleMouse(e);\n });\n var removeKeyupListener = listen(doc, 'keyup', function (e) {\n // skip if this event is the same as the one running when we added the handlers\n if (e === currentEvent) {\n currentEvent = undefined;\n return;\n }\n\n handleKeyUp(e);\n });\n var mobileSafariHackListeners = [];\n\n if ('ontouchstart' in doc.documentElement) {\n mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) {\n return listen(el, 'mousemove', noop);\n });\n }\n\n return function () {\n removeMouseCaptureListener();\n removeMouseListener();\n removeKeyupListener();\n mobileSafariHackListeners.forEach(function (remove) {\n return remove();\n });\n };\n }, [ref, disabled, clickTrigger, handleMouseCapture, handleMouse, handleKeyUp]);\n}\n\nexport default useRootClose;","import ownerDocument from 'dom-helpers/ownerDocument';\nimport { useState, useEffect } from 'react';\nexport var resolveContainerRef = function resolveContainerRef(ref) {\n var _ref;\n\n if (typeof document === 'undefined') return null;\n if (ref == null) return ownerDocument().body;\n if (typeof ref === 'function') ref = ref();\n if (ref && 'current' in ref) ref = ref.current;\n if ((_ref = ref) != null && _ref.nodeType) return ref || null;\n return null;\n};\nexport default function useWaitForDOMRef(ref, onResolved) {\n var _useState = useState(function () {\n return resolveContainerRef(ref);\n }),\n resolvedRef = _useState[0],\n setRef = _useState[1];\n\n if (!resolvedRef) {\n var earlyRef = resolveContainerRef(ref);\n if (earlyRef) setRef(earlyRef);\n }\n\n useEffect(function () {\n if (onResolved && resolvedRef) {\n onResolved(resolvedRef);\n }\n }, [onResolved, resolvedRef]);\n useEffect(function () {\n var nextRef = resolveContainerRef(ref);\n\n if (nextRef !== resolvedRef) {\n setRef(nextRef);\n }\n }, [ref, resolvedRef]);\n return resolvedRef;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport function toModifierMap(modifiers) {\n var result = {};\n\n if (!Array.isArray(modifiers)) {\n return modifiers || result;\n } // eslint-disable-next-line no-unused-expressions\n\n\n modifiers == null ? void 0 : modifiers.forEach(function (m) {\n result[m.name] = m;\n });\n return result;\n}\nexport function toModifierArray(map) {\n if (map === void 0) {\n map = {};\n }\n\n if (Array.isArray(map)) return map;\n return Object.keys(map).map(function (k) {\n map[k].name = k;\n return map[k];\n });\n}\nexport default function mergeOptionsWithPopperConfig(_ref) {\n var _modifiers$preventOve, _modifiers$preventOve2, _modifiers$offset, _modifiers$arrow;\n\n var enabled = _ref.enabled,\n enableEvents = _ref.enableEvents,\n placement = _ref.placement,\n flip = _ref.flip,\n offset = _ref.offset,\n fixed = _ref.fixed,\n containerPadding = _ref.containerPadding,\n arrowElement = _ref.arrowElement,\n _ref$popperConfig = _ref.popperConfig,\n popperConfig = _ref$popperConfig === void 0 ? {} : _ref$popperConfig;\n var modifiers = toModifierMap(popperConfig.modifiers);\n return _extends({}, popperConfig, {\n placement: placement,\n enabled: enabled,\n strategy: fixed ? 'fixed' : popperConfig.strategy,\n modifiers: toModifierArray(_extends({}, modifiers, {\n eventListeners: {\n enabled: enableEvents\n },\n preventOverflow: _extends({}, modifiers.preventOverflow, {\n options: containerPadding ? _extends({\n padding: containerPadding\n }, (_modifiers$preventOve = modifiers.preventOverflow) == null ? void 0 : _modifiers$preventOve.options) : (_modifiers$preventOve2 = modifiers.preventOverflow) == null ? void 0 : _modifiers$preventOve2.options\n }),\n offset: {\n options: _extends({\n offset: offset\n }, (_modifiers$offset = modifiers.offset) == null ? void 0 : _modifiers$offset.options)\n },\n arrow: _extends({}, modifiers.arrow, {\n enabled: !!arrowElement,\n options: _extends({}, (_modifiers$arrow = modifiers.arrow) == null ? void 0 : _modifiers$arrow.options, {\n element: arrowElement\n })\n }),\n flip: _extends({\n enabled: !!flip\n }, modifiers.flip)\n }))\n });\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport PropTypes from 'prop-types';\nimport React, { useState } from 'react';\nimport ReactDOM from 'react-dom';\nimport useCallbackRef from '@restart/hooks/useCallbackRef';\nimport useMergedRefs from '@restart/hooks/useMergedRefs';\nimport { placements } from './popper';\nimport usePopper from './usePopper';\nimport useRootClose from './useRootClose';\nimport useWaitForDOMRef from './useWaitForDOMRef';\nimport mergeOptionsWithPopperConfig from './mergeOptionsWithPopperConfig';\n\n/**\n * Built on top of `Popper.js`, the overlay component is\n * great for custom tooltip overlays.\n */\nvar Overlay = /*#__PURE__*/React.forwardRef(function (props, outerRef) {\n var flip = props.flip,\n offset = props.offset,\n placement = props.placement,\n _props$containerPaddi = props.containerPadding,\n containerPadding = _props$containerPaddi === void 0 ? 5 : _props$containerPaddi,\n _props$popperConfig = props.popperConfig,\n popperConfig = _props$popperConfig === void 0 ? {} : _props$popperConfig,\n Transition = props.transition;\n\n var _useCallbackRef = useCallbackRef(),\n rootElement = _useCallbackRef[0],\n attachRef = _useCallbackRef[1];\n\n var _useCallbackRef2 = useCallbackRef(),\n arrowElement = _useCallbackRef2[0],\n attachArrowRef = _useCallbackRef2[1];\n\n var mergedRef = useMergedRefs(attachRef, outerRef);\n var container = useWaitForDOMRef(props.container);\n var target = useWaitForDOMRef(props.target);\n\n var _useState = useState(!props.show),\n exited = _useState[0],\n setExited = _useState[1];\n\n var _usePopper = usePopper(target, rootElement, mergeOptionsWithPopperConfig({\n placement: placement,\n enableEvents: !!props.show,\n containerPadding: containerPadding || 5,\n flip: flip,\n offset: offset,\n arrowElement: arrowElement,\n popperConfig: popperConfig\n })),\n styles = _usePopper.styles,\n attributes = _usePopper.attributes,\n popper = _objectWithoutPropertiesLoose(_usePopper, [\"styles\", \"attributes\"]);\n\n if (props.show) {\n if (exited) setExited(false);\n } else if (!props.transition && !exited) {\n setExited(true);\n }\n\n var handleHidden = function handleHidden() {\n setExited(true);\n\n if (props.onExited) {\n props.onExited.apply(props, arguments);\n }\n }; // Don't un-render the overlay while it's transitioning out.\n\n\n var mountOverlay = props.show || Transition && !exited;\n useRootClose(rootElement, props.onHide, {\n disabled: !props.rootClose || props.rootCloseDisabled,\n clickTrigger: props.rootCloseEvent\n });\n\n if (!mountOverlay) {\n // Don't bother showing anything if we don't have to.\n return null;\n }\n\n var child = props.children(_extends({}, popper, {\n show: !!props.show,\n props: _extends({}, attributes.popper, {\n style: styles.popper,\n ref: mergedRef\n }),\n arrowProps: _extends({}, attributes.arrow, {\n style: styles.arrow,\n ref: attachArrowRef\n })\n }));\n\n if (Transition) {\n var onExit = props.onExit,\n onExiting = props.onExiting,\n onEnter = props.onEnter,\n onEntering = props.onEntering,\n onEntered = props.onEntered;\n child = /*#__PURE__*/React.createElement(Transition, {\n \"in\": props.show,\n appear: true,\n onExit: onExit,\n onExiting: onExiting,\n onExited: handleHidden,\n onEnter: onEnter,\n onEntering: onEntering,\n onEntered: onEntered\n }, child);\n }\n\n return container ? /*#__PURE__*/ReactDOM.createPortal(child, container) : null;\n});\nOverlay.displayName = 'Overlay';\nOverlay.propTypes = {\n /**\n * Set the visibility of the Overlay\n */\n show: PropTypes.bool,\n\n /** Specify where the overlay element is positioned in relation to the target element */\n placement: PropTypes.oneOf(placements),\n\n /**\n * A DOM Element, Ref to an element, or function that returns either. The `target` element is where\n * the overlay is positioned relative to.\n */\n target: PropTypes.any,\n\n /**\n * A DOM Element, Ref to an element, or function that returns either. The `container` will have the Portal children\n * appended to it.\n */\n container: PropTypes.any,\n\n /**\n * Enables the Popper.js `flip` modifier, allowing the Overlay to\n * automatically adjust it's placement in case of overlap with the viewport or toggle.\n * Refer to the [flip docs](https://popper.js.org/popper-documentation.html#modifiers..flip.enabled) for more info\n */\n flip: PropTypes.bool,\n\n /**\n * A render prop that returns an element to overlay and position. See\n * the [react-popper documentation](https://github.com/FezVrasta/react-popper#children) for more info.\n *\n * @type {Function ({\n * show: boolean,\n * placement: Placement,\n * update: () => void,\n * forceUpdate: () => void,\n * props: {\n * ref: (?HTMLElement) => void,\n * style: { [string]: string | number },\n * aria-labelledby: ?string\n * [string]: string | number,\n * },\n * arrowProps: {\n * ref: (?HTMLElement) => void,\n * style: { [string]: string | number },\n * [string]: string | number,\n * },\n * }) => React.Element}\n */\n children: PropTypes.func.isRequired,\n\n /**\n * Control how much space there is between the edge of the boundary element and overlay.\n * A convenience shortcut to setting `popperConfig.modfiers.preventOverflow.padding`\n */\n containerPadding: PropTypes.number,\n\n /**\n * A set of popper options and props passed directly to react-popper's Popper component.\n */\n popperConfig: PropTypes.object,\n\n /**\n * Specify whether the overlay should trigger `onHide` when the user clicks outside the overlay\n */\n rootClose: PropTypes.bool,\n\n /**\n * Specify event for toggling overlay\n */\n rootCloseEvent: PropTypes.oneOf(['click', 'mousedown']),\n\n /**\n * Specify disabled for disable RootCloseWrapper\n */\n rootCloseDisabled: PropTypes.bool,\n\n /**\n * A Callback fired by the Overlay when it wishes to be hidden.\n *\n * __required__ when `rootClose` is `true`.\n *\n * @type func\n */\n onHide: function onHide(props) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n if (props.rootClose) {\n var _PropTypes$func;\n\n return (_PropTypes$func = PropTypes.func).isRequired.apply(_PropTypes$func, [props].concat(args));\n }\n\n return PropTypes.func.apply(PropTypes, [props].concat(args));\n },\n\n /**\n * A `react-transition-group@2.0.0` `` component\n * used to animate the overlay as it changes visibility.\n */\n // @ts-ignore\n transition: PropTypes.elementType,\n\n /**\n * Callback fired before the Overlay transitions in\n */\n onEnter: PropTypes.func,\n\n /**\n * Callback fired as the Overlay begins to transition in\n */\n onEntering: PropTypes.func,\n\n /**\n * Callback fired after the Overlay finishes transitioning in\n */\n onEntered: PropTypes.func,\n\n /**\n * Callback fired right before the Overlay transitions out\n */\n onExit: PropTypes.func,\n\n /**\n * Callback fired as the Overlay begins to transition out\n */\n onExiting: PropTypes.func,\n\n /**\n * Callback fired after the Overlay finishes transitioning out\n */\n onExited: PropTypes.func\n};\nexport default Overlay;","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nexport default listCacheClear;\n","import eq from './eq.js';\n\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 */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nexport default assocIndexOf;\n","import assocIndexOf from './_assocIndexOf.js';\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nexport default listCacheDelete;\n","import assocIndexOf from './_assocIndexOf.js';\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nexport default listCacheGet;\n","import assocIndexOf from './_assocIndexOf.js';\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nexport default listCacheHas;\n","import assocIndexOf from './_assocIndexOf.js';\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nexport default listCacheSet;\n","import listCacheClear from './_listCacheClear.js';\nimport listCacheDelete from './_listCacheDelete.js';\nimport listCacheGet from './_listCacheGet.js';\nimport listCacheHas from './_listCacheHas.js';\nimport listCacheSet from './_listCacheSet.js';\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nexport default ListCache;\n","import ListCache from './_ListCache.js';\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\nexport default stackClear;\n","/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\nexport default stackDelete;\n","/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\nexport default stackGet;\n","/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\nexport default stackHas;\n","import root from './_root.js';\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nexport default coreJsData;\n","import coreJsData from './_coreJsData.js';\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nexport default isMasked;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\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 */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nexport default toSource;\n","import isFunction from './isFunction.js';\nimport isMasked from './_isMasked.js';\nimport isObject from './isObject.js';\nimport toSource from './_toSource.js';\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nexport default baseIsNative;\n","/**\n * Gets the value at `key` of `object`.\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 getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nexport default getValue;\n","import baseIsNative from './_baseIsNative.js';\nimport getValue from './_getValue.js';\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nexport default getNative;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nexport default Map;\n","import getNative from './_getNative.js';\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nexport default nativeCreate;\n","import nativeCreate from './_nativeCreate.js';\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nexport default hashClear;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nexport default hashDelete;\n","import nativeCreate from './_nativeCreate.js';\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nexport default hashGet;\n","import nativeCreate from './_nativeCreate.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nexport default hashHas;\n","import nativeCreate from './_nativeCreate.js';\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nexport default hashSet;\n","import hashClear from './_hashClear.js';\nimport hashDelete from './_hashDelete.js';\nimport hashGet from './_hashGet.js';\nimport hashHas from './_hashHas.js';\nimport hashSet from './_hashSet.js';\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nexport default Hash;\n","import Hash from './_Hash.js';\nimport ListCache from './_ListCache.js';\nimport Map from './_Map.js';\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nexport default mapCacheClear;\n","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nexport default isKeyable;\n","import isKeyable from './_isKeyable.js';\n\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 */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nexport default getMapData;\n","import getMapData from './_getMapData.js';\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nexport default mapCacheDelete;\n","import getMapData from './_getMapData.js';\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nexport default mapCacheGet;\n","import getMapData from './_getMapData.js';\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nexport default mapCacheHas;\n","import getMapData from './_getMapData.js';\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nexport default mapCacheSet;\n","import mapCacheClear from './_mapCacheClear.js';\nimport mapCacheDelete from './_mapCacheDelete.js';\nimport mapCacheGet from './_mapCacheGet.js';\nimport mapCacheHas from './_mapCacheHas.js';\nimport mapCacheSet from './_mapCacheSet.js';\n\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 */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nexport default MapCache;\n","import ListCache from './_ListCache.js';\nimport Map from './_Map.js';\nimport MapCache from './_MapCache.js';\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\nexport default stackSet;\n","import ListCache from './_ListCache.js';\nimport stackClear from './_stackClear.js';\nimport stackDelete from './_stackDelete.js';\nimport stackGet from './_stackGet.js';\nimport stackHas from './_stackHas.js';\nimport stackSet from './_stackSet.js';\n\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 */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nexport default Stack;\n","/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n\nexport default setCacheAdd;\n","/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\nexport default setCacheHas;\n","import MapCache from './_MapCache.js';\nimport setCacheAdd from './_setCacheAdd.js';\nimport setCacheHas from './_setCacheHas.js';\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\nexport default SetCache;\n","/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\nfunction arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n}\n\nexport default arraySome;\n","/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n\nexport default cacheHas;\n","import SetCache from './_SetCache.js';\nimport arraySome from './_arraySome.js';\nimport cacheHas from './_cacheHas.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\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 */\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 }\n // Check that cyclic values are equal.\n var arrStacked = stack.get(array);\n var othStacked = stack.get(other);\n if (arrStacked && othStacked) {\n return arrStacked == other && othStacked == array;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n}\n\nexport default equalArrays;\n","import root from './_root.js';\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\n\nexport default Uint8Array;\n","/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n}\n\nexport default mapToArray;\n","/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n}\n\nexport default setToArray;\n","import Symbol from './_Symbol.js';\nimport Uint8Array from './_Uint8Array.js';\nimport eq from './eq.js';\nimport equalArrays from './_equalArrays.js';\nimport mapToArray from './_mapToArray.js';\nimport setToArray from './_setToArray.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects 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 `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n}\n\nexport default equalByTag;\n","/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\nexport default arrayPush;\n","/**\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;\n\nexport default isArray;\n","import arrayPush from './_arrayPush.js';\nimport isArray from './isArray.js';\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\nexport default baseGetAllKeys;\n","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nexport default arrayFilter;\n","/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n\nexport default stubArray;\n","import arrayFilter from './_arrayFilter.js';\nimport stubArray from './stubArray.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\n\nexport default getSymbols;\n","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nexport default baseTimes;\n","import baseGetTag from './_baseGetTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nexport default baseIsArguments;\n","import baseIsArguments from './_baseIsArguments.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\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 */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nexport default isArguments;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nexport default stubFalse;\n","import root from './_root.js';\nimport stubFalse from './stubFalse.js';\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\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 */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nexport default isBuffer;\n","import baseGetTag from './_baseGetTag.js';\nimport isLength from './isLength.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nexport default baseIsTypedArray;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nexport default baseUnary;\n","import freeGlobal from './_freeGlobal.js';\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nexport default nodeUtil;\n","import baseIsTypedArray from './_baseIsTypedArray.js';\nimport baseUnary from './_baseUnary.js';\nimport nodeUtil from './_nodeUtil.js';\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\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 */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nexport default isTypedArray;\n","import baseTimes from './_baseTimes.js';\nimport isArguments from './isArguments.js';\nimport isArray from './isArray.js';\nimport isBuffer from './isBuffer.js';\nimport isIndex from './_isIndex.js';\nimport isTypedArray from './isTypedArray.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\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 */\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)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\nexport default arrayLikeKeys;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\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 */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nexport default isPrototype;\n","/**\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\nexport default overArg;\n","import overArg from './_overArg.js';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nexport default nativeKeys;\n","import isPrototype from './_isPrototype.js';\nimport nativeKeys from './_nativeKeys.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\nexport default baseKeys;\n","import arrayLikeKeys from './_arrayLikeKeys.js';\nimport baseKeys from './_baseKeys.js';\nimport isArrayLike from './isArrayLike.js';\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\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 * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nexport default keys;\n","import baseGetAllKeys from './_baseGetAllKeys.js';\nimport getSymbols from './_getSymbols.js';\nimport keys from './keys.js';\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n\nexport default getAllKeys;\n","import getAllKeys from './_getAllKeys.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object 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 `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Check that cyclic values are equal.\n var objStacked = stack.get(object);\n var othStacked = stack.get(other);\n if (objStacked && othStacked) {\n return objStacked == other && othStacked == object;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n}\n\nexport default equalObjects;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView');\n\nexport default DataView;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\n\nexport default Promise;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nexport default Set;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar WeakMap = getNative(root, 'WeakMap');\n\nexport default WeakMap;\n","import DataView from './_DataView.js';\nimport Map from './_Map.js';\nimport Promise from './_Promise.js';\nimport Set from './_Set.js';\nimport WeakMap from './_WeakMap.js';\nimport baseGetTag from './_baseGetTag.js';\nimport toSource from './_toSource.js';\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n setTag = '[object Set]',\n weakMapTag = '[object WeakMap]';\n\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\nexport default getTag;\n","import Stack from './_Stack.js';\nimport equalArrays from './_equalArrays.js';\nimport equalByTag from './_equalByTag.js';\nimport equalObjects from './_equalObjects.js';\nimport getTag from './_getTag.js';\nimport isArray from './isArray.js';\nimport isBuffer from './isBuffer.js';\nimport isTypedArray from './isTypedArray.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object 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 `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\n\nexport default baseIsEqualDeep;\n","import baseIsEqualDeep from './_baseIsEqualDeep.js';\nimport isObjectLike from './isObjectLike.js';\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\nexport default baseIsEqual;\n","import baseIsEqual from './_baseIsEqual.js';\n\n/**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.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 * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\nfunction isEqual(value, other) {\n return baseIsEqual(value, other);\n}\n\nexport default isEqual;\n","import getWindow from './isWindow';\nimport offset from './offset';\n/**\n * Returns the height of a given element.\n * \n * @param node the element\n * @param client whether to use `clientHeight` if possible\n */\n\nexport default function height(node, client) {\n var win = getWindow(node);\n return win ? win.innerHeight : client ? node.clientHeight : offset(node).height;\n}","var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);\n/**\n * Runs `querySelectorAll` on a given element.\n * \n * @param element the element\n * @param selector the selector\n */\n\nexport default function qsa(element, selector) {\n return toArray(element.querySelectorAll(selector));\n}","var matchesImpl;\n/**\n * Checks if a given element matches a selector.\n * \n * @param node the element\n * @param selector the selector\n */\n\nexport default function matches(node, selector) {\n if (!matchesImpl) {\n var body = document.body;\n var nativeMatch = body.matches || body.matchesSelector || body.webkitMatchesSelector || body.mozMatchesSelector || body.msMatchesSelector;\n\n matchesImpl = function matchesImpl(n, s) {\n return nativeMatch.call(n, s);\n };\n }\n\n return matchesImpl(node, selector);\n}","import matches from './matches';\n/**\n * Returns the closest parent element that matches a given selector.\n * \n * @param node the reference element\n * @param selector the selector to match\n * @param stopAt stop traversing when this element is found\n */\n\nexport default function closest(node, selector, stopAt) {\n if (node.closest && !stopAt) node.closest(selector);\n var nextNode = node;\n\n do {\n if (matches(nextNode, selector)) return nextNode;\n nextNode = nextNode.parentElement;\n } while (nextNode && nextNode !== stopAt && nextNode.nodeType === document.ELEMENT_NODE);\n\n return null;\n}","/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n}\n\nexport default baseFindIndex;\n","import Stack from './_Stack.js';\nimport baseIsEqual from './_baseIsEqual.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\nfunction baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n}\n\nexport default baseIsMatch;\n","import isObject from './isObject.js';\n\n/**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\nfunction isStrictComparable(value) {\n return value === value && !isObject(value);\n}\n\nexport default isStrictComparable;\n","import isStrictComparable from './_isStrictComparable.js';\nimport keys from './keys.js';\n\n/**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\nfunction getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n}\n\nexport default getMatchData;\n","/**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n}\n\nexport default matchesStrictComparable;\n","import baseIsMatch from './_baseIsMatch.js';\nimport getMatchData from './_getMatchData.js';\nimport matchesStrictComparable from './_matchesStrictComparable.js';\n\n/**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n}\n\nexport default baseMatches;\n","import isArray from './isArray.js';\nimport isSymbol from './isSymbol.js';\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/;\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n}\n\nexport default isKey;\n","import MapCache from './_MapCache.js';\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\nfunction memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n}\n\n// Expose `MapCache`.\nmemoize.Cache = MapCache;\n\nexport default memoize;\n","import memoize from './memoize.js';\n\n/** Used as the maximum memoize cache size. */\nvar MAX_MEMOIZE_SIZE = 500;\n\n/**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\nfunction memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n}\n\nexport default memoizeCapped;\n","import memoizeCapped from './_memoizeCapped.js';\n\n/** Used to match property names within property paths. */\nvar rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\nvar stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n});\n\nexport default stringToPath;\n","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nexport default arrayMap;\n","import Symbol from './_Symbol.js';\nimport arrayMap from './_arrayMap.js';\nimport isArray from './isArray.js';\nimport isSymbol from './isSymbol.js';\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nexport default baseToString;\n","import baseToString from './_baseToString.js';\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nexport default toString;\n","import isArray from './isArray.js';\nimport isKey from './_isKey.js';\nimport stringToPath from './_stringToPath.js';\nimport toString from './toString.js';\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n}\n\nexport default castPath;\n","import isSymbol from './isSymbol.js';\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nexport default toKey;\n","import castPath from './_castPath.js';\nimport toKey from './_toKey.js';\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n}\n\nexport default baseGet;\n","import baseGet from './_baseGet.js';\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n}\n\nexport default get;\n","/**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHasIn(object, key) {\n return object != null && key in Object(object);\n}\n\nexport default baseHasIn;\n","import castPath from './_castPath.js';\nimport isArguments from './isArguments.js';\nimport isArray from './isArray.js';\nimport isIndex from './_isIndex.js';\nimport isLength from './isLength.js';\nimport toKey from './_toKey.js';\n\n/**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\nfunction hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n}\n\nexport default hasPath;\n","import baseHasIn from './_baseHasIn.js';\nimport hasPath from './_hasPath.js';\n\n/**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\nfunction hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n}\n\nexport default hasIn;\n","import baseIsEqual from './_baseIsEqual.js';\nimport get from './get.js';\nimport hasIn from './hasIn.js';\nimport isKey from './_isKey.js';\nimport isStrictComparable from './_isStrictComparable.js';\nimport matchesStrictComparable from './_matchesStrictComparable.js';\nimport toKey from './_toKey.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n}\n\nexport default baseMatchesProperty;\n","/**\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\nexport default identity;\n","/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\nexport default baseProperty;\n","import baseGet from './_baseGet.js';\n\n/**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n}\n\nexport default basePropertyDeep;\n","import baseProperty from './_baseProperty.js';\nimport basePropertyDeep from './_basePropertyDeep.js';\nimport isKey from './_isKey.js';\nimport toKey from './_toKey.js';\n\n/**\n * Creates a function that returns the value at `path` of a given object.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': 2 } },\n * { 'a': { 'b': 1 } }\n * ];\n *\n * _.map(objects, _.property('a.b'));\n * // => [2, 1]\n *\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n * // => [1, 2]\n */\nfunction property(path) {\n return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n}\n\nexport default property;\n","import baseMatches from './_baseMatches.js';\nimport baseMatchesProperty from './_baseMatchesProperty.js';\nimport identity from './identity.js';\nimport isArray from './isArray.js';\nimport property from './property.js';\n\n/**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\nfunction baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n}\n\nexport default baseIteratee;\n","import baseFindIndex from './_baseFindIndex.js';\nimport baseIteratee from './_baseIteratee.js';\nimport toInteger from './toInteger.js';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\nfunction findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, baseIteratee(predicate, 3), index);\n}\n\nexport default findIndex;\n","/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeCeil = Math.ceil,\n nativeMax = Math.max;\n\n/**\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\n * coerce arguments.\n *\n * @private\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @param {number} step The value to increment or decrement by.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the range of numbers.\n */\nfunction baseRange(start, end, step, fromRight) {\n var index = -1,\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\n result = Array(length);\n\n while (length--) {\n result[fromRight ? length : ++index] = start;\n start += step;\n }\n return result;\n}\n\nexport default baseRange;\n","import baseRange from './_baseRange.js';\nimport isIterateeCall from './_isIterateeCall.js';\nimport toFinite from './toFinite.js';\n\n/**\n * Creates a `_.range` or `_.rangeRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new range function.\n */\nfunction createRange(fromRight) {\n return function(start, end, step) {\n if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {\n end = step = undefined;\n }\n // Ensure the sign of `-0` is preserved.\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);\n return baseRange(start, end, step, fromRight);\n };\n}\n\nexport default createRange;\n","import createRange from './_createRange.js';\n\n/**\n * Creates an array of numbers (positive and/or negative) progressing from\n * `start` up to, but not including, `end`. A step of `-1` is used if a negative\n * `start` is specified without an `end` or `step`. If `end` is not specified,\n * it's set to `start` with `start` then set to `0`.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @param {number} [step=1] The value to increment or decrement by.\n * @returns {Array} Returns the range of numbers.\n * @see _.inRange, _.rangeRight\n * @example\n *\n * _.range(4);\n * // => [0, 1, 2, 3]\n *\n * _.range(-4);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 5);\n * // => [1, 2, 3, 4]\n *\n * _.range(0, 20, 5);\n * // => [0, 5, 10, 15]\n *\n * _.range(0, -4, -1);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 4, 0);\n * // => [1, 1, 1]\n *\n * _.range(0);\n * // => []\n */\nvar range = createRange();\n\nexport default range;\n","var safeIsNaN = Number.isNaN ||\n function ponyfill(value) {\n return typeof value === 'number' && value !== value;\n };\nfunction isEqual(first, second) {\n if (first === second) {\n return true;\n }\n if (safeIsNaN(first) && safeIsNaN(second)) {\n return true;\n }\n return false;\n}\nfunction areInputsEqual(newInputs, lastInputs) {\n if (newInputs.length !== lastInputs.length) {\n return false;\n }\n for (var i = 0; i < newInputs.length; i++) {\n if (!isEqual(newInputs[i], lastInputs[i])) {\n return false;\n }\n }\n return true;\n}\n\nfunction memoizeOne(resultFn, isEqual) {\n if (isEqual === void 0) { isEqual = areInputsEqual; }\n var cache = null;\n function memoized() {\n var newArgs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n newArgs[_i] = arguments[_i];\n }\n if (cache && cache.lastThis === this && isEqual(newArgs, cache.lastArgs)) {\n return cache.lastResult;\n }\n var lastResult = resultFn.apply(this, newArgs);\n cache = {\n lastResult: lastResult,\n lastArgs: newArgs,\n lastThis: this,\n };\n return lastResult;\n }\n memoized.clear = function clear() {\n cache = null;\n };\n return memoized;\n}\n\nexport { memoizeOne as default };\n","import Symbol from './_Symbol.js';\nimport isArguments from './isArguments.js';\nimport isArray from './isArray.js';\n\n/** Built-in value references. */\nvar spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\nexport default isFlattenable;\n","import arrayPush from './_arrayPush.js';\nimport isFlattenable from './_isFlattenable.js';\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n}\n\nexport default baseFlatten;\n","/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\nexport default createBaseFor;\n","import createBaseFor from './_createBaseFor.js';\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\nexport default baseFor;\n","import baseFor from './_baseFor.js';\nimport keys from './keys.js';\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n}\n\nexport default baseForOwn;\n","import isArrayLike from './isArrayLike.js';\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nexport default createBaseEach;\n","import baseForOwn from './_baseForOwn.js';\nimport createBaseEach from './_createBaseEach.js';\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nexport default baseEach;\n","import baseEach from './_baseEach.js';\nimport isArrayLike from './isArrayLike.js';\n\n/**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n}\n\nexport default baseMap;\n","/**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\nfunction baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n}\n\nexport default baseSortBy;\n","import isSymbol from './isSymbol.js';\n\n/**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\nfunction compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n}\n\nexport default compareAscending;\n","import compareAscending from './_compareAscending.js';\n\n/**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\nfunction compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n}\n\nexport default compareMultiple;\n","import arrayMap from './_arrayMap.js';\nimport baseGet from './_baseGet.js';\nimport baseIteratee from './_baseIteratee.js';\nimport baseMap from './_baseMap.js';\nimport baseSortBy from './_baseSortBy.js';\nimport baseUnary from './_baseUnary.js';\nimport compareMultiple from './_compareMultiple.js';\nimport identity from './identity.js';\nimport isArray from './isArray.js';\n\n/**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\nfunction baseOrderBy(collection, iteratees, orders) {\n if (iteratees.length) {\n iteratees = arrayMap(iteratees, function(iteratee) {\n if (isArray(iteratee)) {\n return function(value) {\n return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);\n }\n }\n return iteratee;\n });\n } else {\n iteratees = [identity];\n }\n\n var index = -1;\n iteratees = arrayMap(iteratees, baseUnary(baseIteratee));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n}\n\nexport default baseOrderBy;\n","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nexport default apply;\n","import apply from './_apply.js';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nexport default overRest;\n","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nexport default constant;\n","import getNative from './_getNative.js';\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\nexport default defineProperty;\n","import constant from './constant.js';\nimport defineProperty from './_defineProperty.js';\nimport identity from './identity.js';\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\nexport default baseSetToString;\n","/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\nexport default shortOut;\n","import baseSetToString from './_baseSetToString.js';\nimport shortOut from './_shortOut.js';\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\nexport default setToString;\n","import identity from './identity.js';\nimport overRest from './_overRest.js';\nimport setToString from './_setToString.js';\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\nexport default baseRest;\n","import canUseDOM from './canUseDOM';\nvar size;\nexport default function scrollbarSize(recalc) {\n if (!size && size !== 0 || recalc) {\n if (canUseDOM) {\n var scrollDiv = document.createElement('div');\n scrollDiv.style.position = 'absolute';\n scrollDiv.style.top = '-9999px';\n scrollDiv.style.width = '50px';\n scrollDiv.style.height = '50px';\n scrollDiv.style.overflow = 'scroll';\n document.body.appendChild(scrollDiv);\n size = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n document.body.removeChild(scrollDiv);\n }\n }\n\n return size;\n}","import baseFlatten from './_baseFlatten.js';\nimport baseOrderBy from './_baseOrderBy.js';\nimport baseRest from './_baseRest.js';\nimport isIterateeCall from './_isIterateeCall.js';\n\n/**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 30 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]\n */\nvar sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n});\n\nexport default sortBy;\n","import getWindow from './isWindow';\nimport offset from './offset';\n/**\n * Returns the width of a given element.\n * \n * @param node the element\n * @param client whether to use `clientWidth` if possible\n */\n\nexport default function getWidth(node, client) {\n var win = getWindow(node);\n return win ? win.innerWidth : client ? node.clientWidth : offset(node).width;\n}","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nexport default function _toArray(arr) {\n return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();\n}","function replaceClassName(origClass, classToRemove) {\n return origClass.replace(new RegExp(\"(^|\\\\s)\" + classToRemove + \"(?:\\\\s|$)\", 'g'), '$1').replace(/\\s+/g, ' ').replace(/^\\s*|\\s*$/g, '');\n}\n/**\n * Removes a CSS class from a given element.\n * \n * @param element the element\n * @param className the CSS class name\n */\n\n\nexport default function removeClass(element, className) {\n if (element.classList) {\n element.classList.remove(className);\n } else if (typeof element.className === 'string') {\n element.className = replaceClassName(element.className, className);\n } else {\n element.setAttribute('class', replaceClassName(element.className && element.className.baseVal || '', className));\n }\n}","/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n}\n\nexport default arrayEach;\n","import defineProperty from './_defineProperty.js';\n\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 */\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\nexport default baseAssignValue;\n","import baseAssignValue from './_baseAssignValue.js';\nimport eq from './eq.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\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 */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nexport default assignValue;\n","import assignValue from './_assignValue.js';\nimport baseAssignValue from './_baseAssignValue.js';\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\nexport default copyObject;\n","import copyObject from './_copyObject.js';\nimport keys from './keys.js';\n\n/**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n}\n\nexport default baseAssign;\n","/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\n\nexport default nativeKeysIn;\n","import isObject from './isObject.js';\nimport isPrototype from './_isPrototype.js';\nimport nativeKeysIn from './_nativeKeysIn.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\nexport default baseKeysIn;\n","import arrayLikeKeys from './_arrayLikeKeys.js';\nimport baseKeysIn from './_baseKeysIn.js';\nimport isArrayLike from './isArrayLike.js';\n\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 */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\nexport default keysIn;\n","import copyObject from './_copyObject.js';\nimport keysIn from './keysIn.js';\n\n/**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n}\n\nexport default baseAssignIn;\n","import root from './_root.js';\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;\n\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n}\n\nexport default cloneBuffer;\n","/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\n\nexport default copyArray;\n","import copyObject from './_copyObject.js';\nimport getSymbols from './_getSymbols.js';\n\n/**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n}\n\nexport default copySymbols;\n","import overArg from './_overArg.js';\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nexport default getPrototype;\n","import arrayPush from './_arrayPush.js';\nimport getPrototype from './_getPrototype.js';\nimport getSymbols from './_getSymbols.js';\nimport stubArray from './stubArray.js';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n};\n\nexport default getSymbolsIn;\n","import copyObject from './_copyObject.js';\nimport getSymbolsIn from './_getSymbolsIn.js';\n\n/**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n}\n\nexport default copySymbolsIn;\n","import baseGetAllKeys from './_baseGetAllKeys.js';\nimport getSymbolsIn from './_getSymbolsIn.js';\nimport keysIn from './keysIn.js';\n\n/**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n}\n\nexport default getAllKeysIn;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\nfunction initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n}\n\nexport default initCloneArray;\n","import Uint8Array from './_Uint8Array.js';\n\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n\nexport default cloneArrayBuffer;\n","import cloneArrayBuffer from './_cloneArrayBuffer.js';\n\n/**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\nfunction cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n}\n\nexport default cloneDataView;\n","/** Used to match `RegExp` flags from their coerced string values. */\nvar reFlags = /\\w*$/;\n\n/**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\nfunction cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n}\n\nexport default cloneRegExp;\n","import Symbol from './_Symbol.js';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\nfunction cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n}\n\nexport default cloneSymbol;\n","import cloneArrayBuffer from './_cloneArrayBuffer.js';\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\nexport default cloneTypedArray;\n","import cloneArrayBuffer from './_cloneArrayBuffer.js';\nimport cloneDataView from './_cloneDataView.js';\nimport cloneRegExp from './_cloneRegExp.js';\nimport cloneSymbol from './_cloneSymbol.js';\nimport cloneTypedArray from './_cloneTypedArray.js';\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n}\n\nexport default initCloneByTag;\n","import isObject from './isObject.js';\n\n/** Built-in value references. */\nvar objectCreate = Object.create;\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n}());\n\nexport default baseCreate;\n","import baseCreate from './_baseCreate.js';\nimport getPrototype from './_getPrototype.js';\nimport isPrototype from './_isPrototype.js';\n\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n}\n\nexport default initCloneObject;\n","import getTag from './_getTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]';\n\n/**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\nfunction baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n}\n\nexport default baseIsMap;\n","import baseIsMap from './_baseIsMap.js';\nimport baseUnary from './_baseUnary.js';\nimport nodeUtil from './_nodeUtil.js';\n\n/* Node.js helper references. */\nvar nodeIsMap = nodeUtil && nodeUtil.isMap;\n\n/**\n * Checks if `value` is classified as a `Map` object.\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 map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\nvar isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\nexport default isMap;\n","import getTag from './_getTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar setTag = '[object Set]';\n\n/**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\nfunction baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n}\n\nexport default baseIsSet;\n","import baseIsSet from './_baseIsSet.js';\nimport baseUnary from './_baseUnary.js';\nimport nodeUtil from './_nodeUtil.js';\n\n/* Node.js helper references. */\nvar nodeIsSet = nodeUtil && nodeUtil.isSet;\n\n/**\n * Checks if `value` is classified as a `Set` object.\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 set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\nvar isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\nexport default isSet;\n","import Stack from './_Stack.js';\nimport arrayEach from './_arrayEach.js';\nimport assignValue from './_assignValue.js';\nimport baseAssign from './_baseAssign.js';\nimport baseAssignIn from './_baseAssignIn.js';\nimport cloneBuffer from './_cloneBuffer.js';\nimport copyArray from './_copyArray.js';\nimport copySymbols from './_copySymbols.js';\nimport copySymbolsIn from './_copySymbolsIn.js';\nimport getAllKeys from './_getAllKeys.js';\nimport getAllKeysIn from './_getAllKeysIn.js';\nimport getTag from './_getTag.js';\nimport initCloneArray from './_initCloneArray.js';\nimport initCloneByTag from './_initCloneByTag.js';\nimport initCloneObject from './_initCloneObject.js';\nimport isArray from './isArray.js';\nimport isBuffer from './isBuffer.js';\nimport isMap from './isMap.js';\nimport isObject from './isObject.js';\nimport isSet from './isSet.js';\nimport keys from './keys.js';\nimport keysIn from './keysIn.js';\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values supported by `_.clone`. */\nvar cloneableTags = {};\ncloneableTags[argsTag] = cloneableTags[arrayTag] =\ncloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\ncloneableTags[boolTag] = cloneableTags[dateTag] =\ncloneableTags[float32Tag] = cloneableTags[float64Tag] =\ncloneableTags[int8Tag] = cloneableTags[int16Tag] =\ncloneableTags[int32Tag] = cloneableTags[mapTag] =\ncloneableTags[numberTag] = cloneableTags[objectTag] =\ncloneableTags[regexpTag] = cloneableTags[setTag] =\ncloneableTags[stringTag] = cloneableTags[symbolTag] =\ncloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\ncloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\ncloneableTags[errorTag] = cloneableTags[funcTag] =\ncloneableTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\nfunction baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n}\n\nexport default baseClone;\n","/**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\nfunction last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n}\n\nexport default last;\n","import baseGet from './_baseGet.js';\nimport baseSlice from './_baseSlice.js';\n\n/**\n * Gets the parent value at `path` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} path The path to get the parent value of.\n * @returns {*} Returns the parent value.\n */\nfunction parent(object, path) {\n return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));\n}\n\nexport default parent;\n","import castPath from './_castPath.js';\nimport last from './last.js';\nimport parent from './_parent.js';\nimport toKey from './_toKey.js';\n\n/**\n * The base implementation of `_.unset`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The property path to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n */\nfunction baseUnset(object, path) {\n path = castPath(path, object);\n object = parent(object, path);\n return object == null || delete object[toKey(last(path))];\n}\n\nexport default baseUnset;\n","import baseGetTag from './_baseGetTag.js';\nimport getPrototype from './_getPrototype.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\nexport default isPlainObject;\n","import isPlainObject from './isPlainObject.js';\n\n/**\n * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain\n * objects.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {string} key The key of the property to inspect.\n * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.\n */\nfunction customOmitClone(value) {\n return isPlainObject(value) ? undefined : value;\n}\n\nexport default customOmitClone;\n","import baseFlatten from './_baseFlatten.js';\n\n/**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\nfunction flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n}\n\nexport default flatten;\n","import flatten from './flatten.js';\nimport overRest from './_overRest.js';\nimport setToString from './_setToString.js';\n\n/**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\nfunction flatRest(func) {\n return setToString(overRest(func, undefined, flatten), func + '');\n}\n\nexport default flatRest;\n","import arrayMap from './_arrayMap.js';\nimport baseClone from './_baseClone.js';\nimport baseUnset from './_baseUnset.js';\nimport castPath from './_castPath.js';\nimport copyObject from './_copyObject.js';\nimport customOmitClone from './_customOmitClone.js';\nimport flatRest from './_flatRest.js';\nimport getAllKeysIn from './_getAllKeysIn.js';\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * The opposite of `_.pick`; this method creates an object composed of the\n * own and inherited enumerable property paths of `object` that are not omitted.\n *\n * **Note:** This method is considerably slower than `_.pick`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to omit.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omit(object, ['a', 'c']);\n * // => { 'b': '2' }\n */\nvar omit = flatRest(function(object, paths) {\n var result = {};\n if (object == null) {\n return result;\n }\n var isDeep = false;\n paths = arrayMap(paths, function(path) {\n path = castPath(path, object);\n isDeep || (isDeep = path.length > 1);\n return path;\n });\n copyObject(object, getAllKeysIn(object), result);\n if (isDeep) {\n result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);\n }\n var length = paths.length;\n while (length--) {\n baseUnset(result, paths[length]);\n }\n return result;\n});\n\nexport default omit;\n","import baseRest from './_baseRest.js';\nimport eq from './eq.js';\nimport isIterateeCall from './_isIterateeCall.js';\nimport keysIn from './keysIn.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns own and inherited enumerable string keyed properties of source\n * objects to the destination object for all destination properties that\n * resolve to `undefined`. Source objects are applied from left to right.\n * Once a property is set, additional values of the same property are ignored.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaultsDeep\n * @example\n *\n * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\nvar defaults = baseRest(function(object, sources) {\n object = Object(object);\n\n var index = -1;\n var length = sources.length;\n var guard = length > 2 ? sources[2] : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n length = 1;\n }\n\n while (++index < length) {\n var source = sources[index];\n var props = keysIn(source);\n var propsIndex = -1;\n var propsLength = props.length;\n\n while (++propsIndex < propsLength) {\n var key = props[propsIndex];\n var value = object[key];\n\n if (value === undefined ||\n (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n object[key] = source[key];\n }\n }\n }\n\n return object;\n});\n\nexport default defaults;\n","import arrayEach from './_arrayEach.js';\nimport baseCreate from './_baseCreate.js';\nimport baseForOwn from './_baseForOwn.js';\nimport baseIteratee from './_baseIteratee.js';\nimport getPrototype from './_getPrototype.js';\nimport isArray from './isArray.js';\nimport isBuffer from './isBuffer.js';\nimport isFunction from './isFunction.js';\nimport isObject from './isObject.js';\nimport isTypedArray from './isTypedArray.js';\n\n/**\n * An alternative to `_.reduce`; this method transforms `object` to a new\n * `accumulator` object which is the result of running each of its own\n * enumerable string keyed properties thru `iteratee`, with each invocation\n * potentially mutating the `accumulator` object. If `accumulator` is not\n * provided, a new object with the same `[[Prototype]]` will be used. The\n * iteratee is invoked with four arguments: (accumulator, value, key, object).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The custom accumulator value.\n * @returns {*} Returns the accumulated value.\n * @example\n *\n * _.transform([2, 3, 4], function(result, n) {\n * result.push(n *= n);\n * return n % 2 == 0;\n * }, []);\n * // => [4, 9]\n *\n * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] }\n */\nfunction transform(object, iteratee, accumulator) {\n var isArr = isArray(object),\n isArrLike = isArr || isBuffer(object) || isTypedArray(object);\n\n iteratee = baseIteratee(iteratee, 4);\n if (accumulator == null) {\n var Ctor = object && object.constructor;\n if (isArrLike) {\n accumulator = isArr ? new Ctor : [];\n }\n else if (isObject(object)) {\n accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};\n }\n else {\n accumulator = {};\n }\n }\n (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {\n return iteratee(accumulator, value, index, object);\n });\n return accumulator;\n}\n\nexport default transform;\n","import baseAssignValue from './_baseAssignValue.js';\nimport baseForOwn from './_baseForOwn.js';\nimport baseIteratee from './_baseIteratee.js';\n\n/**\n * Creates an object with the same keys as `object` and values generated\n * by running each own enumerable string keyed property of `object` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapKeys\n * @example\n *\n * var users = {\n * 'fred': { 'user': 'fred', 'age': 40 },\n * 'pebbles': { 'user': 'pebbles', 'age': 1 }\n * };\n *\n * _.mapValues(users, function(o) { return o.age; });\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n *\n * // The `_.property` iteratee shorthand.\n * _.mapValues(users, 'age');\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n */\nfunction mapValues(object, iteratee) {\n var result = {};\n iteratee = baseIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, key, iteratee(value, key, object));\n });\n return result;\n}\n\nexport default mapValues;\n","import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2';\nimport _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';\nimport _typeof from '@babel/runtime/helpers/esm/typeof';\nimport _classCallCheck from '@babel/runtime/helpers/esm/classCallCheck';\nimport _createClass from '@babel/runtime/helpers/esm/createClass';\nimport _inherits from '@babel/runtime/helpers/esm/inherits';\nimport _createSuper from '@babel/runtime/helpers/esm/createSuper';\nimport _slicedToArray from '@babel/runtime/helpers/esm/slicedToArray';\nimport React, { useEffect, useLayoutEffect, useRef, createRef, Component, useMemo, useState, useCallback } from 'react';\nimport { uncontrollable } from 'uncontrollable';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport invariant from 'invariant';\nimport * as dates from 'date-arithmetic';\nimport { inRange as inRange$1, lt, lte, gt, gte, eq, neq, startOf, endOf, add, min, max, minutes } from 'date-arithmetic';\nimport _defineProperty from '@babel/runtime/helpers/esm/defineProperty';\nimport _toConsumableArray from '@babel/runtime/helpers/esm/toConsumableArray';\nimport chunk from 'lodash-es/chunk';\nimport getPosition$1 from 'dom-helpers/position';\nimport * as animationFrame from 'dom-helpers/animationFrame';\nimport { Overlay } from 'react-overlays';\nimport getOffset from 'dom-helpers/offset';\nimport isEqual$1 from 'lodash-es/isEqual';\nimport getHeight from 'dom-helpers/height';\nimport qsa from 'dom-helpers/querySelectorAll';\nimport contains from 'dom-helpers/contains';\nimport closest from 'dom-helpers/closest';\nimport listen from 'dom-helpers/listen';\nimport findIndex from 'lodash-es/findIndex';\nimport range$1 from 'lodash-es/range';\nimport memoize from 'memoize-one';\nimport _assertThisInitialized from '@babel/runtime/helpers/esm/assertThisInitialized';\nimport sortBy from 'lodash-es/sortBy';\nimport scrollbarSize from 'dom-helpers/scrollbarSize';\nimport getWidth from 'dom-helpers/width';\nimport _toArray from '@babel/runtime/helpers/esm/toArray';\nimport addClass from 'dom-helpers/addClass';\nimport removeClass from 'dom-helpers/removeClass';\nimport omit from 'lodash-es/omit';\nimport defaults from 'lodash-es/defaults';\nimport transform from 'lodash-es/transform';\nimport mapValues from 'lodash-es/mapValues';\nimport isBetween from 'dayjs/plugin/isBetween';\nimport isSameOrAfter from 'dayjs/plugin/isSameOrAfter';\nimport isSameOrBefore from 'dayjs/plugin/isSameOrBefore';\nimport localeData from 'dayjs/plugin/localeData';\nimport localizedFormat from 'dayjs/plugin/localizedFormat';\nimport minMax from 'dayjs/plugin/minMax';\nimport utc from 'dayjs/plugin/utc';\n\nfunction NoopWrapper(props) {\n return props.children;\n}\n\nvar navigate = {\n PREVIOUS: 'PREV',\n NEXT: 'NEXT',\n TODAY: 'TODAY',\n DATE: 'DATE'\n};\nvar views = {\n MONTH: 'month',\n WEEK: 'week',\n WORK_WEEK: 'work_week',\n DAY: 'day',\n AGENDA: 'agenda'\n};\n\nvar viewNames$1 = Object.keys(views).map(function (k) {\n return views[k];\n});\nPropTypes.oneOfType([PropTypes.string, PropTypes.func]);\nPropTypes.any;\nPropTypes.func;\n\n/**\n * accepts either an array of builtin view names:\n *\n * ```\n * views={['month', 'day', 'agenda']}\n * ```\n *\n * or an object hash of the view name and the component (or boolean for builtin)\n *\n * ```\n * views={{\n * month: true,\n * week: false,\n * workweek: WorkWeekViewComponent,\n * }}\n * ```\n */\n\nPropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOf(viewNames$1)), PropTypes.objectOf(function (prop, key) {\n var isBuiltinView = viewNames$1.indexOf(key) !== -1 && typeof prop[key] === 'boolean';\n if (isBuiltinView) {\n return null;\n } else {\n for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n args[_key - 2] = arguments[_key];\n }\n return PropTypes.elementType.apply(PropTypes, [prop, key].concat(args));\n }\n})]);\nPropTypes.oneOfType([PropTypes.oneOf(['overlap', 'no-overlap']), PropTypes.func]);\n\nfunction notify(handler, args) {\n handler && handler.apply(null, [].concat(args));\n}\n\n/* eslint no-fallthrough: off */\nvar MILLI = {\n seconds: 1000,\n minutes: 1000 * 60,\n hours: 1000 * 60 * 60,\n day: 1000 * 60 * 60 * 24\n};\nfunction firstVisibleDay(date, localizer) {\n var firstOfMonth = dates.startOf(date, 'month');\n return dates.startOf(firstOfMonth, 'week', localizer.startOfWeek());\n}\nfunction lastVisibleDay(date, localizer) {\n var endOfMonth = dates.endOf(date, 'month');\n return dates.endOf(endOfMonth, 'week', localizer.startOfWeek());\n}\nfunction visibleDays(date, localizer) {\n var current = firstVisibleDay(date, localizer),\n last = lastVisibleDay(date, localizer),\n days = [];\n while (dates.lte(current, last, 'day')) {\n days.push(current);\n current = dates.add(current, 1, 'day');\n }\n return days;\n}\nfunction ceil(date, unit) {\n var floor = dates.startOf(date, unit);\n return dates.eq(floor, date) ? floor : dates.add(floor, 1, unit);\n}\nfunction range(start, end) {\n var unit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'day';\n var current = start,\n days = [];\n while (dates.lte(current, end, unit)) {\n days.push(current);\n current = dates.add(current, 1, unit);\n }\n return days;\n}\nfunction merge(date, time) {\n if (time == null && date == null) return null;\n if (time == null) time = new Date();\n if (date == null) date = new Date();\n date = dates.startOf(date, 'day');\n date = dates.hours(date, dates.hours(time));\n date = dates.minutes(date, dates.minutes(time));\n date = dates.seconds(date, dates.seconds(time));\n return dates.milliseconds(date, dates.milliseconds(time));\n}\nfunction isJustDate(date) {\n return dates.hours(date) === 0 && dates.minutes(date) === 0 && dates.seconds(date) === 0 && dates.milliseconds(date) === 0;\n}\nfunction diff(dateA, dateB, unit) {\n if (!unit || unit === 'milliseconds') return Math.abs(+dateA - +dateB);\n\n // the .round() handles an edge case\n // with DST where the total won't be exact\n // since one day in the range may be shorter/longer by an hour\n return Math.round(Math.abs(+dates.startOf(dateA, unit) / MILLI[unit] - +dates.startOf(dateB, unit) / MILLI[unit]));\n}\n\nvar localePropType = PropTypes.oneOfType([PropTypes.string, PropTypes.func]);\nfunction _format(localizer, formatter, value, format, culture) {\n var result = typeof format === 'function' ? format(value, culture, localizer) : formatter.call(localizer, value, format, culture);\n invariant(result == null || typeof result === 'string', '`localizer format(..)` must return a string, null, or undefined');\n return result;\n}\n\n/**\n * This date conversion was moved out of TimeSlots.js, to\n * allow for localizer override\n * @param {Date} dt - The date to start from\n * @param {Number} minutesFromMidnight\n * @param {Number} offset\n * @returns {Date}\n */\nfunction getSlotDate(dt, minutesFromMidnight, offset) {\n return new Date(dt.getFullYear(), dt.getMonth(), dt.getDate(), 0, minutesFromMidnight + offset, 0, 0);\n}\nfunction getDstOffset(start, end) {\n return start.getTimezoneOffset() - end.getTimezoneOffset();\n}\n\n// if the start is on a DST-changing day but *after* the moment of DST\n// transition we need to add those extra minutes to our minutesFromMidnight\nfunction getTotalMin(start, end) {\n return diff(start, end, 'minutes') + getDstOffset(start, end);\n}\nfunction getMinutesFromMidnight(start) {\n var daystart = startOf(start, 'day');\n return diff(daystart, start, 'minutes') + getDstOffset(daystart, start);\n}\n\n// These two are used by DateSlotMetrics\nfunction continuesPrior(start, first) {\n return lt(start, first, 'day');\n}\nfunction continuesAfter(start, end, last) {\n var singleDayDuration = eq(start, end, 'minutes');\n return singleDayDuration ? gte(end, last, 'minutes') : gt(end, last, 'minutes');\n}\n\n// These two are used by eventLevels\nfunction sortEvents$1(_ref) {\n var _ref$evtA = _ref.evtA,\n aStart = _ref$evtA.start,\n aEnd = _ref$evtA.end,\n aAllDay = _ref$evtA.allDay,\n _ref$evtB = _ref.evtB,\n bStart = _ref$evtB.start,\n bEnd = _ref$evtB.end,\n bAllDay = _ref$evtB.allDay;\n var startSort = +startOf(aStart, 'day') - +startOf(bStart, 'day');\n var durA = diff(aStart, ceil(aEnd, 'day'), 'day');\n var durB = diff(bStart, ceil(bEnd, 'day'), 'day');\n return startSort ||\n // sort by start Day first\n Math.max(durB, 1) - Math.max(durA, 1) ||\n // events spanning multiple days go first\n !!bAllDay - !!aAllDay ||\n // then allDay single day events\n +aStart - +bStart ||\n // then sort by start time\n +aEnd - +bEnd // then sort by end time\n ;\n}\n\nfunction inEventRange(_ref2) {\n var _ref2$event = _ref2.event,\n start = _ref2$event.start,\n end = _ref2$event.end,\n _ref2$range = _ref2.range,\n rangeStart = _ref2$range.start,\n rangeEnd = _ref2$range.end;\n var eStart = startOf(start, 'day');\n var startsBeforeEnd = lte(eStart, rangeEnd, 'day');\n // when the event is zero duration we need to handle a bit differently\n var sameMin = neq(eStart, end, 'minutes');\n var endsAfterStart = sameMin ? gt(end, rangeStart, 'minutes') : gte(end, rangeStart, 'minutes');\n return startsBeforeEnd && endsAfterStart;\n}\n\n// other localizers treats 'day' and 'date' equality very differently, so we\n// abstract the change the 'localizer.eq(date1, date2, 'day') into this\n// new method, where they can be treated correctly by the localizer overrides\nfunction isSameDate(date1, date2) {\n return eq(date1, date2, 'day');\n}\nfunction startAndEndAreDateOnly(start, end) {\n return isJustDate(start) && isJustDate(end);\n}\nvar DateLocalizer = /*#__PURE__*/_createClass(function DateLocalizer(spec) {\n var _this = this;\n _classCallCheck(this, DateLocalizer);\n invariant(typeof spec.format === 'function', 'date localizer `format(..)` must be a function');\n invariant(typeof spec.firstOfWeek === 'function', 'date localizer `firstOfWeek(..)` must be a function');\n this.propType = spec.propType || localePropType;\n this.formats = spec.formats;\n this.format = function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n return _format.apply(void 0, [_this, spec.format].concat(args));\n };\n // These date arithmetic methods can be overriden by the localizer\n this.startOfWeek = spec.firstOfWeek;\n this.merge = spec.merge || merge;\n this.inRange = spec.inRange || inRange$1;\n this.lt = spec.lt || lt;\n this.lte = spec.lte || lte;\n this.gt = spec.gt || gt;\n this.gte = spec.gte || gte;\n this.eq = spec.eq || eq;\n this.neq = spec.neq || neq;\n this.startOf = spec.startOf || startOf;\n this.endOf = spec.endOf || endOf;\n this.add = spec.add || add;\n this.range = spec.range || range;\n this.diff = spec.diff || diff;\n this.ceil = spec.ceil || ceil;\n this.min = spec.min || min;\n this.max = spec.max || max;\n this.minutes = spec.minutes || minutes;\n this.firstVisibleDay = spec.firstVisibleDay || firstVisibleDay;\n this.lastVisibleDay = spec.lastVisibleDay || lastVisibleDay;\n this.visibleDays = spec.visibleDays || visibleDays;\n this.getSlotDate = spec.getSlotDate || getSlotDate;\n this.getTimezoneOffset = spec.getTimezoneOffset || function (value) {\n return value.getTimezoneOffset();\n };\n this.getDstOffset = spec.getDstOffset || getDstOffset;\n this.getTotalMin = spec.getTotalMin || getTotalMin;\n this.getMinutesFromMidnight = spec.getMinutesFromMidnight || getMinutesFromMidnight;\n this.continuesPrior = spec.continuesPrior || continuesPrior;\n this.continuesAfter = spec.continuesAfter || continuesAfter;\n this.sortEvents = spec.sortEvents || sortEvents$1;\n this.inEventRange = spec.inEventRange || inEventRange;\n this.isSameDate = spec.isSameDate || isSameDate;\n this.startAndEndAreDateOnly = spec.startAndEndAreDateOnly || startAndEndAreDateOnly;\n this.segmentOffset = spec.browserTZOffset ? spec.browserTZOffset() : 0;\n});\nfunction mergeWithDefaults(localizer, culture, formatOverrides, messages) {\n var formats = _objectSpread(_objectSpread({}, localizer.formats), formatOverrides);\n return _objectSpread(_objectSpread({}, localizer), {}, {\n messages: messages,\n startOfWeek: function startOfWeek() {\n return localizer.startOfWeek(culture);\n },\n format: function format(value, _format2) {\n return localizer.format(value, formats[_format2] || _format2, culture);\n }\n });\n}\n\nvar defaultMessages = {\n date: 'Date',\n time: 'Time',\n event: 'Event',\n allDay: 'All Day',\n week: 'Week',\n work_week: 'Work Week',\n day: 'Day',\n month: 'Month',\n previous: 'Back',\n next: 'Next',\n yesterday: 'Yesterday',\n tomorrow: 'Tomorrow',\n today: 'Today',\n agenda: 'Agenda',\n noEventsInRange: 'There are no events in this range.',\n showMore: function showMore(total) {\n return \"+\".concat(total, \" more\");\n }\n};\nfunction messages(msgs) {\n return _objectSpread(_objectSpread({}, defaultMessages), msgs);\n}\n\nfunction useClickOutside(_ref) {\n var ref = _ref.ref,\n callback = _ref.callback;\n useEffect(function () {\n var handleClickOutside = function handleClickOutside(e) {\n if (ref.current && !ref.current.contains(e.target)) {\n callback();\n }\n };\n document.addEventListener('mousedown', handleClickOutside);\n return function () {\n document.removeEventListener('mousedown', handleClickOutside);\n };\n }, [ref, callback]);\n}\n\nvar _excluded$7 = [\"style\", \"className\", \"event\", \"selected\", \"isAllDay\", \"onSelect\", \"onDoubleClick\", \"onKeyPress\", \"localizer\", \"continuesPrior\", \"continuesAfter\", \"accessors\", \"getters\", \"children\", \"components\", \"slotStart\", \"slotEnd\"];\nvar EventCell = /*#__PURE__*/function (_React$Component) {\n _inherits(EventCell, _React$Component);\n var _super = _createSuper(EventCell);\n function EventCell() {\n _classCallCheck(this, EventCell);\n return _super.apply(this, arguments);\n }\n _createClass(EventCell, [{\n key: \"render\",\n value: function render() {\n var _this$props = this.props,\n style = _this$props.style,\n className = _this$props.className,\n event = _this$props.event,\n selected = _this$props.selected,\n isAllDay = _this$props.isAllDay,\n onSelect = _this$props.onSelect,\n _onDoubleClick = _this$props.onDoubleClick,\n _onKeyPress = _this$props.onKeyPress,\n localizer = _this$props.localizer,\n continuesPrior = _this$props.continuesPrior,\n continuesAfter = _this$props.continuesAfter,\n accessors = _this$props.accessors,\n getters = _this$props.getters,\n children = _this$props.children,\n _this$props$component = _this$props.components,\n Event = _this$props$component.event,\n EventWrapper = _this$props$component.eventWrapper,\n slotStart = _this$props.slotStart,\n slotEnd = _this$props.slotEnd,\n props = _objectWithoutProperties(_this$props, _excluded$7);\n delete props.resizable;\n var title = accessors.title(event);\n var tooltip = accessors.tooltip(event);\n var end = accessors.end(event);\n var start = accessors.start(event);\n var allDay = accessors.allDay(event);\n var showAsAllDay = isAllDay || allDay || localizer.diff(start, localizer.ceil(end, 'day'), 'day') > 1;\n var userProps = getters.eventProp(event, start, end, selected);\n var content = /*#__PURE__*/React.createElement(\"div\", {\n className: \"rbc-event-content\",\n title: tooltip || undefined\n }, Event ? /*#__PURE__*/React.createElement(Event, {\n event: event,\n continuesPrior: continuesPrior,\n continuesAfter: continuesAfter,\n title: title,\n isAllDay: allDay,\n localizer: localizer,\n slotStart: slotStart,\n slotEnd: slotEnd\n }) : title);\n return /*#__PURE__*/React.createElement(EventWrapper, Object.assign({}, this.props, {\n type: \"date\"\n }), /*#__PURE__*/React.createElement(\"div\", Object.assign({}, props, {\n tabIndex: 0,\n style: _objectSpread(_objectSpread({}, userProps.style), style),\n className: clsx('rbc-event', className, userProps.className, {\n 'rbc-selected': selected,\n 'rbc-event-allday': showAsAllDay,\n 'rbc-event-continues-prior': continuesPrior,\n 'rbc-event-continues-after': continuesAfter\n }),\n onClick: function onClick(e) {\n return onSelect && onSelect(event, e);\n },\n onDoubleClick: function onDoubleClick(e) {\n return _onDoubleClick && _onDoubleClick(event, e);\n },\n onKeyPress: function onKeyPress(e) {\n return _onKeyPress && _onKeyPress(event, e);\n }\n }), typeof children === 'function' ? children(content) : content));\n }\n }]);\n return EventCell;\n}(React.Component);\n\nfunction isSelected(event, selected) {\n if (!event || selected == null) return false;\n return isEqual$1(event, selected);\n}\nfunction slotWidth(rowBox, slots) {\n var rowWidth = rowBox.right - rowBox.left;\n var cellWidth = rowWidth / slots;\n return cellWidth;\n}\nfunction getSlotAtX(rowBox, x, rtl, slots) {\n var cellWidth = slotWidth(rowBox, slots);\n return rtl ? slots - 1 - Math.floor((x - rowBox.left) / cellWidth) : Math.floor((x - rowBox.left) / cellWidth);\n}\nfunction pointInBox(box, _ref) {\n var x = _ref.x,\n y = _ref.y;\n return y >= box.top && y <= box.bottom && x >= box.left && x <= box.right;\n}\nfunction dateCellSelection(start, rowBox, box, slots, rtl) {\n var startIdx = -1;\n var endIdx = -1;\n var lastSlotIdx = slots - 1;\n var cellWidth = slotWidth(rowBox, slots);\n\n // cell under the mouse\n var currentSlot = getSlotAtX(rowBox, box.x, rtl, slots);\n\n // Identify row as either the initial row\n // or the row under the current mouse point\n var isCurrentRow = rowBox.top < box.y && rowBox.bottom > box.y;\n var isStartRow = rowBox.top < start.y && rowBox.bottom > start.y;\n\n // this row's position relative to the start point\n var isAboveStart = start.y > rowBox.bottom;\n var isBelowStart = rowBox.top > start.y;\n var isBetween = box.top < rowBox.top && box.bottom > rowBox.bottom;\n\n // this row is between the current and start rows, so entirely selected\n if (isBetween) {\n startIdx = 0;\n endIdx = lastSlotIdx;\n }\n if (isCurrentRow) {\n if (isBelowStart) {\n startIdx = 0;\n endIdx = currentSlot;\n } else if (isAboveStart) {\n startIdx = currentSlot;\n endIdx = lastSlotIdx;\n }\n }\n if (isStartRow) {\n // select the cell under the initial point\n startIdx = endIdx = rtl ? lastSlotIdx - Math.floor((start.x - rowBox.left) / cellWidth) : Math.floor((start.x - rowBox.left) / cellWidth);\n if (isCurrentRow) {\n if (currentSlot < startIdx) startIdx = currentSlot;else endIdx = currentSlot; //select current range\n } else if (start.y < box.y) {\n // the current row is below start row\n // select cells to the right of the start cell\n endIdx = lastSlotIdx;\n } else {\n // select cells to the left of the start cell\n startIdx = 0;\n }\n }\n return {\n startIdx: startIdx,\n endIdx: endIdx\n };\n}\n\n/**\n * Changes to react-overlays cause issue with auto positioning,\n * so we need to manually calculate the position of the popper,\n * and constrain it to the Month container.\n */\nfunction getPosition(_ref) {\n var target = _ref.target,\n offset = _ref.offset,\n container = _ref.container,\n box = _ref.box;\n var _getOffset = getOffset(target),\n top = _getOffset.top,\n left = _getOffset.left,\n width = _getOffset.width,\n height = _getOffset.height;\n var _getOffset2 = getOffset(container),\n cTop = _getOffset2.top,\n cLeft = _getOffset2.left,\n cWidth = _getOffset2.width,\n cHeight = _getOffset2.height;\n var _getOffset3 = getOffset(box),\n bWidth = _getOffset3.width,\n bHeight = _getOffset3.height;\n var viewBottom = cTop + cHeight;\n var viewRight = cLeft + cWidth;\n var bottom = top + bHeight;\n var right = left + bWidth;\n var x = offset.x,\n y = offset.y;\n var topOffset = bottom > viewBottom ? top - bHeight - y : top + y + height;\n var leftOffset = right > viewRight ? left + x - bWidth + width : left + x;\n return {\n topOffset: topOffset,\n leftOffset: leftOffset\n };\n}\nfunction Pop(_ref2) {\n var containerRef = _ref2.containerRef,\n accessors = _ref2.accessors,\n getters = _ref2.getters,\n selected = _ref2.selected,\n components = _ref2.components,\n localizer = _ref2.localizer,\n position = _ref2.position,\n show = _ref2.show,\n events = _ref2.events,\n slotStart = _ref2.slotStart,\n slotEnd = _ref2.slotEnd,\n onSelect = _ref2.onSelect,\n onDoubleClick = _ref2.onDoubleClick,\n onKeyPress = _ref2.onKeyPress,\n handleDragStart = _ref2.handleDragStart,\n popperRef = _ref2.popperRef,\n target = _ref2.target,\n offset = _ref2.offset;\n useClickOutside({\n ref: popperRef,\n callback: show\n });\n useLayoutEffect(function () {\n var _getPosition = getPosition({\n target: target,\n offset: offset,\n container: containerRef.current,\n box: popperRef.current\n }),\n topOffset = _getPosition.topOffset,\n leftOffset = _getPosition.leftOffset;\n popperRef.current.style.top = \"\".concat(topOffset, \"px\");\n popperRef.current.style.left = \"\".concat(leftOffset, \"px\");\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [offset.x, offset.y, target]);\n var width = position.width;\n var style = {\n minWidth: width + width / 2\n };\n return /*#__PURE__*/React.createElement(\"div\", {\n style: style,\n className: \"rbc-overlay\",\n ref: popperRef\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"rbc-overlay-header\"\n }, localizer.format(slotStart, 'dayHeaderFormat')), events.map(function (event, idx) {\n return /*#__PURE__*/React.createElement(EventCell, {\n key: idx,\n type: \"popup\",\n localizer: localizer,\n event: event,\n getters: getters,\n onSelect: onSelect,\n accessors: accessors,\n components: components,\n onDoubleClick: onDoubleClick,\n onKeyPress: onKeyPress,\n continuesPrior: localizer.lt(accessors.end(event), slotStart, 'day'),\n continuesAfter: localizer.gte(accessors.start(event), slotEnd, 'day'),\n slotStart: slotStart,\n slotEnd: slotEnd,\n selected: isSelected(event, selected),\n draggable: true,\n onDragStart: function onDragStart() {\n return handleDragStart(event);\n },\n onDragEnd: function onDragEnd() {\n return show();\n }\n });\n }));\n}\nvar Popup = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(Pop, Object.assign({}, props, {\n popperRef: ref\n }));\n});\nPopup.propTypes = {\n accessors: PropTypes.object.isRequired,\n getters: PropTypes.object.isRequired,\n selected: PropTypes.object,\n components: PropTypes.object.isRequired,\n localizer: PropTypes.object.isRequired,\n position: PropTypes.object.isRequired,\n show: PropTypes.func.isRequired,\n events: PropTypes.array.isRequired,\n slotStart: PropTypes.instanceOf(Date).isRequired,\n slotEnd: PropTypes.instanceOf(Date),\n onSelect: PropTypes.func,\n onDoubleClick: PropTypes.func,\n onKeyPress: PropTypes.func,\n handleDragStart: PropTypes.func,\n style: PropTypes.object,\n offset: PropTypes.shape({\n x: PropTypes.number,\n y: PropTypes.number\n })\n};\n\nfunction CalOverlay(_ref) {\n var containerRef = _ref.containerRef,\n _ref$popupOffset = _ref.popupOffset,\n popupOffset = _ref$popupOffset === void 0 ? 5 : _ref$popupOffset,\n overlay = _ref.overlay,\n accessors = _ref.accessors,\n localizer = _ref.localizer,\n components = _ref.components,\n getters = _ref.getters,\n selected = _ref.selected,\n handleSelectEvent = _ref.handleSelectEvent,\n handleDoubleClickEvent = _ref.handleDoubleClickEvent,\n handleKeyPressEvent = _ref.handleKeyPressEvent,\n handleDragStart = _ref.handleDragStart,\n onHide = _ref.onHide,\n overlayDisplay = _ref.overlayDisplay;\n var popperRef = useRef(null);\n if (!overlay.position) return null;\n var offset = popupOffset;\n if (!isNaN(popupOffset)) {\n offset = {\n x: popupOffset,\n y: popupOffset\n };\n }\n var position = overlay.position,\n events = overlay.events,\n date = overlay.date,\n end = overlay.end;\n return /*#__PURE__*/React.createElement(Overlay, {\n rootClose: true,\n flip: true,\n show: true,\n placement: \"bottom\",\n onHide: onHide,\n target: overlay.target\n }, function (_ref2) {\n var props = _ref2.props;\n return /*#__PURE__*/React.createElement(Popup, Object.assign({}, props, {\n containerRef: containerRef,\n ref: popperRef,\n target: overlay.target,\n offset: offset,\n accessors: accessors,\n getters: getters,\n selected: selected,\n components: components,\n localizer: localizer,\n position: position,\n show: overlayDisplay,\n events: events,\n slotStart: date,\n slotEnd: end,\n onSelect: handleSelectEvent,\n onDoubleClick: handleDoubleClickEvent,\n onKeyPress: handleKeyPressEvent,\n handleDragStart: handleDragStart\n }));\n });\n}\nvar PopOverlay = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(CalOverlay, Object.assign({}, props, {\n containerRef: ref\n }));\n});\nPopOverlay.propTypes = {\n popupOffset: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n x: PropTypes.number,\n y: PropTypes.number\n })]),\n overlay: PropTypes.shape({\n position: PropTypes.object,\n events: PropTypes.array,\n date: PropTypes.instanceOf(Date),\n end: PropTypes.instanceOf(Date)\n }),\n accessors: PropTypes.object.isRequired,\n localizer: PropTypes.object.isRequired,\n components: PropTypes.object.isRequired,\n getters: PropTypes.object.isRequired,\n selected: PropTypes.object,\n handleSelectEvent: PropTypes.func,\n handleDoubleClickEvent: PropTypes.func,\n handleKeyPressEvent: PropTypes.func,\n handleDragStart: PropTypes.func,\n onHide: PropTypes.func,\n overlayDisplay: PropTypes.func\n};\n\nfunction addEventListener(type, handler) {\n var target = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : document;\n return listen(target, type, handler, {\n passive: false\n });\n}\nfunction isOverContainer(container, x, y) {\n return !container || contains(container, document.elementFromPoint(x, y));\n}\nfunction getEventNodeFromPoint(node, _ref) {\n var clientX = _ref.clientX,\n clientY = _ref.clientY;\n var target = document.elementFromPoint(clientX, clientY);\n return closest(target, '.rbc-event', node);\n}\nfunction getShowMoreNodeFromPoint(node, _ref2) {\n var clientX = _ref2.clientX,\n clientY = _ref2.clientY;\n var target = document.elementFromPoint(clientX, clientY);\n return closest(target, '.rbc-show-more', node);\n}\nfunction isEvent(node, bounds) {\n return !!getEventNodeFromPoint(node, bounds);\n}\nfunction isShowMore(node, bounds) {\n return !!getShowMoreNodeFromPoint(node, bounds);\n}\nfunction getEventCoordinates(e) {\n var target = e;\n if (e.touches && e.touches.length) {\n target = e.touches[0];\n }\n return {\n clientX: target.clientX,\n clientY: target.clientY,\n pageX: target.pageX,\n pageY: target.pageY\n };\n}\nvar clickTolerance = 5;\nvar clickInterval = 250;\nvar Selection = /*#__PURE__*/function () {\n function Selection(node) {\n var _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n _ref3$global = _ref3.global,\n global = _ref3$global === void 0 ? false : _ref3$global,\n _ref3$longPressThresh = _ref3.longPressThreshold,\n longPressThreshold = _ref3$longPressThresh === void 0 ? 250 : _ref3$longPressThresh,\n _ref3$validContainers = _ref3.validContainers,\n validContainers = _ref3$validContainers === void 0 ? [] : _ref3$validContainers;\n _classCallCheck(this, Selection);\n this.isDetached = false;\n this.container = node;\n this.globalMouse = !node || global;\n this.longPressThreshold = longPressThreshold;\n this.validContainers = validContainers;\n this._listeners = Object.create(null);\n this._handleInitialEvent = this._handleInitialEvent.bind(this);\n this._handleMoveEvent = this._handleMoveEvent.bind(this);\n this._handleTerminatingEvent = this._handleTerminatingEvent.bind(this);\n this._keyListener = this._keyListener.bind(this);\n this._dropFromOutsideListener = this._dropFromOutsideListener.bind(this);\n this._dragOverFromOutsideListener = this._dragOverFromOutsideListener.bind(this);\n\n // Fixes an iOS 10 bug where scrolling could not be prevented on the window.\n // https://github.com/metafizzy/flickity/issues/457#issuecomment-254501356\n this._removeTouchMoveWindowListener = addEventListener('touchmove', function () {}, window);\n this._removeKeyDownListener = addEventListener('keydown', this._keyListener);\n this._removeKeyUpListener = addEventListener('keyup', this._keyListener);\n this._removeDropFromOutsideListener = addEventListener('drop', this._dropFromOutsideListener);\n this._removeDragOverFromOutsideListener = addEventListener('dragover', this._dragOverFromOutsideListener);\n this._addInitialEventListener();\n }\n _createClass(Selection, [{\n key: \"on\",\n value: function on(type, handler) {\n var handlers = this._listeners[type] || (this._listeners[type] = []);\n handlers.push(handler);\n return {\n remove: function remove() {\n var idx = handlers.indexOf(handler);\n if (idx !== -1) handlers.splice(idx, 1);\n }\n };\n }\n }, {\n key: \"emit\",\n value: function emit(type) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n var result;\n var handlers = this._listeners[type] || [];\n handlers.forEach(function (fn) {\n if (result === undefined) result = fn.apply(void 0, args);\n });\n return result;\n }\n }, {\n key: \"teardown\",\n value: function teardown() {\n this.isDetached = true;\n this._listeners = Object.create(null);\n this._removeTouchMoveWindowListener && this._removeTouchMoveWindowListener();\n this._removeInitialEventListener && this._removeInitialEventListener();\n this._removeEndListener && this._removeEndListener();\n this._onEscListener && this._onEscListener();\n this._removeMoveListener && this._removeMoveListener();\n this._removeKeyUpListener && this._removeKeyUpListener();\n this._removeKeyDownListener && this._removeKeyDownListener();\n this._removeDropFromOutsideListener && this._removeDropFromOutsideListener();\n this._removeDragOverFromOutsideListener && this._removeDragOverFromOutsideListener();\n }\n }, {\n key: \"isSelected\",\n value: function isSelected(node) {\n var box = this._selectRect;\n if (!box || !this.selecting) return false;\n return objectsCollide(box, getBoundsForNode(node));\n }\n }, {\n key: \"filter\",\n value: function filter(items) {\n var box = this._selectRect;\n\n //not selecting\n if (!box || !this.selecting) return [];\n return items.filter(this.isSelected, this);\n }\n\n // Adds a listener that will call the handler only after the user has pressed on the screen\n // without moving their finger for 250ms.\n }, {\n key: \"_addLongPressListener\",\n value: function _addLongPressListener(handler, initialEvent) {\n var _this = this;\n var timer = null;\n var removeTouchMoveListener = null;\n var removeTouchEndListener = null;\n var handleTouchStart = function handleTouchStart(initialEvent) {\n timer = setTimeout(function () {\n cleanup();\n handler(initialEvent);\n }, _this.longPressThreshold);\n removeTouchMoveListener = addEventListener('touchmove', function () {\n return cleanup();\n });\n removeTouchEndListener = addEventListener('touchend', function () {\n return cleanup();\n });\n };\n var removeTouchStartListener = addEventListener('touchstart', handleTouchStart);\n var cleanup = function cleanup() {\n if (timer) {\n clearTimeout(timer);\n }\n if (removeTouchMoveListener) {\n removeTouchMoveListener();\n }\n if (removeTouchEndListener) {\n removeTouchEndListener();\n }\n timer = null;\n removeTouchMoveListener = null;\n removeTouchEndListener = null;\n };\n if (initialEvent) {\n handleTouchStart(initialEvent);\n }\n return function () {\n cleanup();\n removeTouchStartListener();\n };\n }\n\n // Listen for mousedown and touchstart events. When one is received, disable the other and setup\n // future event handling based on the type of event.\n }, {\n key: \"_addInitialEventListener\",\n value: function _addInitialEventListener() {\n var _this2 = this;\n var removeMouseDownListener = addEventListener('mousedown', function (e) {\n _this2._removeInitialEventListener();\n _this2._handleInitialEvent(e);\n _this2._removeInitialEventListener = addEventListener('mousedown', _this2._handleInitialEvent);\n });\n var removeTouchStartListener = addEventListener('touchstart', function (e) {\n _this2._removeInitialEventListener();\n _this2._removeInitialEventListener = _this2._addLongPressListener(_this2._handleInitialEvent, e);\n });\n this._removeInitialEventListener = function () {\n removeMouseDownListener();\n removeTouchStartListener();\n };\n }\n }, {\n key: \"_dropFromOutsideListener\",\n value: function _dropFromOutsideListener(e) {\n var _getEventCoordinates = getEventCoordinates(e),\n pageX = _getEventCoordinates.pageX,\n pageY = _getEventCoordinates.pageY,\n clientX = _getEventCoordinates.clientX,\n clientY = _getEventCoordinates.clientY;\n this.emit('dropFromOutside', {\n x: pageX,\n y: pageY,\n clientX: clientX,\n clientY: clientY\n });\n e.preventDefault();\n }\n }, {\n key: \"_dragOverFromOutsideListener\",\n value: function _dragOverFromOutsideListener(e) {\n var _getEventCoordinates2 = getEventCoordinates(e),\n pageX = _getEventCoordinates2.pageX,\n pageY = _getEventCoordinates2.pageY,\n clientX = _getEventCoordinates2.clientX,\n clientY = _getEventCoordinates2.clientY;\n this.emit('dragOverFromOutside', {\n x: pageX,\n y: pageY,\n clientX: clientX,\n clientY: clientY\n });\n e.preventDefault();\n }\n }, {\n key: \"_handleInitialEvent\",\n value: function _handleInitialEvent(e) {\n if (this.isDetached) {\n return;\n }\n var _getEventCoordinates3 = getEventCoordinates(e),\n clientX = _getEventCoordinates3.clientX,\n clientY = _getEventCoordinates3.clientY,\n pageX = _getEventCoordinates3.pageX,\n pageY = _getEventCoordinates3.pageY;\n var node = this.container(),\n collides,\n offsetData;\n\n // Right clicks\n if (e.which === 3 || e.button === 2 || !isOverContainer(node, clientX, clientY)) return;\n if (!this.globalMouse && node && !contains(node, e.target)) {\n var _normalizeDistance = normalizeDistance(0),\n top = _normalizeDistance.top,\n left = _normalizeDistance.left,\n bottom = _normalizeDistance.bottom,\n right = _normalizeDistance.right;\n offsetData = getBoundsForNode(node);\n collides = objectsCollide({\n top: offsetData.top - top,\n left: offsetData.left - left,\n bottom: offsetData.bottom + bottom,\n right: offsetData.right + right\n }, {\n top: pageY,\n left: pageX\n });\n if (!collides) return;\n }\n var result = this.emit('beforeSelect', this._initialEventData = {\n isTouch: /^touch/.test(e.type),\n x: pageX,\n y: pageY,\n clientX: clientX,\n clientY: clientY\n });\n if (result === false) return;\n switch (e.type) {\n case 'mousedown':\n this._removeEndListener = addEventListener('mouseup', this._handleTerminatingEvent);\n this._onEscListener = addEventListener('keydown', this._handleTerminatingEvent);\n this._removeMoveListener = addEventListener('mousemove', this._handleMoveEvent);\n break;\n case 'touchstart':\n this._handleMoveEvent(e);\n this._removeEndListener = addEventListener('touchend', this._handleTerminatingEvent);\n this._removeMoveListener = addEventListener('touchmove', this._handleMoveEvent);\n break;\n }\n }\n\n // Check whether provided event target element\n // - is contained within a valid container\n }, {\n key: \"_isWithinValidContainer\",\n value: function _isWithinValidContainer(e) {\n var eventTarget = e.target;\n var containers = this.validContainers;\n if (!containers || !containers.length || !eventTarget) {\n return true;\n }\n return containers.some(function (target) {\n return !!eventTarget.closest(target);\n });\n }\n }, {\n key: \"_handleTerminatingEvent\",\n value: function _handleTerminatingEvent(e) {\n var _getEventCoordinates4 = getEventCoordinates(e),\n pageX = _getEventCoordinates4.pageX,\n pageY = _getEventCoordinates4.pageY;\n this.selecting = false;\n this._removeEndListener && this._removeEndListener();\n this._removeMoveListener && this._removeMoveListener();\n if (!this._initialEventData) return;\n var inRoot = !this.container || contains(this.container(), e.target);\n var isWithinValidContainer = this._isWithinValidContainer(e);\n var bounds = this._selectRect;\n var click = this.isClick(pageX, pageY);\n this._initialEventData = null;\n if (e.key === 'Escape' || !isWithinValidContainer) {\n return this.emit('reset');\n }\n if (click && inRoot) {\n return this._handleClickEvent(e);\n }\n\n // User drag-clicked in the Selectable area\n if (!click) return this.emit('select', bounds);\n return this.emit('reset');\n }\n }, {\n key: \"_handleClickEvent\",\n value: function _handleClickEvent(e) {\n var _getEventCoordinates5 = getEventCoordinates(e),\n pageX = _getEventCoordinates5.pageX,\n pageY = _getEventCoordinates5.pageY,\n clientX = _getEventCoordinates5.clientX,\n clientY = _getEventCoordinates5.clientY;\n var now = new Date().getTime();\n if (this._lastClickData && now - this._lastClickData.timestamp < clickInterval) {\n // Double click event\n this._lastClickData = null;\n return this.emit('doubleClick', {\n x: pageX,\n y: pageY,\n clientX: clientX,\n clientY: clientY\n });\n }\n\n // Click event\n this._lastClickData = {\n timestamp: now\n };\n return this.emit('click', {\n x: pageX,\n y: pageY,\n clientX: clientX,\n clientY: clientY\n });\n }\n }, {\n key: \"_handleMoveEvent\",\n value: function _handleMoveEvent(e) {\n if (this._initialEventData === null || this.isDetached) {\n return;\n }\n var _this$_initialEventDa = this._initialEventData,\n x = _this$_initialEventDa.x,\n y = _this$_initialEventDa.y;\n var _getEventCoordinates6 = getEventCoordinates(e),\n pageX = _getEventCoordinates6.pageX,\n pageY = _getEventCoordinates6.pageY;\n var w = Math.abs(x - pageX);\n var h = Math.abs(y - pageY);\n var left = Math.min(pageX, x),\n top = Math.min(pageY, y),\n old = this.selecting;\n\n // Prevent emitting selectStart event until mouse is moved.\n // in Chrome on Windows, mouseMove event may be fired just after mouseDown event.\n if (this.isClick(pageX, pageY) && !old && !(w || h)) {\n return;\n }\n this.selecting = true;\n this._selectRect = {\n top: top,\n left: left,\n x: pageX,\n y: pageY,\n right: left + w,\n bottom: top + h\n };\n if (!old) {\n this.emit('selectStart', this._initialEventData);\n }\n if (!this.isClick(pageX, pageY)) this.emit('selecting', this._selectRect);\n e.preventDefault();\n }\n }, {\n key: \"_keyListener\",\n value: function _keyListener(e) {\n this.ctrl = e.metaKey || e.ctrlKey;\n }\n }, {\n key: \"isClick\",\n value: function isClick(pageX, pageY) {\n var _this$_initialEventDa2 = this._initialEventData,\n x = _this$_initialEventDa2.x,\n y = _this$_initialEventDa2.y,\n isTouch = _this$_initialEventDa2.isTouch;\n return !isTouch && Math.abs(pageX - x) <= clickTolerance && Math.abs(pageY - y) <= clickTolerance;\n }\n }]);\n return Selection;\n}();\n/**\n * Resolve the disance prop from either an Int or an Object\n * @return {Object}\n */\nfunction normalizeDistance() {\n var distance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n if (_typeof(distance) !== 'object') distance = {\n top: distance,\n left: distance,\n right: distance,\n bottom: distance\n };\n return distance;\n}\n\n/**\n * Given two objects containing \"top\", \"left\", \"offsetWidth\" and \"offsetHeight\"\n * properties, determine if they collide.\n * @param {Object|HTMLElement} a\n * @param {Object|HTMLElement} b\n * @return {bool}\n */\nfunction objectsCollide(nodeA, nodeB) {\n var tolerance = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n var _getBoundsForNode = getBoundsForNode(nodeA),\n aTop = _getBoundsForNode.top,\n aLeft = _getBoundsForNode.left,\n _getBoundsForNode$rig = _getBoundsForNode.right,\n aRight = _getBoundsForNode$rig === void 0 ? aLeft : _getBoundsForNode$rig,\n _getBoundsForNode$bot = _getBoundsForNode.bottom,\n aBottom = _getBoundsForNode$bot === void 0 ? aTop : _getBoundsForNode$bot;\n var _getBoundsForNode2 = getBoundsForNode(nodeB),\n bTop = _getBoundsForNode2.top,\n bLeft = _getBoundsForNode2.left,\n _getBoundsForNode2$ri = _getBoundsForNode2.right,\n bRight = _getBoundsForNode2$ri === void 0 ? bLeft : _getBoundsForNode2$ri,\n _getBoundsForNode2$bo = _getBoundsForNode2.bottom,\n bBottom = _getBoundsForNode2$bo === void 0 ? bTop : _getBoundsForNode2$bo;\n return !(\n // 'a' bottom doesn't touch 'b' top\n\n aBottom - tolerance < bTop ||\n // 'a' top doesn't touch 'b' bottom\n aTop + tolerance > bBottom ||\n // 'a' right doesn't touch 'b' left\n aRight - tolerance < bLeft ||\n // 'a' left doesn't touch 'b' right\n aLeft + tolerance > bRight);\n}\n\n/**\n * Given a node, get everything needed to calculate its boundaries\n * @param {HTMLElement} node\n * @return {Object}\n */\nfunction getBoundsForNode(node) {\n if (!node.getBoundingClientRect) return node;\n var rect = node.getBoundingClientRect(),\n left = rect.left + pageOffset('left'),\n top = rect.top + pageOffset('top');\n return {\n top: top,\n left: left,\n right: (node.offsetWidth || 0) + left,\n bottom: (node.offsetHeight || 0) + top\n };\n}\nfunction pageOffset(dir) {\n if (dir === 'left') return window.pageXOffset || document.body.scrollLeft || 0;\n if (dir === 'top') return window.pageYOffset || document.body.scrollTop || 0;\n}\n\nvar BackgroundCells = /*#__PURE__*/function (_React$Component) {\n _inherits(BackgroundCells, _React$Component);\n var _super = _createSuper(BackgroundCells);\n function BackgroundCells(props, context) {\n var _this;\n _classCallCheck(this, BackgroundCells);\n _this = _super.call(this, props, context);\n _this.state = {\n selecting: false\n };\n _this.containerRef = /*#__PURE__*/createRef();\n return _this;\n }\n _createClass(BackgroundCells, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.props.selectable && this._selectable();\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this._teardownSelectable();\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n if (!prevProps.selectable && this.props.selectable) this._selectable();\n if (prevProps.selectable && !this.props.selectable) this._teardownSelectable();\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$props = this.props,\n range = _this$props.range,\n getNow = _this$props.getNow,\n getters = _this$props.getters,\n currentDate = _this$props.date,\n Wrapper = _this$props.components.dateCellWrapper,\n localizer = _this$props.localizer;\n var _this$state = this.state,\n selecting = _this$state.selecting,\n startIdx = _this$state.startIdx,\n endIdx = _this$state.endIdx;\n var current = getNow();\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"rbc-row-bg\",\n ref: this.containerRef\n }, range.map(function (date, index) {\n var selected = selecting && index >= startIdx && index <= endIdx;\n var _getters$dayProp = getters.dayProp(date),\n className = _getters$dayProp.className,\n style = _getters$dayProp.style;\n return /*#__PURE__*/React.createElement(Wrapper, {\n key: index,\n value: date,\n range: range\n }, /*#__PURE__*/React.createElement(\"div\", {\n style: style,\n className: clsx('rbc-day-bg', className, selected && 'rbc-selected-cell', localizer.isSameDate(date, current) && 'rbc-today', currentDate && localizer.neq(currentDate, date, 'month') && 'rbc-off-range-bg')\n }));\n }));\n }\n }, {\n key: \"_selectable\",\n value: function _selectable() {\n var _this2 = this;\n var node = this.containerRef.current;\n var selector = this._selector = new Selection(this.props.container, {\n longPressThreshold: this.props.longPressThreshold\n });\n var selectorClicksHandler = function selectorClicksHandler(point, actionType) {\n if (!isEvent(node, point) && !isShowMore(node, point)) {\n var rowBox = getBoundsForNode(node);\n var _this2$props = _this2.props,\n range = _this2$props.range,\n rtl = _this2$props.rtl;\n if (pointInBox(rowBox, point)) {\n var currentCell = getSlotAtX(rowBox, point.x, rtl, range.length);\n _this2._selectSlot({\n startIdx: currentCell,\n endIdx: currentCell,\n action: actionType,\n box: point\n });\n }\n }\n _this2._initial = {};\n _this2.setState({\n selecting: false\n });\n };\n selector.on('selecting', function (box) {\n var _this2$props2 = _this2.props,\n range = _this2$props2.range,\n rtl = _this2$props2.rtl;\n var startIdx = -1;\n var endIdx = -1;\n if (!_this2.state.selecting) {\n notify(_this2.props.onSelectStart, [box]);\n _this2._initial = {\n x: box.x,\n y: box.y\n };\n }\n if (selector.isSelected(node)) {\n var nodeBox = getBoundsForNode(node);\n var _dateCellSelection = dateCellSelection(_this2._initial, nodeBox, box, range.length, rtl);\n startIdx = _dateCellSelection.startIdx;\n endIdx = _dateCellSelection.endIdx;\n }\n _this2.setState({\n selecting: true,\n startIdx: startIdx,\n endIdx: endIdx\n });\n });\n selector.on('beforeSelect', function (box) {\n if (_this2.props.selectable !== 'ignoreEvents') return;\n return !isEvent(_this2.containerRef.current, box);\n });\n selector.on('click', function (point) {\n return selectorClicksHandler(point, 'click');\n });\n selector.on('doubleClick', function (point) {\n return selectorClicksHandler(point, 'doubleClick');\n });\n selector.on('select', function (bounds) {\n _this2._selectSlot(_objectSpread(_objectSpread({}, _this2.state), {}, {\n action: 'select',\n bounds: bounds\n }));\n _this2._initial = {};\n _this2.setState({\n selecting: false\n });\n notify(_this2.props.onSelectEnd, [_this2.state]);\n });\n }\n }, {\n key: \"_teardownSelectable\",\n value: function _teardownSelectable() {\n if (!this._selector) return;\n this._selector.teardown();\n this._selector = null;\n }\n }, {\n key: \"_selectSlot\",\n value: function _selectSlot(_ref) {\n var endIdx = _ref.endIdx,\n startIdx = _ref.startIdx,\n action = _ref.action,\n bounds = _ref.bounds,\n box = _ref.box;\n if (endIdx !== -1 && startIdx !== -1) this.props.onSelectSlot && this.props.onSelectSlot({\n start: startIdx,\n end: endIdx,\n action: action,\n bounds: bounds,\n box: box,\n resourceId: this.props.resourceId\n });\n }\n }]);\n return BackgroundCells;\n}(React.Component);\n\n/* eslint-disable react/prop-types */\nvar EventRowMixin = {\n propTypes: {\n slotMetrics: PropTypes.object.isRequired,\n selected: PropTypes.object,\n isAllDay: PropTypes.bool,\n accessors: PropTypes.object.isRequired,\n localizer: PropTypes.object.isRequired,\n components: PropTypes.object.isRequired,\n getters: PropTypes.object.isRequired,\n onSelect: PropTypes.func,\n onDoubleClick: PropTypes.func,\n onKeyPress: PropTypes.func\n },\n defaultProps: {\n segments: [],\n selected: {}\n },\n renderEvent: function renderEvent(props, event) {\n var selected = props.selected;\n props.isAllDay;\n var accessors = props.accessors,\n getters = props.getters,\n onSelect = props.onSelect,\n onDoubleClick = props.onDoubleClick,\n onKeyPress = props.onKeyPress,\n localizer = props.localizer,\n slotMetrics = props.slotMetrics,\n components = props.components,\n resizable = props.resizable;\n var continuesPrior = slotMetrics.continuesPrior(event);\n var continuesAfter = slotMetrics.continuesAfter(event);\n return /*#__PURE__*/React.createElement(EventCell, {\n event: event,\n getters: getters,\n localizer: localizer,\n accessors: accessors,\n components: components,\n onSelect: onSelect,\n onDoubleClick: onDoubleClick,\n onKeyPress: onKeyPress,\n continuesPrior: continuesPrior,\n continuesAfter: continuesAfter,\n slotStart: slotMetrics.first,\n slotEnd: slotMetrics.last,\n selected: isSelected(event, selected),\n resizable: resizable\n });\n },\n renderSpan: function renderSpan(slots, len, key) {\n var content = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ' ';\n var per = Math.abs(len) / slots * 100 + '%';\n return /*#__PURE__*/React.createElement(\"div\", {\n key: key,\n className: \"rbc-row-segment\"\n // IE10/11 need max-width. flex-basis doesn't respect box-sizing\n ,\n style: {\n WebkitFlexBasis: per,\n flexBasis: per,\n maxWidth: per\n }\n }, content);\n }\n};\n\nvar EventRow = /*#__PURE__*/function (_React$Component) {\n _inherits(EventRow, _React$Component);\n var _super = _createSuper(EventRow);\n function EventRow() {\n _classCallCheck(this, EventRow);\n return _super.apply(this, arguments);\n }\n _createClass(EventRow, [{\n key: \"render\",\n value: function render() {\n var _this = this;\n var _this$props = this.props,\n segments = _this$props.segments,\n slots = _this$props.slotMetrics.slots,\n className = _this$props.className;\n var lastEnd = 1;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: clsx(className, 'rbc-row')\n }, segments.reduce(function (row, _ref, li) {\n var event = _ref.event,\n left = _ref.left,\n right = _ref.right,\n span = _ref.span;\n var key = '_lvl_' + li;\n var gap = left - lastEnd;\n var content = EventRowMixin.renderEvent(_this.props, event);\n if (gap) row.push(EventRowMixin.renderSpan(slots, gap, \"\".concat(key, \"_gap\")));\n row.push(EventRowMixin.renderSpan(slots, span, key, content));\n lastEnd = right + 1;\n return row;\n }, []));\n }\n }]);\n return EventRow;\n}(React.Component);\nEventRow.defaultProps = _objectSpread({}, EventRowMixin.defaultProps);\n\nfunction endOfRange(_ref) {\n var dateRange = _ref.dateRange,\n _ref$unit = _ref.unit,\n unit = _ref$unit === void 0 ? 'day' : _ref$unit,\n localizer = _ref.localizer;\n return {\n first: dateRange[0],\n last: localizer.add(dateRange[dateRange.length - 1], 1, unit)\n };\n}\n\n// properly calculating segments requires working with dates in\n// the timezone we're working with, so we use the localizer\nfunction eventSegments(event, range, accessors, localizer) {\n var _endOfRange = endOfRange({\n dateRange: range,\n localizer: localizer\n }),\n first = _endOfRange.first,\n last = _endOfRange.last;\n var slots = localizer.diff(first, last, 'day');\n var start = localizer.max(localizer.startOf(accessors.start(event), 'day'), first);\n var end = localizer.min(localizer.ceil(accessors.end(event), 'day'), last);\n var padding = findIndex(range, function (x) {\n return localizer.isSameDate(x, start);\n });\n var span = localizer.diff(start, end, 'day');\n span = Math.min(span, slots);\n // The segmentOffset is necessary when adjusting for timezones\n // ahead of the browser timezone\n span = Math.max(span - localizer.segmentOffset, 1);\n return {\n event: event,\n span: span,\n left: padding + 1,\n right: Math.max(padding + span, 1)\n };\n}\nfunction eventLevels(rowSegments) {\n var limit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Infinity;\n var i,\n j,\n seg,\n levels = [],\n extra = [];\n for (i = 0; i < rowSegments.length; i++) {\n seg = rowSegments[i];\n for (j = 0; j < levels.length; j++) if (!segsOverlap(seg, levels[j])) break;\n if (j >= limit) {\n extra.push(seg);\n } else {\n (levels[j] || (levels[j] = [])).push(seg);\n }\n }\n for (i = 0; i < levels.length; i++) {\n levels[i].sort(function (a, b) {\n return a.left - b.left;\n }); //eslint-disable-line\n }\n\n return {\n levels: levels,\n extra: extra\n };\n}\nfunction inRange(e, start, end, accessors, localizer) {\n var event = {\n start: accessors.start(e),\n end: accessors.end(e)\n };\n var range = {\n start: start,\n end: end\n };\n return localizer.inEventRange({\n event: event,\n range: range\n });\n}\nfunction segsOverlap(seg, otherSegs) {\n return otherSegs.some(function (otherSeg) {\n return otherSeg.left <= seg.right && otherSeg.right >= seg.left;\n });\n}\nfunction sortEvents(eventA, eventB, accessors, localizer) {\n var evtA = {\n start: accessors.start(eventA),\n end: accessors.end(eventA),\n allDay: accessors.allDay(eventA)\n };\n var evtB = {\n start: accessors.start(eventB),\n end: accessors.end(eventB),\n allDay: accessors.allDay(eventB)\n };\n return localizer.sortEvents({\n evtA: evtA,\n evtB: evtB\n });\n}\n\nvar isSegmentInSlot$1 = function isSegmentInSlot(seg, slot) {\n return seg.left <= slot && seg.right >= slot;\n};\nvar eventsInSlot = function eventsInSlot(segments, slot) {\n return segments.filter(function (seg) {\n return isSegmentInSlot$1(seg, slot);\n }).length;\n};\nvar EventEndingRow = /*#__PURE__*/function (_React$Component) {\n _inherits(EventEndingRow, _React$Component);\n var _super = _createSuper(EventEndingRow);\n function EventEndingRow() {\n _classCallCheck(this, EventEndingRow);\n return _super.apply(this, arguments);\n }\n _createClass(EventEndingRow, [{\n key: \"render\",\n value: function render() {\n var _this$props = this.props,\n segments = _this$props.segments,\n slots = _this$props.slotMetrics.slots;\n var rowSegments = eventLevels(segments).levels[0];\n var current = 1,\n lastEnd = 1,\n row = [];\n while (current <= slots) {\n var key = '_lvl_' + current;\n var _ref = rowSegments.filter(function (seg) {\n return isSegmentInSlot$1(seg, current);\n })[0] || {},\n event = _ref.event,\n left = _ref.left,\n right = _ref.right,\n span = _ref.span; //eslint-disable-line\n\n if (!event) {\n current++;\n continue;\n }\n var gap = Math.max(0, left - lastEnd);\n if (this.canRenderSlotEvent(left, span)) {\n var content = EventRowMixin.renderEvent(this.props, event);\n if (gap) {\n row.push(EventRowMixin.renderSpan(slots, gap, key + '_gap'));\n }\n row.push(EventRowMixin.renderSpan(slots, span, key, content));\n lastEnd = current = right + 1;\n } else {\n if (gap) {\n row.push(EventRowMixin.renderSpan(slots, gap, key + '_gap'));\n }\n row.push(EventRowMixin.renderSpan(slots, 1, key, this.renderShowMore(segments, current)));\n lastEnd = current = current + 1;\n }\n }\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"rbc-row\"\n }, row);\n }\n }, {\n key: \"canRenderSlotEvent\",\n value: function canRenderSlotEvent(slot, span) {\n var segments = this.props.segments;\n return range$1(slot, slot + span).every(function (s) {\n var count = eventsInSlot(segments, s);\n return count === 1;\n });\n }\n }, {\n key: \"renderShowMore\",\n value: function renderShowMore(segments, slot) {\n var _this = this;\n var localizer = this.props.localizer;\n var count = eventsInSlot(segments, slot);\n return count ? /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n key: 'sm_' + slot,\n className: clsx('rbc-button-link', 'rbc-show-more'),\n onClick: function onClick(e) {\n return _this.showMore(slot, e);\n }\n }, localizer.messages.showMore(count)) : false;\n }\n }, {\n key: \"showMore\",\n value: function showMore(slot, e) {\n e.preventDefault();\n e.stopPropagation();\n this.props.onShowMore(slot, e.target);\n }\n }]);\n return EventEndingRow;\n}(React.Component);\nEventEndingRow.defaultProps = _objectSpread({}, EventRowMixin.defaultProps);\n\nvar ScrollableWeekWrapper = function ScrollableWeekWrapper(_ref) {\n var children = _ref.children;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"rbc-row-content-scroll-container\"\n }, children);\n};\n\nvar isSegmentInSlot = function isSegmentInSlot(seg, slot) {\n return seg.left <= slot && seg.right >= slot;\n};\nvar isEqual = function isEqual(a, b) {\n return a[0].range === b[0].range && a[0].events === b[0].events;\n};\nfunction getSlotMetrics$1() {\n return memoize(function (options) {\n var range = options.range,\n events = options.events,\n maxRows = options.maxRows,\n minRows = options.minRows,\n accessors = options.accessors,\n localizer = options.localizer;\n var _endOfRange = endOfRange({\n dateRange: range,\n localizer: localizer\n }),\n first = _endOfRange.first,\n last = _endOfRange.last;\n var segments = events.map(function (evt) {\n return eventSegments(evt, range, accessors, localizer);\n });\n var _eventLevels = eventLevels(segments, Math.max(maxRows - 1, 1)),\n levels = _eventLevels.levels,\n extra = _eventLevels.extra;\n // Subtract 1 from minRows to not include showMore button row when\n // it would be rendered\n var minEventRows = extra.length > 0 ? minRows - 1 : minRows;\n while (levels.length < minEventRows) levels.push([]);\n return {\n first: first,\n last: last,\n levels: levels,\n extra: extra,\n range: range,\n slots: range.length,\n clone: function clone(args) {\n var metrics = getSlotMetrics$1();\n return metrics(_objectSpread(_objectSpread({}, options), args));\n },\n getDateForSlot: function getDateForSlot(slotNumber) {\n return range[slotNumber];\n },\n getSlotForDate: function getSlotForDate(date) {\n return range.find(function (r) {\n return localizer.isSameDate(r, date);\n });\n },\n getEventsForSlot: function getEventsForSlot(slot) {\n return segments.filter(function (seg) {\n return isSegmentInSlot(seg, slot);\n }).map(function (seg) {\n return seg.event;\n });\n },\n continuesPrior: function continuesPrior(event) {\n return localizer.continuesPrior(accessors.start(event), first);\n },\n continuesAfter: function continuesAfter(event) {\n var start = accessors.start(event);\n var end = accessors.end(event);\n return localizer.continuesAfter(start, end, last);\n }\n };\n }, isEqual);\n}\n\nvar DateContentRow = /*#__PURE__*/function (_React$Component) {\n _inherits(DateContentRow, _React$Component);\n var _super = _createSuper(DateContentRow);\n function DateContentRow() {\n var _this;\n _classCallCheck(this, DateContentRow);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _super.call.apply(_super, [this].concat(args));\n _this.handleSelectSlot = function (slot) {\n var _this$props = _this.props,\n range = _this$props.range,\n onSelectSlot = _this$props.onSelectSlot;\n onSelectSlot(range.slice(slot.start, slot.end + 1), slot);\n };\n _this.handleShowMore = function (slot, target) {\n var _this$props2 = _this.props,\n range = _this$props2.range,\n onShowMore = _this$props2.onShowMore;\n var metrics = _this.slotMetrics(_this.props);\n var row = qsa(_this.containerRef.current, '.rbc-row-bg')[0];\n var cell;\n if (row) cell = row.children[slot - 1];\n var events = metrics.getEventsForSlot(slot);\n onShowMore(events, range[slot - 1], cell, slot, target);\n };\n _this.getContainer = function () {\n var container = _this.props.container;\n return container ? container() : _this.containerRef.current;\n };\n _this.renderHeadingCell = function (date, index) {\n var _this$props3 = _this.props,\n renderHeader = _this$props3.renderHeader,\n getNow = _this$props3.getNow,\n localizer = _this$props3.localizer;\n return renderHeader({\n date: date,\n key: \"header_\".concat(index),\n className: clsx('rbc-date-cell', localizer.isSameDate(date, getNow()) && 'rbc-now')\n });\n };\n _this.renderDummy = function () {\n var _this$props4 = _this.props,\n className = _this$props4.className,\n range = _this$props4.range,\n renderHeader = _this$props4.renderHeader,\n showAllEvents = _this$props4.showAllEvents;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: className,\n ref: _this.containerRef\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: clsx('rbc-row-content', showAllEvents && 'rbc-row-content-scrollable')\n }, renderHeader && /*#__PURE__*/React.createElement(\"div\", {\n className: \"rbc-row\",\n ref: _this.headingRowRef\n }, range.map(_this.renderHeadingCell)), /*#__PURE__*/React.createElement(\"div\", {\n className: \"rbc-row\",\n ref: _this.eventRowRef\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"rbc-row-segment\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"rbc-event\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"rbc-event-content\"\n }, \"\\xA0\"))))));\n };\n _this.containerRef = /*#__PURE__*/createRef();\n _this.headingRowRef = /*#__PURE__*/createRef();\n _this.eventRowRef = /*#__PURE__*/createRef();\n _this.slotMetrics = getSlotMetrics$1();\n return _this;\n }\n _createClass(DateContentRow, [{\n key: \"getRowLimit\",\n value: function getRowLimit() {\n var _this$headingRowRef;\n /* Guessing this only gets called on the dummyRow */\n var eventHeight = getHeight(this.eventRowRef.current);\n var headingHeight = (_this$headingRowRef = this.headingRowRef) !== null && _this$headingRowRef !== void 0 && _this$headingRowRef.current ? getHeight(this.headingRowRef.current) : 0;\n var eventSpace = getHeight(this.containerRef.current) - headingHeight;\n return Math.max(Math.floor(eventSpace / eventHeight), 1);\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$props5 = this.props,\n date = _this$props5.date,\n rtl = _this$props5.rtl,\n range = _this$props5.range,\n className = _this$props5.className,\n selected = _this$props5.selected,\n selectable = _this$props5.selectable,\n renderForMeasure = _this$props5.renderForMeasure,\n accessors = _this$props5.accessors,\n getters = _this$props5.getters,\n components = _this$props5.components,\n getNow = _this$props5.getNow,\n renderHeader = _this$props5.renderHeader,\n onSelect = _this$props5.onSelect,\n localizer = _this$props5.localizer,\n onSelectStart = _this$props5.onSelectStart,\n onSelectEnd = _this$props5.onSelectEnd,\n onDoubleClick = _this$props5.onDoubleClick,\n onKeyPress = _this$props5.onKeyPress,\n resourceId = _this$props5.resourceId,\n longPressThreshold = _this$props5.longPressThreshold,\n isAllDay = _this$props5.isAllDay,\n resizable = _this$props5.resizable,\n showAllEvents = _this$props5.showAllEvents;\n if (renderForMeasure) return this.renderDummy();\n var metrics = this.slotMetrics(this.props);\n var levels = metrics.levels,\n extra = metrics.extra;\n var ScrollableWeekComponent = showAllEvents ? ScrollableWeekWrapper : NoopWrapper;\n var WeekWrapper = components.weekWrapper;\n var eventRowProps = {\n selected: selected,\n accessors: accessors,\n getters: getters,\n localizer: localizer,\n components: components,\n onSelect: onSelect,\n onDoubleClick: onDoubleClick,\n onKeyPress: onKeyPress,\n resourceId: resourceId,\n slotMetrics: metrics,\n resizable: resizable\n };\n return /*#__PURE__*/React.createElement(\"div\", {\n className: className,\n role: \"rowgroup\",\n ref: this.containerRef\n }, /*#__PURE__*/React.createElement(BackgroundCells, {\n localizer: localizer,\n date: date,\n getNow: getNow,\n rtl: rtl,\n range: range,\n selectable: selectable,\n container: this.getContainer,\n getters: getters,\n onSelectStart: onSelectStart,\n onSelectEnd: onSelectEnd,\n onSelectSlot: this.handleSelectSlot,\n components: components,\n longPressThreshold: longPressThreshold,\n resourceId: resourceId\n }), /*#__PURE__*/React.createElement(\"div\", {\n className: clsx('rbc-row-content', showAllEvents && 'rbc-row-content-scrollable'),\n role: \"row\"\n }, renderHeader && /*#__PURE__*/React.createElement(\"div\", {\n className: \"rbc-row \",\n ref: this.headingRowRef\n }, range.map(this.renderHeadingCell)), /*#__PURE__*/React.createElement(ScrollableWeekComponent, null, /*#__PURE__*/React.createElement(WeekWrapper, Object.assign({\n isAllDay: isAllDay\n }, eventRowProps, {\n rtl: this.props.rtl\n }), levels.map(function (segs, idx) {\n return /*#__PURE__*/React.createElement(EventRow, Object.assign({\n key: idx,\n segments: segs\n }, eventRowProps));\n }), !!extra.length && /*#__PURE__*/React.createElement(EventEndingRow, Object.assign({\n segments: extra,\n onShowMore: this.handleShowMore\n }, eventRowProps))))));\n }\n }]);\n return DateContentRow;\n}(React.Component);\nDateContentRow.defaultProps = {\n minRows: 0,\n maxRows: Infinity\n};\n\nvar Header = function Header(_ref) {\n var label = _ref.label;\n return /*#__PURE__*/React.createElement(\"span\", {\n role: \"columnheader\",\n \"aria-sort\": \"none\"\n }, label);\n};\n\nvar DateHeader = function DateHeader(_ref) {\n var label = _ref.label,\n drilldownView = _ref.drilldownView,\n onDrillDown = _ref.onDrillDown;\n if (!drilldownView) {\n return /*#__PURE__*/React.createElement(\"span\", null, label);\n }\n return /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: \"rbc-button-link\",\n onClick: onDrillDown,\n role: \"cell\"\n }, label);\n};\n\nvar _excluded$6 = [\"date\", \"className\"];\nvar eventsForWeek = function eventsForWeek(evts, start, end, accessors, localizer) {\n return evts.filter(function (e) {\n return inRange(e, start, end, accessors, localizer);\n });\n};\nvar MonthView = /*#__PURE__*/function (_React$Component) {\n _inherits(MonthView, _React$Component);\n var _super = _createSuper(MonthView);\n function MonthView() {\n var _this;\n _classCallCheck(this, MonthView);\n for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {\n _args[_key] = arguments[_key];\n }\n _this = _super.call.apply(_super, [this].concat(_args));\n _this.getContainer = function () {\n return _this.containerRef.current;\n };\n _this.renderWeek = function (week, weekIdx) {\n var _this$props = _this.props,\n events = _this$props.events,\n components = _this$props.components,\n selectable = _this$props.selectable,\n getNow = _this$props.getNow,\n selected = _this$props.selected,\n date = _this$props.date,\n localizer = _this$props.localizer,\n longPressThreshold = _this$props.longPressThreshold,\n accessors = _this$props.accessors,\n getters = _this$props.getters,\n showAllEvents = _this$props.showAllEvents;\n var _this$state = _this.state,\n needLimitMeasure = _this$state.needLimitMeasure,\n rowLimit = _this$state.rowLimit;\n\n // let's not mutate props\n var weeksEvents = eventsForWeek(_toConsumableArray(events), week[0], week[week.length - 1], accessors, localizer);\n weeksEvents.sort(function (a, b) {\n return sortEvents(a, b, accessors, localizer);\n });\n return /*#__PURE__*/React.createElement(DateContentRow, {\n key: weekIdx,\n ref: weekIdx === 0 ? _this.slotRowRef : undefined,\n container: _this.getContainer,\n className: \"rbc-month-row\",\n getNow: getNow,\n date: date,\n range: week,\n events: weeksEvents,\n maxRows: showAllEvents ? Infinity : rowLimit,\n selected: selected,\n selectable: selectable,\n components: components,\n accessors: accessors,\n getters: getters,\n localizer: localizer,\n renderHeader: _this.readerDateHeading,\n renderForMeasure: needLimitMeasure,\n onShowMore: _this.handleShowMore,\n onSelect: _this.handleSelectEvent,\n onDoubleClick: _this.handleDoubleClickEvent,\n onKeyPress: _this.handleKeyPressEvent,\n onSelectSlot: _this.handleSelectSlot,\n longPressThreshold: longPressThreshold,\n rtl: _this.props.rtl,\n resizable: _this.props.resizable,\n showAllEvents: showAllEvents\n });\n };\n _this.readerDateHeading = function (_ref) {\n var date = _ref.date,\n className = _ref.className,\n props = _objectWithoutProperties(_ref, _excluded$6);\n var _this$props2 = _this.props,\n currentDate = _this$props2.date,\n getDrilldownView = _this$props2.getDrilldownView,\n localizer = _this$props2.localizer;\n var isOffRange = localizer.neq(date, currentDate, 'month');\n var isCurrent = localizer.isSameDate(date, currentDate);\n var drilldownView = getDrilldownView(date);\n var label = localizer.format(date, 'dateFormat');\n var DateHeaderComponent = _this.props.components.dateHeader || DateHeader;\n return /*#__PURE__*/React.createElement(\"div\", Object.assign({}, props, {\n className: clsx(className, isOffRange && 'rbc-off-range', isCurrent && 'rbc-current'),\n role: \"cell\"\n }), /*#__PURE__*/React.createElement(DateHeaderComponent, {\n label: label,\n date: date,\n drilldownView: drilldownView,\n isOffRange: isOffRange,\n onDrillDown: function onDrillDown(e) {\n return _this.handleHeadingClick(date, drilldownView, e);\n }\n }));\n };\n _this.handleSelectSlot = function (range, slotInfo) {\n _this._pendingSelection = _this._pendingSelection.concat(range);\n clearTimeout(_this._selectTimer);\n _this._selectTimer = setTimeout(function () {\n return _this.selectDates(slotInfo);\n });\n };\n _this.handleHeadingClick = function (date, view, e) {\n e.preventDefault();\n _this.clearSelection();\n notify(_this.props.onDrillDown, [date, view]);\n };\n _this.handleSelectEvent = function () {\n _this.clearSelection();\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n notify(_this.props.onSelectEvent, args);\n };\n _this.handleDoubleClickEvent = function () {\n _this.clearSelection();\n for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n notify(_this.props.onDoubleClickEvent, args);\n };\n _this.handleKeyPressEvent = function () {\n _this.clearSelection();\n for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n args[_key4] = arguments[_key4];\n }\n notify(_this.props.onKeyPressEvent, args);\n };\n _this.handleShowMore = function (events, date, cell, slot, target) {\n var _this$props3 = _this.props,\n popup = _this$props3.popup,\n onDrillDown = _this$props3.onDrillDown,\n onShowMore = _this$props3.onShowMore,\n getDrilldownView = _this$props3.getDrilldownView,\n doShowMoreDrillDown = _this$props3.doShowMoreDrillDown;\n //cancel any pending selections so only the event click goes through.\n _this.clearSelection();\n if (popup) {\n var position = getPosition$1(cell, _this.containerRef.current);\n _this.setState({\n overlay: {\n date: date,\n events: events,\n position: position,\n target: target\n }\n });\n } else if (doShowMoreDrillDown) {\n notify(onDrillDown, [date, getDrilldownView(date) || views.DAY]);\n }\n notify(onShowMore, [events, date, slot]);\n };\n _this.overlayDisplay = function () {\n _this.setState({\n overlay: null\n });\n };\n _this.state = {\n rowLimit: 5,\n needLimitMeasure: true,\n date: null\n };\n _this.containerRef = /*#__PURE__*/createRef();\n _this.slotRowRef = /*#__PURE__*/createRef();\n _this._bgRows = [];\n _this._pendingSelection = [];\n return _this;\n }\n _createClass(MonthView, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this2 = this;\n var running;\n if (this.state.needLimitMeasure) this.measureRowLimit(this.props);\n window.addEventListener('resize', this._resizeListener = function () {\n if (!running) {\n animationFrame.request(function () {\n running = false;\n _this2.setState({\n needLimitMeasure: true\n }); //eslint-disable-line\n });\n }\n }, false);\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate() {\n if (this.state.needLimitMeasure) this.measureRowLimit(this.props);\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n window.removeEventListener('resize', this._resizeListener, false);\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$props4 = this.props,\n date = _this$props4.date,\n localizer = _this$props4.localizer,\n className = _this$props4.className,\n month = localizer.visibleDays(date, localizer),\n weeks = chunk(month, 7);\n this._weekCount = weeks.length;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: clsx('rbc-month-view', className),\n role: \"table\",\n \"aria-label\": \"Month View\",\n ref: this.containerRef\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"rbc-row rbc-month-header\",\n role: \"row\"\n }, this.renderHeaders(weeks[0])), weeks.map(this.renderWeek), this.props.popup && this.renderOverlay());\n }\n }, {\n key: \"renderHeaders\",\n value: function renderHeaders(row) {\n var _this$props5 = this.props,\n localizer = _this$props5.localizer,\n components = _this$props5.components;\n var first = row[0];\n var last = row[row.length - 1];\n var HeaderComponent = components.header || Header;\n return localizer.range(first, last, 'day').map(function (day, idx) {\n return /*#__PURE__*/React.createElement(\"div\", {\n key: 'header_' + idx,\n className: \"rbc-header\"\n }, /*#__PURE__*/React.createElement(HeaderComponent, {\n date: day,\n localizer: localizer,\n label: localizer.format(day, 'weekdayFormat')\n }));\n });\n }\n }, {\n key: \"renderOverlay\",\n value: function renderOverlay() {\n var _this$state$overlay,\n _this$state2,\n _this3 = this;\n var overlay = (_this$state$overlay = (_this$state2 = this.state) === null || _this$state2 === void 0 ? void 0 : _this$state2.overlay) !== null && _this$state$overlay !== void 0 ? _this$state$overlay : {};\n var _this$props6 = this.props,\n accessors = _this$props6.accessors,\n localizer = _this$props6.localizer,\n components = _this$props6.components,\n getters = _this$props6.getters,\n selected = _this$props6.selected,\n popupOffset = _this$props6.popupOffset,\n handleDragStart = _this$props6.handleDragStart;\n var onHide = function onHide() {\n return _this3.setState({\n overlay: null\n });\n };\n return /*#__PURE__*/React.createElement(PopOverlay, {\n overlay: overlay,\n accessors: accessors,\n localizer: localizer,\n components: components,\n getters: getters,\n selected: selected,\n popupOffset: popupOffset,\n ref: this.containerRef,\n handleKeyPressEvent: this.handleKeyPressEvent,\n handleSelectEvent: this.handleSelectEvent,\n handleDoubleClickEvent: this.handleDoubleClickEvent,\n handleDragStart: handleDragStart,\n show: !!overlay.position,\n overlayDisplay: this.overlayDisplay,\n onHide: onHide\n });\n\n /* return (\n this.setState({ overlay: null })}\n target={() => overlay.target}\n >\n {({ props }) => (\n \n )}\n \n ) */\n }\n }, {\n key: \"measureRowLimit\",\n value: function measureRowLimit() {\n this.setState({\n needLimitMeasure: false,\n rowLimit: this.slotRowRef.current.getRowLimit()\n });\n }\n }, {\n key: \"selectDates\",\n value: function selectDates(slotInfo) {\n var slots = this._pendingSelection.slice();\n this._pendingSelection = [];\n slots.sort(function (a, b) {\n return +a - +b;\n });\n var start = new Date(slots[0]);\n var end = new Date(slots[slots.length - 1]);\n end.setDate(slots[slots.length - 1].getDate() + 1);\n notify(this.props.onSelectSlot, {\n slots: slots,\n start: start,\n end: end,\n action: slotInfo.action,\n bounds: slotInfo.bounds,\n box: slotInfo.box\n });\n }\n }, {\n key: \"clearSelection\",\n value: function clearSelection() {\n clearTimeout(this._selectTimer);\n this._pendingSelection = [];\n }\n }], [{\n key: \"getDerivedStateFromProps\",\n value: function getDerivedStateFromProps(_ref2, state) {\n var date = _ref2.date,\n localizer = _ref2.localizer;\n return {\n date: date,\n needLimitMeasure: localizer.neq(date, state.date, 'month')\n };\n }\n }]);\n return MonthView;\n}(React.Component);\nMonthView.range = function (date, _ref3) {\n var localizer = _ref3.localizer;\n var start = localizer.firstVisibleDay(date, localizer);\n var end = localizer.lastVisibleDay(date, localizer);\n return {\n start: start,\n end: end\n };\n};\nMonthView.navigate = function (date, action, _ref4) {\n var localizer = _ref4.localizer;\n switch (action) {\n case navigate.PREVIOUS:\n return localizer.add(date, -1, 'month');\n case navigate.NEXT:\n return localizer.add(date, 1, 'month');\n default:\n return date;\n }\n};\nMonthView.title = function (date, _ref5) {\n var localizer = _ref5.localizer;\n return localizer.format(date, 'monthHeaderFormat');\n};\n\nvar getKey = function getKey(_ref) {\n var min = _ref.min,\n max = _ref.max,\n step = _ref.step,\n slots = _ref.slots,\n localizer = _ref.localizer;\n return \"\".concat(+localizer.startOf(min, 'minutes')) + \"\".concat(+localizer.startOf(max, 'minutes')) + \"\".concat(step, \"-\").concat(slots);\n};\nfunction getSlotMetrics(_ref2) {\n var start = _ref2.min,\n end = _ref2.max,\n step = _ref2.step,\n timeslots = _ref2.timeslots,\n localizer = _ref2.localizer;\n var key = getKey({\n start: start,\n end: end,\n step: step,\n timeslots: timeslots,\n localizer: localizer\n });\n\n // DST differences are handled inside the localizer\n var totalMin = 1 + localizer.getTotalMin(start, end);\n var minutesFromMidnight = localizer.getMinutesFromMidnight(start);\n var numGroups = Math.ceil((totalMin - 1) / (step * timeslots));\n var numSlots = numGroups * timeslots;\n var groups = new Array(numGroups);\n var slots = new Array(numSlots);\n // Each slot date is created from \"zero\", instead of adding `step` to\n // the previous one, in order to avoid DST oddities\n for (var grp = 0; grp < numGroups; grp++) {\n groups[grp] = new Array(timeslots);\n for (var slot = 0; slot < timeslots; slot++) {\n var slotIdx = grp * timeslots + slot;\n var minFromStart = slotIdx * step;\n // A date with total minutes calculated from the start of the day\n slots[slotIdx] = groups[grp][slot] = localizer.getSlotDate(start, minutesFromMidnight, minFromStart);\n }\n }\n\n // Necessary to be able to select up until the last timeslot in a day\n var lastSlotMinFromStart = slots.length * step;\n slots.push(localizer.getSlotDate(start, minutesFromMidnight, lastSlotMinFromStart));\n function positionFromDate(date) {\n var diff = localizer.diff(start, date, 'minutes') + localizer.getDstOffset(start, date);\n return Math.min(diff, totalMin);\n }\n return {\n groups: groups,\n update: function update(args) {\n if (getKey(args) !== key) return getSlotMetrics(args);\n return this;\n },\n dateIsInGroup: function dateIsInGroup(date, groupIndex) {\n var nextGroup = groups[groupIndex + 1];\n return localizer.inRange(date, groups[groupIndex][0], nextGroup ? nextGroup[0] : end, 'minutes');\n },\n nextSlot: function nextSlot(slot) {\n var next = slots[Math.min(slots.indexOf(slot) + 1, slots.length - 1)];\n // in the case of the last slot we won't a long enough range so manually get it\n if (next === slot) next = localizer.add(slot, step, 'minutes');\n return next;\n },\n closestSlotToPosition: function closestSlotToPosition(percent) {\n var slot = Math.min(slots.length - 1, Math.max(0, Math.floor(percent * numSlots)));\n return slots[slot];\n },\n closestSlotFromPoint: function closestSlotFromPoint(point, boundaryRect) {\n var range = Math.abs(boundaryRect.top - boundaryRect.bottom);\n return this.closestSlotToPosition((point.y - boundaryRect.top) / range);\n },\n closestSlotFromDate: function closestSlotFromDate(date) {\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n if (localizer.lt(date, start, 'minutes')) return slots[0];\n if (localizer.gt(date, end, 'minutes')) return slots[slots.length - 1];\n var diffMins = localizer.diff(start, date, 'minutes');\n return slots[(diffMins - diffMins % step) / step + offset];\n },\n startsBeforeDay: function startsBeforeDay(date) {\n return localizer.lt(date, start, 'day');\n },\n startsAfterDay: function startsAfterDay(date) {\n return localizer.gt(date, end, 'day');\n },\n startsBefore: function startsBefore(date) {\n return localizer.lt(localizer.merge(start, date), start, 'minutes');\n },\n startsAfter: function startsAfter(date) {\n return localizer.gt(localizer.merge(end, date), end, 'minutes');\n },\n getRange: function getRange(rangeStart, rangeEnd, ignoreMin, ignoreMax) {\n if (!ignoreMin) rangeStart = localizer.min(end, localizer.max(start, rangeStart));\n if (!ignoreMax) rangeEnd = localizer.min(end, localizer.max(start, rangeEnd));\n var rangeStartMin = positionFromDate(rangeStart);\n var rangeEndMin = positionFromDate(rangeEnd);\n var top = rangeEndMin > step * numSlots && !localizer.eq(end, rangeEnd) ? (rangeStartMin - step) / (step * numSlots) * 100 : rangeStartMin / (step * numSlots) * 100;\n return {\n top: top,\n height: rangeEndMin / (step * numSlots) * 100 - top,\n start: positionFromDate(rangeStart),\n startDate: rangeStart,\n end: positionFromDate(rangeEnd),\n endDate: rangeEnd\n };\n },\n getCurrentTimePosition: function getCurrentTimePosition(rangeStart) {\n var rangeStartMin = positionFromDate(rangeStart);\n var top = rangeStartMin / (step * numSlots) * 100;\n return top;\n }\n };\n}\n\nvar Event = /*#__PURE__*/function () {\n function Event(data, _ref) {\n var accessors = _ref.accessors,\n slotMetrics = _ref.slotMetrics;\n _classCallCheck(this, Event);\n var _slotMetrics$getRange = slotMetrics.getRange(accessors.start(data), accessors.end(data)),\n start = _slotMetrics$getRange.start,\n startDate = _slotMetrics$getRange.startDate,\n end = _slotMetrics$getRange.end,\n endDate = _slotMetrics$getRange.endDate,\n top = _slotMetrics$getRange.top,\n height = _slotMetrics$getRange.height;\n this.start = start;\n this.end = end;\n this.startMs = +startDate;\n this.endMs = +endDate;\n this.top = top;\n this.height = height;\n this.data = data;\n }\n\n /**\n * The event's width without any overlap.\n */\n _createClass(Event, [{\n key: \"_width\",\n get: function get() {\n // The container event's width is determined by the maximum number of\n // events in any of its rows.\n if (this.rows) {\n var columns = this.rows.reduce(function (max, row) {\n return Math.max(max, row.leaves.length + 1);\n },\n // add itself\n 0) + 1; // add the container\n\n return 100 / columns;\n }\n\n // The row event's width is the space left by the container, divided\n // among itself and its leaves.\n if (this.leaves) {\n var availableWidth = 100 - this.container._width;\n return availableWidth / (this.leaves.length + 1);\n }\n\n // The leaf event's width is determined by its row's width\n return this.row._width;\n }\n\n /**\n * The event's calculated width, possibly with extra width added for\n * overlapping effect.\n */\n }, {\n key: \"width\",\n get: function get() {\n var noOverlap = this._width;\n var overlap = Math.min(100, this._width * 1.7);\n\n // Containers can always grow.\n if (this.rows) {\n return overlap;\n }\n\n // Rows can grow if they have leaves.\n if (this.leaves) {\n return this.leaves.length > 0 ? overlap : noOverlap;\n }\n\n // Leaves can grow unless they're the last item in a row.\n var leaves = this.row.leaves;\n var index = leaves.indexOf(this);\n return index === leaves.length - 1 ? noOverlap : overlap;\n }\n }, {\n key: \"xOffset\",\n get: function get() {\n // Containers have no offset.\n if (this.rows) return 0;\n\n // Rows always start where their container ends.\n if (this.leaves) return this.container._width;\n\n // Leaves are spread out evenly on the space left by its row.\n var _this$row = this.row,\n leaves = _this$row.leaves,\n xOffset = _this$row.xOffset,\n _width = _this$row._width;\n var index = leaves.indexOf(this) + 1;\n return xOffset + index * _width;\n }\n }]);\n return Event;\n}();\n/**\n * Return true if event a and b is considered to be on the same row.\n */\nfunction onSameRow(a, b, minimumStartDifference) {\n return (\n // Occupies the same start slot.\n Math.abs(b.start - a.start) < minimumStartDifference ||\n // A's start slot overlaps with b's end slot.\n b.start > a.start && b.start < a.end\n );\n}\nfunction sortByRender(events) {\n var sortedByTime = sortBy(events, ['startMs', function (e) {\n return -e.endMs;\n }]);\n var sorted = [];\n while (sortedByTime.length > 0) {\n var event = sortedByTime.shift();\n sorted.push(event);\n for (var i = 0; i < sortedByTime.length; i++) {\n var test = sortedByTime[i];\n\n // Still inside this event, look for next.\n if (event.endMs > test.startMs) continue;\n\n // We've found the first event of the next event group.\n // If that event is not right next to our current event, we have to\n // move it here.\n if (i > 0) {\n var _event = sortedByTime.splice(i, 1)[0];\n sorted.push(_event);\n }\n\n // We've already found the next event group, so stop looking.\n break;\n }\n }\n return sorted;\n}\nfunction getStyledEvents$1(_ref2) {\n var events = _ref2.events,\n minimumStartDifference = _ref2.minimumStartDifference,\n slotMetrics = _ref2.slotMetrics,\n accessors = _ref2.accessors;\n // Create proxy events and order them so that we don't have\n // to fiddle with z-indexes.\n var proxies = events.map(function (event) {\n return new Event(event, {\n slotMetrics: slotMetrics,\n accessors: accessors\n });\n });\n var eventsInRenderOrder = sortByRender(proxies);\n\n // Group overlapping events, while keeping order.\n // Every event is always one of: container, row or leaf.\n // Containers can contain rows, and rows can contain leaves.\n var containerEvents = [];\n var _loop = function _loop() {\n var event = eventsInRenderOrder[i];\n\n // Check if this event can go into a container event.\n var container = containerEvents.find(function (c) {\n return c.end > event.start || Math.abs(event.start - c.start) < minimumStartDifference;\n });\n\n // Couldn't find a container — that means this event is a container.\n if (!container) {\n event.rows = [];\n containerEvents.push(event);\n return \"continue\";\n }\n\n // Found a container for the event.\n event.container = container;\n\n // Check if the event can be placed in an existing row.\n // Start looking from behind.\n var row = null;\n for (var j = container.rows.length - 1; !row && j >= 0; j--) {\n if (onSameRow(container.rows[j], event, minimumStartDifference)) {\n row = container.rows[j];\n }\n }\n if (row) {\n // Found a row, so add it.\n row.leaves.push(event);\n event.row = row;\n } else {\n // Couldn't find a row – that means this event is a row.\n event.leaves = [];\n container.rows.push(event);\n }\n };\n for (var i = 0; i < eventsInRenderOrder.length; i++) {\n var _ret = _loop();\n if (_ret === \"continue\") continue;\n }\n\n // Return the original events, along with their styles.\n return eventsInRenderOrder.map(function (event) {\n return {\n event: event.data,\n style: {\n top: event.top,\n height: event.height,\n width: event.width,\n xOffset: Math.max(0, event.xOffset)\n }\n };\n });\n}\n\nfunction getMaxIdxDFS(node, maxIdx, visited) {\n for (var i = 0; i < node.friends.length; ++i) {\n if (visited.indexOf(node.friends[i]) > -1) continue;\n maxIdx = maxIdx > node.friends[i].idx ? maxIdx : node.friends[i].idx;\n // TODO : trace it by not object but kinda index or something for performance\n visited.push(node.friends[i]);\n var newIdx = getMaxIdxDFS(node.friends[i], maxIdx, visited);\n maxIdx = maxIdx > newIdx ? maxIdx : newIdx;\n }\n return maxIdx;\n}\nfunction noOverlap (_ref) {\n var events = _ref.events,\n minimumStartDifference = _ref.minimumStartDifference,\n slotMetrics = _ref.slotMetrics,\n accessors = _ref.accessors;\n var styledEvents = getStyledEvents$1({\n events: events,\n minimumStartDifference: minimumStartDifference,\n slotMetrics: slotMetrics,\n accessors: accessors\n });\n styledEvents.sort(function (a, b) {\n a = a.style;\n b = b.style;\n if (a.top !== b.top) return a.top > b.top ? 1 : -1;else return a.top + a.height < b.top + b.height ? 1 : -1;\n });\n for (var i = 0; i < styledEvents.length; ++i) {\n styledEvents[i].friends = [];\n delete styledEvents[i].style.left;\n delete styledEvents[i].style.left;\n delete styledEvents[i].idx;\n delete styledEvents[i].size;\n }\n for (var _i2 = 0; _i2 < styledEvents.length - 1; ++_i2) {\n var se1 = styledEvents[_i2];\n var y1 = se1.style.top;\n var y2 = se1.style.top + se1.style.height;\n for (var j = _i2 + 1; j < styledEvents.length; ++j) {\n var se2 = styledEvents[j];\n var y3 = se2.style.top;\n var y4 = se2.style.top + se2.style.height;\n if (y3 >= y1 && y4 <= y2 || y4 > y1 && y4 <= y2 || y3 >= y1 && y3 < y2) {\n // TODO : hashmap would be effective for performance\n se1.friends.push(se2);\n se2.friends.push(se1);\n }\n }\n }\n for (var _i4 = 0; _i4 < styledEvents.length; ++_i4) {\n var se = styledEvents[_i4];\n var bitmap = [];\n for (var _j2 = 0; _j2 < 100; ++_j2) bitmap.push(1); // 1 means available\n\n for (var _j4 = 0; _j4 < se.friends.length; ++_j4) if (se.friends[_j4].idx !== undefined) bitmap[se.friends[_j4].idx] = 0; // 0 means reserved\n\n se.idx = bitmap.indexOf(1);\n }\n for (var _i6 = 0; _i6 < styledEvents.length; ++_i6) {\n var size = 0;\n if (styledEvents[_i6].size) continue;\n var allFriends = [];\n var maxIdx = getMaxIdxDFS(styledEvents[_i6], 0, allFriends);\n size = 100 / (maxIdx + 1);\n styledEvents[_i6].size = size;\n for (var _j6 = 0; _j6 < allFriends.length; ++_j6) allFriends[_j6].size = size;\n }\n for (var _i8 = 0; _i8 < styledEvents.length; ++_i8) {\n var e = styledEvents[_i8];\n e.style.left = e.idx * e.size;\n\n // stretch to maximum\n var _maxIdx = 0;\n for (var _j8 = 0; _j8 < e.friends.length; ++_j8) {\n var idx = e.friends[_j8].idx;\n _maxIdx = _maxIdx > idx ? _maxIdx : idx;\n }\n if (_maxIdx <= e.idx) e.size = 100 - e.idx * e.size;\n\n // padding between events\n // for this feature, `width` is not percentage based unit anymore\n // it will be used with calc()\n var padding = e.idx === 0 ? 0 : 3;\n e.style.width = \"calc(\".concat(e.size, \"% - \").concat(padding, \"px)\");\n e.style.height = \"calc(\".concat(e.style.height, \"% - 2px)\");\n e.style.xOffset = \"calc(\".concat(e.style.left, \"% + \").concat(padding, \"px)\");\n }\n return styledEvents;\n}\n\n/*eslint no-unused-vars: \"off\"*/\nvar DefaultAlgorithms = {\n overlap: getStyledEvents$1,\n 'no-overlap': noOverlap\n};\nfunction isFunction(a) {\n return !!(a && a.constructor && a.call && a.apply);\n}\n\n//\nfunction getStyledEvents(_ref) {\n _ref.events;\n _ref.minimumStartDifference;\n _ref.slotMetrics;\n _ref.accessors;\n var dayLayoutAlgorithm = _ref.dayLayoutAlgorithm;\n var algorithm = dayLayoutAlgorithm;\n if (dayLayoutAlgorithm in DefaultAlgorithms) algorithm = DefaultAlgorithms[dayLayoutAlgorithm];\n if (!isFunction(algorithm)) {\n // invalid algorithm\n return [];\n }\n return algorithm.apply(this, arguments);\n}\n\nvar TimeSlotGroup = /*#__PURE__*/function (_Component) {\n _inherits(TimeSlotGroup, _Component);\n var _super = _createSuper(TimeSlotGroup);\n function TimeSlotGroup() {\n _classCallCheck(this, TimeSlotGroup);\n return _super.apply(this, arguments);\n }\n _createClass(TimeSlotGroup, [{\n key: \"render\",\n value: function render() {\n var _this$props = this.props,\n renderSlot = _this$props.renderSlot,\n resource = _this$props.resource,\n group = _this$props.group,\n getters = _this$props.getters,\n _this$props$component = _this$props.components,\n _this$props$component2 = _this$props$component === void 0 ? {} : _this$props$component,\n _this$props$component3 = _this$props$component2.timeSlotWrapper,\n Wrapper = _this$props$component3 === void 0 ? NoopWrapper : _this$props$component3;\n var groupProps = getters ? getters.slotGroupProp(group) : {};\n return /*#__PURE__*/React.createElement(\"div\", Object.assign({\n className: \"rbc-timeslot-group\"\n }, groupProps), group.map(function (value, idx) {\n var slotProps = getters ? getters.slotProp(value, resource) : {};\n return /*#__PURE__*/React.createElement(Wrapper, {\n key: idx,\n value: value,\n resource: resource\n }, /*#__PURE__*/React.createElement(\"div\", Object.assign({}, slotProps, {\n className: clsx('rbc-time-slot', slotProps.className)\n }), renderSlot && renderSlot(value, idx)));\n }));\n }\n }]);\n return TimeSlotGroup;\n}(Component);\n\nfunction stringifyPercent(v) {\n return typeof v === 'string' ? v : v + '%';\n}\n\n/* eslint-disable react/prop-types */\nfunction TimeGridEvent(props) {\n var style = props.style,\n className = props.className,\n event = props.event,\n accessors = props.accessors,\n rtl = props.rtl,\n selected = props.selected,\n label = props.label,\n continuesPrior = props.continuesPrior,\n continuesAfter = props.continuesAfter,\n getters = props.getters,\n onClick = props.onClick,\n onDoubleClick = props.onDoubleClick,\n isBackgroundEvent = props.isBackgroundEvent,\n onKeyPress = props.onKeyPress,\n _props$components = props.components,\n Event = _props$components.event,\n EventWrapper = _props$components.eventWrapper;\n var title = accessors.title(event);\n var tooltip = accessors.tooltip(event);\n var end = accessors.end(event);\n var start = accessors.start(event);\n var userProps = getters.eventProp(event, start, end, selected);\n var height = style.height,\n top = style.top,\n width = style.width,\n xOffset = style.xOffset;\n var inner = [/*#__PURE__*/React.createElement(\"div\", {\n key: \"1\",\n className: \"rbc-event-label\"\n }, label), /*#__PURE__*/React.createElement(\"div\", {\n key: \"2\",\n className: \"rbc-event-content\"\n }, Event ? /*#__PURE__*/React.createElement(Event, {\n event: event,\n title: title\n }) : title)];\n var eventStyle = isBackgroundEvent ? _objectSpread(_objectSpread({}, userProps.style), {}, _defineProperty({\n top: stringifyPercent(top),\n height: stringifyPercent(height),\n // Adding 10px to take events container right margin into account\n width: \"calc(\".concat(width, \" + 10px)\")\n }, rtl ? 'right' : 'left', stringifyPercent(Math.max(0, xOffset)))) : _objectSpread(_objectSpread({}, userProps.style), {}, _defineProperty({\n top: stringifyPercent(top),\n width: stringifyPercent(width),\n height: stringifyPercent(height)\n }, rtl ? 'right' : 'left', stringifyPercent(xOffset)));\n return /*#__PURE__*/React.createElement(EventWrapper, Object.assign({\n type: \"time\"\n }, props), /*#__PURE__*/React.createElement(\"div\", {\n onClick: onClick,\n onDoubleClick: onDoubleClick,\n style: eventStyle,\n onKeyPress: onKeyPress,\n title: tooltip ? (typeof label === 'string' ? label + ': ' : '') + tooltip : undefined,\n className: clsx(isBackgroundEvent ? 'rbc-background-event' : 'rbc-event', className, userProps.className, {\n 'rbc-selected': selected,\n 'rbc-event-continues-earlier': continuesPrior,\n 'rbc-event-continues-later': continuesAfter\n })\n }, inner));\n}\n\nvar DayColumnWrapper = function DayColumnWrapper(_ref) {\n var children = _ref.children,\n className = _ref.className,\n style = _ref.style,\n innerRef = _ref.innerRef;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: className,\n style: style,\n ref: innerRef\n }, children);\n};\nvar DayColumnWrapper$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(DayColumnWrapper, Object.assign({}, props, {\n innerRef: ref\n }));\n});\n\nvar _excluded$5 = [\"dayProp\"],\n _excluded2$1 = [\"eventContainerWrapper\"];\nvar DayColumn = /*#__PURE__*/function (_React$Component) {\n _inherits(DayColumn, _React$Component);\n var _super = _createSuper(DayColumn);\n function DayColumn() {\n var _this;\n _classCallCheck(this, DayColumn);\n for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {\n _args[_key] = arguments[_key];\n }\n _this = _super.call.apply(_super, [this].concat(_args));\n _this.state = {\n selecting: false,\n timeIndicatorPosition: null\n };\n _this.intervalTriggered = false;\n _this.renderEvents = function (_ref) {\n var events = _ref.events,\n isBackgroundEvent = _ref.isBackgroundEvent;\n var _this$props = _this.props,\n rtl = _this$props.rtl,\n selected = _this$props.selected,\n accessors = _this$props.accessors,\n localizer = _this$props.localizer,\n getters = _this$props.getters,\n components = _this$props.components,\n step = _this$props.step,\n timeslots = _this$props.timeslots,\n dayLayoutAlgorithm = _this$props.dayLayoutAlgorithm,\n resizable = _this$props.resizable;\n var _assertThisInitialize = _assertThisInitialized(_this),\n slotMetrics = _assertThisInitialize.slotMetrics;\n var messages = localizer.messages;\n var styledEvents = getStyledEvents({\n events: events,\n accessors: accessors,\n slotMetrics: slotMetrics,\n minimumStartDifference: Math.ceil(step * timeslots / 2),\n dayLayoutAlgorithm: dayLayoutAlgorithm\n });\n return styledEvents.map(function (_ref2, idx) {\n var event = _ref2.event,\n style = _ref2.style;\n var end = accessors.end(event);\n var start = accessors.start(event);\n var format = 'eventTimeRangeFormat';\n var label;\n var startsBeforeDay = slotMetrics.startsBeforeDay(start);\n var startsAfterDay = slotMetrics.startsAfterDay(end);\n if (startsBeforeDay) format = 'eventTimeRangeEndFormat';else if (startsAfterDay) format = 'eventTimeRangeStartFormat';\n if (startsBeforeDay && startsAfterDay) label = messages.allDay;else label = localizer.format({\n start: start,\n end: end\n }, format);\n var continuesPrior = startsBeforeDay || slotMetrics.startsBefore(start);\n var continuesAfter = startsAfterDay || slotMetrics.startsAfter(end);\n return /*#__PURE__*/React.createElement(TimeGridEvent, {\n style: style,\n event: event,\n label: label,\n key: 'evt_' + idx,\n getters: getters,\n rtl: rtl,\n components: components,\n continuesPrior: continuesPrior,\n continuesAfter: continuesAfter,\n accessors: accessors,\n resource: _this.props.resource,\n selected: isSelected(event, selected),\n onClick: function onClick(e) {\n return _this._select(_objectSpread(_objectSpread({}, event), {}, {\n sourceResource: _this.props.resource\n }), e);\n },\n onDoubleClick: function onDoubleClick(e) {\n return _this._doubleClick(event, e);\n },\n isBackgroundEvent: isBackgroundEvent,\n onKeyPress: function onKeyPress(e) {\n return _this._keyPress(event, e);\n },\n resizable: resizable\n });\n });\n };\n _this._selectable = function () {\n var node = _this.containerRef.current;\n var _this$props2 = _this.props,\n longPressThreshold = _this$props2.longPressThreshold,\n localizer = _this$props2.localizer;\n var selector = _this._selector = new Selection(function () {\n return node;\n }, {\n longPressThreshold: longPressThreshold\n });\n var maybeSelect = function maybeSelect(box) {\n var onSelecting = _this.props.onSelecting;\n var current = _this.state || {};\n var state = selectionState(box);\n var start = state.startDate,\n end = state.endDate;\n if (onSelecting) {\n if (localizer.eq(current.startDate, start, 'minutes') && localizer.eq(current.endDate, end, 'minutes') || onSelecting({\n start: start,\n end: end,\n resourceId: _this.props.resource\n }) === false) return;\n }\n if (_this.state.start !== state.start || _this.state.end !== state.end || _this.state.selecting !== state.selecting) {\n _this.setState(state);\n }\n };\n var selectionState = function selectionState(point) {\n var currentSlot = _this.slotMetrics.closestSlotFromPoint(point, getBoundsForNode(node));\n if (!_this.state.selecting) {\n _this._initialSlot = currentSlot;\n }\n var initialSlot = _this._initialSlot;\n if (localizer.lte(initialSlot, currentSlot)) {\n currentSlot = _this.slotMetrics.nextSlot(currentSlot);\n } else if (localizer.gt(initialSlot, currentSlot)) {\n initialSlot = _this.slotMetrics.nextSlot(initialSlot);\n }\n var selectRange = _this.slotMetrics.getRange(localizer.min(initialSlot, currentSlot), localizer.max(initialSlot, currentSlot));\n return _objectSpread(_objectSpread({}, selectRange), {}, {\n selecting: true,\n top: \"\".concat(selectRange.top, \"%\"),\n height: \"\".concat(selectRange.height, \"%\")\n });\n };\n var selectorClicksHandler = function selectorClicksHandler(box, actionType) {\n if (!isEvent(_this.containerRef.current, box)) {\n var _selectionState = selectionState(box),\n startDate = _selectionState.startDate,\n endDate = _selectionState.endDate;\n _this._selectSlot({\n startDate: startDate,\n endDate: endDate,\n action: actionType,\n box: box\n });\n }\n _this.setState({\n selecting: false\n });\n };\n selector.on('selecting', maybeSelect);\n selector.on('selectStart', maybeSelect);\n selector.on('beforeSelect', function (box) {\n if (_this.props.selectable !== 'ignoreEvents') return;\n return !isEvent(_this.containerRef.current, box);\n });\n selector.on('click', function (box) {\n return selectorClicksHandler(box, 'click');\n });\n selector.on('doubleClick', function (box) {\n return selectorClicksHandler(box, 'doubleClick');\n });\n selector.on('select', function (bounds) {\n if (_this.state.selecting) {\n _this._selectSlot(_objectSpread(_objectSpread({}, _this.state), {}, {\n action: 'select',\n bounds: bounds\n }));\n _this.setState({\n selecting: false\n });\n }\n });\n selector.on('reset', function () {\n if (_this.state.selecting) {\n _this.setState({\n selecting: false\n });\n }\n });\n };\n _this._teardownSelectable = function () {\n if (!_this._selector) return;\n _this._selector.teardown();\n _this._selector = null;\n };\n _this._selectSlot = function (_ref3) {\n var startDate = _ref3.startDate,\n endDate = _ref3.endDate,\n action = _ref3.action,\n bounds = _ref3.bounds,\n box = _ref3.box;\n var current = startDate,\n slots = [];\n while (_this.props.localizer.lte(current, endDate)) {\n slots.push(current);\n current = new Date(+current + _this.props.step * 60 * 1000); // using Date ensures not to create an endless loop the day DST begins\n }\n\n notify(_this.props.onSelectSlot, {\n slots: slots,\n start: startDate,\n end: endDate,\n resourceId: _this.props.resource,\n action: action,\n bounds: bounds,\n box: box\n });\n };\n _this._select = function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n notify(_this.props.onSelectEvent, args);\n };\n _this._doubleClick = function () {\n for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n notify(_this.props.onDoubleClickEvent, args);\n };\n _this._keyPress = function () {\n for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n args[_key4] = arguments[_key4];\n }\n notify(_this.props.onKeyPressEvent, args);\n };\n _this.slotMetrics = getSlotMetrics(_this.props);\n _this.containerRef = /*#__PURE__*/createRef();\n return _this;\n }\n _createClass(DayColumn, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.props.selectable && this._selectable();\n if (this.props.isNow) {\n this.setTimeIndicatorPositionUpdateInterval();\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this._teardownSelectable();\n this.clearTimeIndicatorInterval();\n }\n }, {\n key: \"UNSAFE_componentWillReceiveProps\",\n value: function UNSAFE_componentWillReceiveProps(nextProps) {\n if (nextProps.selectable && !this.props.selectable) this._selectable();\n if (!nextProps.selectable && this.props.selectable) this._teardownSelectable();\n this.slotMetrics = this.slotMetrics.update(nextProps);\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n var _this$props3 = this.props,\n getNow = _this$props3.getNow,\n isNow = _this$props3.isNow,\n localizer = _this$props3.localizer,\n date = _this$props3.date,\n min = _this$props3.min,\n max = _this$props3.max;\n var getNowChanged = localizer.neq(prevProps.getNow(), getNow(), 'minutes');\n if (prevProps.isNow !== isNow || getNowChanged) {\n this.clearTimeIndicatorInterval();\n if (isNow) {\n var tail = !getNowChanged && localizer.eq(prevProps.date, date, 'minutes') && prevState.timeIndicatorPosition === this.state.timeIndicatorPosition;\n this.setTimeIndicatorPositionUpdateInterval(tail);\n }\n } else if (isNow && (localizer.neq(prevProps.min, min, 'minutes') || localizer.neq(prevProps.max, max, 'minutes'))) {\n this.positionTimeIndicator();\n }\n }\n\n /**\n * @param tail {Boolean} - whether `positionTimeIndicator` call should be\n * deferred or called upon setting interval (`true` - if deferred);\n */\n }, {\n key: \"setTimeIndicatorPositionUpdateInterval\",\n value: function setTimeIndicatorPositionUpdateInterval() {\n var _this2 = this;\n var tail = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n if (!this.intervalTriggered && !tail) {\n this.positionTimeIndicator();\n }\n this._timeIndicatorTimeout = window.setTimeout(function () {\n _this2.intervalTriggered = true;\n _this2.positionTimeIndicator();\n _this2.setTimeIndicatorPositionUpdateInterval();\n }, 60000);\n }\n }, {\n key: \"clearTimeIndicatorInterval\",\n value: function clearTimeIndicatorInterval() {\n this.intervalTriggered = false;\n window.clearTimeout(this._timeIndicatorTimeout);\n }\n }, {\n key: \"positionTimeIndicator\",\n value: function positionTimeIndicator() {\n var _this$props4 = this.props,\n min = _this$props4.min,\n max = _this$props4.max,\n getNow = _this$props4.getNow;\n var current = getNow();\n if (current >= min && current <= max) {\n var top = this.slotMetrics.getCurrentTimePosition(current);\n this.intervalTriggered = true;\n this.setState({\n timeIndicatorPosition: top\n });\n } else {\n this.clearTimeIndicatorInterval();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$props5 = this.props,\n date = _this$props5.date,\n max = _this$props5.max,\n rtl = _this$props5.rtl,\n isNow = _this$props5.isNow,\n resource = _this$props5.resource,\n accessors = _this$props5.accessors,\n localizer = _this$props5.localizer,\n _this$props5$getters = _this$props5.getters,\n dayProp = _this$props5$getters.dayProp,\n getters = _objectWithoutProperties(_this$props5$getters, _excluded$5),\n _this$props5$componen = _this$props5.components,\n EventContainer = _this$props5$componen.eventContainerWrapper,\n components = _objectWithoutProperties(_this$props5$componen, _excluded2$1);\n var slotMetrics = this.slotMetrics;\n var _this$state = this.state,\n selecting = _this$state.selecting,\n top = _this$state.top,\n height = _this$state.height,\n startDate = _this$state.startDate,\n endDate = _this$state.endDate;\n var selectDates = {\n start: startDate,\n end: endDate\n };\n var _dayProp = dayProp(max),\n className = _dayProp.className,\n style = _dayProp.style;\n var DayColumnWrapperComponent = components.dayColumnWrapper || DayColumnWrapper$1;\n return /*#__PURE__*/React.createElement(DayColumnWrapperComponent, {\n ref: this.containerRef,\n date: date,\n style: style,\n className: clsx(className, 'rbc-day-slot', 'rbc-time-column', isNow && 'rbc-now', isNow && 'rbc-today',\n // WHY\n selecting && 'rbc-slot-selecting'),\n slotMetrics: slotMetrics\n }, slotMetrics.groups.map(function (grp, idx) {\n return /*#__PURE__*/React.createElement(TimeSlotGroup, {\n key: idx,\n group: grp,\n resource: resource,\n getters: getters,\n components: components\n });\n }), /*#__PURE__*/React.createElement(EventContainer, {\n localizer: localizer,\n resource: resource,\n accessors: accessors,\n getters: getters,\n components: components,\n slotMetrics: slotMetrics\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: clsx('rbc-events-container', rtl && 'rtl')\n }, this.renderEvents({\n events: this.props.backgroundEvents,\n isBackgroundEvent: true\n }), this.renderEvents({\n events: this.props.events\n }))), selecting && /*#__PURE__*/React.createElement(\"div\", {\n className: \"rbc-slot-selection\",\n style: {\n top: top,\n height: height\n }\n }, /*#__PURE__*/React.createElement(\"span\", null, localizer.format(selectDates, 'selectRangeFormat'))), isNow && this.intervalTriggered && /*#__PURE__*/React.createElement(\"div\", {\n className: \"rbc-current-time-indicator\",\n style: {\n top: \"\".concat(this.state.timeIndicatorPosition, \"%\")\n }\n }));\n }\n }]);\n return DayColumn;\n}(React.Component);\nDayColumn.defaultProps = {\n dragThroughEvents: true,\n timeslots: 2\n};\n\n/**\n * Since the TimeGutter only displays the 'times' of slots in a day, and is separate\n * from the Day Columns themselves, we check to see if the range contains an offset difference\n * and, if so, change the beginning and end 'date' by a day to properly display the slots times\n * used.\n */\nfunction adjustForDST(_ref) {\n var min = _ref.min,\n max = _ref.max,\n localizer = _ref.localizer;\n if (localizer.getTimezoneOffset(min) !== localizer.getTimezoneOffset(max)) {\n return {\n start: localizer.add(min, -1, 'day'),\n end: localizer.add(max, -1, 'day')\n };\n }\n return {\n start: min,\n end: max\n };\n}\nvar TimeGutter = function TimeGutter(_ref2) {\n var min = _ref2.min,\n max = _ref2.max,\n timeslots = _ref2.timeslots,\n step = _ref2.step,\n localizer = _ref2.localizer,\n getNow = _ref2.getNow,\n resource = _ref2.resource,\n components = _ref2.components,\n getters = _ref2.getters,\n gutterRef = _ref2.gutterRef;\n var TimeGutterWrapper = components.timeGutterWrapper;\n var _useMemo = useMemo(function () {\n return adjustForDST({\n min: min,\n max: max,\n localizer: localizer\n });\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [min === null || min === void 0 ? void 0 : min.toISOString(), max === null || max === void 0 ? void 0 : max.toISOString(), localizer]),\n start = _useMemo.start,\n end = _useMemo.end;\n var _useState = useState(getSlotMetrics({\n min: start,\n max: end,\n timeslots: timeslots,\n step: step,\n localizer: localizer\n })),\n _useState2 = _slicedToArray(_useState, 2),\n slotMetrics = _useState2[0],\n setSlotMetrics = _useState2[1];\n useEffect(function () {\n if (slotMetrics) {\n setSlotMetrics(slotMetrics.update({\n min: start,\n max: end,\n timeslots: timeslots,\n step: step,\n localizer: localizer\n }));\n }\n /**\n * We don't want this to fire when slotMetrics is updated as it would recursively bomb\n */\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [start === null || start === void 0 ? void 0 : start.toISOString(), end === null || end === void 0 ? void 0 : end.toISOString(), timeslots, step]);\n var renderSlot = useCallback(function (value, idx) {\n if (idx) return null; // don't return the first (0) idx\n\n var isNow = slotMetrics.dateIsInGroup(getNow(), idx);\n return /*#__PURE__*/React.createElement(\"span\", {\n className: clsx('rbc-label', isNow && 'rbc-now')\n }, localizer.format(value, 'timeGutterFormat'));\n }, [slotMetrics, localizer, getNow]);\n return /*#__PURE__*/React.createElement(TimeGutterWrapper, {\n slotMetrics: slotMetrics\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"rbc-time-gutter rbc-time-column\",\n ref: gutterRef\n }, slotMetrics.groups.map(function (grp, idx) {\n return /*#__PURE__*/React.createElement(TimeSlotGroup, {\n key: idx,\n group: grp,\n resource: resource,\n components: components,\n renderSlot: renderSlot,\n getters: getters\n });\n })));\n};\nvar TimeGutter$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(TimeGutter, Object.assign({\n gutterRef: ref\n }, props));\n});\n\nvar ResourceHeader = function ResourceHeader(_ref) {\n var label = _ref.label;\n return /*#__PURE__*/React.createElement(React.Fragment, null, label);\n};\n\nvar TimeGridHeader = /*#__PURE__*/function (_React$Component) {\n _inherits(TimeGridHeader, _React$Component);\n var _super = _createSuper(TimeGridHeader);\n function TimeGridHeader() {\n var _this;\n _classCallCheck(this, TimeGridHeader);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _super.call.apply(_super, [this].concat(args));\n _this.handleHeaderClick = function (date, view, e) {\n e.preventDefault();\n notify(_this.props.onDrillDown, [date, view]);\n };\n _this.renderRow = function (resource) {\n var _this$props = _this.props,\n events = _this$props.events,\n rtl = _this$props.rtl,\n selectable = _this$props.selectable,\n getNow = _this$props.getNow,\n range = _this$props.range,\n getters = _this$props.getters,\n localizer = _this$props.localizer,\n accessors = _this$props.accessors,\n components = _this$props.components,\n resizable = _this$props.resizable;\n var resourceId = accessors.resourceId(resource);\n var eventsToDisplay = resource ? events.filter(function (event) {\n return accessors.resource(event) === resourceId;\n }) : events;\n return /*#__PURE__*/React.createElement(DateContentRow, {\n isAllDay: true,\n rtl: rtl,\n getNow: getNow,\n minRows: 2\n // Add +1 to include showMore button row in the row limit\n ,\n maxRows: _this.props.allDayMaxRows + 1,\n range: range,\n events: eventsToDisplay,\n resourceId: resourceId,\n className: \"rbc-allday-cell\",\n selectable: selectable,\n selected: _this.props.selected,\n components: components,\n accessors: accessors,\n getters: getters,\n localizer: localizer,\n onSelect: _this.props.onSelectEvent,\n onShowMore: _this.props.onShowMore,\n onDoubleClick: _this.props.onDoubleClickEvent,\n onKeyPress: _this.props.onKeyPressEvent,\n onSelectSlot: _this.props.onSelectSlot,\n longPressThreshold: _this.props.longPressThreshold,\n resizable: resizable\n });\n };\n return _this;\n }\n _createClass(TimeGridHeader, [{\n key: \"renderHeaderCells\",\n value: function renderHeaderCells(range) {\n var _this2 = this;\n var _this$props2 = this.props,\n localizer = _this$props2.localizer,\n getDrilldownView = _this$props2.getDrilldownView,\n getNow = _this$props2.getNow,\n dayProp = _this$props2.getters.dayProp,\n _this$props2$componen = _this$props2.components.header,\n HeaderComponent = _this$props2$componen === void 0 ? Header : _this$props2$componen;\n var today = getNow();\n return range.map(function (date, i) {\n var drilldownView = getDrilldownView(date);\n var label = localizer.format(date, 'dayFormat');\n var _dayProp = dayProp(date),\n className = _dayProp.className,\n style = _dayProp.style;\n var header = /*#__PURE__*/React.createElement(HeaderComponent, {\n date: date,\n label: label,\n localizer: localizer\n });\n return /*#__PURE__*/React.createElement(\"div\", {\n key: i,\n style: style,\n className: clsx('rbc-header', className, localizer.isSameDate(date, today) && 'rbc-today')\n }, drilldownView ? /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: \"rbc-button-link\",\n onClick: function onClick(e) {\n return _this2.handleHeaderClick(date, drilldownView, e);\n }\n }, header) : /*#__PURE__*/React.createElement(\"span\", null, header));\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this3 = this;\n var _this$props3 = this.props,\n width = _this$props3.width,\n rtl = _this$props3.rtl,\n resources = _this$props3.resources,\n range = _this$props3.range,\n events = _this$props3.events,\n getNow = _this$props3.getNow,\n accessors = _this$props3.accessors,\n selectable = _this$props3.selectable,\n components = _this$props3.components,\n getters = _this$props3.getters,\n scrollRef = _this$props3.scrollRef,\n localizer = _this$props3.localizer,\n isOverflowing = _this$props3.isOverflowing,\n _this$props3$componen = _this$props3.components,\n TimeGutterHeader = _this$props3$componen.timeGutterHeader,\n _this$props3$componen2 = _this$props3$componen.resourceHeader,\n ResourceHeaderComponent = _this$props3$componen2 === void 0 ? ResourceHeader : _this$props3$componen2,\n resizable = _this$props3.resizable;\n var style = {};\n if (isOverflowing) {\n style[rtl ? 'marginLeft' : 'marginRight'] = \"\".concat(scrollbarSize() - 1, \"px\");\n }\n var groupedEvents = resources.groupEvents(events);\n return /*#__PURE__*/React.createElement(\"div\", {\n style: style,\n ref: scrollRef,\n className: clsx('rbc-time-header', isOverflowing && 'rbc-overflowing')\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"rbc-label rbc-time-header-gutter\",\n style: {\n width: width,\n minWidth: width,\n maxWidth: width\n }\n }, TimeGutterHeader && /*#__PURE__*/React.createElement(TimeGutterHeader, null)), resources.map(function (_ref, idx) {\n var _ref2 = _slicedToArray(_ref, 2),\n id = _ref2[0],\n resource = _ref2[1];\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"rbc-time-header-content\",\n key: id || idx\n }, resource && /*#__PURE__*/React.createElement(\"div\", {\n className: \"rbc-row rbc-row-resource\",\n key: \"resource_\".concat(idx)\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"rbc-header\"\n }, /*#__PURE__*/React.createElement(ResourceHeaderComponent, {\n index: idx,\n label: accessors.resourceTitle(resource),\n resource: resource\n }))), /*#__PURE__*/React.createElement(\"div\", {\n className: \"rbc-row rbc-time-header-cell\".concat(range.length <= 1 ? ' rbc-time-header-cell-single-day' : '')\n }, _this3.renderHeaderCells(range)), /*#__PURE__*/React.createElement(DateContentRow, {\n isAllDay: true,\n rtl: rtl,\n getNow: getNow,\n minRows: 2\n // Add +1 to include showMore button row in the row limit\n ,\n maxRows: _this3.props.allDayMaxRows + 1,\n range: range,\n events: groupedEvents.get(id) || [],\n resourceId: resource && id,\n className: \"rbc-allday-cell\",\n selectable: selectable,\n selected: _this3.props.selected,\n components: components,\n accessors: accessors,\n getters: getters,\n localizer: localizer,\n onSelect: _this3.props.onSelectEvent,\n onShowMore: _this3.props.onShowMore,\n onDoubleClick: _this3.props.onDoubleClickEvent,\n onKeyPress: _this3.props.onKeyPressEvent,\n onSelectSlot: _this3.props.onSelectSlot,\n longPressThreshold: _this3.props.longPressThreshold,\n resizable: resizable\n }));\n }));\n }\n }]);\n return TimeGridHeader;\n}(React.Component);\n\nvar NONE = {};\nfunction Resources(resources, accessors) {\n return {\n map: function map(fn) {\n if (!resources) return [fn([NONE, null], 0)];\n return resources.map(function (resource, idx) {\n return fn([accessors.resourceId(resource), resource], idx);\n });\n },\n groupEvents: function groupEvents(events) {\n var eventsByResource = new Map();\n if (!resources) {\n // Return all events if resources are not provided\n eventsByResource.set(NONE, events);\n return eventsByResource;\n }\n events.forEach(function (event) {\n var id = accessors.resource(event) || NONE;\n if (Array.isArray(id)) {\n id.forEach(function (item) {\n var resourceEvents = eventsByResource.get(item) || [];\n resourceEvents.push(event);\n eventsByResource.set(item, resourceEvents);\n });\n } else {\n var resourceEvents = eventsByResource.get(id) || [];\n resourceEvents.push(event);\n eventsByResource.set(id, resourceEvents);\n }\n });\n return eventsByResource;\n }\n };\n}\n\nvar TimeGrid = /*#__PURE__*/function (_Component) {\n _inherits(TimeGrid, _Component);\n var _super = _createSuper(TimeGrid);\n function TimeGrid(props) {\n var _this;\n _classCallCheck(this, TimeGrid);\n _this = _super.call(this, props);\n _this.handleScroll = function (e) {\n if (_this.scrollRef.current) {\n _this.scrollRef.current.scrollLeft = e.target.scrollLeft;\n }\n };\n _this.handleResize = function () {\n animationFrame.cancel(_this.rafHandle);\n _this.rafHandle = animationFrame.request(_this.checkOverflow);\n };\n _this.handleKeyPressEvent = function () {\n _this.clearSelection();\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n notify(_this.props.onKeyPressEvent, args);\n };\n _this.handleSelectEvent = function () {\n //cancel any pending selections so only the event click goes through.\n _this.clearSelection();\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n notify(_this.props.onSelectEvent, args);\n };\n _this.handleDoubleClickEvent = function () {\n _this.clearSelection();\n for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n notify(_this.props.onDoubleClickEvent, args);\n };\n _this.handleShowMore = function (events, date, cell, slot, target) {\n var _this$props = _this.props,\n popup = _this$props.popup,\n onDrillDown = _this$props.onDrillDown,\n onShowMore = _this$props.onShowMore,\n getDrilldownView = _this$props.getDrilldownView,\n doShowMoreDrillDown = _this$props.doShowMoreDrillDown;\n _this.clearSelection();\n if (popup) {\n var position = getPosition$1(cell, _this.containerRef.current);\n _this.setState({\n overlay: {\n date: date,\n events: events,\n position: _objectSpread(_objectSpread({}, position), {}, {\n width: '200px'\n }),\n target: target\n }\n });\n } else if (doShowMoreDrillDown) {\n notify(onDrillDown, [date, getDrilldownView(date) || views.DAY]);\n }\n notify(onShowMore, [events, date, slot]);\n };\n _this.handleSelectAllDaySlot = function (slots, slotInfo) {\n var onSelectSlot = _this.props.onSelectSlot;\n var start = new Date(slots[0]);\n var end = new Date(slots[slots.length - 1]);\n end.setDate(slots[slots.length - 1].getDate() + 1);\n notify(onSelectSlot, {\n slots: slots,\n start: start,\n end: end,\n action: slotInfo.action,\n resourceId: slotInfo.resourceId\n });\n };\n _this.overlayDisplay = function () {\n _this.setState({\n overlay: null\n });\n };\n _this.checkOverflow = function () {\n if (_this._updatingOverflow) return;\n var content = _this.contentRef.current;\n var isOverflowing = content.scrollHeight > content.clientHeight;\n if (_this.state.isOverflowing !== isOverflowing) {\n _this._updatingOverflow = true;\n _this.setState({\n isOverflowing: isOverflowing\n }, function () {\n _this._updatingOverflow = false;\n });\n }\n };\n _this.memoizedResources = memoize(function (resources, accessors) {\n return Resources(resources, accessors);\n });\n _this.state = {\n gutterWidth: undefined,\n isOverflowing: null\n };\n _this.scrollRef = /*#__PURE__*/React.createRef();\n _this.contentRef = /*#__PURE__*/React.createRef();\n _this.containerRef = /*#__PURE__*/React.createRef();\n _this._scrollRatio = null;\n _this.gutterRef = /*#__PURE__*/createRef();\n return _this;\n }\n _createClass(TimeGrid, [{\n key: \"getSnapshotBeforeUpdate\",\n value: function getSnapshotBeforeUpdate() {\n this.checkOverflow();\n return null;\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.props.width == null) {\n this.measureGutter();\n }\n this.calculateScroll();\n this.applyScroll();\n window.addEventListener('resize', this.handleResize);\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n window.removeEventListener('resize', this.handleResize);\n animationFrame.cancel(this.rafHandle);\n if (this.measureGutterAnimationFrameRequest) {\n window.cancelAnimationFrame(this.measureGutterAnimationFrameRequest);\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate() {\n this.applyScroll();\n }\n }, {\n key: \"renderEvents\",\n value: function renderEvents(range, events, backgroundEvents, now) {\n var _this2 = this;\n var _this$props2 = this.props,\n min = _this$props2.min,\n max = _this$props2.max,\n components = _this$props2.components,\n accessors = _this$props2.accessors,\n localizer = _this$props2.localizer,\n dayLayoutAlgorithm = _this$props2.dayLayoutAlgorithm;\n var resources = this.memoizedResources(this.props.resources, accessors);\n var groupedEvents = resources.groupEvents(events);\n var groupedBackgroundEvents = resources.groupEvents(backgroundEvents);\n return resources.map(function (_ref, i) {\n var _ref2 = _slicedToArray(_ref, 2),\n id = _ref2[0],\n resource = _ref2[1];\n return range.map(function (date, jj) {\n var daysEvents = (groupedEvents.get(id) || []).filter(function (event) {\n return localizer.inRange(date, accessors.start(event), accessors.end(event), 'day');\n });\n var daysBackgroundEvents = (groupedBackgroundEvents.get(id) || []).filter(function (event) {\n return localizer.inRange(date, accessors.start(event), accessors.end(event), 'day');\n });\n return /*#__PURE__*/React.createElement(DayColumn, Object.assign({}, _this2.props, {\n localizer: localizer,\n min: localizer.merge(date, min),\n max: localizer.merge(date, max),\n resource: resource && id,\n components: components,\n isNow: localizer.isSameDate(date, now),\n key: i + '-' + jj,\n date: date,\n events: daysEvents,\n backgroundEvents: daysBackgroundEvents,\n dayLayoutAlgorithm: dayLayoutAlgorithm\n }));\n });\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$props$allDayMax;\n var _this$props3 = this.props,\n events = _this$props3.events,\n backgroundEvents = _this$props3.backgroundEvents,\n range = _this$props3.range,\n width = _this$props3.width,\n rtl = _this$props3.rtl,\n selected = _this$props3.selected,\n getNow = _this$props3.getNow,\n resources = _this$props3.resources,\n components = _this$props3.components,\n accessors = _this$props3.accessors,\n getters = _this$props3.getters,\n localizer = _this$props3.localizer,\n min = _this$props3.min,\n max = _this$props3.max,\n showMultiDayTimes = _this$props3.showMultiDayTimes,\n longPressThreshold = _this$props3.longPressThreshold,\n resizable = _this$props3.resizable;\n width = width || this.state.gutterWidth;\n var start = range[0],\n end = range[range.length - 1];\n this.slots = range.length;\n var allDayEvents = [],\n rangeEvents = [],\n rangeBackgroundEvents = [];\n events.forEach(function (event) {\n if (inRange(event, start, end, accessors, localizer)) {\n var eStart = accessors.start(event),\n eEnd = accessors.end(event);\n if (accessors.allDay(event) || localizer.startAndEndAreDateOnly(eStart, eEnd) || !showMultiDayTimes && !localizer.isSameDate(eStart, eEnd)) {\n allDayEvents.push(event);\n } else {\n rangeEvents.push(event);\n }\n }\n });\n backgroundEvents.forEach(function (event) {\n if (inRange(event, start, end, accessors, localizer)) {\n rangeBackgroundEvents.push(event);\n }\n });\n allDayEvents.sort(function (a, b) {\n return sortEvents(a, b, accessors, localizer);\n });\n return /*#__PURE__*/React.createElement(\"div\", {\n className: clsx('rbc-time-view', resources && 'rbc-time-view-resources'),\n ref: this.containerRef\n }, /*#__PURE__*/React.createElement(TimeGridHeader, {\n range: range,\n events: allDayEvents,\n width: width,\n rtl: rtl,\n getNow: getNow,\n localizer: localizer,\n selected: selected,\n allDayMaxRows: this.props.showAllEvents ? Infinity : (_this$props$allDayMax = this.props.allDayMaxRows) !== null && _this$props$allDayMax !== void 0 ? _this$props$allDayMax : Infinity,\n resources: this.memoizedResources(resources, accessors),\n selectable: this.props.selectable,\n accessors: accessors,\n getters: getters,\n components: components,\n scrollRef: this.scrollRef,\n isOverflowing: this.state.isOverflowing,\n longPressThreshold: longPressThreshold,\n onSelectSlot: this.handleSelectAllDaySlot,\n onSelectEvent: this.handleSelectEvent,\n onShowMore: this.handleShowMore,\n onDoubleClickEvent: this.props.onDoubleClickEvent,\n onKeyPressEvent: this.props.onKeyPressEvent,\n onDrillDown: this.props.onDrillDown,\n getDrilldownView: this.props.getDrilldownView,\n resizable: resizable\n }), this.props.popup && this.renderOverlay(), /*#__PURE__*/React.createElement(\"div\", {\n ref: this.contentRef,\n className: \"rbc-time-content\",\n onScroll: this.handleScroll\n }, /*#__PURE__*/React.createElement(TimeGutter$1, {\n date: start,\n ref: this.gutterRef,\n localizer: localizer,\n min: localizer.merge(start, min),\n max: localizer.merge(start, max),\n step: this.props.step,\n getNow: this.props.getNow,\n timeslots: this.props.timeslots,\n components: components,\n className: \"rbc-time-gutter\",\n getters: getters\n }), this.renderEvents(range, rangeEvents, rangeBackgroundEvents, getNow())));\n }\n }, {\n key: \"renderOverlay\",\n value: function renderOverlay() {\n var _this$state$overlay,\n _this$state,\n _this3 = this;\n var overlay = (_this$state$overlay = (_this$state = this.state) === null || _this$state === void 0 ? void 0 : _this$state.overlay) !== null && _this$state$overlay !== void 0 ? _this$state$overlay : {};\n var _this$props4 = this.props,\n accessors = _this$props4.accessors,\n localizer = _this$props4.localizer,\n components = _this$props4.components,\n getters = _this$props4.getters,\n selected = _this$props4.selected,\n popupOffset = _this$props4.popupOffset,\n handleDragStart = _this$props4.handleDragStart;\n var onHide = function onHide() {\n return _this3.setState({\n overlay: null\n });\n };\n return /*#__PURE__*/React.createElement(PopOverlay, {\n overlay: overlay,\n accessors: accessors,\n localizer: localizer,\n components: components,\n getters: getters,\n selected: selected,\n popupOffset: popupOffset,\n ref: this.containerRef,\n handleKeyPressEvent: this.handleKeyPressEvent,\n handleSelectEvent: this.handleSelectEvent,\n handleDoubleClickEvent: this.handleDoubleClickEvent,\n handleDragStart: handleDragStart,\n show: !!overlay.position,\n overlayDisplay: this.overlayDisplay,\n onHide: onHide\n });\n }\n }, {\n key: \"clearSelection\",\n value: function clearSelection() {\n clearTimeout(this._selectTimer);\n this._pendingSelection = [];\n }\n }, {\n key: \"measureGutter\",\n value: function measureGutter() {\n var _this4 = this;\n if (this.measureGutterAnimationFrameRequest) {\n window.cancelAnimationFrame(this.measureGutterAnimationFrameRequest);\n }\n this.measureGutterAnimationFrameRequest = window.requestAnimationFrame(function () {\n var _this4$gutterRef;\n var width = (_this4$gutterRef = _this4.gutterRef) !== null && _this4$gutterRef !== void 0 && _this4$gutterRef.current ? getWidth(_this4.gutterRef.current) : undefined;\n if (width && _this4.state.gutterWidth !== width) {\n _this4.setState({\n gutterWidth: width\n });\n }\n });\n }\n }, {\n key: \"applyScroll\",\n value: function applyScroll() {\n // If auto-scroll is disabled, we don't actually apply the scroll\n if (this._scrollRatio != null && this.props.enableAutoScroll === true) {\n var content = this.contentRef.current;\n content.scrollTop = content.scrollHeight * this._scrollRatio;\n // Only do this once\n this._scrollRatio = null;\n }\n }\n }, {\n key: \"calculateScroll\",\n value: function calculateScroll() {\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.props;\n var min = props.min,\n max = props.max,\n scrollToTime = props.scrollToTime,\n localizer = props.localizer;\n var diffMillis = localizer.diff(localizer.merge(scrollToTime, min), scrollToTime, 'milliseconds');\n var totalMillis = localizer.diff(min, max, 'milliseconds');\n this._scrollRatio = diffMillis / totalMillis;\n }\n }]);\n return TimeGrid;\n}(Component);\nTimeGrid.defaultProps = {\n step: 30,\n timeslots: 2\n};\n\nvar _excluded$4 = [\"date\", \"localizer\", \"min\", \"max\", \"scrollToTime\", \"enableAutoScroll\"];\nvar Day = /*#__PURE__*/function (_React$Component) {\n _inherits(Day, _React$Component);\n var _super = _createSuper(Day);\n function Day() {\n _classCallCheck(this, Day);\n return _super.apply(this, arguments);\n }\n _createClass(Day, [{\n key: \"render\",\n value: function render() {\n /**\n * This allows us to default min, max, and scrollToTime\n * using our localizer. This is necessary until such time\n * as TODO: TimeGrid is converted to a functional component.\n */\n var _this$props = this.props,\n date = _this$props.date,\n localizer = _this$props.localizer,\n _this$props$min = _this$props.min,\n min = _this$props$min === void 0 ? localizer.startOf(new Date(), 'day') : _this$props$min,\n _this$props$max = _this$props.max,\n max = _this$props$max === void 0 ? localizer.endOf(new Date(), 'day') : _this$props$max,\n _this$props$scrollToT = _this$props.scrollToTime,\n scrollToTime = _this$props$scrollToT === void 0 ? localizer.startOf(new Date(), 'day') : _this$props$scrollToT,\n _this$props$enableAut = _this$props.enableAutoScroll,\n enableAutoScroll = _this$props$enableAut === void 0 ? true : _this$props$enableAut,\n props = _objectWithoutProperties(_this$props, _excluded$4);\n var range = Day.range(date, {\n localizer: localizer\n });\n return /*#__PURE__*/React.createElement(TimeGrid, Object.assign({}, props, {\n range: range,\n eventOffset: 10,\n localizer: localizer,\n min: min,\n max: max,\n scrollToTime: scrollToTime,\n enableAutoScroll: enableAutoScroll\n }));\n }\n }]);\n return Day;\n}(React.Component);\nDay.range = function (date, _ref) {\n var localizer = _ref.localizer;\n return [localizer.startOf(date, 'day')];\n};\nDay.navigate = function (date, action, _ref2) {\n var localizer = _ref2.localizer;\n switch (action) {\n case navigate.PREVIOUS:\n return localizer.add(date, -1, 'day');\n case navigate.NEXT:\n return localizer.add(date, 1, 'day');\n default:\n return date;\n }\n};\nDay.title = function (date, _ref3) {\n var localizer = _ref3.localizer;\n return localizer.format(date, 'dayHeaderFormat');\n};\n\nvar _excluded$3 = [\"date\", \"localizer\", \"min\", \"max\", \"scrollToTime\", \"enableAutoScroll\"];\nvar Week = /*#__PURE__*/function (_React$Component) {\n _inherits(Week, _React$Component);\n var _super = _createSuper(Week);\n function Week() {\n _classCallCheck(this, Week);\n return _super.apply(this, arguments);\n }\n _createClass(Week, [{\n key: \"render\",\n value: function render() {\n /**\n * This allows us to default min, max, and scrollToTime\n * using our localizer. This is necessary until such time\n * as TimeGrid is converted to a functional component.\n */\n var _this$props = this.props,\n date = _this$props.date,\n localizer = _this$props.localizer,\n _this$props$min = _this$props.min,\n min = _this$props$min === void 0 ? localizer.startOf(new Date(), 'day') : _this$props$min,\n _this$props$max = _this$props.max,\n max = _this$props$max === void 0 ? localizer.endOf(new Date(), 'day') : _this$props$max,\n _this$props$scrollToT = _this$props.scrollToTime,\n scrollToTime = _this$props$scrollToT === void 0 ? localizer.startOf(new Date(), 'day') : _this$props$scrollToT,\n _this$props$enableAut = _this$props.enableAutoScroll,\n enableAutoScroll = _this$props$enableAut === void 0 ? true : _this$props$enableAut,\n props = _objectWithoutProperties(_this$props, _excluded$3);\n var range = Week.range(date, this.props);\n return /*#__PURE__*/React.createElement(TimeGrid, Object.assign({}, props, {\n range: range,\n eventOffset: 15,\n localizer: localizer,\n min: min,\n max: max,\n scrollToTime: scrollToTime,\n enableAutoScroll: enableAutoScroll\n }));\n }\n }]);\n return Week;\n}(React.Component);\nWeek.defaultProps = TimeGrid.defaultProps;\nWeek.navigate = function (date, action, _ref) {\n var localizer = _ref.localizer;\n switch (action) {\n case navigate.PREVIOUS:\n return localizer.add(date, -1, 'week');\n case navigate.NEXT:\n return localizer.add(date, 1, 'week');\n default:\n return date;\n }\n};\nWeek.range = function (date, _ref2) {\n var localizer = _ref2.localizer;\n var firstOfWeek = localizer.startOfWeek();\n var start = localizer.startOf(date, 'week', firstOfWeek);\n var end = localizer.endOf(date, 'week', firstOfWeek);\n return localizer.range(start, end);\n};\nWeek.title = function (date, _ref3) {\n var localizer = _ref3.localizer;\n var _Week$range = Week.range(date, {\n localizer: localizer\n }),\n _Week$range2 = _toArray(_Week$range),\n start = _Week$range2[0],\n rest = _Week$range2.slice(1);\n return localizer.format({\n start: start,\n end: rest.pop()\n }, 'dayRangeHeaderFormat');\n};\n\nvar _excluded$2 = [\"date\", \"localizer\", \"min\", \"max\", \"scrollToTime\", \"enableAutoScroll\"];\nfunction workWeekRange(date, options) {\n return Week.range(date, options).filter(function (d) {\n return [6, 0].indexOf(d.getDay()) === -1;\n });\n}\nvar WorkWeek = /*#__PURE__*/function (_React$Component) {\n _inherits(WorkWeek, _React$Component);\n var _super = _createSuper(WorkWeek);\n function WorkWeek() {\n _classCallCheck(this, WorkWeek);\n return _super.apply(this, arguments);\n }\n _createClass(WorkWeek, [{\n key: \"render\",\n value: function render() {\n /**\n * This allows us to default min, max, and scrollToTime\n * using our localizer. This is necessary until such time\n * as TimeGrid is converted to a functional component.\n */\n var _this$props = this.props,\n date = _this$props.date,\n localizer = _this$props.localizer,\n _this$props$min = _this$props.min,\n min = _this$props$min === void 0 ? localizer.startOf(new Date(), 'day') : _this$props$min,\n _this$props$max = _this$props.max,\n max = _this$props$max === void 0 ? localizer.endOf(new Date(), 'day') : _this$props$max,\n _this$props$scrollToT = _this$props.scrollToTime,\n scrollToTime = _this$props$scrollToT === void 0 ? localizer.startOf(new Date(), 'day') : _this$props$scrollToT,\n _this$props$enableAut = _this$props.enableAutoScroll,\n enableAutoScroll = _this$props$enableAut === void 0 ? true : _this$props$enableAut,\n props = _objectWithoutProperties(_this$props, _excluded$2);\n var range = workWeekRange(date, this.props);\n return /*#__PURE__*/React.createElement(TimeGrid, Object.assign({}, props, {\n range: range,\n eventOffset: 15,\n localizer: localizer,\n min: min,\n max: max,\n scrollToTime: scrollToTime,\n enableAutoScroll: enableAutoScroll\n }));\n }\n }]);\n return WorkWeek;\n}(React.Component);\nWorkWeek.defaultProps = TimeGrid.defaultProps;\nWorkWeek.range = workWeekRange;\nWorkWeek.navigate = Week.navigate;\nWorkWeek.title = function (date, _ref) {\n var localizer = _ref.localizer;\n var _workWeekRange = workWeekRange(date, {\n localizer: localizer\n }),\n _workWeekRange2 = _toArray(_workWeekRange),\n start = _workWeekRange2[0],\n rest = _workWeekRange2.slice(1);\n return localizer.format({\n start: start,\n end: rest.pop()\n }, 'dayRangeHeaderFormat');\n};\n\nfunction Agenda(_ref) {\n var accessors = _ref.accessors,\n components = _ref.components,\n date = _ref.date,\n events = _ref.events,\n getters = _ref.getters,\n length = _ref.length,\n localizer = _ref.localizer,\n onDoubleClickEvent = _ref.onDoubleClickEvent,\n onSelectEvent = _ref.onSelectEvent,\n selected = _ref.selected;\n var headerRef = useRef(null);\n var dateColRef = useRef(null);\n var timeColRef = useRef(null);\n var contentRef = useRef(null);\n var tbodyRef = useRef(null);\n useEffect(function () {\n _adjustHeader();\n });\n var renderDay = function renderDay(day, events, dayKey) {\n var Event = components.event,\n AgendaDate = components.date;\n events = events.filter(function (e) {\n return inRange(e, localizer.startOf(day, 'day'), localizer.endOf(day, 'day'), accessors, localizer);\n });\n return events.map(function (event, idx) {\n var title = accessors.title(event);\n var end = accessors.end(event);\n var start = accessors.start(event);\n var userProps = getters.eventProp(event, start, end, isSelected(event, selected));\n var dateLabel = idx === 0 && localizer.format(day, 'agendaDateFormat');\n var first = idx === 0 ? /*#__PURE__*/React.createElement(\"td\", {\n rowSpan: events.length,\n className: \"rbc-agenda-date-cell\"\n }, AgendaDate ? /*#__PURE__*/React.createElement(AgendaDate, {\n day: day,\n label: dateLabel\n }) : dateLabel) : false;\n return /*#__PURE__*/React.createElement(\"tr\", {\n key: dayKey + '_' + idx,\n className: userProps.className,\n style: userProps.style\n }, first, /*#__PURE__*/React.createElement(\"td\", {\n className: \"rbc-agenda-time-cell\"\n }, timeRangeLabel(day, event)), /*#__PURE__*/React.createElement(\"td\", {\n className: \"rbc-agenda-event-cell\",\n onClick: function onClick(e) {\n return onSelectEvent && onSelectEvent(event, e);\n },\n onDoubleClick: function onDoubleClick(e) {\n return onDoubleClickEvent && onDoubleClickEvent(event, e);\n }\n }, Event ? /*#__PURE__*/React.createElement(Event, {\n event: event,\n title: title\n }) : title));\n }, []);\n };\n var timeRangeLabel = function timeRangeLabel(day, event) {\n var labelClass = '',\n TimeComponent = components.time,\n label = localizer.messages.allDay;\n var end = accessors.end(event);\n var start = accessors.start(event);\n if (!accessors.allDay(event)) {\n if (localizer.eq(start, end)) {\n label = localizer.format(start, 'agendaTimeFormat');\n } else if (localizer.isSameDate(start, end)) {\n label = localizer.format({\n start: start,\n end: end\n }, 'agendaTimeRangeFormat');\n } else if (localizer.isSameDate(day, start)) {\n label = localizer.format(start, 'agendaTimeFormat');\n } else if (localizer.isSameDate(day, end)) {\n label = localizer.format(end, 'agendaTimeFormat');\n }\n }\n if (localizer.gt(day, start, 'day')) labelClass = 'rbc-continues-prior';\n if (localizer.lt(day, end, 'day')) labelClass += ' rbc-continues-after';\n return /*#__PURE__*/React.createElement(\"span\", {\n className: labelClass.trim()\n }, TimeComponent ? /*#__PURE__*/React.createElement(TimeComponent, {\n event: event,\n day: day,\n label: label\n }) : label);\n };\n var _adjustHeader = function _adjustHeader() {\n if (!tbodyRef.current) return;\n var header = headerRef.current;\n var firstRow = tbodyRef.current.firstChild;\n if (!firstRow) return;\n var isOverflowing = contentRef.current.scrollHeight > contentRef.current.clientHeight;\n var _widths = [];\n var widths = _widths;\n _widths = [getWidth(firstRow.children[0]), getWidth(firstRow.children[1])];\n if (widths[0] !== _widths[0] || widths[1] !== _widths[1]) {\n dateColRef.current.style.width = _widths[0] + 'px';\n timeColRef.current.style.width = _widths[1] + 'px';\n }\n if (isOverflowing) {\n addClass(header, 'rbc-header-overflowing');\n header.style.marginRight = scrollbarSize() + 'px';\n } else {\n removeClass(header, 'rbc-header-overflowing');\n }\n };\n var messages = localizer.messages;\n var end = localizer.add(date, length, 'day');\n var range = localizer.range(date, end, 'day');\n events = events.filter(function (event) {\n return inRange(event, localizer.startOf(date, 'day'), localizer.endOf(end, 'day'), accessors, localizer);\n });\n events.sort(function (a, b) {\n return +accessors.start(a) - +accessors.start(b);\n });\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"rbc-agenda-view\"\n }, events.length !== 0 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"table\", {\n ref: headerRef,\n className: \"rbc-agenda-table\"\n }, /*#__PURE__*/React.createElement(\"thead\", null, /*#__PURE__*/React.createElement(\"tr\", null, /*#__PURE__*/React.createElement(\"th\", {\n className: \"rbc-header\",\n ref: dateColRef\n }, messages.date), /*#__PURE__*/React.createElement(\"th\", {\n className: \"rbc-header\",\n ref: timeColRef\n }, messages.time), /*#__PURE__*/React.createElement(\"th\", {\n className: \"rbc-header\"\n }, messages.event)))), /*#__PURE__*/React.createElement(\"div\", {\n className: \"rbc-agenda-content\",\n ref: contentRef\n }, /*#__PURE__*/React.createElement(\"table\", {\n className: \"rbc-agenda-table\"\n }, /*#__PURE__*/React.createElement(\"tbody\", {\n ref: tbodyRef\n }, range.map(function (day, idx) {\n return renderDay(day, events, idx);\n }))))) : /*#__PURE__*/React.createElement(\"span\", {\n className: \"rbc-agenda-empty\"\n }, messages.noEventsInRange));\n}\nAgenda.defaultProps = {\n length: 30\n};\nAgenda.range = function (start, _ref2) {\n var _ref2$length = _ref2.length,\n length = _ref2$length === void 0 ? Agenda.defaultProps.length : _ref2$length,\n localizer = _ref2.localizer;\n var end = localizer.add(start, length, 'day');\n return {\n start: start,\n end: end\n };\n};\nAgenda.navigate = function (date, action, _ref3) {\n var _ref3$length = _ref3.length,\n length = _ref3$length === void 0 ? Agenda.defaultProps.length : _ref3$length,\n localizer = _ref3.localizer;\n switch (action) {\n case navigate.PREVIOUS:\n return localizer.add(date, -length, 'day');\n case navigate.NEXT:\n return localizer.add(date, length, 'day');\n default:\n return date;\n }\n};\nAgenda.title = function (start, _ref4) {\n var _ref4$length = _ref4.length,\n length = _ref4$length === void 0 ? Agenda.defaultProps.length : _ref4$length,\n localizer = _ref4.localizer;\n var end = localizer.add(start, length, 'day');\n return localizer.format({\n start: start,\n end: end\n }, 'agendaHeaderFormat');\n};\n\nvar _VIEWS;\nvar VIEWS = (_VIEWS = {}, _defineProperty(_VIEWS, views.MONTH, MonthView), _defineProperty(_VIEWS, views.WEEK, Week), _defineProperty(_VIEWS, views.WORK_WEEK, WorkWeek), _defineProperty(_VIEWS, views.DAY, Day), _defineProperty(_VIEWS, views.AGENDA, Agenda), _VIEWS);\n\nvar _excluded$1 = [\"action\", \"date\", \"today\"];\nfunction moveDate(View, _ref) {\n var action = _ref.action,\n date = _ref.date,\n today = _ref.today,\n props = _objectWithoutProperties(_ref, _excluded$1);\n View = typeof View === 'string' ? VIEWS[View] : View;\n switch (action) {\n case navigate.TODAY:\n date = today || new Date();\n break;\n case navigate.DATE:\n break;\n default:\n invariant(View && typeof View.navigate === 'function', 'Calendar View components must implement a static `.navigate(date, action)` method.s');\n date = View.navigate(date, action, props);\n }\n return date;\n}\n\nvar Toolbar = /*#__PURE__*/function (_React$Component) {\n _inherits(Toolbar, _React$Component);\n var _super = _createSuper(Toolbar);\n function Toolbar() {\n var _this;\n _classCallCheck(this, Toolbar);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _super.call.apply(_super, [this].concat(args));\n _this.navigate = function (action) {\n _this.props.onNavigate(action);\n };\n _this.view = function (view) {\n _this.props.onView(view);\n };\n return _this;\n }\n _createClass(Toolbar, [{\n key: \"render\",\n value: function render() {\n var _this$props = this.props,\n messages = _this$props.localizer.messages,\n label = _this$props.label;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"rbc-toolbar\"\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"rbc-btn-group\"\n }, /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n onClick: this.navigate.bind(null, navigate.TODAY)\n }, messages.today), /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n onClick: this.navigate.bind(null, navigate.PREVIOUS)\n }, messages.previous), /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n onClick: this.navigate.bind(null, navigate.NEXT)\n }, messages.next)), /*#__PURE__*/React.createElement(\"span\", {\n className: \"rbc-toolbar-label\"\n }, label), /*#__PURE__*/React.createElement(\"span\", {\n className: \"rbc-btn-group\"\n }, this.viewNamesGroup(messages)));\n }\n }, {\n key: \"viewNamesGroup\",\n value: function viewNamesGroup(messages) {\n var _this2 = this;\n var viewNames = this.props.views;\n var view = this.props.view;\n if (viewNames.length > 1) {\n return viewNames.map(function (name) {\n return /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n key: name,\n className: clsx({\n 'rbc-active': view === name\n }),\n onClick: _this2.view.bind(null, name)\n }, messages[name]);\n });\n }\n }\n }]);\n return Toolbar;\n}(React.Component);\n\n/**\n * Retrieve via an accessor-like property\n *\n * accessor(obj, 'name') // => retrieves obj['name']\n * accessor(data, func) // => retrieves func(data)\n * ... otherwise null\n */\nfunction accessor(data, field) {\n var value = null;\n if (typeof field === 'function') value = field(data);else if (typeof field === 'string' && _typeof(data) === 'object' && data != null && field in data) value = data[field];\n return value;\n}\nvar wrapAccessor = function wrapAccessor(acc) {\n return function (data) {\n return accessor(data, acc);\n };\n};\n\nvar _excluded = [\"view\", \"date\", \"getNow\", \"onNavigate\"],\n _excluded2 = [\"view\", \"toolbar\", \"events\", \"backgroundEvents\", \"style\", \"className\", \"elementProps\", \"date\", \"getNow\", \"length\", \"showMultiDayTimes\", \"onShowMore\", \"doShowMoreDrillDown\", \"components\", \"formats\", \"messages\", \"culture\"];\nfunction viewNames(_views) {\n if (Array.isArray(_views)) {\n return _views;\n }\n var views = [];\n for (var _i = 0, _Object$entries = Object.entries(_views); _i < _Object$entries.length; _i++) {\n var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),\n key = _Object$entries$_i[0],\n value = _Object$entries$_i[1];\n if (value) {\n views.push(key);\n }\n }\n return views;\n}\nfunction isValidView(view, _ref) {\n var _views = _ref.views;\n var names = viewNames(_views);\n return names.indexOf(view) !== -1;\n}\nvar Calendar = /*#__PURE__*/function (_React$Component) {\n _inherits(Calendar, _React$Component);\n var _super = _createSuper(Calendar);\n function Calendar() {\n var _this;\n _classCallCheck(this, Calendar);\n for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {\n _args[_key] = arguments[_key];\n }\n _this = _super.call.apply(_super, [this].concat(_args));\n _this.getViews = function () {\n var views = _this.props.views;\n if (Array.isArray(views)) {\n return transform(views, function (obj, name) {\n return obj[name] = VIEWS[name];\n }, {});\n }\n if (_typeof(views) === 'object') {\n return mapValues(views, function (value, key) {\n if (value === true) {\n return VIEWS[key];\n }\n return value;\n });\n }\n return VIEWS;\n };\n _this.getView = function () {\n var views = _this.getViews();\n return views[_this.props.view];\n };\n _this.getDrilldownView = function (date) {\n var _this$props = _this.props,\n view = _this$props.view,\n drilldownView = _this$props.drilldownView,\n getDrilldownView = _this$props.getDrilldownView;\n if (!getDrilldownView) return drilldownView;\n return getDrilldownView(date, view, Object.keys(_this.getViews()));\n };\n _this.handleRangeChange = function (date, viewComponent, view) {\n var _this$props2 = _this.props,\n onRangeChange = _this$props2.onRangeChange,\n localizer = _this$props2.localizer;\n if (onRangeChange) {\n if (viewComponent.range) {\n onRangeChange(viewComponent.range(date, {\n localizer: localizer\n }), view);\n } else {\n if (process.env.NODE_ENV !== 'production') {\n console.error('onRangeChange prop not supported for this view');\n }\n }\n }\n };\n _this.handleNavigate = function (action, newDate) {\n var _this$props3 = _this.props,\n view = _this$props3.view,\n date = _this$props3.date,\n getNow = _this$props3.getNow,\n onNavigate = _this$props3.onNavigate,\n props = _objectWithoutProperties(_this$props3, _excluded);\n var ViewComponent = _this.getView();\n var today = getNow();\n date = moveDate(ViewComponent, _objectSpread(_objectSpread({}, props), {}, {\n action: action,\n date: newDate || date || today,\n today: today\n }));\n onNavigate(date, view, action);\n _this.handleRangeChange(date, ViewComponent);\n };\n _this.handleViewChange = function (view) {\n if (view !== _this.props.view && isValidView(view, _this.props)) {\n _this.props.onView(view);\n }\n var views = _this.getViews();\n _this.handleRangeChange(_this.props.date || _this.props.getNow(), views[view], view);\n };\n _this.handleSelectEvent = function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n notify(_this.props.onSelectEvent, args);\n };\n _this.handleDoubleClickEvent = function () {\n for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n notify(_this.props.onDoubleClickEvent, args);\n };\n _this.handleKeyPressEvent = function () {\n for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n args[_key4] = arguments[_key4];\n }\n notify(_this.props.onKeyPressEvent, args);\n };\n _this.handleSelectSlot = function (slotInfo) {\n notify(_this.props.onSelectSlot, slotInfo);\n };\n _this.handleDrillDown = function (date, view) {\n var onDrillDown = _this.props.onDrillDown;\n if (onDrillDown) {\n onDrillDown(date, view, _this.drilldownView);\n return;\n }\n if (view) _this.handleViewChange(view);\n _this.handleNavigate(navigate.DATE, date);\n };\n _this.state = {\n context: Calendar.getContext(_this.props)\n };\n return _this;\n }\n _createClass(Calendar, [{\n key: \"render\",\n value: function render() {\n var _this$props4 = this.props,\n view = _this$props4.view,\n toolbar = _this$props4.toolbar,\n events = _this$props4.events,\n backgroundEvents = _this$props4.backgroundEvents,\n style = _this$props4.style,\n className = _this$props4.className,\n elementProps = _this$props4.elementProps,\n current = _this$props4.date,\n getNow = _this$props4.getNow,\n length = _this$props4.length,\n showMultiDayTimes = _this$props4.showMultiDayTimes,\n onShowMore = _this$props4.onShowMore,\n doShowMoreDrillDown = _this$props4.doShowMoreDrillDown;\n _this$props4.components;\n _this$props4.formats;\n _this$props4.messages;\n _this$props4.culture;\n var props = _objectWithoutProperties(_this$props4, _excluded2);\n current = current || getNow();\n var View = this.getView();\n var _this$state$context = this.state.context,\n accessors = _this$state$context.accessors,\n components = _this$state$context.components,\n getters = _this$state$context.getters,\n localizer = _this$state$context.localizer,\n viewNames = _this$state$context.viewNames;\n var CalToolbar = components.toolbar || Toolbar;\n var label = View.title(current, {\n localizer: localizer,\n length: length\n });\n return /*#__PURE__*/React.createElement(\"div\", Object.assign({}, elementProps, {\n className: clsx(className, 'rbc-calendar', props.rtl && 'rbc-rtl'),\n style: style\n }), toolbar && /*#__PURE__*/React.createElement(CalToolbar, {\n date: current,\n view: view,\n views: viewNames,\n label: label,\n onView: this.handleViewChange,\n onNavigate: this.handleNavigate,\n localizer: localizer\n }), /*#__PURE__*/React.createElement(View, Object.assign({}, props, {\n events: events,\n backgroundEvents: backgroundEvents,\n date: current,\n getNow: getNow,\n length: length,\n localizer: localizer,\n getters: getters,\n components: components,\n accessors: accessors,\n showMultiDayTimes: showMultiDayTimes,\n getDrilldownView: this.getDrilldownView,\n onNavigate: this.handleNavigate,\n onDrillDown: this.handleDrillDown,\n onSelectEvent: this.handleSelectEvent,\n onDoubleClickEvent: this.handleDoubleClickEvent,\n onKeyPressEvent: this.handleKeyPressEvent,\n onSelectSlot: this.handleSelectSlot,\n onShowMore: onShowMore,\n doShowMoreDrillDown: doShowMoreDrillDown\n })));\n }\n\n /**\n *\n * @param date\n * @param viewComponent\n * @param {'month'|'week'|'work_week'|'day'|'agenda'} [view] - optional\n * parameter. It appears when range change on view changing. It could be handy\n * when you need to have both: range and view type at once, i.e. for manage rbc\n * state via url\n */\n }], [{\n key: \"getDerivedStateFromProps\",\n value: function getDerivedStateFromProps(nextProps) {\n return {\n context: Calendar.getContext(nextProps)\n };\n }\n }, {\n key: \"getContext\",\n value: function getContext(_ref2) {\n var startAccessor = _ref2.startAccessor,\n endAccessor = _ref2.endAccessor,\n allDayAccessor = _ref2.allDayAccessor,\n tooltipAccessor = _ref2.tooltipAccessor,\n titleAccessor = _ref2.titleAccessor,\n resourceAccessor = _ref2.resourceAccessor,\n resourceIdAccessor = _ref2.resourceIdAccessor,\n resourceTitleAccessor = _ref2.resourceTitleAccessor,\n eventPropGetter = _ref2.eventPropGetter,\n backgroundEventPropGetter = _ref2.backgroundEventPropGetter,\n slotPropGetter = _ref2.slotPropGetter,\n slotGroupPropGetter = _ref2.slotGroupPropGetter,\n dayPropGetter = _ref2.dayPropGetter,\n view = _ref2.view,\n views = _ref2.views,\n localizer = _ref2.localizer,\n culture = _ref2.culture,\n _ref2$messages = _ref2.messages,\n messages$1 = _ref2$messages === void 0 ? {} : _ref2$messages,\n _ref2$components = _ref2.components,\n components = _ref2$components === void 0 ? {} : _ref2$components,\n _ref2$formats = _ref2.formats,\n formats = _ref2$formats === void 0 ? {} : _ref2$formats;\n var names = viewNames(views);\n var msgs = messages(messages$1);\n return {\n viewNames: names,\n localizer: mergeWithDefaults(localizer, culture, formats, msgs),\n getters: {\n eventProp: function eventProp() {\n return eventPropGetter && eventPropGetter.apply(void 0, arguments) || {};\n },\n backgroundEventProp: function backgroundEventProp() {\n return backgroundEventPropGetter && backgroundEventPropGetter.apply(void 0, arguments) || {};\n },\n slotProp: function slotProp() {\n return slotPropGetter && slotPropGetter.apply(void 0, arguments) || {};\n },\n slotGroupProp: function slotGroupProp() {\n return slotGroupPropGetter && slotGroupPropGetter.apply(void 0, arguments) || {};\n },\n dayProp: function dayProp() {\n return dayPropGetter && dayPropGetter.apply(void 0, arguments) || {};\n }\n },\n components: defaults(components[view] || {}, omit(components, names), {\n eventWrapper: NoopWrapper,\n backgroundEventWrapper: NoopWrapper,\n eventContainerWrapper: NoopWrapper,\n dateCellWrapper: NoopWrapper,\n weekWrapper: NoopWrapper,\n timeSlotWrapper: NoopWrapper,\n timeGutterWrapper: NoopWrapper\n }),\n accessors: {\n start: wrapAccessor(startAccessor),\n end: wrapAccessor(endAccessor),\n allDay: wrapAccessor(allDayAccessor),\n tooltip: wrapAccessor(tooltipAccessor),\n title: wrapAccessor(titleAccessor),\n resource: wrapAccessor(resourceAccessor),\n resourceId: wrapAccessor(resourceIdAccessor),\n resourceTitle: wrapAccessor(resourceTitleAccessor)\n }\n };\n }\n }]);\n return Calendar;\n}(React.Component);\nCalendar.defaultProps = {\n events: [],\n backgroundEvents: [],\n elementProps: {},\n popup: false,\n toolbar: true,\n view: views.MONTH,\n views: [views.MONTH, views.WEEK, views.DAY, views.AGENDA],\n step: 30,\n length: 30,\n allDayMaxRows: Infinity,\n doShowMoreDrillDown: true,\n drilldownView: views.DAY,\n titleAccessor: 'title',\n tooltipAccessor: 'title',\n allDayAccessor: 'allDay',\n startAccessor: 'start',\n endAccessor: 'end',\n resourceAccessor: 'resourceId',\n resourceIdAccessor: 'id',\n resourceTitleAccessor: 'title',\n longPressThreshold: 250,\n getNow: function getNow() {\n return new Date();\n },\n dayLayoutAlgorithm: 'overlap'\n};\nvar Calendar$1 = uncontrollable(Calendar, {\n view: 'onView',\n date: 'onNavigate',\n selected: 'onSelectEvent'\n});\n\nvar weekRangeFormat$5 = function weekRangeFormat(_ref, culture, local) {\n var start = _ref.start,\n end = _ref.end;\n return local.format(start, 'MMMM DD', culture) + ' – ' +\n // updated to use this localizer 'eq()' method\n local.format(end, local.eq(start, end, 'month') ? 'DD' : 'MMMM DD', culture);\n};\nvar dateRangeFormat$5 = function dateRangeFormat(_ref2, culture, local) {\n var start = _ref2.start,\n end = _ref2.end;\n return local.format(start, 'L', culture) + ' – ' + local.format(end, 'L', culture);\n};\nvar timeRangeFormat$5 = function timeRangeFormat(_ref3, culture, local) {\n var start = _ref3.start,\n end = _ref3.end;\n return local.format(start, 'LT', culture) + ' – ' + local.format(end, 'LT', culture);\n};\nvar timeRangeStartFormat$5 = function timeRangeStartFormat(_ref4, culture, local) {\n var start = _ref4.start;\n return local.format(start, 'LT', culture) + ' – ';\n};\nvar timeRangeEndFormat$5 = function timeRangeEndFormat(_ref5, culture, local) {\n var end = _ref5.end;\n return ' – ' + local.format(end, 'LT', culture);\n};\nvar formats$5 = {\n dateFormat: 'DD',\n dayFormat: 'DD ddd',\n weekdayFormat: 'ddd',\n selectRangeFormat: timeRangeFormat$5,\n eventTimeRangeFormat: timeRangeFormat$5,\n eventTimeRangeStartFormat: timeRangeStartFormat$5,\n eventTimeRangeEndFormat: timeRangeEndFormat$5,\n timeGutterFormat: 'LT',\n monthHeaderFormat: 'MMMM YYYY',\n dayHeaderFormat: 'dddd MMM DD',\n dayRangeHeaderFormat: weekRangeFormat$5,\n agendaHeaderFormat: dateRangeFormat$5,\n agendaDateFormat: 'ddd MMM DD',\n agendaTimeFormat: 'LT',\n agendaTimeRangeFormat: timeRangeFormat$5\n};\nfunction fixUnit$2(unit) {\n var datePart = unit ? unit.toLowerCase() : unit;\n if (datePart === 'FullYear') {\n datePart = 'year';\n } else if (!datePart) {\n datePart = undefined;\n }\n return datePart;\n}\nfunction moment (moment) {\n var locale = function locale(m, c) {\n return c ? m.locale(c) : m;\n };\n function getTimezoneOffset(date) {\n // ensures this gets cast to timezone\n return moment(date).toDate().getTimezoneOffset();\n }\n function getDstOffset(start, end) {\n var _st$_z$name, _st$_z;\n // convert to moment, in case\n // Calculate the offset in the timezone of the Events (local)\n // not in the timezone of the calendar (moment.tz)\n var st = moment(start).local();\n var ed = moment(end).local();\n // if not using moment timezone\n if (!moment.tz) {\n return st.toDate().getTimezoneOffset() - ed.toDate().getTimezoneOffset();\n }\n /**\n * If using moment-timezone, and a timezone has been applied, then\n * use this to get the proper timezone offset, otherwise default\n * the timezone to the browser local\n */\n var tzName = (_st$_z$name = st === null || st === void 0 ? void 0 : (_st$_z = st._z) === null || _st$_z === void 0 ? void 0 : _st$_z.name) !== null && _st$_z$name !== void 0 ? _st$_z$name : moment.tz.guess();\n var startOffset = moment.tz.zone(tzName).utcOffset(+st);\n var endOffset = moment.tz.zone(tzName).utcOffset(+ed);\n return startOffset - endOffset;\n }\n function getDayStartDstOffset(start) {\n var dayStart = moment(start).startOf('day');\n return getDstOffset(dayStart, start);\n }\n\n /*** BEGIN localized date arithmetic methods with moment ***/\n function defineComparators(a, b, unit) {\n var datePart = fixUnit$2(unit);\n var dtA = datePart ? moment(a).startOf(datePart) : moment(a);\n var dtB = datePart ? moment(b).startOf(datePart) : moment(b);\n return [dtA, dtB, datePart];\n }\n function startOf() {\n var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var unit = arguments.length > 1 ? arguments[1] : undefined;\n var datePart = fixUnit$2(unit);\n if (datePart) {\n return moment(date).startOf(datePart).toDate();\n }\n return moment(date).toDate();\n }\n function endOf() {\n var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var unit = arguments.length > 1 ? arguments[1] : undefined;\n var datePart = fixUnit$2(unit);\n if (datePart) {\n return moment(date).endOf(datePart).toDate();\n }\n return moment(date).toDate();\n }\n\n // moment comparison operations *always* convert both sides to moment objects\n // prior to running the comparisons\n function eq(a, b, unit) {\n var _defineComparators = defineComparators(a, b, unit),\n _defineComparators2 = _slicedToArray(_defineComparators, 3),\n dtA = _defineComparators2[0],\n dtB = _defineComparators2[1],\n datePart = _defineComparators2[2];\n return dtA.isSame(dtB, datePart);\n }\n function neq(a, b, unit) {\n return !eq(a, b, unit);\n }\n function gt(a, b, unit) {\n var _defineComparators3 = defineComparators(a, b, unit),\n _defineComparators4 = _slicedToArray(_defineComparators3, 3),\n dtA = _defineComparators4[0],\n dtB = _defineComparators4[1],\n datePart = _defineComparators4[2];\n return dtA.isAfter(dtB, datePart);\n }\n function lt(a, b, unit) {\n var _defineComparators5 = defineComparators(a, b, unit),\n _defineComparators6 = _slicedToArray(_defineComparators5, 3),\n dtA = _defineComparators6[0],\n dtB = _defineComparators6[1],\n datePart = _defineComparators6[2];\n return dtA.isBefore(dtB, datePart);\n }\n function gte(a, b, unit) {\n var _defineComparators7 = defineComparators(a, b, unit),\n _defineComparators8 = _slicedToArray(_defineComparators7, 3),\n dtA = _defineComparators8[0],\n dtB = _defineComparators8[1],\n datePart = _defineComparators8[2];\n return dtA.isSameOrBefore(dtB, datePart);\n }\n function lte(a, b, unit) {\n var _defineComparators9 = defineComparators(a, b, unit),\n _defineComparators10 = _slicedToArray(_defineComparators9, 3),\n dtA = _defineComparators10[0],\n dtB = _defineComparators10[1],\n datePart = _defineComparators10[2];\n return dtA.isSameOrBefore(dtB, datePart);\n }\n function inRange(day, min, max) {\n var unit = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'day';\n var datePart = fixUnit$2(unit);\n var mDay = moment(day);\n var mMin = moment(min);\n var mMax = moment(max);\n return mDay.isBetween(mMin, mMax, datePart, '[]');\n }\n function min(dateA, dateB) {\n var dtA = moment(dateA);\n var dtB = moment(dateB);\n var minDt = moment.min(dtA, dtB);\n return minDt.toDate();\n }\n function max(dateA, dateB) {\n var dtA = moment(dateA);\n var dtB = moment(dateB);\n var maxDt = moment.max(dtA, dtB);\n return maxDt.toDate();\n }\n function merge(date, time) {\n if (!date && !time) return null;\n var tm = moment(time).format('HH:mm:ss');\n var dt = moment(date).startOf('day').format('MM/DD/YYYY');\n // We do it this way to avoid issues when timezone switching\n return moment(\"\".concat(dt, \" \").concat(tm), 'MM/DD/YYYY HH:mm:ss').toDate();\n }\n function add(date, adder, unit) {\n var datePart = fixUnit$2(unit);\n return moment(date).add(adder, datePart).toDate();\n }\n function range(start, end) {\n var unit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'day';\n var datePart = fixUnit$2(unit);\n // because the add method will put these in tz, we have to start that way\n var current = moment(start).toDate();\n var days = [];\n while (lte(current, end)) {\n days.push(current);\n current = add(current, 1, datePart);\n }\n return days;\n }\n function ceil(date, unit) {\n var datePart = fixUnit$2(unit);\n var floor = startOf(date, datePart);\n return eq(floor, date) ? floor : add(floor, 1, datePart);\n }\n function diff(a, b) {\n var unit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'day';\n var datePart = fixUnit$2(unit);\n // don't use 'defineComparators' here, as we don't want to mutate the values\n var dtA = moment(a);\n var dtB = moment(b);\n return dtB.diff(dtA, datePart);\n }\n function minutes(date) {\n var dt = moment(date);\n return dt.minutes();\n }\n function firstOfWeek(culture) {\n var data = culture ? moment.localeData(culture) : moment.localeData();\n return data ? data.firstDayOfWeek() : 0;\n }\n function firstVisibleDay(date) {\n return moment(date).startOf('month').startOf('week').toDate();\n }\n function lastVisibleDay(date) {\n return moment(date).endOf('month').endOf('week').toDate();\n }\n function visibleDays(date) {\n var current = firstVisibleDay(date);\n var last = lastVisibleDay(date);\n var days = [];\n while (lte(current, last)) {\n days.push(current);\n current = add(current, 1, 'd');\n }\n return days;\n }\n /*** END localized date arithmetic methods with moment ***/\n\n /**\n * Moved from TimeSlots.js, this method overrides the method of the same name\n * in the localizer.js, using moment to construct the js Date\n * @param {Date} dt - date to start with\n * @param {Number} minutesFromMidnight\n * @param {Number} offset\n * @returns {Date}\n */\n function getSlotDate(dt, minutesFromMidnight, offset) {\n return moment(dt).startOf('day').minute(minutesFromMidnight + offset).toDate();\n }\n\n // moment will automatically handle DST differences in it's calculations\n function getTotalMin(start, end) {\n return diff(start, end, 'minutes');\n }\n function getMinutesFromMidnight(start) {\n var dayStart = moment(start).startOf('day');\n var day = moment(start);\n return day.diff(dayStart, 'minutes') + getDayStartDstOffset(start);\n }\n\n // These two are used by DateSlotMetrics\n function continuesPrior(start, first) {\n var mStart = moment(start);\n var mFirst = moment(first);\n return mStart.isBefore(mFirst, 'day');\n }\n function continuesAfter(start, end, last) {\n var mEnd = moment(end);\n var mLast = moment(last);\n return mEnd.isSameOrAfter(mLast, 'minutes');\n }\n\n // These two are used by eventLevels\n function sortEvents(_ref6) {\n var _ref6$evtA = _ref6.evtA,\n aStart = _ref6$evtA.start,\n aEnd = _ref6$evtA.end,\n aAllDay = _ref6$evtA.allDay,\n _ref6$evtB = _ref6.evtB,\n bStart = _ref6$evtB.start,\n bEnd = _ref6$evtB.end,\n bAllDay = _ref6$evtB.allDay;\n var startSort = +startOf(aStart, 'day') - +startOf(bStart, 'day');\n var durA = diff(aStart, ceil(aEnd, 'day'), 'day');\n var durB = diff(bStart, ceil(bEnd, 'day'), 'day');\n return startSort ||\n // sort by start Day first\n Math.max(durB, 1) - Math.max(durA, 1) ||\n // events spanning multiple days go first\n !!bAllDay - !!aAllDay ||\n // then allDay single day events\n +aStart - +bStart ||\n // then sort by start time *don't need moment conversion here\n +aEnd - +bEnd // then sort by end time *don't need moment conversion here either\n ;\n }\n\n function inEventRange(_ref7) {\n var _ref7$event = _ref7.event,\n start = _ref7$event.start,\n end = _ref7$event.end,\n _ref7$range = _ref7.range,\n rangeStart = _ref7$range.start,\n rangeEnd = _ref7$range.end;\n var startOfDay = moment(start).startOf('day');\n var eEnd = moment(end);\n var rStart = moment(rangeStart);\n var rEnd = moment(rangeEnd);\n var startsBeforeEnd = startOfDay.isSameOrBefore(rEnd, 'day');\n // when the event is zero duration we need to handle a bit differently\n var sameMin = !startOfDay.isSame(eEnd, 'minutes');\n var endsAfterStart = sameMin ? eEnd.isAfter(rStart, 'minutes') : eEnd.isSameOrAfter(rStart, 'minutes');\n return startsBeforeEnd && endsAfterStart;\n }\n function isSameDate(date1, date2) {\n var dt = moment(date1);\n var dt2 = moment(date2);\n return dt.isSame(dt2, 'day');\n }\n\n /**\n * This method, called once in the localizer constructor, is used by eventLevels\n * 'eventSegments()' to assist in determining the 'span' of the event in the display,\n * specifically when using a timezone that is greater than the browser native timezone.\n * @returns number\n */\n function browserTZOffset() {\n /**\n * Date.prototype.getTimezoneOffset horrifically flips the positive/negative from\n * what you see in it's string, so we have to jump through some hoops to get a value\n * we can actually compare.\n */\n var dt = new Date();\n var neg = /-/.test(dt.toString()) ? '-' : '';\n var dtOffset = dt.getTimezoneOffset();\n var comparator = Number(\"\".concat(neg).concat(Math.abs(dtOffset)));\n // moment correctly provides positive/negative offset, as expected\n var mtOffset = moment().utcOffset();\n return mtOffset > comparator ? 1 : 0;\n }\n return new DateLocalizer({\n formats: formats$5,\n firstOfWeek: firstOfWeek,\n firstVisibleDay: firstVisibleDay,\n lastVisibleDay: lastVisibleDay,\n visibleDays: visibleDays,\n format: function format(value, _format, culture) {\n return locale(moment(value), culture).format(_format);\n },\n lt: lt,\n lte: lte,\n gt: gt,\n gte: gte,\n eq: eq,\n neq: neq,\n merge: merge,\n inRange: inRange,\n startOf: startOf,\n endOf: endOf,\n range: range,\n add: add,\n diff: diff,\n ceil: ceil,\n min: min,\n max: max,\n minutes: minutes,\n getSlotDate: getSlotDate,\n getTimezoneOffset: getTimezoneOffset,\n getDstOffset: getDstOffset,\n getTotalMin: getTotalMin,\n getMinutesFromMidnight: getMinutesFromMidnight,\n continuesPrior: continuesPrior,\n continuesAfter: continuesAfter,\n sortEvents: sortEvents,\n inEventRange: inEventRange,\n isSameDate: isSameDate,\n browserTZOffset: browserTZOffset\n });\n}\n\nfunction pluralizeUnit(unit) {\n return /s$/.test(unit) ? unit : unit + 's';\n}\nvar weekRangeFormat$4 = function weekRangeFormat(_ref, culture, local) {\n var start = _ref.start,\n end = _ref.end;\n return local.format(start, 'MMMM dd', culture) + ' – ' +\n // updated to use this localizer 'eq()' method\n local.format(end, local.eq(start, end, 'month') ? 'dd' : 'MMMM dd', culture);\n};\nvar dateRangeFormat$4 = function dateRangeFormat(_ref2, culture, local) {\n var start = _ref2.start,\n end = _ref2.end;\n return local.format(start, 'D', culture) + ' – ' + local.format(end, 'D', culture);\n};\nvar timeRangeFormat$4 = function timeRangeFormat(_ref3, culture, local) {\n var start = _ref3.start,\n end = _ref3.end;\n return local.format(start, 't', culture) + ' – ' + local.format(end, 't', culture);\n};\nvar timeRangeStartFormat$4 = function timeRangeStartFormat(_ref4, culture, local) {\n var start = _ref4.start;\n return local.format(start, 't', culture) + ' – ';\n};\nvar timeRangeEndFormat$4 = function timeRangeEndFormat(_ref5, culture, local) {\n var end = _ref5.end;\n return ' – ' + local.format(end, 't', culture);\n};\nvar formats$4 = {\n dateFormat: 'dd',\n dayFormat: 'dd EEE',\n weekdayFormat: 'EEE',\n selectRangeFormat: timeRangeFormat$4,\n eventTimeRangeFormat: timeRangeFormat$4,\n eventTimeRangeStartFormat: timeRangeStartFormat$4,\n eventTimeRangeEndFormat: timeRangeEndFormat$4,\n timeGutterFormat: 't',\n monthHeaderFormat: 'MMMM yyyy',\n dayHeaderFormat: 'EEEE MMM dd',\n dayRangeHeaderFormat: weekRangeFormat$4,\n agendaHeaderFormat: dateRangeFormat$4,\n agendaDateFormat: 'EEE MMM dd',\n agendaTimeFormat: 't',\n agendaTimeRangeFormat: timeRangeFormat$4\n};\nfunction fixUnit$1(unit) {\n var datePart = unit ? pluralizeUnit(unit.toLowerCase()) : unit;\n if (datePart === 'FullYear') {\n datePart = 'year';\n } else if (!datePart) {\n datePart = undefined;\n }\n return datePart;\n}\n\n// Luxon does not currently have weekInfo by culture\n// Luxon uses 1 based values for month and weekday\n// So we default to Sunday (7)\nfunction luxon (DateTime) {\n var _ref6 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n _ref6$firstDayOfWeek = _ref6.firstDayOfWeek,\n firstDayOfWeek = _ref6$firstDayOfWeek === void 0 ? 7 : _ref6$firstDayOfWeek;\n function formatDate(value, format) {\n return DateTime.fromJSDate(value).toFormat(format);\n }\n function formatDateWithCulture(value, culture, format) {\n return DateTime.fromJSDate(value).setLocale(culture).toFormat(format);\n }\n\n /*** BEGIN localized date arithmetic methods with Luxon ***/\n function defineComparators(a, b, unit) {\n var datePart = fixUnit$1(unit);\n var dtA = datePart ? DateTime.fromJSDate(a).startOf(datePart) : DateTime.fromJSDate(a);\n var dtB = datePart ? DateTime.fromJSDate(b).startOf(datePart) : DateTime.fromJSDate(b);\n return [dtA, dtB, datePart];\n }\n\n // Since Luxon (and current Intl API) has no support\n // for culture based weekInfo, we need to handle\n // the start of the week differently\n // depending on locale, the firstDayOfWeek could also be Saturday, Sunday or Monday\n function startOfDTWeek(dtObj) {\n var weekday = dtObj.weekday;\n if (weekday === firstDayOfWeek) {\n return dtObj.startOf('day'); // already beginning of week\n } else if (firstDayOfWeek === 1) {\n return dtObj.startOf('week'); // fow is Monday, which is Luxon default\n }\n\n var diff = firstDayOfWeek === 7 ? weekday : weekday + (7 - firstDayOfWeek);\n return dtObj.minus({\n day: diff\n }).startOf('day');\n }\n function endOfDTWeek(dtObj) {\n var weekday = dtObj.weekday;\n var eow = firstDayOfWeek === 1 ? 7 : firstDayOfWeek - 1;\n if (weekday === eow) {\n return dtObj.endOf('day'); // already last day of the week\n } else if (firstDayOfWeek === 1) {\n return dtObj.endOf('week'); // use Luxon default (Sunday)\n }\n\n var fromDate = firstDayOfWeek > eow ? dtObj.plus({\n day: firstDayOfWeek - eow\n }) : dtObj;\n return fromDate.set({\n weekday: eow\n }).endOf('day');\n }\n\n // This returns a DateTime instance\n function startOfDT() {\n var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Date();\n var unit = arguments.length > 1 ? arguments[1] : undefined;\n var datePart = fixUnit$1(unit);\n if (datePart) {\n var dt = DateTime.fromJSDate(date);\n return datePart.includes('week') ? startOfDTWeek(dt) : dt.startOf(datePart);\n }\n return DateTime.fromJSDate(date);\n }\n function firstOfWeek() {\n return firstDayOfWeek;\n }\n\n // This returns a JS Date from a DateTime instance\n function startOf() {\n var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Date();\n var unit = arguments.length > 1 ? arguments[1] : undefined;\n return startOfDT(date, unit).toJSDate();\n }\n\n // This returns a DateTime instance\n function endOfDT() {\n var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Date();\n var unit = arguments.length > 1 ? arguments[1] : undefined;\n var datePart = fixUnit$1(unit);\n if (datePart) {\n var dt = DateTime.fromJSDate(date);\n return datePart.includes('week') ? endOfDTWeek(dt) : dt.endOf(datePart);\n }\n return DateTime.fromJSDate(date);\n }\n function endOf() {\n var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Date();\n var unit = arguments.length > 1 ? arguments[1] : undefined;\n return endOfDT(date, unit).toJSDate();\n }\n function eq(a, b, unit) {\n var _defineComparators = defineComparators(a, b, unit),\n _defineComparators2 = _slicedToArray(_defineComparators, 2),\n dtA = _defineComparators2[0],\n dtB = _defineComparators2[1];\n return +dtA == +dtB;\n }\n function neq(a, b, unit) {\n return !eq(a, b, unit);\n }\n function gt(a, b, unit) {\n var _defineComparators3 = defineComparators(a, b, unit),\n _defineComparators4 = _slicedToArray(_defineComparators3, 2),\n dtA = _defineComparators4[0],\n dtB = _defineComparators4[1];\n return +dtA > +dtB;\n }\n function lt(a, b, unit) {\n var _defineComparators5 = defineComparators(a, b, unit),\n _defineComparators6 = _slicedToArray(_defineComparators5, 2),\n dtA = _defineComparators6[0],\n dtB = _defineComparators6[1];\n return +dtA < +dtB;\n }\n function gte(a, b, unit) {\n var _defineComparators7 = defineComparators(a, b, unit),\n _defineComparators8 = _slicedToArray(_defineComparators7, 2),\n dtA = _defineComparators8[0],\n dtB = _defineComparators8[1];\n return +dtA >= +dtB;\n }\n function lte(a, b, unit) {\n var _defineComparators9 = defineComparators(a, b, unit),\n _defineComparators10 = _slicedToArray(_defineComparators9, 2),\n dtA = _defineComparators10[0],\n dtB = _defineComparators10[1];\n return +dtA <= +dtB;\n }\n function inRange(day, min, max) {\n var unit = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'day';\n var datePart = fixUnit$1(unit);\n var mDay = startOfDT(day, datePart);\n var mMin = startOfDT(min, datePart);\n var mMax = startOfDT(max, datePart);\n return +mDay >= +mMin && +mDay <= +mMax;\n }\n function min(dateA, dateB) {\n var dtA = DateTime.fromJSDate(dateA);\n var dtB = DateTime.fromJSDate(dateB);\n var minDt = DateTime.min(dtA, dtB);\n return minDt.toJSDate();\n }\n function max(dateA, dateB) {\n var dtA = DateTime.fromJSDate(dateA);\n var dtB = DateTime.fromJSDate(dateB);\n var maxDt = DateTime.max(dtA, dtB);\n return maxDt.toJSDate();\n }\n function merge(date, time) {\n if (!date && !time) return null;\n var tm = DateTime.fromJSDate(time);\n var dt = startOfDT(date, 'day');\n return dt.set({\n hour: tm.hour,\n minute: tm.minute,\n second: tm.second,\n millisecond: tm.millisecond\n }).toJSDate();\n }\n function add(date, adder, unit) {\n var datePart = fixUnit$1(unit);\n return DateTime.fromJSDate(date).plus(_defineProperty({}, datePart, adder)).toJSDate();\n }\n function range(start, end) {\n var unit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'day';\n var datePart = fixUnit$1(unit);\n var current = DateTime.fromJSDate(start).toJSDate(); // this is to get it to tz\n var days = [];\n while (lte(current, end)) {\n days.push(current);\n current = add(current, 1, datePart);\n }\n return days;\n }\n function ceil(date, unit) {\n var datePart = fixUnit$1(unit);\n var floor = startOf(date, datePart);\n return eq(floor, date) ? floor : add(floor, 1, datePart);\n }\n function diff(a, b) {\n var unit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'day';\n var datePart = fixUnit$1(unit);\n // don't use 'defineComparators' here, as we don't want to mutate the values\n var dtA = DateTime.fromJSDate(a);\n var dtB = DateTime.fromJSDate(b);\n return Math.floor(dtB.diff(dtA, datePart, {\n conversionAccuracy: 'longterm'\n }).toObject()[datePart]);\n }\n function firstVisibleDay(date) {\n var startOfMonth = startOfDT(date, 'month');\n return startOfDTWeek(startOfMonth).toJSDate();\n }\n function lastVisibleDay(date) {\n var endOfMonth = endOfDT(date, 'month');\n return endOfDTWeek(endOfMonth).toJSDate();\n }\n function visibleDays(date) {\n var current = firstVisibleDay(date);\n var last = lastVisibleDay(date);\n var days = [];\n while (lte(current, last)) {\n days.push(current);\n current = add(current, 1, 'day');\n }\n return days;\n }\n /*** END localized date arithmetic methods with moment ***/\n\n /**\n * Moved from TimeSlots.js, this method overrides the method of the same name\n * in the localizer.js, using moment to construct the js Date\n * @param {Date} dt - date to start with\n * @param {Number} minutesFromMidnight\n * @param {Number} offset\n * @returns {Date}\n */\n function getSlotDate(dt, minutesFromMidnight, offset) {\n return startOfDT(dt, 'day').set({\n minutes: minutesFromMidnight + offset\n }).toJSDate();\n }\n\n // Luxon will automatically handle DST differences in it's calculations\n function getTotalMin(start, end) {\n return diff(start, end, 'minutes');\n }\n function getMinutesFromMidnight(start) {\n var dayStart = startOfDT(start, 'day');\n var day = DateTime.fromJSDate(start);\n return Math.round(day.diff(dayStart, 'minutes', {\n conversionAccuracy: 'longterm'\n }).toObject().minutes);\n }\n\n // These two are used by DateSlotMetrics\n function continuesPrior(start, first) {\n return lt(start, first);\n }\n function continuesAfter(start, end, last) {\n return gte(end, last);\n }\n\n // These two are used by eventLevels\n function sortEvents(_ref7) {\n var _ref7$evtA = _ref7.evtA,\n aStart = _ref7$evtA.start,\n aEnd = _ref7$evtA.end,\n aAllDay = _ref7$evtA.allDay,\n _ref7$evtB = _ref7.evtB,\n bStart = _ref7$evtB.start,\n bEnd = _ref7$evtB.end,\n bAllDay = _ref7$evtB.allDay;\n var startSort = +startOf(aStart, 'day') - +startOf(bStart, 'day');\n var durA = diff(aStart, ceil(aEnd, 'day'), 'day');\n var durB = diff(bStart, ceil(bEnd, 'day'), 'day');\n return startSort ||\n // sort by start Day first\n Math.max(durB, 1) - Math.max(durA, 1) ||\n // events spanning multiple days go first\n !!bAllDay - !!aAllDay ||\n // then allDay single day events\n +aStart - +bStart ||\n // then sort by start time *don't need moment conversion here\n +aEnd - +bEnd // then sort by end time *don't need moment conversion here either\n ;\n }\n\n function inEventRange(_ref8) {\n var _ref8$event = _ref8.event,\n start = _ref8$event.start,\n end = _ref8$event.end,\n _ref8$range = _ref8.range,\n rangeStart = _ref8$range.start,\n rangeEnd = _ref8$range.end;\n var eStart = startOf(start, 'day');\n var startsBeforeEnd = lte(eStart, rangeEnd, 'day');\n // when the event is zero duration we need to handle a bit differently\n var sameMin = neq(eStart, end, 'minutes');\n var endsAfterStart = sameMin ? gt(end, rangeStart, 'minutes') : gte(end, rangeStart, 'minutes');\n return startsBeforeEnd && endsAfterStart;\n }\n\n // moment treats 'day' and 'date' equality very different\n // moment(date1).isSame(date2, 'day') would test that they were both the same day of the week\n // moment(date1).isSame(date2, 'date') would test that they were both the same date of the month of the year\n function isSameDate(date1, date2) {\n var dt = DateTime.fromJSDate(date1);\n var dt2 = DateTime.fromJSDate(date2);\n return dt.hasSame(dt2, 'day');\n }\n\n /**\n * This method, called once in the localizer constructor, is used by eventLevels\n * 'eventSegments()' to assist in determining the 'span' of the event in the display,\n * specifically when using a timezone that is greater than the browser native timezone.\n * @returns number\n */\n function browserTZOffset() {\n /**\n * Date.prototype.getTimezoneOffset horrifically flips the positive/negative from\n * what you see in it's string, so we have to jump through some hoops to get a value\n * we can actually compare.\n */\n var dt = new Date();\n var neg = /-/.test(dt.toString()) ? '-' : '';\n var dtOffset = dt.getTimezoneOffset();\n var comparator = Number(\"\".concat(neg).concat(Math.abs(dtOffset)));\n // moment correctly provides positive/negative offset, as expected\n var mtOffset = DateTime.local().offset;\n return mtOffset > comparator ? 1 : 0;\n }\n return new DateLocalizer({\n format: function format(value, _format, culture) {\n if (culture) {\n return formatDateWithCulture(value, culture, _format);\n }\n return formatDate(value, _format);\n },\n formats: formats$4,\n firstOfWeek: firstOfWeek,\n firstVisibleDay: firstVisibleDay,\n lastVisibleDay: lastVisibleDay,\n visibleDays: visibleDays,\n lt: lt,\n lte: lte,\n gt: gt,\n gte: gte,\n eq: eq,\n neq: neq,\n merge: merge,\n inRange: inRange,\n startOf: startOf,\n endOf: endOf,\n range: range,\n add: add,\n diff: diff,\n ceil: ceil,\n min: min,\n max: max,\n getSlotDate: getSlotDate,\n getTotalMin: getTotalMin,\n getMinutesFromMidnight: getMinutesFromMidnight,\n continuesPrior: continuesPrior,\n continuesAfter: continuesAfter,\n sortEvents: sortEvents,\n inEventRange: inEventRange,\n isSameDate: isSameDate,\n browserTZOffset: browserTZOffset\n });\n}\n\nvar dateRangeFormat$3 = function dateRangeFormat(_ref, culture, local) {\n var start = _ref.start,\n end = _ref.end;\n return local.format(start, 'd', culture) + ' – ' + local.format(end, 'd', culture);\n};\nvar timeRangeFormat$3 = function timeRangeFormat(_ref2, culture, local) {\n var start = _ref2.start,\n end = _ref2.end;\n return local.format(start, 't', culture) + ' – ' + local.format(end, 't', culture);\n};\nvar timeRangeStartFormat$3 = function timeRangeStartFormat(_ref3, culture, local) {\n var start = _ref3.start;\n return local.format(start, 't', culture) + ' – ';\n};\nvar timeRangeEndFormat$3 = function timeRangeEndFormat(_ref4, culture, local) {\n var end = _ref4.end;\n return ' – ' + local.format(end, 't', culture);\n};\nvar weekRangeFormat$3 = function weekRangeFormat(_ref5, culture, local) {\n var start = _ref5.start,\n end = _ref5.end;\n return local.format(start, 'MMM dd', culture) + ' – ' + local.format(end, eq(start, end, 'month') ? 'dd' : 'MMM dd', culture);\n};\nvar formats$3 = {\n dateFormat: 'dd',\n dayFormat: 'ddd dd/MM',\n weekdayFormat: 'ddd',\n selectRangeFormat: timeRangeFormat$3,\n eventTimeRangeFormat: timeRangeFormat$3,\n eventTimeRangeStartFormat: timeRangeStartFormat$3,\n eventTimeRangeEndFormat: timeRangeEndFormat$3,\n timeGutterFormat: 't',\n monthHeaderFormat: 'Y',\n dayHeaderFormat: 'dddd MMM dd',\n dayRangeHeaderFormat: weekRangeFormat$3,\n agendaHeaderFormat: dateRangeFormat$3,\n agendaDateFormat: 'ddd MMM dd',\n agendaTimeFormat: 't',\n agendaTimeRangeFormat: timeRangeFormat$3\n};\nfunction oldGlobalize (globalize) {\n function getCulture(culture) {\n return culture ? globalize.findClosestCulture(culture) : globalize.culture();\n }\n function firstOfWeek(culture) {\n culture = getCulture(culture);\n return culture && culture.calendar.firstDay || 0;\n }\n return new DateLocalizer({\n firstOfWeek: firstOfWeek,\n formats: formats$3,\n format: function format(value, _format, culture) {\n return globalize.format(value, _format, culture);\n }\n });\n}\n\nvar dateRangeFormat$2 = function dateRangeFormat(_ref, culture, local) {\n var start = _ref.start,\n end = _ref.end;\n return local.format(start, {\n date: 'short'\n }, culture) + ' – ' + local.format(end, {\n date: 'short'\n }, culture);\n};\nvar timeRangeFormat$2 = function timeRangeFormat(_ref2, culture, local) {\n var start = _ref2.start,\n end = _ref2.end;\n return local.format(start, {\n time: 'short'\n }, culture) + ' – ' + local.format(end, {\n time: 'short'\n }, culture);\n};\nvar timeRangeStartFormat$2 = function timeRangeStartFormat(_ref3, culture, local) {\n var start = _ref3.start;\n return local.format(start, {\n time: 'short'\n }, culture) + ' – ';\n};\nvar timeRangeEndFormat$2 = function timeRangeEndFormat(_ref4, culture, local) {\n var end = _ref4.end;\n return ' – ' + local.format(end, {\n time: 'short'\n }, culture);\n};\nvar weekRangeFormat$2 = function weekRangeFormat(_ref5, culture, local) {\n var start = _ref5.start,\n end = _ref5.end;\n return local.format(start, 'MMM dd', culture) + ' – ' + local.format(end, eq(start, end, 'month') ? 'dd' : 'MMM dd', culture);\n};\nvar formats$2 = {\n dateFormat: 'dd',\n dayFormat: 'eee dd/MM',\n weekdayFormat: 'eee',\n selectRangeFormat: timeRangeFormat$2,\n eventTimeRangeFormat: timeRangeFormat$2,\n eventTimeRangeStartFormat: timeRangeStartFormat$2,\n eventTimeRangeEndFormat: timeRangeEndFormat$2,\n timeGutterFormat: {\n time: 'short'\n },\n monthHeaderFormat: 'MMMM yyyy',\n dayHeaderFormat: 'eeee MMM dd',\n dayRangeHeaderFormat: weekRangeFormat$2,\n agendaHeaderFormat: dateRangeFormat$2,\n agendaDateFormat: 'eee MMM dd',\n agendaTimeFormat: {\n time: 'short'\n },\n agendaTimeRangeFormat: timeRangeFormat$2\n};\nfunction globalize (globalize) {\n var locale = function locale(culture) {\n return culture ? globalize(culture) : globalize;\n };\n\n // return the first day of the week from the locale data. Defaults to 'world'\n // territory if no territory is derivable from CLDR.\n // Failing to use CLDR supplemental (not loaded?), revert to the original\n // method of getting first day of week.\n function firstOfWeek(culture) {\n try {\n var days = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'];\n var cldr = locale(culture).cldr;\n var territory = cldr.attributes.territory;\n var weekData = cldr.get('supplemental').weekData;\n var firstDay = weekData.firstDay[territory || '001'];\n return days.indexOf(firstDay);\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') {\n console.error('Failed to accurately determine first day of the week.' + ' Is supplemental data loaded into CLDR?');\n }\n // maybe cldr supplemental is not loaded? revert to original method\n var date = new Date();\n //cldr-data doesn't seem to be zero based\n var localeDay = Math.max(parseInt(locale(culture).formatDate(date, {\n raw: 'e'\n }), 10) - 1, 0);\n return Math.abs(date.getDay() - localeDay);\n }\n }\n if (!globalize.load) return oldGlobalize(globalize);\n return new DateLocalizer({\n firstOfWeek: firstOfWeek,\n formats: formats$2,\n format: function format(value, _format, culture) {\n _format = typeof _format === 'string' ? {\n raw: _format\n } : _format;\n return locale(culture).formatDate(value, _format);\n }\n });\n}\n\nvar dateRangeFormat$1 = function dateRangeFormat(_ref, culture, local) {\n var start = _ref.start,\n end = _ref.end;\n return \"\".concat(local.format(start, 'P', culture), \" \\u2013 \").concat(local.format(end, 'P', culture));\n};\nvar timeRangeFormat$1 = function timeRangeFormat(_ref2, culture, local) {\n var start = _ref2.start,\n end = _ref2.end;\n return \"\".concat(local.format(start, 'p', culture), \" \\u2013 \").concat(local.format(end, 'p', culture));\n};\nvar timeRangeStartFormat$1 = function timeRangeStartFormat(_ref3, culture, local) {\n var start = _ref3.start;\n return \"\".concat(local.format(start, 'h:mma', culture), \" \\u2013 \");\n};\nvar timeRangeEndFormat$1 = function timeRangeEndFormat(_ref4, culture, local) {\n var end = _ref4.end;\n return \" \\u2013 \".concat(local.format(end, 'h:mma', culture));\n};\nvar weekRangeFormat$1 = function weekRangeFormat(_ref5, culture, local) {\n var start = _ref5.start,\n end = _ref5.end;\n return \"\".concat(local.format(start, 'MMMM dd', culture), \" \\u2013 \").concat(local.format(end, eq(start, end, 'month') ? 'dd' : 'MMMM dd', culture));\n};\nvar formats$1 = {\n dateFormat: 'dd',\n dayFormat: 'dd eee',\n weekdayFormat: 'cccc',\n selectRangeFormat: timeRangeFormat$1,\n eventTimeRangeFormat: timeRangeFormat$1,\n eventTimeRangeStartFormat: timeRangeStartFormat$1,\n eventTimeRangeEndFormat: timeRangeEndFormat$1,\n timeGutterFormat: 'p',\n monthHeaderFormat: 'MMMM yyyy',\n dayHeaderFormat: 'cccc MMM dd',\n dayRangeHeaderFormat: weekRangeFormat$1,\n agendaHeaderFormat: dateRangeFormat$1,\n agendaDateFormat: 'ccc MMM dd',\n agendaTimeFormat: 'p',\n agendaTimeRangeFormat: timeRangeFormat$1\n};\nvar dateFnsLocalizer = function dateFnsLocalizer(_ref6) {\n var startOfWeek = _ref6.startOfWeek,\n getDay = _ref6.getDay,\n _format = _ref6.format,\n locales = _ref6.locales;\n return new DateLocalizer({\n formats: formats$1,\n firstOfWeek: function firstOfWeek(culture) {\n return getDay(startOfWeek(new Date(), {\n locale: locales[culture]\n }));\n },\n format: function format(value, formatString, culture) {\n return _format(new Date(value), formatString, {\n locale: locales[culture]\n });\n }\n });\n};\n\nvar weekRangeFormat = function weekRangeFormat(_ref, culture, local) {\n var start = _ref.start,\n end = _ref.end;\n return local.format(start, 'MMMM DD', culture) + ' – ' +\n // updated to use this localizer 'eq()' method\n local.format(end, local.eq(start, end, 'month') ? 'DD' : 'MMMM DD', culture);\n};\nvar dateRangeFormat = function dateRangeFormat(_ref2, culture, local) {\n var start = _ref2.start,\n end = _ref2.end;\n return local.format(start, 'L', culture) + ' – ' + local.format(end, 'L', culture);\n};\nvar timeRangeFormat = function timeRangeFormat(_ref3, culture, local) {\n var start = _ref3.start,\n end = _ref3.end;\n return local.format(start, 'LT', culture) + ' – ' + local.format(end, 'LT', culture);\n};\nvar timeRangeStartFormat = function timeRangeStartFormat(_ref4, culture, local) {\n var start = _ref4.start;\n return local.format(start, 'LT', culture) + ' – ';\n};\nvar timeRangeEndFormat = function timeRangeEndFormat(_ref5, culture, local) {\n var end = _ref5.end;\n return ' – ' + local.format(end, 'LT', culture);\n};\nvar formats = {\n dateFormat: 'DD',\n dayFormat: 'DD ddd',\n weekdayFormat: 'ddd',\n selectRangeFormat: timeRangeFormat,\n eventTimeRangeFormat: timeRangeFormat,\n eventTimeRangeStartFormat: timeRangeStartFormat,\n eventTimeRangeEndFormat: timeRangeEndFormat,\n timeGutterFormat: 'LT',\n monthHeaderFormat: 'MMMM YYYY',\n dayHeaderFormat: 'dddd MMM DD',\n dayRangeHeaderFormat: weekRangeFormat,\n agendaHeaderFormat: dateRangeFormat,\n agendaDateFormat: 'ddd MMM DD',\n agendaTimeFormat: 'LT',\n agendaTimeRangeFormat: timeRangeFormat\n};\nfunction fixUnit(unit) {\n var datePart = unit ? unit.toLowerCase() : unit;\n if (datePart === 'FullYear') {\n datePart = 'year';\n } else if (!datePart) {\n datePart = undefined;\n }\n return datePart;\n}\nfunction dayjs (dayjsLib) {\n // load dayjs plugins\n dayjsLib.extend(isBetween);\n dayjsLib.extend(isSameOrAfter);\n dayjsLib.extend(isSameOrBefore);\n dayjsLib.extend(localeData);\n dayjsLib.extend(localizedFormat);\n dayjsLib.extend(minMax);\n dayjsLib.extend(utc);\n var locale = function locale(dj, c) {\n return c ? dj.locale(c) : dj;\n };\n\n // if the timezone plugin is loaded,\n // then use the timezone aware version\n var dayjs = dayjsLib.tz ? dayjsLib.tz : dayjsLib;\n function getTimezoneOffset(date) {\n // ensures this gets cast to timezone\n return dayjs(date).toDate().getTimezoneOffset();\n }\n function getDstOffset(start, end) {\n var _st$tz$$x$$timezone;\n // convert to dayjs, in case\n var st = dayjs(start);\n var ed = dayjs(end);\n // if not using the dayjs timezone plugin\n if (!dayjs.tz) {\n return st.toDate().getTimezoneOffset() - ed.toDate().getTimezoneOffset();\n }\n /**\n * If a default timezone has been applied, then\n * use this to get the proper timezone offset, otherwise default\n * the timezone to the browser local\n */\n var tzName = (_st$tz$$x$$timezone = st.tz().$x.$timezone) !== null && _st$tz$$x$$timezone !== void 0 ? _st$tz$$x$$timezone : dayjsLib.tz.guess();\n // invert offsets to be inline with moment.js\n var startOffset = -dayjs.tz(+st, tzName).utcOffset();\n var endOffset = -dayjs.tz(+ed, tzName).utcOffset();\n return startOffset - endOffset;\n }\n function getDayStartDstOffset(start) {\n var dayStart = dayjs(start).startOf('day');\n return getDstOffset(dayStart, start);\n }\n\n /*** BEGIN localized date arithmetic methods with dayjs ***/\n function defineComparators(a, b, unit) {\n var datePart = fixUnit(unit);\n var dtA = datePart ? dayjs(a).startOf(datePart) : dayjs(a);\n var dtB = datePart ? dayjs(b).startOf(datePart) : dayjs(b);\n return [dtA, dtB, datePart];\n }\n function startOf() {\n var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var unit = arguments.length > 1 ? arguments[1] : undefined;\n var datePart = fixUnit(unit);\n if (datePart) {\n return dayjs(date).startOf(datePart).toDate();\n }\n return dayjs(date).toDate();\n }\n function endOf() {\n var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var unit = arguments.length > 1 ? arguments[1] : undefined;\n var datePart = fixUnit(unit);\n if (datePart) {\n return dayjs(date).endOf(datePart).toDate();\n }\n return dayjs(date).toDate();\n }\n\n // dayjs comparison operations *always* convert both sides to dayjs objects\n // prior to running the comparisons\n function eq(a, b, unit) {\n var _defineComparators = defineComparators(a, b, unit),\n _defineComparators2 = _slicedToArray(_defineComparators, 3),\n dtA = _defineComparators2[0],\n dtB = _defineComparators2[1],\n datePart = _defineComparators2[2];\n return dtA.isSame(dtB, datePart);\n }\n function neq(a, b, unit) {\n return !eq(a, b, unit);\n }\n function gt(a, b, unit) {\n var _defineComparators3 = defineComparators(a, b, unit),\n _defineComparators4 = _slicedToArray(_defineComparators3, 3),\n dtA = _defineComparators4[0],\n dtB = _defineComparators4[1],\n datePart = _defineComparators4[2];\n return dtA.isAfter(dtB, datePart);\n }\n function lt(a, b, unit) {\n var _defineComparators5 = defineComparators(a, b, unit),\n _defineComparators6 = _slicedToArray(_defineComparators5, 3),\n dtA = _defineComparators6[0],\n dtB = _defineComparators6[1],\n datePart = _defineComparators6[2];\n return dtA.isBefore(dtB, datePart);\n }\n function gte(a, b, unit) {\n var _defineComparators7 = defineComparators(a, b, unit),\n _defineComparators8 = _slicedToArray(_defineComparators7, 3),\n dtA = _defineComparators8[0],\n dtB = _defineComparators8[1],\n datePart = _defineComparators8[2];\n return dtA.isSameOrBefore(dtB, datePart);\n }\n function lte(a, b, unit) {\n var _defineComparators9 = defineComparators(a, b, unit),\n _defineComparators10 = _slicedToArray(_defineComparators9, 3),\n dtA = _defineComparators10[0],\n dtB = _defineComparators10[1],\n datePart = _defineComparators10[2];\n return dtA.isSameOrBefore(dtB, datePart);\n }\n function inRange(day, min, max) {\n var unit = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'day';\n var datePart = fixUnit(unit);\n var djDay = dayjs(day);\n var djMin = dayjs(min);\n var djMax = dayjs(max);\n return djDay.isBetween(djMin, djMax, datePart, '[]');\n }\n function min(dateA, dateB) {\n var dtA = dayjs(dateA);\n var dtB = dayjs(dateB);\n var minDt = dayjsLib.min(dtA, dtB);\n return minDt.toDate();\n }\n function max(dateA, dateB) {\n var dtA = dayjs(dateA);\n var dtB = dayjs(dateB);\n var maxDt = dayjsLib.max(dtA, dtB);\n return maxDt.toDate();\n }\n function merge(date, time) {\n if (!date && !time) return null;\n var tm = dayjs(time).format('HH:mm:ss');\n var dt = dayjs(date).startOf('day').format('MM/DD/YYYY');\n // We do it this way to avoid issues when timezone switching\n return dayjsLib(\"\".concat(dt, \" \").concat(tm), 'MM/DD/YYYY HH:mm:ss').toDate();\n }\n function add(date, adder, unit) {\n var datePart = fixUnit(unit);\n return dayjs(date).add(adder, datePart).toDate();\n }\n function range(start, end) {\n var unit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'day';\n var datePart = fixUnit(unit);\n // because the add method will put these in tz, we have to start that way\n var current = dayjs(start).toDate();\n var days = [];\n while (lte(current, end)) {\n days.push(current);\n current = add(current, 1, datePart);\n }\n return days;\n }\n function ceil(date, unit) {\n var datePart = fixUnit(unit);\n var floor = startOf(date, datePart);\n return eq(floor, date) ? floor : add(floor, 1, datePart);\n }\n function diff(a, b) {\n var unit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'day';\n var datePart = fixUnit(unit);\n // don't use 'defineComparators' here, as we don't want to mutate the values\n var dtA = dayjs(a);\n var dtB = dayjs(b);\n return dtB.diff(dtA, datePart);\n }\n function minutes(date) {\n var dt = dayjs(date);\n return dt.minutes();\n }\n function firstOfWeek(culture) {\n var data = culture ? dayjsLib.localeData(culture) : dayjsLib.localeData();\n return data ? data.firstDayOfWeek() : 0;\n }\n function firstVisibleDay(date) {\n return dayjs(date).startOf('month').startOf('week').toDate();\n }\n function lastVisibleDay(date) {\n return dayjs(date).endOf('month').endOf('week').toDate();\n }\n function visibleDays(date) {\n var current = firstVisibleDay(date);\n var last = lastVisibleDay(date);\n var days = [];\n while (lte(current, last)) {\n days.push(current);\n current = add(current, 1, 'd');\n }\n return days;\n }\n /*** END localized date arithmetic methods with dayjs ***/\n\n /**\n * Moved from TimeSlots.js, this method overrides the method of the same name\n * in the localizer.js, using dayjs to construct the js Date\n * @param {Date} dt - date to start with\n * @param {Number} minutesFromMidnight\n * @param {Number} offset\n * @returns {Date}\n */\n function getSlotDate(dt, minutesFromMidnight, offset) {\n return dayjs(dt).startOf('day').minute(minutesFromMidnight + offset).toDate();\n }\n\n // dayjs will automatically handle DST differences in it's calculations\n function getTotalMin(start, end) {\n return diff(start, end, 'minutes');\n }\n function getMinutesFromMidnight(start) {\n var dayStart = dayjs(start).startOf('day');\n var day = dayjs(start);\n return day.diff(dayStart, 'minutes') + getDayStartDstOffset(start);\n }\n\n // These two are used by DateSlotMetrics\n function continuesPrior(start, first) {\n var djStart = dayjs(start);\n var djFirst = dayjs(first);\n return djStart.isBefore(djFirst, 'day');\n }\n function continuesAfter(start, end, last) {\n var djEnd = dayjs(end);\n var djLast = dayjs(last);\n return djEnd.isSameOrAfter(djLast, 'minutes');\n }\n\n // These two are used by eventLevels\n function sortEvents(_ref6) {\n var _ref6$evtA = _ref6.evtA,\n aStart = _ref6$evtA.start,\n aEnd = _ref6$evtA.end,\n aAllDay = _ref6$evtA.allDay,\n _ref6$evtB = _ref6.evtB,\n bStart = _ref6$evtB.start,\n bEnd = _ref6$evtB.end,\n bAllDay = _ref6$evtB.allDay;\n var startSort = +startOf(aStart, 'day') - +startOf(bStart, 'day');\n var durA = diff(aStart, ceil(aEnd, 'day'), 'day');\n var durB = diff(bStart, ceil(bEnd, 'day'), 'day');\n return startSort ||\n // sort by start Day first\n Math.max(durB, 1) - Math.max(durA, 1) ||\n // events spanning multiple days go first\n !!bAllDay - !!aAllDay ||\n // then allDay single day events\n +aStart - +bStart ||\n // then sort by start time *don't need dayjs conversion here\n +aEnd - +bEnd // then sort by end time *don't need dayjs conversion here either\n ;\n }\n\n function inEventRange(_ref7) {\n var _ref7$event = _ref7.event,\n start = _ref7$event.start,\n end = _ref7$event.end,\n _ref7$range = _ref7.range,\n rangeStart = _ref7$range.start,\n rangeEnd = _ref7$range.end;\n var startOfDay = dayjs(start).startOf('day');\n var eEnd = dayjs(end);\n var rStart = dayjs(rangeStart);\n var rEnd = dayjs(rangeEnd);\n var startsBeforeEnd = startOfDay.isSameOrBefore(rEnd, 'day');\n // when the event is zero duration we need to handle a bit differently\n var sameMin = !startOfDay.isSame(eEnd, 'minutes');\n var endsAfterStart = sameMin ? eEnd.isAfter(rStart, 'minutes') : eEnd.isSameOrAfter(rStart, 'minutes');\n return startsBeforeEnd && endsAfterStart;\n }\n function isSameDate(date1, date2) {\n var dt = dayjs(date1);\n var dt2 = dayjs(date2);\n return dt.isSame(dt2, 'day');\n }\n\n /**\n * This method, called once in the localizer constructor, is used by eventLevels\n * 'eventSegments()' to assist in determining the 'span' of the event in the display,\n * specifically when using a timezone that is greater than the browser native timezone.\n * @returns number\n */\n function browserTZOffset() {\n /**\n * Date.prototype.getTimezoneOffset horrifically flips the positive/negative from\n * what you see in it's string, so we have to jump through some hoops to get a value\n * we can actually compare.\n */\n var dt = new Date();\n var neg = /-/.test(dt.toString()) ? '-' : '';\n var dtOffset = dt.getTimezoneOffset();\n var comparator = Number(\"\".concat(neg).concat(Math.abs(dtOffset)));\n // dayjs correctly provides positive/negative offset, as expected\n var mtOffset = dayjs().utcOffset();\n return mtOffset > comparator ? 1 : 0;\n }\n return new DateLocalizer({\n formats: formats,\n firstOfWeek: firstOfWeek,\n firstVisibleDay: firstVisibleDay,\n lastVisibleDay: lastVisibleDay,\n visibleDays: visibleDays,\n format: function format(value, _format, culture) {\n return locale(dayjs(value), culture).format(_format);\n },\n lt: lt,\n lte: lte,\n gt: gt,\n gte: gte,\n eq: eq,\n neq: neq,\n merge: merge,\n inRange: inRange,\n startOf: startOf,\n endOf: endOf,\n range: range,\n add: add,\n diff: diff,\n ceil: ceil,\n min: min,\n max: max,\n minutes: minutes,\n getSlotDate: getSlotDate,\n getTimezoneOffset: getTimezoneOffset,\n getDstOffset: getDstOffset,\n getTotalMin: getTotalMin,\n getMinutesFromMidnight: getMinutesFromMidnight,\n continuesPrior: continuesPrior,\n continuesAfter: continuesAfter,\n sortEvents: sortEvents,\n inEventRange: inEventRange,\n isSameDate: isSameDate,\n browserTZOffset: browserTZOffset\n });\n}\n\nvar components = {\n eventWrapper: NoopWrapper,\n timeSlotWrapper: NoopWrapper,\n dateCellWrapper: NoopWrapper\n};\n\nexport { Calendar$1 as Calendar, DateLocalizer, navigate as Navigate, views as Views, components, dateFnsLocalizer, dayjs as dayjsLocalizer, globalize as globalizeLocalizer, luxon as luxonLocalizer, moment as momentLocalizer, moveDate as move };\n","import hasClass from './hasClass';\n/**\n * Adds a CSS class to a given element.\n * \n * @param element the element\n * @param className the CSS class name\n */\n\nexport default function addClass(element, className) {\n if (element.classList) element.classList.add(className);else if (!hasClass(element, className)) if (typeof element.className === 'string') element.className = element.className + \" \" + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + \" \" + className);\n}","/**\n * Checks if a given element has a CSS class.\n * \n * @param element the element\n * @param className the CSS class name\n */\nexport default function hasClass(element, className) {\n if (element.classList) return !!className && element.classList.contains(className);\n return (\" \" + (element.className.baseVal || element.className) + \" \").indexOf(\" \" + className + \" \") !== -1;\n}","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nvar _jsxFileName = \"/Users/jquense/src/uncontrollable/src/uncontrollable.js\";\nimport React from 'react';\nimport { polyfill } from 'react-lifecycles-compat';\nimport invariant from 'invariant';\nimport * as Utils from './utils';\nexport default function uncontrollable(Component, controlledValues, methods) {\n if (methods === void 0) {\n methods = [];\n }\n\n var displayName = Component.displayName || Component.name || 'Component';\n var canAcceptRef = Utils.canAcceptRef(Component);\n var controlledProps = Object.keys(controlledValues);\n var PROPS_TO_OMIT = controlledProps.map(Utils.defaultKey);\n !(canAcceptRef || !methods.length) ? process.env.NODE_ENV !== \"production\" ? invariant(false, '[uncontrollable] stateless function components cannot pass through methods ' + 'because they have no associated instances. Check component: ' + displayName + ', ' + 'attempting to pass through methods: ' + methods.join(', ')) : invariant(false) : void 0;\n\n var UncontrolledComponent =\n /*#__PURE__*/\n function (_React$Component) {\n _inheritsLoose(UncontrolledComponent, _React$Component);\n\n function UncontrolledComponent() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this.handlers = Object.create(null);\n controlledProps.forEach(function (propName) {\n var handlerName = controlledValues[propName];\n\n var handleChange = function handleChange(value) {\n if (_this.props[handlerName]) {\n var _this$props;\n\n _this._notifying = true;\n\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n (_this$props = _this.props)[handlerName].apply(_this$props, [value].concat(args));\n\n _this._notifying = false;\n }\n\n if (!_this.unmounted) _this.setState(function (_ref) {\n var _extends2;\n\n var values = _ref.values;\n return {\n values: _extends(Object.create(null), values, (_extends2 = {}, _extends2[propName] = value, _extends2))\n };\n });\n };\n\n _this.handlers[handlerName] = handleChange;\n });\n if (methods.length) _this.attachRef = function (ref) {\n _this.inner = ref;\n };\n var values = Object.create(null);\n controlledProps.forEach(function (key) {\n values[key] = _this.props[Utils.defaultKey(key)];\n });\n _this.state = {\n values: values,\n prevProps: {}\n };\n return _this;\n }\n\n var _proto = UncontrolledComponent.prototype;\n\n _proto.shouldComponentUpdate = function shouldComponentUpdate() {\n //let setState trigger the update\n return !this._notifying;\n };\n\n UncontrolledComponent.getDerivedStateFromProps = function getDerivedStateFromProps(props, _ref2) {\n var values = _ref2.values,\n prevProps = _ref2.prevProps;\n var nextState = {\n values: _extends(Object.create(null), values),\n prevProps: {}\n };\n controlledProps.forEach(function (key) {\n /**\n * If a prop switches from controlled to Uncontrolled\n * reset its value to the defaultValue\n */\n nextState.prevProps[key] = props[key];\n\n if (!Utils.isProp(props, key) && Utils.isProp(prevProps, key)) {\n nextState.values[key] = props[Utils.defaultKey(key)];\n }\n });\n return nextState;\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.unmounted = true;\n };\n\n _proto.render = function render() {\n var _this2 = this;\n\n var _this$props2 = this.props,\n innerRef = _this$props2.innerRef,\n props = _objectWithoutPropertiesLoose(_this$props2, [\"innerRef\"]);\n\n PROPS_TO_OMIT.forEach(function (prop) {\n delete props[prop];\n });\n var newProps = {};\n controlledProps.forEach(function (propName) {\n var propValue = _this2.props[propName];\n newProps[propName] = propValue !== undefined ? propValue : _this2.state.values[propName];\n });\n return React.createElement(Component, _extends({}, props, newProps, this.handlers, {\n ref: innerRef || this.attachRef\n }));\n };\n\n return UncontrolledComponent;\n }(React.Component);\n\n polyfill(UncontrolledComponent);\n UncontrolledComponent.displayName = \"Uncontrolled(\" + displayName + \")\";\n UncontrolledComponent.propTypes = _extends({\n innerRef: function innerRef() {}\n }, Utils.uncontrolledPropTypes(controlledValues, displayName));\n methods.forEach(function (method) {\n UncontrolledComponent.prototype[method] = function $proxiedMethod() {\n var _this$inner;\n\n return (_this$inner = this.inner)[method].apply(_this$inner, arguments);\n };\n });\n var WrappedComponent = UncontrolledComponent;\n\n if (React.forwardRef) {\n WrappedComponent = React.forwardRef(function (props, ref) {\n return React.createElement(UncontrolledComponent, _extends({}, props, {\n innerRef: ref,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 128\n },\n __self: this\n }));\n });\n WrappedComponent.propTypes = UncontrolledComponent.propTypes;\n }\n\n WrappedComponent.ControlledComponent = Component;\n /**\n * useful when wrapping a Component and you want to control\n * everything\n */\n\n WrappedComponent.deferControlTo = function (newComponent, additions, nextMethods) {\n if (additions === void 0) {\n additions = {};\n }\n\n return uncontrollable(newComponent, _extends({}, controlledValues, additions), nextMethods);\n };\n\n return WrappedComponent;\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}","import { Calendar, momentLocalizer } from 'react-big-calendar'\nimport moment from 'moment'\nimport { useEffect, useState } from 'react';\nimport chroma from 'chroma-js';\nimport 'moment/locale/en-gb';\nimport { SelectedCourses } from './SelectedCourses';\n\nfunction generateRandomColor() {\n let color;\n do {\n // Generate a random color\n color = chroma.random();\n } while (!chroma.contrast(color, 'white') >= 4.5); // Ensure sufficient contrast with white (you can change this value as needed)\n\n return color.hex();\n}\n\nfunction createDates(lectures,subjectCode) {\n const unique = generateRandomColor();\n var events = []\n lectures.forEach((activity,i) => {\n const [dateStart,dateEnd] = weekDayToDate(activity)\n events.push({\n id: i,\n title: \"Lecture: \"+subjectCode,\n start: dateStart,\n end: dateEnd,\n backgroundColor: unique\n })\n });\n return events\n}\n\nfunction parseWeekDay(activity) {\n const dayMap = {\n sun: 7,\n mon: 1,\n tue: 2,\n wed: 3,\n thu: 4,\n fri: 5,\n sat: 6,\n };\n\n const [startTimeStr, endTimeStr] = activity[1].split('-');\n\n const startTimeParts = startTimeStr.split(':');\n const endTimeParts = endTimeStr.split(':');\n\n return [dayMap[activity[0]],startTimeParts,endTimeParts]\n}\n\nfunction getPreviousSunday() {\n const currentDate = new Date();\n const currentDay = currentDate.getDay(); // 0 for Sunday, 1 for Monday, ..., 6 for Saturday\n const daysUntilPreviousSunday = currentDay === 0 ? 7 : currentDay; // Calculate how many days to subtract to reach the previous Sunday\n\n const sundayDate = new Date(currentDate);\n sundayDate.setDate(currentDate.getDate() - daysUntilPreviousSunday);\n\n // Set the time to midnight (00:00:00) to get the start of Sunday\n sundayDate.setHours(0, 0, 0, 0);\n\n return sundayDate;\n}\n\nfunction weekDayToDate(activity) {\n const arr = parseWeekDay(activity)\n // get the start of the period\n let day = arr[0]; // Mon : 1, Tue: 2, Wed: 3 ...\n let startHours = parseInt(arr[1][0]);\n let startMinutes = parseInt(arr[1][1]);\n let endHours = parseInt(arr[2][0]);\n let endMinutes = parseInt(arr[2][1]);\n\n let dateStart = getPreviousSunday();\n dateStart.setDate(dateStart.getDate() + (day !== dateStart.getDay() ? (day + 7 - dateStart.getDay()) % 7 : 7));\n dateStart.setHours(startHours, startMinutes, 0, 0)\n\n // get the end of the period\n let dateEnd = getPreviousSunday();\n dateEnd.setDate(dateEnd.getDate() + (day !== dateEnd.getDay() ? (day + 7 - dateEnd.getDay()) % 7 : 7));\n dateEnd.setHours(endHours, endMinutes, 0, 0)\n\n return [dateStart,dateEnd]\n}\n\nfunction Schedule(props) {\n const [allevents, setAllEvents] = useState([]);\n\n useEffect(() => {\n const updatedEvents = [];\n props.selected.forEach((courseObject, i) => {\n const events = createDates(courseObject.lectures, courseObject.subjectCode);\n updatedEvents.push(...events); \n });\n setAllEvents(updatedEvents);\n }, [props.selected]);\n\n // Setup the localizer by providing the moment (or globalize, or Luxon) Object\n // to the correct localizer.\n moment.locale('en-GB');\n const localizer = momentLocalizer(moment) // or globalizeLocalizer\n\n // myEventsList can be a state.\n // Each course can be a button, and when you click on it, \n // it will be displayed. With a color\n\n const minDate = new Date();\n minDate.setHours(7);\n\n const maxDate = new Date();\n maxDate.setHours(20);\n\n const eventPropGetter = (event) => {\n // Customize event properties based on your logic\n return {\n style: {\n backgroundColor: event.backgroundColor, // You can set other styles as well\n }\n };\n };\n\n const onSetSelectedSubjects = (subject,should_add) => {\n props.changeSelected(subject,false)\n }\n\n const MyCalendar = () => (\n \n \n
\n )\n\n return <>\n Calendar of selected courses!
\n \n \n >\n}\n\nexport default Schedule;\n\n// TODO: create a smart schedule where we use AI","import React from \"react\";\n\nexport function Navigation(props) {\n return (\n \n
\n \n
\n
\n \n
\n \n
\n );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"App_container__Rt8T2\",\"left\":\"App_left__yierV\",\"right\":\"App_right__TxKjn\"};","import './App.css';\nimport Courses from './Courses';\nimport Schedule from './Schedule';\nimport courses from './jsonfiles/courses.json'\nimport 'react-big-calendar/lib/css/react-big-calendar.css';\nimport { useState } from 'react';\nimport { Navigation } from './Navigation';\nimport classes from \"./App.module.css\";\n\nfunction App() {\n\n /* The entry point for the webapp \n Handles selected subjects (the subjects you have chosen)\n Renders all of the needed components*/\n\n const [activePage, setActivePage] = useState(\"Calendar\");\n const [selectedSubjects, setSelectedSubjects] = useState([]);\n\n function activePageHandler(page) {\n setActivePage(page);\n }\n\n const onSetSelectedSubjects = (subject,should_add) => {\n if (should_add) {\n setSelectedSubjects( previousValue => \n [...previousValue, subject]\n )}\n else {\n setSelectedSubjects ( previousValue =>\n previousValue.filter((s) =>\n s !== subject)\n )\n }\n }\n\n return (\n \n \n \n );\n}\n\nexport default App;\n// \n","const reportWebVitals = onPerfEntry => {\n if (onPerfEntry && onPerfEntry instanceof Function) {\n import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {\n getCLS(onPerfEntry);\n getFID(onPerfEntry);\n getFCP(onPerfEntry);\n getLCP(onPerfEntry);\n getTTFB(onPerfEntry);\n });\n }\n};\n\nexport default reportWebVitals;\n","import React from 'react';\nimport ReactDOM from 'react-dom/client';\nimport './index.css';\nimport App from './App';\nimport reportWebVitals from './reportWebVitals';\n\nconst root = ReactDOM.createRoot(document.getElementById('root'));\nroot.render(\n \n \n \n);\n\n// If you want to start measuring performance in your app, pass a function\n// to log results (for example: reportWebVitals(console.log))\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\nreportWebVitals();\n"],"names":["hasOwn","hasOwnProperty","classNames","classes","i","arguments","length","arg","argType","push","Array","isArray","inner","apply","toString","Object","prototype","includes","key","call","join","module","exports","default","e","t","isBetween","s","f","n","o","r","u","this","isAfter","isBefore","isSameOrAfter","isSame","isSameOrBefore","indexOf","name","$locale","a","map","slice","d","weekStart","Ls","locale","formats","replace","toUpperCase","months","format","monthsShort","firstDayOfWeek","weekdays","weekdaysMin","weekdaysShort","longDateFormat","meridiem","ordinal","localeData","bind","LTS","LT","L","LL","LLL","LLLL","en","filter","isValid","max","min","utc","date","args","toDate","$L","add","utcOffset","local","parse","$u","$utils","$offset","init","$d","$y","getUTCFullYear","$M","getUTCMonth","$D","getUTCDate","$W","getUTCDay","$H","getUTCHours","$m","getUTCMinutes","$s","getUTCSeconds","$ms","getUTCMilliseconds","match","Math","abs","getTimezoneOffset","$x","$localOffset","h","valueOf","isUTC","toISOString","toUTCString","l","c","diff","condition","b","error","undefined","Error","argIndex","framesToPop","moment","defineLocale","split","calendar","sameDay","nextDay","nextWeek","lastDay","lastWeek","sameElse","relativeTime","future","past","ss","m","mm","hh","dd","M","MM","y","yy","dayOfMonthOrdinalParse","number","week","dow","doy","factory","require","hookCallback","some","hooks","setHookCallback","callback","input","isObject","hasOwnProp","isObjectEmpty","obj","getOwnPropertyNames","k","isUndefined","isNumber","isDate","Date","arr","fn","res","arrLen","extend","createUTC","strict","createLocalOrUTC","defaultParsingFlags","empty","unusedTokens","unusedInput","overflow","charsLeftOver","nullInput","invalidEra","invalidMonth","invalidFormat","userInvalidated","iso","parsedDateParts","era","rfc2822","weekdayMismatch","getParsingFlags","_pf","_isValid","flags","parsedParts","isNowValid","isNaN","_d","getTime","invalidWeekday","_strict","bigHour","isFrozen","createInvalid","NaN","fun","len","momentProperties","updateInProgress","copyConfig","to","from","prop","val","momentPropertiesLen","_isAMomentObject","_i","_f","_l","_tzm","_isUTC","_offset","_locale","Moment","config","updateOffset","isMoment","warn","msg","suppressDeprecationWarnings","console","deprecate","firstTime","deprecationHandler","argLen","stack","keys","deprecations","deprecateSimple","isFunction","Function","set","_config","_dayOfMonthOrdinalParseLenient","RegExp","_dayOfMonthOrdinalParse","source","_ordinalParse","mergeConfigs","parentConfig","childConfig","Locale","defaultCalendar","mom","now","output","_calendar","zeroFill","targetLength","forceSign","absNumber","zerosToFill","pow","substr","formattingTokens","localFormattingTokens","formatFunctions","formatTokenFunctions","addFormatToken","token","padded","func","removeFormattingTokens","makeFormatFunction","array","formatMoment","expandFormat","invalidDate","replaceLongDateFormatTokens","lastIndex","test","defaultLongDateFormat","_longDateFormat","formatUpper","tok","defaultInvalidDate","_invalidDate","defaultOrdinal","defaultDayOfMonthOrdinalParse","_ordinal","defaultRelativeTime","w","ww","withoutSuffix","string","isFuture","_relativeTime","pastFuture","aliases","addUnitAlias","unit","shorthand","lowerCase","toLowerCase","normalizeUnits","units","normalizeObjectUnits","inputObject","normalizedProp","normalizedInput","priorities","addUnitPriority","priority","getPrioritizedUnits","unitsObj","sort","isLeapYear","year","absFloor","ceil","floor","toInt","argumentForCoercion","coercedNumber","value","isFinite","makeGetSet","keepTime","set$1","get","month","daysInMonth","stringGet","stringSet","prioritized","prioritizedLen","regexes","match1","match2","match3","match4","match6","match1to2","match3to4","match5to6","match1to3","match1to4","match1to6","matchUnsigned","matchSigned","matchOffset","matchShortOffset","matchTimestamp","matchWord","addRegexToken","regex","strictRegex","isStrict","getParseRegexForToken","unescapeFormat","regexEscape","matched","p1","p2","p3","p4","tokens","addParseToken","tokenLen","addWeekParseToken","_w","addTimeToArrayFromToken","_a","YEAR","MONTH","DATE","HOUR","MINUTE","SECOND","MILLISECOND","WEEK","WEEKDAY","mod","x","modMonth","monthsShortRegex","monthsRegex","monthsParse","defaultLocaleMonths","defaultLocaleMonthsShort","MONTHS_IN_FORMAT","defaultMonthsShortRegex","defaultMonthsRegex","localeMonths","_months","isFormat","localeMonthsShort","_monthsShort","handleStrictParse","monthName","ii","llc","toLocaleLowerCase","_monthsParse","_longMonthsParse","_shortMonthsParse","localeMonthsParse","_monthsParseExact","setMonth","dayOfMonth","getSetMonth","getDaysInMonth","computeMonthsParse","_monthsShortStrictRegex","_monthsShortRegex","_monthsStrictRegex","_monthsRegex","cmpLenRev","shortPieces","longPieces","mixedPieces","daysInYear","parseTwoDigitYear","parseInt","getSetYear","getIsLeapYear","createDate","ms","getFullYear","setFullYear","createUTCDate","UTC","setUTCFullYear","firstWeekOffset","fwd","dayOfYearFromWeeks","weekday","resYear","resDayOfYear","dayOfYear","weekOfYear","resWeek","weekOffset","weeksInYear","weekOffsetNext","localeWeek","_week","defaultLocaleWeek","localeFirstDayOfWeek","localeFirstDayOfYear","getSetWeek","getSetISOWeek","parseWeekday","weekdaysParse","parseIsoWeekday","shiftWeekdays","ws","concat","weekdaysMinRegex","weekdaysShortRegex","weekdaysRegex","defaultLocaleWeekdays","defaultLocaleWeekdaysShort","defaultLocaleWeekdaysMin","defaultWeekdaysRegex","defaultWeekdaysShortRegex","defaultWeekdaysMinRegex","localeWeekdays","_weekdays","day","localeWeekdaysShort","_weekdaysShort","localeWeekdaysMin","_weekdaysMin","handleStrictParse$1","weekdayName","_weekdaysParse","_shortWeekdaysParse","_minWeekdaysParse","localeWeekdaysParse","_weekdaysParseExact","_fullWeekdaysParse","getSetDayOfWeek","getDay","getSetLocaleDayOfWeek","getSetISODayOfWeek","computeWeekdaysParse","_weekdaysStrictRegex","_weekdaysRegex","_weekdaysShortStrictRegex","_weekdaysShortRegex","_weekdaysMinStrictRegex","_weekdaysMinRegex","minp","shortp","longp","minPieces","hFormat","hours","kFormat","lowercase","minutes","matchMeridiem","_meridiemParse","localeIsPM","charAt","seconds","kInput","_isPm","isPM","_meridiem","pos","pos1","pos2","defaultLocaleMeridiemParse","getSetHour","localeMeridiem","isLower","globalLocale","baseConfig","meridiemParse","locales","localeFamilies","commonPrefix","arr1","arr2","minl","normalizeLocale","chooseLocale","names","j","next","loadLocale","isLocaleNameSane","oldLocale","_abbr","aliasedRequire","getSetGlobalLocale","values","data","getLocale","abbr","parentLocale","forEach","updateLocale","tmpLocale","listLocales","checkOverflow","_overflowDayOfYear","_overflowWeeks","_overflowWeekday","extendedIsoRegex","basicIsoRegex","tzRegex","isoDates","isoTimes","aspNetJsonRegex","obsOffsets","UT","GMT","EDT","EST","CDT","CST","MDT","MST","PDT","PST","configFromISO","allowTime","dateFormat","timeFormat","tzFormat","exec","isoDatesLen","isoTimesLen","configFromStringAndFormat","extractFromRFC2822Strings","yearStr","monthStr","dayStr","hourStr","minuteStr","secondStr","result","untruncateYear","preprocessRFC2822","checkWeekday","weekdayStr","parsedInput","calculateOffset","obsOffset","militaryOffset","numOffset","hm","configFromRFC2822","parsedArray","setUTCMinutes","configFromString","createFromInputFallback","defaults","currentDateArray","nowValue","_useUTC","getMonth","getDate","configFromArray","currentDate","expectedWeekday","yearToUse","dayOfYearFromWeekInfo","_dayOfYear","_nextDay","weekYear","temp","weekdayOverflow","curWeek","GG","W","E","createLocal","gg","ISO_8601","RFC_2822","skipped","stringLength","totalParsedInputLength","meridiemFixWrap","erasConvertYear","hour","isPm","meridiemHour","configFromStringAndArray","tempConfig","bestMoment","scoreToBeat","currentScore","validFormatFound","bestFormatIsValid","configfLen","score","configFromObject","dayOrDate","minute","second","millisecond","createFromConfig","prepareConfig","preparse","configFromInput","prototypeMin","other","prototypeMax","pickBy","moments","ordering","isDurationValid","unitHasDecimal","orderLen","parseFloat","isValid$1","createInvalid$1","createDuration","Duration","duration","years","quarters","quarter","weeks","isoWeek","days","milliseconds","_milliseconds","_days","_data","_bubble","isDuration","absRound","round","compareArrays","array1","array2","dontConvert","lengthDiff","diffs","offset","separator","sign","offsetFromString","chunkOffset","matcher","parts","matches","cloneWithOffset","model","clone","setTime","getDateOffset","getSetOffset","keepLocalTime","keepMinutes","localAdjust","_changeInProgress","addSubtract","getSetZone","setOffsetToUTC","setOffsetToLocal","subtract","setOffsetToParsedOffset","tZone","hasAlignedHourOffset","isDaylightSavingTime","isDaylightSavingTimeShifted","_isDSTShifted","toArray","isLocal","isUtcOffset","isUtc","aspNetRegex","isoRegex","ret","diffRes","parseIso","momentsDifference","inp","positiveMomentsDifference","base","createAdder","direction","period","tmp","isAdding","invalid","isString","String","isMomentInput","isNumberOrStringArray","isMomentInputObject","property","objectTest","propertyTest","properties","propertyLen","arrayTest","dataTypeTest","item","isCalendarSpec","getCalendarFormat","myMoment","calendar$1","time","sod","startOf","calendarFormat","localInput","endOf","inclusivity","localFrom","localTo","inputMs","asFloat","that","zoneDelta","monthDiff","wholeMonthDiff","anchor","keepOffset","inspect","prefix","datetime","suffix","zone","inputString","defaultFormatUtc","defaultFormat","postformat","humanize","fromNow","toNow","newLocaleData","lang","MS_PER_SECOND","MS_PER_MINUTE","MS_PER_HOUR","MS_PER_400_YEARS","mod$1","dividend","divisor","localStartOfDate","utcStartOfDate","startOfDate","isoWeekday","unix","toObject","toJSON","isValid$2","parsingFlags","invalidAt","creationData","localeEras","eras","_eras","since","until","localeErasParse","eraName","narrow","localeErasConvertYear","dir","getEraName","getEraNarrow","getEraAbbr","getEraYear","erasNameRegex","computeErasParse","_erasNameRegex","_erasRegex","erasAbbrRegex","_erasAbbrRegex","erasNarrowRegex","_erasNarrowRegex","matchEraAbbr","matchEraName","matchEraNarrow","matchEraYearOrdinal","_eraYearOrdinalRegex","abbrPieces","namePieces","narrowPieces","addWeekYearFormatToken","getter","getSetWeekYear","getSetWeekYearHelper","getSetISOWeekYear","getISOWeeksInYear","getISOWeeksInISOWeekYear","isoWeekYear","getWeeksInYear","weekInfo","getWeeksInWeekYear","weeksTarget","setWeekAll","dayOfYearData","getSetQuarter","erasParse","eraYearOrdinalParse","getSetDayOfMonth","getSetDayOfYear","getSetMinute","getSetMillisecond","getSetSecond","parseMs","getZoneAbbr","getZoneName","proto","createUnix","createInZone","parseZone","preParsePostFormat","Symbol","for","eraNarrow","eraAbbr","eraYear","isoWeeks","weeksInWeekYear","isoWeeksInYear","isoWeeksInISOWeekYear","isDST","zoneAbbr","zoneName","dates","isDSTShifted","proto$1","get$1","index","field","setter","listMonthsImpl","out","listWeekdaysImpl","localeSorted","shift","listMonths","listMonthsShort","listWeekdays","listWeekdaysShort","listWeekdaysMin","firstDayOfYear","langData","mathAbs","addSubtract$1","add$1","subtract$1","absCeil","bubble","monthsFromDays","monthsToDays","daysToMonths","as","valueOf$1","makeAs","alias","asMilliseconds","asSeconds","asMinutes","asHours","asDays","asWeeks","asMonths","asQuarters","asYears","clone$1","get$2","makeGetter","thresholds","substituteTimeAgo","relativeTime$1","posNegDuration","getSetRelativeTimeRounding","roundingFunction","getSetRelativeTimeThreshold","threshold","limit","argWithSuffix","argThresholds","withSuffix","th","assign","abs$1","toISOString$1","totalSign","ymSign","daysSign","hmsSign","total","toFixed","proto$2","toIsoString","version","relativeTimeRounding","relativeTimeThreshold","HTML5_FMT","DATETIME_LOCAL","DATETIME_LOCAL_SECONDS","DATETIME_LOCAL_MS","TIME","TIME_SECONDS","TIME_MS","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","props","propName","componentName","location","propFullName","secret","err","getShim","isRequired","ReactPropTypes","bigint","bool","object","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","aa","ca","p","encodeURIComponent","da","Set","ea","fa","ha","ia","window","document","createElement","ja","ka","la","ma","v","g","acceptsBooleans","attributeName","attributeNamespace","mustUseProperty","propertyName","type","sanitizeURL","removeEmptyString","z","ra","sa","ta","pa","qa","oa","removeAttribute","setAttribute","setAttributeNS","xlinkHref","ua","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","va","wa","ya","za","Aa","Ba","Ca","Da","Ea","Fa","Ga","Ha","Ia","Ja","iterator","Ka","La","A","Ma","trim","Na","Oa","prepareStackTrace","defineProperty","Reflect","construct","displayName","Pa","tag","render","Qa","$$typeof","_context","_payload","_init","Ra","Sa","Ta","nodeName","Va","_valueTracker","getOwnPropertyDescriptor","constructor","configurable","enumerable","getValue","setValue","stopTracking","Ua","Wa","checked","Xa","activeElement","body","Ya","defaultChecked","defaultValue","_wrapperState","initialChecked","Za","initialValue","controlled","ab","bb","cb","db","ownerDocument","eb","fb","options","selected","defaultSelected","disabled","gb","dangerouslySetInnerHTML","children","hb","ib","jb","textContent","kb","lb","mb","nb","namespaceURI","innerHTML","firstChild","removeChild","appendChild","MSApp","execUnsafeLocalFunction","ob","lastChild","nodeType","nodeValue","pb","animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridArea","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","fontWeight","lineClamp","lineHeight","opacity","order","orphans","tabSize","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","qb","rb","sb","style","setProperty","substring","tb","menuitem","area","br","col","embed","hr","img","keygen","link","meta","param","track","wbr","ub","vb","is","wb","xb","target","srcElement","correspondingUseElement","parentNode","yb","zb","Ab","Bb","Cb","stateNode","Db","Eb","Fb","Gb","Hb","Ib","Jb","Kb","Lb","Mb","addEventListener","removeEventListener","Nb","onError","Ob","Pb","Qb","Rb","Sb","Tb","Vb","alternate","return","Wb","memoizedState","dehydrated","Xb","Zb","child","sibling","current","Yb","$b","ac","unstable_scheduleCallback","bc","unstable_cancelCallback","cc","unstable_shouldYield","dc","unstable_requestPaint","B","unstable_now","ec","unstable_getCurrentPriorityLevel","fc","unstable_ImmediatePriority","gc","unstable_UserBlockingPriority","hc","unstable_NormalPriority","ic","unstable_LowPriority","jc","unstable_IdlePriority","kc","lc","oc","clz32","pc","qc","log","LN2","rc","sc","tc","uc","pendingLanes","suspendedLanes","pingedLanes","entangledLanes","entanglements","vc","xc","yc","zc","Ac","eventTimes","Cc","C","Dc","Ec","Fc","Gc","Hc","Ic","Jc","Kc","Lc","Mc","Nc","Oc","Map","Pc","Qc","Rc","Sc","delete","pointerId","Tc","nativeEvent","blockedOn","domEventName","eventSystemFlags","targetContainers","Vc","Wc","isDehydrated","containerInfo","Xc","Yc","dispatchEvent","Zc","$c","ad","bd","cd","ReactCurrentBatchConfig","ed","transition","fd","gd","hd","id","Uc","stopPropagation","jd","kd","ld","md","nd","od","keyCode","charCode","pd","qd","rd","_reactName","_targetInst","currentTarget","isDefaultPrevented","defaultPrevented","returnValue","isPropagationStopped","preventDefault","cancelBubble","persist","isPersistent","wd","xd","yd","sd","eventPhase","bubbles","cancelable","timeStamp","isTrusted","td","ud","view","detail","vd","Ad","screenX","screenY","clientX","clientY","pageX","pageY","ctrlKey","shiftKey","altKey","metaKey","getModifierState","zd","button","buttons","relatedTarget","fromElement","toElement","movementX","movementY","Bd","Dd","dataTransfer","Fd","Hd","animationName","elapsedTime","pseudoElement","Id","clipboardData","Jd","Ld","Md","Esc","Spacebar","Left","Up","Right","Down","Del","Win","Menu","Apps","Scroll","MozPrintableKey","Nd","Od","Alt","Control","Meta","Shift","Pd","Qd","fromCharCode","code","repeat","which","Rd","Td","width","height","pressure","tangentialPressure","tiltX","tiltY","twist","pointerType","isPrimary","Vd","touches","targetTouches","changedTouches","Xd","Yd","deltaX","wheelDeltaX","deltaY","wheelDeltaY","wheelDelta","deltaZ","deltaMode","Zd","ae","be","documentMode","ce","de","ee","fe","ge","he","ie","le","color","email","password","range","search","tel","text","url","me","ne","oe","event","listeners","pe","qe","re","se","te","ue","ve","we","xe","ye","ze","oninput","Ae","detachEvent","Be","Ce","attachEvent","De","Ee","Fe","He","Ie","Je","Ke","nextSibling","Le","contains","compareDocumentPosition","Me","HTMLIFrameElement","contentWindow","href","Ne","contentEditable","Oe","focusedElem","selectionRange","documentElement","start","end","selectionStart","selectionEnd","defaultView","getSelection","rangeCount","anchorNode","anchorOffset","focusNode","focusOffset","createRange","setStart","removeAllRanges","addRange","setEnd","left","scrollLeft","top","scrollTop","focus","Pe","Qe","Re","Se","Te","Ue","Ve","We","animationend","animationiteration","animationstart","transitionend","Xe","Ye","Ze","animation","$e","af","bf","cf","df","ef","ff","gf","hf","lf","mf","nf","Ub","instance","listener","D","of","has","pf","qf","rf","random","sf","capture","passive","J","F","tf","uf","parentWindow","vf","wf","na","xa","$a","ba","je","char","ke","unshift","xf","yf","zf","Af","Bf","Cf","Df","Ef","__html","Ff","setTimeout","Gf","clearTimeout","Hf","Promise","Jf","queueMicrotask","resolve","then","catch","If","Kf","Lf","Mf","previousSibling","Nf","Of","Pf","Qf","Rf","Sf","Tf","Uf","G","Vf","H","Wf","Xf","Yf","contextTypes","__reactInternalMemoizedUnmaskedChildContext","__reactInternalMemoizedMaskedChildContext","Zf","childContextTypes","$f","ag","bg","getChildContext","cg","__reactInternalMemoizedMergedChildContext","dg","eg","fg","hg","jg","kg","lg","mg","ng","og","pg","qg","rg","sg","tg","ug","vg","wg","xg","yg","I","zg","Ag","Bg","deletions","Cg","pendingProps","treeContext","retryLane","Dg","mode","Eg","Fg","Gg","memoizedProps","Hg","Ig","Jg","Kg","Lg","defaultProps","Mg","Ng","Og","Pg","Qg","Rg","_currentValue","Sg","childLanes","Tg","dependencies","firstContext","lanes","Ug","Vg","context","memoizedValue","Wg","Xg","Yg","interleaved","Zg","$g","ah","updateQueue","baseState","firstBaseUpdate","lastBaseUpdate","shared","pending","effects","bh","ch","eventTime","lane","payload","dh","K","eh","fh","gh","q","ih","jh","Component","refs","kh","nh","isMounted","_reactInternals","enqueueSetState","lh","mh","enqueueReplaceState","enqueueForceUpdate","oh","shouldComponentUpdate","isPureReactComponent","ph","contextType","state","updater","qh","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","rh","getDerivedStateFromProps","getSnapshotBeforeUpdate","UNSAFE_componentWillMount","componentWillMount","componentDidMount","sh","ref","_owner","_stringRef","uh","vh","wh","xh","yh","implementation","zh","Ah","done","Bh","Ch","Dh","Eh","Fh","Gh","Hh","Ih","tagName","Jh","Kh","Lh","Mh","revealOrder","Nh","Oh","_workInProgressVersionPrimary","Ph","ReactCurrentDispatcher","Qh","Rh","N","O","P","Sh","Th","Uh","Vh","Q","Wh","Xh","Yh","Zh","$h","ai","bi","ci","baseQueue","queue","di","ei","fi","lastRenderedReducer","action","hasEagerState","eagerState","lastRenderedState","dispatch","gi","hi","ji","ki","getSnapshot","li","mi","R","ni","lastEffect","stores","oi","pi","qi","ri","create","destroy","deps","si","ti","ui","vi","wi","xi","yi","zi","Ai","Bi","Ci","Di","Ei","Fi","Gi","Hi","Ii","Ji","readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","identifierPrefix","Ki","message","digest","Li","Mi","Ni","WeakMap","Oi","Pi","Qi","Ri","getDerivedStateFromError","componentDidCatch","Si","componentStack","Ti","pingCache","Ui","Vi","Wi","Xi","ReactCurrentOwner","Yi","Zi","$i","aj","bj","compare","cj","dj","ej","baseLanes","cachePool","transitions","fj","gj","hj","ij","jj","UNSAFE_componentWillUpdate","componentWillUpdate","componentDidUpdate","kj","lj","pendingContext","mj","Aj","Bj","Cj","Dj","nj","oj","pj","fallback","qj","rj","tj","dataset","dgst","uj","vj","_reactRetry","sj","subtreeFlags","wj","xj","isBackwards","rendering","renderingStartTime","last","tail","tailMode","yj","Ej","S","Fj","Gj","wasMultiple","multiple","suppressHydrationWarning","onClick","onclick","size","createElementNS","autoFocus","createTextNode","T","Hj","Ij","Jj","Kj","U","Lj","WeakSet","V","Mj","Nj","Oj","Qj","Rj","Sj","Tj","Uj","Vj","Wj","insertBefore","_reactRootContainer","Xj","X","Yj","Zj","ak","onCommitFiberUnmount","componentWillUnmount","bk","ck","dk","ek","fk","isHidden","gk","hk","display","ik","jk","kk","lk","__reactInternalSnapshotBeforeUpdate","src","Wk","mk","nk","ok","pk","Y","Z","qk","rk","sk","tk","uk","Infinity","vk","wk","xk","yk","zk","Ak","Bk","Ck","Dk","Ek","callbackNode","expirationTimes","expiredLanes","wc","callbackPriority","ig","Fk","Gk","Hk","Ik","Jk","Kk","Lk","Mk","Nk","Ok","Pk","finishedWork","finishedLanes","Qk","timeoutHandle","Rk","Sk","Tk","Uk","Vk","mutableReadLanes","Bc","Pj","onCommitFiberRoot","mc","onRecoverableError","Xk","onPostCommitFiberRoot","Yk","Zk","al","isReactComponent","pendingChildren","bl","mutableSourceEagerHydrationData","cl","cache","pendingSuspenseBoundaries","el","fl","gl","hl","il","jl","zj","$k","ll","reportError","ml","_internalRoot","nl","ol","pl","ql","sl","rl","unmount","unstable_scheduleHydration","splice","querySelectorAll","JSON","stringify","form","tl","usingClientEntryPoint","Events","ul","findFiberByHostInstance","bundleType","rendererPackageName","vl","rendererConfig","overrideHookState","overrideHookStateDeletePath","overrideHookStateRenamePath","overrideProps","overridePropsDeletePath","overridePropsRenamePath","setErrorHandler","setSuspenseHandler","scheduleUpdate","currentDispatcherRef","findHostInstanceByFiber","findHostInstancesForRefresh","scheduleRefresh","scheduleRoot","setRefreshHandler","getCurrentFiber","reconcilerVersion","__REACT_DEVTOOLS_GLOBAL_HOOK__","wl","isDisabled","supportsFiber","inject","createPortal","dl","createRoot","unstable_strictMode","findDOMNode","flushSync","hydrate","hydrateRoot","hydratedSources","_getVersion","_source","unmountComponentAtNode","unstable_batchedUpdates","unstable_renderSubtreeIntoContainer","checkDCE","__self","__source","Fragment","jsx","jsxs","setState","forceUpdate","escape","_status","_result","Children","count","only","Profiler","PureComponent","StrictMode","Suspense","cloneElement","createContext","_currentValue2","_threadCount","Provider","Consumer","_defaultValue","_globalName","createFactory","createRef","forwardRef","isValidElement","lazy","memo","startTransition","unstable_act","pop","sortIndex","performance","setImmediate","startTime","expirationTime","priorityLevel","navigator","scheduling","isInputPending","MessageChannel","port2","port1","onmessage","postMessage","unstable_Profiling","unstable_continueExecution","unstable_forceFrameRate","unstable_getFirstCallbackNode","unstable_next","unstable_pauseExecution","unstable_runWithPriority","delay","unstable_wrapCallback","warning","limit$2","limit$1","clip_rgb$3","rgb","_clipped","_unclipped","classToType","i$1","list$1","type$p","type$o","unpack$B","keyOrder","type$n","last$4","PI$2","PI","utils","clip_rgb","unpack","TWOPI","PITHIRD","DEG2RAD","RAD2DEG","input$h","autodetect","last$3","clip_rgb$2","type$m","_input","Color$D","sorted","list","chk","_rgb","hex","Color_1","chroma$k","Color","chroma_1","unpack$A","max$2","rgb2cmyk$1","rgb2cmyk_1","unpack$z","cmyk2rgb","alpha","cmyk2rgb_1","chroma$j","Color$C","input$g","unpack$y","type$l","rgb2cmyk","cmyk","unpack$x","last$2","rnd","hsl2css$1","hsla","hsl2css_1","unpack$w","rgb2hsl$3","Number","rgb2hsl_1","unpack$v","last$1","hsl2css","rgb2hsl$2","round$6","rgb2css$1","rgba","rgb2css_1","unpack$u","round$5","hsl2rgb$1","t3","t2","t1","h_","hsl2rgb_1","hsl2rgb","input$f","RE_RGB","RE_RGBA","RE_RGB_PCT","RE_RGBA_PCT","RE_HSL","RE_HSLA","round$4","css2rgb$1","css","named","rgb$1","rgb$2","i$2","rgb$3","i$3","hsl","rgb$4","hsl$1","rgb$5","css2rgb_1","chroma$i","Color$B","input$e","type$k","rgb2css","css2rgb","rest","Color$A","chroma$h","input$d","unpack$t","unpack$s","rgb2hcg$1","delta","_g","rgb2hcg_1","unpack$r","floor$3","hcg2rgb","assign$1","assign$2","assign$3","assign$4","assign$5","_c","hcg2rgb_1","unpack$q","type$j","chroma$g","Color$z","input$c","rgb2hcg","hcg","unpack$p","round$3","rgb2hex$2","str","hxa","rgb2hex_1","RE_HEX","RE_HEXA","hex2rgb_1","u$1","chroma$f","Color$y","type$i","input$b","rgb2hex$1","unpack$o","TWOPI$2","min$2","sqrt$4","sqrt","acos","rgb2hsi$1","min_","rgb2hsi_1","unpack$n","TWOPI$1","cos$4","cos","hsi2rgb","hsi2rgb_1","unpack$m","type$h","chroma$e","Color$x","input$a","rgb2hsi","hsi","unpack$l","type$g","chroma$d","Color$w","input$9","rgb2hsl$1","unpack$k","min$1","max$1","rgb2hsl","max_","rgb2hsv$1","unpack$j","floor$2","hsv2rgb","hsv2rgb_1","unpack$i","type$f","chroma$c","Color$v","input$8","rgb2hsv","hsv","labConstants","Kn","Xn","Yn","Zn","t0","LAB_CONSTANTS$3","unpack$h","pow$a","rgb2lab$2","ref$1","rgb2xyz","rgb_xyz","xyz_lab","rgb2lab_1","LAB_CONSTANTS$2","unpack$g","pow$9","lab2rgb$1","lab_xyz","xyz_rgb","lab2rgb_1","unpack$f","type$e","chroma$b","Color$u","input$7","rgb2lab$1","lab","unpack$e","sqrt$3","atan2$2","atan2","round$2","lab2lch$2","lab2lch_1","unpack$d","rgb2lab","lab2lch$1","rgb2lch$1","b_","rgb2lch_1","unpack$c","sin$3","sin","cos$3","lch2lab$2","lch2lab_1","unpack$b","lch2lab$1","lab2rgb","lch2rgb$1","lch2rgb_1","unpack$a","lch2rgb","hcl2rgb","hcl","reverse","hcl2rgb_1","unpack$9","type$d","chroma$a","Color$t","input$6","rgb2lch","lch","w3cx11_1","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflower","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","laserlemon","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrod","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","maroon2","maroon3","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","purple2","purple3","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen","Color$s","input$5","type$c","w3cx11","hex2rgb","rgb2hex","unpack$8","rgb2num$1","rgb2num_1","type$b","num2rgb_1","num","chroma$9","Color$r","input$4","type$a","rgb2num","chroma$8","Color$q","input$3","unpack$7","type$9","round$1","log$1","temperature2rgb_1","kelvin","temperature2rgb","unpack$6","rgb2temperature$1","minTemp","maxTemp","eps","chroma$7","Color$p","input$2","rgb2temperature","temperature","unpack$5","cbrt","pow$8","sign$1","rgb2oklab$2","rgb2lrgb","lr","rgb2oklab_1","unpack$4","pow$7","oklab2rgb$1","lrgb2rgb","oklab2rgb_1","unpack$3","type$8","chroma$6","Color$o","input$1","rgb2oklab$1","oklab","unpack$2","rgb2oklab","lab2lch","rgb2oklch$1","rgb2oklch_1","unpack$1","lch2lab","oklab2rgb","oklch2rgb","oklch2rgb_1","type$7","chroma$5","Color$n","rgb2oklch","oklch","Color$m","type$6","mutate","clipped","Color$k","LAB_CONSTANTS$1","darken","amount","brighten","darker","brighter","channel","Color$i","type$5","pow$6","EPS","MAX_ITER","luminance","lum","cur_lum","max_iter","low","high","mid","interpolate","lm","rgb2luminance","luminance_x","interpolator$1","Color$h","type$4","interpolator","mix$1","col1","col2","Color$g","mix","Color$f","premultiply","Color$e","LAB_CONSTANTS","saturate","desaturate","Color$d","type$3","Color$c","xyz0","xyz1","Color$b","sqrt$2","pow$5","lrgb","x1","y1","z1","x2","y2","z2","Color$a","Color$9","_hsx","hue0","hue1","sat0","sat1","lbv0","lbv1","sat","hue","lbv","interpolate_hsx$5","Color$8","c1","c2","interpolate_hsx$4","interpolate_hsx$3","interpolate_hsx$2","interpolate_hsx$1","Color$7","interpolate_hsx","Color$6","clip_rgb$1","pow$4","sqrt$1","PI$1","cos$2","sin$2","atan2$1","average","colors","weights","reduce","_average_lrgb","first","xyz","cnt","dx","dy","xyz2","A$1","chroma$4","type$2","pow$3","scale$2","_mode","_nacol","_spread","_domain","_pos","_padding","_classes","_colors","_out","_min","_max","_correctLightness","_colorCache","_useCache","_gamma","setColors","brewer","c$1","resetCache","getClass","tMapLightness","tMapDomain","getColor","bypassMap","analyze","limits","domain","tOut","tBreaks","every","_m","_o","spread","correctLightness","L0","L1","pol","L_actual","L_ideal","L_diff","padding","numColors","dm","__range__","samples","asc","gamma","nodata","right","inclusive","ascending","Color$5","scale$1","binom_row","row","newrow","bezier","lab0","lab1","lab2","lab3","RangeError","labs","sum","bezier_1","scale","chroma$3","blend","bottom","blend_f","c0","each","normal","multiply","lighten","screen","overlay","burn","dodge","blend_1","type$1","pow$2","sin$1","cos$1","chroma$2","cubehelix","rotations","lightness","fract","amp","cos_a","sin_a","Color$4","digits","floor$1","random_1","pow$1","MAX_VALUE","min_log","LOG10E","max_log","pr","cluster","assignments","clusterSizes","nb_iters","centroids","i$4","mindist","best","j$1","dist","newCentroids","j$2","i$5","j$3","j$4","kClusters","j$5","i$6","tmpKMeansBreaks","j$6","i$7","analyze_1","Color$3","contrast","l1","l2","Color$2","exp","deltaE","Kl","rad2deg","rad","deg2rad","deg","a1","b1","L2","a2","b2","avgL","avgC","a1p","a2p","C1p","C2p","avgCp","arctan1","arctan2","h1p","h2p","avgHp","deltaHp","deltaL","deltaCp","deltaTheta","Rt","Color$1","distance","sum_sq","valid","chroma$1","scales","cool","hot","colorbrewer","OrRd","PuBu","BuPu","Oranges","BuGn","YlOrBr","YlGn","Reds","RdPu","Greens","YlGnBu","Purples","GnBu","Greys","YlOrRd","PuRd","Blues","PuBuGn","Viridis","Spectral","RdYlGn","RdBu","PiYG","PRGn","RdYlBu","BrBG","RdGy","PuOr","Set2","Accent","Set1","Set3","Dark2","Paired","Pastel2","Pastel1","colorbrewer_1","chroma","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","loaded","__webpack_modules__","__esModule","definition","chunkId","all","promises","miniCssF","inProgress","dataWebpackPrefix","script","needAttach","scripts","getElementsByTagName","getAttribute","charset","timeout","nc","onScriptComplete","prev","onerror","onload","doneFns","head","toStringTag","nmd","paths","installedChunks","installedChunkData","promise","reject","errorType","realSrc","request","webpackJsonpCallback","parentChunkLoadingFunction","chunkIds","moreModules","runtime","chunkLoadingGlobal","self","_arrayLikeToArray","_iterableToArray","iter","_unsupportedIterableToArray","minLen","_toConsumableArray","TypeError","_arrayWithHoles","_nonIterableRest","_typeof","_toPropertyKey","hint","prim","toPrimitive","writable","ownKeys","getOwnPropertySymbols","_objectSpread2","getOwnPropertyDescriptors","defineProperties","useEvent","fnRef","React","memoFn","_fnRef$current","_len","_key","useInternalLayoutEffect","firstMountRef","useLayoutUpdateEffect","firstMount","useSafeState","destroyRef","_React$useState2","_slicedToArray","ignoreDestroy","hasValue","warned","preWarningFns","note","method","warningOnce","preMessage","resetWarned","noteOnce","obj1","obj2","shallow","refSet","deepEqual","level","circular","newLevel","step","includedStart","includedEnd","tabIndex","keyboard","styles","excluded","sourceKeys","_objectWithoutProperties","sourceSymbolKeys","propertyIsEnumerable","KeyCode","MAC_ENTER","BACKSPACE","TAB","NUM_CENTER","ENTER","SHIFT","CTRL","ALT","PAUSE","CAPS_LOCK","ESC","SPACE","PAGE_UP","PAGE_DOWN","END","HOME","LEFT","UP","RIGHT","DOWN","PRINT_SCREEN","INSERT","DELETE","ZERO","ONE","TWO","THREE","FOUR","FIVE","SIX","SEVEN","EIGHT","NINE","QUESTION_MARK","META","WIN_KEY_RIGHT","CONTEXT_MENU","NUM_ZERO","NUM_ONE","NUM_TWO","NUM_THREE","NUM_FOUR","NUM_FIVE","NUM_SIX","NUM_SEVEN","NUM_EIGHT","NUM_NINE","NUM_MULTIPLY","NUM_PLUS","NUM_MINUS","NUM_PERIOD","NUM_DIVISION","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","NUMLOCK","SEMICOLON","DASH","EQUALS","COMMA","PERIOD","SLASH","APOSTROPHE","SINGLE_QUOTE","OPEN_SQUARE_BRACKET","BACKSLASH","CLOSE_SQUARE_BRACKET","WIN_KEY","MAC_FF_META","WIN_IME","isTextModifyingKeyEvent","isCharacterKey","userAgent","getOffset","getDirectionStyle","positionStyle","transform","getIndex","_excluded","Handle","_cls","_getIndex","prefixCls","valueIndex","onStartMove","dragging","onOffsetChange","restProps","_React$useContext","SliderContext","ariaLabelForHandle","ariaLabelledByForHandle","ariaValueTextFormatterForHandle","handlePrefixCls","onInternalStartMove","handleNode","_extends","className","cls","_defineProperty","handle","_objectSpread","onMouseDown","onTouchStart","onKeyDown","role","Handles","handleRender","draggingIndex","handlesRef","_handlesRef$current$i","getPosition","Mark","_onClick","included","textCls","Marks","marks","markPrefixCls","_ref","label","Dot","activeStyle","dotClassName","active","mergedStyle","Steps","dots","stepDots","dotSet","mark","dotValue","Track","replaceCls","trackPrefixCls","offsetStart","offsetEnd","Tracks","startPoint","trackList","startValue","endValue","tracksNode","tracks","Slider","_props$prefixCls","_props$disabled","_props$keyboard","onFocus","onBlur","_props$min","_props$max","_props$step","onChange","onBeforeChange","onAfterChange","_props$allowCross","allowCross","_props$pushable","pushable","draggableTrack","vertical","_props$included","trackStyle","handleStyle","railStyle","dotStyle","activeDotStyle","_props$tabIndex","containerRef","mergedMin","mergedMax","mergedStep","mergedPush","markList","markObj","_useOffset","formatRangeValue","formatNextValue","formatStepValue","stepValue","getDecimal","maxDecimal","fixedValue","formatValue","alignValues","closeValue","closeDist","alignValue","offsetValue","nextValue","originValue","targetDistValue","potentialValues","compareValue","valueDist","potentialValue","cloneValues","offsetChangedValue","changed","needPush","nextValues","pushNum","_offsetChangedValue","_changed","_offsetChangedValue2","_i2","_changed2","_offsetChangedValue3","_i3","_changed3","_offsetChangedValue4","useOffset","_useOffset2","offsetValues","_useMergedState","defaultStateValue","option","postState","_useState2","innerValue","setInnerValue","mergedValue","postMergedValue","onChangeFn","_useState4","prevValue","setPrevValue","useMergedState","_useMergedState2","rawValues","valueList","_valueList$","returnValues","pointCount","_returnValues","rawValuesRef","getTriggerValue","triggerValues","triggerChange","cloneNextValues","isEqual","changeToCloseValue","newValue","keyboardValue","setKeyboardValue","mergedDraggableTrack","_useDrag","finishChange","draggingValue","setDraggingValue","_React$useState4","setDraggingIndex","_React$useState6","cacheValues","setCacheValues","_React$useState8","originValues","setOriginValues","mouseMoveEventRef","mouseUpEventRef","flushValues","updateCacheValue","offsetPercent","maxStartOffset","maxEndOffset","formatStartValue","cloneCacheValues","offsetDist","updateCacheValueRef","sourceValues","targetValues","_getPosition","startX","startY","onMouseMove","offSetPercent","_getPosition2","moveX","moveY","offsetX","offsetY","_containerRef$current","getBoundingClientRect","onMouseUp","useDrag","_useDrag2","onStartDrag","lastIndexOf","sortedCacheValues","_React$useMemo2","blur","percent","rail","SelectedCourses","totalCredits","accumulator","courseObj","credits","_jsxs","_jsx","subjectCode","subjectName","editSelected","FilterButtons","levelFilter","setLevelFilter","passFail","setPassFail","_useState6","languageFilter","setLanguageFilter","_useState8","searchInput","setSearchInput","_useState10","sliderInput","setSliderInput","_useState12","selectedYears","setSelectedYears","_","changeRetrieved","applyFilters","subjects","filteredSubjects","query","searchWord","startsWith","filterSearch","filterCredits","filterLevel","grading","filterExam","teachingLanguage","filterLanguage","firstDigit","filterYears","levels","slider","languages","lvl","newYear","updatedYears","yearIndex","onSelectedYears","Course","courseObject","teaching","description","changeSelected","open","_useState14","retrievedSubjects","setRetrievedSubjects","onSetSelectedSubjects","subject","should_add","_classCallCheck","Constructor","_defineProperties","descriptor","_createClass","protoProps","staticProps","_setPrototypeOf","setPrototypeOf","__proto__","_inherits","subClass","superClass","_getPrototypeOf","getPrototypeOf","_assertThisInitialized","ReferenceError","_createSuper","Derived","hasNativeReflectConstruct","sham","Proxy","Boolean","Super","NewTarget","noop","isProp","defaultKey","nextProps","prevState","nextState","prevProps","__reactInternalSnapshotFlag","__reactInternalSnapshot","__suppressDeprecationWarning","MILI","SECONDS","MINUTES","HOURS","DAY","DECADE","CENTURY","multiplierMilli","multiplierMonth","daysInFeb","nextDate","currentOffset","nextOffset","solveDST","addMillis","totalMonths","nextYear","trunc","nextMonth","daysOf","setDate","addMonths","firstOfWeek","firstDay","setHours","eq","createComparer","neq","gt","gte","lt","lte","inRange","createAccessor","hourLength","dateOut","getHours","operator","global","freeSelf","freeGlobal","root","objectProto","nativeObjectToString","symToStringTag","isOwn","unmasked","getRawTag","objectToString","baseGetTag","isLength","reIsUint","isArrayLike","isIndex","reWhitespace","reTrimStart","trimmedEndIndex","isObjectLike","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","isSymbol","baseTrim","isBinary","INFINITY","toNumber","toFinite","remainder","nativeCeil","nativeMax","guard","isIterateeCall","toInteger","resIndex","baseSlice","getComputedStyle","psuedoElement","doc","ownerWindow","rUpper","msPattern","hyphenateStyleName","hyphenate","supportedTransforms","transforms","getPropertyValue","isTransform","removeProperty","cssText","isWindow","DOCUMENT_NODE","getscrollAccessor","win","scrollTo","getScrollAccessor","box","docElem","clientTop","clientLeft","isHTMLElement","position","offsetParent","parentOffset","parent","getOffsetParent","borderTop","borderLeft","marginTop","marginLeft","cancelMethod","rafImpl","curr","getKey","vendor","canUseDOM","rafMethod","cancel","useCallbackRef","toFnRef","refA","refB","mergeRefs","auto","basePlacements","clippingParents","viewport","popper","reference","variationPlacements","acc","placement","placements","modifierPhases","mounted","useMounted","getBasePlacement","getWindow","isElement","Element","HTMLElement","isShadowRoot","ShadowRoot","getUAString","uaData","userAgentData","brands","brand","isLayoutViewport","includeScale","isFixedStrategy","clientRect","scaleX","scaleY","offsetWidth","offsetHeight","visualViewport","addVisualOffsets","offsetLeft","offsetTop","getLayoutRect","rootNode","getRootNode","isSameNode","host","getNodeName","isTableElement","getDocumentElement","getParentNode","assignedSlot","getTrueOffsetParent","isFirefox","currentNode","perspective","contain","willChange","getContainingBlock","getMainAxisFromPlacement","within","mathMax","mathMin","mergePaddingObject","paddingObject","expandToHashMap","hashMap","enabled","phase","_state$modifiersData$","arrowElement","elements","arrow","popperOffsets","modifiersData","basePlacement","axis","rects","toPaddingObject","arrowRect","minProp","maxProp","endDiff","startDiff","arrowOffsetParent","clientSize","clientHeight","clientWidth","centerToReference","center","axisProp","centerOffset","effect","_ref2","_options$element","querySelector","requires","requiresIfExists","getVariation","unsetSides","mapToStyles","_Object$assign2","popperRect","variation","offsets","gpuAcceleration","adaptive","roundOffsets","isFixed","_offsets$x","_offsets$y","_ref3","hasX","hasY","sideX","sideY","heightProp","widthProp","_Object$assign","commonStyles","_ref4","dpr","devicePixelRatio","roundOffsetsByDPR","_ref5","_options$gpuAccelerat","_options$adaptive","_options$roundOffsets","strategy","attributes","_options$scroll","scroll","_options$resize","resize","scrollParents","scrollParent","update","hash","getOppositePlacement","getOppositeVariationPlacement","getWindowScroll","pageXOffset","pageYOffset","getWindowScrollBarX","isScrollParent","_getComputedStyle","overflowX","overflowY","getScrollParent","listScrollParents","_element$ownerDocumen","isBody","updatedList","rectToClientRect","rect","getClientRectFromMixedType","clippingParent","html","layoutViewport","getViewportRect","getInnerBoundingClientRect","winScroll","scrollWidth","scrollHeight","getDocumentRect","getClippingRect","boundary","rootBoundary","mainClippingParents","clipperElement","getClippingParents","firstClippingParent","clippingRect","accRect","computeOffsets","commonX","commonY","mainAxis","detectOverflow","_options","_options$placement","_options$strategy","_options$boundary","_options$rootBoundary","_options$elementConte","elementContext","_options$altBoundary","altBoundary","_options$padding","altContext","clippingClientRect","contextElement","referenceClientRect","popperClientRect","elementClientRect","overflowOffsets","offsetData","_skip","_options$mainAxis","checkMainAxis","_options$altAxis","altAxis","checkAltAxis","specifiedFallbackPlacements","fallbackPlacements","_options$flipVariatio","flipVariations","allowedAutoPlacements","preferredPlacement","oppositePlacement","getExpandedFallbackPlacements","_options$allowedAutoP","allPlacements","allowedPlacements","overflows","computeAutoPlacement","referenceRect","checksMap","makeFallbackChecks","firstFittingPlacement","_basePlacement","isStartVariation","isVertical","mainVariationSide","altVariationSide","checks","check","_loop","fittingPlacement","find","reset","getSideOffsets","preventedOffsets","isAnySideFullyClipped","side","_options$offset","invertDistance","skidding","distanceAndSkiddingToXY","_data$state$placement","_options$tether","tether","_options$tetherOffset","tetherOffset","isBasePlacement","tetherOffsetValue","normalizedTetherOffsetValue","offsetModifierState","_offsetModifierState$","mainSide","altSide","additive","maxLen","arrowPaddingObject","arrowPaddingMin","arrowPaddingMax","arrowLen","minOffset","maxOffset","clientOffset","offsetModifierValue","tetherMax","preventedOffset","_offsetModifierState$2","_mainSide","_altSide","isOriginSide","_offsetModifierValue","_tetherMin","_tetherMax","_preventedOffset","withinMaxClamp","getCompositeRect","elementOrVirtualElement","isOffsetParentAnElement","offsetParentIsScaled","isElementScaled","getNodeScroll","modifiers","visited","modifier","dep","depModifier","debounce","DEFAULT_OPTIONS","areValidElements","popperGenerator","generatorOptions","_generatorOptions","_generatorOptions$def","defaultModifiers","_generatorOptions$def2","defaultOptions","orderedModifiers","effectCleanupFns","isDestroyed","setOptions","setOptionsAction","cleanupModifierEffects","orderModifiers","merged","existing","mergeByName","_ref$options","cleanupFn","noopFn","_state$elements","_state$orderedModifie","_state$orderedModifie2","onFirstUpdate","createPopper","preventOverflow","referenceOverflow","popperAltOverflow","referenceClippingOffsets","popperEscapeOffsets","isReferenceHidden","hasPopperEscaped","computeStyles","eventListeners","flip","initialPopperStyles","pointerEvents","disabledApplyStylesModifier","ariaDescribedByModifier","ids","_popper$getAttribute","_state$elements2","EMPTY_MODIFIERS","referenceElement","popperElement","_temp","_ref3$enabled","_ref3$placement","_ref3$strategy","_ref3$modifiers","_objectWithoutPropertiesLoose","popperInstanceRef","_popperInstanceRef$cu","_popperInstanceRef$cu2","_useSafeState","popperState","updateModifier","optionsSupported","onceSupported","once","eventName","handler","wrappedHandler","__once","onceHandler","useEventCallback","useCommittedRef","componentOrElement","ReactDOM","safeFindDOMNode","getRefTarget","onRootClose","_ref$clickTrigger","clickTrigger","preventMouseRootCloseRef","onClose","handleMouseCapture","_e$composedPath$","isLeftClickEvent","composedPath","handleMouse","handleKeyUp","currentEvent","removeMouseCaptureListener","listen","removeMouseListener","removeKeyupListener","mobileSafariHackListeners","remove","resolveContainerRef","useWaitForDOMRef","onResolved","_useState","resolvedRef","setRef","earlyRef","nextRef","mergeOptionsWithPopperConfig","_modifiers$preventOve","_modifiers$preventOve2","_modifiers$offset","_modifiers$arrow","enableEvents","fixed","containerPadding","_ref$popperConfig","popperConfig","toModifierMap","Overlay","outerRef","_props$containerPaddi","_props$popperConfig","Transition","_useCallbackRef","rootElement","attachRef","_useCallbackRef2","attachArrowRef","mergedRef","useMergedRefs","container","show","exited","setExited","_usePopper","usePopper","mountOverlay","useRootClose","onHide","rootClose","rootCloseDisabled","rootCloseEvent","arrowProps","onExit","onExiting","onEnter","onEntering","onEntered","appear","onExited","propTypes","_PropTypes$func","__data__","assocIndexOf","ListCache","entries","clear","entry","listCacheClear","listCacheDelete","listCacheGet","listCacheHas","listCacheSet","maskSrcKey","uid","coreJsData","IE_PROTO","funcToString","reIsHostCtor","funcProto","reIsNative","isMasked","toSource","baseIsNative","getNative","nativeCreate","Hash","hashClear","hashDelete","hashGet","hashHas","hashSet","isKeyable","getMapData","MapCache","mapCacheClear","mapCacheDelete","mapCacheGet","mapCacheHas","mapCacheSet","pairs","LARGE_ARRAY_SIZE","Stack","stackClear","stackDelete","stackGet","stackHas","stackSet","SetCache","setCacheAdd","setCacheHas","predicate","bitmask","customizer","equalFunc","isPartial","arrLength","othLength","arrStacked","othStacked","seen","arrValue","othValue","compared","arraySome","othIndex","cacheHas","Uint8Array","symbolProto","symbolValueOf","byteLength","byteOffset","buffer","convert","mapToArray","setToArray","stacked","equalArrays","keysFunc","symbolsFunc","arrayPush","nativeGetSymbols","arrayFilter","stubArray","iteratee","isArguments","baseIsArguments","freeExports","freeModule","Buffer","isBuffer","stubFalse","typedArrayTags","freeProcess","process","types","binding","nodeIsTypedArray","nodeUtil","isTypedArray","baseUnary","baseIsTypedArray","inherited","isArr","isArg","isBuff","isType","skipIndexes","baseTimes","Ctor","overArg","isPrototype","nativeKeys","arrayLikeKeys","baseKeys","baseGetAllKeys","getSymbols","objProps","getAllKeys","objLength","objStacked","skipCtor","objValue","objCtor","othCtor","mapTag","promiseTag","setTag","weakMapTag","dataViewTag","dataViewCtorString","DataView","mapCtorString","promiseCtorString","setCtorString","weakMapCtorString","getTag","ArrayBuffer","ctorString","argsTag","arrayTag","objectTag","objIsArr","othIsArr","objTag","othTag","objIsObj","othIsObj","isSameTag","equalByTag","objIsWrapped","othIsWrapped","objUnwrapped","othUnwrapped","equalObjects","baseIsEqual","baseIsEqualDeep","client","innerHeight","matchesImpl","selector","nativeMatch","matchesSelector","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","closest","stopAt","nextNode","parentElement","ELEMENT_NODE","fromIndex","fromRight","matchData","noCustomizer","srcValue","COMPARE_PARTIAL_FLAG","isStrictComparable","getMatchData","matchesStrictComparable","baseIsMatch","reIsDeepProp","reIsPlainProp","memoize","resolver","memoized","Cache","rePropName","reEscapeChar","memoizeCapped","charCodeAt","quote","subString","symbolToString","baseToString","arrayMap","isKey","stringToPath","path","castPath","toKey","baseGet","hasFunc","hasPath","baseHasIn","hasIn","baseProperty","basePropertyDeep","identity","baseMatchesProperty","baseMatches","baseFindIndex","baseIteratee","baseRange","safeIsNaN","areInputsEqual","newInputs","lastInputs","memoizeOne","resultFn","newArgs","lastThis","lastArgs","lastResult","spreadableSymbol","isConcatSpreadable","baseFlatten","depth","isFlattenable","iterable","createBaseFor","baseFor","eachFunc","collection","createBaseEach","baseForOwn","baseEach","comparer","valIsDefined","valIsNull","valIsReflexive","valIsSymbol","othIsDefined","othIsNull","othIsReflexive","othIsSymbol","orders","objCriteria","criteria","othCriteria","ordersLength","compareAscending","iteratees","baseMap","baseSortBy","compareMultiple","thisArg","otherArgs","constant","nativeNow","lastCalled","stamp","remaining","shortOut","baseSetToString","setToString","overRest","baseRest","baseOrderBy","scrollbarSize","recalc","scrollDiv","getWidth","innerWidth","_toArray","replaceClassName","origClass","classToRemove","baseAssignValue","isNew","assignValue","copyObject","nativeKeysIn","isProto","baseKeysIn","keysIn","allocUnsafe","isDeep","copy","getPrototype","getSymbolsIn","arrayBuffer","dataView","cloneArrayBuffer","reFlags","regexp","typedArray","cloneDataView","cloneTypedArray","cloneRegExp","cloneSymbol","objectCreate","baseCreate","nodeIsMap","isMap","baseIsMap","nodeIsSet","isSet","baseIsSet","funcTag","cloneableTags","baseClone","isFlat","isFull","initCloneArray","copyArray","isFunc","cloneBuffer","initCloneObject","copySymbolsIn","baseAssignIn","copySymbols","baseAssign","initCloneByTag","subValue","getAllKeysIn","arrayEach","objectCtorString","isPlainObject","flatten","flatRest","CLONE_DEEP_FLAG","customOmitClone","baseUnset","sources","propsIndex","propsLength","isArrLike","NoopWrapper","navigate","views","WORK_WEEK","AGENDA","viewNames$1","notify","MILLI","firstVisibleDay","localizer","firstOfMonth","startOfWeek","lastVisibleDay","endOfMonth","visibleDays","merge","isJustDate","dateA","dateB","localePropType","_format","formatter","culture","invariant","getSlotDate","dt","minutesFromMidnight","getDstOffset","getTotalMin","getMinutesFromMidnight","daystart","continuesPrior","continuesAfter","sortEvents$1","_ref$evtA","evtA","aStart","aEnd","aAllDay","allDay","_ref$evtB","evtB","bStart","bEnd","bAllDay","startSort","durA","durB","inEventRange","_ref2$event","_ref2$range","rangeStart","rangeEnd","eStart","startsBeforeEnd","endsAfterStart","isSameDate","date1","date2","startAndEndAreDateOnly","DateLocalizer","spec","_this","propType","inRange$1","sortEvents","segmentOffset","browserTZOffset","mergeWithDefaults","formatOverrides","messages","_format2","defaultMessages","work_week","previous","yesterday","tomorrow","today","agenda","noEventsInRange","showMore","_excluded$7","EventCell","_React$Component","_super","_this$props","isAllDay","onSelect","_onDoubleClick","onDoubleClick","_onKeyPress","onKeyPress","accessors","getters","_this$props$component","components","Event","EventWrapper","eventWrapper","slotStart","slotEnd","resizable","title","tooltip","showAsAllDay","userProps","eventProp","content","clsx","isSelected","isEqual$1","slotWidth","rowBox","slots","getSlotAtX","rtl","cellWidth","Pop","events","handleDragStart","popperRef","handleClickOutside","useClickOutside","_getOffset","_getOffset2","cTop","cLeft","cWidth","cHeight","_getOffset3","bWidth","bHeight","viewBottom","viewRight","topOffset","leftOffset","minWidth","idx","draggable","onDragStart","onDragEnd","Popup","CalOverlay","_ref$popupOffset","popupOffset","handleSelectEvent","handleDoubleClickEvent","handleKeyPressEvent","overlayDisplay","PopOverlay","isEvent","bounds","elementFromPoint","getEventNodeFromPoint","isShowMore","getShowMoreNodeFromPoint","getEventCoordinates","Selection","_ref3$global","_ref3$longPressThresh","longPressThreshold","_ref3$validContainers","validContainers","isDetached","globalMouse","_listeners","_handleInitialEvent","_handleMoveEvent","_handleTerminatingEvent","_keyListener","_dropFromOutsideListener","_dragOverFromOutsideListener","_removeTouchMoveWindowListener","_removeKeyDownListener","_removeKeyUpListener","_removeDropFromOutsideListener","_removeDragOverFromOutsideListener","_addInitialEventListener","handlers","_removeInitialEventListener","_removeEndListener","_onEscListener","_removeMoveListener","_selectRect","selecting","objectsCollide","getBoundsForNode","items","initialEvent","timer","removeTouchMoveListener","removeTouchEndListener","handleTouchStart","cleanup","removeTouchStartListener","_this2","removeMouseDownListener","_addLongPressListener","_getEventCoordinates","emit","_getEventCoordinates2","_getEventCoordinates3","_normalizeDistance","normalizeDistance","_initialEventData","isTouch","eventTarget","containers","_getEventCoordinates4","inRoot","isWithinValidContainer","_isWithinValidContainer","click","isClick","_handleClickEvent","_getEventCoordinates5","_lastClickData","timestamp","_this$_initialEventDa","_getEventCoordinates6","old","ctrl","_this$_initialEventDa2","nodeA","nodeB","tolerance","_getBoundsForNode","aTop","aLeft","_getBoundsForNode$rig","aRight","_getBoundsForNode$bot","aBottom","_getBoundsForNode2","bTop","bLeft","_getBoundsForNode2$ri","bRight","_getBoundsForNode2$bo","pageOffset","BackgroundCells","selectable","_selectable","_teardownSelectable","getNow","Wrapper","dateCellWrapper","_this$state","startIdx","endIdx","_getters$dayProp","dayProp","_selector","selectorClicksHandler","point","actionType","_this2$props","pointInBox","currentCell","_selectSlot","_initial","on","_this2$props2","onSelectStart","nodeBox","_dateCellSelection","lastSlotIdx","currentSlot","isCurrentRow","isStartRow","isAboveStart","isBelowStart","dateCellSelection","onSelectEnd","teardown","onSelectSlot","resourceId","EventRowMixin","segments","slotMetrics","per","WebkitFlexBasis","flexBasis","maxWidth","EventRow","lastEnd","span","gap","endOfRange","dateRange","_ref$unit","eventLevels","rowSegments","seg","extra","segsOverlap","otherSegs","otherSeg","eventA","eventB","isSegmentInSlot$1","slot","eventsInSlot","EventEndingRow","canRenderSlotEvent","renderShowMore","range$1","onShowMore","ScrollableWeekWrapper","getSlotMetrics$1","maxRows","minRows","_endOfRange","evt","findIndex","eventSegments","_eventLevels","minEventRows","metrics","getDateForSlot","slotNumber","getSlotForDate","getEventsForSlot","isSegmentInSlot","DateContentRow","handleSelectSlot","handleShowMore","cell","_this$props2","getContainer","renderHeadingCell","_this$props3","renderHeader","renderDummy","_this$props4","showAllEvents","headingRowRef","eventRowRef","_this$headingRowRef","eventHeight","getHeight","headingHeight","eventSpace","_this$props5","renderForMeasure","ScrollableWeekComponent","WeekWrapper","weekWrapper","eventRowProps","segs","Header","DateHeader","drilldownView","onDrillDown","_excluded$6","MonthView","_args","renderWeek","weekIdx","needLimitMeasure","rowLimit","weeksEvents","evts","eventsForWeek","slotRowRef","readerDateHeading","getDrilldownView","isOffRange","isCurrent","DateHeaderComponent","dateHeader","handleHeadingClick","slotInfo","_pendingSelection","_selectTimer","selectDates","clearSelection","_len2","_key2","onSelectEvent","_len3","_key3","onDoubleClickEvent","_len4","_key4","onKeyPressEvent","popup","doShowMoreDrillDown","getPosition$1","_bgRows","running","measureRowLimit","_resizeListener","animationFrame","chunk","_weekCount","renderHeaders","renderOverlay","HeaderComponent","header","_this$state$overlay","_this$state2","_this3","_this$props6","getRowLimit","getSlotMetrics","timeslots","totalMin","numGroups","numSlots","groups","grp","slotIdx","minFromStart","lastSlotMinFromStart","positionFromDate","dateIsInGroup","groupIndex","nextGroup","nextSlot","closestSlotToPosition","closestSlotFromPoint","boundaryRect","closestSlotFromDate","diffMins","startsBeforeDay","startsAfterDay","startsBefore","startsAfter","getRange","ignoreMin","ignoreMax","rangeStartMin","rangeEndMin","startDate","endDate","getCurrentTimePosition","_slotMetrics$getRange","startMs","endMs","rows","leaves","_width","noOverlap","overlap","_this$row","xOffset","onSameRow","minimumStartDifference","getStyledEvents$1","eventsInRenderOrder","sortedByTime","sortBy","_event","sortByRender","containerEvents","getMaxIdxDFS","maxIdx","friends","newIdx","DefaultAlgorithms","styledEvents","se1","se2","y3","y4","_i4","bitmap","_j2","_j4","_i6","allFriends","_j6","_i8","_maxIdx","_j8","TimeSlotGroup","_Component","renderSlot","resource","group","_this$props$component3","timeSlotWrapper","groupProps","slotGroupProp","slotProps","slotProp","stringifyPercent","TimeGridEvent","isBackgroundEvent","_props$components","eventStyle","DayColumnWrapper","innerRef","DayColumnWrapper$1","_excluded$5","_excluded2$1","DayColumn","timeIndicatorPosition","intervalTriggered","renderEvents","dayLayoutAlgorithm","algorithm","getStyledEvents","_select","sourceResource","_doubleClick","_keyPress","maybeSelect","onSelecting","selectionState","_initialSlot","initialSlot","selectRange","_selectionState","isNow","setTimeIndicatorPositionUpdateInterval","clearTimeIndicatorInterval","getNowChanged","positionTimeIndicator","_timeIndicatorTimeout","_this$props5$getters","_this$props5$componen","EventContainer","eventContainerWrapper","_dayProp","DayColumnWrapperComponent","dayColumnWrapper","backgroundEvents","dragThroughEvents","TimeGutter","gutterRef","TimeGutterWrapper","timeGutterWrapper","_useMemo","adjustForDST","setSlotMetrics","TimeGutter$1","ResourceHeader","TimeGridHeader","handleHeaderClick","renderRow","eventsToDisplay","allDayMaxRows","_this$props2$componen","resources","scrollRef","isOverflowing","_this$props3$componen","TimeGutterHeader","timeGutterHeader","_this$props3$componen2","resourceHeader","ResourceHeaderComponent","groupedEvents","groupEvents","resourceTitle","renderHeaderCells","NONE","TimeGrid","handleScroll","handleResize","rafHandle","handleSelectAllDaySlot","_updatingOverflow","contentRef","memoizedResources","eventsByResource","resourceEvents","Resources","gutterWidth","_scrollRatio","measureGutter","calculateScroll","applyScroll","measureGutterAnimationFrameRequest","cancelAnimationFrame","groupedBackgroundEvents","daysEvents","daysBackgroundEvents","_this$props$allDayMax","showMultiDayTimes","allDayEvents","rangeEvents","rangeBackgroundEvents","eEnd","onScroll","_this4","requestAnimationFrame","_this4$gutterRef","enableAutoScroll","scrollToTime","diffMillis","totalMillis","_excluded$4","Day","_this$props$min","_this$props$max","_this$props$scrollToT","_this$props$enableAut","eventOffset","_excluded$3","Week","_Week$range2","_excluded$2","workWeekRange","_VIEWS","WorkWeek","Agenda","headerRef","dateColRef","timeColRef","tbodyRef","_adjustHeader","timeRangeLabel","labelClass","TimeComponent","firstRow","_widths","widths","classList","baseVal","hasClass","marginRight","removeClass","dayKey","AgendaDate","dateLabel","rowSpan","renderDay","_workWeekRange2","_ref2$length","_ref3$length","_ref4$length","VIEWS","_excluded$1","Toolbar","onNavigate","onView","viewNamesGroup","viewNames","wrapAccessor","accessor","_excluded2","_views","_Object$entries","_Object$entries$_i","Calendar","getViews","mapValues","getView","handleRangeChange","viewComponent","onRangeChange","handleNavigate","newDate","ViewComponent","View","moveDate","handleViewChange","isValidView","handleDrillDown","getContext","toolbar","elementProps","_this$state$context","CalToolbar","startAccessor","endAccessor","allDayAccessor","tooltipAccessor","titleAccessor","resourceAccessor","resourceIdAccessor","resourceTitleAccessor","eventPropGetter","backgroundEventPropGetter","slotPropGetter","slotGroupPropGetter","dayPropGetter","_ref2$messages","messages$1","_ref2$components","_ref2$formats","msgs","backgroundEventProp","omit","backgroundEventWrapper","Calendar$1","uncontrollable","controlledValues","methods","component","canAcceptRef","controlledProps","PROPS_TO_OMIT","Utils","UncontrolledComponent","handlerName","_notifying","unmounted","_extends2","_proto","newProps","propValue","foundWillMountName","foundWillReceivePropsName","foundWillUpdateName","newApiName","maybeSnapshot","snapshot","polyfill","_this$inner","WrappedComponent","fileName","lineNumber","ControlledComponent","deferControlTo","newComponent","additions","nextMethods","timeRangeFormat$5","formats$5","dayFormat","weekdayFormat","selectRangeFormat","eventTimeRangeFormat","eventTimeRangeStartFormat","eventTimeRangeEndFormat","timeGutterFormat","monthHeaderFormat","dayHeaderFormat","dayRangeHeaderFormat","agendaHeaderFormat","agendaDateFormat","agendaTimeFormat","agendaTimeRangeFormat","fixUnit$2","datePart","_st$_z$name","_st$_z","st","tz","tzName","_z","guess","defineComparators","_defineComparators2","dtA","dtB","_defineComparators10","adder","_defineComparators6","_defineComparators4","_defineComparators8","tm","mDay","mMin","mMax","dayStart","getDayStartDstOffset","mStart","mFirst","mEnd","mLast","_ref6","_ref6$evtA","_ref6$evtB","_ref7","_ref7$event","_ref7$range","startOfDay","rStart","rEnd","dt2","neg","dtOffset","comparator","createDates","lectures","unique","generateRandomColor","activity","_weekDayToDate","dayMap","sun","mon","tue","wed","thu","fri","_activity$1$split","_activity$1$split2","startTimeStr","endTimeStr","startTimeParts","endTimeParts","parseWeekDay","startHours","startMinutes","endHours","endMinutes","dateStart","getPreviousSunday","dateEnd","weekDayToDate","_weekDayToDate2","backgroundColor","currentDay","daysUntilPreviousSunday","sundayDate","allevents","setAllEvents","updatedEvents","momentLocalizer","minDate","maxDate","MyCalendar","_Fragment","Navigation","flexDirection","activePageHandler","activePage","setActivePage","selectedSubjects","setSelectedSubjects","previousValue","page","Schedule","allSubjects","courses","Courses","onPerfEntry","getCLS","getFID","getFCP","getLCP","getTTFB","getElementById","App","reportWebVitals"],"sourceRoot":""}
\ No newline at end of file
diff --git a/static/js/main.c551f116.js b/static/js/main.c551f116.js
new file mode 100644
index 0000000..345e806
--- /dev/null
+++ b/static/js/main.c551f116.js
@@ -0,0 +1,3 @@
+/*! For license information please see main.c551f116.js.LICENSE.txt */
+!function(){var e={694:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t0&&(t=t[0]),n=(t=t.filter((function(e){return e})))[0];for(var r=1;r>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var O=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,_=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V={},R={};function B(e,t,n,r){var i=r;"string"===typeof r&&(i=function(){return this[r]()}),e&&(R[e]=i),t&&(R[t[0]]=function(){return P(i.apply(this,arguments),t[1],t[2])}),n&&(R[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function F(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function U(e){var t,n,r=e.match(O);for(t=0,n=r.length;t=0&&_.test(e);)e=e.replace(_,r),_.lastIndex=0,n-=1;return e}var Y={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function G(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(O).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var W="Invalid date";function q(){return this._invalidDate}var J="%d",$=/\d{1,2}/;function Q(e){return this._ordinal.replace("%d",e)}var X={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Z(e,t,n,r){var i=this._relativeTime[n];return L(i)?i(e,t,n,r):i.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return L(n)?n(t):n.replace(/%s/i,t)}var te={};function ne(e,t){var n=e.toLowerCase();te[n]=te[n+"s"]=te[t]=e}function re(e){return"string"===typeof e?te[e]||te[e.toLowerCase()]:void 0}function ie(e){var t,n,r={};for(n in e)o(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var se={};function ae(e,t){se[e]=t}function oe(e){var t,n=[];for(t in e)o(e,t)&&n.push({unit:t,priority:se[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function le(e){return e%4===0&&e%100!==0||e%400===0}function ge(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ue(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ge(t)),n}function de(e,t){return function(n){return null!=n?(me(this,e,n),r.updateOffset(this,t),this):ce(this,e)}}function ce(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function me(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&le(e.year())&&1===e.month()&&29===e.date()?(n=ue(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ze(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function he(e){return L(this[e=re(e)])?this[e]():this}function ke(e,t){if("object"===typeof e){var n,r=oe(e=ie(e)),i=r.length;for(n=0;n68?1900:2e3)};var pt=de("FullYear",!0);function ft(){return le(this.year())}function vt(e,t,n,r,i,s,a){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,r,i,s,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,r,i,s,a),o}function bt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function yt(e,t,n){var r=7+t-n;return-(7+bt(e,0,r).getUTCDay()-t)%7+r-1}function jt(e,t,n,r,i){var s,a,o=1+7*(t-1)+(7+n-r)%7+yt(e,r,i);return o<=0?a=kt(s=e-1)+o:o>kt(e)?(s=e+1,a=o-kt(e)):(s=e,a=o),{year:s,dayOfYear:a}}function wt(e,t,n){var r,i,s=yt(e.year(),t,n),a=Math.floor((e.dayOfYear()-s-1)/7)+1;return a<1?r=a+Nt(i=e.year()-1,t,n):a>Nt(e.year(),t,n)?(r=a-Nt(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Nt(e,t,n){var r=yt(e,t,n),i=yt(e+1,t,n);return(kt(e)-r+i)/7}function Et(e){return wt(e,this._week.dow,this._week.doy).week}B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),ne("week","w"),ne("isoWeek","W"),ae("week",5),ae("isoWeek",5),Ie("w",we),Ie("ww",we,ve),Ie("W",we),Ie("WW",we,ve),Be(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=ue(e)}));var xt={dow:0,doy:6};function St(){return this._week.dow}function Mt(){return this._week.doy}function Ct(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Lt(e){var t=wt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Tt(e,t){return"string"!==typeof e?e:isNaN(e)?"number"===typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function At(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ht(e,t){return e.slice(t,7).concat(e.slice(0,t))}B("d",0,"do","day"),B("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),B("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),B("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),ae("day",11),ae("weekday",11),ae("isoWeekday",11),Ie("d",we),Ie("e",we),Ie("E",we),Ie("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Ie("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Ie("dddd",(function(e,t){return t.weekdaysRegex(e)})),Be(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:p(n).invalidWeekday=e})),Be(["d","e","E"],(function(e,t,n,r){t[r]=ue(e)}));var Dt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),It="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Pt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ot=De,_t=De,Vt=De;function Rt(e,t){var n=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ht(n,this._week.dow):e?n[e.day()]:n}function Bt(e){return!0===e?Ht(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ft(e){return!0===e?Ht(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ut(e,t,n){var r,i,s,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)s=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Ue.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ue.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Ue.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=Ue.call(this._weekdaysParse,a))||-1!==(i=Ue.call(this._shortWeekdaysParse,a))||-1!==(i=Ue.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ue.call(this._shortWeekdaysParse,a))||-1!==(i=Ue.call(this._weekdaysParse,a))||-1!==(i=Ue.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Ue.call(this._minWeekdaysParse,a))||-1!==(i=Ue.call(this._weekdaysParse,a))||-1!==(i=Ue.call(this._shortWeekdaysParse,a))?i:null}function Kt(e,t,n){var r,i,s;if(this._weekdaysParseExact)return Ut.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(s="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(s.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function zt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Tt(e,this.localeData()),this.add(e-t,"d")):t}function Yt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Gt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=At(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Wt(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||$t.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Ot),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function qt(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||$t.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=_t),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Jt(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||$t.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Vt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function $t(){function e(e,t){return t.length-e.length}var t,n,r,i,s,a=[],o=[],l=[],g=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=_e(this.weekdaysMin(n,"")),i=_e(this.weekdaysShort(n,"")),s=_e(this.weekdays(n,"")),a.push(r),o.push(i),l.push(s),g.push(r),g.push(i),g.push(s);a.sort(e),o.sort(e),l.sort(e),g.sort(e),this._weekdaysRegex=new RegExp("^("+g.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Qt(){return this.hours()%12||12}function Xt(){return this.hours()||24}function Zt(e,t){B(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function en(e,t){return t._meridiemParse}function tn(e){return"p"===(e+"").toLowerCase().charAt(0)}B("H",["HH",2],0,"hour"),B("h",["hh",2],0,Qt),B("k",["kk",2],0,Xt),B("hmm",0,0,(function(){return""+Qt.apply(this)+P(this.minutes(),2)})),B("hmmss",0,0,(function(){return""+Qt.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)})),B("Hmm",0,0,(function(){return""+this.hours()+P(this.minutes(),2)})),B("Hmmss",0,0,(function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)})),Zt("a",!0),Zt("A",!1),ne("hour","h"),ae("hour",13),Ie("a",en),Ie("A",en),Ie("H",we),Ie("h",we),Ie("k",we),Ie("HH",we,ve),Ie("hh",we,ve),Ie("kk",we,ve),Ie("hmm",Ne),Ie("hmmss",Ee),Ie("Hmm",Ne),Ie("Hmmss",Ee),Re(["H","HH"],Ge),Re(["k","kk"],(function(e,t,n){var r=ue(e);t[Ge]=24===r?0:r})),Re(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Re(["h","hh"],(function(e,t,n){t[Ge]=ue(e),p(n).bigHour=!0})),Re("hmm",(function(e,t,n){var r=e.length-2;t[Ge]=ue(e.substr(0,r)),t[We]=ue(e.substr(r)),p(n).bigHour=!0})),Re("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Ge]=ue(e.substr(0,r)),t[We]=ue(e.substr(r,2)),t[qe]=ue(e.substr(i)),p(n).bigHour=!0})),Re("Hmm",(function(e,t,n){var r=e.length-2;t[Ge]=ue(e.substr(0,r)),t[We]=ue(e.substr(r))})),Re("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Ge]=ue(e.substr(0,r)),t[We]=ue(e.substr(r,2)),t[qe]=ue(e.substr(i))}));var nn=/[ap]\.?m?\.?/i,rn=de("Hours",!0);function sn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,on={calendar:D,longDateFormat:Y,invalidDate:W,ordinal:J,dayOfMonthOrdinalParse:$,relativeTime:X,months:et,monthsShort:tt,week:xt,weekdays:Dt,weekdaysMin:Pt,weekdaysShort:It,meridiemParse:nn},ln={},gn={};function un(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(r=hn(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&un(i,n)>=t-1)break;t--}s++}return an}function mn(e){return null!=e.match("^[^/\\\\]*$")}function hn(t){var n=null;if(void 0===ln[t]&&e&&e.exports&&mn(t))try{n=an._abbr,Object(function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}()),kn(n)}catch(r){ln[t]=null}return ln[t]}function kn(e,t){var n;return e&&((n=g(t)?vn(e):pn(e,t))?an=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function pn(e,t){if(null!==t){var n,r=on;if(t.abbr=e,null!=ln[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ln[e]._config;else if(null!=t.parentLocale)if(null!=ln[t.parentLocale])r=ln[t.parentLocale]._config;else{if(null==(n=hn(t.parentLocale)))return gn[t.parentLocale]||(gn[t.parentLocale]=[]),gn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ln[e]=new H(A(r,t)),gn[e]&&gn[e].forEach((function(e){pn(e.name,e.config)})),kn(e),ln[e]}return delete ln[e],null}function fn(e,t){if(null!=t){var n,r,i=on;null!=ln[e]&&null!=ln[e].parentLocale?ln[e].set(A(ln[e]._config,t)):(null!=(r=hn(e))&&(i=r._config),t=A(i,t),null==r&&(t.abbr=e),(n=new H(t)).parentLocale=ln[e],ln[e]=n),kn(e)}else null!=ln[e]&&(null!=ln[e].parentLocale?(ln[e]=ln[e].parentLocale,e===kn()&&kn(e)):null!=ln[e]&&delete ln[e]);return ln[e]}function vn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!s(e)){if(t=hn(e))return t;e=[e]}return cn(e)}function bn(){return S(ln)}function yn(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[ze]<0||n[ze]>11?ze:n[Ye]<1||n[Ye]>Ze(n[Ke],n[ze])?Ye:n[Ge]<0||n[Ge]>24||24===n[Ge]&&(0!==n[We]||0!==n[qe]||0!==n[Je])?Ge:n[We]<0||n[We]>59?We:n[qe]<0||n[qe]>59?qe:n[Je]<0||n[Je]>999?Je:-1,p(e)._overflowDayOfYear&&(tYe)&&(t=Ye),p(e)._overflowWeeks&&-1===t&&(t=$e),p(e)._overflowWeekday&&-1===t&&(t=Qe),p(e).overflow=t),e}var jn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Nn=/Z|[+-]\d\d(?::?\d\d)?/,En=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],xn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Sn=/^\/?Date\((-?\d+)/i,Mn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Cn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ln(e){var t,n,r,i,s,a,o=e._i,l=jn.exec(o)||wn.exec(o),g=En.length,u=xn.length;if(l){for(p(e).iso=!0,t=0,n=g;tkt(s)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=bt(s,0,e._dayOfYear),e._a[ze]=n.getUTCMonth(),e._a[Ye]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ge]&&0===e._a[We]&&0===e._a[qe]&&0===e._a[Je]&&(e._nextDay=!0,e._a[Ge]=0),e._d=(e._useUTC?bt:vt).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ge]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==i&&(p(e).weekdayMismatch=!0)}}function Bn(e){var t,n,r,i,s,a,o,l,g;null!=(t=e._w).GG||null!=t.W||null!=t.E?(s=1,a=4,n=_n(t.GG,e._a[Ke],wt(Jn(),1,4).year),r=_n(t.W,1),((i=_n(t.E,1))<1||i>7)&&(l=!0)):(s=e._locale._week.dow,a=e._locale._week.doy,g=wt(Jn(),s,a),n=_n(t.gg,e._a[Ke],g.year),r=_n(t.w,g.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+s,(t.e<0||t.e>6)&&(l=!0)):i=s),r<1||r>Nt(n,s,a)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(o=jt(n,r,i,s,a),e._a[Ke]=o.year,e._dayOfYear=o.dayOfYear)}function Fn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],p(e).empty=!0;var t,n,i,s,a,o,l,g=""+e._i,u=g.length,d=0;for(l=(i=z(e._f,e._locale).match(O)||[]).length,t=0;t0&&p(e).unusedInput.push(a),g=g.slice(g.indexOf(n)+n.length),d+=n.length),R[s]?(n?p(e).empty=!1:p(e).unusedTokens.push(s),Fe(s,n,e)):e._strict&&!n&&p(e).unusedTokens.push(s);p(e).charsLeftOver=u-d,g.length>0&&p(e).unusedInput.push(g),e._a[Ge]<=12&&!0===p(e).bigHour&&e._a[Ge]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[Ge]=Un(e._locale,e._a[Ge],e._meridiem),null!==(o=p(e).era)&&(e._a[Ke]=e._locale.erasConvertYear(o,e._a[Ke])),Rn(e),yn(e)}else Pn(e);else Ln(e)}function Un(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Kn(e){var t,n,r,i,s,a,o=!1,l=e._f.length;if(0===l)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis?this:e:v()}));function Xn(e,t){var n,r;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return Jn();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function wr(){if(!g(this._isDSTShifted))return this._isDSTShifted;var e,t={};return j(t,this),(t=Gn(t))._a?(e=t._isUTC?h(t._a):Jn(t._a),this._isDSTShifted=this.isValid()&&gr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Nr(){return!!this.isValid()&&!this._isUTC}function Er(){return!!this.isValid()&&this._isUTC}function xr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Sr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Mr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Cr(e,t){var n,r,i,s=e,a=null;return or(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(a=Sr.exec(e))?(n="-"===a[1]?-1:1,s={y:0,d:ue(a[Ye])*n,h:ue(a[Ge])*n,m:ue(a[We])*n,s:ue(a[qe])*n,ms:ue(lr(1e3*a[Je]))*n}):(a=Mr.exec(e))?(n="-"===a[1]?-1:1,s={y:Lr(a[2],n),M:Lr(a[3],n),w:Lr(a[4],n),d:Lr(a[5],n),h:Lr(a[6],n),m:Lr(a[7],n),s:Lr(a[8],n)}):null==s?s={}:"object"===typeof s&&("from"in s||"to"in s)&&(i=Ar(Jn(s.from),Jn(s.to)),(s={}).ms=i.milliseconds,s.M=i.months),r=new ar(s),or(e)&&o(e,"_locale")&&(r._locale=e._locale),or(e)&&o(e,"_isValid")&&(r._isValid=e._isValid),r}function Lr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Tr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Ar(e,t){var n;return e.isValid()&&t.isValid()?(t=mr(t,e),e.isBefore(t)?n=Tr(e,t):((n=Tr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Hr(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Dr(this,Cr(n,r),e),this}}function Dr(e,t,n,i){var s=t._milliseconds,a=lr(t._days),o=lr(t._months);e.isValid()&&(i=null==i||i,o&>(e,ce(e,"Month")+o*n),a&&me(e,"Date",ce(e,"Date")+a*n),s&&e._d.setTime(e._d.valueOf()+s*n),i&&r.updateOffset(e,a||o))}Cr.fn=ar.prototype,Cr.invalid=sr;var Ir=Hr(1,"add"),Pr=Hr(-1,"subtract");function Or(e){return"string"===typeof e||e instanceof String}function _r(e){return N(e)||d(e)||Or(e)||u(e)||Rr(e)||Vr(e)||null===e||void 0===e}function Vr(e){var t,n,r=a(e)&&!l(e),i=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],g=s.length;for(t=0;tn.valueOf():n.valueOf()9999?K(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):L(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",K(n,"Z")):K(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ei(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",s="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",s="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=s+'[")]',this.format(e+t+n+r)}function ti(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=K(this,e);return this.localeData().postformat(t)}function ni(e,t){return this.isValid()&&(N(e)&&e.isValid()||Jn(e).isValid())?Cr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ri(e){return this.from(Jn(),e)}function ii(e,t){return this.isValid()&&(N(e)&&e.isValid()||Jn(e).isValid())?Cr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function si(e){return this.to(Jn(),e)}function ai(e){var t;return void 0===e?this._locale._abbr:(null!=(t=vn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var oi=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function li(){return this._locale}var gi=1e3,ui=60*gi,di=60*ui,ci=3506328*di;function mi(e,t){return(e%t+t)%t}function hi(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-ci:new Date(e,t,n).valueOf()}function ki(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-ci:Date.UTC(e,t,n)}function pi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ki:hi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=mi(t+(this._isUTC?0:this.utcOffset()*ui),di);break;case"minute":t=this._d.valueOf(),t-=mi(t,ui);break;case"second":t=this._d.valueOf(),t-=mi(t,gi)}return this._d.setTime(t),r.updateOffset(this,!0),this}function fi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ki:hi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=di-mi(t+(this._isUTC?0:this.utcOffset()*ui),di)-1;break;case"minute":t=this._d.valueOf(),t+=ui-mi(t,ui)-1;break;case"second":t=this._d.valueOf(),t+=gi-mi(t,gi)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function vi(){return this._d.valueOf()-6e4*(this._offset||0)}function bi(){return Math.floor(this.valueOf()/1e3)}function yi(){return new Date(this.valueOf())}function ji(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function wi(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ni(){return this.isValid()?this.toISOString():null}function Ei(){return f(this)}function xi(){return m({},p(this))}function Si(){return p(this).overflow}function Mi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ci(e,t){var n,i,s,a=this._eras||vn("en")._eras;for(n=0,i=a.length;n=0)return l[r]}function Ti(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Ai(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e(s=Nt(e,r,i))&&(t=s),Qi.call(this,e,t,n,r,i))}function Qi(e,t,n,r,i){var s=jt(e,t,n,r,i),a=bt(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Xi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}B("N",0,0,"eraAbbr"),B("NN",0,0,"eraAbbr"),B("NNN",0,0,"eraAbbr"),B("NNNN",0,0,"eraName"),B("NNNNN",0,0,"eraNarrow"),B("y",["y",1],"yo","eraYear"),B("y",["yy",2],0,"eraYear"),B("y",["yyy",3],0,"eraYear"),B("y",["yyyy",4],0,"eraYear"),Ie("N",Vi),Ie("NN",Vi),Ie("NNN",Vi),Ie("NNNN",Ri),Ie("NNNNN",Bi),Re(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?p(n).era=i:p(n).invalidEra=e})),Ie("y",Ce),Ie("yy",Ce),Ie("yyy",Ce),Ie("yyyy",Ce),Ie("yo",Fi),Re(["y","yy","yyy","yyyy"],Ke),Re(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Ke]=n._locale.eraYearOrdinalParse(e,i):t[Ke]=parseInt(e,10)})),B(0,["gg",2],0,(function(){return this.weekYear()%100})),B(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Ki("gggg","weekYear"),Ki("ggggg","weekYear"),Ki("GGGG","isoWeekYear"),Ki("GGGGG","isoWeekYear"),ne("weekYear","gg"),ne("isoWeekYear","GG"),ae("weekYear",1),ae("isoWeekYear",1),Ie("G",Le),Ie("g",Le),Ie("GG",we,ve),Ie("gg",we,ve),Ie("GGGG",Se,ye),Ie("gggg",Se,ye),Ie("GGGGG",Me,je),Ie("ggggg",Me,je),Be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=ue(e)})),Be(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),B("Q",0,"Qo","quarter"),ne("quarter","Q"),ae("quarter",7),Ie("Q",fe),Re("Q",(function(e,t){t[ze]=3*(ue(e)-1)})),B("D",["DD",2],"Do","date"),ne("date","D"),ae("date",9),Ie("D",we),Ie("DD",we,ve),Ie("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Re(["D","DD"],Ye),Re("Do",(function(e,t){t[Ye]=ue(e.match(we)[0])}));var Zi=de("Date",!0);function es(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}B("DDD",["DDDD",3],"DDDo","dayOfYear"),ne("dayOfYear","DDD"),ae("dayOfYear",4),Ie("DDD",xe),Ie("DDDD",be),Re(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=ue(e)})),B("m",["mm",2],0,"minute"),ne("minute","m"),ae("minute",14),Ie("m",we),Ie("mm",we,ve),Re(["m","mm"],We);var ts=de("Minutes",!1);B("s",["ss",2],0,"second"),ne("second","s"),ae("second",15),Ie("s",we),Ie("ss",we,ve),Re(["s","ss"],qe);var ns,rs,is=de("Seconds",!1);for(B("S",0,0,(function(){return~~(this.millisecond()/100)})),B(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),B(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),B(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),B(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),B(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),B(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ne("millisecond","ms"),ae("millisecond",16),Ie("S",xe,fe),Ie("SS",xe,ve),Ie("SSS",xe,be),ns="SSSS";ns.length<=9;ns+="S")Ie(ns,Ce);function ss(e,t){t[Je]=ue(1e3*("0."+e))}for(ns="S";ns.length<=9;ns+="S")Re(ns,ss);function as(){return this._isUTC?"UTC":""}function os(){return this._isUTC?"Coordinated Universal Time":""}rs=de("Milliseconds",!1),B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");var ls=w.prototype;function gs(e){return Jn(1e3*e)}function us(){return Jn.apply(null,arguments).parseZone()}function ds(e){return e}ls.add=Ir,ls.calendar=Ur,ls.clone=Kr,ls.diff=$r,ls.endOf=fi,ls.format=ti,ls.from=ni,ls.fromNow=ri,ls.to=ii,ls.toNow=si,ls.get=he,ls.invalidAt=Si,ls.isAfter=zr,ls.isBefore=Yr,ls.isBetween=Gr,ls.isSame=Wr,ls.isSameOrAfter=qr,ls.isSameOrBefore=Jr,ls.isValid=Ei,ls.lang=oi,ls.locale=ai,ls.localeData=li,ls.max=Qn,ls.min=$n,ls.parsingFlags=xi,ls.set=ke,ls.startOf=pi,ls.subtract=Pr,ls.toArray=ji,ls.toObject=wi,ls.toDate=yi,ls.toISOString=Zr,ls.inspect=ei,"undefined"!==typeof Symbol&&null!=Symbol.for&&(ls[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ls.toJSON=Ni,ls.toString=Xr,ls.unix=bi,ls.valueOf=vi,ls.creationData=Mi,ls.eraName=Ai,ls.eraNarrow=Hi,ls.eraAbbr=Di,ls.eraYear=Ii,ls.year=pt,ls.isLeapYear=ft,ls.weekYear=zi,ls.isoWeekYear=Yi,ls.quarter=ls.quarters=Xi,ls.month=ut,ls.daysInMonth=dt,ls.week=ls.weeks=Ct,ls.isoWeek=ls.isoWeeks=Lt,ls.weeksInYear=qi,ls.weeksInWeekYear=Ji,ls.isoWeeksInYear=Gi,ls.isoWeeksInISOWeekYear=Wi,ls.date=Zi,ls.day=ls.days=zt,ls.weekday=Yt,ls.isoWeekday=Gt,ls.dayOfYear=es,ls.hour=ls.hours=rn,ls.minute=ls.minutes=ts,ls.second=ls.seconds=is,ls.millisecond=ls.milliseconds=rs,ls.utcOffset=kr,ls.utc=fr,ls.local=vr,ls.parseZone=br,ls.hasAlignedHourOffset=yr,ls.isDST=jr,ls.isLocal=Nr,ls.isUtcOffset=Er,ls.isUtc=xr,ls.isUTC=xr,ls.zoneAbbr=as,ls.zoneName=os,ls.dates=x("dates accessor is deprecated. Use date instead.",Zi),ls.months=x("months accessor is deprecated. Use month instead",ut),ls.years=x("years accessor is deprecated. Use year instead",pt),ls.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",pr),ls.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",wr);var cs=H.prototype;function ms(e,t,n,r){var i=vn(),s=h().set(r,t);return i[n](s,e)}function hs(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return ms(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=ms(e,r,n,"month");return i}function ks(e,t,n,r){"boolean"===typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var i,s=vn(),a=e?s._week.dow:0,o=[];if(null!=n)return ms(t,(n+a)%7,r,"day");for(i=0;i<7;i++)o[i]=ms(t,(i+a)%7,r,"day");return o}function ps(e,t){return hs(e,t,"months")}function fs(e,t){return hs(e,t,"monthsShort")}function vs(e,t,n){return ks(e,t,n,"weekdays")}function bs(e,t,n){return ks(e,t,n,"weekdaysShort")}function ys(e,t,n){return ks(e,t,n,"weekdaysMin")}cs.calendar=I,cs.longDateFormat=G,cs.invalidDate=q,cs.ordinal=Q,cs.preparse=ds,cs.postformat=ds,cs.relativeTime=Z,cs.pastFuture=ee,cs.set=T,cs.eras=Ci,cs.erasParse=Li,cs.erasConvertYear=Ti,cs.erasAbbrRegex=Oi,cs.erasNameRegex=Pi,cs.erasNarrowRegex=_i,cs.months=st,cs.monthsShort=at,cs.monthsParse=lt,cs.monthsRegex=mt,cs.monthsShortRegex=ct,cs.week=Et,cs.firstDayOfYear=Mt,cs.firstDayOfWeek=St,cs.weekdays=Rt,cs.weekdaysMin=Ft,cs.weekdaysShort=Bt,cs.weekdaysParse=Kt,cs.weekdaysRegex=Wt,cs.weekdaysShortRegex=qt,cs.weekdaysMinRegex=Jt,cs.isPM=tn,cs.meridiem=sn,kn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ue(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=x("moment.lang is deprecated. Use moment.locale instead.",kn),r.langData=x("moment.langData is deprecated. Use moment.localeData instead.",vn);var js=Math.abs;function ws(){var e=this._data;return this._milliseconds=js(this._milliseconds),this._days=js(this._days),this._months=js(this._months),e.milliseconds=js(e.milliseconds),e.seconds=js(e.seconds),e.minutes=js(e.minutes),e.hours=js(e.hours),e.months=js(e.months),e.years=js(e.years),this}function Ns(e,t,n,r){var i=Cr(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Es(e,t){return Ns(this,e,t,1)}function xs(e,t){return Ns(this,e,t,-1)}function Ss(e){return e<0?Math.floor(e):Math.ceil(e)}function Ms(){var e,t,n,r,i,s=this._milliseconds,a=this._days,o=this._months,l=this._data;return s>=0&&a>=0&&o>=0||s<=0&&a<=0&&o<=0||(s+=864e5*Ss(Ls(o)+a),a=0,o=0),l.milliseconds=s%1e3,e=ge(s/1e3),l.seconds=e%60,t=ge(e/60),l.minutes=t%60,n=ge(t/60),l.hours=n%24,a+=ge(n/24),o+=i=ge(Cs(a)),a-=Ss(Ls(i)),r=ge(o/12),o%=12,l.days=a,l.months=o,l.years=r,this}function Cs(e){return 4800*e/146097}function Ls(e){return 146097*e/4800}function Ts(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Cs(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ls(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function As(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ue(this._months/12):NaN}function Hs(e){return function(){return this.as(e)}}var Ds=Hs("ms"),Is=Hs("s"),Ps=Hs("m"),Os=Hs("h"),_s=Hs("d"),Vs=Hs("w"),Rs=Hs("M"),Bs=Hs("Q"),Fs=Hs("y");function Us(){return Cr(this)}function Ks(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function zs(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ys=zs("milliseconds"),Gs=zs("seconds"),Ws=zs("minutes"),qs=zs("hours"),Js=zs("days"),$s=zs("months"),Qs=zs("years");function Xs(){return ge(this.days()/7)}var Zs=Math.round,ea={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ta(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function na(e,t,n,r){var i=Cr(e).abs(),s=Zs(i.as("s")),a=Zs(i.as("m")),o=Zs(i.as("h")),l=Zs(i.as("d")),g=Zs(i.as("M")),u=Zs(i.as("w")),d=Zs(i.as("y")),c=s<=n.ss&&["s",s]||s0,c[4]=r,ta.apply(null,c)}function ra(e){return void 0===e?Zs:"function"===typeof e&&(Zs=e,!0)}function ia(e,t){return void 0!==ea[e]&&(void 0===t?ea[e]:(ea[e]=t,"s"===e&&(ea.ss=t-1),!0))}function sa(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,s=ea;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(i=e),"object"===typeof t&&(s=Object.assign({},ea,t),null!=t.s&&null==t.ss&&(s.ss=t.s-1)),r=na(this,!i,s,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var aa=Math.abs;function oa(e){return(e>0)-(e<0)||+e}function la(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,s,a,o,l=aa(this._milliseconds)/1e3,g=aa(this._days),u=aa(this._months),d=this.asSeconds();return d?(e=ge(l/60),t=ge(e/60),l%=60,e%=60,n=ge(u/12),u%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",s=oa(this._months)!==oa(d)?"-":"",a=oa(this._days)!==oa(d)?"-":"",o=oa(this._milliseconds)!==oa(d)?"-":"",i+"P"+(n?s+n+"Y":"")+(u?s+u+"M":"")+(g?a+g+"D":"")+(t||e||l?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(l?o+r+"S":"")):"P0D"}var ga=ar.prototype;return ga.isValid=ir,ga.abs=ws,ga.add=Es,ga.subtract=xs,ga.as=Ts,ga.asMilliseconds=Ds,ga.asSeconds=Is,ga.asMinutes=Ps,ga.asHours=Os,ga.asDays=_s,ga.asWeeks=Vs,ga.asMonths=Rs,ga.asQuarters=Bs,ga.asYears=Fs,ga.valueOf=As,ga._bubble=Ms,ga.clone=Us,ga.get=Ks,ga.milliseconds=Ys,ga.seconds=Gs,ga.minutes=Ws,ga.hours=qs,ga.days=Js,ga.weeks=Xs,ga.months=$s,ga.years=Qs,ga.humanize=sa,ga.toISOString=la,ga.toString=la,ga.toJSON=la,ga.locale=ai,ga.localeData=li,ga.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",la),ga.lang=oi,B("X",0,0,"unix"),B("x",0,0,"valueOf"),Ie("x",Le),Ie("X",He),Re("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Re("x",(function(e,t,n){n._d=new Date(ue(e))})),r.version="2.29.4",i(Jn),r.fn=ls,r.min=Zn,r.max=er,r.now=tr,r.utc=h,r.unix=gs,r.months=ps,r.isDate=d,r.locale=kn,r.invalid=v,r.duration=Cr,r.isMoment=N,r.weekdays=vs,r.parseZone=us,r.localeData=vn,r.isDuration=or,r.monthsShort=fs,r.weekdaysMin=ys,r.defineLocale=pn,r.updateLocale=fn,r.locales=bn,r.weekdaysShort=bs,r.normalizeUnits=re,r.relativeTimeRounding=ra,r.relativeTimeThreshold=ia,r.calendarFormat=Fr,r.prototype=ls,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()},888:function(e,t,n){"use strict";var r=n(47);function i(){}function s(){}s.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,s,a){if(a!==r){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:i};return n.PropTypes=n,n}},7:function(e,t,n){e.exports=n(888)()},47:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},463:function(e,t,n){"use strict";var r=n(791),i=n(296);function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(h,e)||!d.call(m,e)&&(c.test(e)?h[e]=!0:(m[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(f,v);p[t]=new k(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(f,v);p[t]=new k(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(f,v);p[t]=new k(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){p[e]=new k(e,1,!1,e.toLowerCase(),null,!1,!1)})),p.xlinkHref=new k("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){p[e]=new k(e,1,!1,e.toLowerCase(),null,!0,!0)}));var y=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,j=Symbol.for("react.element"),w=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),M=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),H=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var D=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var I=Symbol.iterator;function P(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=I&&e[I]||e["@@iterator"])?e:null}var O,_=Object.assign;function V(e){if(void 0===O)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);O=t&&t[1]||""}return"\n"+O+e}var R=!1;function B(e,t){if(!e||R)return"";R=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(g){var r=g}Reflect.construct(e,[],t)}else{try{t.call()}catch(g){r=g}e.call(t.prototype)}else{try{throw Error()}catch(g){r=g}e()}}catch(g){if(g&&r&&"string"===typeof g.stack){for(var i=g.stack.split("\n"),s=r.stack.split("\n"),a=i.length-1,o=s.length-1;1<=a&&0<=o&&i[a]!==s[o];)o--;for(;1<=a&&0<=o;a--,o--)if(i[a]!==s[o]){if(1!==a||1!==o)do{if(a--,0>--o||i[a]!==s[o]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}}while(1<=a&&0<=o);break}}}finally{R=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?V(e):""}function F(e){switch(e.tag){case 5:return V(e.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function U(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case N:return"Fragment";case w:return"Portal";case x:return"Profiler";case E:return"StrictMode";case L:return"Suspense";case T:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case M:return(e.displayName||"Context")+".Consumer";case S:return(e._context.displayName||"Context")+".Provider";case C:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case A:return null!==(t=e.displayName||null)?t:U(e.type)||"Memo";case H:t=e._payload,e=e._init;try{return U(e(t))}catch(n){}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function z(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,s.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function W(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function q(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function $(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=z(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){Q(e,t);var n=z(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,z(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=ge.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function ce(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var me={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function ke(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||me.hasOwnProperty(e)&&me[e]?(""+t).trim():t+"px"}function pe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=ke(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(me).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),me[t]=me[e]}))}));var fe=_({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(fe[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(s(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(s(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(s(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ye=null;function je(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var we=null,Ne=null,Ee=null;function xe(e){if(e=bi(e)){if("function"!==typeof we)throw Error(s(280));var t=e.stateNode;t&&(t=ji(t),we(e.stateNode,e.type,t))}}function Se(e){Ne?Ee?Ee.push(e):Ee=[e]:Ne=e}function Me(){if(Ne){var e=Ne,t=Ee;if(Ee=Ne=null,xe(e),t)for(e=0;e>>=0,0===e?32:31-(ot(e)/lt|0)|0},ot=Math.log,lt=Math.LN2;var gt=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ct(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,a=268435455&n;if(0!==a){var o=a&~i;0!==o?r=dt(o):0!==(s&=a)&&(r=dt(s))}else 0!==(a=n&~i)?r=dt(a):0!==s&&(r=dt(s));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(s=t&-t)||16===i&&0!==(4194240&s)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ft(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<=Pn),Vn=String.fromCharCode(32),Rn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Un=!1;var Kn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function zn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Kn[e.type]:"textarea"===t}function Yn(e,t,n,r){Se(r),0<(t=Gr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,Wn=null;function qn(e){Vr(e,0)}function Jn(e){if(W(yi(e)))return e}function $n(e,t){if("change"===e)return t}var Qn=!1;if(u){var Xn;if(u){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"===typeof er.oninput}Xn=Zn}else Xn=!1;Qn=Xn&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=gr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function cr(){for(var e=window,t=q();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=q((e=t.contentWindow).document)}return t}function mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=cr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&mr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=void 0===r.end?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=ur(n,s);var a=ur(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n=document.documentMode,pr=null,fr=null,vr=null,br=!1;function yr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==pr||pr!==q(r)||("selectionStart"in(r=pr)&&mr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&lr(vr,r)||(vr=r,0<(r=Gr(fr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=pr)))}function jr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wr={animationend:jr("Animation","AnimationEnd"),animationiteration:jr("Animation","AnimationIteration"),animationstart:jr("Animation","AnimationStart"),transitionend:jr("Transition","TransitionEnd")},Nr={},Er={};function xr(e){if(Nr[e])return Nr[e];if(!wr[e])return e;var t,n=wr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return Nr[e]=n[t];return e}u&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);var Sr=xr("animationend"),Mr=xr("animationiteration"),Cr=xr("animationstart"),Lr=xr("transitionend"),Tr=new Map,Ar="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Hr(e,t){Tr.set(e,t),l(t,[e])}for(var Dr=0;DrNi||(e.current=wi[Ni],wi[Ni]=null,Ni--)}function Si(e,t){Ni++,wi[Ni]=e.current,e.current=t}var Mi={},Ci=Ei(Mi),Li=Ei(!1),Ti=Mi;function Ai(e,t){var n=e.type.contextTypes;if(!n)return Mi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,s={};for(i in n)s[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Hi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Di(){xi(Li),xi(Ci)}function Ii(e,t,n){if(Ci.current!==Mi)throw Error(s(168));Si(Ci,t),Si(Li,n)}function Pi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(s(108,K(e)||"Unknown",i));return _({},n,r)}function Oi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mi,Ti=Ci.current,Si(Ci,e),Si(Li,Li.current),!0}function _i(e,t,n){var r=e.stateNode;if(!r)throw Error(s(169));n?(e=Pi(e,t,Ti),r.__reactInternalMemoizedMergedChildContext=e,xi(Li),xi(Ci),Si(Ci,e)):xi(Li),Si(Li,n)}var Vi=null,Ri=!1,Bi=!1;function Fi(e){null===Vi?Vi=[e]:Vi.push(e)}function Ui(){if(!Bi&&null!==Vi){Bi=!0;var e=0,t=bt;try{var n=Vi;for(bt=1;e>=a,i-=a,$i=1<<32-at(t)+i|n<k?(p=d,d=null):p=d.sibling;var f=m(i,d,o[k],l);if(null===f){null===d&&(d=p);break}e&&d&&null===f.alternate&&t(i,d),s=a(f,s,k),null===u?g=f:u.sibling=f,u=f,d=p}if(k===o.length)return n(i,d),is&&Xi(i,k),g;if(null===d){for(;kp?(f=k,k=null):f=k.sibling;var b=m(i,k,v.value,g);if(null===b){null===k&&(k=f);break}e&&k&&null===b.alternate&&t(i,k),o=a(b,o,p),null===d?u=b:d.sibling=b,d=b,k=f}if(v.done)return n(i,k),is&&Xi(i,p),u;if(null===k){for(;!v.done;p++,v=l.next())null!==(v=c(i,v.value,g))&&(o=a(v,o,p),null===d?u=v:d.sibling=v,d=v);return is&&Xi(i,p),u}for(k=r(i,k);!v.done;p++,v=l.next())null!==(v=h(k,i,p,v.value,g))&&(e&&null!==v.alternate&&k.delete(null===v.key?p:v.key),o=a(v,o,p),null===d?u=v:d.sibling=v,d=v);return e&&k.forEach((function(e){return t(i,e)})),is&&Xi(i,p),u}return function e(r,s,a,l){if("object"===typeof a&&null!==a&&a.type===N&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case j:e:{for(var g=a.key,u=s;null!==u;){if(u.key===g){if((g=a.type)===N){if(7===u.tag){n(r,u.sibling),(s=i(u,a.props.children)).return=r,r=s;break e}}else if(u.elementType===g||"object"===typeof g&&null!==g&&g.$$typeof===H&&qs(g)===u.type){n(r,u.sibling),(s=i(u,a.props)).ref=Gs(r,u,a),s.return=r,r=s;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===N?((s=Og(a.props.children,r.mode,l,a.key)).return=r,r=s):((l=Pg(a.type,a.key,a.props,null,r.mode,l)).ref=Gs(r,s,a),l.return=r,r=l)}return o(r);case w:e:{for(u=a.key;null!==s;){if(s.key===u){if(4===s.tag&&s.stateNode.containerInfo===a.containerInfo&&s.stateNode.implementation===a.implementation){n(r,s.sibling),(s=i(s,a.children||[])).return=r,r=s;break e}n(r,s);break}t(r,s),s=s.sibling}(s=Rg(a,r.mode,l)).return=r,r=s}return o(r);case H:return e(r,s,(u=a._init)(a._payload),l)}if(te(a))return k(r,s,a,l);if(P(a))return p(r,s,a,l);Ws(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==s&&6===s.tag?(n(r,s.sibling),(s=i(s,a)).return=r,r=s):(n(r,s),(s=Vg(a,r.mode,l)).return=r,r=s),o(r)):n(r,s)}}var $s=Js(!0),Qs=Js(!1),Xs={},Zs=Ei(Xs),ea=Ei(Xs),ta=Ei(Xs);function na(e){if(e===Xs)throw Error(s(174));return e}function ra(e,t){switch(Si(ta,t),Si(ea,e),Si(Zs,Xs),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}xi(Zs),Si(Zs,t)}function ia(){xi(Zs),xi(ea),xi(ta)}function sa(e){na(ta.current);var t=na(Zs.current),n=le(t,e.type);t!==n&&(Si(ea,e),Si(Zs,n))}function aa(e){ea.current===e&&(xi(Zs),xi(ea))}var oa=Ei(0);function la(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ga=[];function ua(){for(var e=0;en?n:4,e(!0);var r=ca.transition;ca.transition={};try{e(!1),t()}finally{bt=n,ca.transition=r}}function Za(){return Sa().memoizedState}function eo(e,t,n){var r=ng(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},no(e))ro(t,n);else if(null!==(n=Cs(e,t,n,r))){rg(n,e,r,tg()),io(n,t,r)}}function to(e,t,n){var r=ng(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(no(e))ro(t,i);else{var s=e.alternate;if(0===e.lanes&&(null===s||0===s.lanes)&&null!==(s=t.lastRenderedReducer))try{var a=t.lastRenderedState,o=s(a,n);if(i.hasEagerState=!0,i.eagerState=o,or(o,a)){var l=t.interleaved;return null===l?(i.next=i,Ms(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(g){}null!==(n=Cs(e,t,i,r))&&(rg(n,e,r,i=tg()),io(n,t,r))}}function no(e){var t=e.alternate;return e===ha||null!==t&&t===ha}function ro(e,t){va=fa=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function io(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var so={readContext:xs,useCallback:ja,useContext:ja,useEffect:ja,useImperativeHandle:ja,useInsertionEffect:ja,useLayoutEffect:ja,useMemo:ja,useReducer:ja,useRef:ja,useState:ja,useDebugValue:ja,useDeferredValue:ja,useTransition:ja,useMutableSource:ja,useSyncExternalStore:ja,useId:ja,unstable_isNewReconciler:!1},ao={readContext:xs,useCallback:function(e,t){return xa().memoizedState=[e,void 0===t?null:t],e},useContext:xs,useEffect:Ua,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ba(4194308,4,Ga.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ba(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ba(4,2,e,t)},useMemo:function(e,t){var n=xa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=eo.bind(null,ha,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},xa().memoizedState=e},useState:_a,useDebugValue:qa,useDeferredValue:function(e){return xa().memoizedState=e},useTransition:function(){var e=_a(!1),t=e[0];return e=Xa.bind(null,e[1]),xa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ha,i=xa();if(is){if(void 0===n)throw Error(s(407));n=n()}else{if(n=t(),null===Tl)throw Error(s(349));0!==(30&ma)||Ha(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ua(Ia.bind(null,r,a,e),[e]),r.flags|=2048,Va(9,Da.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=xa(),t=Tl.identifierPrefix;if(is){var n=Qi;t=":"+t+"R"+(n=($i&~(1<<32-at($i)-1)).toString(32)+n),0<(n=ba++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ya++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},oo={readContext:xs,useCallback:Ja,useContext:xs,useEffect:Ka,useImperativeHandle:Wa,useInsertionEffect:za,useLayoutEffect:Ya,useMemo:$a,useReducer:Ca,useRef:Ra,useState:function(){return Ca(Ma)},useDebugValue:qa,useDeferredValue:function(e){return Qa(Sa(),ka.memoizedState,e)},useTransition:function(){return[Ca(Ma)[0],Sa().memoizedState]},useMutableSource:Ta,useSyncExternalStore:Aa,useId:Za,unstable_isNewReconciler:!1},lo={readContext:xs,useCallback:Ja,useContext:xs,useEffect:Ka,useImperativeHandle:Wa,useInsertionEffect:za,useLayoutEffect:Ya,useMemo:$a,useReducer:La,useRef:Ra,useState:function(){return La(Ma)},useDebugValue:qa,useDeferredValue:function(e){var t=Sa();return null===ka?t.memoizedState=e:Qa(t,ka.memoizedState,e)},useTransition:function(){return[La(Ma)[0],Sa().memoizedState]},useMutableSource:Ta,useSyncExternalStore:Aa,useId:Za,unstable_isNewReconciler:!1};function go(e,t){try{var n="",r=t;do{n+=F(r),r=r.return}while(r);var i=n}catch(s){i="\nError generating stack: "+s.message+"\n"+s.stack}return{value:e,source:t,stack:i,digest:null}}function uo(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function co(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var mo="function"===typeof WeakMap?WeakMap:Map;function ho(e,t,n){(n=Ds(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Yl||(Yl=!0,Gl=r),co(0,t)},n}function ko(e,t,n){(n=Ds(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){co(0,t)}}var s=e.stateNode;return null!==s&&"function"===typeof s.componentDidCatch&&(n.callback=function(){co(0,t),"function"!==typeof r&&(null===Wl?Wl=new Set([this]):Wl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function po(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new mo;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Sg.bind(null,e,t,n),t.then(e,e))}function fo(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vo(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ds(-1,1)).tag=2,Is(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var bo=y.ReactCurrentOwner,yo=!1;function jo(e,t,n,r){t.child=null===e?Qs(t,null,n,r):$s(t,e.child,n,r)}function wo(e,t,n,r,i){n=n.render;var s=t.ref;return Es(t,i),r=Na(e,t,n,r,s,i),n=Ea(),null===e||yo?(is&&n&&es(t),t.flags|=1,jo(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Yo(e,t,i))}function No(e,t,n,r,i){if(null===e){var s=n.type;return"function"!==typeof s||Dg(s)||void 0!==s.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Pg(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,Eo(e,t,s,r,i))}if(s=e.child,0===(e.lanes&i)){var a=s.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Yo(e,t,i)}return t.flags|=1,(e=Ig(s,r)).ref=t.ref,e.return=t,t.child=e}function Eo(e,t,n,r,i){if(null!==e){var s=e.memoizedProps;if(lr(s,r)&&e.ref===t.ref){if(yo=!1,t.pendingProps=r=s,0===(e.lanes&i))return t.lanes=e.lanes,Yo(e,t,i);0!==(131072&e.flags)&&(yo=!0)}}return Mo(e,t,n,r,i)}function xo(e,t,n){var r=t.pendingProps,i=r.children,s=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Si(Il,Dl),Dl|=n;else{if(0===(1073741824&n))return e=null!==s?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Si(Il,Dl),Dl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==s?s.baseLanes:n,Si(Il,Dl),Dl|=r}else null!==s?(r=s.baseLanes|n,t.memoizedState=null):r=n,Si(Il,Dl),Dl|=r;return jo(e,t,i,n),t.child}function So(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Mo(e,t,n,r,i){var s=Hi(n)?Ti:Ci.current;return s=Ai(t,s),Es(t,i),n=Na(e,t,n,r,s,i),r=Ea(),null===e||yo?(is&&r&&es(t),t.flags|=1,jo(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Yo(e,t,i))}function Co(e,t,n,r,i){if(Hi(n)){var s=!0;Oi(t)}else s=!1;if(Es(t,i),null===t.stateNode)zo(e,t),Ks(t,n,r),Ys(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,o=t.memoizedProps;a.props=o;var l=a.context,g=n.contextType;"object"===typeof g&&null!==g?g=xs(g):g=Ai(t,g=Hi(n)?Ti:Ci.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(o!==r||l!==g)&&zs(t,a,r,g),Ts=!1;var c=t.memoizedState;a.state=c,_s(t,r,a,i),l=t.memoizedState,o!==r||c!==l||Li.current||Ts?("function"===typeof u&&(Bs(t,n,u,r),l=t.memoizedState),(o=Ts||Us(t,n,o,r,c,l,g))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=g,r=o):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Hs(e,t),o=t.memoizedProps,g=t.type===t.elementType?o:ps(t.type,o),a.props=g,d=t.pendingProps,c=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=xs(l):l=Ai(t,l=Hi(n)?Ti:Ci.current);var m=n.getDerivedStateFromProps;(u="function"===typeof m||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(o!==d||c!==l)&&zs(t,a,r,l),Ts=!1,c=t.memoizedState,a.state=c,_s(t,r,a,i);var h=t.memoizedState;o!==d||c!==h||Li.current||Ts?("function"===typeof m&&(Bs(t,n,m,r),h=t.memoizedState),(g=Ts||Us(t,n,g,r,c,h,l)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||o===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=g):("function"!==typeof a.componentDidUpdate||o===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),r=!1)}return Lo(e,t,n,r,s,i)}function Lo(e,t,n,r,i,s){So(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&_i(t,n,!1),Yo(e,t,s);r=t.stateNode,bo.current=t;var o=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=$s(t,e.child,null,s),t.child=$s(t,null,o,s)):jo(e,t,o,s),t.memoizedState=r.state,i&&_i(t,n,!0),t.child}function To(e){var t=e.stateNode;t.pendingContext?Ii(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ii(0,t.context,!1),ra(e,t.containerInfo)}function Ao(e,t,n,r,i){return ms(),hs(i),t.flags|=256,jo(e,t,n,r),t.child}var Ho,Do,Io,Po,Oo={dehydrated:null,treeContext:null,retryLane:0};function _o(e){return{baseLanes:e,cachePool:null,transitions:null}}function Vo(e,t,n){var r,i=t.pendingProps,a=oa.current,o=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(o=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Si(oa,1&a),null===e)return gs(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,o?(i=t.mode,o=t.child,l={mode:"hidden",children:l},0===(1&i)&&null!==o?(o.childLanes=0,o.pendingProps=l):o=_g(l,i,0,null),e=Og(e,i,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=_o(n),t.memoizedState=Oo,e):Ro(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,o){if(n)return 256&t.flags?(t.flags&=-257,Bo(e,t,o,r=uo(Error(s(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=_g({mode:"visible",children:r.children},i,0,null),(a=Og(a,i,o,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&$s(t,e.child,null,o),t.child.memoizedState=_o(o),t.memoizedState=Oo,a);if(0===(1&t.mode))return Bo(e,t,o,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Bo(e,t,o,r=uo(a=Error(s(419)),r,void 0))}if(l=0!==(o&e.childLanes),yo||l){if(null!==(r=Tl)){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|o))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Ls(e,i),rg(r,e,i,-1))}return pg(),Bo(e,t,o,r=uo(Error(s(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Cg.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,rs=gi(i.nextSibling),ns=t,is=!0,ss=null,null!==e&&(Wi[qi++]=$i,Wi[qi++]=Qi,Wi[qi++]=Ji,$i=e.id,Qi=e.overflow,Ji=t),t=Ro(t,r.children),t.flags|=4096,t)}(e,t,l,i,r,a,n);if(o){o=i.fallback,l=t.mode,r=(a=e.child).sibling;var g={mode:"hidden",children:i.children};return 0===(1&l)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=g,t.deletions=null):(i=Ig(a,g)).subtreeFlags=14680064&a.subtreeFlags,null!==r?o=Ig(r,o):(o=Og(o,l,n,null)).flags|=2,o.return=t,i.return=t,i.sibling=o,t.child=i,i=o,o=t.child,l=null===(l=e.child.memoizedState)?_o(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=Oo,i}return e=(o=e.child).sibling,i=Ig(o,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Ro(e,t){return(t=_g({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bo(e,t,n,r){return null!==r&&hs(r),$s(t,e.child,null,n),(e=Ro(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fo(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ns(e.return,t,n)}function Uo(e,t,n,r,i){var s=e.memoizedState;null===s?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function Ko(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(jo(e,t,r.children,n),0!==(2&(r=oa.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fo(e,n,t);else if(19===e.tag)Fo(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Si(oa,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===la(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Uo(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===la(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Uo(t,!0,n,null,s);break;case"together":Uo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function zo(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Yo(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),_l|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=Ig(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ig(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Go(e,t){if(!is)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Wo(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function qo(e,t,n){var r=t.pendingProps;switch(ts(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wo(t),null;case 1:case 17:return Hi(t.type)&&Di(),Wo(t),null;case 3:return r=t.stateNode,ia(),xi(Li),xi(Ci),ua(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(ds(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ss&&(og(ss),ss=null))),Do(e,t),Wo(t),null;case 5:aa(t);var i=na(ta.current);if(n=t.type,null!==e&&null!=t.stateNode)Io(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(s(166));return Wo(t),null}if(e=na(Zs.current),ds(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[ci]=t,r[mi]=a,e=0!==(1&t.mode),n){case"dialog":Rr("cancel",r),Rr("close",r);break;case"iframe":case"object":case"embed":Rr("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ci]=t,e[mi]=r,Ho(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Rr("cancel",e),Rr("close",e),i=r;break;case"iframe":case"object":case"embed":Rr("load",e),i=r;break;case"video":case"audio":for(i=0;iKl&&(t.flags|=128,r=!0,Go(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=la(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Go(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!is)return Wo(t),null}else 2*Qe()-a.renderingStartTime>Kl&&1073741824!==n&&(t.flags|=128,r=!0,Go(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=oa.current,Si(oa,r?1&n|2:1&n),t):(Wo(t),null);case 22:case 23:return cg(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Dl)&&(Wo(t),6&t.subtreeFlags&&(t.flags|=8192)):Wo(t),null;case 24:case 25:return null}throw Error(s(156,t.tag))}function Jo(e,t){switch(ts(t),t.tag){case 1:return Hi(t.type)&&Di(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ia(),xi(Li),xi(Ci),ua(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return aa(t),null;case 13:if(xi(oa),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(s(340));ms()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return xi(oa),null;case 4:return ia(),null;case 10:return ws(t.type._context),null;case 22:case 23:return cg(),null;default:return null}}Ho=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Do=function(){},Io=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,na(Zs.current);var s,a=null;switch(n){case"input":i=J(e,i),r=J(e,r),a=[];break;case"select":i=_({},i,{value:void 0}),r=_({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Zr)}for(u in ve(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(o.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var g=r[u];if(l=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&g!==l&&(null!=g||null!=l))if("style"===u)if(l){for(s in l)!l.hasOwnProperty(s)||g&&g.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in g)g.hasOwnProperty(s)&&l[s]!==g[s]&&(n||(n={}),n[s]=g[s])}else n||(a||(a=[]),a.push(u,n)),n=g;else"dangerouslySetInnerHTML"===u?(g=g?g.__html:void 0,l=l?l.__html:void 0,null!=g&&l!==g&&(a=a||[]).push(u,g)):"children"===u?"string"!==typeof g&&"number"!==typeof g||(a=a||[]).push(u,""+g):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(o.hasOwnProperty(u)?(null!=g&&"onScroll"===u&&Rr("scroll",e),a||l===g||(a=[])):(a=a||[]).push(u,g))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Po=function(e,t,n,r){n!==r&&(t.flags|=4)};var $o=!1,Qo=!1,Xo="function"===typeof WeakSet?WeakSet:Set,Zo=null;function el(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){xg(e,t,r)}else n.current=null}function tl(e,t,n){try{n()}catch(r){xg(e,t,r)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,void 0!==s&&tl(t,n,s)}i=i.next}while(i!==r)}}function il(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function sl(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[ci],delete t[mi],delete t[ki],delete t[pi],delete t[fi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ol(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ol(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function gl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(gl(e,t,n),e=e.sibling;null!==e;)gl(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var dl=null,cl=!1;function ml(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(st&&"function"===typeof st.onCommitFiberUnmount)try{st.onCommitFiberUnmount(it,n)}catch(o){}switch(n.tag){case 5:Qo||el(n,t);case 6:var r=dl,i=cl;dl=null,ml(e,t,n),cl=i,null!==(dl=r)&&(cl?(e=dl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dl.removeChild(n.stateNode));break;case 18:null!==dl&&(cl?(e=dl,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),Ut(e)):li(dl,n.stateNode));break;case 4:r=dl,i=cl,dl=n.stateNode.containerInfo,cl=!0,ml(e,t,n),dl=r,cl=i;break;case 0:case 11:case 14:case 15:if(!Qo&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var s=i,a=s.destroy;s=s.tag,void 0!==a&&(0!==(2&s)||0!==(4&s))&&tl(n,t,a),i=i.next}while(i!==r)}ml(e,t,n);break;case 1:if(!Qo&&(el(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){xg(n,t,o)}ml(e,t,n);break;case 21:ml(e,t,n);break;case 22:1&n.mode?(Qo=(r=Qo)||null!==n.memoizedState,ml(e,t,n),Qo=r):ml(e,t,n);break;default:ml(e,t,n)}}function kl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xo),t.forEach((function(t){var r=Lg.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function pl(e,t){var n=t.deletions;if(null!==n)for(var r=0;ri&&(i=o),r&=~a}if(r=i,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xl(r/1960))-r)){e.timeoutHandle=ri(wg.bind(null,e,Fl,zl),r);break}wg(e,Fl,zl);break;default:throw Error(s(329))}}}return ig(e,Qe()),e.callbackNode===n?sg.bind(null,e):null}function ag(e,t){var n=Bl;return e.current.memoizedState.isDehydrated&&(mg(e,t).flags|=256),2!==(e=fg(e,t))&&(t=Fl,Fl=n,null!==t&&og(t)),e}function og(e){null===Fl?Fl=e:Fl.push.apply(Fl,e)}function lg(e,t){for(t&=~Rl,t&=~Vl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0e?16:e,null===Jl)var r=!1;else{if(e=Jl,Jl=null,$l=0,0!==(6&Ll))throw Error(s(331));var i=Ll;for(Ll|=4,Zo=e.current;null!==Zo;){var a=Zo,o=a.child;if(0!==(16&Zo.flags)){var l=a.deletions;if(null!==l){for(var g=0;gQe()-Ul?mg(e,0):Rl|=n),ig(e,t)}function Mg(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=tg();null!==(e=Ls(e,t))&&(ft(e,t,n),ig(e,n))}function Cg(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Mg(e,n)}function Lg(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(s(314))}null!==r&&r.delete(t),Mg(e,n)}function Tg(e,t){return We(e,t)}function Ag(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Hg(e,t,n,r){return new Ag(e,t,n,r)}function Dg(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ig(e,t){var n=e.alternate;return null===n?((n=Hg(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Pg(e,t,n,r,i,a){var o=2;if(r=e,"function"===typeof e)Dg(e)&&(o=1);else if("string"===typeof e)o=5;else e:switch(e){case N:return Og(n.children,i,a,t);case E:o=8,i|=8;break;case x:return(e=Hg(12,n,t,2|i)).elementType=x,e.lanes=a,e;case L:return(e=Hg(13,n,t,i)).elementType=L,e.lanes=a,e;case T:return(e=Hg(19,n,t,i)).elementType=T,e.lanes=a,e;case D:return _g(n,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case S:o=10;break e;case M:o=9;break e;case C:o=11;break e;case A:o=14;break e;case H:o=16,r=null;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=Hg(o,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Og(e,t,n,r){return(e=Hg(7,e,r,t)).lanes=n,e}function _g(e,t,n,r){return(e=Hg(22,e,r,t)).elementType=D,e.lanes=n,e.stateNode={isHidden:!1},e}function Vg(e,t,n){return(e=Hg(6,e,null,t)).lanes=n,e}function Rg(e,t,n){return(t=Hg(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bg(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pt(0),this.expirationTimes=pt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Fg(e,t,n,r,i,s,a,o,l){return e=new Bg(e,t,n,o,l),1===t?(t=1,!0===s&&(t|=8)):t=0,s=Hg(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},As(s),e}function Ug(e){if(!e)return Mi;e:{if(Ue(e=e._reactInternals)!==e||1!==e.tag)throw Error(s(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Hi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(s(171))}if(1===e.tag){var n=e.type;if(Hi(n))return Pi(e,n,t)}return t}function Kg(e,t,n,r,i,s,a,o,l){return(e=Fg(n,r,!0,e,0,s,0,o,l)).context=Ug(null),n=e.current,(s=Ds(r=tg(),i=ng(n))).callback=void 0!==t&&null!==t?t:null,Is(n,s,i),e.current.lanes=i,ft(e,i,r),ig(e,r),e}function zg(e,t,n,r){var i=t.current,s=tg(),a=ng(i);return n=Ug(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ds(s,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Is(i,t,a))&&(rg(e,i,a,s),Ps(e,i,a)),a}function Yg(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Gg(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n>>1,i=e[r];if(!(0>>1;rs(l,n))gs(u,l)?(e[r]=u,e[g]=n,r=g):(e[r]=l,e[o]=n,r=o);else{if(!(gs(u,n)))break e;e[r]=u,e[g]=n,r=g}}}return t}function s(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var g=[],u=[],d=1,c=null,m=3,h=!1,k=!1,p=!1,f="function"===typeof setTimeout?setTimeout:null,v="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function y(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(g,t)}t=r(u)}}function j(e){if(p=!1,y(e),!k)if(null!==r(g))k=!0,D(w);else{var t=r(u);null!==t&&I(j,t.startTime-e)}}function w(e,n){k=!1,p&&(p=!1,v(S),S=-1),h=!0;var s=m;try{for(y(n),c=r(g);null!==c&&(!(c.expirationTime>n)||e&&!L());){var a=c.callback;if("function"===typeof a){c.callback=null,m=c.priorityLevel;var o=a(c.expirationTime<=n);n=t.unstable_now(),"function"===typeof o?c.callback=o:c===r(g)&&i(g),y(n)}else i(g);c=r(g)}if(null!==c)var l=!0;else{var d=r(u);null!==d&&I(j,d.startTime-n),l=!1}return l}finally{c=null,m=s,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var N,E=!1,x=null,S=-1,M=5,C=-1;function L(){return!(t.unstable_now()-Ce||125a?(e.sortIndex=s,n(u,e),null===r(g)&&e===r(u)&&(p?(v(S),S=-1):p=!0,I(j,s-a))):(e.sortIndex=o,n(g,e),k||h||(k=!0,D(w))),e},t.unstable_shouldYield=L,t.unstable_wrapCallback=function(e){var t=m;return function(){var n=m;m=t;try{return e.apply(this,arguments)}finally{m=n}}}},296:function(e,t,n){"use strict";e.exports=n(813)},391:function(e){"use strict";var t=function(){};e.exports=t},501:function(e){e.exports=function(){"use strict";for(var e=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),en?n:e},t=e,n=function(e){e._clipped=!1,e._unclipped=e.slice(0);for(var n=0;n<=3;n++)n<3?((e[n]<0||e[n]>255)&&(e._clipped=!0),e[n]=t(e[n],0,255)):3===n&&(e[n]=t(e[n],0,1));return e},r={},i=0,s=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];i=3?Array.prototype.slice.call(e):"object"==l(e[0])&&t?t.split("").filter((function(t){return void 0!==e[0][t]})).map((function(t){return e[0][t]})):e[0]},u=o,d=function(e){if(e.length<2)return null;var t=e.length-1;return"string"==u(e[t])?e[t].toLowerCase():null},c=Math.PI,m={clip_rgb:n,limit:e,type:o,unpack:g,last:d,PI:c,TWOPI:2*c,PITHIRD:c/3,DEG2RAD:c/180,RAD2DEG:180/c},h={format:{},autodetect:[]},k=m.last,p=m.clip_rgb,f=m.type,v=h,b=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=this;if("object"===f(e[0])&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];var r=k(e),i=!1;if(!r){i=!0,v.sorted||(v.autodetect=v.autodetect.sort((function(e,t){return t.p-e.p})),v.sorted=!0);for(var s=0,a=v.autodetect;s4?e[4]:1;return 1===s?[0,0,0,a]:[n>=1?0:255*(1-n)*(1-s),r>=1?0:255*(1-r)*(1-s),i>=1?0:255*(1-i)*(1-s),a]},L=C,T=w,A=y,H=h,D=m.unpack,I=m.type,P=S;A.prototype.cmyk=function(){return P(this._rgb)},T.cmyk=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(A,[null].concat(e,["cmyk"])))},H.format.cmyk=L,H.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=D(e,"cmyk"),"array"===I(e)&&4===e.length)return"cmyk"}});var O=m.unpack,_=m.last,V=function(e){return Math.round(100*e)/100},R=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=O(e,"hsla"),r=_(e)||"lsa";return n[0]=V(n[0]||0),n[1]=V(100*n[1])+"%",n[2]=V(100*n[2])+"%","hsla"===r||n.length>3&&n[3]<1?(n[3]=n.length>3?n[3]:1,r="hsla"):n.length=3,r+"("+n.join(",")+")"},B=R,F=m.unpack,U=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=F(e,"rgba"))[0],r=e[1],i=e[2];n/=255,r/=255,i/=255;var s,a,o=Math.min(n,r,i),l=Math.max(n,r,i),g=(l+o)/2;return l===o?(s=0,a=Number.NaN):s=g<.5?(l-o)/(l+o):(l-o)/(2-l-o),n==l?a=(r-i)/(l-o):r==l?a=2+(i-n)/(l-o):i==l&&(a=4+(n-r)/(l-o)),(a*=60)<0&&(a+=360),e.length>3&&void 0!==e[3]?[a,s,g,e[3]]:[a,s,g]},K=U,z=m.unpack,Y=m.last,G=B,W=K,q=Math.round,J=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=z(e,"rgba"),r=Y(e)||"rgb";return"hsl"==r.substr(0,3)?G(W(n),r):(n[0]=q(n[0]),n[1]=q(n[1]),n[2]=q(n[2]),("rgba"===r||n.length>3&&n[3]<1)&&(n[3]=n.length>3?n[3]:1,r="rgba"),r+"("+n.slice(0,"rgb"===r?3:4).join(",")+")")},$=J,Q=m.unpack,X=Math.round,Z=function(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];var r,i,s,a=(t=Q(t,"hsl"))[0],o=t[1],l=t[2];if(0===o)r=i=s=255*l;else{var g=[0,0,0],u=[0,0,0],d=l<.5?l*(1+o):l+o-l*o,c=2*l-d,m=a/360;g[0]=m+1/3,g[1]=m,g[2]=m-1/3;for(var h=0;h<3;h++)g[h]<0&&(g[h]+=1),g[h]>1&&(g[h]-=1),6*g[h]<1?u[h]=c+6*(d-c)*g[h]:2*g[h]<1?u[h]=d:3*g[h]<2?u[h]=c+(d-c)*(2/3-g[h])*6:u[h]=c;r=(e=[X(255*u[0]),X(255*u[1]),X(255*u[2])])[0],i=e[1],s=e[2]}return t.length>3?[r,i,s,t[3]]:[r,i,s,1]},ee=Z,te=ee,ne=h,re=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,ie=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,se=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,ae=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,oe=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,le=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,ge=Math.round,ue=function(e){var t;if(e=e.toLowerCase().trim(),ne.format.named)try{return ne.format.named(e)}catch(h){}if(t=e.match(re)){for(var n=t.slice(1,4),r=0;r<3;r++)n[r]=+n[r];return n[3]=1,n}if(t=e.match(ie)){for(var i=t.slice(1,5),s=0;s<4;s++)i[s]=+i[s];return i}if(t=e.match(se)){for(var a=t.slice(1,4),o=0;o<3;o++)a[o]=ge(2.55*a[o]);return a[3]=1,a}if(t=e.match(ae)){for(var l=t.slice(1,5),g=0;g<3;g++)l[g]=ge(2.55*l[g]);return l[3]=+l[3],l}if(t=e.match(oe)){var u=t.slice(1,4);u[1]*=.01,u[2]*=.01;var d=te(u);return d[3]=1,d}if(t=e.match(le)){var c=t.slice(1,4);c[1]*=.01,c[2]*=.01;var m=te(c);return m[3]=+t[4],m}};ue.test=function(e){return re.test(e)||ie.test(e)||se.test(e)||ae.test(e)||oe.test(e)||le.test(e)};var de=ue,ce=w,me=y,he=h,ke=m.type,pe=$,fe=de;me.prototype.css=function(e){return pe(this._rgb,e)},ce.css=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(me,[null].concat(e,["css"])))},he.format.css=fe,he.autodetect.push({p:5,test:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(!t.length&&"string"===ke(e)&&fe.test(e))return"css"}});var ve=y,be=w,ye=h,je=m.unpack;ye.format.gl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=je(e,"rgba");return n[0]*=255,n[1]*=255,n[2]*=255,n},be.gl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(ve,[null].concat(e,["gl"])))},ve.prototype.gl=function(){var e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]};var we=m.unpack,Ne=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r=we(e,"rgb"),i=r[0],s=r[1],a=r[2],o=Math.min(i,s,a),l=Math.max(i,s,a),g=l-o,u=100*g/255,d=o/(255-g)*100;return 0===g?n=Number.NaN:(i===l&&(n=(s-a)/g),s===l&&(n=2+(a-i)/g),a===l&&(n=4+(i-s)/g),(n*=60)<0&&(n+=360)),[n,u,d]},Ee=Ne,xe=m.unpack,Se=Math.floor,Me=function(){for(var e,t,n,r,i,s,a=[],o=arguments.length;o--;)a[o]=arguments[o];var l,g,u,d=(a=xe(a,"hcg"))[0],c=a[1],m=a[2];m*=255;var h=255*c;if(0===c)l=g=u=m;else{360===d&&(d=0),d>360&&(d-=360),d<0&&(d+=360);var k=Se(d/=60),p=d-k,f=m*(1-c),v=f+h*(1-p),b=f+h*p,y=f+h;switch(k){case 0:l=(e=[y,b,f])[0],g=e[1],u=e[2];break;case 1:l=(t=[v,y,f])[0],g=t[1],u=t[2];break;case 2:l=(n=[f,y,b])[0],g=n[1],u=n[2];break;case 3:l=(r=[f,v,y])[0],g=r[1],u=r[2];break;case 4:l=(i=[b,f,y])[0],g=i[1],u=i[2];break;case 5:l=(s=[y,f,v])[0],g=s[1],u=s[2]}}return[l,g,u,a.length>3?a[3]:1]},Ce=Me,Le=m.unpack,Te=m.type,Ae=w,He=y,De=h,Ie=Ee;He.prototype.hcg=function(){return Ie(this._rgb)},Ae.hcg=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(He,[null].concat(e,["hcg"])))},De.format.hcg=Ce,De.autodetect.push({p:1,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Le(e,"hcg"),"array"===Te(e)&&3===e.length)return"hcg"}});var Pe=m.unpack,Oe=m.last,_e=Math.round,Ve=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Pe(e,"rgba"),r=n[0],i=n[1],s=n[2],a=n[3],o=Oe(e)||"auto";void 0===a&&(a=1),"auto"===o&&(o=a<1?"rgba":"rgb");var l="000000"+((r=_e(r))<<16|(i=_e(i))<<8|(s=_e(s))).toString(16);l=l.substr(l.length-6);var g="0"+_e(255*a).toString(16);switch(g=g.substr(g.length-2),o.toLowerCase()){case"rgba":return"#"+l+g;case"argb":return"#"+g+l;default:return"#"+l}},Re=Ve,Be=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Fe=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,Ue=function(e){if(e.match(Be)){4!==e.length&&7!==e.length||(e=e.substr(1)),3===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var t=parseInt(e,16);return[t>>16,t>>8&255,255&t,1]}if(e.match(Fe)){5!==e.length&&9!==e.length||(e=e.substr(1)),4===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);var n=parseInt(e,16);return[n>>24&255,n>>16&255,n>>8&255,Math.round((255&n)/255*100)/100]}throw new Error("unknown hex color: "+e)},Ke=w,ze=y,Ye=m.type,Ge=h,We=Re;ze.prototype.hex=function(e){return We(this._rgb,e)},Ke.hex=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(ze,[null].concat(e,["hex"])))},Ge.format.hex=Ue,Ge.autodetect.push({p:4,test:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(!t.length&&"string"===Ye(e)&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});var qe=m.unpack,Je=m.TWOPI,$e=Math.min,Qe=Math.sqrt,Xe=Math.acos,Ze=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r=qe(e,"rgb"),i=r[0],s=r[1],a=r[2],o=$e(i/=255,s/=255,a/=255),l=(i+s+a)/3,g=l>0?1-o/l:0;return 0===g?n=NaN:(n=(i-s+(i-a))/2,n/=Qe((i-s)*(i-s)+(i-a)*(s-a)),n=Xe(n),a>s&&(n=Je-n),n/=Je),[360*n,g,l]},et=Ze,tt=m.unpack,nt=m.limit,rt=m.TWOPI,it=m.PITHIRD,st=Math.cos,at=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,i,s=(e=tt(e,"hsi"))[0],a=e[1],o=e[2];return isNaN(s)&&(s=0),isNaN(a)&&(a=0),s>360&&(s-=360),s<0&&(s+=360),(s/=360)<1/3?r=1-((i=(1-a)/3)+(n=(1+a*st(rt*s)/st(it-rt*s))/3)):s<2/3?i=1-((n=(1-a)/3)+(r=(1+a*st(rt*(s-=1/3))/st(it-rt*s))/3)):n=1-((r=(1-a)/3)+(i=(1+a*st(rt*(s-=2/3))/st(it-rt*s))/3)),[255*(n=nt(o*n*3)),255*(r=nt(o*r*3)),255*(i=nt(o*i*3)),e.length>3?e[3]:1]},ot=at,lt=m.unpack,gt=m.type,ut=w,dt=y,ct=h,mt=et;dt.prototype.hsi=function(){return mt(this._rgb)},ut.hsi=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(dt,[null].concat(e,["hsi"])))},ct.format.hsi=ot,ct.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=lt(e,"hsi"),"array"===gt(e)&&3===e.length)return"hsi"}});var ht=m.unpack,kt=m.type,pt=w,ft=y,vt=h,bt=K;ft.prototype.hsl=function(){return bt(this._rgb)},pt.hsl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(ft,[null].concat(e,["hsl"])))},vt.format.hsl=ee,vt.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=ht(e,"hsl"),"array"===kt(e)&&3===e.length)return"hsl"}});var yt=m.unpack,jt=Math.min,wt=Math.max,Nt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,i,s=(e=yt(e,"rgb"))[0],a=e[1],o=e[2],l=jt(s,a,o),g=wt(s,a,o),u=g-l;return i=g/255,0===g?(n=Number.NaN,r=0):(r=u/g,s===g&&(n=(a-o)/u),a===g&&(n=2+(o-s)/u),o===g&&(n=4+(s-a)/u),(n*=60)<0&&(n+=360)),[n,r,i]},Et=Nt,xt=m.unpack,St=Math.floor,Mt=function(){for(var e,t,n,r,i,s,a=[],o=arguments.length;o--;)a[o]=arguments[o];var l,g,u,d=(a=xt(a,"hsv"))[0],c=a[1],m=a[2];if(m*=255,0===c)l=g=u=m;else{360===d&&(d=0),d>360&&(d-=360),d<0&&(d+=360);var h=St(d/=60),k=d-h,p=m*(1-c),f=m*(1-c*k),v=m*(1-c*(1-k));switch(h){case 0:l=(e=[m,v,p])[0],g=e[1],u=e[2];break;case 1:l=(t=[f,m,p])[0],g=t[1],u=t[2];break;case 2:l=(n=[p,m,v])[0],g=n[1],u=n[2];break;case 3:l=(r=[p,f,m])[0],g=r[1],u=r[2];break;case 4:l=(i=[v,p,m])[0],g=i[1],u=i[2];break;case 5:l=(s=[m,p,f])[0],g=s[1],u=s[2]}}return[l,g,u,a.length>3?a[3]:1]},Ct=Mt,Lt=m.unpack,Tt=m.type,At=w,Ht=y,Dt=h,It=Et;Ht.prototype.hsv=function(){return It(this._rgb)},At.hsv=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(Ht,[null].concat(e,["hsv"])))},Dt.format.hsv=Ct,Dt.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Lt(e,"hsv"),"array"===Tt(e)&&3===e.length)return"hsv"}});var Pt={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},Ot=Pt,_t=m.unpack,Vt=Math.pow,Rt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=_t(e,"rgb"),r=n[0],i=n[1],s=n[2],a=Ut(r,i,s),o=a[0],l=a[1],g=116*l-16;return[g<0?0:g,500*(o-l),200*(l-a[2])]},Bt=function(e){return(e/=255)<=.04045?e/12.92:Vt((e+.055)/1.055,2.4)},Ft=function(e){return e>Ot.t3?Vt(e,1/3):e/Ot.t2+Ot.t0},Ut=function(e,t,n){return e=Bt(e),t=Bt(t),n=Bt(n),[Ft((.4124564*e+.3575761*t+.1804375*n)/Ot.Xn),Ft((.2126729*e+.7151522*t+.072175*n)/Ot.Yn),Ft((.0193339*e+.119192*t+.9503041*n)/Ot.Zn)]},Kt=Rt,zt=Pt,Yt=m.unpack,Gt=Math.pow,Wt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,i,s=(e=Yt(e,"lab"))[0],a=e[1],o=e[2];return r=(s+16)/116,n=isNaN(a)?r:r+a/500,i=isNaN(o)?r:r-o/200,r=zt.Yn*Jt(r),n=zt.Xn*Jt(n),i=zt.Zn*Jt(i),[qt(3.2404542*n-1.5371385*r-.4985314*i),qt(-.969266*n+1.8760108*r+.041556*i),qt(.0556434*n-.2040259*r+1.0572252*i),e.length>3?e[3]:1]},qt=function(e){return 255*(e<=.00304?12.92*e:1.055*Gt(e,1/2.4)-.055)},Jt=function(e){return e>zt.t1?e*e*e:zt.t2*(e-zt.t0)},$t=Wt,Qt=m.unpack,Xt=m.type,Zt=w,en=y,tn=h,nn=Kt;en.prototype.lab=function(){return nn(this._rgb)},Zt.lab=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(en,[null].concat(e,["lab"])))},tn.format.lab=$t,tn.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Qt(e,"lab"),"array"===Xt(e)&&3===e.length)return"lab"}});var rn=m.unpack,sn=m.RAD2DEG,an=Math.sqrt,on=Math.atan2,ln=Math.round,gn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=rn(e,"lab"),r=n[0],i=n[1],s=n[2],a=an(i*i+s*s),o=(on(s,i)*sn+360)%360;return 0===ln(1e4*a)&&(o=Number.NaN),[r,a,o]},un=gn,dn=m.unpack,cn=Kt,mn=un,hn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=dn(e,"rgb"),r=n[0],i=n[1],s=n[2],a=cn(r,i,s),o=a[0],l=a[1],g=a[2];return mn(o,l,g)},kn=hn,pn=m.unpack,fn=m.DEG2RAD,vn=Math.sin,bn=Math.cos,yn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=pn(e,"lch"),r=n[0],i=n[1],s=n[2];return isNaN(s)&&(s=0),[r,bn(s*=fn)*i,vn(s)*i]},jn=yn,wn=m.unpack,Nn=jn,En=$t,xn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=wn(e,"lch"))[0],r=e[1],i=e[2],s=Nn(n,r,i),a=s[0],o=s[1],l=s[2],g=En(a,o,l);return[g[0],g[1],g[2],e.length>3?e[3]:1]},Sn=xn,Mn=m.unpack,Cn=Sn,Ln=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Mn(e,"hcl").reverse();return Cn.apply(void 0,n)},Tn=Ln,An=m.unpack,Hn=m.type,Dn=w,In=y,Pn=h,On=kn;In.prototype.lch=function(){return On(this._rgb)},In.prototype.hcl=function(){return On(this._rgb).reverse()},Dn.lch=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(In,[null].concat(e,["lch"])))},Dn.hcl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(In,[null].concat(e,["hcl"])))},Pn.format.lch=Sn,Pn.format.hcl=Tn,["lch","hcl"].forEach((function(e){return Pn.autodetect.push({p:2,test:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(t=An(t,e),"array"===Hn(t)&&3===t.length)return e}})}));var _n={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Vn=y,Rn=h,Bn=m.type,Fn=_n,Un=Ue,Kn=Re;Vn.prototype.name=function(){for(var e=Kn(this._rgb,"rgb"),t=0,n=Object.keys(Fn);t0;)t[n]=arguments[n+1];if(!t.length&&"string"===Bn(e)&&Fn[e.toLowerCase()])return"named"}});var zn=m.unpack,Yn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=zn(e,"rgb");return(n[0]<<16)+(n[1]<<8)+n[2]},Gn=Yn,Wn=m.type,qn=function(e){if("number"==Wn(e)&&e>=0&&e<=16777215)return[e>>16,e>>8&255,255&e,1];throw new Error("unknown num color: "+e)},Jn=w,$n=y,Qn=h,Xn=m.type,Zn=Gn;$n.prototype.num=function(){return Zn(this._rgb)},Jn.num=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply($n,[null].concat(e,["num"])))},Qn.format.num=qn,Qn.autodetect.push({p:5,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(1===e.length&&"number"===Xn(e[0])&&e[0]>=0&&e[0]<=16777215)return"num"}});var er=w,tr=y,nr=h,rr=m.unpack,ir=m.type,sr=Math.round;tr.prototype.rgb=function(e){return void 0===e&&(e=!0),!1===e?this._rgb.slice(0,3):this._rgb.slice(0,3).map(sr)},tr.prototype.rgba=function(e){return void 0===e&&(e=!0),this._rgb.slice(0,4).map((function(t,n){return n<3?!1===e?t:sr(t):t}))},er.rgb=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(tr,[null].concat(e,["rgb"])))},nr.format.rgb=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=rr(e,"rgba");return void 0===n[3]&&(n[3]=1),n},nr.autodetect.push({p:3,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=rr(e,"rgba"),"array"===ir(e)&&(3===e.length||4===e.length&&"number"==ir(e[3])&&e[3]>=0&&e[3]<=1))return"rgb"}});var ar=Math.log,or=function(e){var t,n,r,i=e/100;return i<66?(t=255,n=i<6?0:-155.25485562709179-.44596950469579133*(n=i-2)+104.49216199393888*ar(n),r=i<20?0:.8274096064007395*(r=i-10)-254.76935184120902+115.67994401066147*ar(r)):(t=351.97690566805693+.114206453784165*(t=i-55)-40.25366309332127*ar(t),n=325.4494125711974+.07943456536662342*(n=i-50)-28.0852963507957*ar(n),r=255),[t,n,r,1]},lr=or,gr=m.unpack,ur=Math.round,dr=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n,r=gr(e,"rgb"),i=r[0],s=r[2],a=1e3,o=4e4,l=.4;o-a>l;){var g=lr(n=.5*(o+a));g[2]/g[0]>=s/i?o=n:a=n}return ur(n)},cr=w,mr=y,hr=h,kr=dr;mr.prototype.temp=mr.prototype.kelvin=mr.prototype.temperature=function(){return kr(this._rgb)},cr.temp=cr.kelvin=cr.temperature=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(mr,[null].concat(e,["temp"])))},hr.format.temp=hr.format.kelvin=hr.format.temperature=or;var pr=m.unpack,fr=Math.cbrt,vr=Math.pow,br=Math.sign,yr=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=pr(e,"rgb"),r=n[0],i=n[1],s=n[2],a=[wr(r/255),wr(i/255),wr(s/255)],o=a[0],l=a[1],g=a[2],u=fr(.4122214708*o+.5363325363*l+.0514459929*g),d=fr(.2119034982*o+.6806995451*l+.1073969566*g),c=fr(.0883024619*o+.2817188376*l+.6299787005*g);return[.2104542553*u+.793617785*d-.0040720468*c,1.9779984951*u-2.428592205*d+.4505937099*c,.0259040371*u+.7827717662*d-.808675766*c]},jr=yr;function wr(e){var t=Math.abs(e);return t<.04045?e/12.92:(br(e)||1)*vr((t+.055)/1.055,2.4)}var Nr=m.unpack,Er=Math.pow,xr=Math.sign,Sr=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=Nr(e,"lab"))[0],r=e[1],i=e[2],s=Er(n+.3963377774*r+.2158037573*i,3),a=Er(n-.1055613458*r-.0638541728*i,3),o=Er(n-.0894841775*r-1.291485548*i,3);return[255*Cr(4.0767416621*s-3.3077115913*a+.2309699292*o),255*Cr(-1.2684380046*s+2.6097574011*a-.3413193965*o),255*Cr(-.0041960863*s-.7034186147*a+1.707614701*o),e.length>3?e[3]:1]},Mr=Sr;function Cr(e){var t=Math.abs(e);return t>.0031308?(xr(e)||1)*(1.055*Er(t,1/2.4)-.055):12.92*e}var Lr=m.unpack,Tr=m.type,Ar=w,Hr=y,Dr=h,Ir=jr;Hr.prototype.oklab=function(){return Ir(this._rgb)},Ar.oklab=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(Hr,[null].concat(e,["oklab"])))},Dr.format.oklab=Mr,Dr.autodetect.push({p:3,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Lr(e,"oklab"),"array"===Tr(e)&&3===e.length)return"oklab"}});var Pr=m.unpack,Or=jr,_r=un,Vr=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Pr(e,"rgb"),r=n[0],i=n[1],s=n[2],a=Or(r,i,s),o=a[0],l=a[1],g=a[2];return _r(o,l,g)},Rr=Vr,Br=m.unpack,Fr=jn,Ur=Mr,Kr=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=Br(e,"lch"))[0],r=e[1],i=e[2],s=Fr(n,r,i),a=s[0],o=s[1],l=s[2],g=Ur(a,o,l);return[g[0],g[1],g[2],e.length>3?e[3]:1]},zr=Kr,Yr=m.unpack,Gr=m.type,Wr=w,qr=y,Jr=h,$r=Rr;qr.prototype.oklch=function(){return $r(this._rgb)},Wr.oklch=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(qr,[null].concat(e,["oklch"])))},Jr.format.oklch=zr,Jr.autodetect.push({p:3,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Yr(e,"oklch"),"array"===Gr(e)&&3===e.length)return"oklch"}});var Qr=y,Xr=m.type;Qr.prototype.alpha=function(e,t){return void 0===t&&(t=!1),void 0!==e&&"number"===Xr(e)?t?(this._rgb[3]=e,this):new Qr([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},y.prototype.clipped=function(){return this._rgb._clipped||!1};var Zr=y,ei=Pt;Zr.prototype.darken=function(e){void 0===e&&(e=1);var t=this,n=t.lab();return n[0]-=ei.Kn*e,new Zr(n,"lab").alpha(t.alpha(),!0)},Zr.prototype.brighten=function(e){return void 0===e&&(e=1),this.darken(-e)},Zr.prototype.darker=Zr.prototype.darken,Zr.prototype.brighter=Zr.prototype.brighten,y.prototype.get=function(e){var t=e.split("."),n=t[0],r=t[1],i=this[n]();if(r){var s=n.indexOf(r)-("ok"===n.substr(0,2)?2:0);if(s>-1)return i[s];throw new Error("unknown channel "+r+" in mode "+n)}return i};var ti=y,ni=m.type,ri=Math.pow,ii=1e-7,si=20;ti.prototype.luminance=function(e){if(void 0!==e&&"number"===ni(e)){if(0===e)return new ti([0,0,0,this._rgb[3]],"rgb");if(1===e)return new ti([255,255,255,this._rgb[3]],"rgb");var t=this.luminance(),n="rgb",r=si,i=function t(i,s){var a=i.interpolate(s,.5,n),o=a.luminance();return Math.abs(e-o)e?t(i,a):t(a,s)},s=(t>e?i(new ti([0,0,0]),this):i(this,new ti([255,255,255]))).rgb();return new ti(s.concat([this._rgb[3]]))}return ai.apply(void 0,this._rgb.slice(0,3))};var ai=function(e,t,n){return.2126*(e=oi(e))+.7152*(t=oi(t))+.0722*(n=oi(n))},oi=function(e){return(e/=255)<=.03928?e/12.92:ri((e+.055)/1.055,2.4)},li={},gi=y,ui=m.type,di=li,ci=function(e,t,n){void 0===n&&(n=.5);for(var r=[],i=arguments.length-3;i-- >0;)r[i]=arguments[i+3];var s=r[0]||"lrgb";if(di[s]||r.length||(s=Object.keys(di)[0]),!di[s])throw new Error("interpolation mode "+s+" is not defined");return"object"!==ui(e)&&(e=new gi(e)),"object"!==ui(t)&&(t=new gi(t)),di[s](e,t,n).alpha(e.alpha()+n*(t.alpha()-e.alpha()))},mi=y,hi=ci;mi.prototype.mix=mi.prototype.interpolate=function(e,t){void 0===t&&(t=.5);for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return hi.apply(void 0,[this,e,t].concat(n))};var ki=y;ki.prototype.premultiply=function(e){void 0===e&&(e=!1);var t=this._rgb,n=t[3];return e?(this._rgb=[t[0]*n,t[1]*n,t[2]*n,n],this):new ki([t[0]*n,t[1]*n,t[2]*n,n],"rgb")};var pi=y,fi=Pt;pi.prototype.saturate=function(e){void 0===e&&(e=1);var t=this,n=t.lch();return n[1]+=fi.Kn*e,n[1]<0&&(n[1]=0),new pi(n,"lch").alpha(t.alpha(),!0)},pi.prototype.desaturate=function(e){return void 0===e&&(e=1),this.saturate(-e)};var vi=y,bi=m.type;vi.prototype.set=function(e,t,n){void 0===n&&(n=!1);var r=e.split("."),i=r[0],s=r[1],a=this[i]();if(s){var o=i.indexOf(s)-("ok"===i.substr(0,2)?2:0);if(o>-1){if("string"==bi(t))switch(t.charAt(0)){case"+":case"-":a[o]+=+t;break;case"*":a[o]*=+t.substr(1);break;case"/":a[o]/=+t.substr(1);break;default:a[o]=+t}else{if("number"!==bi(t))throw new Error("unsupported value for Color.set");a[o]=t}var l=new vi(a,i);return n?(this._rgb=l._rgb,this):l}throw new Error("unknown channel "+s+" in mode "+i)}return a};var yi=y,ji=function(e,t,n){var r=e._rgb,i=t._rgb;return new yi(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"rgb")};li.rgb=ji;var wi=y,Ni=Math.sqrt,Ei=Math.pow,xi=function(e,t,n){var r=e._rgb,i=r[0],s=r[1],a=r[2],o=t._rgb,l=o[0],g=o[1],u=o[2];return new wi(Ni(Ei(i,2)*(1-n)+Ei(l,2)*n),Ni(Ei(s,2)*(1-n)+Ei(g,2)*n),Ni(Ei(a,2)*(1-n)+Ei(u,2)*n),"rgb")};li.lrgb=xi;var Si=y,Mi=function(e,t,n){var r=e.lab(),i=t.lab();return new Si(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"lab")};li.lab=Mi;var Ci=y,Li=function(e,t,n,r){var i,s,a,o,l,g,u,d,c,m,h,k,p;return"hsl"===r?(a=e.hsl(),o=t.hsl()):"hsv"===r?(a=e.hsv(),o=t.hsv()):"hcg"===r?(a=e.hcg(),o=t.hcg()):"hsi"===r?(a=e.hsi(),o=t.hsi()):"lch"===r||"hcl"===r?(r="hcl",a=e.hcl(),o=t.hcl()):"oklch"===r&&(a=e.oklch().reverse(),o=t.oklch().reverse()),"h"!==r.substr(0,1)&&"oklch"!==r||(l=(i=a)[0],u=i[1],c=i[2],g=(s=o)[0],d=s[1],m=s[2]),isNaN(l)||isNaN(g)?isNaN(l)?isNaN(g)?k=Number.NaN:(k=g,1!=c&&0!=c||"hsv"==r||(h=d)):(k=l,1!=m&&0!=m||"hsv"==r||(h=u)):k=l+n*(g>l&&g-l>180?g-(l+360):g180?g+360-l:g-l),void 0===h&&(h=u+n*(d-u)),p=c+n*(m-c),new Ci("oklch"===r?[p,h,k]:[k,h,p],r)},Ti=Li,Ai=function(e,t,n){return Ti(e,t,n,"lch")};li.lch=Ai,li.hcl=Ai;var Hi=y,Di=function(e,t,n){var r=e.num(),i=t.num();return new Hi(r+n*(i-r),"num")};li.num=Di;var Ii=Li,Pi=function(e,t,n){return Ii(e,t,n,"hcg")};li.hcg=Pi;var Oi=Li,_i=function(e,t,n){return Oi(e,t,n,"hsi")};li.hsi=_i;var Vi=Li,Ri=function(e,t,n){return Vi(e,t,n,"hsl")};li.hsl=Ri;var Bi=Li,Fi=function(e,t,n){return Bi(e,t,n,"hsv")};li.hsv=Fi;var Ui=y,Ki=function(e,t,n){var r=e.oklab(),i=t.oklab();return new Ui(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"oklab")};li.oklab=Ki;var zi=Li,Yi=function(e,t,n){return zi(e,t,n,"oklch")};li.oklch=Yi;var Gi=y,Wi=m.clip_rgb,qi=Math.pow,Ji=Math.sqrt,$i=Math.PI,Qi=Math.cos,Xi=Math.sin,Zi=Math.atan2,es=function(e,t,n){void 0===t&&(t="lrgb"),void 0===n&&(n=null);var r=e.length;n||(n=Array.from(new Array(r)).map((function(){return 1})));var i=r/n.reduce((function(e,t){return e+t}));if(n.forEach((function(e,t){n[t]*=i})),e=e.map((function(e){return new Gi(e)})),"lrgb"===t)return ts(e,n);for(var s=e.shift(),a=s.get(t),o=[],l=0,g=0,u=0;u=360;)h-=360;a[m]=h}else a[m]=a[m]/o[m];return c/=r,new Gi(a,t).alpha(c>.99999?1:c,!0)},ts=function(e,t){for(var n=e.length,r=[0,0,0,0],i=0;i.9999999&&(r[3]=1),new Gi(Wi(r))},ns=w,rs=m.type,is=Math.pow,ss=function(e){var t="rgb",n=ns("#ccc"),r=0,i=[0,1],s=[],a=[0,0],o=!1,l=[],g=!1,u=0,d=1,c=!1,m={},h=!0,k=1,p=function(e){if((e=e||["#fff","#000"])&&"string"===rs(e)&&ns.brewer&&ns.brewer[e.toLowerCase()]&&(e=ns.brewer[e.toLowerCase()]),"array"===rs(e)){1===e.length&&(e=[e[0],e[0]]),e=e.slice(0);for(var t=0;t=o[n];)n++;return n-1}return 0},v=function(e){return e},b=function(e){return e},y=function(e,r){var i,g;if(null==r&&(r=!1),isNaN(e)||null===e)return n;g=r?e:o&&o.length>2?f(e)/(o.length-2):d!==u?(e-u)/(d-u):1,g=b(g),r||(g=v(g)),1!==k&&(g=is(g,k)),g=a[0]+g*(1-a[0]-a[1]),g=Math.min(1,Math.max(0,g));var c=Math.floor(1e4*g);if(h&&m[c])i=m[c];else{if("array"===rs(l))for(var p=0;p=y&&p===s.length-1){i=l[p];break}if(g>y&&g2){var g=e.map((function(t,n){return n/(e.length-1)})),c=e.map((function(e){return(e-u)/(d-u)}));c.every((function(e,t){return g[t]===e}))||(b=function(e){if(e<=0||e>=1)return e;for(var t=0;e>=c[t+1];)t++;var n=(e-c[t])/(c[t+1]-c[t]);return g[t]+n*(g[t+1]-g[t])})}}return i=[u,d],w},w.mode=function(e){return arguments.length?(t=e,j(),w):t},w.range=function(e,t){return p(e),w},w.out=function(e){return g=e,w},w.spread=function(e){return arguments.length?(r=e,w):r},w.correctLightness=function(e){return null==e&&(e=!0),c=e,j(),v=c?function(e){for(var t=y(0,!0).lab()[0],n=y(1,!0).lab()[0],r=t>n,i=y(e,!0).lab()[0],s=t+(n-t)*e,a=i-s,o=0,l=1,g=20;Math.abs(a)>.01&&g-- >0;)r&&(a*=-1),a<0?(o=e,e+=.5*(l-e)):(l=e,e+=.5*(o-e)),i=y(e,!0).lab()[0],a=i-s;return e}:function(e){return e},w},w.padding=function(e){return null!=e?("number"===rs(e)&&(e=[e,e]),a=e,w):a},w.colors=function(t,n){arguments.length<2&&(n="hex");var r=[];if(0===arguments.length)r=l.slice(0);else if(1===t)r=[w(.5)];else if(t>1){var s=i[0],a=i[1]-s;r=as(0,t,!1).map((function(e){return w(s+e/(t-1)*a)}))}else{e=[];var g=[];if(o&&o.length>2)for(var u=1,d=o.length,c=1<=d;c?ud;c?u++:u--)g.push(.5*(o[u-1]+o[u]));else g=i;r=g.map((function(e){return w(e)}))}return ns[n]&&(r=r.map((function(e){return e[n]()}))),r},w.cache=function(e){return null!=e?(h=e,w):h},w.gamma=function(e){return null!=e?(k=e,w):k},w.nodata=function(e){return null!=e?(n=ns(e),w):n},w};function as(e,t,n){for(var r=[],i=es;i?a++:a--)r.push(a);return r}var os=y,ls=ss,gs=function(e){for(var t=[1,1],n=1;n=5))throw new RangeError("No point in running bezier with only one color.");var g,u,d;g=e.map((function(e){return e.lab()})),d=e.length-1,u=gs(d),i=function(e){var t=1-e,n=[0,1,2].map((function(n){return g.reduce((function(r,i,s){return r+u[s]*Math.pow(t,d-s)*Math.pow(e,s)*i[n]}),0)}));return new os(n,"lab")}}return i},ds=function(e){var t=us(e);return t.scale=function(){return ls(t)},t},cs=w,ms=function e(t,n,r){if(!e[r])throw new Error("unknown blend mode "+r);return e[r](t,n)},hs=function(e){return function(t,n){var r=cs(n).rgb(),i=cs(t).rgb();return cs.rgb(e(r,i))}},ks=function(e){return function(t,n){var r=[];return r[0]=e(t[0],n[0]),r[1]=e(t[1],n[1]),r[2]=e(t[2],n[2]),r}},ps=function(e){return e},fs=function(e,t){return e*t/255},vs=function(e,t){return e>t?t:e},bs=function(e,t){return e>t?e:t},ys=function(e,t){return 255*(1-(1-e/255)*(1-t/255))},js=function(e,t){return t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255))},ws=function(e,t){return 255*(1-(1-t/255)/(e/255))},Ns=function(e,t){return 255===e||(e=t/255*255/(1-e/255))>255?255:e};ms.normal=hs(ks(ps)),ms.multiply=hs(ks(fs)),ms.screen=hs(ks(ys)),ms.overlay=hs(ks(js)),ms.darken=hs(ks(vs)),ms.lighten=hs(ks(bs)),ms.dodge=hs(ks(Ns)),ms.burn=hs(ks(ws));for(var Es=ms,xs=m.type,Ss=m.clip_rgb,Ms=m.TWOPI,Cs=Math.pow,Ls=Math.sin,Ts=Math.cos,As=w,Hs=function(e,t,n,r,i){void 0===e&&(e=300),void 0===t&&(t=-1.5),void 0===n&&(n=1),void 0===r&&(r=1),void 0===i&&(i=[0,1]);var s,a=0;"array"===xs(i)?s=i[1]-i[0]:(s=0,i=[i,i]);var o=function(o){var l=Ms*((e+120)/360+t*o),g=Cs(i[0]+s*o,r),u=(0!==a?n[0]+o*a:n)*g*(1-g)/2,d=Ts(l),c=Ls(l);return As(Ss([255*(g+u*(-.14861*d+1.78277*c)),255*(g+u*(-.29227*d-.90649*c)),255*(g+u*(1.97294*d)),1]))};return o.start=function(t){return null==t?e:(e=t,o)},o.rotations=function(e){return null==e?t:(t=e,o)},o.gamma=function(e){return null==e?r:(r=e,o)},o.hue=function(e){return null==e?n:("array"===xs(n=e)?0===(a=n[1]-n[0])&&(n=n[1]):a=0,o)},o.lightness=function(e){return null==e?i:("array"===xs(e)?(i=e,s=e[1]-e[0]):(i=[e,e],s=0),o)},o.scale=function(){return As.scale(o)},o.hue(n),o},Ds=y,Is="0123456789abcdef",Ps=Math.floor,Os=Math.random,_s=function(){for(var e="#",t=0;t<6;t++)e+=Is.charAt(Ps(16*Os()));return new Ds(e,"hex")},Vs=o,Rs=Math.log,Bs=Math.pow,Fs=Math.floor,Us=Math.abs,Ks=function(e,t){void 0===t&&(t=null);var n={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===Vs(e)&&(e=Object.values(e)),e.forEach((function(e){t&&"object"===Vs(e)&&(e=e[t]),void 0===e||null===e||isNaN(e)||(n.values.push(e),n.sum+=e,en.max&&(n.max=e),n.count+=1)})),n.domain=[n.min,n.max],n.limits=function(e,t){return zs(n,e,t)},n},zs=function(e,t,n){void 0===t&&(t="equal"),void 0===n&&(n=7),"array"==Vs(e)&&(e=Ks(e));var r=e.min,i=e.max,s=e.values.sort((function(e,t){return e-t}));if(1===n)return[r,i];var a=[];if("c"===t.substr(0,1)&&(a.push(r),a.push(i)),"e"===t.substr(0,1)){a.push(r);for(var o=1;o 0");var l=Math.LOG10E*Rs(r),g=Math.LOG10E*Rs(i);a.push(r);for(var u=1;u200&&(b=!1)}for(var P={},O=0;Or?(n+.05)/(r+.05):(r+.05)/(n+.05)},qs=y,Js=Math.sqrt,$s=Math.pow,Qs=Math.min,Xs=Math.max,Zs=Math.atan2,ea=Math.abs,ta=Math.cos,na=Math.sin,ra=Math.exp,ia=Math.PI,sa=function(e,t,n,r,i){void 0===n&&(n=1),void 0===r&&(r=1),void 0===i&&(i=1);var s=function(e){return 360*e/(2*ia)},a=function(e){return 2*ia*e/360};e=new qs(e),t=new qs(t);var o=Array.from(e.lab()),l=o[0],g=o[1],u=o[2],d=Array.from(t.lab()),c=d[0],m=d[1],h=d[2],k=(l+c)/2,p=(Js($s(g,2)+$s(u,2))+Js($s(m,2)+$s(h,2)))/2,f=.5*(1-Js($s(p,7)/($s(p,7)+$s(25,7)))),v=g*(1+f),b=m*(1+f),y=Js($s(v,2)+$s(u,2)),j=Js($s(b,2)+$s(h,2)),w=(y+j)/2,N=s(Zs(u,v)),E=s(Zs(h,b)),x=N>=0?N:N+360,S=E>=0?E:E+360,M=ea(x-S)>180?(x+S+360)/2:(x+S)/2,C=1-.17*ta(a(M-30))+.24*ta(a(2*M))+.32*ta(a(3*M+6))-.2*ta(a(4*M-63)),L=S-x;L=ea(L)<=180?L:S<=x?L+360:L-360,L=2*Js(y*j)*na(a(L)/2);var T=c-l,A=j-y,H=1+.015*$s(k-50,2)/Js(20+$s(k-50,2)),D=1+.045*w,I=1+.015*w*C,P=30*ra(-$s((M-275)/25,2)),O=-2*Js($s(w,7)/($s(w,7)+$s(25,7)))*na(2*a(P)),_=Js($s(T/(n*H),2)+$s(A/(r*D),2)+$s(L/(i*I),2)+O*(A/(r*D))*(L/(i*I)));return Xs(0,Qs(100,_))},aa=y,oa=function(e,t,n){void 0===n&&(n="lab"),e=new aa(e),t=new aa(t);var r=e.get(n),i=t.get(n),s=0;for(var a in r){var o=(r[a]||0)-(i[a]||0);s+=o*o}return Math.sqrt(s)},la=y,ga=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];try{return new(Function.prototype.bind.apply(la,[null].concat(e))),!0}catch(n){return!1}},ua=w,da=ss,ca={cool:function(){return da([ua.hsl(180,1,.9),ua.hsl(250,.7,.4)])},hot:function(){return da(["#000","#f00","#ff0","#fff"]).mode("rgb")}},ma={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},ha=0,ka=Object.keys(ma);hae.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,i){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(L(!a,"Warning: There may be circular references"),a)return!1;if(t===i)return!0;if(n&&s>1)return!1;r.add(t);var o=s+1;if(Array.isArray(t)){if(!Array.isArray(i)||t.length!==i.length)return!1;for(var l=0;l=0||(i[n]=e[n]);return i}function I(e,t){if(null==e)return{};var n,r,i=D(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var P={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=P.F1&&t<=P.F12)return!1;switch(t){case P.ALT:case P.CAPS_LOCK:case P.CONTEXT_MENU:case P.CTRL:case P.DOWN:case P.END:case P.ESC:case P.HOME:case P.INSERT:case P.LEFT:case P.MAC_FF_META:case P.META:case P.NUMLOCK:case P.NUM_CENTER:case P.PAGE_DOWN:case P.PAGE_UP:case P.PAUSE:case P.PRINT_SCREEN:case P.RIGHT:case P.SHIFT:case P.UP:case P.WIN_KEY:case P.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=P.ZERO&&e<=P.NINE)return!0;if(e>=P.NUM_ZERO&&e<=P.NUM_MULTIPLY)return!0;if(e>=P.A&&e<=P.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case P.SPACE:case P.QUESTION_MARK:case P.NUM_PLUS:case P.NUM_MINUS:case P.NUM_PERIOD:case P.NUM_DIVISION:case P.SEMICOLON:case P.DASH:case P.EQUALS:case P.COMMA:case P.PERIOD:case P.SLASH:case P.APOSTROPHE:case P.SINGLE_QUOTE:case P.OPEN_SQUARE_BRACKET:case P.BACKSLASH:case P.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},O=P;function _(e,t,n){return(e-t)/(n-t)}function V(e,t,n,r){var i=_(t,n,r),s={};switch(e){case"rtl":s.right="".concat(100*i,"%"),s.transform="translateX(50%)";break;case"btt":s.bottom="".concat(100*i,"%"),s.transform="translateY(50%)";break;case"ttb":s.top="".concat(100*i,"%"),s.transform="translateY(-50%)";break;default:s.left="".concat(100*i,"%"),s.transform="translateX(-50%)"}return s}function R(e,t){return Array.isArray(e)?e[t]:e}var B=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],F=e.forwardRef((function(t,n){var r,i,s=t.prefixCls,a=t.value,o=t.valueIndex,l=t.onStartMove,g=t.style,u=t.render,d=t.dragging,m=t.onOffsetChange,k=I(t,B),f=e.useContext(A),v=f.min,b=f.max,y=f.direction,j=f.disabled,w=f.keyboard,N=f.range,E=f.tabIndex,x=f.ariaLabelForHandle,S=f.ariaLabelledByForHandle,M=f.ariaValueTextFormatterForHandle,C=f.styles,L=f.classNames,T="".concat(s,"-handle"),D=function(e){j||l(e,o)},P=V(y,a,v,b),_=e.createElement("div",H({ref:n,className:p()(T,(r={},c(r,"".concat(T,"-").concat(o+1),N),c(r,"".concat(T,"-dragging"),d),r),L.handle),style:h(h(h({},P),g),C.handle),onMouseDown:D,onTouchStart:D,onKeyDown:function(e){if(!j&&w){var t=null;switch(e.which||e.keyCode){case O.LEFT:t="ltr"===y||"btt"===y?-1:1;break;case O.RIGHT:t="ltr"===y||"btt"===y?1:-1;break;case O.UP:t="ttb"!==y?1:-1;break;case O.DOWN:t="ttb"!==y?-1:1;break;case O.HOME:t="min";break;case O.END:t="max";break;case O.PAGE_UP:t=2;break;case O.PAGE_DOWN:t=-2}null!==t&&(e.preventDefault(),m(t,o))}},tabIndex:j?null:R(E,o),role:"slider","aria-valuemin":v,"aria-valuemax":b,"aria-valuenow":a,"aria-disabled":j,"aria-label":R(x,o),"aria-labelledby":R(S,o),"aria-valuetext":null===(i=R(M,o))||void 0===i?void 0:i(a),"aria-orientation":"ltr"===y||"rtl"===y?"horizontal":"vertical"},k));return u&&(_=u(_,{index:o,prefixCls:s,value:a,dragging:d})),_}));var U=F,K=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],z=e.forwardRef((function(t,n){var r=t.prefixCls,i=t.style,s=t.onStartMove,a=t.onOffsetChange,o=t.values,l=t.handleRender,g=t.draggingIndex,u=I(t,K),d=e.useRef({});return e.useImperativeHandle(n,(function(){return{focus:function(e){var t;null===(t=d.current[e])||void 0===t||t.focus()}}})),e.createElement(e.Fragment,null,o.map((function(t,n){return e.createElement(U,H({ref:function(e){e?d.current[n]=e:delete d.current[n]},dragging:g===n,prefixCls:r,style:R(i,n),key:n,value:t,valueIndex:n,onStartMove:s,onOffsetChange:a,render:l},u))})))}));var Y=z;function G(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function W(t){var n=t.prefixCls,r=t.style,i=t.children,s=t.value,a=t.onClick,o=e.useContext(A),l=o.min,g=o.max,u=o.direction,d=o.includedStart,m=o.includedEnd,k=o.included,f="".concat(n,"-text"),v=V(u,s,l,g);return e.createElement("span",{className:p()(f,c({},"".concat(f,"-active"),k&&d<=s&&s<=m)),style:h(h({},v),r),onMouseDown:function(e){e.stopPropagation()},onClick:function(){a(s)}},i)}function q(t){var n=t.prefixCls,r=t.marks,i=t.onClick,s="".concat(n,"-mark");return r.length?e.createElement("div",{className:s},r.map((function(t){var n=t.value,r=t.style,a=t.label;return e.createElement(W,{key:n,prefixCls:s,style:r,value:n,onClick:i},a)}))):null}function J(t){var n=t.prefixCls,r=t.value,i=t.style,s=t.activeStyle,a=e.useContext(A),o=a.min,l=a.max,g=a.direction,u=a.included,d=a.includedStart,m=a.includedEnd,k="".concat(n,"-dot"),f=u&&d<=r&&r<=m,v=h(h({},V(g,r,o,l)),"function"===typeof i?i(r):i);return f&&(v=h(h({},v),"function"===typeof s?s(r):s)),e.createElement("span",{className:p()(k,c({},"".concat(k,"-active"),f)),style:v})}function $(t){var n=t.prefixCls,r=t.marks,i=t.dots,s=t.style,a=t.activeStyle,o=e.useContext(A),l=o.min,g=o.max,u=o.step,d=e.useMemo((function(){var e=new Set;if(r.forEach((function(t){e.add(t.value)})),i&&null!==u)for(var t=l;t<=g;)e.add(t),t+=u;return Array.from(e)}),[l,g,u,i,r]);return e.createElement("div",{className:"".concat(n,"-step")},d.map((function(t){return e.createElement(J,{prefixCls:n,key:t,value:t,style:s,activeStyle:a})})))}function Q(t){var n,r=t.prefixCls,i=t.style,s=t.start,a=t.end,o=t.index,l=t.onStartMove,g=t.replaceCls,u=e.useContext(A),d=u.direction,m=u.min,k=u.max,f=u.disabled,v=u.range,b=u.classNames,y="".concat(r,"-track"),j=_(s,m,k),w=_(a,m,k),N=function(e){!f&&l&&l(e,-1)},E={};switch(d){case"rtl":E.right="".concat(100*j,"%"),E.width="".concat(100*w-100*j,"%");break;case"btt":E.bottom="".concat(100*j,"%"),E.height="".concat(100*w-100*j,"%");break;case"ttb":E.top="".concat(100*j,"%"),E.height="".concat(100*w-100*j,"%");break;default:E.left="".concat(100*j,"%"),E.width="".concat(100*w-100*j,"%")}var x=g||p()(y,(c(n={},"".concat(y,"-").concat(o+1),null!==o&&v),c(n,"".concat(r,"-track-draggable"),l),n),b.track);return e.createElement("div",{className:x,style:h(h({},E),i),onMouseDown:N,onTouchStart:N})}function X(t){var n=t.prefixCls,r=t.style,i=t.values,s=t.startPoint,a=t.onStartMove,o=e.useContext(A),l=o.included,g=o.range,u=o.min,d=o.styles,c=o.classNames,m=e.useMemo((function(){if(!g){if(0===i.length)return[];var e=null!==s&&void 0!==s?s:u,t=i[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}for(var n=[],r=0;r=0&&W}),[W,je]),Ne=e.useMemo((function(){return Object.keys(le||{}).map((function(t){var n=le[t],r={value:Number(t)};return n&&"object"===u(n)&&!e.isValidElement(n)&&("label"in n||"style"in n)?(r.style=n.style,r.label=n.label):r.label=n,r})).filter((function(e){var t=e.label;return t||"number"===typeof t})).sort((function(e,t){return e.value-t.value}))}),[le]),Ee=function(t,n,r,i,s,o){var l=e.useCallback((function(e){var r=isFinite(e)?e:t;return r=Math.min(n,e),Math.max(t,r)}),[t,n]),g=e.useCallback((function(e){if(null!==r){var i=t+Math.round((l(e)-t)/r)*r,s=function(e){return(String(e).split(".")[1]||"").length},a=Math.max(s(r),s(n),s(t)),o=Number(i.toFixed(a));return t<=o&&o<=n?o:null}return null}),[r,t,n,l]),u=e.useCallback((function(e){var s=l(e),a=i.map((function(e){return e.value}));null!==r&&a.push(g(e)),a.push(t,n);var o=a[0],u=n-t;return a.forEach((function(e){var t=Math.abs(s-e);t<=u&&(o=e,u=t)})),o}),[t,n,i,r,l,g]),d=function e(s,o,l){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";if("number"===typeof o){var d,c=s[l],m=c+o,h=[];i.forEach((function(e){h.push(e.value)})),h.push(t,n),h.push(g(c));var k=o>0?1:-1;"unit"===u?h.push(g(c+k*r)):h.push(g(m)),h=h.filter((function(e){return null!==e})).filter((function(e){return o<0?e<=c:e>=c})),"unit"===u&&(h=h.filter((function(e){return e!==c})));var p="unit"===u?c:m;d=h[0];var f=Math.abs(d-p);if(h.forEach((function(e){var t=Math.abs(e-p);t1){var v=a(s);return v[l]=d,e(v,o-k,l,u)}return d}return"min"===o?t:"max"===o?n:void 0},c=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",i=e[n],s=d(e,t,n,r);return{value:s,changed:s!==i}},m=function(e){return null===o&&0===e||"number"===typeof o&&e3&&void 0!==arguments[3]?arguments[3]:"unit",i=e.map(u),a=i[n],l=d(i,t,n,r);if(i[n]=l,!1===s){var g=o||0;n>0&&i[n-1]!==a&&(i[n]=Math.max(i[n],i[n-1]+g)),n0;f-=1)for(var v=!0;m(i[f]-i[f-1])&&v;){var b=c(i,-1,f-1);i[f-1]=b.value,v=b.changed}for(var y=i.length-1;y>0;y-=1)for(var j=!0;m(i[y]-i[y-1])&&j;){var w=c(i,-1,y-1);i[y-1]=w.value,j=w.changed}for(var N=0;N=0?V+1:2;for(n=n.slice(0,r);n.length=0&&pe.current.focus(e)}Re(null)}),[Ve]);var Be=e.useMemo((function(){return(!J||null!==je)&&J}),[J,je]),Fe=function(t,n,r,i,s,o,l,u,d){var c=g(e.useState(null),2),m=c[0],h=c[1],k=g(e.useState(-1),2),p=k[0],f=k[1],v=g(e.useState(r),2),b=v[0],y=v[1],j=g(e.useState(r),2),w=j[0],N=j[1],E=e.useRef(null),x=e.useRef(null);e.useEffect((function(){-1===p&&y(r)}),[r,p]),e.useEffect((function(){return function(){document.removeEventListener("mousemove",E.current),document.removeEventListener("mouseup",x.current),document.removeEventListener("touchmove",E.current),document.removeEventListener("touchend",x.current)}}),[]);var S=function(e,t){b.some((function(t,n){return t!==e[n]}))&&(void 0!==t&&h(t),y(e),l(e))},M=function(e,t){if(-1===e){var n=w[0],r=w[w.length-1],l=i-n,g=s-r,u=t*(s-i);u=Math.max(u,l),u=Math.min(u,g);var c=o(n+u);u=c-n;var m=w.map((function(e){return e+u}));S(m)}else{var h=(s-i)*t,k=a(b);k[e]=w[e];var p=d(k,h,e,"dist");S(p.values,p.value)}},C=e.useRef(M);C.current=M;var L=e.useMemo((function(){var e=a(r).sort((function(e,t){return e-t})),t=a(b).sort((function(e,t){return e-t}));return e.every((function(e,n){return e===t[n]}))?b:r}),[r,b]);return[p,m,L,function(e,i){e.stopPropagation();var s=r[i];f(i),h(s),N(r);var a=G(e),o=a.pageX,l=a.pageY,g=function(e){e.preventDefault();var r,s=G(e),a=s.pageX,g=s.pageY,u=a-o,d=g-l,c=t.current.getBoundingClientRect(),m=c.width,h=c.height;switch(n){case"btt":r=-d/h;break;case"ttb":r=d/h;break;case"rtl":r=-u/m;break;default:r=u/m}C.current(i,r)},d=function e(t){t.preventDefault(),document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",g),document.removeEventListener("touchend",e),document.removeEventListener("touchmove",g),E.current=null,x.current=null,f(-1),u()};document.addEventListener("mouseup",d),document.addEventListener("mousemove",g),document.addEventListener("touchend",d),document.addEventListener("touchmove",g),E.current=g,x.current=d}]}(fe,ve,He,be,ye,Se,Pe,(function(){null===F||void 0===F||F(Ie(De.current))}),Me),Ue=g(Fe,4),Ke=Ue[0],ze=Ue[1],Ye=Ue[2],Ge=Ue[3],We=function(e,t){Ge(e,t),null===B||void 0===B||B(Ie(De.current))},qe=-1!==Ke;e.useEffect((function(){if(!qe){var e=He.lastIndexOf(ze);pe.current.focus(e)}}),[qe]);var Je=e.useMemo((function(){return a(Ye).sort((function(e,t){return e-t}))}),[Ye]),$e=g(e.useMemo((function(){return _?[Je[0],Je[Je.length-1]]:[be,Je[0]]}),[Je,_,be]),2),Qe=$e[0],Xe=$e[1];e.useImperativeHandle(n,(function(){return{focus:function(){pe.current.focus(0)},blur:function(){var e=document.activeElement;fe.current.contains(e)&&(null===e||void 0===e||e.blur())}}})),e.useEffect((function(){E&&pe.current.focus(0)}),[]);var Ze=e.useMemo((function(){return{min:be,max:ye,direction:ve,disabled:v,keyboard:N,step:je,included:te,includedStart:Qe,includedEnd:Xe,range:_,tabIndex:ce,ariaLabelForHandle:me,ariaLabelledByForHandle:he,ariaValueTextFormatterForHandle:ke,styles:m||{},classNames:d||{}}}),[be,ye,ve,v,N,je,te,Qe,Xe,_,ce,me,he,ke,m,d]);return e.createElement(A.Provider,{value:Ze},e.createElement("div",{ref:fe,className:p()(s,o,(r={},c(r,"".concat(s,"-disabled"),v),c(r,"".concat(s,"-vertical"),Z),c(r,"".concat(s,"-horizontal"),!Z),c(r,"".concat(s,"-with-marks"),Ne.length),r)),style:l,onMouseDown:function(e){e.preventDefault();var t,n=fe.current.getBoundingClientRect(),r=n.width,i=n.height,s=n.left,a=n.top,o=n.bottom,l=n.right,g=e.clientX,u=e.clientY;switch(ve){case"btt":t=(o-u)/i;break;case"ttb":t=(u-a)/i;break;case"rtl":t=(l-g)/r;break;default:t=(g-s)/r}Oe(Se(be+t*(ye-be)))}},e.createElement("div",{className:p()("".concat(s,"-rail"),null===d||void 0===d?void 0:d.rail),style:h(h({},se),null===m||void 0===m?void 0:m.rail)}),e.createElement(X,{prefixCls:s,style:re,values:Je,startPoint:ne,onStartMove:Be?We:null}),e.createElement($,{prefixCls:s,marks:Ne,dots:ge,style:ae,activeStyle:oe}),e.createElement(Y,{ref:pe,prefixCls:s,style:ie,values:Ye,draggingIndex:Ke,onStartMove:We,onOffsetChange:function(e,t){if(!v){var n=Me(He,e,t);null===B||void 0===B||B(Ie(He)),Pe(n.values),null===F||void 0===F||F(Ie(n.values)),Re(n.value)}},onFocus:x,onBlur:S,handleRender:ue}),e.createElement(q,{prefixCls:s,marks:Ne,onClick:Oe})))}));var ee=Z,te=n(184);function ne(e){var t=e.selected.reduce((function(e,t){return e+t.credits}),0);return(0,te.jsxs)("div",{children:[(0,te.jsx)("h2",{children:"Selected Courses "}),e.selected.map((function(t,n){return(0,te.jsxs)("p",{children:[(0,te.jsxs)("span",{children:[t.subjectCode," ",t.subjectName]}),(0,te.jsx)("button",{onClick:function(){return e.editSelected(t,!1)},children:"Delete!"})]},n)})),(0,te.jsxs)("p",{children:["Total credits: ",t]})]})}function re(t){var n=g((0,e.useState)(""),2),r=n[0],i=n[1],s=g((0,e.useState)(!1),2),o=s[0],l=s[1],u=g((0,e.useState)(""),2),d=u[0],c=u[1],m=g((0,e.useState)(""),2),h=m[0],k=m[1],p=g((0,e.useState)([0,60]),2),f=p[0],v=p[1],b=g((0,e.useState)([]),2),y=b[0],j=b[1],w=Array.from({length:9},(function(e,t){return(1+t).toString()}));(0,e.useEffect)((function(){t.changeRetrieved(N(t.subjects))}),[r,o,d,h,f,y,t.subjects]);var N=function(e){var t=a(e);return t=function(e,t){return e.filter((function(e){return n=e.subjectCode,r=t,n.toLowerCase().startsWith(r.toLowerCase());var n,r}))}(t,h),t=function(e,t,n){return e.filter((function(e){return e.credits>=t&&e.credits<=n}))}(t,f[0],f[1]),t=function(e,t){return""===t?e:e.filter((function(e){return e.level.includes(t)}))}(t,r),o&&(t=function(e){return e.filter((function(e){return null!==e.grading&&!1===e.grading}))}(t)),t=function(e,t){return""===t?e:e.filter((function(e){return void 0!==e.teachingLanguage&&e.teachingLanguage.includes(t)}))}(t,d),t=function(e,t){return 0===t.length?e:e.filter((function(e){var n=e.subjectCode.match(/\d/);return n&&t.includes(n[0])}))}(t,y),t},E=(0,te.jsxs)("div",{children:[(0,te.jsx)("label",{children:"Select Level:"}),(0,te.jsxs)("select",{onChange:function(e){i(e.target.value)},children:[(0,te.jsx)("option",{value:"",children:"All levels"}),(0,te.jsx)("option",{value:"Bachelor",children:"Bachelor"}),(0,te.jsx)("option",{value:"Master",children:"Master"}),(0,te.jsx)("option",{value:"PhD",children:"PhD"})]})]}),x=(0,te.jsxs)("div",{children:[(0,te.jsxs)("label",{children:["Number of credits from ",f[0]," til ",f[1]]}),(0,te.jsx)(ee,{range:!0,min:0,max:60,value:[f[0],f[1]],onChange:function(e){v(e)}})]}),S=(0,te.jsxs)("div",{children:[(0,te.jsx)("label",{children:"Select language: "}),(0,te.jsxs)("select",{onChange:function(e){c(e.target.value)},children:[(0,te.jsx)("option",{value:"",children:"All languages"}),(0,te.jsx)("option",{value:"Norsk",children:"Norwegian"}),(0,te.jsx)("option",{value:"English",children:"English"})]})]});return(0,te.jsx)("div",{className:"wrapping",children:(0,te.jsxs)("div",{className:"filter_row",children:[E,(0,te.jsx)("div",{children:(0,te.jsxs)("label",{children:[(0,te.jsx)("input",{onChange:function(){l((function(e){return!e}))},type:"checkbox"}),"Pass/fail"]})}),x,S,(0,te.jsxs)("div",{children:[(0,te.jsx)("label",{children:"Search for courses:"}),(0,te.jsx)("input",{value:h,onChange:function(e){k(e.target.value)}})]}),(0,te.jsxs)("div",{children:[(0,te.jsx)("label",{children:"Select year: "}),w.map((function(e){return(0,te.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:(0,te.jsxs)("label",{children:[(0,te.jsx)("input",{onChange:function(){return function(e){var t=a(y),n=t.indexOf(e);-1!==n?t.splice(n,1):t.push(e),j(t)}(e)},type:"checkbox"}),e,"000"]},e)})}))]})]})})}function ie(e){return(0,te.jsxs)("div",{className:"course",children:[(0,te.jsx)("h3",{children:e.courseObject.subjectCode}),(0,te.jsx)("h4",{children:e.courseObject.subjectName}),(0,te.jsxs)("p",{children:[(0,te.jsxs)("span",{style:{color:"#ff5722"},children:[" Level: ",e.courseObject.level," | "]}),(0,te.jsxs)("span",{style:{color:"#ff5722"},children:["Credits: ",e.courseObject.credits," | "]}),(0,te.jsxs)("span",{style:{color:"#ff5722"},children:["Teaching: ",e.courseObject.teaching," | "]}),(0,te.jsxs)("span",{style:{color:"#ff5722"},children:["Teaching language: ",e.courseObject.teachingLanguage]})]}),(0,te.jsx)("p",{children:e.courseObject.description}),(0,te.jsx)("button",{onClick:function(){!1===e.selected.includes(e.courseObject)&&e.changeSelected(e.courseObject,!0)},children:"Add course"}),(0,te.jsx)("button",{onClick:function(){return console.log("Open new webpage")},children:"Learn more"}),(0,te.jsx)("button",{onClick:function(){return window.open("https://www.karakterweb.no/uio/".concat(e.courseObject.subjectCode.toLowerCase()),"_blank","noreferrer")},children:"Grading information"})]})}var se=function(t){var n=g((0,e.useState)(t.subjects),2),r=n[0],i=n[1],s=function(e,n){t.changeSelected(e,n)};return(0,te.jsxs)("div",{children:[(0,te.jsx)("h1",{children:"Find courses!"}),(0,te.jsx)(ne,{editSelected:s,selected:t.selected}),(0,te.jsxs)("div",{className:"split_view",children:[(0,te.jsx)("div",{children:r.map((function(e,n){return(0,te.jsx)(ie,{courseObject:e,selected:t.selected,changeSelected:s},n)}))}),(0,te.jsx)(re,{subjects:t.subjects,changeRetrieved:i})]})]})};function ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oe(e,t){for(var n=0;nt})),Ge=ot((function(e,t){return e>=t})),We=ot((function(e,t){return e=t&&i.getHours()-n.getHours()i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(i);++r-1&&e%1==0&&e<=9007199254740991};var St=function(e){return null!=e&&xt(e.length)&&!Et(e)},Mt=/^(?:0|[1-9]\d*)$/;var Ct=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Mt.test(e))&&e>-1&&e%1==0&&e0&&Kn(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Kn(r.height)/e.offsetHeight||1);var a=(Vn(e)?_n(e):window).visualViewport,o=!Yn()&&n,l=(r.left+(o&&a?a.offsetLeft:0))/i,g=(r.top+(o&&a?a.offsetTop:0))/s,u=r.width/i,d=r.height/s;return{width:u,height:d,top:g,right:l+u,bottom:g+d,left:l,x:l,y:g}}function Wn(e){var t=Gn(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function qn(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Bn(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Jn(e){return e?(e.nodeName||"").toLowerCase():null}function $n(e){return _n(e).getComputedStyle(e)}function Qn(e){return["table","td","th"].indexOf(Jn(e))>=0}function Xn(e){return((Vn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zn(e){return"html"===Jn(e)?e:e.assignedSlot||e.parentNode||(Bn(e)?e.host:null)||Xn(e)}function er(e){return Rn(e)&&"fixed"!==$n(e).position?e.offsetParent:null}function tr(e){for(var t=_n(e),n=er(e);n&&Qn(n)&&"static"===$n(n).position;)n=er(n);return n&&("html"===Jn(n)||"body"===Jn(n)&&"static"===$n(n).position)?t:n||function(e){var t=/firefox/i.test(zn());if(/Trident/i.test(zn())&&Rn(e)&&"fixed"===$n(e).position)return null;var n=Zn(e);for(Bn(n)&&(n=n.host);Rn(n)&&["html","body"].indexOf(Jn(n))<0;){var r=$n(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function nr(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function rr(e,t,n){return Fn(e,Un(t,n))}function ir(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function sr(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var ar={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,o=On(n.placement),l=nr(o),g=[Nn,wn].indexOf(o)>=0?"height":"width";if(s&&a){var u=function(e,t){return ir("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:sr(e,xn))}(i.padding,n),d=Wn(s),c="y"===l?yn:Nn,m="y"===l?jn:wn,h=n.rects.reference[g]+n.rects.reference[l]-a[l]-n.rects.popper[g],k=a[l]-n.rects.reference[l],p=tr(s),f=p?"y"===l?p.clientHeight||0:p.clientWidth||0:0,v=h/2-k/2,b=u[c],y=f-d[g]-u[m],j=f/2-d[g]/2+v,w=rr(b,j,y),N=l;n.modifiersData[r]=((t={})[N]=w,t.centerOffset=w-j,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&qn(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function or(e){return e.split("-")[1]}var lr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gr(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,a=e.offsets,o=e.position,l=e.gpuAcceleration,g=e.adaptive,u=e.roundOffsets,d=e.isFixed,c=a.x,m=void 0===c?0:c,h=a.y,k=void 0===h?0:h,p="function"===typeof u?u({x:m,y:k}):{x:m,y:k};m=p.x,k=p.y;var f=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),b=Nn,y=yn,j=window;if(g){var w=tr(n),N="clientHeight",E="clientWidth";if(w===_n(n)&&"static"!==$n(w=Xn(n)).position&&"absolute"===o&&(N="scrollHeight",E="scrollWidth"),i===yn||(i===Nn||i===wn)&&s===Mn)y=jn,k-=(d&&w===j&&j.visualViewport?j.visualViewport.height:w[N])-r.height,k*=l?1:-1;if(i===Nn||(i===yn||i===jn)&&s===Mn)b=wn,m-=(d&&w===j&&j.visualViewport?j.visualViewport.width:w[E])-r.width,m*=l?1:-1}var x,S=Object.assign({position:o},g&&lr),M=!0===u?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Kn(n*i)/i||0,y:Kn(r*i)/i||0}}({x:m,y:k},_n(n)):{x:m,y:k};return m=M.x,k=M.y,l?Object.assign({},S,((x={})[y]=v?"0":"",x[b]=f?"0":"",x.transform=(j.devicePixelRatio||1)<=1?"translate("+m+"px, "+k+"px)":"translate3d("+m+"px, "+k+"px, 0)",x)):Object.assign({},S,((t={})[y]=v?k+"px":"",t[b]=f?m+"px":"",t.transform="",t))}var ur={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,s=n.adaptive,a=void 0===s||s,o=n.roundOffsets,l=void 0===o||o,g={placement:On(t.placement),variation:or(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,gr(Object.assign({},g,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,gr(Object.assign({},g,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},dr={passive:!0};var cr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=void 0===i||i,a=r.resize,o=void 0===a||a,l=_n(t.elements.popper),g=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&g.forEach((function(e){e.addEventListener("scroll",n.update,dr)})),o&&l.addEventListener("resize",n.update,dr),function(){s&&g.forEach((function(e){e.removeEventListener("scroll",n.update,dr)})),o&&l.removeEventListener("resize",n.update,dr)}},data:{}},mr={left:"right",right:"left",bottom:"top",top:"bottom"};function hr(e){return e.replace(/left|right|bottom|top/g,(function(e){return mr[e]}))}var kr={start:"end",end:"start"};function pr(e){return e.replace(/start|end/g,(function(e){return kr[e]}))}function fr(e){var t=_n(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function vr(e){return Gn(Xn(e)).left+fr(e).scrollLeft}function br(e){var t=$n(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function yr(e){return["html","body","#document"].indexOf(Jn(e))>=0?e.ownerDocument.body:Rn(e)&&br(e)?e:yr(Zn(e))}function jr(e,t){var n;void 0===t&&(t=[]);var r=yr(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),s=_n(r),a=i?[s].concat(s.visualViewport||[],br(r)?r:[]):r,o=t.concat(a);return i?o:o.concat(jr(Zn(a)))}function wr(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Nr(e,t,n){return t===Ln?wr(function(e,t){var n=_n(e),r=Xn(e),i=n.visualViewport,s=r.clientWidth,a=r.clientHeight,o=0,l=0;if(i){s=i.width,a=i.height;var g=Yn();(g||!g&&"fixed"===t)&&(o=i.offsetLeft,l=i.offsetTop)}return{width:s,height:a,x:o+vr(e),y:l}}(e,n)):Vn(t)?function(e,t){var n=Gn(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):wr(function(e){var t,n=Xn(e),r=fr(e),i=null==(t=e.ownerDocument)?void 0:t.body,s=Fn(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Fn(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-r.scrollLeft+vr(e),l=-r.scrollTop;return"rtl"===$n(i||n).direction&&(o+=Fn(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:o,y:l}}(Xn(e)))}function Er(e,t,n,r){var i="clippingParents"===t?function(e){var t=jr(Zn(e)),n=["absolute","fixed"].indexOf($n(e).position)>=0&&Rn(e)?tr(e):e;return Vn(n)?t.filter((function(e){return Vn(e)&&qn(e,n)&&"body"!==Jn(e)})):[]}(e):[].concat(t),s=[].concat(i,[n]),a=s[0],o=s.reduce((function(t,n){var i=Nr(e,n,r);return t.top=Fn(i.top,t.top),t.right=Un(i.right,t.right),t.bottom=Un(i.bottom,t.bottom),t.left=Fn(i.left,t.left),t}),Nr(e,a,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function xr(e){var t,n=e.reference,r=e.element,i=e.placement,s=i?On(i):null,a=i?or(i):null,o=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(s){case yn:t={x:o,y:n.y-r.height};break;case jn:t={x:o,y:n.y+n.height};break;case wn:t={x:n.x+n.width,y:l};break;case Nn:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var g=s?nr(s):null;if(null!=g){var u="y"===g?"height":"width";switch(a){case Sn:t[g]=t[g]-(n[u]/2-r[u]/2);break;case Mn:t[g]=t[g]+(n[u]/2-r[u]/2)}}return t}function Sr(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,s=n.strategy,a=void 0===s?e.strategy:s,o=n.boundary,l=void 0===o?Cn:o,g=n.rootBoundary,u=void 0===g?Ln:g,d=n.elementContext,c=void 0===d?Tn:d,m=n.altBoundary,h=void 0!==m&&m,k=n.padding,p=void 0===k?0:k,f=ir("number"!==typeof p?p:sr(p,xn)),v=c===Tn?An:Tn,b=e.rects.popper,y=e.elements[h?v:c],j=Er(Vn(y)?y:y.contextElement||Xn(e.elements.popper),l,u,a),w=Gn(e.elements.reference),N=xr({reference:w,element:b,strategy:"absolute",placement:i}),E=wr(Object.assign({},b,N)),x=c===Tn?E:w,S={top:j.top-x.top+f.top,bottom:x.bottom-j.bottom+f.bottom,left:j.left-x.left+f.left,right:x.right-j.right+f.right},M=e.modifiersData.offset;if(c===Tn&&M){var C=M[i];Object.keys(S).forEach((function(e){var t=[wn,jn].indexOf(e)>=0?1:-1,n=[yn,jn].indexOf(e)>=0?"y":"x";S[e]+=C[n]*t}))}return S}var Mr={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,s=void 0===i||i,a=n.altAxis,o=void 0===a||a,l=n.fallbackPlacements,g=n.padding,u=n.boundary,d=n.rootBoundary,c=n.altBoundary,m=n.flipVariations,h=void 0===m||m,k=n.allowedAutoPlacements,p=t.options.placement,f=On(p),v=l||(f===p||!h?[hr(p)]:function(e){if(On(e)===En)return[];var t=hr(e);return[pr(e),t,pr(t)]}(p)),b=[p].concat(v).reduce((function(e,n){return e.concat(On(n)===En?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,a=n.padding,o=n.flipVariations,l=n.allowedAutoPlacements,g=void 0===l?Dn:l,u=or(r),d=u?o?Hn:Hn.filter((function(e){return or(e)===u})):xn,c=d.filter((function(e){return g.indexOf(e)>=0}));0===c.length&&(c=d);var m=c.reduce((function(t,n){return t[n]=Sr(e,{placement:n,boundary:i,rootBoundary:s,padding:a})[On(n)],t}),{});return Object.keys(m).sort((function(e,t){return m[e]-m[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:g,flipVariations:h,allowedAutoPlacements:k}):n)}),[]),y=t.rects.reference,j=t.rects.popper,w=new Map,N=!0,E=b[0],x=0;x=0,T=L?"width":"height",A=Sr(t,{placement:S,boundary:u,rootBoundary:d,altBoundary:c,padding:g}),H=L?C?wn:Nn:C?jn:yn;y[T]>j[T]&&(H=hr(H));var D=hr(H),I=[];if(s&&I.push(A[M]<=0),o&&I.push(A[H]<=0,A[D]<=0),I.every((function(e){return e}))){E=S,N=!1;break}w.set(S,I)}if(N)for(var P=function(e){var t=b.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},O=h?3:1;O>0;O--){if("break"===P(O))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Cr(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Lr(e){return[yn,wn,jn,Nn].some((function(t){return e[t]>=0}))}var Tr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=void 0===i?[0,0]:i,a=Dn.reduce((function(e,n){return e[n]=function(e,t,n){var r=On(e),i=[Nn,yn].indexOf(r)>=0?-1:1,s="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=s[0],o=s[1];return a=a||0,o=(o||0)*i,[Nn,wn].indexOf(r)>=0?{x:o,y:a}:{x:a,y:o}}(n,t.rects,s),e}),{}),o=a[t.placement],l=o.x,g=o.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=g),t.modifiersData[r]=a}};var Ar={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=void 0===i||i,a=n.altAxis,o=void 0!==a&&a,l=n.boundary,g=n.rootBoundary,u=n.altBoundary,d=n.padding,c=n.tether,m=void 0===c||c,h=n.tetherOffset,k=void 0===h?0:h,p=Sr(t,{boundary:l,rootBoundary:g,padding:d,altBoundary:u}),f=On(t.placement),v=or(t.placement),b=!v,y=nr(f),j="x"===y?"y":"x",w=t.modifiersData.popperOffsets,N=t.rects.reference,E=t.rects.popper,x="function"===typeof k?k(Object.assign({},t.rects,{placement:t.placement})):k,S="number"===typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(w){if(s){var L,T="y"===y?yn:Nn,A="y"===y?jn:wn,H="y"===y?"height":"width",D=w[y],I=D+p[T],P=D-p[A],O=m?-E[H]/2:0,_=v===Sn?N[H]:E[H],V=v===Sn?-E[H]:-N[H],R=t.elements.arrow,B=m&&R?Wn(R):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=F[T],K=F[A],z=rr(0,N[H],B[H]),Y=b?N[H]/2-O-z-U-S.mainAxis:_-z-U-S.mainAxis,G=b?-N[H]/2+O+z+K+S.mainAxis:V+z+K+S.mainAxis,W=t.elements.arrow&&tr(t.elements.arrow),q=W?"y"===y?W.clientTop||0:W.clientLeft||0:0,J=null!=(L=null==M?void 0:M[y])?L:0,$=D+G-J,Q=rr(m?Un(I,D+Y-J-q):I,D,m?Fn(P,$):P);w[y]=Q,C[y]=Q-D}if(o){var X,Z="x"===y?yn:Nn,ee="x"===y?jn:wn,te=w[j],ne="y"===j?"height":"width",re=te+p[Z],ie=te-p[ee],se=-1!==[yn,Nn].indexOf(f),ae=null!=(X=null==M?void 0:M[j])?X:0,oe=se?re:te-N[ne]-E[ne]-ae+S.altAxis,le=se?te+N[ne]+E[ne]-ae-S.altAxis:ie,ge=m&&se?function(e,t,n){var r=rr(e,t,n);return r>n?n:r}(oe,te,le):rr(m?oe:re,te,m?le:ie);w[j]=ge,C[j]=ge-te}t.modifiersData[r]=C}},requiresIfExists:["offset"]};function Hr(e,t,n){void 0===n&&(n=!1);var r=Rn(t),i=Rn(t)&&function(e){var t=e.getBoundingClientRect(),n=Kn(t.width)/e.offsetWidth||1,r=Kn(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=Xn(t),a=Gn(e,i,n),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Jn(t)||br(s))&&(o=function(e){return e!==_n(e)&&Rn(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:fr(e);var t}(t)),Rn(t)?((l=Gn(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=vr(s))),{x:a.left+o.scrollLeft-l.x,y:a.top+o.scrollTop-l.y,width:a.width,height:a.height}}function Dr(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function Ir(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Pr={placement:"bottom",modifiers:[],strategy:"absolute"};function Or(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r-1};var ki=function(e,t){var n=this.__data__,r=ui(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function pi(e){var t=-1,n=null==e?0:e.length;for(this.clear();++to))return!1;var g=s.get(e),u=s.get(t);if(g&&u)return g==t&&u==e;var d=-1,c=!0,m=2&n?new ls:void 0;for(s.set(e,t),s.set(t,e);++d0&&r(l)?n>1?e(l,n-1,r,i,s):vs(s,l):i||(s[s.length]=l)}return s};var xo=function(e){return function(t,n,r){for(var i=-1,s=Object(t),a=r(t),o=a.length;o--;){var l=a[e?o:++i];if(!1===n(s[l],l,s))break}return t}}();var So=function(e,t){return e&&xo(e,t,ta)};var Mo=function(e,t){return function(n,r){if(null==n)return n;if(!St(n))return e(n,r);for(var i=n.length,s=t?i:-1,a=Object(n);(t?s--:++st||s&&a&&l&&!o&&!g||r&&a&&l||!n&&l||!i)return 1;if(!r&&!s&&!g&&e=o?l:l*("desc"==n[r]?-1:1)}return e.index-t.index};var Ho=function(e,t,n){t=t.length?Wa(t,(function(e){return bs(e)?function(t){return eo(t,1===e.length?e[0]:e)}:e})):[ao];var r=-1;t=Wa(t,Bs(uo));var i=Co(e,(function(e,n,i){return{criteria:Wa(t,(function(t){return t(e)})),index:++r,value:e}}));return Lo(i,(function(e,t){return Ao(e,t,n)}))};var Do=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},Io=Math.max;var Po=function(e,t,n){return t=Io(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=Io(r.length-t,0),a=Array(s);++i0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Fo=Bo(Vo);var Uo,Ko=function(e,t){return Fo(Po(e,t,ao),e+"")},zo=Ko((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Lt(e,t[0],t[1])?t=[]:n>2&&Lt(t[0],t[1],t[2])&&(t=[t[0]]),Ho(e,Eo(t,1),[])}));function Yo(e){if((!Uo&&0!==Uo||e)&&gn){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Uo=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Uo}function Go(e,t){var n=tn(e);return n?n.innerWidth:t?e.clientWidth:an(e).width}function Wo(e){return o(e)||i(e)||s(e)||l()}function qo(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var Jo=function(e,t){for(var n=-1,r=null==e?0:e.length;++n1),t})),Zo(e,pl(e),n),r&&(n=Fl(n,7,Ql));for(var i=t.length;i--;)zl(n,t[i]);return n})),eg=Object.prototype,tg=eg.hasOwnProperty,ng=Ko((function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&Lt(t[0],t[1],i)&&(r=1);++n2?n-2:0),i=2;i2&&void 0!==arguments[2]?arguments[2]:"day",r=e,i=[];qe(r,t,n);)i.push(r),r=Re(r,1,n);return i}function bg(e,t){return null==t&&null==e?null:(null==t&&(t=new Date),null==e&&(e=new Date),e=Fe(e,"day"),e=tt(e,tt(t)),e=et(e,et(t)),e=Ze(e,Ze(t)),Xe(e,Xe(t)))}function yg(e){return 0===tt(e)&&0===et(e)&&0===Ze(e)&&0===Xe(e)}function jg(e,t,n){return n&&"milliseconds"!==n?Math.round(Math.abs(+Fe(e,n)/mg[n]-+Fe(t,n)/mg[n])):Math.abs(+e-+t)}var wg=xe().oneOfType([xe().string,xe().func]);function Ng(e,t,n,r,i){var s="function"===typeof r?r(n,i,e):t.call(e,n,r,i);return ke()(null==s||"string"===typeof s,"`localizer format(..)` must return a string, null, or undefined"),s}function Eg(e,t,n){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,t+n,0,0)}function xg(e,t){return e.getTimezoneOffset()-t.getTimezoneOffset()}function Sg(e,t){return jg(e,t,"minutes")+xg(e,t)}function Mg(e){var t=Fe(e,"day");return jg(t,e,"minutes")+xg(t,e)}function Cg(e,t){return We(e,t,"day")}function Lg(e,t,n){return Ke(e,t,"minutes")?Ge(t,n,"minutes"):Ye(t,n,"minutes")}function Tg(e){var t=e.evtA,n=t.start,r=t.end,i=t.allDay,s=e.evtB,a=s.start,o=s.end,l=s.allDay,g=+Fe(n,"day")-+Fe(a,"day"),u=jg(n,fg(r,"day"),"day"),d=jg(a,fg(o,"day"),"day");return g||Math.max(d,1)-Math.max(u,1)||!!l-!!i||+n-+a||+r-+o}function Ag(e){var t=e.event,n=t.start,r=t.end,i=e.range,s=i.start,a=i.end,o=Fe(n,"day"),l=qe(o,a,"day"),g=ze(o,r,"minutes")?Ye(r,s,"minutes"):Ge(r,s,"minutes");return l&&g}function Hg(e,t){return Ke(e,t,"day")}function Dg(e,t){return yg(e)&&yg(t)}var Ig=le((function e(t){var n=this;ae(this,e),ke()("function"===typeof t.format,"date localizer `format(..)` must be a function"),ke()("function"===typeof t.firstOfWeek,"date localizer `firstOfWeek(..)` must be a function"),this.propType=t.propType||wg,this.formats=t.formats,this.format=function(){for(var e=arguments.length,r=new Array(e),i=0;i1,L=k.eventProp(i,S,x,s),T=e.createElement("div",{className:"rbc-event-content",title:E||void 0},v?e.createElement(v,{event:i,continuesPrior:d,continuesAfter:c,title:N,isAllDay:M,localizer:u,slotStart:y,slotEnd:j}):N);return e.createElement(b,Object.assign({},this.props,{type:"date"}),e.createElement("div",Object.assign({},w,{tabIndex:0,style:h(h({},L.style),n),className:Ne("rbc-event",r,L.className,{"rbc-selected":s,"rbc-event-allday":C,"rbc-event-continues-prior":d,"rbc-event-continues-after":c}),onClick:function(e){return o&&o(i,e)},onDoubleClick:function(e){return l&&l(i,e)},onKeyPress:function(e){return g&&g(i,e)}}),"function"===typeof p?p(T):T))}}]),r}(e.Component);function Rg(e,t){return!(!e||null==t)&&Ma(e,t)}function Bg(e,t){return(e.right-e.left)/t}function Fg(e,t,n,r){var i=Bg(e,r);return n?r-1-Math.floor((t-e.left)/i):Math.floor((t-e.left)/i)}function Ug(t){var n=t.containerRef,r=t.accessors,i=t.getters,s=t.selected,a=t.components,o=t.localizer,l=t.position,g=t.show,u=t.events,d=t.slotStart,c=t.slotEnd,m=t.onSelect,h=t.onDoubleClick,k=t.onKeyPress,p=t.handleDragStart,f=t.popperRef,v=t.target,b=t.offset;!function(t){var n=t.ref,r=t.callback;(0,e.useEffect)((function(){var e=function(e){n.current&&!n.current.contains(e.target)&&r()};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[n,r])}({ref:f,callback:g}),(0,e.useLayoutEffect)((function(){var e=function(e){var t=e.target,n=e.offset,r=e.container,i=e.box,s=an(t),a=s.top,o=s.left,l=s.width,g=s.height,u=an(r),d=u.top,c=u.left,m=u.width,h=u.height,k=an(i),p=k.width,f=k.height,v=d+h,b=c+m,y=a+f,j=o+p,w=n.x,N=n.y;return{topOffset:y>v?a-f-N:a+N+g,leftOffset:j>b?o+w-p+l:o+w}}({target:v,offset:b,container:n.current,box:f.current}),t=e.topOffset,r=e.leftOffset;f.current.style.top="".concat(t,"px"),f.current.style.left="".concat(r,"px")}),[b.x,b.y,v]);var y=l.width,j={minWidth:y+y/2};return e.createElement("div",{style:j,className:"rbc-overlay",ref:f},e.createElement("div",{className:"rbc-overlay-header"},o.format(d,"dayHeaderFormat")),u.map((function(t,n){return e.createElement(Vg,{key:n,type:"popup",localizer:o,event:t,getters:i,onSelect:m,accessors:r,components:a,onDoubleClick:h,onKeyPress:k,continuesPrior:o.lt(r.end(t),d,"day"),continuesAfter:o.gte(r.start(t),c,"day"),slotStart:d,slotEnd:c,selected:Rg(t,s),draggable:!0,onDragStart:function(){return p(t)},onDragEnd:function(){return g()}})})))}var Kg=e.forwardRef((function(t,n){return e.createElement(Ug,Object.assign({},t,{popperRef:n}))}));function zg(t){var n=t.containerRef,r=t.popupOffset,i=void 0===r?5:r,s=t.overlay,a=t.accessors,o=t.localizer,l=t.components,g=t.getters,u=t.selected,d=t.handleSelectEvent,c=t.handleDoubleClickEvent,m=t.handleKeyPressEvent,h=t.handleDragStart,k=t.onHide,p=t.overlayDisplay,f=(0,e.useRef)(null);if(!s.position)return null;var v=i;isNaN(i)||(v={x:i,y:i});var b=s.position,y=s.events,j=s.date,w=s.end;return e.createElement(li,{rootClose:!0,flip:!0,show:!0,placement:"bottom",onHide:k,target:s.target},(function(t){var r=t.props;return e.createElement(Kg,Object.assign({},r,{containerRef:n,ref:f,target:s.target,offset:v,accessors:a,getters:g,selected:u,components:l,localizer:o,position:b,show:p,events:y,slotStart:j,slotEnd:w,onSelect:d,onDoubleClick:c,onKeyPress:m,handleDragStart:h}))}))}Kg.propTypes={accessors:xe().object.isRequired,getters:xe().object.isRequired,selected:xe().object,components:xe().object.isRequired,localizer:xe().object.isRequired,position:xe().object.isRequired,show:xe().func.isRequired,events:xe().array.isRequired,slotStart:xe().instanceOf(Date).isRequired,slotEnd:xe().instanceOf(Date),onSelect:xe().func,onDoubleClick:xe().func,onKeyPress:xe().func,handleDragStart:xe().func,style:xe().object,offset:xe().shape({x:xe().number,y:xe().number})};var Yg=e.forwardRef((function(t,n){return e.createElement(zg,Object.assign({},t,{containerRef:n}))}));function Gg(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;return Jr(n,e,t,{passive:!1})}function Wg(e,t){return!!function(e,t){var n=t.clientX,r=t.clientY;return Ha(document.elementFromPoint(n,r),".rbc-event",e)}(e,t)}function qg(e,t){return!!function(e,t){var n=t.clientX,r=t.clientY;return Ha(document.elementFromPoint(n,r),".rbc-show-more",e)}(e,t)}function Jg(e){var t=e;return e.touches&&e.touches.length&&(t=e.touches[0]),{clientX:t.clientX,clientY:t.clientY,pageX:t.pageX,pageY:t.pageY}}Yg.propTypes={popupOffset:xe().oneOfType([xe().number,xe().shape({x:xe().number,y:xe().number})]),overlay:xe().shape({position:xe().object,events:xe().array,date:xe().instanceOf(Date),end:xe().instanceOf(Date)}),accessors:xe().object.isRequired,localizer:xe().object.isRequired,components:xe().object.isRequired,getters:xe().object.isRequired,selected:xe().object,handleSelectEvent:xe().func,handleDoubleClickEvent:xe().func,handleKeyPressEvent:xe().func,handleDragStart:xe().func,onHide:xe().func,overlayDisplay:xe().func};var $g=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.global,i=void 0!==r&&r,s=n.longPressThreshold,a=void 0===s?250:s,o=n.validContainers,l=void 0===o?[]:o;ae(this,e),this.isDetached=!1,this.container=t,this.globalMouse=!t||i,this.longPressThreshold=a,this.validContainers=l,this._listeners=Object.create(null),this._handleInitialEvent=this._handleInitialEvent.bind(this),this._handleMoveEvent=this._handleMoveEvent.bind(this),this._handleTerminatingEvent=this._handleTerminatingEvent.bind(this),this._keyListener=this._keyListener.bind(this),this._dropFromOutsideListener=this._dropFromOutsideListener.bind(this),this._dragOverFromOutsideListener=this._dragOverFromOutsideListener.bind(this),this._removeTouchMoveWindowListener=Gg("touchmove",(function(){}),window),this._removeKeyDownListener=Gg("keydown",this._keyListener),this._removeKeyUpListener=Gg("keyup",this._keyListener),this._removeDropFromOutsideListener=Gg("drop",this._dropFromOutsideListener),this._removeDragOverFromOutsideListener=Gg("dragover",this._dragOverFromOutsideListener),this._addInitialEventListener()}return le(e,[{key:"on",value:function(e,t){var n=this._listeners[e]||(this._listeners[e]=[]);return n.push(t),{remove:function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:0;"object"!==u(e)&&(e={top:e,left:e,right:e,bottom:e});return e}(0),m=c.top,h=c.left,k=c.bottom,p=c.right;if(!Qg({top:(t=Xg(o)).top-m,left:t.left-h,bottom:t.bottom+k,right:t.right+p},{top:a,left:s}))return}if(!1!==this.emit("beforeSelect",this._initialEventData={isTouch:/^touch/.test(e.type),x:s,y:a,clientX:r,clientY:i}))switch(e.type){case"mousedown":this._removeEndListener=Gg("mouseup",this._handleTerminatingEvent),this._onEscListener=Gg("keydown",this._handleTerminatingEvent),this._removeMoveListener=Gg("mousemove",this._handleMoveEvent);break;case"touchstart":this._handleMoveEvent(e),this._removeEndListener=Gg("touchend",this._handleTerminatingEvent),this._removeMoveListener=Gg("touchmove",this._handleMoveEvent)}}}}},{key:"_isWithinValidContainer",value:function(e){var t=e.target,n=this.validContainers;return!(n&&n.length&&t)||n.some((function(e){return!!t.closest(e)}))}},{key:"_handleTerminatingEvent",value:function(e){var t=Jg(e),n=t.pageX,r=t.pageY;if(this.selecting=!1,this._removeEndListener&&this._removeEndListener(),this._removeMoveListener&&this._removeMoveListener(),this._initialEventData){var i=!this.container||en(this.container(),e.target),s=this._isWithinValidContainer(e),a=this._selectRect,o=this.isClick(n,r);return this._initialEventData=null,"Escape"!==e.key&&s?o&&i?this._handleClickEvent(e):o?this.emit("reset"):this.emit("select",a):this.emit("reset")}}},{key:"_handleClickEvent",value:function(e){var t=Jg(e),n=t.pageX,r=t.pageY,i=t.clientX,s=t.clientY,a=(new Date).getTime();return this._lastClickData&&a-this._lastClickData.timestamp<250?(this._lastClickData=null,this.emit("doubleClick",{x:n,y:r,clientX:i,clientY:s})):(this._lastClickData={timestamp:a},this.emit("click",{x:n,y:r,clientX:i,clientY:s}))}},{key:"_handleMoveEvent",value:function(e){if(null!==this._initialEventData&&!this.isDetached){var t=this._initialEventData,n=t.x,r=t.y,i=Jg(e),s=i.pageX,a=i.pageY,o=Math.abs(n-s),l=Math.abs(r-a),g=Math.min(s,n),u=Math.min(a,r),d=this.selecting;(!this.isClick(s,a)||d||o||l)&&(this.selecting=!0,this._selectRect={top:u,left:g,x:s,y:a,right:g+o,bottom:u+l},d||this.emit("selectStart",this._initialEventData),this.isClick(s,a)||this.emit("selecting",this._selectRect),e.preventDefault())}}},{key:"_keyListener",value:function(e){this.ctrl=e.metaKey||e.ctrlKey}},{key:"isClick",value:function(e,t){var n=this._initialEventData,r=n.x,i=n.y;return!n.isTouch&&Math.abs(e-r)<=5&&Math.abs(t-i)<=5}}]),e}();function Qg(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=Xg(e),i=r.top,s=r.left,a=r.right,o=void 0===a?s:a,l=r.bottom,g=void 0===l?i:l,u=Xg(t),d=u.top,c=u.left,m=u.right,h=void 0===m?c:m,k=u.bottom;return!(g-n(void 0===k?d:k)||o-nh)}function Xg(e){if(!e.getBoundingClientRect)return e;var t=e.getBoundingClientRect(),n=t.left+Zg("left"),r=t.top+Zg("top");return{top:r,left:n,right:(e.offsetWidth||0)+n,bottom:(e.offsetHeight||0)+r}}function Zg(e){return"left"===e?window.pageXOffset||document.body.scrollLeft||0:"top"===e?window.pageYOffset||document.body.scrollTop||0:void 0}var eu=function(t){ue(r,t);var n=me(r);function r(t,i){var s;return ae(this,r),(s=n.call(this,t,i)).state={selecting:!1},s.containerRef=(0,e.createRef)(),s}return le(r,[{key:"componentDidMount",value:function(){this.props.selectable&&this._selectable()}},{key:"componentWillUnmount",value:function(){this._teardownSelectable()}},{key:"componentDidUpdate",value:function(e){!e.selectable&&this.props.selectable&&this._selectable(),e.selectable&&!this.props.selectable&&this._teardownSelectable()}},{key:"render",value:function(){var t=this.props,n=t.range,r=t.getNow,i=t.getters,s=t.date,a=t.components.dateCellWrapper,o=t.localizer,l=this.state,g=l.selecting,u=l.startIdx,d=l.endIdx,c=r();return e.createElement("div",{className:"rbc-row-bg",ref:this.containerRef},n.map((function(t,r){var l=g&&r>=u&&r<=d,m=i.dayProp(t),h=m.className,k=m.style;return e.createElement(a,{key:r,value:t,range:n},e.createElement("div",{style:k,className:Ne("rbc-day-bg",h,l&&"rbc-selected-cell",o.isSameDate(t,c)&&"rbc-today",s&&o.neq(s,t,"month")&&"rbc-off-range-bg")}))})))}},{key:"_selectable",value:function(){var e=this,t=this.containerRef.current,n=this._selector=new $g(this.props.container,{longPressThreshold:this.props.longPressThreshold}),r=function(n,r){if(!Wg(t,n)&&!qg(t,n)){var i=Xg(t),s=e.props,a=s.range,o=s.rtl;if(function(e,t){var n=t.x,r=t.y;return r>=e.top&&r<=e.bottom&&n>=e.left&&n<=e.right}(i,n)){var l=Fg(i,n.x,o,a.length);e._selectSlot({startIdx:l,endIdx:l,action:r,box:n})}}e._initial={},e.setState({selecting:!1})};n.on("selecting",(function(r){var i=e.props,s=i.range,a=i.rtl,o=-1,l=-1;if(e.state.selecting||(cg(e.props.onSelectStart,[r]),e._initial={x:r.x,y:r.y}),n.isSelected(t)){var g=Xg(t),u=function(e,t,n,r,i){var s=-1,a=-1,o=r-1,l=Bg(t,r),g=Fg(t,n.x,i,r),u=t.topn.y,d=t.tope.y,c=e.y>t.bottom,m=t.top>e.y;return n.topt.bottom&&(s=0,a=o),u&&(m?(s=0,a=g):c&&(s=g,a=o)),d&&(s=a=i?o-Math.floor((e.x-t.left)/l):Math.floor((e.x-t.left)/l),u?g3&&void 0!==arguments[3]?arguments[3]:" ",s=Math.abs(n)/t*100+"%";return e.createElement("div",{key:r,className:"rbc-row-segment",style:{WebkitFlexBasis:s,flexBasis:s,maxWidth:s}},i)},iu=function(t){ue(r,t);var n=me(r);function r(){return ae(this,r),n.apply(this,arguments)}return le(r,[{key:"render",value:function(){var t=this,n=this.props,r=n.segments,i=n.slotMetrics.slots,s=n.className,a=1;return e.createElement("div",{className:Ne(s,"rbc-row")},r.reduce((function(e,n,r){var s=n.event,o=n.left,l=n.right,g=n.span,u="_lvl_"+r,d=o-a,c=nu(t.props,s);return d&&e.push(ru(i,d,"".concat(u,"_gap"))),e.push(ru(i,g,u,c)),a=l+1,e}),[]))}}]),r}(e.Component);function su(e){var t=e.dateRange,n=e.unit,r=void 0===n?"day":n,i=e.localizer;return{first:t[0],last:i.add(t[t.length-1],1,r)}}function au(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,s=[],a=[];for(t=0;t=i?a.push(r):(s[n]||(s[n]=[])).push(r)}for(t=0;t=e.left}))}function gu(e,t,n,r){var i={start:n.start(e),end:n.end(e),allDay:n.allDay(e)},s={start:n.start(t),end:n.end(t),allDay:n.allDay(t)};return r.sortEvents({evtA:i,evtB:s})}iu.defaultProps=h({},tu);var uu=function(e,t){return e.left<=t&&e.right>=t},du=function(e,t){return e.filter((function(e){return uu(e,t)})).length},cu=function(t){ue(r,t);var n=me(r);function r(){return ae(this,r),n.apply(this,arguments)}return le(r,[{key:"render",value:function(){for(var t=this.props,n=t.segments,r=t.slotMetrics.slots,i=au(n).levels[0],s=1,a=1,o=[];s<=r;){var l="_lvl_"+s,g=i.filter((function(e){return uu(e,s)}))[0]||{},u=g.event,d=g.left,c=g.right,m=g.span;if(u){var h=Math.max(0,d-a);if(this.canRenderSlotEvent(d,m)){var k=nu(this.props,u);h&&o.push(ru(r,h,l+"_gap")),o.push(ru(r,m,l,k)),a=s=c+1}else h&&o.push(ru(r,h,l+"_gap")),o.push(ru(r,1,l,this.renderShowMore(n,s))),a=s+=1}else s++}return e.createElement("div",{className:"rbc-row"},o)}},{key:"canRenderSlotEvent",value:function(e,t){var n=this.props.segments;return vo(e,e+t).every((function(e){return 1===du(n,e)}))}},{key:"renderShowMore",value:function(t,n){var r=this,i=this.props.localizer,s=du(t,n);return!!s&&e.createElement("button",{type:"button",key:"sm_"+n,className:Ne("rbc-button-link","rbc-show-more"),onClick:function(e){return r.showMore(n,e)}},i.messages.showMore(s))}},{key:"showMore",value:function(e,t){t.preventDefault(),t.stopPropagation(),this.props.onShowMore(e,t.target)}}]),r}(e.Component);cu.defaultProps=h({},tu);var mu=function(t){var n=t.children;return e.createElement("div",{className:"rbc-row-content-scroll-container"},n)},hu=function(e,t){return e[0].range===t[0].range&&e[0].events===t[0].events};function ku(){return jo((function(e){for(var t=e.range,n=e.events,r=e.maxRows,i=e.minRows,s=e.accessors,a=e.localizer,o=su({dateRange:t,localizer:a}),l=o.first,g=o.last,u=n.map((function(e){return function(e,t,n,r){var i=su({dateRange:t,localizer:r}),s=i.first,a=i.last,o=r.diff(s,a,"day"),l=r.max(r.startOf(n.start(e),"day"),s),g=r.min(r.ceil(n.end(e),"day"),a),u=mo(t,(function(e){return r.isSameDate(e,l)})),d=r.diff(l,g,"day");return d=Math.min(d,o),{event:e,span:d=Math.max(d-r.segmentOffset,1),left:u+1,right:Math.max(u+d,1)}}(e,t,s,a)})),d=au(u,Math.max(r-1,1)),c=d.levels,m=d.extra,k=m.length>0?i-1:i;c.length=t}(t,e)})).map((function(e){return e.event}))},continuesPrior:function(e){return a.continuesPrior(s.start(e),l)},continuesAfter:function(e){var t=s.start(e),n=s.end(e);return a.continuesAfter(t,n,g)}}}),hu)}var pu=function(t){ue(r,t);var n=me(r);function r(){var t;ae(this,r);for(var i=arguments.length,s=new Array(i),a=0;a1&&void 0!==arguments[1]?arguments[1]:0;if(s.lt(e,t,"minutes"))return c[0];if(s.gt(e,n,"minutes"))return c[c.length-1];var a=s.diff(t,e,"minutes");return c[(a-a%r)/r+i]},startsBeforeDay:function(e){return s.lt(e,t,"day")},startsAfterDay:function(e){return s.gt(e,n,"day")},startsBefore:function(e){return s.lt(s.merge(t,e),t,"minutes")},startsAfter:function(e){return s.gt(s.merge(n,e),n,"minutes")},getRange:function(e,i,a,o){a||(e=s.min(n,s.max(t,e))),o||(i=s.min(n,s.max(t,i)));var l=v(e),g=v(i),d=g>r*u&&!s.eq(n,i)?(l-r)/(r*u)*100:l/(r*u)*100;return{top:d,height:g/(r*u)*100-d,start:v(e),startDate:e,end:v(i),endDate:i}},getCurrentTimePosition:function(e){return v(e)/(r*u)*100}}}var Nu=function(){function e(t,n){var r=n.accessors,i=n.slotMetrics;ae(this,e);var s=i.getRange(r.start(t),r.end(t)),a=s.start,o=s.startDate,l=s.end,g=s.endDate,u=s.top,d=s.height;this.start=a,this.end=l,this.startMs=+o,this.endMs=+g,this.top=u,this.height=d,this.data=t}return le(e,[{key:"_width",get:function(){if(this.rows){var e=this.rows.reduce((function(e,t){return Math.max(e,t.leaves.length+1)}),0)+1;return 100/e}return this.leaves?(100-this.container._width)/(this.leaves.length+1):this.row._width}},{key:"width",get:function(){var e=this._width,t=Math.min(100,1.7*this._width);if(this.rows)return t;if(this.leaves)return this.leaves.length>0?t:e;var n=this.row.leaves;return n.indexOf(this)===n.length-1?e:t}},{key:"xOffset",get:function(){if(this.rows)return 0;if(this.leaves)return this.container._width;var e=this.row,t=e.leaves,n=e.xOffset,r=e._width;return n+(t.indexOf(this)+1)*r}}]),e}();function Eu(e,t,n){return Math.abs(t.start-e.start)e.start&&t.start0;){var r=t.shift();n.push(r);for(var i=0;is.startMs)){if(i>0){var a=t.splice(i,1)[0];n.push(a)}break}}}return n}(t.map((function(e){return new Nu(e,{slotMetrics:r,accessors:i})}))),a=[],o=function(){var e=s[l],t=a.find((function(t){return t.end>e.start||Math.abs(e.start-t.start)=0;i--)Eu(t.rows[i],e,n)&&(r=t.rows[i]);r?(r.leaves.push(e),e.row=r):(e.leaves=[],t.rows.push(e))},l=0;l-1)){t=t>e.friends[r].idx?t:e.friends[r].idx,n.push(e.friends[r]);var i=Su(e.friends[r],t,n);t=t>i?t:i}return t}var Mu={overlap:xu,"no-overlap":function(e){var t=xu({events:e.events,minimumStartDifference:e.minimumStartDifference,slotMetrics:e.slotMetrics,accessors:e.accessors});t.sort((function(e,t){return e=e.style,t=t.style,e.top!==t.top?e.top>t.top?1:-1:e.top+e.height