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I,IACjCE,EAAMoK,EAAWtK,GACbiK,EAAS/B,QAAQhI,IAAQ,IAC7BO,EAAOP,GAAOS,EAAOT,IAEvB,OAAOO,CACT","sources":["webpack:///./node_modules/invariant/browser.js","webpack:///./node_modules/jquery-param/jquery-param.js","webpack:///./node_modules/react-truncate/lib/Truncate.js","webpack:///./node_modules/throttle-debounce/index.umd.js","webpack:///./node_modules/@babel/runtime/helpers/esm/extends.js","webpack:///./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack:///./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","webpack:///./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"],"sourcesContent":["/**\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\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar invariant = function(condition, format, a, b, c, d, e, f) {\n if (process.env.NODE_ENV !== 'production') {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n }\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error(\n 'Minified exception occurred; use the non-minified dev environment ' +\n 'for the full error message and additional helpful warnings.'\n );\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(\n format.replace(/%s/g, function() { return args[argIndex++]; })\n );\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n};\n\nmodule.exports = invariant;\n","/**\n * @preserve jquery-param (c) 2015 KNOWLEDGECODE | MIT\n */\n(function (global) {\n 'use strict';\n\n var param = function (a) {\n var s = [], rbracket = /\\[\\]$/,\n isArray = function (obj) {\n return Object.prototype.toString.call(obj) === '[object Array]';\n }, add = function (k, v) {\n v = typeof v === 'function' ? v() : v === null ? '' : v === undefined ? '' : v;\n s[s.length] = encodeURIComponent(k) + '=' + encodeURIComponent(v);\n }, buildParams = function (prefix, obj) {\n var i, len, key;\n\n if (prefix) {\n if (isArray(obj)) {\n for (i = 0, len = obj.length; i < len; i++) {\n if (rbracket.test(prefix)) {\n add(prefix, obj[i]);\n } else {\n buildParams(prefix + '[' + (typeof obj[i] === 'object' ? i : '') + ']', obj[i]);\n }\n }\n } else if (obj && String(obj) === '[object Object]') {\n for (key in obj) {\n buildParams(prefix + '[' + key + ']', obj[key]);\n }\n } else {\n add(prefix, obj);\n }\n } else if (isArray(obj)) {\n for (i = 0, len = obj.length; i < len; i++) {\n add(obj[i].name, obj[i].value);\n }\n } else {\n for (key in obj) {\n buildParams(key, obj[key]);\n }\n }\n return s;\n };\n\n return buildParams('', a).join('&').replace(/%20/g, '+');\n };\n\n if (typeof module === 'object' && typeof module.exports === 'object') {\n module.exports = param;\n } else if (typeof define === 'function' && define.amd) {\n define([], function () {\n return param;\n });\n } else {\n global.param = param;\n }\n\n}(this));\n\n","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n\nvar Truncate = function (_Component) {\n _inherits(Truncate, _Component);\n\n function Truncate() {\n var _ref;\n\n _classCallCheck(this, Truncate);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var _this = _possibleConstructorReturn(this, (_ref = Truncate.__proto__ || Object.getPrototypeOf(Truncate)).call.apply(_ref, [this].concat(args)));\n\n _this.state = {};\n _this.styles = {\n ellipsis: {\n position: 'fixed',\n visibility: 'hidden',\n top: 0,\n left: 0\n }\n };\n\n\n _this.elements = {};\n\n _this.onResize = _this.onResize.bind(_this);\n _this.onTruncate = _this.onTruncate.bind(_this);\n _this.calcTargetWidth = _this.calcTargetWidth.bind(_this);\n _this.measureWidth = _this.measureWidth.bind(_this);\n _this.getLines = _this.getLines.bind(_this);\n _this.renderLine = _this.renderLine.bind(_this);\n return _this;\n }\n\n _createClass(Truncate, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n var text = this.elements.text,\n calcTargetWidth = this.calcTargetWidth,\n onResize = this.onResize;\n\n\n var canvas = document.createElement('canvas');\n this.canvasContext = canvas.getContext('2d');\n\n calcTargetWidth(function () {\n // Node not needed in document tree to read its content\n if (text) {\n text.parentNode.removeChild(text);\n }\n });\n\n window.addEventListener('resize', onResize);\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate(prevProps) {\n // Render was based on outdated refs and needs to be rerun\n if (this.props.children !== prevProps.children) {\n this.forceUpdate();\n }\n\n // If the width prop has changed, recalculate size of contents\n if (this.props.width !== prevProps.width) {\n this.calcTargetWidth();\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n var ellipsis = this.elements.ellipsis,\n onResize = this.onResize,\n timeout = this.timeout;\n\n\n ellipsis.parentNode.removeChild(ellipsis);\n\n window.removeEventListener('resize', onResize);\n\n window.cancelAnimationFrame(timeout);\n }\n\n // Shim innerText to consistently break lines at
but not at \\n\n\n }, {\n key: 'innerText',\n value: function innerText(node) {\n var div = document.createElement('div');\n var contentKey = 'innerText' in window.HTMLElement.prototype ? 'innerText' : 'textContent';\n\n div.innerHTML = node.innerHTML.replace(/\\r\\n|\\r|\\n/g, ' ');\n\n var text = div[contentKey];\n\n var test = document.createElement('div');\n test.innerHTML = 'foo
bar';\n\n if (test[contentKey].replace(/\\r\\n|\\r/g, '\\n') !== 'foo\\nbar') {\n div.innerHTML = div.innerHTML.replace(//gi, '\\n');\n text = div[contentKey];\n }\n\n return text;\n }\n }, {\n key: 'onResize',\n value: function onResize() {\n this.calcTargetWidth();\n }\n }, {\n key: 'onTruncate',\n value: function onTruncate(didTruncate) {\n var onTruncate = this.props.onTruncate;\n\n\n if (typeof onTruncate === 'function') {\n this.timeout = window.requestAnimationFrame(function () {\n onTruncate(didTruncate);\n });\n }\n }\n }, {\n key: 'calcTargetWidth',\n value: function calcTargetWidth(callback) {\n var target = this.elements.target,\n calcTargetWidth = this.calcTargetWidth,\n canvasContext = this.canvasContext,\n width = this.props.width;\n\n // Calculation is no longer relevant, since node has been removed\n\n if (!target) {\n return;\n }\n\n var targetWidth = width ||\n // Floor the result to deal with browser subpixel precision\n Math.floor(target.parentNode.getBoundingClientRect().width);\n\n // Delay calculation until parent node is inserted to the document\n // Mounting order in React is ChildComponent, ParentComponent\n if (!targetWidth) {\n return window.requestAnimationFrame(function () {\n return calcTargetWidth(callback);\n });\n }\n\n var style = window.getComputedStyle(target);\n\n var font = [style['font-weight'], style['font-style'], style['font-size'], style['font-family']].join(' ');\n\n canvasContext.font = font;\n\n this.setState({\n targetWidth: targetWidth\n }, callback);\n }\n }, {\n key: 'measureWidth',\n value: function measureWidth(text) {\n return this.canvasContext.measureText(text).width;\n }\n }, {\n key: 'ellipsisWidth',\n value: function ellipsisWidth(node) {\n return node.offsetWidth;\n }\n }, {\n key: 'trimRight',\n value: function trimRight(text) {\n return text.replace(/\\s+$/, '');\n }\n }, {\n key: 'getLines',\n value: function getLines() {\n var elements = this.elements,\n _props = this.props,\n numLines = _props.lines,\n ellipsis = _props.ellipsis,\n trimWhitespace = _props.trimWhitespace,\n targetWidth = this.state.targetWidth,\n innerText = this.innerText,\n measureWidth = this.measureWidth,\n onTruncate = this.onTruncate,\n trimRight = this.trimRight;\n\n\n var lines = [];\n var text = innerText(elements.text);\n var textLines = text.split('\\n').map(function (line) {\n return line.split(' ');\n });\n var didTruncate = true;\n var ellipsisWidth = this.ellipsisWidth(this.elements.ellipsis);\n\n for (var line = 1; line <= numLines; line++) {\n var textWords = textLines[0];\n\n // Handle newline\n if (textWords.length === 0) {\n lines.push();\n textLines.shift();\n line--;\n continue;\n }\n\n var resultLine = textWords.join(' ');\n\n if (measureWidth(resultLine) <= targetWidth) {\n if (textLines.length === 1) {\n // Line is end of text and fits without truncating\n didTruncate = false;\n\n lines.push(resultLine);\n break;\n }\n }\n\n if (line === numLines) {\n // Binary search determining the longest possible line inluding truncate string\n var textRest = textWords.join(' ');\n\n var lower = 0;\n var upper = textRest.length - 1;\n\n while (lower <= upper) {\n var middle = Math.floor((lower + upper) / 2);\n\n var testLine = textRest.slice(0, middle + 1);\n\n if (measureWidth(testLine) + ellipsisWidth <= targetWidth) {\n lower = middle + 1;\n } else {\n upper = middle - 1;\n }\n }\n\n var lastLineText = textRest.slice(0, lower);\n\n if (trimWhitespace) {\n lastLineText = trimRight(lastLineText);\n\n // Remove blank lines from the end of text\n while (!lastLineText.length && lines.length) {\n var prevLine = lines.pop();\n\n lastLineText = trimRight(prevLine);\n }\n }\n\n resultLine = React.createElement(\n 'span',\n null,\n lastLineText,\n ellipsis\n );\n } else {\n // Binary search determining when the line breaks\n var _lower = 0;\n var _upper = textWords.length - 1;\n\n while (_lower <= _upper) {\n var _middle = Math.floor((_lower + _upper) / 2);\n\n var _testLine = textWords.slice(0, _middle + 1).join(' ');\n\n if (measureWidth(_testLine) <= targetWidth) {\n _lower = _middle + 1;\n } else {\n _upper = _middle - 1;\n }\n }\n\n // The first word of this line is too long to fit it\n if (_lower === 0) {\n // Jump to processing of last line\n line = numLines - 1;\n continue;\n }\n\n resultLine = textWords.slice(0, _lower).join(' ');\n textLines[0].splice(0, _lower);\n }\n\n lines.push(resultLine);\n }\n\n onTruncate(didTruncate);\n\n return lines;\n }\n }, {\n key: 'renderLine',\n value: function renderLine(line, i, arr) {\n if (i === arr.length - 1) {\n return React.createElement(\n 'span',\n { key: i },\n line\n );\n } else {\n var br = React.createElement('br', { key: i + 'br' });\n\n if (line) {\n return [React.createElement(\n 'span',\n { key: i },\n line\n ), br];\n } else {\n return br;\n }\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var target = this.elements.target,\n _props2 = this.props,\n children = _props2.children,\n ellipsis = _props2.ellipsis,\n lines = _props2.lines,\n spanProps = _objectWithoutProperties(_props2, ['children', 'ellipsis', 'lines']),\n targetWidth = this.state.targetWidth,\n getLines = this.getLines,\n renderLine = this.renderLine,\n onTruncate = this.onTruncate;\n\n var text = void 0;\n\n var mounted = !!(target && targetWidth);\n\n if (typeof window !== 'undefined' && mounted) {\n if (lines > 0) {\n text = getLines().map(renderLine);\n } else {\n text = children;\n\n onTruncate(false);\n }\n }\n\n delete spanProps.onTruncate;\n delete spanProps.trimWhitespace;\n\n return React.createElement(\n 'span',\n _extends({}, spanProps, { ref: function ref(targetEl) {\n _this2.elements.target = targetEl;\n } }),\n React.createElement(\n 'span',\n null,\n text\n ),\n React.createElement(\n 'span',\n { ref: function ref(textEl) {\n _this2.elements.text = textEl;\n } },\n children\n ),\n React.createElement(\n 'span',\n { ref: function ref(ellipsisEl) {\n _this2.elements.ellipsis = ellipsisEl;\n }, style: this.styles.ellipsis },\n ellipsis\n )\n );\n }\n }]);\n\n return Truncate;\n}(Component);\n\nTruncate.propTypes = {\n children: PropTypes.node,\n ellipsis: PropTypes.node,\n lines: PropTypes.oneOfType([PropTypes.oneOf([false]), PropTypes.number]),\n trimWhitespace: PropTypes.bool,\n width: PropTypes.number,\n onTruncate: PropTypes.func\n};\nTruncate.defaultProps = {\n children: '',\n ellipsis: '…',\n lines: 1,\n trimWhitespace: false,\n width: 0\n};\nexport default Truncate;\n;\n","(function (global, factory) {\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\n\ttypeof define === 'function' && define.amd ? define(['exports'], factory) :\n\t(global = global || self, factory(global.throttleDebounce = {}));\n}(this, (function (exports) { 'use strict';\n\n\t/* eslint-disable no-undefined,no-param-reassign,no-shadow */\n\n\t/**\n\t * Throttle execution of a function. Especially useful for rate limiting\n\t * execution of handlers on events like resize and scroll.\n\t *\n\t * @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.\n\t * @param {boolean} [noTrailing] - Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds while the\n\t * throttled-function is being called. If noTrailing is false or unspecified, callback will be executed one final time\n\t * after the last throttled-function call. (After the throttled-function has not been called for `delay` milliseconds,\n\t * the internal counter is reset).\n\t * @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,\n\t * to `callback` when the throttled-function is executed.\n\t * @param {boolean} [debounceMode] - If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is false (at end),\n\t * schedule `callback` to execute after `delay` ms.\n\t *\n\t * @returns {Function} A new, throttled, function.\n\t */\n\tfunction throttle (delay, noTrailing, callback, debounceMode) {\n\t /*\n\t * After wrapper has stopped being called, this timeout ensures that\n\t * `callback` is executed at the proper times in `throttle` and `end`\n\t * debounce modes.\n\t */\n\t var timeoutID;\n\t var cancelled = false; // Keep track of the last time `callback` was executed.\n\n\t var lastExec = 0; // Function to clear existing timeout\n\n\t function clearExistingTimeout() {\n\t if (timeoutID) {\n\t clearTimeout(timeoutID);\n\t }\n\t } // Function to cancel next exec\n\n\n\t function cancel() {\n\t clearExistingTimeout();\n\t cancelled = true;\n\t } // `noTrailing` defaults to falsy.\n\n\n\t if (typeof noTrailing !== 'boolean') {\n\t debounceMode = callback;\n\t callback = noTrailing;\n\t noTrailing = undefined;\n\t }\n\t /*\n\t * The `wrapper` function encapsulates all of the throttling / debouncing\n\t * functionality and when executed will limit the rate at which `callback`\n\t * is executed.\n\t */\n\n\n\t function wrapper() {\n\t for (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) {\n\t arguments_[_key] = arguments[_key];\n\t }\n\n\t var self = this;\n\t var elapsed = Date.now() - lastExec;\n\n\t if (cancelled) {\n\t return;\n\t } // Execute `callback` and update the `lastExec` timestamp.\n\n\n\t function exec() {\n\t lastExec = Date.now();\n\t callback.apply(self, arguments_);\n\t }\n\t /*\n\t * If `debounceMode` is true (at begin) this is used to clear the flag\n\t * to allow future `callback` executions.\n\t */\n\n\n\t function clear() {\n\t timeoutID = undefined;\n\t }\n\n\t if (debounceMode && !timeoutID) {\n\t /*\n\t * Since `wrapper` is being called for the first time and\n\t * `debounceMode` is true (at begin), execute `callback`.\n\t */\n\t exec();\n\t }\n\n\t clearExistingTimeout();\n\n\t if (debounceMode === undefined && elapsed > delay) {\n\t /*\n\t * In throttle mode, if `delay` time has been exceeded, execute\n\t * `callback`.\n\t */\n\t exec();\n\t } else if (noTrailing !== true) {\n\t /*\n\t * In trailing throttle mode, since `delay` time has not been\n\t * exceeded, schedule `callback` to execute `delay` ms after most\n\t * recent execution.\n\t *\n\t * If `debounceMode` is true (at begin), schedule `clear` to execute\n\t * after `delay` ms.\n\t *\n\t * If `debounceMode` is false (at end), schedule `callback` to\n\t * execute after `delay` ms.\n\t */\n\t timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t }\n\t }\n\n\t wrapper.cancel = cancel; // Return the wrapper function.\n\n\t return wrapper;\n\t}\n\n\t/* eslint-disable no-undefined */\n\t/**\n\t * Debounce execution of a function. Debouncing, unlike throttling,\n\t * guarantees that a function is only executed a single time, either at the\n\t * very beginning of a series of calls, or at the very end.\n\t *\n\t * @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.\n\t * @param {boolean} [atBegin] - Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds\n\t * after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call.\n\t * (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset).\n\t * @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,\n\t * to `callback` when the debounced-function is executed.\n\t *\n\t * @returns {Function} A new, debounced function.\n\t */\n\n\tfunction debounce (delay, atBegin, callback) {\n\t return callback === undefined ? throttle(delay, atBegin, false) : throttle(delay, callback, atBegin !== false);\n\t}\n\n\texports.debounce = debounce;\n\texports.throttle = throttle;\n\n\tObject.defineProperty(exports, '__esModule', { value: true });\n\n})));\n//# sourceMappingURL=index.umd.js.map\n","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}","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 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}","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}"],"names":["module","exports","condition","format","a","b","c","d","e","f","error","undefined","Error","args","argIndex","replace","name","framesToPop","global","param","s","rbracket","isArray","obj","Object","prototype","toString","call","add","k","v","length","encodeURIComponent","buildParams","prefix","i","len","key","test","String","value","join","_extends","assign","target","arguments","source","hasOwnProperty","_createClass","defineProperties","props","descriptor","enumerable","configurable","writable","defineProperty","Constructor","protoProps","staticProps","Truncate","_Component","_ref","instance","TypeError","_classCallCheck","this","_len","Array","_key","_this","self","ReferenceError","_possibleConstructorReturn","__proto__","getPrototypeOf","apply","concat","state","styles","ellipsis","position","visibility","top","left","elements","onResize","bind","onTruncate","calcTargetWidth","measureWidth","getLines","renderLine","subClass","superClass","create","constructor","setPrototypeOf","_inherits","text","canvas","document","createElement","canvasContext","getContext","parentNode","removeChild","window","addEventListener","prevProps","children","forceUpdate","width","timeout","removeEventListener","cancelAnimationFrame","node","div","contentKey","HTMLElement","innerHTML","didTruncate","requestAnimationFrame","callback","targetWidth","Math","floor","getBoundingClientRect","style","getComputedStyle","font","setState","measureText","offsetWidth","_props","numLines","lines","trimWhitespace","innerText","trimRight","textLines","split","map","line","ellipsisWidth","textWords","resultLine","push","textRest","lower","upper","middle","slice","lastLineText","pop","_lower","_upper","_middle","splice","shift","arr","br","_this2","_props2","spanProps","keys","indexOf","_objectWithoutProperties","ref","targetEl","textEl","ellipsisEl","Component","propTypes","defaultProps","throttle","delay","noTrailing","debounceMode","timeoutID","cancelled","lastExec","clearExistingTimeout","clearTimeout","cancel","wrapper","arguments_","elapsed","Date","now","exec","clear","setTimeout","debounce","atBegin","factory","_inheritsLoose","excluded","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","_objectWithoutPropertiesLoose","sourceKeys"],"sourceRoot":""}